/* ═══════════════ Trivia Rumble — drenched party palette ═══════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 85% -10%, oklch(0.30 0.06 25 / 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, oklch(0.28 0.05 255 / 0.45), transparent 60%);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ─────────── screens ─────────── */
.screen {
  display: none;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}
.screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: screen-in 0.45s var(--ease); }
@keyframes screen-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

/* ─────────── buttons ─────────── */
.btn {
  font: inherit; font-weight: 800; letter-spacing: 0.01em;
  border: 0; border-radius: var(--r-ctl); cursor: pointer;
  color: var(--gold-ink); background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-edge);
  padding: 14px 24px; font-size: 1.05rem;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px) scale(0.99); box-shadow: 0 1px 0 var(--gold-edge); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-big { width: 100%; padding: 18px; font-size: 1.2rem; }
.btn-primary { background: var(--gold); }
.btn-secondary { background: var(--teal); color: oklch(0.16 0.04 200); box-shadow: 0 4px 0 var(--teal-edge); }
.btn-secondary:active { box-shadow: 0 1px 0 var(--teal-edge); }
.btn-ghost { background: transparent; color: var(--ink-dim); box-shadow: inset 0 0 0 2px var(--line); font-weight: 600; }
.btn-ghost:active { transform: scale(0.98); }

/* ─────────── home ─────────── */
.home-wrap { width: min(420px, 100%); display: flex; flex-direction: column; gap: 26px; }
.logo { text-align: center; }
.logo h1 {
  font-size: clamp(3rem, 13vw, 4.2rem); font-weight: 900; line-height: 0.92;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.tagline { color: var(--ink-dim); font-weight: 500; margin-top: 10px; }
.logo-badges { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.15rem; color: oklch(0.98 0.01 85); animation: badge-bob 2.6s var(--ease) infinite;
}
.badge:nth-child(2) { animation-delay: 0.2s; } .badge:nth-child(3) { animation-delay: 0.4s; } .badge:nth-child(4) { animation-delay: 0.6s; }
@keyframes badge-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.b-coral { background: var(--coral); box-shadow: 0 4px 0 var(--coral-edge); }
.b-amber { background: var(--amber); box-shadow: 0 4px 0 var(--amber-edge); }
.b-teal  { background: var(--teal);  box-shadow: 0 4px 0 var(--teal-edge); }
.b-blue  { background: var(--blue);  box-shadow: 0 4px 0 var(--blue-edge); }

#home-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-weight: 700; font-size: 0.9rem; color: var(--ink-dim); }
input[type="text"], input[type="email"], input[type="password"] {
  font: inherit; font-weight: 600; font-size: 1.1rem;
  background: var(--bg-sink); color: var(--ink);
  border: 2px solid var(--line); border-radius: var(--r-ctl);
  padding: 14px 16px; outline: none; width: 100%;
  transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus { border-color: var(--gold); }
input::placeholder { color: oklch(0.5 0.02 60); font-weight: 500; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-dim); font-size: 0.85rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 1px; }

.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-input {
  text-transform: uppercase; text-align: center;
  font-weight: 900 !important; font-size: 1.5rem !important; letter-spacing: 0.35em;
}
.error-msg {
  background: oklch(0.32 0.09 25); color: oklch(0.9 0.05 25);
  border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 0.95rem;
  animation: shake 0.4s var(--ease);
}
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ─────────── lobby ─────────── */
.lobby-wrap { width: min(460px, 100%); display: flex; flex-direction: column; gap: 22px; text-align: center; }
.lobby-hint { color: var(--ink-dim); font-weight: 500; font-size: 0.95rem; }
.room-code {
  font: inherit; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: var(--bg-raise); border-radius: var(--r-panel);
  padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 2px; align-items: center;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: transform 0.15s var(--ease);
}
.room-code:active { transform: scale(0.98); }
#room-code-text {
  font-size: clamp(3.4rem, 18vw, 5rem); font-weight: 900; letter-spacing: 0.18em;
  color: var(--gold); line-height: 1; text-indent: 0.18em;
}
.copy-hint { color: var(--ink-dim); font-size: 0.8rem; font-weight: 600; }

.lobby-players h2 { font-size: 1rem; font-weight: 700; color: var(--ink-dim); margin-bottom: 12px; }
.player-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.player-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-raise); border-radius: 999px; padding: 8px 16px 8px 10px;
  font-weight: 700; animation: chip-in 0.4s var(--ease);
  box-shadow: inset 0 0 0 2px var(--line);
}
@keyframes chip-in { from { opacity: 0; transform: scale(0.6); } }
.player-chip .avatar { font-size: 1.3rem; }
.player-chip.is-host { box-shadow: inset 0 0 0 2px var(--gold); }
.player-chip.is-host::after { content: "👑"; font-size: 0.85rem; }
.player-chip.is-me { background: oklch(0.33 0.05 85); }
.player-chip.is-away { opacity: 0.45; }
.lobby-empty { color: var(--ink-dim); font-weight: 500; margin-top: 10px; }

.host-settings {
  background: var(--bg-raise); border-radius: var(--r-panel); padding: 20px;
  display: flex; flex-direction: column; gap: 16px; text-align: left;
  box-shadow: inset 0 0 0 2px var(--line);
}
.setting { display: flex; flex-direction: column; gap: 8px; }
.setting-label { font-weight: 700; font-size: 0.85rem; color: var(--ink-dim); }
.seg { display: flex; gap: 6px; background: var(--bg-sink); border-radius: 12px; padding: 4px; }
.seg-btn {
  flex: 1; font: inherit; font-weight: 700; font-size: 0.95rem;
  background: transparent; color: var(--ink-dim); border: 0; border-radius: 9px;
  padding: 9px 4px; cursor: pointer; transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.seg-btn.active { background: var(--gold); color: var(--gold-ink); }
.select {
  font: inherit; font-weight: 600; font-size: 1rem;
  background: var(--bg-sink); color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none;
}
.waiting-host { color: var(--ink-dim); font-weight: 600; animation: pulse-dim 1.8s ease-in-out infinite; }
@keyframes pulse-dim { 50% { opacity: 0.55; } }

/* ─────────── countdown ─────────── */
.countdown-wrap { text-align: center; }
.countdown-label { font-weight: 700; color: var(--ink-dim); font-size: 1.2rem; }
.countdown-num {
  font-size: clamp(7rem, 40vw, 12rem); font-weight: 900; color: var(--gold); line-height: 1;
}
.countdown-num.tick { animation: count-pop 0.9s var(--ease); }
@keyframes count-pop { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } }

/* ─────────── question ─────────── */
.q-wrap { width: min(560px, 100%); display: flex; flex-direction: column; gap: 16px; flex: 1; max-height: 860px; }
.q-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-progress { font-weight: 800; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.q-category {
  background: var(--bg-raise); border-radius: 999px; padding: 5px 14px;
  font-weight: 700; font-size: 0.85rem; box-shadow: inset 0 0 0 2px var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%;
}
.q-timer-num {
  font-weight: 900; font-size: 1.3rem; color: var(--gold); min-width: 2ch; text-align: right;
  font-variant-numeric: tabular-nums;
}
.q-timer-num.urgent { color: var(--bad); animation: pulse-dim 0.5s ease-in-out infinite; }
.timer-track { height: 10px; background: var(--bg-sink); border-radius: 999px; overflow: hidden; }
.timer-bar {
  height: 100%; width: 100%; border-radius: 999px; background: var(--gold);
  transform-origin: left; transform: scaleX(1);
}
.timer-bar.run { transition: transform linear; transform: scaleX(0); }
.timer-bar.urgent { background: var(--bad); }

.q-text {
  font-size: clamp(1.3rem, 5.4vw, 1.8rem); font-weight: 800; line-height: 1.25;
  text-wrap: balance; min-height: 2.5em; display: flex; align-items: center;
  animation: screen-in 0.4s var(--ease);
}

.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .answers { grid-template-columns: 1fr; } }
.answer {
  font: inherit; font-weight: 700; font-size: 1.02rem; text-align: left;
  color: oklch(0.98 0.01 85); border: 0; border-radius: var(--r-ctl);
  padding: 16px 14px; min-height: 68px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.3s, filter 0.3s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  animation: opt-in 0.45s var(--ease) backwards;
}
.answer:nth-child(1) { animation-delay: 0.05s; } .answer:nth-child(2) { animation-delay: 0.12s; }
.answer:nth-child(3) { animation-delay: 0.19s; } .answer:nth-child(4) { animation-delay: 0.26s; }
@keyframes opt-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.a-shape { font-size: 0.85rem; opacity: 0.9; flex-shrink: 0; width: 1.4em; text-align: center; }
.a-text { flex: 1; overflow-wrap: anywhere; }
.a-coral { background: var(--coral); box-shadow: 0 4px 0 var(--coral-edge); }
.a-amber { background: var(--amber); box-shadow: 0 4px 0 var(--amber-edge); color: oklch(0.22 0.05 75); }
.a-teal  { background: var(--teal);  box-shadow: 0 4px 0 var(--teal-edge); color: oklch(0.16 0.04 200); }
.a-blue  { background: var(--blue);  box-shadow: 0 4px 0 var(--blue-edge); }
.answer:not(:disabled):hover { filter: brightness(1.07); }
.answer:not(:disabled):active { transform: translateY(3px) scale(0.99); box-shadow: 0 1px 0 oklch(0.3 0.03 40); }
.answer:disabled { cursor: default; }
.answer.picked { outline: 3px solid var(--ink); outline-offset: 3px; }
.answer.dim { opacity: 0.28; filter: saturate(0.5); }
.answer.correct-reveal { outline: 3px solid var(--good); outline-offset: 3px; animation: correct-bounce 0.6s var(--ease); }
@keyframes correct-bounce { 30% { transform: scale(1.04); } }
.answer .a-count {
  font-weight: 800; font-size: 0.85rem; background: oklch(0 0 0 / 0.25);
  border-radius: 999px; padding: 3px 10px; flex-shrink: 0;
}

.q-footer { display: flex; justify-content: space-between; align-items: center; min-height: 1.6em; }
.answer-status { font-weight: 800; color: var(--gold); }
.answer-count { color: var(--ink-dim); font-weight: 600; font-variant-numeric: tabular-nums; }

/* reveal panel */
.reveal-panel {
  background: var(--bg-raise); border-radius: var(--r-panel); padding: 18px;
  box-shadow: inset 0 0 0 2px var(--line);
  display: flex; flex-direction: column; gap: 12px;
  animation: panel-up 0.45s var(--ease);
}
@keyframes panel-up { from { opacity: 0; transform: translateY(24px); } }
.reveal-verdict { font-weight: 900; font-size: 1.25rem; }
.reveal-verdict.good { color: var(--good); }
.reveal-verdict.bad { color: var(--bad); }
.mini-board { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mini-board li {
  display: flex; align-items: center; gap: 10px; font-weight: 600;
  padding: 6px 10px; border-radius: 10px; background: var(--bg-sink);
}
.mini-board .rank { font-weight: 800; color: var(--ink-dim); width: 1.4em; font-variant-numeric: tabular-nums; }
.mini-board .mb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-board .mb-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-board .mb-gain { color: var(--good); font-weight: 800; font-size: 0.85rem; }
.mini-board li.is-me { background: oklch(0.33 0.05 85); }
.streak-flame { font-size: 0.9rem; }
.reveal-next { color: var(--ink-dim); font-weight: 600; font-size: 0.9rem; text-align: center; }

/* floating score */
.score-float {
  position: fixed; left: 50%; top: 38%; transform: translateX(-50%);
  font-size: 2.6rem; font-weight: 900; color: var(--good); opacity: 0;
  pointer-events: none; text-shadow: 0 3px 0 oklch(0.3 0.1 150 / 0.5);
}
.score-float.go { animation: float-up 1.4s var(--ease); }
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(0.6); }
  25% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -70px) scale(1); }
}

/* ─────────── podium ─────────── */
.podium-wrap { width: min(500px, 100%); display: flex; flex-direction: column; gap: 24px; text-align: center; }
.podium-title { font-size: 1.6rem; font-weight: 900; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 240px; }
.podium-spot { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; max-width: 130px; }
.podium-avatar { font-size: 2.6rem; animation: badge-bob 2.4s var(--ease) infinite; }
.podium-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.podium-score { color: var(--ink-dim); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.podium-block {
  width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center;
  font-weight: 900; font-size: 1.8rem; transform-origin: bottom;
  animation: block-rise 0.7s var(--ease) backwards;
}
@keyframes block-rise { from { transform: scaleY(0); } }
.podium-spot.p1 .podium-block { height: 130px; background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 0 var(--gold-edge); animation-delay: 0.5s; }
.podium-spot.p2 .podium-block { height: 92px; background: var(--teal); color: oklch(0.16 0.04 200); box-shadow: 0 4px 0 var(--teal-edge); animation-delay: 0.25s; }
.podium-spot.p3 .podium-block { height: 64px; background: var(--coral); color: oklch(0.98 0.01 85); box-shadow: 0 4px 0 var(--coral-edge); animation-delay: 0.1s; }
.final-board { list-style: none; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.final-board li {
  display: flex; align-items: center; gap: 10px; font-weight: 600;
  background: var(--bg-raise); border-radius: 12px; padding: 10px 14px;
  box-shadow: inset 0 0 0 2px var(--line);
}
.final-board .rank { font-weight: 800; color: var(--ink-dim); width: 1.6em; font-variant-numeric: tabular-nums; }
.final-board .mb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.final-board .mb-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.final-board li.is-me { box-shadow: inset 0 0 0 2px var(--gold); }
/* ─────────── next round vote (Podium board) ─────────── */
.vote-panel {
  background: var(--bg-raise); border-radius: var(--r-panel);
  box-shadow: inset 0 0 0 2px var(--line);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.vote-head { display: flex; align-items: center; justify-content: space-between; }
.vote-kicker { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.vote-tally { font-weight: 800; font-size: 0.8rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.vote-options { display: flex; flex-direction: column; gap: 12px; }
.vote-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border-radius: var(--r-ctl); background: var(--bg-sink); padding: 12px 14px;
  box-shadow: inset 0 0 0 2px var(--line);
  border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vote-row:active { transform: scale(0.99); }
.vote-row.is-leader { box-shadow: inset 0 0 0 2px var(--gold); }
.vote-dot { width: 14px; height: 14px; border-radius: 5px; flex: none; }
.vd-coral { background: var(--coral); box-shadow: 0 2px 0 var(--coral-edge); }
.vd-amber { background: var(--amber); box-shadow: 0 2px 0 var(--amber-edge); }
.vd-teal  { background: var(--teal);  box-shadow: 0 2px 0 var(--teal-edge); }
.vd-blue  { background: var(--blue);  box-shadow: 0 2px 0 var(--blue-edge); }
.vote-row-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.vote-row-name { font-weight: 800; font-size: 0.95rem; }
.vote-row-sub { font-weight: 600; font-size: 0.75rem; color: var(--ink-dim); }
.vote-row-sub.is-gold { color: var(--gold); }
.vote-voters { display: flex; }
.vote-voters span { font-size: 1rem; }
.vote-voters span + span { margin-left: -5px; }
.vote-none { font-weight: 600; font-size: 0.75rem; color: oklch(0.5 0.02 60); }
.vote-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-sink); border: 2px solid var(--line); border-radius: var(--r-ctl);
  padding: 12px 14px; color: var(--ink-dim);
}
.vote-field:focus-within { border-color: var(--gold); }
.vote-field input {
  flex: 1; min-width: 0; font: inherit; font-weight: 600; font-size: 0.9rem;
  background: transparent; border: 0; outline: none; color: var(--ink);
}
.vote-field input::placeholder { color: oklch(0.5 0.02 60); }
.vote-results { display: flex; flex-direction: column; gap: 6px; }
.vote-result {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--bg-sink); border-radius: 12px; padding: 10px 12px;
  box-shadow: inset 0 0 0 2px var(--line);
  border: 0; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--ink);
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vote-result:active { transform: scale(0.99); }
.vote-result small { margin-left: auto; font-weight: 600; font-size: 0.75rem; color: var(--ink-dim); }
.vote-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vote-chip {
  border-radius: 999px; padding: 8px 14px;
  font: inherit; font-weight: 700; font-size: 0.8rem;
  box-shadow: inset 0 0 0 2px var(--line); color: var(--ink-dim);
  background: transparent; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vote-chip:active { transform: scale(0.96); }
.vote-caption { font-weight: 600; font-size: 0.75rem; color: var(--ink-dim); text-align: center; }

.podium-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.podium-actions .btn-ghost { width: auto; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -4vh; width: 10px; height: 16px; border-radius: 3px;
  animation: confetti-fall linear infinite;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); }
}

/* ─────────── toast & loading ─────────── */
.toast {
  position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); font-weight: 700;
  border-radius: 999px; padding: 10px 20px; z-index: 50;
  animation: toast-in 0.35s var(--ease); max-width: 90vw; text-align: center;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.loading-overlay {
  position: fixed; inset: 0; background: oklch(0.19 0.025 40 / 0.88); z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-weight: 700; font-size: 1.1rem;
}
.loading-dice { font-size: 3.4rem; animation: dice-spin 1.1s var(--ease) infinite; }
@keyframes dice-spin { 50% { transform: rotate(180deg) scale(1.15); } 100% { transform: rotate(360deg); } }

/* ─────────── reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .timer-bar.run { transition: transform linear !important; transition-duration: inherit !important; }
}

/* ─────────── accounts ─────────── */
.home-signin {
  position: absolute; top: max(20px, env(safe-area-inset-top)); right: 20px;
  color: var(--ink-dim); font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.home-signin:active { opacity: 0.7; }
#screen-home { position: relative; }
.personal-strip {
  background: var(--bg-raise); border-radius: var(--r-panel); padding: 16px 20px;
  box-shadow: inset 0 0 0 2px var(--gold);
  display: flex; justify-content: space-between; gap: 8px;
}
.personal-strip .ps-item { display: flex; flex-direction: column; gap: 2px; }
.personal-strip .ps-big { font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.personal-strip .ps-sub { font-weight: 600; font-size: 0.72rem; color: var(--ink-dim); }
.save-cta {
  background: var(--bg-raise); border-radius: var(--r-panel); padding: 16px 20px;
  box-shadow: inset 0 0 0 2px var(--line);
  display: flex; align-items: center; gap: 14px; text-align: left;
}
.save-cta-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.save-cta-copy b { font-weight: 800; font-size: 1rem; }
.save-cta-copy span { font-weight: 500; font-size: 0.82rem; color: var(--ink-dim); }
.save-cta-btn { padding: 10px 16px; font-size: 0.9rem; border-radius: 12px; white-space: nowrap; }
.saved-note { color: var(--good); font-weight: 700; font-size: 0.95rem; }
.save-modal {
  position: fixed; inset: 0; z-index: 60;
  background: oklch(0.19 0.025 40 / 0.72);
  display: flex; align-items: flex-end; justify-content: center;
}
.save-sheet {
  width: min(430px, 100%); background: var(--bg-raise);
  border-radius: var(--r-panel) var(--r-panel) 0 0; padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  box-shadow: inset 0 0 0 2px var(--line);
  display: flex; flex-direction: column; gap: 14px; text-align: center;
  animation: panel-up 0.45s var(--ease);
}
.save-sheet-title { font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
.save-sheet-sub { font-weight: 600; font-size: 0.9rem; color: var(--ink-dim); }
.save-sheet .field { text-align: left; }

.pack-line {
  font-weight: 700; font-size: 0.95rem; text-align: center;
  background: var(--bg-sink); border-radius: 12px; padding: 12px 14px;
  box-shadow: inset 0 0 0 2px var(--teal);
}
.host-settings-controls { display: flex; flex-direction: column; gap: 16px; }
.host-settings-controls[hidden] { display: none; }
