@font-face { font-family: Inter; src: url('assets/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/Inter-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('assets/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
:root { color-scheme: dark; --paper: #fffefb; --ink: #773719; --accent: #ed9a5f; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; background: #a05838; }
body { font-family: Inter, sans-serif; color: var(--paper); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid var(--paper); outline-offset: 6px; }
button:disabled { cursor: default; opacity: .65; }
.stream { position: fixed; inset: 0; overflow: hidden; background: #111; touch-action: none; }
.stream video { width: 100% !important; height: 100% !important; object-fit: contain; }
.stream:focus { outline: none; }
.splash { position: fixed; z-index: 10; inset: 0; overflow: auto; isolation: isolate; opacity: 1; transition: opacity .38s ease, visibility .38s; }
.splash[data-state='live'] { opacity: 0; visibility: hidden; pointer-events: none; }
.gold { position: fixed; z-index: -3; inset: -8% 0; background: linear-gradient(180deg, #cb6f3d 3.7037%, #ed9a5f 27.7426%, #c66a3b 62.0194%, #a05838 96.2963%); animation: gold-breathe 18s ease-in-out infinite; }
.orbit { position: fixed; z-index: -2; width: 100%; height: 100%; inset: 0; object-fit: cover; pointer-events: none; transform-origin: center; animation: orbit-breathe 24s infinite; will-change: transform; }
.silver-shapes { display: none; position: fixed; z-index: -2; inset: 5% -1% -5%; width: 102%; height: 100%; object-fit: fill; pointer-events: none; }
.presentation { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 24px 130px; }
.brand { width: clamp(245px, 24vw, 480px); max-width: 78vw; height: auto; flex: 0 0 auto; animation: appear .8s ease both; }
.session-controls { margin-top: clamp(32px, 5.5vh, 76px); width: min(420px, 100%); min-height: 145px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.primary { min-width: 236px; min-height: 60px; padding: 18px 26px; border: 1px solid rgba(255,254,251,.7); border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; transition: background .18s, transform .18s; }
.primary span { font-size: 23px; line-height: 1; }
.primary:hover:not(:disabled) { background: #fff; transform: translateY(-2px); }
.primary:active:not(:disabled) { transform: translateY(0); }
.status { max-width: 390px; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.65; text-wrap: balance; }
.secondary { color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgba(255,254,251,.55); padding: 8px 0; min-height: 44px; font-size: 13px; }
.loader { position: relative; width: 100px; height: 31px; margin: 15px 0 14px; }
.loader img { width: 100%; height: 100%; opacity: .4; }
.loader-light { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, transparent 25%, #fffefb 50%, transparent 75%, transparent 100%); background-size: 250% 100%; -webkit-mask: url('assets/loader.svg') no-repeat center / contain; mask: url('assets/loader.svg') no-repeat center / contain; animation: loader-wave 2.4s linear infinite; }
.credit { position: fixed; z-index: 2; right: max(32px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); width: 142px; min-height: 44px; color: inherit; text-decoration: none; animation: appear 1s ease both; transition: opacity .2s ease; }
.credit:hover { opacity: .8; }
.credit:focus-visible { outline: 2px solid var(--paper); outline-offset: 8px; border-radius: 2px; }
.credit span { display: block; font-size: 11px; font-weight: 500; white-space: nowrap; }
.credit img { display: block; width: 142px; height: auto; margin-top: 10px; }
.hud { position: fixed; z-index: 20; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; max-width: calc(100vw - 36px); }
.hud button { min-height: 44px; padding: 10px 15px; color: #fff; border: 1px solid #ffffff45; border-radius: 4px; background: #222b; backdrop-filter: blur(10px); font-size: 12px; }
.hud button:hover { background: #444e; }
.notice { position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); background: #252525e8; border-radius: 4px; padding: 12px 18px; font-size: 13px; }
.no-script { position: fixed; z-index: 50; inset: auto 24px 24px; padding: 20px; background: #472b22; text-align: center; }
body[data-theme='silver'] { background: #737783; --ink: #495058; }
body[data-theme='silver'] .splash { background: #737783; }
body[data-theme='silver'] .gold, body[data-theme='silver'] .orbit { display: none; }
body[data-theme='silver'] .silver-shapes { display: block; }
body[data-theme='silver'] .loader-light { -webkit-mask-image: url('assets/loader-silver.svg'); mask-image: url('assets/loader-silver.svg'); }
.splash[data-state='live'] .gold, .splash[data-state='live'] .orbit, .splash[data-state='live'] .loader-light { animation-play-state: paused; }
@keyframes gold-breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
@keyframes orbit-breathe {
  0% { transform: scale(1); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  16.666667% { transform: scale(1.08); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { transform: scale(1); }
}
@keyframes loader-wave { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .presentation { padding: 54px 24px 120px; }
  .brand { width: min(290px, 78vw); }
  .session-controls { margin-top: 42px; }
  .credit { right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); width: 128px; }
  .credit img { width: 128px; }
  .credit span { font-size: 10px; }
  .orbit { width: 170%; left: -35%; object-fit: cover; }
  .hud { top: max(10px, env(safe-area-inset-top)); right: 10px; max-width: calc(100vw - 20px); gap: 5px; }
  .hud button { font-size: 11px; padding: 9px 10px; }
}
@media (max-height: 550px) and (min-width: 600px) {
  .presentation { padding: 36px 24px 78px; }
  .brand { width: 210px; }
  .session-controls { margin-top: 20px; min-height: 120px; gap: 12px; }
  .primary { min-height: 50px; padding-top: 12px; padding-bottom: 12px; }
  .credit { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .loader img { opacity: .8; }
  .loader-light { display: none; }
}
