:root {
  --bg: #14080c;
  --bg-elev: #1f0f14;
  --text: #f7ebe6;
  --muted: #c9a8a0;
  --accent: #e8a87c;
  --accent-hot: #c44536;
  --line: rgba(247, 235, 230, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max-w: 430px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

button,
input {
  font: inherit;
  color: inherit;
}

.app {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100dvh;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.screen-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: calc(12px + var(--safe-top)) 20px calc(20px + var(--safe-bottom));
  position: relative;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* START */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 8, 12, 0.35) 0%, rgba(20, 8, 12, 0.82) 55%, rgba(20, 8, 12, 0.96) 100%),
    url("../assets/level2-flirty.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.start-inner {
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: calc(28px + var(--safe-bottom));
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 12vw, 56px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 28ch;
}

.players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.player-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.player-role {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.player-card input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
  outline: none;
  font-size: 16px;
  font-weight: 600;
}

.who-first {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.who-first > span {
  font-size: 12px;
  color: var(--muted);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.seg-btn {
  border: 0;
  border-radius: 11px;
  padding: 12px 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.seg-btn.active {
  background: rgba(232, 168, 124, 0.2);
  color: var(--text);
}

.hint {
  margin: 0;
  font-size: 12px;
  color: rgba(201, 168, 160, 0.75);
  text-align: center;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(10px + var(--safe-top)) 14px 8px;
  position: relative;
  z-index: 2;
}

.topbar-over {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.topbar-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.topbar-title.light,
.icon-btn.light {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.topbar-spacer {
  width: 40px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 18px;
}

.icon-btn.light {
  background: rgba(0, 0, 0, 0.35);
}

/* LEVELS */
.levels-inner {
  padding-top: 8px;
  gap: 12px;
}

.section-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.levels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.level-card {
  position: relative;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  min-height: 108px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: var(--bg-elev);
  color: #fff;
}

.level-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.level-card:active .level-card-bg {
  transform: scale(1.08);
}

.level-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 4, 6, 0.88) 0%, rgba(10, 4, 6, 0.45) 100%);
}

.level-card-content {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 108px;
  justify-content: center;
}

.level-heat {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.level-name {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.level-sub {
  font-size: 13px;
  color: rgba(247, 235, 230, 0.72);
}

/* PLAY */
.play-inner {
  justify-content: center;
  gap: 18px;
  padding-bottom: calc(40px + var(--safe-bottom));
}

.turn-pill {
  align-self: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(232, 168, 124, 0.12);
  border: 1px solid rgba(232, 168, 124, 0.28);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-btn {
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 180px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.choice-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}

.choice-btn.truth {
  background: linear-gradient(165deg, #2a151c 0%, #3a1c24 100%);
}

.choice-btn.truth::before {
  background: radial-gradient(circle at 30% 20%, rgba(232, 168, 124, 0.28), transparent 55%);
}

.choice-btn.dare {
  background: linear-gradient(165deg, #3a1218 0%, #5a1c24 100%);
}

.choice-btn.dare::before {
  background: radial-gradient(circle at 70% 15%, rgba(196, 69, 54, 0.35), transparent 55%);
}

.choice-btn:active {
  transform: scale(0.98);
}

.choice-label {
  position: relative;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
}

.choice-sub {
  position: relative;
  font-size: 13px;
  color: var(--muted);
}

/* CARD */
.card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 14s ease-in-out infinite alternate;
}

.card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 4, 6, 0.35) 0%,
    rgba(10, 4, 6, 0.25) 35%,
    rgba(10, 4, 6, 0.78) 62%,
    rgba(10, 4, 6, 0.96) 100%
  );
}

.card-body {
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.card-text {
  margin: 0;
  font-size: clamp(22px, 5.8vw, 28px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 4px;
}

/* BUTTONS */
.btn {
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #e8a87c, #c44536);
  color: #1a0a0e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

/* iPhone 15 Pro Max comfort */
@media (min-width: 430px) {
  .app {
    border-radius: 0;
  }
}

@media (max-height: 760px) {
  .choice-btn {
    min-height: 150px;
  }

  .brand {
    font-size: 44px;
  }
}
