/* 베팅 코인 시스템 — 모바일 우선, 다크 테마 */

:root {
  /* 이미 어두운 화면임을 알려 안드로이드 크롬의 '자동 다크 모드'가
     색을 한 번 더 뒤집어 흰 배경으로 만드는 것을 막는다 */
  color-scheme: dark;

  --bg: #0f1419;
  --bg-2: #161c24;
  --surface: #1c242e;
  --surface-2: #232d3a;
  --line: #2c3846;
  --text: #e8edf3;
  --muted: #8a99ab;
  --accent: #f2b544;
  --accent-ink: #2a1e05;
  --ok: #35c07a;
  --danger: #e2564b;
  --info: #4d9de0;
  --allin: #c264e0;
  --radius: 14px;
  --dock-h: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

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

/* 배경을 지정하지 않은 버튼은 '투명'이 기본이어야 한다.
   브라우저 기본값(흰 배경)에 밝은 글자색이 겹치면 글씨가 사라진다.
   규칙이 하나 빠져도 안 보이는 글자 대신 안 보이는 테두리로 끝나게 하는 안전장치. */
button { cursor: pointer; background: transparent; border-color: var(--line); }
h1, h2 { margin: 0; }

.screen { display: none; min-height: 100%; flex-direction: column; }
.screen.active { display: flex; }

/* ───────────────────────── 첫 화면 ───────────────────────── */

.home-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 32px 20px calc(40px + var(--dock-h));
}

.brand { text-align: center; margin-bottom: 26px; }
.brand-mark { font-size: 44px; line-height: 1; }
.brand h1 { font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.brand p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 18px;
}
.tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 11px 0; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.tab.active { background: var(--surface-2); color: var(--text); }

.panel { display: none; }
.panel.active { display: block; }

.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block; font-size: 13px; color: var(--muted);
  margin-bottom: 6px; font-weight: 600;
}
.field > span em { font-style: normal; font-weight: 400; opacity: 0.7; }
.field input, .field select {
  width: 100%; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.code-input {
  text-transform: uppercase; letter-spacing: 0.35em;
  text-align: center; font-size: 26px; font-weight: 700;
}

.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 0; }

.cost-preview {
  margin: 4px 0 14px; padding: 11px 13px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: #cdd7e2;
}
.cost-preview b { color: var(--text); }
.cost-preview.warn {
  background: rgba(242, 181, 68, 0.12);
  border-color: rgba(242, 181, 68, 0.5);
  color: #f6dfae;
}
.cost-preview.warn b { color: var(--accent); }

/* ───────────────────────── 도움말 ───────────────────────── */

.guide-btn {
  margin-top: 14px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
}

.help-dot {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 999px; margin-left: 5px; vertical-align: middle;
}
.help-dot:active { background: var(--accent); color: var(--accent-ink); }

.help-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.help-head .icon-btn { width: 34px; height: 34px; font-size: 15px; }

.help-tabs {
  display: flex; gap: 5px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.help-tabs::-webkit-scrollbar { display: none; }
.help-tabs button {
  flex: 0 0 auto; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.help-tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.help-body { font-size: 14.5px; line-height: 1.65; }
.help-body h3 { font-size: 15px; margin: 18px 0 6px; color: var(--accent); }
.help-body h3:first-child { margin-top: 0; }
.help-body p { margin: 0 0 10px; color: #cdd7e2; }
.help-body ul { margin: 0 0 12px; padding-left: 18px; color: #cdd7e2; }
.help-body li { margin-bottom: 5px; }
.help-body b { color: var(--text); }
.help-body .kw {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text);
}
.help-body .note {
  background: var(--surface); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 0 8px 8px 0; margin: 0 0 12px; font-size: 13.5px;
}
.help-body table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 13.5px; }
.help-body th, .help-body td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.help-body th { color: var(--muted); font-size: 12px; width: 5.5em; }

/* ───────────────────────── 프로필 ───────────────────────── */

.profile-box {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 16px;
}
.profile-box .who { flex: 1; min-width: 0; }
.profile-box .who b { display: block; font-size: 15px; }
.profile-box .who span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.profile-box .net { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-box .net.up { color: var(--ok); }
.profile-box .net.down { color: var(--danger); }
.profile-box .net.flat { color: var(--muted); }
.profile-box button {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; padding: 6px 10px; border-radius: 8px;
}

.pin-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pin-input {
  width: 100%; padding: 13px 14px; text-align: center;
  letter-spacing: 0.5em; font-size: 20px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; outline: none;
}
.pin-input:focus { border-color: var(--accent); }
.pin-row .btn { padding: 13px 16px; }
.pin-note { font-size: 12px; color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.pin-note.warn { color: var(--accent); }

.record-sub { font-size: 13px; color: var(--muted); margin: 20px 0 9px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 4px; }
.stat-cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 8px; text-align: center;
}
.stat-cell b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat-cell span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.stat-cell b.up { color: var(--ok); }
.stat-cell b.down { color: var(--danger); }

.rank-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 11px; margin-bottom: 6px;
}
.rank-row.me { border-color: var(--accent); }
.rank-no { flex: 0 0 22px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.rank-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.rank-net { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-net.up { color: var(--ok); }
.rank-net.down { color: var(--danger); }
.rank-net.flat { color: var(--muted); }

/* ───────────────────────── 방 목록 ───────────────────────── */

.rooms-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 20px 0 9px; font-size: 13px; color: var(--muted); font-weight: 600;
}
.link-btn { background: none; border: 0; color: var(--accent); font-size: 13px; padding: 4px; }

.rooms-list { display: grid; gap: 8px; min-height: 64px; }

.room-card {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 13px; color: var(--text);
}
.room-card:active { border-color: var(--accent); }
.room-card.full { opacity: 0.5; }
.room-avatar {
  flex: 0 0 40px; height: 40px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.room-info { flex: 1; min-width: 0; }
.room-title {
  font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.room-state {
  flex: 0 0 auto; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.room-state.live { background: rgba(53, 192, 122, 0.16); border-color: rgba(53, 192, 122, 0.5); color: var(--ok); }

.rooms-empty {
  text-align: center; color: var(--muted); font-size: 13.5px;
  padding: 22px 14px; border: 1px dashed var(--line); border-radius: 12px; line-height: 1.6;
}

.code-direct {
  margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px;
}
.code-direct summary {
  color: var(--muted); font-size: 13.5px; cursor: pointer; padding: 4px 0;
  list-style: none;
}
.code-direct summary::-webkit-details-marker { display: none; }
.code-direct summary::before { content: '＋ '; }
.code-direct[open] summary::before { content: '－ '; }
.code-direct > *:not(summary) { margin-top: 12px; }

.dock-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600;
}
.err {
  color: #ffd7d3; background: rgba(226, 86, 75, 0.16);
  border: 1px solid rgba(226, 86, 75, 0.45);
  padding: 11px 13px; border-radius: 11px; font-size: 14px; margin-top: 16px;
}

/* ───────────────────────── 버튼 ───────────────────────── */

.btn {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 12px 14px; border-radius: 11px; font-weight: 700; font-size: 15px;
  transition: transform 0.06s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.34; cursor: not-allowed; }
.btn.lg { width: 100%; padding: 15px; font-size: 17px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ok { background: var(--ok); color: #06281a; border-color: transparent; }
.btn.danger { background: var(--danger); color: #2b0a07; border-color: transparent; }
.btn.allin { background: var(--allin); color: #260a2e; border-color: transparent; }
.btn.ghost { background: transparent; }

/* ───────────────────────── 상단바 ───────────────────────── */

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.code-chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
  font-weight: 800; letter-spacing: 0.14em; padding: 8px 11px; border-radius: 10px;
  font-size: 15px;
}
.topbar-mid { flex: 1; min-width: 0; text-align: center; }
.topbar-mid strong { display: block; font-size: 15px; }
.topbar-mid span { display: block; font-size: 12px; color: var(--muted); }
.icon-btn {
  background: var(--surface-2); border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 10px; font-size: 18px;
}

.conn-warning {
  background: rgba(226, 86, 75, 0.2); color: #ffd7d3;
  text-align: center; padding: 7px; font-size: 13px;
  border-bottom: 1px solid rgba(226, 86, 75, 0.4);
}

/* ───────────────────────── 팟 ───────────────────────── */

.pot-bar {
  display: flex; align-items: stretch; gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.pot-main, .pot-side {
  flex: 1; background: var(--bg-2); padding: 12px 14px; text-align: center;
}
.pot-side { flex: 0 0 40%; }
.pot-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.pot-main strong { font-size: 26px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pot-side strong { font-size: 20px; font-variant-numeric: tabular-nums; }

.pots-breakdown {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12px;
}
.pots-breakdown span {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px;
}

/* ───────────────────────── 플레이어 ───────────────────────── */

.players {
  flex: 1; display: grid; gap: 9px; padding: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-content: start;
}

.pcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 12px; position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pcard.turn { border-color: var(--accent); background: #23282a; box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.22); }
.pcard.folded { opacity: 0.4; }
.pcard.me { background: var(--surface-2); }
.pcard.offline .pname { color: var(--muted); }

.pname {
  display: flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: 15px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcoins { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pnet { font-size: 12px; font-variant-numeric: tabular-nums; }
.pnet.up { color: var(--ok); }
.pnet.down { color: var(--danger); }
.pnet.flat { color: var(--muted); }

.pbet {
  margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.pbet b { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 15px; }

.badges { position: absolute; top: 9px; right: 9px; display: flex; gap: 3px; }
.badge {
  font-size: 10px; font-weight: 800; padding: 2px 5px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.badge.d { background: #fff; color: #111; border-color: #fff; }
.badge.sb, .badge.bb { background: var(--info); color: #04121f; border-color: transparent; }
.badge.allin { background: var(--allin); color: #260a2e; border-color: transparent; }
.badge.fold { background: var(--danger); color: #2b0a07; border-color: transparent; }
.badge.out { background: transparent; }

.plast {
  display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700;
  color: var(--muted); background: var(--bg-2); padding: 2px 7px; border-radius: 999px;
}

.host-tools { display: flex; gap: 5px; margin-top: 8px; }
.host-tools button {
  flex: 1; font-size: 11px; padding: 6px 0; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
}

/* ───────────────────────── 마지막 핸드 요약 ───────────────────────── */

.last-hand {
  margin: 0 12px 12px; padding: 11px 13px;
  background: rgba(53, 192, 122, 0.1); border: 1px solid rgba(53, 192, 122, 0.34);
  border-radius: var(--radius); font-size: 14px;
}
.last-hand h3 { margin: 0 0 6px; font-size: 13px; color: var(--ok); }
.last-hand ul { margin: 0; padding-left: 17px; color: var(--muted); }
.last-hand b { color: var(--text); }

/* ───────────────────────── 액션 독 ───────────────────────── */

.action-dock, .host-dock, .wait-dock {
  position: sticky; bottom: 0; z-index: 15;
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 10px 10px calc(10px + var(--dock-h));
}
.wait-dock { text-align: center; color: var(--muted); font-size: 14px; padding-top: 14px; }

.action-row { display: flex; gap: 6px; }
.action-row .btn { flex: 1; padding: 15px 4px; font-size: 15px; }
.action-row .btn[data-act="raise"] { flex: 1.25; }

.raise-row {
  display: grid; grid-template-columns: 48px 1fr 48px; gap: 6px;
  align-items: center; margin-bottom: 8px;
}
.raise-row input {
  text-align: center; font-size: 20px; font-weight: 800;
  padding: 11px 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; outline: none; font-variant-numeric: tabular-nums;
}
.raise-row input:focus { border-color: var(--accent); }
.btn.step { padding: 13px 0; font-size: 20px; }
.raise-row .quick { grid-column: 1 / -1; }

.quick { display: flex; flex-wrap: wrap; gap: 5px; }
.quick button {
  flex: 1; min-width: 62px; font-size: 12px; font-weight: 700; padding: 8px 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--muted);
}
.quick button.on { border-color: var(--accent); color: var(--accent); }

.host-dock { display: flex; gap: 6px; flex-wrap: wrap; }
.host-dock .btn { flex: 1; min-width: 110px; }

/* ───────────────────────── 로그 ───────────────────────── */

.logbar { border-top: 1px solid var(--line); background: var(--bg-2); }
.log-toggle {
  width: 100%; background: transparent; border: 0; color: var(--muted);
  padding: 10px; font-size: 13px;
}
.log {
  list-style: none; margin: 0; padding: 0 14px 14px;
  max-height: 34vh; overflow-y: auto; font-size: 13px; color: var(--muted);
}
.log li { padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.log li:last-child { border-bottom: 0; }

/* ───────────────────────── 모달 ───────────────────────── */

.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.62);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal[hidden] { display: none; }
.sheet {
  width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(20px + var(--dock-h));
  animation: rise 0.18s ease;
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.sheet h2 { font-size: 19px; margin-bottom: 4px; }
.sheet-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; padding: 14px; }

.pot-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.pot-block header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px;
}
.pot-block header b { color: var(--accent); font-size: 18px; font-variant-numeric: tabular-nums; }
.pot-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pot-pick button {
  flex: 1 1 calc(50% - 6px); padding: 11px 6px; font-size: 14px; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
}
.pot-pick button.on { background: var(--ok); color: #06281a; border-color: transparent; }

/* ───────────────────────── 자리 순서 ───────────────────────── */

.seats-list { display: grid; gap: 7px; margin-bottom: 12px; }

.seat-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 10px;
}
.seat-row.is-dealer { border-color: #fff; background: #262a2e; }
.seat-num {
  flex: 0 0 24px; text-align: center; font-size: 12px;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.seat-name {
  flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seat-name small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.seat-row .seat-btn {
  flex: 0 0 auto; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--muted); border-radius: 9px; padding: 7px 9px; font-size: 13px; font-weight: 700;
}
.seat-row .seat-btn:disabled { opacity: 0.25; }
.seat-row .seat-btn.dealer-on { background: #fff; color: #111; border-color: #fff; }

.badge.dnext { background: transparent; border-color: #fff; color: #fff; }

.menu-list { display: grid; gap: 7px; }
.menu-list button {
  width: 100%; text-align: left; padding: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; font-weight: 600; font-size: 15px;
}
.menu-list button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.menu-list button.warn { color: #ffb3ac; }

table.settle { width: 100%; border-collapse: collapse; font-size: 14px; }
table.settle th, table.settle td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: right; }
table.settle th:first-child, table.settle td:first-child { text-align: left; }
table.settle th { color: var(--muted); font-size: 12px; font-weight: 600; }
table.settle td { font-variant-numeric: tabular-nums; }
td.up { color: var(--ok); }
td.down { color: var(--danger); }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--dock-h));
  transform: translateX(-50%); z-index: 90;
  background: #fff; color: #111; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; max-width: 88vw; text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: rise 0.16s ease;
}
.toast.bad { background: var(--danger); color: #fff; }

@media (min-width: 720px) {
  .players { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding: 16px; }
  .modal { align-items: center; }
  .sheet { border-radius: 18px; }
}
