:root {
  /* From talent.rhh-global.com: ink #09090B, paper #F6F6F6, gold #F5C64D, line #E4E4E7. */
  --paper: #f6f6f6;
  --ink: #09090b;
  --muted: #484848;
  --card: #ffffff;
  --line: #e4e4e7;
  --gold: #f5c64d;
  --gold-deep: #e0b43c;
  --on-ink: #ffffff;
  --danger: #9f1239;
  --shadow: 0 16px 40px rgba(9, 9, 11, 0.08);
  font-family: Outfit, "Be Vietnam Pro", "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
::selection { color: var(--ink); background: var(--gold); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); }
body { font-size: 16px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
#stage { min-height: 100dvh; }

.phone, .remote {
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 18px 48px;
}
.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, p { margin: 0; }
h1 {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 6px 0 10px;
}
.lede-heading {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--gold-deep);
  margin: 2px 0 10px;
}
.lede { color: var(--muted); font-size: 16px; }
.examples {
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 15px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; font-weight: 600; }
.field span, .story span { font-size: 14px; }
select, textarea, input[type="text"], input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
}
textarea { min-height: 78px; resize: vertical; }
.story { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.row { display: flex; gap: 8px; }
.primary, .ghost, .tiny {
  border-radius: 14px;
  min-height: 52px;
  padding: 12px 16px;
  font-weight: 700;
}
.primary {
  width: 100%;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-size: 18px;
  margin-top: 8px;
}
.primary:disabled { opacity: 0.55; }
.ghost, .tiny {
  border: 1.5px solid var(--line);
  background: var(--card);
}
.ghost { width: 100%; margin-top: 8px; }
.tiny { min-height: 40px; width: auto; font-size: 14px; }
.saved, .note, .warn {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff6d8;
  color: var(--ink);
}
.warn { background: #fff6d8; border: 1.5px solid var(--gold-deep); }
.note { background: var(--card); color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-weight: 650; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.guide strong { color: var(--ink); }
.chip { font-size: 13px; font-weight: 750; }
.chip.ok { color: var(--ink); background: var(--gold); border-radius: 999px; padding: 2px 8px; }
.chip.bad { color: var(--danger); }
.checkrow { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 8px 0; }
.host-note { font-size: 15px; color: var(--muted); margin-top: 4px; }

.opt, .name-btn {
  width: 100%;
  text-align: left;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  margin: 8px 0;
  min-height: 64px;
}
.opt.mine, .name-btn.mine { border-color: var(--ink); background: #fff6d8; }
.opt .letter, .who-letter {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 800;
  margin-right: 8px;
}
.opt .line { font-weight: 650; font-size: 17px; }
.count { font-variant-numeric: tabular-nums; font-weight: 800; }
.track { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.fill { display: block; height: 100%; background: var(--ink); width: 0; }
.sit {
  padding: 22px 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.board { margin-top: 16px; }
.board li, .score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.tie-flag { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px; padding: 2px 8px; }
.winner-name { font-size: 42px; letter-spacing: -0.04em; line-height: 1; margin: 8px 0; }
.prize { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 20px; border-radius: 999px; padding: 4px 12px; }

.present {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 36px 22px;
  gap: 16px;
}
.top, .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.top-side { display: flex; align-items: flex-start; gap: 16px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: transparent; min-height: 36px; padding: 4px 12px; font-weight: 800; }
.lang button.on { background: #f5c64d; color: #09090b; }
.present-finale .lang { border-color: #f5c64d; background: transparent; }
.present-finale .lang button { color: #fff; }
.present-finale .lang button.on { background: #f5c64d; color: #09090b; }
.top h1 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.timer {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lobby {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: 32px;
  align-items: center;
}
.qr {
  width: min(42vh, 380px);
  max-width: 100%;
  background: var(--card);
  border-radius: 28px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.join-url {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  word-break: break-word;
  margin: 8px 0 12px;
}
.ask {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 18em;
}
.experience {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 10px 0 8px;
  max-width: 22em;
}
.lie-list { display: flex; flex-direction: column; gap: 12px; }
.lie-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px 16px;
  align-items: center;
  background: var(--card);
  border-radius: 20px;
  padding: 14px 16px;
  border: 3px solid transparent;
}
.lie-card.truth { border-color: var(--line); }
.lie-card.fake { border-color: var(--ink); background: #fff6d8; }
.lie-card .big-letter {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
}
.lie-card .statement { font-size: clamp(20px, 2.4vw, 32px); font-weight: 650; line-height: 1.25; grid-column: 2 / 3; }
.lie-card .count { font-size: clamp(26px, 3vw, 40px); }
.lie-card .track { grid-column: 2 / 4; height: 18px; }
.stamp {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 2px 8px;
  margin-left: 8px;
}
.stamp.ok { background: var(--ink); color: var(--on-ink); }
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  margin-top: 8px;
}
.who-row {
  display: grid;
  grid-template-columns: minmax(72px, 120px) 1fr 32px;
  gap: 8px;
  align-items: center;
  font-weight: 750;
  font-size: clamp(16px, 2vh, 22px);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line);
  font-weight: 700;
}
.pill.in { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: #a1a1aa; }
.pill.in .dot { background: var(--ink); }
.strip { color: var(--muted); font-weight: 700; font-size: 16px; }
.present-board { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin-top: 8px; }
#tools-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 6;
  background: var(--ink);
  color: var(--on-ink);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
}
#drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(440px, 100vw);
  overflow: auto;
  background: var(--card);
  box-shadow: -12px 0 40px rgba(28, 22, 18, 0.16);
  z-index: 5;
  padding: 18px 16px 40px;
}
#drawer h2 { font-size: 22px; letter-spacing: -0.03em; }
#drawer details { border-top: 1px solid var(--line); padding: 8px 0; }
#drawer summary { font-weight: 750; cursor: pointer; }
#drawer textarea { min-height: 64px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0; }
#toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 8;
  max-width: min(520px, calc(100% - 24px));
}
.status-line { font-weight: 700; margin: 8px 0; }
.wait { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; }

@media (max-width: 800px) {
  .present { padding: 16px; }
  .lobby, .who-grid, .present-board { grid-template-columns: 1fr; }
  .lie-card { grid-template-columns: 52px 1fr auto; }
  .lie-card .big-letter { width: 52px; height: 52px; font-size: 24px; }
}
.present-finale {
  background: #09090b;
  color: #fff;
  padding: 0;
}
.present-finale .brand { color: #f5c64d; }
.finale {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 32px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 198, 77, 0.28), transparent 55%),
    #09090b;
}
.finale-kicker {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5c64d;
}
.finale-name {
  margin: 6px 0 0;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #fff;
  max-width: 16ch;
}
.finale-prize {
  margin-top: 14px;
  background: #f5c64d;
  color: #09090b;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.03em;
  border-radius: 999px;
  padding: 8px 22px;
}
.finale-wait {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
}
.finale-mask {
  margin-top: 12px;
  width: min(220px, 32vw);
  height: min(220px, 32vw);
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: #f5c64d;
  color: #09090b;
  font-size: clamp(96px, 14vw, 160px);
  font-weight: 800;
  line-height: 1;
  animation: pulse 1.3s ease-in-out infinite;
}
.podium {
  margin-top: 22px;
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 12px;
}
.step {
  background: #18181b;
  border: 3px solid #3f3f46;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 10px 16px;
  min-height: 120px;
}
.step.first {
  min-height: 168px;
  background: #f5c64d;
  border-color: #f5c64d;
  color: #09090b;
}
.step.second { min-height: 136px; }
.step strong { display: block; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.1; }
.step em { font-style: normal; font-weight: 800; font-size: 18px; }
.step .place {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #09090b;
  color: #f5c64d;
  font-weight: 800;
  margin-bottom: 8px;
}
.step.first .place { background: #09090b; color: #f5c64d; }
.step.empty { visibility: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  top: -24px;
  border-radius: 2px;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.phone-finale { margin: 8px -6px 0; }
.phone-finale .finale { min-height: auto; padding: 22px 12px 18px; border-radius: 24px; }
.phone-finale .finale-name { font-size: 42px; }
.phone-finale .podium { display: none; }
.phone-finale .finale-mask { width: 120px; height: 120px; font-size: 72px; border-radius: 24px; }
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110dvh) rotate(240deg); opacity: 0.9; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
