/* Pixel Roam, routes page. Loaded after style.css, reuses its tokens.
   Every card sets its own --rc (route colour); everything accent-coloured
   below reads from it, so six cards never look like one repeated panel. */

/* ---------- score strip ---------- */

.score {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;
  margin: 26px 0 24px;
}

.stat {
  border: var(--px) solid var(--edge);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 14px 20px;
  min-width: 150px;
}
.stat .k {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim);
}
.stat .v {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.3; margin-top: 8px;
  color: var(--accent);
  text-shadow: 3px 3px 0 var(--shadow);
}
.stat.small .v { font-size: 15px; color: var(--ink); }

.notice {
  border: 3px dashed var(--edge);
  color: var(--dim);
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: .06em;
  margin: 0 0 30px;
}
.notice b { color: var(--rare); font-weight: 400; }

/* ---------- route cards ---------- */

.routes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.route {
  --rc: var(--accent);
  border: var(--px) solid var(--edge);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route.running { border-color: var(--rc); }
.route.running { border-color: color-mix(in srgb, var(--rc) 55%, var(--edge)); }
.route.ready {
  border-color: var(--rc);
  animation: readyPulse 1.1s steps(2, end) infinite;
}
@keyframes readyPulse {
  0%, 100% { box-shadow: 6px 6px 0 var(--shadow); }
  50%      { box-shadow: 6px 6px 0 var(--shadow), 0 0 0 3px var(--rc); }
}

/* diagonal hazard stripes in the route's own colour */
.route-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 3px solid var(--edge);
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--rc) 12%, transparent) 0 6px,
    transparent 6px 14px);
}
.route-head .num {
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--bg);
  background: var(--rc);
  padding: 3px 7px;
  flex: none;
}
.route-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .01em;
  text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.route-head .region {
  margin-left: auto; flex: none;
  border: 2px solid var(--rc);
  color: var(--rc);
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 7px;
}

.blurb {
  margin: 0; padding: 0 18px;
  color: var(--dim); font-size: 12px; line-height: 1.6;
  min-height: 38px;
}

.meta-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--dim);
}
.meta-strip .base-pts { margin-left: auto; color: var(--rc); }
.pips { display: flex; gap: 3px; }
.pips i { width: 7px; height: 7px; background: var(--edge); display: block; }
.pips i.on { background: var(--rc); }

ul.wants { list-style: none; margin: 0; padding: 0 18px; }
ul.wants li {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim);
  padding: 5px 0;
  border-bottom: 2px dotted var(--edge);
}
ul.wants li b { margin-left: auto; color: var(--rc); font-weight: 400; }

.slot {
  margin-top: auto; padding: 0 18px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ---------- the artwork stage ---------- */

.stage {
  position: relative;
  border: 3px solid var(--edge);
  background: var(--bg);
  overflow: hidden;
  line-height: 0;
}

/* one frame of the sprite sheet; Stage.js steps background-position */
.sprite {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* weather + the scout glint are painted here, above the art, below the scrim */
.stage .fx {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stage.live { cursor: crosshair; }
.stage.glint-hit { animation: glintFlash .3s steps(3, end); }
@keyframes glintFlash {
  0%   { box-shadow: inset 0 0 0 4px var(--accent); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* a still frame, for thumbnails that should not animate */
.thumb {
  flex: none;
  border: 2px solid var(--edge);
  background-color: var(--panel-2);
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* scout progress, sat on the artwork */
.scout {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  background: rgba(12, 5, 24, .82);
  border: 2px solid var(--edge);
  padding: 5px 9px;
  line-height: 1;
}
.scout-label, .scout-hint {
  font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim);
}
.scout-hint { color: var(--accent); }
.scout i {
  width: 7px; height: 7px; display: block;
  background: var(--edge);
}
.scout i.on { background: var(--accent); }

.stage .scrim {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  line-height: 1.4;
  background: linear-gradient(to top,
    rgba(8, 7, 13, .95) 0%, rgba(8, 7, 13, .82) 45%, rgba(8, 7, 13, 0) 100%);
}
.scrim .rid { color: var(--rc); font-size: 10px; letter-spacing: .05em; }
.scrim .rname {
  font-size: 15px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.scrim .rtraits {
  color: var(--dim); font-size: 10px; margin-top: 3px;
  letter-spacing: .04em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* idle: the best-matching scene shown dimmed behind the call to action */
/* Not yet embarked: the scene is drained to white/grey/black so a route in
   progress is the only colour on the board. Selector is .sprite, not the old
   .stage-art, which stopped existing when the artwork moved to sprite sheets
   and left this rule matching nothing. */
.stage.idle .sprite {
  filter: grayscale(1) brightness(.62) contrast(1.15);
}
.stage.idle .scrim { opacity: .55; }
.stage.idle .scrim .rid,
.stage.idle .scrim .rname,
.stage.idle .scrim .rtraits { color: var(--dim); }
.stage.idle::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--rc) 7%, transparent) 0 8px,
    transparent 8px 20px);
  pointer-events: none;
}
.stage-cta {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  line-height: 1.4;
  z-index: 2;
}
.stage-cta .hint {
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rc);
  background: rgba(8, 7, 13, .8);
  padding: 4px 9px;
  text-align: center;
}

button.send {
  background: var(--rc);
  border: 3px solid var(--rc);
  color: var(--bg);
  font: inherit; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
}
button.send:hover { filter: brightness(1.15); }
button.send:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }

/* ---------- progress bar ---------- */

.bar {
  display: flex; gap: 2px;
  border: 3px solid var(--edge);
  background: var(--bg);
  padding: 3px;
  height: 28px;
}
.bar i { flex: 1; background: var(--panel-2); }
/* plain colour first: if color-mix is unsupported that line is dropped and
   the bar still fills, rather than staying invisible */
.bar i.on { background: var(--rc); }
.bar i.on { background: color-mix(in srgb, var(--rc) 78%, var(--shadow)); }
.bar i.on.head {
  background: var(--rc);
  animation: headBlink .7s steps(2, end) infinite;
}
@keyframes headBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.barline {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
}
.barline .time { color: var(--dim); }
.barline .reward { color: var(--rc); }

button.claim {
  background: var(--panel-2);
  border: 3px solid var(--edge);
  color: var(--dim);
  font: inherit; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 13px;
  cursor: default;
}
button.claim.ready {
  background: var(--rc);
  border-color: var(--rc);
  color: var(--bg);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
}
button.claim.ready:hover { filter: brightness(1.15); }
button.claim.ready:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }

/* ---------- log ---------- */

.log-panel { margin-top: 48px; }
.log-panel h3 {
  margin: 0 0 14px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim);
  border-top: 3px solid var(--edge);
  padding-top: 16px;
}
#log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#log li {
  display: flex; align-items: center; gap: 10px;
  border-left: 4px solid var(--accent-2);
  background: var(--panel);
  padding: 7px 12px;
  font-size: 12px;
}
#log li b { color: var(--accent); font-weight: 400; flex: none; }
#log li span {
  color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#log li.log-empty {
  border-left-color: var(--edge);
  color: var(--dim);
  letter-spacing: .04em; text-transform: uppercase; font-size: 11px;
}

/* ---------- picker ---------- */

#picker { --rc: var(--accent); }

.sheet.picker {
  grid-template-columns: 1fr;
  width: min(720px, 94vw);
  padding: 20px;
  gap: 14px;
  display: flex;
  flex-direction: column;
  border-color: var(--rc);
}

.picker-head { display: flex; align-items: flex-start; gap: 12px; }
.picker-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 13px; line-height: 1.5;
  letter-spacing: .01em; text-transform: uppercase;
}
.picker-head .id {
  color: var(--rc); font-size: 11px;
  letter-spacing: .05em; text-transform: uppercase;
}
.picker-head button {
  margin-left: auto;
  background: var(--panel-2);
  border: 3px solid var(--rare);
  color: var(--rare);
  font: inherit; font-size: 11px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 13px; cursor: pointer;
}

.picker-wants { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--rc);
  color: var(--rc);
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px;
}

#p-count {
  color: var(--dim); font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase;
}

.picker-list {
  max-height: 52vh;
  overflow: auto;
  border: 3px solid var(--edge);
  background: var(--bg);
  display: grid;
  gap: 2px;
  padding: 3px;
}

button.prow {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel);
  border: none;
  border-left: 4px solid transparent;
  color: inherit; font: inherit;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}
button.prow.bonus { border-left-color: color-mix(in srgb, var(--rc) 55%, transparent); }
button.prow:hover { background: var(--panel-2); border-left-color: var(--rc); }
#log li .thumb { border-width: 2px; }
.pmeta { min-width: 0; flex: 1; }
.pmeta b { display: block; font-weight: 400; font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmeta > span { color: var(--dim); font-size: 10px;
  letter-spacing: .04em; text-transform: uppercase; }
.ptags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ptags i {
  font-style: normal;
  border: 1px solid var(--rc);
  color: var(--rc);
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 5px;
}
.ppay { text-align: right; flex: none; }
.ppay b { display: block; color: var(--accent); font-weight: 400; font-size: 17px; }
.ppay span { color: var(--dim); font-size: 10px; letter-spacing: .04em; }
.ppay span.up { color: var(--rc); }

/* ---------- rank + xp ---------- */

.stat.lv { min-width: 230px; }
.xpbar {
  display: flex; gap: 2px; margin-top: 10px;
  border: 2px solid var(--edge); background: var(--bg); padding: 2px;
  height: 14px;
}
.xpbar i { flex: 1; background: var(--panel-2); }
.xpbar i.on { background: var(--accent-2); }
.xptext {
  margin-top: 6px; color: var(--dim);
  font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
}

.linky {
  background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; font-size: inherit;
  text-decoration: underline; cursor: pointer;
}
.linky:hover { color: var(--accent-2); }

.dev-flag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 18px auto 0;
  border: 3px solid var(--rare);
  background: rgba(255, 107, 61, .09);
  padding: 12px 18px;
  max-width: 640px;
}
.df-tag {
  font-size: 9px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--rare);
}
/* the headline claim: loudest thing in the banner */
.df-warn {
  font-family: var(--font-display);
  font-size: 11px; line-height: 1.6; font-weight: 400;
  letter-spacing: .01em; text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 7px 12px;
  box-shadow: 3px 3px 0 var(--shadow);
  animation: warnPulse 2.4s steps(2, end) infinite;
}
@keyframes warnPulse {
  0%, 100% { background: var(--accent); }
  50%      { background: #ffe680; }
}
.df-note {
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) { .df-warn { animation: none; } }

/* ---------- daily streak stat ---------- */

.stat.streak .v { color: var(--accent-2); }

/* ---------- daily contracts ---------- */

.contracts-panel { margin: 0 0 30px; }
.contracts-panel h3 {
  margin: 0 0 14px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim);
  border-top: 3px solid var(--edge);
  padding-top: 16px;
}
.contracts-panel h3 .resets {
  color: var(--edge); margin-left: 8px; text-transform: none;
}

.contracts {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.contract {
  border: 3px solid var(--edge);
  background: var(--panel);
  padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
  animation: pixelIn .3s steps(5, end) both;
}
.contract.done { border-color: var(--accent); }
.contract.taken { opacity: .55; }

.contract-top { display: flex; align-items: baseline; gap: 10px; }
.contract-top b {
  font-weight: 400; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
}
.cpay { margin-left: auto; color: var(--accent); font-size: 12px; }

.contract p { margin: 0; color: var(--dim); font-size: 10px; line-height: 1.7; }

.cbar {
  display: flex; gap: 2px;
  border: 2px solid var(--edge); background: var(--bg); padding: 2px;
  height: 12px;
}
.cbar i { flex: 1; background: var(--panel-2); }
.cbar i.on { background: var(--accent); }

.cfoot {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim);
}
.cwait, .cdone { margin-left: auto; }
.cdone { color: var(--accent); }
button.ctake {
  margin-left: auto;
  background: var(--accent);
  border: 3px solid var(--accent);
  color: var(--bg);
  font: inherit; font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 13px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow);
}
button.ctake:hover { filter: brightness(1.12); }
button.ctake:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }

/* ---------- streak note on a running card ---------- */

.streak-line {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim);
  margin-top: -4px;
}
.streak-line b { color: var(--accent-2); font-weight: 400; }

.critflag {
  border: 1px solid var(--accent-2);
  color: var(--accent-2) !important;
  font-size: 8px; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 5px; flex: none;
}

.foot-links { margin-top: 12px; }
.foot-links a { color: var(--accent); }

/* ---------- terms page ---------- */

.doc { max-width: 760px; margin: 0 auto; }
.doc h1 {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.5;
  color: var(--accent);
  text-shadow: 4px 4px 0 var(--shadow);
  margin: 0;
}
.doc-date {
  color: var(--dim); font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; margin: 12px 0 0;
}
.doc h2 {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2);
  margin: 34px 0 10px;
  border-bottom: 2px solid var(--edge);
  padding-bottom: 8px;
}
.doc p { font-size: 12px; line-height: 1.9; color: var(--ink); margin: 0 0 12px; }
.doc b { color: var(--accent); font-weight: 400; }
.doc ul { margin: 0 0 14px; padding: 0; list-style: none; }
.doc li {
  font-size: 12px; line-height: 1.8; color: var(--ink);
  border-left: 3px solid var(--edge);
  padding: 4px 0 4px 12px; margin-bottom: 6px;
}

.callout {
  border: 3px solid var(--rare);
  background: var(--panel);
  padding: 16px;
  margin: 26px 0;
  font-size: 12px; line-height: 1.9;
}
.callout b { color: var(--rare); }
.callout.muted { border-color: var(--accent); }
.callout.muted b { color: var(--accent); }

.doc-back { margin-top: 34px; }
.doc-back a { color: var(--accent); }

/* ---------- locked route ---------- */

.route.locked { opacity: .82; }
.route.locked .route-head { filter: grayscale(.55); }

.lockbox {
  border: 3px dashed var(--edge);
  background:
    repeating-linear-gradient(-45deg,
      rgba(90, 48, 156, .22) 0 10px, transparent 10px 24px),
    var(--bg);
  padding: 34px 16px;
  text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.lock-glyph { font-size: 26px; line-height: 1; filter: grayscale(1) brightness(1.6); }
.lock-title {
  color: var(--rc); font-size: 11px;
  letter-spacing: .05em; text-transform: uppercase;
}
.lock-sub {
  color: var(--dim); font-size: 9px;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- locked feature cards ---------- */

.locked-panel { margin-top: 48px; }
.locked-panel h3 {
  margin: 0 0 14px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim);
  border-top: 3px solid var(--edge);
  padding-top: 16px;
}
.locked-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

button.feature {
  --rc: var(--accent);
  display: flex; align-items: center; gap: 14px;
  background: var(--panel);
  border: 3px solid var(--edge);
  color: inherit; font: inherit;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
button.feature::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg,
    rgba(90, 48, 156, .18) 0 9px, transparent 9px 22px);
  pointer-events: none;
}
button.feature:hover { border-color: var(--rc); }
.feature-glyph {
  font-size: 22px; line-height: 1; flex: none;
  color: var(--rc); opacity: .85;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--edge);
  background: var(--panel-2);
}
.feature-meta { min-width: 0; flex: 1; }
.feature-meta b {
  display: block; font-weight: 400; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
}
.feature-meta span {
  display: block; margin-top: 4px;
  color: var(--dim); font-size: 10px; line-height: 1.6;
}
.feature-lock {
  flex: none; align-self: flex-start;
  border: 2px solid var(--edge);
  color: var(--dim);
  font-size: 9px; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 7px;
}

/* ---------- toasts ---------- */

.toasts {
  position: fixed; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 80; pointer-events: none;
}
.toast {
  --tc: var(--accent);
  border: 3px solid var(--tc);
  background: var(--panel);
  color: var(--tc);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 10px 14px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  animation: toastIn 3.4s steps(8, end) forwards;
}
@keyframes toastIn {
  0%   { opacity: 0; transform: translateX(24px); }
  10%  { opacity: 1; transform: none; }
  84%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-12px); }
}

/* ---------- entrance animation ---------- */

@keyframes pixelIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}
.route, button.feature { animation: pixelIn .3s steps(5, end) both; }

@media (prefers-reduced-motion: reduce) {
  .route, button.feature, .toast { animation-duration: .01ms; }
  .bar i.on.head, .route.ready, .lu-burst { animation: none; }
}

/* ---------- coming-soon + rank-up dialogs ---------- */

#soon, #levelup {
  border: none; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; color: var(--ink);
}
#soon::backdrop, #levelup::backdrop { background: rgba(12, 5, 24, .9); }
#soon[open], #levelup[open] { animation: dlgIn .18s steps(4, end); }
@keyframes dlgIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}

.sheet.soon, .sheet.levelup {
  display: block;
  grid-template-columns: none;
  width: min(520px, 92vw);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.soon-tag, .lu-tag {
  display: inline-block;
  border: 2px solid var(--rare);
  color: var(--rare);
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px;
}
.sheet.soon h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 14px; line-height: 1.5; text-transform: uppercase;
}
.sheet.soon p, .sheet.levelup p {
  color: var(--dim); font-size: 12px; line-height: 1.8; margin: 12px 0 0;
}
ul.soon-list { list-style: none; margin: 16px 0 0; padding: 0; }
ul.soon-list li {
  border-left: 3px solid var(--edge);
  padding: 6px 0 6px 12px;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 11px; line-height: 1.7;
}
/* consent gate, the only way past the first-run modal */
.agree {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px;
  border: 3px solid var(--rare);
  background: rgba(255, 107, 61, .08);
  padding: 14px;
  cursor: pointer;
}
.agree[hidden] { display: none; }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }

.agree-box {
  flex: none;
  width: 22px; height: 22px;
  border: 3px solid var(--edge);
  background: var(--bg);
  box-shadow: inset 2px 2px 0 var(--shadow);
  position: relative;
}
.agree input:checked + .agree-box {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
/* a tick drawn out of 3px studs, so it stays on the pixel grid */
.agree input:checked + .agree-box::after {
  content: "";
  position: absolute; left: 1px; top: 8px;
  width: 3px; height: 3px;
  background: var(--bg);
  box-shadow: 3px 3px 0 var(--bg), 6px 0 0 var(--bg),
              9px -3px 0 var(--bg), 12px -6px 0 var(--bg);
}
.agree input:focus-visible + .agree-box { border-color: var(--accent-2); }

.agree-text {
  font-size: 11px; line-height: 1.8; color: var(--ink);
}
.agree-text a { color: var(--accent); }

#soon-close:disabled {
  background: var(--panel-2);
  border-color: var(--edge);
  color: var(--dim);
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

#soon-close, #lu-close {
  margin-top: 20px; width: 100%;
  background: var(--accent);
  border: 3px solid var(--accent);
  color: var(--bg);
  font: inherit; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 13px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
}
#soon-close:hover, #lu-close:hover { filter: brightness(1.12); }
#soon-close:active, #lu-close:active {
  transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow);
}

.sheet.levelup { border-color: var(--accent-2); text-align: center; }
.sheet.levelup .lu-tag { border-color: var(--accent-2); color: var(--accent-2); }
.lu-burst {
  position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg,
    rgba(240, 95, 168, .14) 0 7deg, transparent 7deg 21deg);
  animation: burstSpin 9s steps(28, end) infinite;
  pointer-events: none;
}
@keyframes burstSpin { to { transform: rotate(360deg); } }
.sheet.levelup > *:not(.lu-burst) { position: relative; z-index: 1; }
.lu-num {
  font-family: var(--font-display);
  font-size: 46px; line-height: 1.2;
  color: var(--accent);
  text-shadow: 5px 5px 0 var(--shadow);
  margin: 18px 0 0;
}

@media (max-width: 760px) {
  .routes { grid-template-columns: 1fr; }
  .stat { flex: 1 1 140px; min-width: 0; }
  .stat.lv { flex: 1 1 100%; }
  button.prow .thumb { width: 56px !important; height: 56px !important; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
}
