:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050505;
  color: #f5f5f5;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -15%, rgba(255,255,255,.08), transparent 32rem),
    #050505;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  isolation: isolate;
}

.glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
  animation: float 8s ease-in-out infinite alternate;
}
.glow-a { background: #fff; top: -240px; left: -120px; }
.glow-b { background: #fff; right: -260px; bottom: -260px; animation-delay: -3s; }

.panel {
  width: min(680px, 100%);
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background: rgba(11,11,11,.84);
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
  backdrop-filter: blur(18px);
  animation: enter .6s cubic-bezier(.2,.8,.2,1) both;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #999;
}
h1 {
  margin: 12px 0 12px;
  font-size: clamp(36px, 8vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 9ch;
}
.lead {
  margin: 0;
  color: #aaa;
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
}
.lead strong { color: #eaeaea; font-weight: 650; }

.games {
  display: grid;
  gap: 8px;
  margin: 28px 0 30px;
}
.game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #d8d8d8;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 0 14px rgba(255,255,255,.4);
}

.play {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #050505;
  background: #f5f5f5;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.play:hover { transform: translateY(-2px); background: #fff; }
.play:active { transform: translateY(0) scale(.992); }
.play:disabled { cursor: wait; opacity: .55; transform: none; }
.play svg { width: 18px; height: 18px; fill: currentColor; transition: transform .18s ease; }
.play:hover svg { transform: translateX(2px); }

.status {
  min-height: 18px;
  margin: 13px 0 0;
  text-align: center;
  font-size: 12px;
  color: #676767;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}
.backdrop[hidden] { display: none; }
.admin {
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.11);
  background: #0b0b0b;
  padding: 22px;
  box-shadow: 0 24px 90px rgba(0,0,0,.65);
  animation: pop .18s ease-out both;
}
.admin-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 22px; }
.admin h2 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.025em; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  background: #121212; color: #aaa; cursor: pointer; font-size: 22px; line-height: 1;
}
.admin label { display: block; margin: 14px 0 7px; font-size: 12px; color: #bdbdbd; font-weight: 650; }
.admin label span { color: #666; font-weight: 500; }
.admin input {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: #111; color: #f4f4f4; outline: none; padding: 0 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.admin input:focus { border-color: #686868; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.admin-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
.admin-actions button { height: 46px; border-radius: 12px; cursor: pointer; font-weight: 750; }
.secondary { border: 1px solid rgba(255,255,255,.1); background: #121212; color: #d6d6d6; }
.primary { border: 0; background: #f5f5f5; color: #080808; }
.admin-status { min-height: 18px; margin: 12px 0 0; font-size: 12px; color: #8b8b8b; }
.admin-status.ok { color: #b8ffbf; }
.admin-status.error { color: #ff9999; }

@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes float { to { transform: translate3d(55px, 30px, 0) scale(1.08); } }

@media (max-width: 560px) {
  .shell { padding: 14px; }
  .panel { border-radius: 22px; padding: 28px 22px; }
  .admin-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.field-help {
  margin: 8px 1px 4px;
  color: #747474;
  font-size: 11px;
  line-height: 1.5;
}
.field-help strong { color: #a9a9a9; font-weight: 650; }
body.modal-open { overflow: hidden; }
.video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.92);
  animation: fadeIn .18s ease-out both;
}
.video-backdrop[hidden] { display: none; }
.video-shell {
  position: relative;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 36px);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 110px rgba(0,0,0,.7);
}
.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  background: rgba(8,8,8,.82);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  backdrop-filter: blur(10px);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sound-btn {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(8,8,8,.82);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}
.sound-btn[hidden] { display: none; }
