/* ===== Tokens ===== */
:root {
  --maroon: #7a1420; --maroon-deep: #4d0a14; --saffron: #ef7d22; --green: #2e8b3a;
  --navy: #1b2a5c; --gold: #e8c47f; --cream: #fff6e6;
  --head: 'Montserrat', Arial, sans-serif; --body: 'Manrope', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f7c28b; font-family: var(--body); color: var(--navy); }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ===== Stage ===== */
.cs { position: relative; isolation: isolate; min-height: max(760px, 100svh); overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ===== Backdrop ===== */
.backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse 70% 55% at 50% 58%, #fff4d6 0%, #ffe2b4 38%, #f7c28b 70%, #e9a171 100%); }
.backdrop::after { content: ''; position: absolute; inset: 18px; border: 1px solid #b0784855; border-radius: 4px; box-shadow: inset 0 0 0 5px #fff4; pointer-events: none; }
.sun { position: absolute; left: 50%; top: 58%; width: 72vmin; height: 72vmin; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fffbe9 0%, #ffe6a6aa 35%, #ffd08a00 70%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { scale: 1.12; opacity: .75; } }
.mandala { position: absolute; left: 50%; top: 50%; width: min(980px, 150vmin); translate: -50% -48%; color: #b4602a; opacity: .12; animation: spin 140s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.art { position: absolute; bottom: 0; width: auto; pointer-events: none; -webkit-mask-image: linear-gradient(0deg, #0000 0, #000 18%); mask-image: linear-gradient(0deg, #0000 0, #000 18%); animation: art-in 2.4s .3s cubic-bezier(.2,.7,.2,1) both; }
.art-left { left: 2%; height: min(78%, 620px); --from: -50px; }
.art-right { right: 2%; height: min(66%, 540px); --from: 50px; }
@keyframes art-in { from { opacity: 0; translate: var(--from) 30px; } }
#ambient { position: absolute; inset: 0; width: 100%; height: 100%; }
.valance { position: absolute; top: 0; left: 0; right: 0; height: 112px; background: url('../assets/images/valance.png') 0 0 / auto 100px round no-repeat; filter: drop-shadow(0 10px 10px #1a000870); pointer-events: none; }
.top-rule { position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 4; background: linear-gradient(90deg, var(--saffron) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }

/* ===== Sound ===== */
.sound-toggle { position: absolute; top: 122px; right: 34px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #ffe7c0; background: var(--maroon); border: 1px solid #e8c47f88; box-shadow: 0 6px 18px #7a142044; }
.sound-toggle[aria-pressed="false"] .sound-waves, .sound-toggle[aria-pressed="true"] .sound-x { display: none; }
.sound-toggle[aria-pressed="false"]::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--saffron); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { opacity: .9; scale: .9; } to { opacity: 0; scale: 1.5; } }
.sound-nudge { position: absolute; top: 130px; right: 88px; z-index: 5; margin: 0; padding: 6px 14px; border-radius: 20px; background: #fff9; font: 600 11px var(--body); color: var(--maroon); letter-spacing: .5px; backdrop-filter: blur(4px); transition: opacity .5s; }
.sound-on .sound-nudge { opacity: 0; pointer-events: none; }

/* ===== Content ===== */
.content { position: relative; width: 100%; padding: 138px 24px 0; display: flex; flex-direction: column; align-items: center; }
.plaque { position: relative; overflow: hidden; width: min(600px, 100%); padding: 18px 26px; border-radius: 14px; background: linear-gradient(#fffaf0, #fff1dc); border: 1px solid #e3b56f; box-shadow: 0 0 0 5px #fff8, 0 0 0 6px #d9a35a88, 0 18px 40px #8a4a1a33, 0 0 90px #ffcf7a66; animation: rise 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
.plaque img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.shine { position: absolute; inset: 0; background: linear-gradient(110deg, #fff0 35%, #fffde899 50%, #fff0 65%); translate: -120% 0; animation: shine 4.5s 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { translate: -120% 0; } 100% { translate: 120% 0; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
h1 { margin: 24px 0 0; max-width: 760px; font: 600 clamp(17px, 1.8vw, 24px)/1.4 var(--head); text-wrap: balance; animation: rise 1.2s .4s cubic-bezier(.2,.8,.2,1) both; }
h1 em { font-style: normal; color: var(--maroon); }
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 18px 0 0; padding: 0; font: 700 clamp(15px, 1.5vw, 19px)/1 var(--head); animation: rise 1.2s .6s cubic-bezier(.2,.8,.2,1) both; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; fill: none; stroke: var(--saffron); stroke-width: 1.8; border: 1.5px solid var(--saffron); background: #fff8; }
.facts .green svg { stroke: var(--green); border-color: var(--green); }
.event-label { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; font: 700 12px var(--head); letter-spacing: 5px; color: var(--saffron); animation: rise 1.2s .8s cubic-bezier(.2,.8,.2,1) both; }
.event-label span { width: 50px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.event-label span:last-child { rotate: 180deg; }

/* ===== Countdown ===== */
.countdown { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; animation: rise 1.2s 1s cubic-bezier(.2,.8,.2,1) both; }
.countdown i { font: 700 40px/86px var(--head); font-style: normal; color: var(--maroon); opacity: .5; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.num { position: relative; overflow: hidden; display: grid; place-items: center; width: 98px; height: 92px; border-radius: 14px; font: 800 46px/1 var(--head); color: #fff4dc; font-variant-numeric: tabular-nums; background: linear-gradient(160deg, #9b1d26, var(--maroon) 50%, #560c16); border: 1px solid #f1cd86; box-shadow: inset 0 0 0 4px #ffffff10, inset 0 -40px 30px -30px #0004, 0 12px 26px #7a142040; }
.num::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0003; box-shadow: 0 1px #ffffff14; }
.num.tick { animation: tick .55s cubic-bezier(.2,.8,.2,1); }
@keyframes tick { 0% { translate: 0 -30%; opacity: 0; filter: blur(3px); } 100% { translate: 0 0; opacity: 1; filter: none; } }
.unit small { font: 700 10px var(--body); letter-spacing: 2.5px; text-transform: uppercase; color: #6b4a33; }
.launch-when { margin: 26px 0 0; font: 700 15px/1.6 var(--head); color: var(--navy); animation: rise 1.2s 1.2s cubic-bezier(.2,.8,.2,1) both; }
.launch-when span { font: 500 13px var(--body); color: #6b4a33; letter-spacing: .4px; }

/* ===== Live state ===== */
.live { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: pop .9s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { opacity: 0; scale: .6; } }
.live-title { margin: 0; font: 800 clamp(34px, 5vw, 56px)/1 var(--head); background: linear-gradient(90deg, var(--saffron), var(--maroon) 50%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visit-button { position: relative; overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--maroon), #a3241f); padding: 16px 34px; border-radius: 40px; font: 700 14px var(--head); letter-spacing: 1.5px; text-transform: uppercase; box-shadow: 0 10px 28px #7a142055, inset 0 0 0 1px #ffd59a66; transition: translate .3s; }
.visit-button:hover { translate: 0 -2px; }
.visit-button span { margin-left: 14px; }
[data-state="live"] .countdown { display: none; }
.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(circle at 50% 55%, #fff, #fff6dd 40%, #ffe2b400 75%); opacity: 0; }
[data-state="blast"] .flash { animation: flash 1.4s ease-out; }
@keyframes flash { 10% { opacity: 1; } 100% { opacity: 0; } }
[data-state="blast"] .content { animation: shake .6s .05s; }
@keyframes shake { 20% { translate: -6px 3px; } 40% { translate: 5px -4px; } 60% { translate: -3px 2px; } 80% { translate: 2px -1px; } }
[data-state="leaving"]::after { content: ''; position: fixed; inset: 0; z-index: 40; background: #fff8ec; animation: fade-out 1s ease-in both; }
@keyframes fade-out { from { opacity: 0; } }

/* ===== Footer ===== */
.foot { margin-top: auto; width: 100%; padding: 30px 24px 26px; display: flex; justify-content: center; }
.partners { width: min(1080px, 100%); padding: 8px 14px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px #3a0a0a22; animation: rise 1.2s 1.4s cubic-bezier(.2,.8,.2,1) both; }
.partners img { display: block; width: 100%; height: auto; }
#blast { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; }

/* ===== Responsive ===== */
@media (max-height: 820px) and (min-width: 641px) {
  .content { padding-top: 116px; }
  .plaque { width: min(480px, 100%); padding: 12px 20px; }
  h1 { margin-top: 16px; font-size: 18px; }
  .event-label { margin-top: 18px; }
  .num { width: 84px; height: 78px; font-size: 38px; }
  .countdown i { line-height: 72px; }
  .launch-when { margin-top: 16px; }
  .foot { padding-top: 18px; padding-bottom: 20px; }
}
@media (max-width: 900px) { .art { opacity: .5; height: min(45%, 360px); } }
@media (max-width: 640px) {
  .valance { height: 84px; background-size: auto 76px; }
  .sound-toggle { top: 94px; right: 18px; width: 38px; height: 38px; }
  .sound-nudge { top: 100px; right: 64px; font-size: 10px; }
  .content { padding: 146px 16px 0; }
  .plaque { padding: 10px 14px; border-radius: 10px; }
  h1 { font-size: 16px; }
  .facts { flex-direction: column; align-items: center; font-size: 15px; }
  .event-label { font-size: 10px; letter-spacing: 3px; gap: 10px; }
  .event-label span { width: 28px; }
  .countdown { gap: 6px; }
  .countdown i { font-size: 24px; line-height: 64px; }
  .num { width: 64px; height: 64px; font-size: 30px; border-radius: 10px; }
  .unit small { font-size: 8.5px; letter-spacing: 1.5px; }
  .launch-when { font-size: 13px; }
  .launch-when span { font-size: 11px; }
  .art { opacity: .35; height: 30%; }
  .art-left { left: 0; } .art-right { right: 0; }
  .partners { padding: 6px 8px; border-radius: 8px; }
  .backdrop::after { inset: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
