:root {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --ink: #16324f;
  --ink-2: #56697e;
  --ink-3: #8fa0b2;
  --line: #dae2ea;
  --brand: #2b93ff;
  --brand-ink: #0b63c7;
  --brand-soft: #e6f2ff;
  --on-brand: #ffffff;
  --good: #0c9a6a;
  --good-soft: #e1f6ec;
  --warn: #c77f00;
  --warn-soft: #fff2d2;
  --bad: #db3438;
  --bad-soft: #fde7e7;
  --shadow: 0 8px 24px rgba(22, 50, 79, 0.14);
  --map-land: #e8eef1;
  --map-block: #d9e2e7;
  --map-bld: #c2ced7;
  --map-park: #cde7d1;
  --map-tree: #a8d3b0;
  --map-road: #ffffff;
  --map-road-edge: #bac7d2;
  --map-water: #b4d7f1;
  --map-water-edge: #9ac6e8;
  --map-ink: #16324f;
  --map-muted: #7b8ea2;
  --map-pin: #ffffff;
  --map-fog: rgba(226, 233, 238, 0.66);
  --map-fog0: rgba(226, 233, 238, 0);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1522;
    --surface: #10213a;
    --surface-2: #162b47;
    --ink: #e8f0f8;
    --ink-2: #a6b7c9;
    --ink-3: #6e8399;
    --line: #233a56;
    --brand: #3d9dff;
    --brand-ink: #8cc4ff;
    --brand-soft: #14325a;
    --on-brand: #06162a;
    --good: #34d399;
    --good-soft: #0e392d;
    --warn: #fbbf24;
    --warn-soft: #3d2e0a;
    --bad: #f87171;
    --bad-soft: #41191c;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --map-land: #0d1b2b;
    --map-block: #13263b;
    --map-bld: #1d354f;
    --map-park: #11352a;
    --map-tree: #1a4c39;
    --map-road: #2c4561;
    --map-road-edge: #081320;
    --map-water: #0a3157;
    --map-water-edge: #0c3d6c;
    --map-ink: #e8f0f8;
    --map-muted: #8296ab;
    --map-pin: #f3f7fb;
    --map-fog: rgba(6, 13, 22, 0.66);
    --map-fog0: rgba(6, 13, 22, 0);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1522;
  --surface: #10213a;
  --surface-2: #162b47;
  --ink: #e8f0f8;
  --ink-2: #a6b7c9;
  --ink-3: #6e8399;
  --line: #233a56;
  --brand: #3d9dff;
  --brand-ink: #8cc4ff;
  --brand-soft: #14325a;
  --on-brand: #06162a;
  --good: #34d399;
  --good-soft: #0e392d;
  --warn: #fbbf24;
  --warn-soft: #3d2e0a;
  --bad: #f87171;
  --bad-soft: #41191c;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --map-land: #0d1b2b;
  --map-block: #13263b;
  --map-bld: #1d354f;
  --map-park: #11352a;
  --map-tree: #1a4c39;
  --map-road: #2c4561;
  --map-road-edge: #081320;
  --map-water: #0a3157;
  --map-water-edge: #0c3d6c;
  --map-ink: #e8f0f8;
  --map-muted: #8296ab;
  --map-pin: #f3f7fb;
  --map-fog: rgba(6, 13, 22, 0.66);
  --map-fog0: rgba(6, 13, 22, 0);
  color-scheme: dark;
}
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
html {
  height: 100%;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Lexend",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.38;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h2,
h3,
p {
  margin: 0;
}
#app {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

/* HUD */
#hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 9px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hg small {
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}
.hg b {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.hg.cash b {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.hg.cash .row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chip {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--warn-soft);
  color: var(--warn);
  white-space: nowrap;
}
.bar {
  height: 5px;
  width: 96px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--brand);
  transition: width 0.25s linear;
}
.bar.stress i {
  background: var(--good);
  transition:
    width 0.3s linear,
    background-color 0.3s;
}
.bar.stress.s1 i {
  background: var(--warn);
}
.bar.stress.s2 i {
  background: var(--bad);
}
.hg.ctrl {
  flex-direction: row;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.seg button + button {
  border-left: 1px solid var(--line);
}
.seg button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--on-brand);
}
.iconbtn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

/* Stage */
#stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  min-height: 0;
}
#mapwrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--map-land);
}
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: manipulation;
}
#panel {
  position: relative;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 8px 10px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 3px solid transparent;
}
.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.tabs .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 6px;
  vertical-align: 2px;
}
#pbody {
  overflow: auto;
  padding: 12px 14px 150px;
  -webkit-overflow-scrolling: touch;
}
#pbody h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 14px 0 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#pbody h3 b {
  color: var(--ink);
  font-size: 13px;
}
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}
.vchip i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.vchip small {
  color: var(--ink-2);
  font-weight: 400;
}
.vchip.free {
  border-color: var(--good);
  background: var(--good-soft);
}
.vchip.free small {
  color: var(--good);
}
.schip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
}
.schip svg {
  width: 14px;
  height: 14px;
}
.schip.low {
  border-color: var(--bad);
  color: var(--bad);
  background: var(--bad-soft);
}
.empty {
  color: var(--ink-2);
  font-size: 13px;
  padding: 10px 0;
}
.orow {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.orow:hover {
  border-color: var(--brand);
}
.orow svg {
  width: 20px;
  height: 20px;
}
.orow .nm {
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.orow small {
  display: block;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 400;
}
.orow .tm {
  font-size: 11px;
  color: var(--ink-2);
  text-align: right;
}
.orow .tm .bar {
  width: 100%;
  margin-bottom: 4px;
}
.orow .tm .bar i {
  transition: none;
}
.orow .ok i {
  background: var(--good);
}
.orow .wn i {
  background: var(--warn);
}
.orow .bd i {
  background: var(--bad);
}
.orow.planned {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.orow.road {
  cursor: default;
  background: var(--surface-2);
}
.orow.road:hover {
  border-color: var(--line);
}
.orow .eta-ok {
  color: var(--good);
  font-weight: 500;
}
.orow .eta-late {
  color: var(--bad);
  font-weight: 500;
}
.orow .eta-none {
  color: var(--ink-3);
}

/* Shop */
.sec {
  margin-bottom: 6px;
}
.kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 8px;
}
.kit-head img {
  height: 30px;
  width: auto;
  display: block;
}
.kit-head span {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.logo-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-dark {
    display: block !important;
  }
  :root:not([data-theme="light"]) .logo-light {
    display: none !important;
  }
}
:root[data-theme="dark"] .logo-dark {
  display: block !important;
}
:root[data-theme="dark"] .logo-light {
  display: none !important;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--surface);
}
.card.own {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.card .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.card .top b {
  font-size: 14px;
  font-weight: 600;
}
.card .top em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.card p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 3px 0 8px;
}
.card .pain {
  font-size: 12px;
  font-weight: 500;
  color: var(--bad);
  margin: -3px 0 8px;
}
.card.own .pain {
  color: var(--good);
}
.card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card .foot small {
  font-size: 11.5px;
  color: var(--ink-2);
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 9px;
  padding: 8px 13px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.btn.big {
  padding: 12px 22px;
  font-size: 15px;
  border-radius: 11px;
}
.btn.on {
  background: var(--good-soft);
  border-color: var(--good);
  color: var(--good);
}
.chain {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 4px 9px;
  align-items: center;
}
.chain svg {
  width: 18px;
  height: 18px;
}
.flow {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 2px;
}
.flow.tight {
  color: var(--bad);
  font-weight: 500;
}
.muted {
  color: var(--ink-2);
  font-size: 12.5px;
}

/* Map overlays */
#strip {
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 7px 16px;
  min-height: 54px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
#goal {
  font-size: 13px;
  min-width: 0;
}
#goal small {
  color: var(--ink-2);
  display: block;
  font-size: 11px;
}
#goal b {
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#goal .bar {
  width: 100%;
  margin-top: 4px;
  height: 4px;
}
#coach {
  justify-self: start;
  display: flex;
  gap: 9px;
  align-items: center;
  background: var(--ink);
  color: var(--surface);
  border-radius: 11px 11px 11px 3px;
  padding: 8px 13px;
  font-size: 13px;
  line-height: 1.3;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
#coach.off {
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
}
#coach .who {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
}
#inbox {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 26px 12px 12px;
  pointer-events: none;
  background: linear-gradient(to top, var(--surface) 72%, transparent);
}
#inbox:empty {
  display: none;
}
.icard {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--bad);
  border-left-width: 5px;
  border-radius: 11px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
}
.icard.disp {
  border-color: var(--warn);
}
.icard b {
  font-weight: 600;
  display: block;
  font-size: 13px;
}
.icard p {
  margin: 1px 0 0;
  color: var(--ink-2);
}
.icard .irow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.icard .row {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.icard .btn {
  padding: 7px 12px;
  font-size: 12.5px;
}
.icard .row .btn {
  flex: 1;
}
.icard .bar {
  width: 100%;
  margin-bottom: 6px;
  height: 4px;
}
.icard .bar i {
  background: var(--bad);
  transition: none;
}
.icard.disp .bar i {
  background: var(--warn);
}
.icard.call b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
  margin-right: 6px;
  animation: ring 0.5s infinite alternate;
}
@keyframes ring {
  from {
    transform: scale(0.7);
    opacity: 0.5;
  }
  to {
    transform: scale(1.25);
    opacity: 1;
  }
}
.imore {
  pointer-events: none;
  align-self: center;
  background: var(--bad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 99px;
  padding: 3px 10px;
}
#tray {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 24px);
}
#tray[hidden] {
  display: none;
}
#tray .info {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}
#tray .info i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
#tray .info span {
  color: var(--ink-2);
}
#tray .sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}
#toasts {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 24px);
}
.toast {
  background: var(--ink);
  color: var(--surface);
  border-radius: 99px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: tin 0.22s ease-out;
  text-align: center;
}
.toast.good {
  background: var(--good);
  color: #fff;
}
.toast.bad {
  background: var(--bad);
  color: #fff;
}
@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Modal */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 34, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 20;
  overflow: auto;
}
#modal[hidden] {
  display: none;
}
.sheet {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: min(720px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 24px 26px;
}
.sheet.narrow {
  width: min(470px, 100%);
}
.sheet h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.sheet .lede {
  color: var(--ink-2);
  margin: 6px 0 16px;
  font-size: 14.5px;
  max-width: 58ch;
}
.sheet .logo {
  height: 34px;
  width: auto;
  margin-bottom: 18px;
}
.sheet .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.sheet .foot small {
  color: var(--ink-2);
  font-size: 12px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl td {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.tbl td:last-child {
  text-align: right;
  font-weight: 500;
}
.tbl tr.sum td {
  border-bottom: 0;
  font-weight: 700;
  font-size: 15px;
  padding-top: 8px;
}
.tbl .neg {
  color: var(--bad);
}
.tbl .pos {
  color: var(--good);
}
.tbl .d {
  font-size: 11.5px;
  font-weight: 500;
  margin-left: 6px;
}
.tbl .d.up {
  color: var(--good);
}
.tbl .d.dn {
  color: var(--bad);
}
.tbl .d.eq {
  color: var(--ink-3);
}
.boxh {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.headache {
  margin-top: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  padding: 13px 14px;
}
.headache > b {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 3px;
}
.headache > p {
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 10px;
}
.headache .card {
  margin-bottom: 0;
}
details.more {
  margin-top: 12px;
}
details.more summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-ink);
  padding: 4px 0;
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  #stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: min(58%, calc(72vw + 52px)) minmax(0, 1fr);
  }
  #panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  #hud {
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    gap: 6px 10px;
    padding: 6px 10px;
  }
  .hg {
    gap: 1px;
  }
  .hg small {
    font-size: 10px;
  }
  .hg b {
    font-size: 13px;
  }
  .hg.cash b {
    font-size: 17px;
  }
  .bar {
    width: 44px;
    height: 4px;
  }
  #unpaid {
    display: none;
  }
  .seg button,
  .iconbtn {
    padding: 6px 11px;
    font-size: 12px;
  }
  .hg.ctrl {
    margin-left: 0;
    grid-column: 1/-1;
    justify-content: space-between;
  }
  #tray {
    gap: 6px;
    padding: 6px 8px;
    bottom: 8px;
  }
  #tray .btn {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  #tray .info {
    font-size: 12px;
    padding: 0 2px;
  }
  .toast {
    font-size: 11.5px;
    padding: 6px 12px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .sheet {
    padding: 18px 16px;
  }
  .sheet h2 {
    font-size: 22px;
  }
  #strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 6px 10px;
  }
  #goal small {
    display: inline;
    margin-right: 6px;
  }
  #goal b {
    display: inline;
    font-size: 12px;
  }
  #goal .bar {
    display: none;
  }
  #coach {
    font-size: 12px;
    padding: 6px 10px;
    min-height: 44px;
    align-items: flex-start;
  }
  #pbody {
    padding-bottom: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .icard.call b::before,
  .toast {
    animation: none;
  }
  #coach {
    transition: none;
  }
}
.sheet.mid {
  width: min(580px, 100%);
}
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 2px 0 4px;
}
.mode {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mode b {
  font-size: 15px;
  font-weight: 600;
}
.mode p {
  font-size: 12.5px;
  color: var(--ink-2);
  flex: 1;
}
.mode .sub {
  font-size: 11.5px;
  color: var(--good);
  font-weight: 500;
}
.mode .btn {
  text-align: center;
}
.score {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--brand-ink);
  margin: -8px 0 4px;
}
.tbl.cmp td:not(:first-child) {
  text-align: right;
  font-weight: 500;
  padding-left: 6px;
  white-space: nowrap;
}
.tbl.cmp tr:first-child td {
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 600;
}
a.btn {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}
@media (max-width: 560px) {
  .modes {
    grid-template-columns: 1fr;
  }
  .score {
    font-size: 36px;
  }
}
