html.play-root,
html.play-root body {
  height: 100%;
  background: var(--play-bg, #0f6a45);
  color: var(--play-ink, #f3fff6);
}

html.play-root body {
  overflow: hidden;
}

.play-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: linear-gradient(var(--play-bg, #0f6a45), var(--play-bg, #0f6a45) 82%, transparent);
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-sizing: border-box;
}

.play-top .menu-btn {
  justify-self: start;
}

.play-top .brand {
  justify-self: center;
  pointer-events: auto;
  min-height: 40px;
  padding: 2px 8px 2px 2px;
  background: rgba(12, 10, 8, 0.78);
}

.play-top .brand-logo {
  height: 28px;
}

.play-top .sound-toggle {
  justify-self: end;
}

.play-top .lang-switch {
  grid-column: 1 / -1;
  justify-self: center;
}

.play-top .menu-btn,
.play-top .sound-toggle {
  pointer-events: auto;
}

.menu-btn,
.play-top .sound-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1915;
  font-family: var(--font-body, "Outfit", system-ui, sans-serif);
  font-weight: 750;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.unlock-pill {
  position: fixed;
  top: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  z-index: 6;
  width: min(408px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.72);
  color: #f6f1e8;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
  animation: pill-away 0.35s ease 4.2s forwards;
}

@keyframes pill-away {
  to { opacity: 0; visibility: hidden; }
}

.feed {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.snap-card {
  min-height: 100dvh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: calc(156px + env(safe-area-inset-top)) 16px calc(72px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--play-bg, #0f6a45);
  color: var(--play-ink, #f3fff6);
}

.theme-survive {
  --play-bg: #0f6a45;
  --play-ink: #f3fff6;
  --play-btn: #f3fff6;
  --play-btn-ink: #0f3d28;
}

.theme-whatif {
  --play-bg: #241b4a;
  --play-ink: #f6f3ff;
  --play-btn: #f6f3ff;
  --play-btn-ink: #241b4a;
}

.theme-rich {
  --play-bg: #8a3e16;
  --play-ink: #fff8f2;
  --play-btn: #fff6ec;
  --play-btn-ink: #2a1c10;
}

.theme-last {
  --play-bg: #100e14;
  --play-ink: #f3eadf;
  --play-btn: transparent;
  --play-btn-ink: #f3eadf;
}

.theme-karma {
  --play-bg: #2a160f;
  --play-ink: #fff4e8;
  --play-btn: #fff1e4;
  --play-btn-ink: #2a160f;
}

.card-kicker {
  margin: 0;
  flex: none;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-media {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
}

.card-face,
.clip-poster,
.clip-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.theme-whatif .card-face,
.theme-whatif .clip-video {
  object-position: center 40%;
}

.theme-rich .card-face,
.theme-rich .clip-video {
  object-position: center 82%;
}

.theme-last .card-face,
.theme-last .clip-video {
  object-position: center 48%;
}

.theme-karma .card-face,
.theme-karma .clip-video {
  object-position: center 42%;
}

.theme-survive .card-face,
.theme-survive .clip-video {
  object-position: center 62%;
}

.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: start;
  flex: none;
}

.card-head:not(:has(.timer)) {
  grid-template-columns: minmax(0, 1fr);
}

.card-prompt {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(22px, 6.2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 620;
}

.timer {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
}

.timer svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.ring-track,
.ring {
  fill: none;
  stroke-width: 4;
}

.ring-track { stroke: rgba(255, 255, 255, 0.28); }
.ring {
  stroke: #ffcf70;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 0;
}

.timer.is-running .ring {
  animation: drain 10s linear forwards;
}

.timer-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 750;
}

@keyframes drain {
  to { stroke-dashoffset: 113; }
}

.card-options,
.card-result {
  display: grid;
  gap: 8px;
  flex: none;
}

.card-options button,
.swipe-hint,
.secret-actions button {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--play-btn);
  color: var(--play-btn-ink);
  font: 700 17px/1.25 var(--font-body, system-ui, sans-serif);
  text-align: left;
  touch-action: manipulation;
}

.theme-last .card-options button,
.theme-last .swipe-hint {
  border-color: rgba(243, 234, 223, 0.7);
}

.card-options button.is-pick {
  outline: 3px solid #ffcf70;
  outline-offset: 2px;
}

.snap-card[data-answered="1"] {
  gap: 6px;
}

.snap-card[data-answered="1"] .card-media {
  flex: 0 0 15dvh;
  min-height: 108px;
  max-height: 168px;
}

.snap-card[data-answered="1"] .card-options button,
.snap-card[data-answered="1"] .swipe-hint {
  min-height: 44px;
  padding: 8px 12px;
}

.snap-card[data-answered="1"] .card-result {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.card-result {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.card-result h2 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card-result p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.vote-line {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
}

.watch-line {
  flex: none;
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

.social-row {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.tiktok-card {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: inherit;
  font-weight: 750;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.swipe-hint {
  flex: none;
  text-align: center;
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.45);
}

.theme-last .snap-card.is-scare {
  animation: flicker 6.5s steps(1, end) infinite;
}

.secret-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #100e14;
  color: #f6f1e8;
  overflow: auto;
  padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
}

body:has(#secret-layer:not([hidden])) .play-top,
body:has(#secret-layer:not([hidden])) .unlock-pill {
  visibility: hidden;
}

.secret-layer button {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #f4efe6;
  background: transparent;
  color: #f6f1e8;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
}

.secret-layer h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 8px 0;
}

.secret-card {
  width: min(440px, 100%);
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .timer.is-running .ring,
  .theme-last .snap-card.is-scare,
  .feed { animation: none !important; scroll-behavior: auto; }
}
