/* Ntrigue — dark lounge, one hot accent, playing-card phase cards.
   Mobile-first, thumb-reach, huge type, one screen per phase. */

:root {
  --bg: #12100e;
  --felt: #1b1713;
  --card: #221d18;
  --edge: #3a322a;
  --ink: #f2e9dc;
  --mute: #a4988a;
  --hot: #ff3d5a;          /* the one hot accent */
  --hot-dim: #b32038;
  --gold: #d8b26e;
  --ok: #7fb069;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  background: radial-gradient(120% 100% at 50% 0%, #201a14 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  overflow: hidden;
}

#app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 12px;
}

.card {
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  background: linear-gradient(170deg, var(--card), var(--felt));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.center { text-align: center; align-items: center; }

.logo {
  font-size: 2.4rem;
  letter-spacing: .35em;
  text-indent: .35em;
  color: var(--gold);
  font-weight: normal;
}
.tagline { color: var(--hot); font-style: italic; font-size: 1.05rem; }
.kicker {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
h2 { font-size: 1.5rem; font-weight: normal; line-height: 1.25; }
.prompt { font-size: 1.45rem; font-style: italic; }
.mute { color: var(--mute); }
.small { font-size: .85rem; }
.hot-text { color: var(--hot); }
.quip { color: var(--gold); font-style: italic; font-size: 1.05rem; }
.big-quip { font-size: 1.4rem; line-height: 1.3; }
.locked { color: var(--ok); font-size: 1.1rem; }

a { color: var(--gold); }

.btn {
  font-family: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: #2c2620;
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 15px 22px;
  min-height: 54px;
  width: 100%;
  cursor: pointer;
  transition: transform .06s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; }
.btn.hot { background: linear-gradient(160deg, var(--hot), var(--hot-dim)); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.big { font-size: 1.35rem; min-height: 62px; }
.mini {
  font-size: 1rem; background: transparent; color: var(--mute);
  border: 1px solid var(--edge); border-radius: 8px; padding: 4px 10px; cursor: pointer;
}

input, textarea {
  font-family: inherit; font-size: 1.2rem;
  width: 100%; padding: 14px;
  background: #171310; color: var(--ink);
  border: 1px solid var(--edge); border-radius: 12px;
  outline: none;
}
textarea { resize: none; }
input:focus, textarea:focus { border-color: var(--gold); }

.qr { background: #f5efe4; padding: 10px; border-radius: 12px; width: min(60vw, 220px); }
.qr svg { display: block; width: 100%; height: auto; }

.seats, .scores { list-style: none; width: 100%; }
.seat-row, .score-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 6px; border-bottom: 1px solid var(--edge);
  font-size: 1.15rem;
}
.seat-n {
  width: 28px; height: 28px; flex: none;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.seat-name { flex: 1; text-align: left; }
.pts { color: var(--gold); font-size: 1.3rem; min-width: 2ch; text-align: right; }
.dag { letter-spacing: 2px; }

.matchup {
  font-size: 1.7rem; padding: 16px 0;
  border-bottom: 1px dashed var(--edge);
}
.matchup:last-of-type { border-bottom: none; }
.vs { color: var(--hot); padding: 0 10px; }

.timer {
  font-size: 3.4rem; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.timer.hot-t { color: var(--hot); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.stakes { font-size: 1.1rem; line-height: 1.4; }
.cheat summary { cursor: pointer; list-style: none; text-decoration: underline dotted; }
.cheat summary::-webkit-details-marker { display: none; }

.choices { display: flex; gap: 12px; width: 100%; }
.choice { font-size: 1.4rem; letter-spacing: .1em; min-height: 92px; }
.choice.share { background: linear-gradient(160deg, var(--hot), var(--hot-dim)); border-color: transparent; color: #fff; }
.choice.hold { background: #2c2620; }

.dots { font-size: 4rem; color: var(--gold); animation: pulse 1s infinite; }

.eyes-only {
  width: 100%;
  background: #0d0b09;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  animation: flip .45s ease;
}
@keyframes flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
.secret-text { font-size: 1.35rem; font-style: italic; line-height: 1.35; }

.exposed {
  width: 100%;
  border: 1px solid var(--hot);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.stash-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.stash {
  font-family: inherit; font-size: 1.05rem; text-align: left;
  background: #171310; color: var(--ink);
  border: 1px solid var(--edge); border-radius: 12px;
  padding: 13px 14px; cursor: pointer;
}
.stash.sel { border-color: var(--hot); color: var(--hot); }

.finale-moves { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.finale-moves .desc { display: block; font-size: .85rem; opacity: .75; margin-top: 3px; }

.awards p { padding: 6px 0; font-size: 1.2rem; }
.awards .kicker { display: block; }

.hostbar {
  width: 100%; max-width: 420px;
  display: flex; gap: 10px;
}
.hostbar .btn { min-height: 48px; font-size: 1rem; }

.sheet-btn {
  position: fixed; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(34,29,24,.9); color: var(--mute);
  border: 1px solid var(--edge); font-size: 1.1rem; cursor: pointer;
}
.sheet {
  position: fixed; inset: 0; background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 10;
}
.sheet-inner {
  background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 24px 20px; max-width: 420px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: .98rem; line-height: 1.4;
}
.payoff {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 8px; border-top: 1px solid var(--edge);
  text-align: left; width: 100%;
}
.payoff b { color: var(--gold); font-size: .9rem; letter-spacing: .04em; }

.payoff-choice { color: var(--gold); font-style: italic; }

/* warm-up coaching lines + your own matchup highlighted */
.coach {
  color: var(--gold); font-style: italic; font-size: .9rem; line-height: 1.4;
  border: 1px dashed var(--edge); border-radius: 10px; padding: 8px 12px;
}
.matchup.mine { color: var(--gold); }

/* --- v1: code join + stage presence --- */
.code-row { display: flex; gap: 10px; width: 100%; }
.code-row input {
  width: 7ch; text-align: center; text-transform: uppercase;
  letter-spacing: .2em; font-size: 1.4rem; flex: none;
}
.code-row .btn { flex: 1; }
.stage-chip {
  position: fixed; top: 12px; left: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(34,29,24,.9); border: 1px solid var(--edge);
  color: var(--gold); font-size: .9rem;
}
.stall-chip {
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  padding: 8px 14px; border-radius: 999px; text-align: center;
  background: rgba(34,29,24,.94); border: 1px solid var(--hot-dim);
  color: var(--hot); font-size: .85rem;
  animation: pulse 2s infinite;
}

/* the reaction rail: one-tap emoji on reveal beats */
.react-rail { display: flex; gap: 10px; justify-content: center; }
.react {
  font-size: 1.5rem; background: transparent; cursor: pointer;
  border: 1px solid var(--edge); border-radius: 999px; padding: 8px 14px;
  position: relative; transition: transform .06s;
}
.react:active { transform: scale(1.2); }
.react .rc {
  position: absolute; top: -6px; right: -4px;
  font-size: .7rem; color: var(--gold);
  background: var(--felt); border: 1px solid var(--edge);
  border-radius: 999px; padding: 1px 5px;
}
