@font-face {
  font-family: Young Serif;
  src: url('./assets/young-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Overpass;
  src: url('./assets/overpass.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
.boreen,
#panel {
  color-scheme: dark;
  --paper: #0f1713;
  --card: #16211b;
  --ink: #e5ebe3;
  --muted: #a7b5aa;
  --line: #34423a;
  --green: #00693b;
  --mint: #70cc98;
  --gold: #e7aa16;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Overpass', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
}
[hidden] {
  display: none !important;
}
:where(.boreen, #panel) button,
:where(.boreen, #panel) a,
:where(.boreen, #panel) input {
  font: inherit;
}
:where(.boreen, #panel) button {
  cursor: pointer;
  color: inherit;
}
:where(.boreen, #panel) a {
  color: inherit;
}
:where(.boreen, #panel) button,
:where(.boreen, #panel) a {
  -webkit-tap-highlight-color: transparent;
}
:where(.boreen, #panel) button {
  touch-action: manipulation;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
:where(.boreen, #panel) button:focus-visible,
:where(.boreen, #panel) a:focus-visible,
:where(.boreen, #panel) input:focus-visible,
:where(.boreen, #panel) summary:focus-visible {
  outline: 3px solid #9cc3ff;
  outline-offset: 3px;
}
.playfield {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 72rem);
  margin: 0 auto;
  height: clamp(540px, calc(100svh - 64px), 850px);
  background: #0c1a1f;
  border-bottom: 1px solid #2b3c32;
}
.map-stage,
.map-vignette,
.lobby,
#playing {
  position: absolute;
  inset: 0;
}
.map-stage {
  z-index: -3;
  overflow: hidden;
}
.map-vignette {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #0a100de8 0%,
    #0b120de0 5%,
    #0d150f9c 19%,
    #10191029 37%,
    transparent 52%,
    transparent 76%,
    #07120c33 100%
  );
}
.lobby {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 5vh, 64px) 12px 12px;
}
.lobby button,
.lobby a {
  pointer-events: auto;
}
.corner-tools {
  position: absolute;
  right: 15px;
  top: 13px;
  display: flex;
  gap: 8px;
}
.corner-tools button,
.hud-controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ecf2e9;
  background: #1120196b;
}
.corner-tools button:hover,
.hud-controls button:hover {
  background: #2e3d33;
}
.corner-tools .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}
.lobby-head {
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 8px #04130a99;
}
.game-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  font: 400 clamp(3.5rem, 6vw, 5rem) / 1.05 var(--serif);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff8e9;
}
.game-name .brand-mark {
  width: clamp(45px, 5.3vw, 66px);
  height: auto;
  flex: none;
  filter: drop-shadow(0 2px 4px #06140b);
}
.game-name span {
  display: block;
  font: 850 0.86rem/1.25 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #a0e3b9;
  margin: 2px 0 0;
}
.lobby-intro,
.road-of-day {
  font-size: 0.96rem;
  line-height: 1.4;
  margin: 5px auto;
  font-weight: 650;
  max-width: 540px;
}
.road-of-day {
  font-size: 0.9rem;
}
.lights {
  display: block;
  position: relative;
  overflow: hidden;
  margin: 18px auto 0;
  border: 3px solid #c65b3d;
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 2px #f6c777,
    0 8px 20px #0007;
  background: linear-gradient(#b93429, #a3231e);
  color: #ffe8c6;
  min-width: 275px;
  padding: 36px 24px 12px;
  font: 400 clamp(1.15rem, 2vw, 1.45rem) / 1.15 var(--serif);
}
.lights[aria-pressed='true'] {
  background: linear-gradient(#87332b, #6c2922);
}
.garland {
  position: absolute;
  top: -10px;
  left: 8%;
  width: 84%;
  height: 22px;
  border-radius: 0 0 50% 50%;
  border-bottom: 2px solid #4d251d;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}
.garland i {
  display: block;
  position: relative;
  width: 6px;
  height: 9px;
  background: #efb027;
  border-radius: 50%;
  transform: translateY(7px);
  animation: bulbs 1.9s ease-in-out infinite alternate;
}
.garland i:nth-child(3n) {
  background: #5bafbd;
  animation-delay: 0.4s;
}
.garland i:nth-child(3n + 1) {
  background: #a3b864;
  animation-delay: 0.65s;
}
.garland i:first-child,
.garland i:last-child {
  top: -4px;
}
.garland i:nth-child(2),
.garland i:nth-child(7) {
  top: -2px;
}
.lights[aria-pressed='true'] .garland i {
  filter: brightness(1.4);
  box-shadow: 0 0 6px #ffe091;
  animation: none;
}
.lights:hover {
  filter: brightness(1.08);
}
.lobby-dock {
  width: min(560px, 100%);
  background: #17221cf5;
  border-radius: 17px;
  box-shadow: 0 5px 16px #06120b70;
  padding: 13px 14px 10px;
}
.road-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 55px;
  padding: 12px 16px;
  border: 3px solid var(--green);
  border-radius: 9px;
  outline-offset: 4px;
  box-shadow:
    inset 0 0 0 2px #e9f1e7,
    0 2px 6px #07150b80;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  font-size: 1.13rem;
  line-height: 1.25;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.road-button:hover,
.unlimited-button:hover,
.chip-button:hover {
  filter: brightness(1.13);
}
.road-button:active,
.unlimited-button:active {
  transform: translateY(1px);
}
.lobby-second {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 11px 0;
}
.unlimited-button,
.chip-button {
  border-radius: 7px;
  background: #26372c;
  border: 1px solid #46594a;
  color: #e0ebe0;
  padding: 8px 13px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 0.9rem;
}
.unlimited-button small {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5d4b2;
}
.plain,
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.89rem;
}
.plain:hover,
.text-button:hover {
  color: white;
}
.lobby-foot {
  border-top: 1px solid #354338;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  font-size: 0.69rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #b7c4b9;
}
.lobby-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #39473e;
  border-radius: 5px;
  letter-spacing: 0.05em;
}
#playing {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
  align-items: start;
  justify-items: center;
  row-gap: 8px;
  padding-top: 8px;
}
.game-hud {
  grid-area: 1/1;
  width: min(740px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #12221bf5;
  border: 1px solid #405448;
  border-radius: 10px;
  z-index: 3;
}
.mileage {
  font: 400 1.65rem/1.15 var(--serif);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mileage small {
  font: 750 0.75rem var(--sans);
  letter-spacing: 0.035em;
  color: #d0e1d3;
}
.hud-center {
  text-align: center;
}
.hud-center > small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 850;
  color: #bec9be;
}
.q-trail {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 0 0 4px;
}
.q-trail img,
.q-trail span {
  height: 15px;
  width: 18px;
  object-fit: contain;
}
.q-trail span {
  color: #7e9182;
  opacity: 0.65;
  line-height: 15px;
  font-size: 0.88rem;
}
.q-trail .current {
  color: #f2d79a;
  opacity: 1;
}
.next-sign,
.distance-chip {
  justify-self: end;
  max-width: 100%;
  display: inline-block;
  background: #07663b;
  border: 2px solid #186c42;
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 1.25px #d8ecda,
    0 1px 4px #0b1d1050;
  padding: 2px 7px;
  color: #fff;
  font-weight: 850;
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.23;
  font-variant-numeric: tabular-nums;
}
.next-sign {
  display: grid;
  gap: 2px;
  padding: 5px 9px;
  line-height: 1.15;
}
#next-place {
  overflow-wrap: anywhere;
}
#next-distance {
  font-size: 0.82rem;
  white-space: nowrap;
  color: #fff2c7;
}
#next-distance:empty {
  display: none;
}
.hud-controls {
  position: absolute;
  right: max(12px, calc((100% - 870px) / 2));
  top: 55px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
}
.hud-controls button {
  height: 32px;
  width: 32px;
  background: #16271eab;
}
.hud-controls .icon {
  width: 17px;
  height: 17px;
}
.question-sheet {
  grid-area: 2/1;
  min-height: 0;
  width: min(660px, calc(100% - 92px));
  border-radius: 13px;
  background: #16211bf7;
  padding: 16px;
  box-shadow: 0 4px 12px #07160d4d;
  max-height: 50%;
  overflow: auto;
  z-index: 2;
}
.q-category,
.journal-label {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  font-weight: 850;
}
.q-title {
  font: 400 clamp(1.45rem, 2.4vw, 2.1rem) / 1.17 var(--serif);
  letter-spacing: -0.025em;
  margin: 6px 0;
}
.q-scope,
.reveal-prompt,
.rarity-note {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.35;
  margin: 6px 0 0;
}
.q-content {
  animation: rise 0.23s ease-out;
}
.answer-dock,
.advance-dock {
  position: absolute;
  bottom: 13px;
  left: 50%;
  width: min(660px, calc(100% - 34px));
  transform: translateX(-50%);
  z-index: 3;
}
.answer-row {
  margin: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 15px;
  background: #17231cf5;
  box-shadow: 0 4px 13px #07120a80;
}
.road-timer {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: conic-gradient(var(--green) calc(var(--fraction, 1) * 360deg), #344139 0);
  border-radius: 50%;
  position: relative;
  isolation: isolate;
  font-size: 1.06rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.road-timer:before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--card);
  z-index: -1;
}
.road-timer.low {
  background: conic-gradient(#e6aa26 calc(var(--fraction) * 360deg), #344139 0);
}
.answer-row input {
  width: 0;
  min-width: 0;
  flex: 1;
  border: 2px solid #395345;
  border-radius: 8px;
  background: var(--card);
  padding: 10px 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  height: 49px;
}
.answer-row input:focus {
  outline: none;
  border-color: #127447;
  box-shadow: 0 0 0 3px #087a3a33;
}
.go {
  width: auto;
  min-width: 55px;
  min-height: 47px;
  font-size: 1rem;
  padding: 7px 12px;
}
.road-button:disabled {
  opacity: 0.47;
  cursor: default;
}
.dock-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 6px 0;
  font-size: 0.81rem;
  color: #d5dfd7;
  text-shadow: 0 1px 3px #000;
}
.dock-meta .plain {
  padding: 0 5px;
  font-size: 0.81rem;
  color: #d5dfd7;
  text-decoration: underline;
}
.feedback {
  line-height: 1.4;
  flex: 1;
}
.feedback.error {
  color: #ffceaf;
}
.suggestion {
  border: 1px solid #82b897;
  border-radius: 4px;
  background: #213c2b;
  color: white;
  font: inherit;
  font-weight: bold;
  padding: 2px 6px;
}
.shaking {
  animation: shake 0.3s ease-in-out;
}
.reveal-prompt {
  margin: 0;
  line-height: 1.45;
}
.reveal-prompt .q-category {
  margin-right: 6px;
}
.find-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 10px 0 4px;
}
.sign-drop {
  width: 57px;
  height: 57px;
  object-fit: contain;
  flex: none;
  animation: signDrop 0.85s cubic-bezier(0.2, 0.85, 0.31, 1.22) both;
}
.find-row h2 {
  font: 400 clamp(1.5rem, 2.55vw, 2.15rem) / 1.14 var(--serif);
  letter-spacing: -0.025em;
  margin: 0;
}
.distance-chip {
  white-space: nowrap;
  margin-left: auto;
  flex: none;
  font-size: 1.13rem;
  padding: 4px 9px;
  animation: plate 0.5s ease-out both;
}
.distance-chip small {
  font-size: 0.73rem;
}
.answer-copy {
  margin: 7px 0 9px;
  font-size: 0.96rem;
  color: var(--muted);
}
.answer-copy strong {
  color: var(--ink);
}
.bands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.band {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  border-radius: 7px;
  text-align: center;
  padding: 4px 0;
  color: #dbe6dc;
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.1;
}
.band img {
  width: 35px;
  height: 29px;
  object-fit: contain;
  opacity: 0.68;
}
.band.chosen {
  background: var(--gold);
  color: #302100;
}
.band.chosen img {
  opacity: 1;
}
.rarity-note {
  font-size: 0.78rem;
  margin-top: 7px;
}
.advance-dock .road-button {
  min-height: 50px;
}
.milestones {
  position: absolute;
  inset: 11% 12px 16% auto;
  width: 23px;
  z-index: 1;
  pointer-events: none;
}
.milestones:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #dce4d85c;
}
.milestone {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(#79916a, #37553f);
  border: 2px solid #f6f5e8;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  display: grid;
  place-items: center;
  color: #f5e6b5;
  box-shadow: 0 1px 3px #0b1e13;
}
.milestone .icon {
  width: 13px;
  height: 13px;
}
.you-label {
  position: absolute;
  right: 14px;
  font-size: 0.59rem;
  color: #261c02;
  background: #ecb22a;
  border-radius: 4px 0 0 4px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 3px 5px;
  transition: bottom 0.95s ease;
  transform: translateY(50%);
}
.result-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  width: min(640px, calc(100% - 32px));
  max-height: 88%;
  overflow: auto;
  padding: 24px;
  background: #17211bf7;
  box-shadow: 0 5px 20px #07110a80;
}
.result-sheet h2 {
  font: 400 2.35rem/1.1 var(--serif);
  margin: 8px 0;
}
.result-sheet p {
  line-height: 1.5;
}
.journey-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.journey-actions .road-button {
  width: auto;
  min-height: 45px;
  flex: 1;
}
.review {
  margin: 15px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.review summary,
:where(.boreen, #panel) details summary {
  cursor: pointer;
  font-weight: 700;
}
.review ol {
  padding-left: 21px;
}
.review li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.review p {
  font-size: 0.9rem;
  margin: 4px 0;
  color: var(--muted);
}
.review a {
  color: var(--mint);
}
.manual-share {
  width: 100%;
  resize: vertical;
  margin-top: 8px;
}
.reading {
  width: min(48rem, calc(100% - 48px));
  margin-inline: auto;
}
.reading {
  padding: 36px 0 24px;
}
.reading h2 {
  font: 400 clamp(1.4rem, 2.7vw, 1.85rem) / 1.2 var(--serif);
  margin: 0;
}
.read-section,
.faqs {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 23px;
}
.read-section p,
.faqs p {
  max-width: 58ch;
  line-height: 1.65;
  color: #c5d1c8;
}
.guide-link {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.guide-link .plain {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--ink);
}
.faqs h2 {
  margin-bottom: 13px;
}
.faqs details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faqs details p {
  margin: 9px 0 0;
}
.faqs summary {
  font-weight: 700;
}
.faqs summary::marker {
  color: var(--mint);
}
#panel {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  max-width: calc(100vw - 24px);
  width: 540px;
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 22px 60px #06110d99;
}
#panel::backdrop {
  background: #07110bc9;
}
#panel[open] {
  animation: rise 0.2s ease;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-inner {
  padding: 22px;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.journal-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #243329;
  border: 1px solid var(--line);
}
.panel-title {
  font: 400 2rem/1.15 var(--serif);
  margin: 13px 0;
}
.dialog-inner p,
.help-list {
  line-height: 1.5;
}
.help-list {
  padding-left: 20px;
}
.help-list li {
  padding: 5px 0;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.settings-row small {
  display: block;
  color: var(--muted);
  padding-top: 2px;
}
.settings-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}
.subtle {
  color: var(--muted);
  font-size: 0.84rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #24432f;
  color: white;
  border-radius: 7px;
  font-weight: 750;
  padding: 10px 14px;
}
.journal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  background: #24382b;
  border-radius: 9px;
  padding: 11px;
}
.journal-stats span,
.journal-stats b {
  display: block;
}
.journal-stats b {
  font-family: var(--serif);
  font-size: 1.45rem;
}
.journal-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}
.journey-list {
  padding: 0;
  list-style: none;
}
.journey-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.journey-list small {
  display: block;
  color: var(--muted);
}
.modal-actions {
  margin: 15px 0;
}
.brand-mark {
  display: block;
  width: 39px;
  height: auto;
  flex: none;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes signDrop {
  0% {
    opacity: 0;
    transform: translateY(-30px) rotate(-14deg) scale(0.65);
  }
  56% {
    opacity: 1;
    transform: translateY(4px) rotate(4deg) scale(1.05);
  }
  82% {
    transform: translateY(-1px) rotate(-1deg);
  }
  to {
    transform: none;
  }
}
@keyframes plate {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shake {
  20%,
  60% {
    translate: -4px 0;
  }
  40%,
  80% {
    translate: 4px 0;
  }
}
@keyframes bulbs {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1150px) {
  .playfield {
    width: min(calc(100% - 4vw), 72rem);
    border-inline: 1px solid #2b3c32;
  }
}
@media (max-width: 800px) {
  .hud-controls {
    right: 7px;
  }
  .reading {
    padding-top: 24px;
  }
  .question-sheet {
    width: min(660px, calc(100% - 86px));
  }
}
@media (max-width: 620px) {
  .playfield {
    height: clamp(450px, calc(100svh - 58px), 760px);
  }
  .lobby {
    padding: 42px 8px 8px;
  }
  .game-name {
    font-size: clamp(3rem, 12vw, 4.2rem);
    margin-bottom: 12px;
  }
  .game-name span {
    font-size: 0.76rem;
  }
  .lobby-intro {
    font-size: 0.86rem;
    max-width: 295px;
  }
  .road-of-day {
    font-size: 0.8rem;
  }
  .corner-tools {
    top: 4px;
    right: 5px;
    gap: 2px;
  }
  .corner-tools button {
    width: 32px;
    height: 32px;
  }
  .corner-tools .icon {
    width: 17px;
  }
  .lights {
    margin-top: 12px;
    min-width: 215px;
    font-size: 1.1rem;
    padding: 25px 18px 9px;
    border-radius: 13px;
  }
  .lobby-dock {
    border-radius: 11px;
    padding: 9px;
  }
  .road-button {
    min-height: 50px;
    font-size: 1rem;
  }
  .lobby-second {
    margin: 7px 0;
    gap: 8px;
  }
  .unlimited-button,
  .plain {
    font-size: 0.81rem;
  }
  .lobby-foot {
    font-size: 0.62rem;
    padding-top: 5px;
  }
  .q-trail {
    gap: 0;
  }
  .q-trail span,
  .q-trail img {
    width: 13px;
    height: 12px;
    font-size: 0.68rem;
  }
  #playing {
    padding-top: 5px;
    row-gap: 5px;
  }
  .game-hud {
    width: calc(100% - 16px);
    gap: 4px 10px;
    padding: 6px 8px;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .mileage,
  .hud-center {
    grid-column: 1;
    justify-self: start;
  }
  .mileage {
    grid-row: 1;
    font-size: 1.35rem;
  }
  .mileage small {
    font-size: 0.72rem;
  }
  .hud-center {
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .hud-center > small {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }
  .next-sign {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 0.8rem;
  }
  .question-sheet {
    width: calc(100% - 16px);
    padding: 12px;
    max-height: 50%;
  }
  .q-title {
    font-size: 1.46rem;
  }
  .hud-controls {
    top: auto;
    bottom: 89px;
    right: 7px;
    flex-direction: row;
  }
  .hud-controls button {
    background: #14231bbf;
  }
  .answer-dock,
  .advance-dock {
    width: calc(100% - 12px);
    bottom: 7px;
  }
  .answer-row {
    gap: 5px;
    padding: 5px;
  }
  .answer-row input {
    height: 45px;
    font-size: 1rem;
  }
  .road-timer {
    width: 37px;
    height: 37px;
    font-size: 0.93rem;
  }
  .road-timer:before {
    inset: 4px;
  }
  .go {
    min-width: 45px;
    min-height: 43px;
    padding: 7px;
  }
  .dock-meta {
    font-size: 0.73rem;
  }
  .milestones {
    inset: 38% 7px 21% auto;
    width: 16px;
  }
  .milestone {
    width: 17px;
    height: 17px;
  }
  .milestone .icon {
    width: 10px;
    height: 10px;
  }
  .reveal-prompt {
    font-size: 0.78rem;
  }
  .find-row {
    margin: 6px 0;
    gap: 8px;
  }
  .find-row h2 {
    font-size: 1.5rem;
  }
  .sign-drop {
    width: 42px;
    height: 42px;
  }
  .distance-chip {
    font-size: 0.9rem;
  }
  .answer-copy {
    font-size: 0.85rem;
    margin: 3px 0 6px;
  }
  .band img {
    width: 27px;
    height: 25px;
  }
  .bands {
    gap: 2px;
  }
  .band {
    padding: 3px 1px;
  }
  .rarity-note {
    font-size: 0.71rem;
  }
  .reading {
    width: calc(100% - 36px);
  }
  .guide-link {
    gap: 7px;
  }
  .result-sheet {
    padding: 16px;
  }
  .result-sheet h2 {
    font-size: 1.7rem;
  }
}
@media (max-height: 550px) and (min-width: 621px) {
  .playfield {
    height: 100svh;
    min-height: 390px;
  }
  .lobby {
    padding-top: 9px;
  }
  .game-name {
    font-size: 3.8rem;
  }
  .game-name {
    margin-bottom: 5px;
  }
  .lights {
    margin: 5px auto 0;
    padding: 14px 20px 5px;
    min-width: 180px;
    font-size: 1rem;
  }
  .lobby-dock {
    padding: 6px 10px;
  }
  .lobby-second {
    margin: 4px 0;
  }
  .question-sheet {
    max-height: 62%;
  }
  .road-button {
    min-height: 43px;
  }
  .lobby-foot {
    padding: 2px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.boreen, #panel),
  :where(.boreen, #panel) *,
  :where(.boreen, #panel) *::before,
  :where(.boreen, #panel) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.map-stage {
  background-size: cover;
  background-position: center;
}
@media (max-width: 620px) {
  .playfield[data-phase='question']:focus-within {
    min-height: 360px;
    height: min(88svh, var(--keyboard-viewport, 100svh));
  }
}
.milestone {
  overflow: hidden;
}
.milestone img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.page-intro {
  margin: 0 0 clamp(26px, 4vw, 40px);
}
.page-intro h1 {
  margin: 0;
  font: 400 clamp(1.8rem, 3.8vw, 2.85rem) / 1.15 var(--serif);
  text-wrap: balance;
}
.page-intro p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: #c5d1c8;
  line-height: 1.6;
}
.boreen-page {
  background: #0f1713;
}
.boreen {
  display: flow-root;
}
.boreen .lobby-foot {
  justify-content: space-between;
}
.boreen .lobby-foot a {
  text-decoration: none;
}
.boreen .lobby-foot a:hover {
  text-decoration: underline;
}
.boreen .game-name {
  color: #fff8e9;
}
.boreen .game-name .brand-mark {
  width: clamp(36px, 5vw, 58px);
}
.boreen .wildlife-guide {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
}
.wildlife-guide li {
  text-align: center;
  padding: 10px 4px;
  border-block: 1px solid var(--line);
}
.wildlife-guide img {
  display: block;
  width: 100%;
  height: 54px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.wildlife-guide span,
.wildlife-guide strong {
  display: block;
}
.wildlife-guide span {
  font-size: 0.9rem;
}
.wildlife-guide strong {
  font-size: 0.85rem;
  color: var(--mint);
  margin-top: 3px;
}
.boreen-credits {
  margin: 24px 0 0;
}
.boreen-credits summary {
  color: var(--muted);
}
.boreen-credits a {
  color: var(--mint);
}
.boreen-credits p {
  margin: 0.7em 0;
  line-height: 1.55;
}
@media (max-width: 540px) {
  .boreen .wildlife-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
