:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0c0e;
  color: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen { position: fixed; inset: 0; overflow: hidden; background: #0b0c0e; }
.full-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
video.full-frame { object-fit: cover; object-position: center; }
iframe.full-frame { background: #fff; }
.bottom-shade { position: absolute; inset: 65% 0 0; pointer-events: none; background: linear-gradient(transparent, rgb(0 0 0 / 24%)); }
.glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 6px;
  background: rgb(255 255 255 / 16%);
  color: #fff;
  box-shadow: 0 4px 18px rgb(0 0 0 / 25%), 0 1px 4px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 15%);
  backdrop-filter: blur(14px) brightness(.75);
  -webkit-backdrop-filter: blur(14px) brightness(.75);
  text-shadow: 0 1px 5px rgb(0 0 0 / 65%);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.glass:hover { background: rgb(255 255 255 / 29%); transform: translateY(-2px); box-shadow: 0 6px 22px rgb(0 0 0 / 32%); }
.glass:active { transform: translateY(0); }
.glass:focus-visible { outline: 2px solid white; outline-offset: 5px; box-shadow: 0 0 0 6px rgb(0 0 0 / 70%); }
.text-button { min-width: 126px; min-height: 48px; padding: 14px 30px; font-size: 14px; letter-spacing: .08em; }
.home-actions { position: absolute; z-index: 2; bottom: max(44px, env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 16px; padding: 0 20px; }
.exit-button { position: absolute; z-index: 2; right: max(28px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); width: 52px; height: 52px; background: rgb(50 50 50 / 25%); }
.status { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 13px; letter-spacing: .06em; color: #d8dadd; text-align: center; pointer-events: none; }
.play-prompt { position: absolute; top: 50%; left: 50%; translate: -50% -50%; padding: 16px 24px; }
.recovery { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(90%, 440px); padding: 24px; text-align: center; border-radius: 8px; background: rgb(0 0 0 / 70%); }
.recovery p { margin: 0 0 22px; line-height: 1.6; font-size: 14px; }
.recovery-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: #0b0c0e; }
@media (max-width: 600px) {
  .home-actions { bottom: max(28px, env(safe-area-inset-bottom)); gap: 12px; }
  .text-button { min-width: 112px; }
  .exit-button { right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .glass { transition: none; } .glass:hover { transform: none; } }
