/* Iceberg: the play area is one flat scene, sky over water that darkens in
   bands as it gets deeper, the berg in the middle, and a marker that sinks
   with your score. Everything else is the shared chrome. */

.iceberg {
  --ice: #8fd3e8;
  --sky: #eaf6fa;
  --deep: #0d2b45;
  --mark: #ff7a45;
  gap: 14px;
}

/* ── mode tabs (same as More or Less) ── */
.iceberg .modes { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--wash); }
.iceberg .mode { height: 38px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 15px var(--ui); color: var(--muted); }
.iceberg .mode.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

/* ── the scene ── */
.scene { position: relative; border-radius: 8px; overflow: hidden; background: var(--sky); line-height: 0; }
.scene svg { display: block; width: 100%; height: auto; }
.scene .tick { font: 600 9px var(--ui); fill: rgba(255, 255, 255, 0.7); }
.scene .tick.dark { fill: rgba(18, 18, 18, 0.45); }
.scene .you { transition: transform 0.9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .scene .you { transition: none; } }

/* ── the round ── */
.round { display: flex; flex-direction: column; gap: 12px; }
.round-top { display: flex; justify-content: space-between; align-items: baseline; }
.round-top p { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.round-top .score b { color: var(--ink); font-weight: 700; }
.ask { margin: 0; font: 700 26px/1.15 var(--slab); letter-spacing: -0.01em; text-wrap: balance; }
.eg { margin: -4px 0 0; font-size: 15px; color: var(--muted); }

.entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.entry input {
  min-width: 0; height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 600 18px var(--ui);
}
.entry input:focus { outline: none; border-color: #2b7ba3; }
.entry input:disabled { border-color: var(--rule); color: var(--muted); }
.entry .btn { height: 52px; border-radius: 8px; padding: 0 20px; }
.entry.nope input { animation: nope 0.35s; border-color: var(--red); }
@keyframes nope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .entry.nope input { animation: none; } }

.clock { position: relative; height: 6px; border-radius: 3px; background: var(--wash); }
.clock i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 3px; background: #2b7ba3; }
.clock.low i { background: var(--red); }
.clock span { position: absolute; right: 0; top: 10px; font: 700 13px var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.clock.low span { color: var(--red); }
.clock[hidden] { display: none; }

/* ── after an answer ── */
.reveal { padding: 16px; border-radius: 8px; background: var(--wash); line-height: 1.4; }
.reveal .tier { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 2px; }
.reveal .tier b { font: 700 22px/1.1 var(--slab); }
.reveal .tier span { font: 700 18px var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reveal .said { margin: 0 0 8px; font-size: 15px; }
.reveal .line { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.reveal .ex { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.reveal .ex b { color: var(--ink); font-weight: 600; }
.reveal .btn { width: 100%; margin-top: 10px; }
.reveal.miss .tier b { color: var(--red); }

/* tier chips: a band of the water's color, so depth reads at a glance */
.chip { display: inline-block; min-width: 10px; padding: 2px 8px; border-radius: 999px; font: 700 12px/1.4 var(--ui); white-space: nowrap; }
.t1 { background: #f2fafd; color: #2b5c73; box-shadow: inset 0 0 0 1px #cbe6ef; }
.t2 { background: #bfe3f1; color: #1d4a5e; }
.t3 { background: #7cc0dd; color: #0d2b45; }
.t4 { background: #3d8fbc; color: #fff; }
.t5 { background: #1f5f8d; color: #fff; }
.t6 { background: #0d2b45; color: #fff; }
.t0 { background: #fde2de; color: #a3271a; }

/* ── results ── */
.d-body .dive-list { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.d-body .dive-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.d-body .dive-list li:last-child { border-bottom: 0; }
.d-body .dive-list .q { font-size: 13px; color: var(--muted); }
.d-body .dive-list .a { font-weight: 700; }
.d-body .dive-list .chip { grid-row: span 2; align-self: center; }
.d-body .dive-list .more { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.link-btn { display: block; margin: 12px auto 0; padding: 6px; border: 0; background: none; color: var(--muted); font: 600 14px var(--ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.d-body .tiers-help { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.d-body .tiers-help li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
