/* The spelling test and the river journey. Tokens per design/UI-SPEC.md. */

.eyebrow { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- journey ---------- */
.journey { display: grid; gap: 18px; width: 100%; max-width: 1000px; margin: 0 auto; text-align: left; }
.journey-top { display: flex; align-items: center; gap: 14px; }
.journey-top .portrait { width: 84px; height: 84px; flex: none; }
.journey-title { margin: 0 0 2px; font-size: clamp(22px, 4vw, 32px); font-weight: 800; color: var(--ink); }
.river-map { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 14px 40px var(--shadow); }
.river-svg { display: block; width: 100%; height: auto; }
.journey-snow { fill: var(--snow); }
.river-shore { fill: none; stroke: var(--shore); stroke-width: 74; stroke-linecap: round; }
.river-water { fill: none; stroke: var(--water); stroke-width: 58; stroke-linecap: round; }
.river-line { fill: none; stroke: var(--ripple); stroke-width: 3; stroke-dasharray: 10 18; stroke-linecap: round; opacity: .7; }
.river-svg .tree-body { fill: var(--tree); } .river-svg .tree-snow { fill: var(--tree-snow); opacity: .9; } .river-svg .trunk { fill: var(--trunk); }
.stop-dot { fill: var(--surface); stroke: var(--surface-edge); stroke-width: 3; }
.stop-done .stop-dot { fill: var(--accent); stroke: var(--accent); }
.stop-current .stop-dot { fill: var(--next); stroke: var(--next); animation: pulse 1.4s ease-in-out infinite; transform-origin: center; }
.stop-tick { fill: none; stroke: var(--next-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stop-word { font-size: 16px; font-weight: 800; fill: var(--ink); }
.raft-marker {
  position: absolute; width: 11%; aspect-ratio: 120 / 70;
  transform: translate(-50%, -60%);
  transition: left 1s var(--ease), top 1s var(--ease);
  pointer-events: none;
}
.raft-svg { width: 100%; height: 100%; }
.raft-body { fill: var(--raft); } .raft-line { stroke: var(--raft-line); stroke-width: 2; opacity: .5; }
.raft-rider { position: absolute; left: 50%; bottom: 36%; width: 62%; aspect-ratio: 1; transform: translateX(-50%); }
.raft-rider svg { width: 100%; height: 100%; }
.journey-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.next-word { margin: 4px 0 0; font-size: 15px; color: var(--ink); } .next-word b { color: var(--accent); font-weight: 800; }
@media (max-width: 600px) { .journey-top .portrait { width: 64px; height: 64px; } .stop-word { font-size: 22px; } }

/* ---------- spelling test ---------- */
.test {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "top top"
    "board board"
    "keys keys"
    "guide back";
  gap: 14px 18px;
  width: min(100%, 1100px);
  min-height: calc(100dvh - 32px);
  padding: 18px;
  border-radius: 26px;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 14px 40px var(--shadow);
}
@media (orientation: portrait), (max-width: 700px) {
  .test { grid-template-columns: 1fr; grid-template-areas: "top" "board" "guide" "keys" "back"; }
}

.scene { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%); }
.scene .aurora { position: absolute; inset: 0 0 50%; opacity: 0; }
.scene .hill { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.scene .hill-far { bottom: 22%; height: 40%; background: var(--snow-2); opacity: .9; }
.scene .hill-near { bottom: 0; height: 36%; background: var(--snow); }
.scene .river { position: absolute; left: 0; right: 0; bottom: 14%; height: 9%; background: var(--water); border-radius: 50%; transform: scaleX(1.2); opacity: .95; }
.raft-float {
  --progress: 0;
  position: absolute; bottom: 15%; left: calc(18% + var(--progress) * 50%);
  width: clamp(90px, 12vw, 140px); aspect-ratio: 120 / 70;
  transition: left 1s var(--ease);
  animation: bobbing 3s ease-in-out infinite;
}
@keyframes bobbing { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-1.5deg); } }

/* dark: the northern lights come out */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene .aurora {
    opacity: .7;
    background:
      radial-gradient(60% 40% at 20% 30%, rgba(127,240,200,.55), transparent 70%),
      radial-gradient(50% 35% at 60% 20%, rgba(143,211,255,.5), transparent 70%),
      radial-gradient(45% 30% at 85% 35%, rgba(199,143,255,.45), transparent 70%);
    filter: blur(18px);
    animation: shimmer 9s ease-in-out infinite alternate;
  }
}
:root[data-theme="dark"] .scene .aurora {
  opacity: .7;
  background:
    radial-gradient(60% 40% at 20% 30%, rgba(127,240,200,.55), transparent 70%),
    radial-gradient(50% 35% at 60% 20%, rgba(143,211,255,.5), transparent 70%),
    radial-gradient(45% 30% at 85% 35%, rgba(199,143,255,.45), transparent 70%);
  filter: blur(18px);
  animation: shimmer 9s ease-in-out infinite alternate;
}
@keyframes shimmer { from { transform: translateX(-3%) scaleY(1); } to { transform: translateX(3%) scaleY(1.08); } }

.test > *:not(.scene) { position: relative; z-index: 1; }
.test-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stops { display: flex; gap: 8px; }
.stops .stop { width: 18px; height: 18px; border-radius: 50%; background: transparent; border: 3px solid var(--ink-muted); opacity: .7; transition: background .3s, border-color .3s; }
.stops .stop.done { background: var(--accent); border-color: var(--accent); opacity: 1; }

.board {
  grid-area: board;
  justify-self: center;
  display: grid; gap: 10px; justify-items: center;
  width: min(100%, 640px);
  padding: 18px 24px 20px;
  border-radius: 26px;
  background: var(--surface);
  color: #214a73;
  box-shadow: 0 14px 40px var(--shadow);
}
.board-title { margin: 0; font-size: 20px; font-weight: 800; }
.board-note { margin: 0; min-height: 1.4em; font-size: 17px; color: #4e6a82; letter-spacing: .06em; }
.board-note b { color: #214a73; }
.answer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 60px; }
.cell {
  width: 46px; height: 58px;
  border-radius: 12px;
  border: 3px dashed rgba(33,74,115,.35);
  display: grid; place-items: center;
  font-size: 34px; font-weight: 800; text-transform: lowercase;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.cell.on, .cell.shown { border-style: solid; border-color: transparent; background: #fff; box-shadow: inset 0 -4px 0 var(--surface-edge); }
.cell.shown { background: var(--next); }
.cell.extra { border-color: var(--accent); }
.cell.won { background: var(--accent); color: var(--next-ink); animation: pop .35s var(--ease); }
/* the ending cells carry the sheet's colours so "grand + er" stays visible while she types */
.cell.cell-ending-er { border-color: var(--ending-er); background: var(--ending-er-bg); }
.cell.cell-ending-est { border-color: var(--ending-est); background: var(--ending-est-bg); }
.cell.cell-ending-er.on, .cell.cell-ending-er.shown { color: var(--ending-er); background: var(--ending-er-bg); }
.cell.cell-ending-est.on, .cell.cell-ending-est.shown { color: var(--ending-est); background: var(--ending-est-bg); }
.cell.ghost { color: rgba(33,74,115,.38); border-style: dashed; }
.cell.fix { background: var(--next); color: var(--next-ink); border-color: transparent; animation: pop .45s var(--ease); box-shadow: 0 0 0 3px var(--next-ink) inset; }
.cell.gone { opacity: .45; text-decoration: line-through; width: auto; padding: 0 8px; }
.board-note .btn-try { min-height: 56px; font-size: 22px; padding: 0 28px; }
.board-note { min-height: 1.4em; }
.answer.wobble { animation: wobble .5s ease-in-out; }

.test > .test-speak { position: absolute; top: 18px; right: 18px; z-index: 2; } /* more specific than the .test > * rule */
@media (orientation: portrait), (max-width: 700px) { .test > .test-speak { top: auto; bottom: 18px; } }

.test-guide { grid-area: guide; display: grid; gap: 8px; justify-items: center; align-content: end; justify-self: start; }
.test-guide .owl { width: 150px; height: 165px; }
.test-guide .bubble { color: var(--ink); }

/* An iPad-style keyboard: ten keys across the top row, the others centred under it, the key
   size follows the column width so the rows never wrap. */
.keys { grid-area: keys; container-type: inline-size; display: grid; gap: 8px; align-self: center; justify-self: center; width: 100%; max-width: 760px; }
.keys { --key-gap: 6px; --key: clamp(34px, calc((100cqw - 9 * var(--key-gap)) / 10), 68px); }
.key-row { display: flex; gap: var(--key-gap); justify-content: center; flex-wrap: nowrap; }
.key {
  appearance: none; border: 0; cursor: pointer;
  flex: 0 0 var(--key); width: var(--key); height: calc(var(--key) * 1.05);
  border-radius: calc(var(--key) * .22);
  font: inherit; font-size: calc(var(--key) * .5); font-weight: 800; text-transform: lowercase; line-height: 1;
  background: var(--surface); color: #214a73;
  box-shadow: 0 4px 0 var(--surface-edge), 0 8px 18px var(--shadow);
  transition: transform .1s var(--ease), box-shadow .1s var(--ease);
}
.key:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--surface-edge), 0 4px 10px var(--shadow); }
.key:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.key-wide { flex-basis: calc(var(--key) * 1.5 + var(--key-gap) / 2); width: auto; font-size: calc(var(--key) * .36); }
.key-back { font-size: calc(var(--key) * .44); }
.key-go { background: var(--accent); color: var(--next-ink); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent), #000 20%), 0 8px 18px var(--shadow); }

.flakes { grid-area: keys; display: flex; justify-content: center; gap: 40px; align-self: center; z-index: 3; }
.flake {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: grid; justify-items: center; gap: 4px;
  width: 150px; color: var(--ink);
  animation: fall 1.2s calc(var(--i) * .25s) var(--ease) both;
}
.flake svg { width: 110px; height: 110px; filter: drop-shadow(0 6px 10px var(--shadow)); }
.flake-label { font-size: 30px; font-weight: 800; padding: 2px 14px; border-radius: 12px; }
.flake.picked svg { animation: pop .4s var(--ease); }
.flake.wobble { animation: wobble .5s ease-in-out; }
@keyframes fall { from { transform: translateY(-60px) rotate(-20deg); opacity: 0; } to { transform: translateY(0) rotate(0); opacity: 1; } }

.test-back { grid-area: back; justify-self: center; align-self: end; }
.test.finished .keys, .test.finished .flakes { opacity: .4; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .raft-float, .scene .aurora, .stop-current .stop-dot { animation: none; }
  .flake { animation: none; }
}

/* ---------- the journey, redrawn as an explorer's map on a hide ---------- */
.journey { gap: 14px; }
.map-board { position: relative; padding-top: 26px; }
.map-board .rail {
  position: absolute; left: 2%; right: 2%; top: 0; height: 22px; border-radius: 11px;
  background: repeating-linear-gradient(90deg, var(--wood) 0 40px, color-mix(in srgb, var(--wood) 84%, #000) 40px 44px);
  box-shadow: 0 6px 14px var(--shadow), inset 0 -4px 0 color-mix(in srgb, var(--wood) 70%, #000);
}
.map-board .rail::before, .map-board .rail::after {
  content: ""; position: absolute; top: 14px; width: 14px; height: 60px; border-radius: 4px; background: color-mix(in srgb, var(--wood) 80%, #000);
}
.map-board .rail::before { left: 6%; } .map-board .rail::after { right: 6%; }
.hide { position: relative; width: 100%; }
.hide-svg { display: block; width: 100%; height: auto; }
.hide-shadow { fill: rgba(0,0,0,.28); }
.hide-paper { fill: #f3e9d2; stroke: #c9b48c; stroke-width: 3; }
.grain { fill: #c9b48c; opacity: .7; }
.pin { fill: #8a5a3b; stroke: #5e3f27; stroke-width: 2; } .pin-light { fill: #c9a37a; }
.lake-shore { fill: #9cc8e3; } .lake-water { fill: #5fb0e0; }
.ridge-fill { fill: #e9dfc6; }
.ridge-line { fill: none; stroke: #8f8470; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ridge-snow { fill: #ffffff; stroke: #8f8470; stroke-width: 1.5; }
.map-tree { fill: #4f9a63; stroke: #2f5f3c; stroke-width: 1.5; paint-order: stroke fill; } .map-trunk { fill: #7d4f33; }
.river-shore { fill: none; stroke: #9cc8e3; stroke-width: 46; stroke-linecap: round; }
.river-water { fill: none; stroke: #5fb0e0; stroke-width: 32; stroke-linecap: round; }
.river-light { fill: none; stroke: #bfe5f7; stroke-width: 8; stroke-linecap: round; opacity: .55; }
.river-line { fill: none; stroke: #ffffff; stroke-width: 2; stroke-dasharray: 8 14; opacity: .8; }
.igloo { fill: #ffffff; stroke: #8f8470; stroke-width: 2; } .igloo-door { fill: #27405a; } .igloo-line { stroke: #d6cdb8; stroke-width: 2; }
.compass-ring { fill: #f8f1df; stroke: #8f8470; stroke-width: 2; }
.compass-n { fill: #e8705b; } .compass-e { fill: #8f8470; } .compass-text { font-size: 16px; font-weight: 800; fill: #27405a; }
.stop .post { fill: #8a5a3b; }
.stop .board { fill: #fff6dc; stroke: #27405a; stroke-width: 2; }
.stop-done .board { fill: #e8705b; stroke: #a4201c; }
.stop-current .board { fill: #ffd36b; }
.stop .tick { fill: none; stroke: #ffffff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.stop-num { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; fill: #27405a; }
.stop-word { font-size: 17px; font-weight: 800; fill: #27405a; paint-order: stroke fill; stroke: #f3e9d2; stroke-width: 4; }
.raft-marker { width: 12%; }
.you-are-here {
  position: absolute; left: 50%; bottom: 150%; transform: translateX(-50%) rotate(-4deg); /* clear of the bobble hat */
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  background: #b64735; color: #fff; font-size: clamp(10px, 1.3vw, 14px); font-weight: 800; letter-spacing: .03em;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.you-are-here::after { content: ""; position: absolute; left: 50%; top: 100%; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-top-color: #b64735; }
.sign { position: absolute; padding: 10px 14px; border-radius: 10px; background: var(--wood); color: var(--wood-ink); box-shadow: 0 8px 18px var(--shadow), inset 0 0 0 3px color-mix(in srgb, var(--wood) 70%, #000); }
.sign::before { content: ""; position: absolute; left: 10px; right: 10px; top: -5px; height: 10px; border-radius: 6px; background: var(--tree-snow); }
.sign-title { left: 4%; top: 38px; max-width: 54%; }
.sign-title .eyebrow { color: var(--wood-ink); opacity: .8; margin-bottom: 2px; }
.sign-title .journey-title { color: var(--wood-ink); font-size: clamp(15px, 1.9vw, 21px); line-height: 1.2; }
.sign-score { right: 4%; top: 38px; display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; }
.sign-score .portrait { width: 52px; height: 52px; grid-row: 1 / 3; }
.score-line { margin: 0; font-size: 14px; font-weight: 600; }
.score-line b { font-size: 18px; }
@media (max-width: 700px) {
  .sign-title { max-width: 56%; padding: 8px 10px; } .sign-score { padding: 6px 8px; } .sign-score .portrait { width: 36px; height: 36px; }
  .stop-word { font-size: 24px; }
}

.trail { fill: none; stroke: #e8705b; stroke-width: 5; stroke-dasharray: 10 9; stroke-linecap: round; opacity: .95; }


/* ---------- the journey hangs in a landscape ---------- */
.journey { position: relative; padding: 8px 0 0; isolation: isolate; max-width: none; min-height: calc(100dvh - 32px); display: grid; align-content: center; gap: 8px; }
.scenery { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.scenery-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-top { stop-color: var(--bg-1); } .sky-bottom { stop-color: var(--bg-2); }
.far-peaks { fill: var(--peak); } .far-snow { fill: var(--tree-snow); opacity: .9; }
.mid-hills { fill: color-mix(in srgb, var(--peak) 60%, var(--snow)); }
.treeline { fill: var(--tree-2); opacity: .85; }
.ground { fill: var(--snow-2); } .ground-near { fill: var(--snow); }
.pine { position: absolute; bottom: -6px; width: clamp(80px, 11%, 170px); filter: drop-shadow(0 6px 10px var(--shadow)); }
.pine-left { left: -2%; } .pine-right { right: -2%; transform: scaleX(-1); }
.pine-body { fill: var(--tree); stroke: var(--outline-soft); stroke-width: 3; paint-order: stroke fill; }
.pine-snow { fill: var(--tree-snow); } .pine-trunk { fill: var(--trunk); }
.guide-stand { position: absolute; left: 3%; bottom: 10%; width: clamp(70px, 9%, 130px); }
.guide-stand .owl { width: 100%; height: auto; }
.map-board { width: min(94%, 1240px); margin: 0 auto; }
.journey-actions { position: relative; margin-top: 10px; }
@media (max-width: 700px) { .map-board { width: 94%; } .pine, .guide-stand { display: none; } }

/* the wardrobe: scarf colours on the explorer's board */
.wardrobe { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.scarf-pick { appearance: none; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--outline-soft), inset 0 -4px 0 rgba(0,0,0,.15); position: relative; display: grid; place-items: center; font: inherit; }
.scarf-pick.on { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--next); }
.scarf-pick.locked { opacity: .85; }
.scarf-pick .cost { font-size: 13px; font-weight: 800; color: #214a73; background: #fff6dc; border-radius: 10px; padding: 1px 6px; box-shadow: 0 0 0 1.5px var(--outline-soft); }
.scarf-pick.wobble { animation: wobble .4s ease-in-out; }
.scarf-pick:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.entity.friend.waddle svg { animation: waddle .3s ease-in-out infinite alternate; }
.entity.friend.hello svg { animation: cheer .6s var(--ease) 2; }

/* Content belongs outside the illustration so every title and action stays readable. */
.journey { width:min(100%,1120px); margin:auto; min-height:calc(100dvh - 32px); gap:16px; padding:12px 20px; align-content:center; }
.journey-header { display:flex; justify-content:space-between; align-items:center; gap:16px; text-align:left; }
.journey-child { margin:0 0 4px; font-size:16px; }
.journey-header h2 { font-size:clamp(24px,3vw,36px); line-height:1.15; margin:0; overflow-wrap:anywhere; }
.journey-summary { display:flex; align-items:center; text-align:left; gap:14px; }
.journey-summary .portrait { width:60px; height:60px; flex:none; }
.journey-summary > div { flex:1; }
.journey-next { margin:0 0 4px; font-size:20px; }
.journey-progress { margin:0; font-size:16px; color:var(--ink-muted); }
.journey .map-board { width:min(100%,calc((100dvh - 280px) * 1.66)); padding-top:18px; }
.journey .rail { height:16px; }
.journey .rail::before,.journey .rail::after { height:40px; }
.journey-actions { display:flex; justify-content:center; align-items:center; gap:16px; flex-wrap:wrap; margin:0; }
.journey .btn { min-height:48px; }
.journey .btn-start { min-height:64px; }
.journey.lenny .btn { min-height:72px; }
.wardrobe-dialog { color:var(--ink); background:var(--guide-bg); border:2px solid var(--outline-soft); border-radius:24px; padding:24px; width:min(560px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; text-align:center; }
.wardrobe-dialog::backdrop { background:#162c43aa; }
.wardrobe-dialog h2 { margin:0; }
.wardrobe-dialog .wardrobe { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:20px 0; }
.scarf-choice { font:inherit; color:var(--ink); display:grid; justify-items:center; gap:6px; background:transparent; border:2px solid var(--outline-soft); padding:12px 4px; min-height:120px; border-radius:14px; cursor:pointer; }
.scarf-choice.on { border-color:var(--ink); }
.scarf-choice > span:last-child { font-size:13px; }
.scarf-swatch { display:block; width:36px; height:36px; border-radius:50%; background:var(--c); box-shadow:inset 0 -4px #0002; }
.scarf-choice:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
.wardrobe-dialog .notice { margin:12px 0; }
.test-input { grid-area:keys; min-width:0; }
.test-exit { grid-area:back; display:flex; align-items:center; justify-content:center; gap:14px; }
.keyboard-tools { display:none; }
.keyboard-collapsed .keys { display:none; }
.keyboard-collapsed .keyboard-tools { display:flex; align-items:center; justify-content:center; gap:18px; }
.choosing-ending .keyboard-tools,.choosing-ending .keyboard-toggle { display:none; }
.test:not(.handheld) .keyboard-tools { min-height:100px; }
.test:not(.handheld).keyboard-collapsed { grid-template-rows:auto auto auto 1fr; }
.map-help { text-align:center; }
.map-help summary { color:var(--ink); }
@media(max-width:600px) {
  .journey { padding:8px 0; gap:14px; }
  .journey-header .btn,.journey-summary .btn { padding-inline:14px; font-size:15px; }
  .journey-header h2 { font-size:25px; }
  .journey-summary { gap:8px; }
  .journey-summary .portrait { width:48px; height:48px; }
  .journey-next { font-size:18px; }.journey-progress { font-size:14px; }
  .journey .map-board { width:100%; }
  .journey-actions .btn-start { min-width:200px; }
  .wardrobe-dialog .wardrobe { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(orientation:landscape) and (max-height:600px) {
  .journey { grid-template-columns:minmax(250px,1fr) 1.2fr; grid-template-rows:auto auto 1fr; min-height:calc(100dvh - 32px); gap:10px 24px; padding:0; align-content:center; }
  .journey-header { grid-column:1 / 3; }
  .journey-header h2 { font-size:24px; }.journey-child { display:none; }
  .journey-summary { grid-column:1; flex-wrap:wrap; }
  .journey-summary > .btn { min-height:48px; padding:0 14px; font-size:15px; }
  .journey .map-board { grid-column:2; grid-row:2 / 4; width:min(100%,calc((100dvh - 120px) * 1.66)); }
  .journey-actions { grid-column:1; align-self:center; justify-content:start; gap:10px; }
  .journey-actions .btn-start { min-width:150px; font-size:24px; }
}
.test:not(.handheld) .test-exit { align-self:end; }
.test:not(.handheld) .test-exit .test-back { align-self:auto; }
.test:not(.handheld).keyboard-collapsed { grid-template-rows:auto minmax(220px,1fr) auto auto; }
.test:not(.handheld).keyboard-collapsed .board { align-self:center; }
.test:not(.handheld) .test-top { padding-right:90px; }
.test:not(.is-typing) .keyboard-tools { visibility:hidden; }
