/* The phone: one column, big targets, nothing that needs a second hand. */

body.play { min-height: 100dvh; display: flex; flex-direction: column; }
.play main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }

.topbar {
  display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, black);
}
.topbar .code { font-family: var(--display); font-size: 1.3rem; letter-spacing: .12em; color: var(--accent); }
.topbar .score { margin-left: auto; text-align: right; line-height: 1.05; }
.topbar .score b { display: block; font-size: 1.35rem; }
.topbar .score small { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; }
.dot.off { background: var(--bad); }

.join-code {
  font-family: var(--display); font-size: 2.2rem; letter-spacing: .3em; text-align: center; text-transform: uppercase;
  min-height: 72px;
}

.hero { text-align: center; padding: 18px 0 4px; display: grid; gap: 10px; justify-items: center; }
.hero h1 { font-size: 2rem; color: var(--accent); }
.hero p { margin: 0; color: var(--muted); }

.line {
  display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border-radius: var(--radius); padding: 12px 14px;
  font-style: italic; animation: rise .3s ease;
}
.line img { width: 44px; height: 44px; border-radius: 50%; flex: none; }

.phase-title { font-size: 1.7rem; color: var(--accent); text-align: center; }
.prompt { font-size: 1.25rem; font-weight: 700; text-align: center; }
.wait { text-align: center; color: var(--muted); padding: 24px 0; }

.choices { display: grid; gap: 12px; }
.choice {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; text-align: left;
  min-height: 72px; padding: 10px 16px; border: 0; border-radius: var(--radius);
  background: var(--c); color: #fff; font-weight: 800; font-size: 1.15rem; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 60%, black);
}
.choice:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 60%, black); }
.choice .tag { display: grid; justify-items: center; line-height: 1; }
.choice .tag b { font-size: .9rem; }
.choice[disabled] { opacity: .35; }
.choice.picked { opacity: 1; outline: 4px solid var(--ink); outline-offset: 2px; }

.timer { display: flex; justify-content: center; }

.inbox-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inbox-pad .btn { min-height: 120px; font-size: 1.25rem; flex-direction: column; }
.inbox-pad .btn.l { background: var(--choice0); color: #fff; }
.inbox-pad .btn.r { background: var(--choice1); color: #fff; }
.inbox-pad .btn.picked { opacity: 1; outline: 4px solid var(--ink); outline-offset: 2px; }
.item-card {
  text-align: center; font-size: 1.8rem; font-weight: 800; padding: 28px 12px; background: var(--panel);
  border-radius: var(--radius); animation: pop .18s ease; touch-action: pan-y;
}
.item-card.right { box-shadow: inset 0 0 0 4px var(--good); }
.item-card.wrong { box-shadow: inset 0 0 0 4px var(--bad); animation: shake .3s; }

.save-btn {
  min-height: 160px; font-size: 2rem; border-radius: 50%; aspect-ratio: 1; width: min(70vw, 260px); margin: 0 auto;
  background: var(--bad); color: #fff; font-family: var(--display); box-shadow: 0 8px 0 color-mix(in srgb, var(--bad) 55%, black);
}
.save-btn:active { transform: translateY(5px); box-shadow: 0 3px 0 color-mix(in srgb, var(--bad) 55%, black); }
.save-btn.done { background: var(--panel-2); box-shadow: none; }
.word { text-align: center; font-size: 2.2rem; font-weight: 800; min-height: 1.4em; animation: pop .15s ease; }
.clue { text-align: center; color: var(--accent); font-family: var(--display); font-size: 1.4rem; }

.hints { display: grid; gap: 8px; }
.hints li { list-style: none; background: var(--panel); border-radius: 10px; padding: 8px 12px; animation: rise .3s; }
.hints { padding: 0; margin: 0; }
.garble { font-family: var(--display); font-size: 1.8rem; text-align: center; color: var(--accent); }

.ballot { display: grid; gap: 10px; }
.ballot .btn { justify-content: flex-start; text-align: left; min-height: 64px; font-weight: 700; background: var(--panel-2); color: var(--ink); }
.ballot .btn.picked { background: var(--accent); color: #17130b; }

.verdict { text-align: center; display: grid; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--panel); animation: pop .25s ease; }
.verdict.good { background: color-mix(in srgb, var(--good) 28%, var(--panel)); }
.verdict.bad { background: color-mix(in srgb, var(--bad) 25%, var(--panel)); }
.verdict .big { font-family: var(--display); font-size: 2.2rem; }
.verdict .pts { font-size: 1.5rem; font-weight: 800; }

.slip {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 20%, var(--panel)) 0 12px, var(--panel) 12px 24px);
  border: 2px dashed var(--accent); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px;
}
.slip h3 { color: var(--accent); }
.targets { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.targets .btn { justify-content: flex-start; }
.targets .btn.picked { background: var(--accent); color: #17130b; }
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stakes .btn.picked { background: var(--accent); color: #17130b; }

.targeted { text-align: center; display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); border: 3px solid var(--bad); animation: pop .3s; }
.targeted h2 { color: var(--bad); }

.board { display: grid; gap: 6px; padding: 0; margin: 0; }
.board li { list-style: none; display: grid; grid-template-columns: 2em auto 1fr auto; gap: 10px; align-items: center; background: var(--panel); border-radius: 10px; padding: 8px 12px; }
.board li.me { box-shadow: inset 0 0 0 2px var(--accent); }
.board .rank { font-weight: 800; color: var(--muted); }
.board .sc { font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats div { background: var(--panel-2); border-radius: 10px; padding: 10px 4px; }
.stats b { display: block; font-size: 1.3rem; }
.stats small { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.foot { text-align: center; color: var(--muted); font-size: .9rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
