/* Skates režīms — phone-first, big type, big targets, light palette. */

.skate { max-width: 760px; padding-top: 10px; padding-bottom: 80px; font-size: 17px; }
.skate-head { margin-bottom: 12px; }
.skate-head h1 { font-size: clamp(44px, 10vw, 80px); line-height: .9; margin: 0 0 8px; }
.skate-head p { margin: 0; color: var(--ink-soft); font-size: 18px; }

/* Section tabs: sticky under the header so you can jump while the queue moves. */
.skate-tabs {
  position: sticky; top: var(--header-h); z-index: 15;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)) 16px; padding: 8px var(--gutter);
  background: var(--paper); border-bottom: 2px solid var(--ink);
}
.skate-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; min-height: 44px;
  background: var(--field-strong); border: 2px solid var(--ink);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.skate-tabs b { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--ink); color: var(--paper); font-size: 12px; }
.skate-tabs a:hover { background: var(--amber); color: var(--ink); }

.skate-card {
  scroll-margin-top: calc(var(--header-h) + 72px);
  margin-bottom: 22px; padding: 18px;
  background: var(--field-strong); border: var(--outline); box-shadow: var(--offset);
}
.skate-card h2 { font-size: clamp(30px, 6vw, 44px); margin: 0 0 4px; }
.skate-lede { margin: 0 0 14px; color: var(--ink-soft); }
.skate .btn { min-height: 48px; font-size: 14px; }

/* ── 1. Quiz ──────────────────────────────────────────────────────────── */
.quiz__progress { display: flex; justify-content: space-between; margin: 0 0 10px; font-weight: 700; color: var(--ink-mute); font-size: 15px; }
.quiz__lamp {
  display: grid; place-items: center; margin: 0 auto 16px; width: 180px; height: 150px;
  background: #141210; border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: inset 0 0 24px #000;
}
.lamp-icon { display: block; }
.lamp-icon--red { color: #ff4a3d; filter: drop-shadow(0 0 6px rgba(255, 74, 61, .8)); }
.lamp-icon--amber { color: #ffb21c; filter: drop-shadow(0 0 6px rgba(255, 178, 28, .8)); }
.quiz__options { display: grid; gap: 10px; }
.quiz__option {
  min-height: 56px; padding: 12px 14px; text-align: left;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .1s ease, background .15s;
}
.quiz__option:hover:not(:disabled) { background: var(--amber); }
.quiz__option:active:not(:disabled) { transform: translate(2px, 2px); }
.quiz__option:disabled { cursor: default; opacity: .55; }
.quiz__option.is-right { opacity: 1; background: #2f9e44; color: #fff; border-color: #1f6f2f; }
.quiz__option.is-wrong { opacity: 1; background: #e03131; color: #fff; border-color: #a51d1d; }
.quiz__explain:not(:empty) { margin-top: 14px; padding: 14px; background: var(--paper); border: 2px dashed var(--ink); }
.quiz__explain p { margin: 0 0 8px; }
.quiz__verdict { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 30px; text-transform: uppercase; }
.quiz__verdict--right { color: #2f9e44; }
.quiz__verdict--wrong { color: #e03131; }
.quiz__skate { padding: 6px 8px; background: color-mix(in srgb, var(--amber) 30%, transparent); }
.quiz__done { text-align: center; }
.quiz__score { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 40px; }
.quiz__score b { font-size: 110px; line-height: .9; color: var(--orange); }
.quiz__rank { margin: 6px 0 4px; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.quiz__best { color: var(--ink-mute); font-size: 15px; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* ── 2. Checklist ─────────────────────────────────────────────────────── */
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; min-height: 52px; background: var(--paper); border: 2px solid var(--ink); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 30px; height: 30px; border: 3px solid var(--ink); background: #fff; display: grid; place-items: center; }
.check input:checked + .check__box { background: #2f9e44; border-color: #1f6f2f; }
.check input:checked + .check__box::after { content: ""; width: 10px; height: 17px; border: solid #fff; border-width: 0 4px 4px 0; transform: translateY(-2px) rotate(45deg); }
.check input:focus-visible + .check__box { outline: 3px solid var(--orange); outline-offset: 2px; }
.check input:checked ~ .check__text { color: var(--ink-mute); }
.check__text { font-weight: 700; }
.check__text small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-mute); }
.chance { margin-top: 16px; }
.chance__meter { height: 22px; background: var(--paper); border: 2px solid var(--ink); overflow: hidden; }
.chance__meter span { display: block; height: 100%; width: 0; background: #e03131; transition: width .4s ease, background .4s; }
.chance__meter[data-level="ok"] span { background: var(--amber); }
.chance__meter[data-level="good"] span { background: #2f9e44; }
.chance__value { margin: 8px 0 2px; font-size: 20px; }
.chance__value b { font-family: var(--font-display); font-style: italic; font-size: 32px; }
.chance__tip { margin: 0 0 10px; color: var(--ink-soft); }

/* ── 3. Breathing tachometer (light face) ─────────────────────────────── */
.breath { display: grid; justify-items: center; gap: 10px; text-align: center; }
.breath__dial { width: min(100%, 300px); }
.breath .dial { width: 100%; height: auto; filter: none; background: none; overflow: visible; }
.breath .dial__rim { fill: var(--ink); }
.breath .dial__face { fill: #fffdf6; }
.breath .tick { stroke: var(--ink); stroke-width: 2; }
.breath .tick--major { stroke-width: 3.5; }
.breath .tick--red { stroke: #e03131; }
.breath .num { fill: var(--ink); font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 24px; text-anchor: middle; }
.breath .num--red { fill: #e03131; }
.breath .redzone { fill: none; stroke: #e03131; stroke-width: 7; }
.breath .dial__unit { fill: var(--ink-mute); font-family: var(--font-text); font-size: 10px; letter-spacing: .12em; text-anchor: middle; text-transform: uppercase; }
.breath .needle { transform: rotate(var(--a)); transform-origin: 150px 150px; }
.breath .needle path { fill: var(--orange); }
.breath .hub { fill: var(--ink); }
.breath__cue { margin: 0; min-height: 1.4em; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 32px; text-transform: uppercase; white-space: pre; }
.breath__lamp { margin: 0; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 25%, transparent); border: 1px solid currentColor; transition: all .2s; }
.breath__lamp.on { color: var(--ink); background: var(--amber); border-color: var(--ink); }

/* ── 4. Bingo ─────────────────────────────────────────────────────────── */
.bingo__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bingo__cell {
  display: grid; place-items: center; aspect-ratio: 1; padding: 6px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.15; text-align: center; hyphens: auto;
  cursor: pointer; overflow: hidden;
}
.bingo__cell[aria-pressed="true"] { background: var(--amber); position: relative; }
.bingo__cell[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: 14%; border: 4px solid var(--orange); border-radius: 50%; opacity: .75; transform: rotate(-12deg);
}
.bingo__cell.is-line { background: #2f9e44; color: #fff; }
.bingo__cell.is-line::after { border-color: rgba(255, 255, 255, .35); }
.bingo__win { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding: 12px; background: var(--ink); color: var(--paper); }
.bingo__win b { font-family: var(--font-display); font-style: italic; font-size: 40px; color: var(--amber); }
.bingo__win .btn { background: var(--paper); }
.bingo-actions { margin-top: 10px; }
@media (max-width: 420px) { .bingo__cell { font-size: 11px; padding: 3px; } }

/* ── 5. Ending ────────────────────────────────────────────────────────── */
.ending__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.ending__buttons .btn { flex: 1 1 200px; min-height: 64px; font-size: 18px; }
.ending__buttons .btn[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.ending__big { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; margin: 0 0 6px; }
.ending__design { display: grid; justify-items: center; gap: 6px; margin-top: 10px; padding: 12px; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; }
.ending__design img { width: min(100%, 260px); height: auto; background: none; filter: none; }
.ending__design:hover { color: var(--ink); background: var(--amber); }

/* Confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; animation: confetti-fall 2.8s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes confetti-fall { to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
