/* Skadi's Descent — style.css
   Cold iron, old snow, one warm thing in the middle. */

:root {
  --ink: #eef4fc;
  --muted: #94a8c0;
  --dim: #647a94;
  --gold: #f0b56b;
  --gold-hi: #ffdca8;
  --gold-deep: #c98a44;
  --ice: #8fd8ea;
  --panel: rgba(7, 13, 23, 0.84);
  --panel-2: rgba(11, 20, 33, 0.92);
  --line: rgba(176, 205, 236, 0.16);
  --line-soft: rgba(176, 205, 236, 0.09);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: #050a12;
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#app {
  position: fixed; inset: 0;
  overflow: hidden;
  user-select: none;
}

#stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: #060c16;
}

.hidden { display: none !important; }

/* ---------------------------------------------------------------- boot --- */
.boot {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #050a12;
  z-index: 60;
  transition: opacity .55s ease;
}
.boot.out { opacity: 0; pointer-events: none; }
.boot-inner { display: flex; align-items: center; gap: 14px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
.boot-rune { font-family: var(--serif); font-size: 26px; color: var(--gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

/* ---------------------------------------------------------------- hud ---- */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.hud > * { pointer-events: none; }
.hud button { pointer-events: auto; }

.hud-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: max(14px, env(safe-area-inset-top)) clamp(14px, 3vw, 30px) 0;
}

.hud-chapter { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hud-act {
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hud-title {
  font-family: var(--serif); font-size: clamp(15px, 2vw, 20px); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .8);
}

.hud-track { padding-top: 4px; }
.hud-track-line {
  position: relative; height: 3px; border-radius: 3px;
  background: rgba(190, 214, 240, .18);
  overflow: visible;
}
.hud-track-line i {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: linear-gradient(90deg, rgba(240,181,107,.55), var(--gold-hi));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 196, 120, .6);
  transition: width .12s linear;
}
.hud-track-line i::after {
  content: ""; position: absolute; right: -4px; top: -3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 14px 3px rgba(255, 190, 110, .65);
}
.hud-track-labels {
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(190, 214, 240, .45); margin-top: 7px;
}

.hud-score { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.hud-score-label { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.hud-score-value {
  font-family: var(--serif); font-size: clamp(18px, 2.6vw, 26px);
  font-variant-numeric: tabular-nums; color: var(--gold-hi);
  text-shadow: 0 2px 18px rgba(0,0,0,.8);
}

.hud-left {
  position: absolute; left: clamp(12px, 2.4vw, 26px); top: 50%;
  transform: translateY(-42%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

.lamp { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lamp-flame {
  width: 18px; height: 26px;
  background: radial-gradient(circle at 50% 72%, #fff3d0 0%, #ffce86 34%, #f09040 62%, rgba(240,144,64,0) 72%);
  filter: drop-shadow(0 0 12px rgba(255, 186, 110, .85));
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  animation: flicker 2.4s infinite ease-in-out;
}
@keyframes flicker {
  0%,100% { transform: scale(1) rotate(-1deg); opacity: .95 }
  35% { transform: scale(1.08, .94) rotate(2deg); opacity: 1 }
  68% { transform: scale(.94, 1.06) rotate(-2deg); opacity: .88 }
}
.lamp-bar {
  width: 10px; height: clamp(90px, 17vh, 150px);
  border-radius: 8px;
  background: rgba(6, 12, 22, .7);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0,0,0,.7);
}
.lamp-bar i {
  position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  background: linear-gradient(180deg, #ffe4b4 0%, #f2b264 40%, #d2743a 100%);
  box-shadow: 0 0 18px rgba(255, 170, 90, .8);
  transition: height .18s linear, background .4s;
}
.lamp-bar i.low { background: linear-gradient(180deg, #ffc9a0 0%, #e06a4a 45%, #8d2f2f 100%); box-shadow: 0 0 18px rgba(255, 90, 70, .8); }
.lamp-pct {
  font-size: 11px; letter-spacing: .08em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lamp-pct span { color: var(--ink); }

.speedo {
  display: flex; align-items: baseline; gap: 3px;
  margin-top: 6px;
  font-family: var(--serif); color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.speedo span { font-size: clamp(15px, 2vw, 20px); }
.speedo em { font-style: normal; font-size: 9px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }

.hud-right {
  position: absolute; right: clamp(12px, 2.4vw, 26px); top: 50%;
  transform: translateY(-46%);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hud-counters { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.counter { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.counter b {
  font-family: var(--serif); font-size: 17px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.counter span { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 13, 23, .55);
  color: var(--ink); font-size: 12px; letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  backdrop-filter: blur(6px);
}
.icon-btn:hover { background: rgba(240,181,107,.16); border-color: rgba(240,181,107,.5); }
.icon-btn:active { transform: scale(.94); }

.wave-banner {
  position: absolute; left: 50%; top: 26%;
  transform: translateX(-50%);
  font-family: var(--serif); font-size: clamp(22px, 4vw, 34px);
  color: var(--gold-hi); letter-spacing: .04em;
  text-shadow: 0 4px 30px rgba(0,0,0,.8);
  animation: waveIn .9s ease both;
}
.wave-banner b { font-weight: 700; }
@keyframes waveIn {
  0% { opacity: 0; transform: translate(-50%, 12px) }
  25%, 70% { opacity: 1; transform: translate(-50%, 0) }
  100% { opacity: 0; transform: translate(-50%, -10px) }
}

/* -------------------------------------------------------------- touch ---- */
.touch { position: absolute; inset: 0; z-index: 22; pointer-events: none; }
.touch-steer, .touch-actions { position: absolute; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; gap: 12px; pointer-events: none; }
.touch-steer { left: 16px; }
.touch-actions { right: 16px; align-items: flex-end; }
.touch-btn {
  pointer-events: auto;
  width: 66px; height: 66px; border-radius: 50%;
  border: 1px solid rgba(200, 222, 246, .28);
  background: rgba(8, 15, 26, .5);
  color: var(--ink); font-family: var(--sans); font-size: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .1s, background .1s;
}
.touch-btn:active { transform: scale(.92); background: rgba(240,181,107,.22); }
.touch-jump {
  width: 78px; height: 78px; font-size: 12px; letter-spacing: .12em;
  border-color: rgba(240,181,107,.45); color: var(--gold-hi);
  background: rgba(240,181,107,.14);
}
.touch-brake { width: 58px; height: 58px; font-size: 9px; letter-spacing: .1em; color: var(--muted); }

/* -------------------------------------------------------------- screens -- */
.screen { position: absolute; inset: 0; z-index: 30; }

.title-screen {
  display: flex; align-items: center;
  padding: clamp(20px, 6vw, 80px);
  background:
    linear-gradient(90deg, rgba(4, 9, 17, .93) 0%, rgba(4, 9, 17, .78) 38%, rgba(4, 9, 17, 0) 72%);
}
.title-inner { max-width: 560px; animation: riseIn .8s ease both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

.eyebrow {
  margin: 0 0 12px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}
.game-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 8.4vw, 92px);
  line-height: .88;
  letter-spacing: -.02em;
  font-weight: 700;
  color: #f4f8ff;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .6);
}
.game-title span {
  background: linear-gradient(100deg, #ffe6bd 0%, #f0b56b 45%, #d08a45 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.game-sub {
  margin: 10px 0 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 2.2vw, 20px);
  color: #cfe0f4; letter-spacing: .06em;
}
.title-copy {
  margin: 22px 0 0; max-width: 470px;
  font-size: 14.5px; line-height: 1.62; color: #a9bdd4;
}

.title-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  appearance: none; cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 30, .6);
  color: var(--ink);
  font-family: var(--sans); font-size: 13px; letter-spacing: .04em;
  padding: 13px 22px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(200, 222, 246, .34); background: rgba(16, 28, 44, .8); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary {
  background: linear-gradient(180deg, #ffdca8 0%, #f0b56b 52%, #d79550 100%);
  color: #251607;
  border-color: rgba(255, 226, 180, .7);
  font-weight: 650;
  box-shadow: 0 10px 30px rgba(240, 165, 90, .22), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover { background: linear-gradient(180deg, #ffe8c2 0%, #f6c07a 52%, #e0a05c 100%); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-soft); }
.btn-ghost:hover { color: var(--ink); }

.title-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item b { font-family: var(--serif); font-size: 19px; color: var(--gold-hi); font-weight: 600; }
.meta-item span { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.sled-chip {
  cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: none; border: none; padding: 0; color: var(--ink);
  font-family: var(--serif); font-size: 14px;
}
.sled-chip i { font-style: normal; font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: .06em;
  border-bottom: 1px solid rgba(148,176,208,.28); padding-bottom: 2px;
}
.link-btn:hover { color: var(--ink); border-color: var(--gold); }

.title-fade { position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(3,7,13,.75)); pointer-events: none; }

/* ------------------------------------------------------------ chapters --- */
.chapters-screen {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(4,9,17,.94) 0%, rgba(4,9,17,.97) 40%, rgba(4,9,17,.99) 100%);
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 60px) 0;
}
.chapters-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.chapters-head > div:nth-child(2) { flex: 1; }
.chapters-title { margin: 0; font-family: var(--serif); font-size: clamp(24px, 4vw, 38px); font-weight: 600; letter-spacing: -.01em; }
.chapters-stars { display: flex; flex-direction: column; align-items: flex-end; }
.chapters-stars b { font-family: var(--serif); font-size: 24px; color: var(--gold-hi); }
.chapters-stars span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.chapter-list { flex: 1; overflow-y: auto; padding: 22px 0 26px; scrollbar-width: thin; scrollbar-color: rgba(160,190,220,.3) transparent; }
.act-block { margin-bottom: 26px; }
.act-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.act-num { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.act-name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.act-epi { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--dim); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.tile {
  position: relative; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(18,30,46,.72), rgba(9,16,27,.72));
  padding: 12px 12px 11px;
  color: var(--ink);
  transition: transform .16s, border-color .16s, background .16s;
  overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 0%, rgba(240,181,107,.12), transparent 60%);
  opacity: 0; transition: opacity .2s;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(240,181,107,.38); }
.tile:hover::after { opacity: 1; }
.tile-num { font-family: var(--serif); font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.tile-name { display: block; margin-top: 4px; font-family: var(--serif); font-size: 13.5px; line-height: 1.24; min-height: 34px; }
.tile-stars { display: flex; gap: 3px; margin-top: 8px; }
.tile-stars i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(190,214,240,.16); }
.tile-stars i.on { background: var(--gold-hi); box-shadow: 0 0 7px rgba(255,190,110,.8); }
.tile.locked { opacity: .42; cursor: not-allowed; }
.tile.locked:hover { transform: none; border-color: var(--line-soft); }
.tile.current { border-color: rgba(240,181,107,.6); box-shadow: 0 0 0 1px rgba(240,181,107,.22), 0 10px 30px rgba(0,0,0,.35); }

.chapters-foot { padding: 14px 0 max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 16px; }
.chapters-foot p { margin: 0; font-size: 11px; color: var(--dim); letter-spacing: .04em; }

/* ------------------------------------------------------------- overlay --- */
.overlay {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 20px;
  background: radial-gradient(120% 100% at 50% 40%, rgba(4, 9, 17, .55), rgba(3, 6, 12, .86));
  backdrop-filter: blur(7px);
  animation: fadeIn .22s ease both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.panel {
  width: min(620px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
  animation: panelIn .3s cubic-bezier(.2,.8,.3,1) both;
  position: relative;
}
.panel::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,181,107,.55), transparent);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.99) } to { opacity: 1; transform: none } }

.small-panel { width: min(400px, 100%); text-align: center; }
.small-panel .panel-actions { justify-content: center; }

.panel-eyebrow {
  margin: 0 0 10px; display: flex; justify-content: space-between; gap: 10px;
  font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.panel-eyebrow em { font-style: normal; color: var(--dim); letter-spacing: .18em; }
.panel-title {
  margin: 0; font-family: var(--serif); font-weight: 600;
  font-size: clamp(24px, 4.4vw, 34px); line-height: 1.1; letter-spacing: -.01em;
}
.verse {
  margin: 18px 0 0; padding: 0 0 0 16px;
  border-left: 2px solid rgba(240,181,107,.5);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 2.2vw, 18px); line-height: 1.55; color: #dbe7f6;
  white-space: pre-line;
}
.lore { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.brief-goal {
  margin-top: 20px; padding: 12px 14px;
  border: 1px solid rgba(240,181,107,.25);
  border-radius: 10px;
  background: rgba(240,181,107,.06);
  display: flex; flex-direction: column; gap: 4px;
}
.goal-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
#briefGoal { font-size: 12.5px; color: #cfdcec; }

.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.panel-actions.column { flex-direction: column; align-items: stretch; }
.panel-hint { margin: 16px 0 0; font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }

/* stars */
.stars { display: flex; gap: 12px; margin: 18px 0 6px; }
.stars .star {
  width: 22px; height: 22px; transform: rotate(45deg);
  border: 1px solid rgba(190,214,240,.28);
  background: rgba(190,214,240,.08);
  transition: background .35s, box-shadow .35s, transform .35s;
}
.stars .star.on {
  background: linear-gradient(135deg, #ffe9c4, #f0b56b 60%, #c9873f);
  border-color: rgba(255,222,170,.8);
  box-shadow: 0 0 18px rgba(255,190,110,.6);
  transform: rotate(45deg) scale(1.08);
}
.stars.pop .star.on { animation: starPop .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes starPop { 0% { transform: rotate(45deg) scale(.2); opacity: 0 } 100% { transform: rotate(45deg) scale(1.08); opacity: 1 } }

.result-line { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: #bdcee1; line-height: 1.5; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 22px 0 0; padding: 0;
  background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 10px;
  overflow: hidden;
}
.stats > div { background: rgba(8,14,24,.9); padding: 11px 12px; }
.stats dt { font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-need { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); }
.result-need b { color: var(--gold-hi); }

/* sleds */
.sled-list { display: grid; gap: 10px; margin-top: 20px; }
.sled-card {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(12,21,34,.6);
  cursor: pointer; text-align: left; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.sled-card:hover { border-color: rgba(240,181,107,.35); }
.sled-card.on { border-color: rgba(240,181,107,.65); background: rgba(240,181,107,.08); }
.sled-card.locked { opacity: .5; cursor: not-allowed; }
.sled-icon { width: 46px; height: 32px; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--gold); }
.sled-name { font-family: var(--serif); font-size: 15px; }
.sled-desc { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.sled-cost { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.how-list { margin: 18px 0 0; padding-left: 20px; color: #c3d3e6; font-size: 13.5px; line-height: 1.72; }
.how-list li { margin-bottom: 8px; }
.how-list b { color: var(--gold-hi); font-weight: 600; }

/* ------------------------------------------------------------ responsive - */
@media (max-width: 760px) {
  .title-screen { align-items: flex-start; padding-top: 16vh; background: linear-gradient(180deg, rgba(4,9,17,.86), rgba(4,9,17,.7) 55%, rgba(4,9,17,.9)); }
  .title-inner { max-width: 100%; }
  .title-copy { font-size: 13.5px; max-width: 100%; }
  .hud-top { grid-template-columns: 1fr auto; }
  .hud-track { display: none; }
  .hud-left { transform: translateY(-30%) scale(.9); }
  .hud-right { transform: translateY(-30%) scale(.9); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .chapters-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 420px) {
  .title-actions .btn { width: 100%; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .touch-btn { width: 58px; height: 58px; }
  .touch-jump { width: 70px; height: 70px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .title-screen { padding-top: 24px; align-items: center; }
  .game-title { font-size: clamp(34px, 7vw, 54px); }
  .title-copy { display: none; }
  .title-meta { margin-top: 16px; padding-top: 12px; }
  .lamp-bar { height: 70px; }
  .panel { padding: 18px 22px; }
  .verse { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
