:root {
  color-scheme: dark;
  --bg: #07060b;
  --pink: #ff4d8d;
  --violet: #9a5cff;
  --card: rgba(18, 14, 26, 0.88);
  --line: rgba(255, 120, 170, 0.35);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  height: 100svh;
  min-height: 100svh;
}

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

.screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding:
    max(10px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.top, .livebar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.brand {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 18px;
}

.brand span { color: var(--pink); }

.badge, .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 700;
}

.badge {
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  box-shadow: 0 0 18px rgba(255, 77, 141, 0.45);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc6a;
  box-shadow: 0 0 8px #3ddc6a;
  flex: 0 0 auto;
}

.dot.pulse { animation: pulse 1.6s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 106, 0.7); }
  100% { box-shadow: 0 0 0 8px rgba(61, 220, 106, 0); }
}

.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 11, 0.28) 0%, rgba(7, 6, 11, 0.05) 32%, rgba(7, 6, 11, 0.55) 58%, #07060b 100%);
}

.copy, .stack {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 8.2vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.sub, .fine, .wait {
  margin: 8px 0 0;
  color: #ddd4e6;
  font-size: 14px;
  line-height: 1.3;
}

.cta {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  min-height: 56px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #ff3d86, #b14dff);
  color: #fff;
  font: 800 18px/1.1 "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(255, 61, 134, 0.48);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cta:disabled { opacity: 0.72; }

.fine {
  color: #b9aec8;
  font-size: 12px;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kicker {
  margin: 14px 0 0;
  color: #ffd0e4;
  font-size: 13px;
  font-weight: 700;
}

.picks {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  min-height: 0;
}

.pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pick img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 18%;
  flex: 0 0 auto;
}

.pick strong { display: block; font-size: 16px; }
.pick em { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #c8bdd6; font-style: normal; font-size: 13px; }
.pick.is-on {
  border-color: #ff7ab3;
  box-shadow: 0 0 0 1px #ff4d8d, 0 0 22px rgba(255, 77, 141, 0.35);
}

.livebar { justify-content: flex-start; }
.livebar strong { font-size: clamp(20px, 6vw, 28px); letter-spacing: -0.03em; }
.timer {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 77, 141, 0.16);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 32px rgba(155, 92, 255, 0.28);
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.faces {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
}

.faces img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #07060b;
  margin-left: -8px;
}

.faces img:first-child { margin-left: 0; }

.warn {
  margin: 10px 0 0;
  color: #ffd0e2;
  font-weight: 800;
  font-size: 15px;
}

.track-status {
  margin: 8px 0 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
}

@media (max-height: 700px) {
  .screen { padding-top: 8px; padding-bottom: 8px; }
  h1 { font-size: 24px; margin-top: 4px; }
  .kicker { margin-top: 4px; }
  .picks { margin-top: 6px; gap: 4px; }
  .pick { padding: 4px; }
  .pick img { width: 44px; height: 44px; }
  .cta { min-height: 46px; margin-top: 6px; font-size: 16px; }
  .fine { margin-top: 4px; }
  .warn { margin-top: 6px; }
}

@media (max-height: 520px) {
  html, body { height: auto; overflow: auto; }
  .screen { height: auto; max-height: none; overflow: auto; }
}

@media (min-width: 760px) {
  body { display: grid; place-items: center; }
  .screen {
    width: min(430px, 100%);
    height: min(920px, 100dvh);
    border-radius: 28px;
    box-shadow: 0 0 80px rgba(255, 77, 141, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot.pulse { animation: none; }
}
