:root {
  color-scheme: light;
  --background: #f2eee5;
  --ink: #2a211b;
  --surface: #fbf7ef;
  --raised: #eae1d3;
  --line: #d6c7b5;
  --muted: #5a4a3f;
  --dim: #6b5648;
  --accent: #a43d28;
  --accent-light: #81311f;
  --rust: #963921;
  --gold: #75501f;
  --font: Manrope, system-ui, -apple-system, sans-serif;
  --display: Literata, Georgia, serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  font: 400 100%/1.5 var(--font);
  font-synthesis: none;
  background: var(--background);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; min-width: 280px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
body.app {
  --background: #efeae0;
  --ink: #1b2420;
  --surface: #fbf9f4;
  --raised: #f7f4ec;
  --line: #d9d2c3;
  --muted: #4e564f;
  --dim: #5f655c;
  --accent: #1f4a3b;
  --accent-light: #16382c;
  --rust: #a33822;
  --gold: #76591f;
  --forest: #16322a;
  --dark-text: #f4efe3;
  --sage: #e3ece5;
  --peach: #e2603a;
  --font: Onest, system-ui, -apple-system, sans-serif;
  --display: var(--font);
  background: var(--background);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font: 500 clamp(2.25rem, 5vw, 4.1rem)/1.03 var(--display); letter-spacing: -.05em; }
.app h1 { font: 800 clamp(1.85rem, 3.6vw, 3.05rem)/1.12 var(--font); letter-spacing: -.035em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.03rem; }
p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { width: min(100% - 76px, 1280px); margin-inline: auto; }
.eyebrow { display: block; color: var(--dim); font-size: .6875rem; line-height: 1.4; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }

.app-header, .app-nav { background: var(--background); position: relative; z-index: 2; }
.app-header { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font-size: 1.5rem; font-weight: 800; letter-spacing: -.075em; }
.brand img { flex: none; width: 33px; height: 33px; }
.brand-point { color: var(--accent); }
.app-header .brand { gap: 8px; font-size: 1.1875rem; letter-spacing: -.02em; }
.app-header .brand img { width: 42px; height: 26px; object-fit: contain; }
.demo-badge { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; }
.demo-badge span { padding: 4px 10px; border-radius: 99px; background: #f1dfa8; color: #5a4510; font-size: .75rem; font-weight: 650; }
.demo-badge:hover span { background: #ead493; }
.app-main { overflow: auto; scrollbar-gutter: stable; outline: none; background: var(--background); }
.view { min-height: 100%; padding-block: 30px 42px; }
.app-nav { background: var(--raised); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 620px; min-height: 64px; margin: auto; }
.nav-indicator { position: absolute; top: -1px; left: 0; width: 25%; height: 3px; background: var(--accent); transform: translateX(calc(var(--active-tab, 0) * 100%)); transition: transform 290ms var(--ease); pointer-events: none; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: #5c645f; font-size: .8125rem; font-weight: 600; text-decoration: none; transition: color 160ms; }
.nav-item svg { transition: transform 220ms var(--ease); }
.nav-item:hover { color: var(--accent); }
.nav-item:hover svg { transform: translateY(-2px); }
.nav-item.is-active { color: var(--accent); font-weight: 750; }
.nav-item:active svg { transform: scale(.87); }
.nav-item:focus-visible { outline-offset: -5px; }

.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; font-size: .875rem; font-weight: 780; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color 150ms, border-color 150ms, transform 150ms var(--ease); }
.button svg { flex: none; }
.button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.button--primary { background: var(--accent); border-color: var(--accent); color: #fff9ef; }
.button--primary:hover { background: var(--accent-light); border-color: var(--accent-light); }
.button--primary:disabled { background: #e5d9c9; border-color: var(--line); color: var(--dim); }
.button--secondary { border-color: #a5866f; background: transparent; color: var(--ink); }
.button--secondary:hover { border-color: #815b3f; background: #e9d9c5; }
.app .button { border-radius: 12px; font-size: .9375rem; font-weight: 700; }
.app .button--secondary { border-color: var(--accent); color: var(--accent); }
.app .button--secondary:hover { background: var(--sage); }
.text-link, .quiet-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: .875rem; font-weight: 750; text-underline-offset: 4px; white-space: nowrap; }
.quiet-link { font-weight: 650; color: var(--muted); }
.text-link:hover, .quiet-link:hover { color: var(--accent-light); }
.icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 7px; transition: background-color 140ms, transform 140ms var(--ease); }
.icon-button:hover { background: var(--raised); }
.icon-button:active { transform: scale(.9); }
.tile-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--accent); background: #e9ddcd; }
.tile-icon--gold { color: var(--gold); background: #ebdfca; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--background); font-size: 1.1875rem; font-weight: 800; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.level { display: inline-flex; align-items: center; justify-content: flex-start; width: max-content; gap: 6px; color: var(--level); font-size: .75rem; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.easy { --level: #315f4e; }
.medium { --level: #805418; }
.hard { --level: #8b3527; }
.example-tag { display: inline-flex; padding: 2px 5px; border: 1px solid #bda183; border-radius: 4px; color: var(--gold); font-size: .6875rem; font-weight: 750; white-space: nowrap; }

.view[data-tab="home"] { padding-top: clamp(28px, 6dvh, 56px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.hero-image { aspect-ratio: 358 / 240; overflow: hidden; border-radius: 18px; background: #f2cfa0; box-shadow: 0 8px 22px #26392a15; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-story { min-width: 0; }
.app .hero-title { font-size: clamp(2.05rem, 4vw, 3.6rem); text-wrap: initial; }
.hero-body { display: flex; align-items: flex-start; gap: 12px; padding-block: 13px 17px; }
.hero-body p { max-width: 42ch; font-size: .9375rem; color: #2e3731; }
.home-action, .saved-route { margin-bottom: 12px; }
.home-action > .button { width: 100%; }
.saved-route { position: relative; isolation: isolate; padding: 16px; overflow: hidden; border-color: #2c5847; background: linear-gradient(145deg, #204638, var(--forest) 65%); color: var(--dark-text); box-shadow: 0 9px 22px #14281f20; }
.saved-route::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("assets/goal-contours.svg") right -42px top -37px / 300px 240px no-repeat; pointer-events: none; }
.saved-route-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.saved-route .eyebrow { color: #b9cdbf; }
.saved-route .level { padding: 3px 10px; border: 1px solid #b8923a; border-radius: 99px; color: #f2d88a; font-size: .8125rem; }
.saved-route h2 { margin-top: 12px; font-size: clamp(1.65rem, 4.1vw, 2.35rem); line-height: 1.08; font-weight: 800; }
.saved-route p { margin: 6px 0 18px; color: #c5d6cb; font-size: .875rem; }
.app .saved-route .button { width: 100%; min-height: 48px; background: var(--peach); border-color: #f29171; color: var(--ink); font-size: 1rem; box-shadow: 0 4px 10px #10271e50; }
.app .saved-route .button:hover { background: #f07d5b; border-color: #f07d5b; }
.saved-route .button:focus-visible { outline-color: var(--dark-text); }
.goal-list { display: grid; border-top: 1px solid var(--line); }
.goal-card { display: grid; grid-template-columns: 32px minmax(0,1fr) 22px; align-items: center; gap: 9px; width: 100%; min-height: 65px; padding: 6px 3px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; transition: background-color 145ms, transform 145ms var(--ease); }
.goal-card:hover, .goal-card[aria-current] { background: var(--sage); }
.goal-card:active { transform: translateY(1px); background: var(--sage); }
.goal-card .tile-icon { width: 32px; height: 36px; color: var(--level); background: transparent; }
.goal-card__copy { display: grid; gap: 3px; }
.goal-card__copy strong { line-height: 1.2; font-size: 1.04rem; letter-spacing: -.025em; }
.goal-meta { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.goal-endpoint { display: grid; place-items: center; color: var(--accent); }
.ranking-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 8px 14px; text-decoration: none; transition: border-color 170ms, background-color 170ms, transform 180ms var(--ease); }
.ranking-card:hover { border-color: var(--accent); }
.ranking-card__copy, .ranking-card__action { display: flex; align-items: center; gap: 8px; }
.ranking-card__copy strong { font-size: .9375rem; letter-spacing: -.015em; }
.ranking-card .zone-total { color: var(--accent); }
.ranking-card__copy svg, .ranking-card__action { flex: none; color: var(--accent); }
.ranking-card__action { font-size: .8125rem; font-weight: 750; }

.screen-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.screen-heading > .button { flex-shrink: 0; }
.screen-meta { margin-top: 4px; color: var(--muted); font-size: .875rem; }

.routes-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; grid-template-areas: "map ready" "map next" "map stops"; gap: 17px 23px; align-items: start; }
.route-map { grid-area: map; }
.readiness { --readiness-accent: #708676; grid-area: ready; padding: 14px 16px; background: #edf0e9; border-color: #c4d2c7; box-shadow: inset 3px 0 var(--readiness-accent); }
.readiness.is-ready { --readiness-accent: #39765d; background: var(--sage); border-color: #b9cfc0; }
.readiness.is-caution { --readiness-accent: #bc6345; background: #f6e5d9; border-color: #dfb6a4; }
.readiness-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent); font-size: .8125rem; font-weight: 600; }
.readiness-label .eyebrow { color: inherit; }
.readiness.is-caution .tile-icon { color: var(--rust); background: #ecd0bc; }
.readiness-heading { display: flex; align-items: flex-start; gap: 10px; }
.readiness-heading .tile-icon { width: 26px; height: 26px; border-radius: 50%; color: var(--dark-text); background: var(--accent); }
.readiness-heading h2 { margin-top: 1px; font-size: 1rem; letter-spacing: -.015em; text-wrap: initial; }
.readiness-heading p { margin-top: 4px; font-size: .875rem; }
.readiness > .inline-alert { display: flex; align-items: start; gap: 6px; color: var(--gold); font-size: .875rem; }
.inline-alert { margin-top: 8px; }
.inline-alert svg { flex: none; margin-top: 2px; }
.readiness-actions { display: flex; gap: 8px; margin-top: 12px; }
.readiness-actions > .button--primary { flex: 1; }
.readiness > .quiet-link { margin-bottom: -7px; }
.next-card { grid-area: next; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; border-color: #e2b8a4; background: #fbf3e8; text-align: left; transition: border-color 170ms, background-color 170ms, transform 180ms var(--ease); }
.next-card:hover { border-color: #ac553c; background: #f9e8d8; }
.next-card > svg { flex: none; color: var(--accent); }
.next-number { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1.5px solid var(--rust); border-radius: 50%; background: #fbe8d9; color: var(--rust); font-weight: 800; }
.next-copy { display: grid; flex: 1; gap: 1px; }
.next-copy small { color: var(--muted); font-size: .75rem; }
.next-copy strong { font-size: .9375rem; }
.route-details { grid-area: stops; display: grid; gap: 12px; }
.route-details > .button { justify-self: start; }
.stops-card { padding: 14px 16px; }
.stops-list { margin-top: 6px; }
.stop-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 53px; padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.stop-row:hover .stop-copy strong { color: var(--accent); }
.stop-row > svg { color: var(--dim); }
.stop-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; font-size: .875rem; font-weight: 800; color: var(--muted); }
.stop-next .stop-icon { border-color: var(--accent); color: var(--accent); }
.stop-done .stop-icon { background: #efe4d2; border-color: #a38364; color: var(--accent); }
.stop-copy { display: grid; gap: 2px; }
.stop-copy strong { font-size: .875rem; }
.stop-copy small { color: var(--dim); font-size: .75rem; line-height: 1.2; }

.map-card { --map-background: #1c382f; --map-text: #f4efe3; --map-trail: #f2c48a; --map-trip: #a4cad1; --map-return: #ff9b78; overflow: hidden; border-color: var(--map-background); background: var(--map-background); color: var(--map-text); }
.map-heading { display: grid; gap: 8px; padding: 12px 12px 8px; }
.map-heading h2 { font-size: .875rem; letter-spacing: 0; text-wrap: initial; }
.map-heading h2 span { color: #b9cdbf; }
.segmented { display: flex; overflow: hidden; border: 1px solid #54796a; border-radius: 10px; }
.segmented button { flex: 1; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: var(--map-text); white-space: nowrap; font-size: .8125rem; font-weight: 700; }
.segmented button[aria-pressed="true"] { color: var(--ink); background: var(--map-text); }
.segmented button:focus-visible { outline-color: var(--map-return); outline-offset: -4px; }
.map-plot { position: relative; isolation: isolate; overflow: hidden; background: var(--map-background); }
.map-plot::before { content: ""; position: absolute; inset: 0; background: var(--map-image, none) center / var(--map-scale, 100%) 100% no-repeat; filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .32; pointer-events: none; }
.route-plot { height: clamp(500px, 61dvh, 560px); }
.territory-plot { height: clamp(520px, 62dvh, 560px); }
.map-overlay { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; }
.map-overlay path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.map-trail-shadow { stroke: #0f231c; stroke-width: 8px; opacity: .85; }
.map-trail-line { stroke: var(--map-trail); stroke-width: 3.5px; }
.map-trip { stroke: var(--map-trip); stroke-width: 3px; stroke-dasharray: 6 7; }
.map-overview { stroke: var(--map-return, #a14430); stroke-width: 3px; stroke-dasharray: 4 6; }
.map-return-arrow { stroke: var(--map-return); stroke-width: 2px; }
.map-return-arrow--trip { stroke: var(--map-trip); }
.map-return-arrow--base { stroke-dasharray: 2 6; opacity: .6; }
.map-north { position: absolute; z-index: 1; top: 9px; left: 10px; display: grid; align-content: center; justify-items: center; gap: 3px; width: 28px; height: 39px; border: 1px solid #6a897b; border-radius: 6px; background: #17322a; color: var(--map-text); font: 750 .6875rem/1.1 var(--font); }
.map-north span { width: 9px; height: 14px; background: currentColor; clip-path: polygon(50% 0%, 100% 100%, 50% 70%, 0 100%); }
.map-point { position: absolute; z-index: 2; top: var(--y); left: var(--x); width: 0; height: 0; }
.map-point:focus-within, .map-point:hover { z-index: 5; }
.map-marker { position: absolute; isolation: isolate; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: .875rem; font-weight: 800; }
.map-marker::before { content: ""; position: absolute; z-index: -1; inset: 7px; border-radius: 50%; border: 2px solid #0f231c; background: var(--map-trail); transition: box-shadow 190ms, transform 190ms var(--ease); }
.map-marker:active::before { transform: scale(.86); }
.map-marker:focus-visible { outline-color: var(--map-text); outline-offset: -3px; }
.is-next .map-marker::before { background: #fff; border-color: var(--map-return); }
.is-next .map-marker { color: var(--rust); }
.is-done .map-marker::before { background: #b9d5c4; }
.is-selected .map-marker::before { box-shadow: 0 0 0 3px #f8f2e599; }
.point-travel .map-marker::before { background: var(--map-trip); }
.point-risk .map-marker::before { border-color: var(--map-return); background: #f8ddd0; }
.point-risk .map-marker { color: var(--rust); }
.map-label, .map-static-label { position: absolute; pointer-events: none; color: var(--map-text); text-shadow: 0 1px 3px #0f231c; font-size: .75rem; font-weight: 750; line-height: 1.15; }
.map-label { transform: translateY(-50%); padding: 3px 4px; border-radius: 4px; white-space: nowrap; background: #17322adb; }
.map-label--left { right: 18px; }
.map-label--right { left: 18px; }
.valley-label { left: 11%; top: 73%; }
.peak-label { top: 92%; right: 14%; }
.trip-label { left: 43%; top: 49%; color: var(--map-trip); }
.map-caption { position: absolute; right: 9px; bottom: 9px; padding: 3px 5px; border-radius: 4px; color: #c5d6cb; background: #10281fdb; font-size: .625rem; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; padding: 8px 12px; color: #d6e3db; font-size: .75rem; }
.map-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend svg { color: var(--map-return); }
.legend-line { width: 17px; border-top: 2px solid var(--map-trail); }
.legend-line.dashed { border-top-color: var(--map-trip); border-top-style: dashed; }
.legend-line.caution-line { border-top-color: var(--map-return); border-top-style: dashed; }

.top-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "map leaders" "legend leaders" "rules leaders"; gap: 12px 24px; align-items: start; }
.territory-card { grid-area: map; --map-background: #14281f; }
.top-side { grid-area: leaders; }
.top-side, .profile-side, .profile-left { display: grid; gap: 14px; min-width: 0; }
.rank-summary { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; color: var(--dark-text); background: var(--ink); white-space: nowrap; font-size: .875rem; }
.rank-summary strong { font-weight: 700; }
.rank-summary .zone-total { color: var(--map-trail, #f2c48a); }
.country-inset { position: absolute; z-index: 3; top: 11px; right: 11px; display: grid; justify-items: center; padding: 4px 5px 5px; border: 1px solid #ac927c; border-radius: 5px; background: #f3e8d8f0; color: #4f3e33; font-size: .6875rem; pointer-events: none; }
.country-inset img { width: 88px; height: auto; }
.territory-label { left: 14px; top: 14px; color: #b9cdbf; }
.own-zones { position: absolute; z-index: 4; bottom: 8px; left: 8px; border-color: #54796a; border-radius: 9px; background: #10281f; color: var(--map-text); }
.own-zones:hover { background: var(--accent); }
.own-zones:focus-visible { outline-color: var(--map-text); }
.zone { position: absolute; top: var(--y); left: var(--x); transform: translate(-50%, -50%); width: 7.2%; height: 11.08%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--map-text); clip-path: polygon(50% 0, 97% 25%, 97% 75%, 50% 100%, 3% 75%, 3% 25%); }
.zone svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zone svg:first-child path { fill: var(--owner); fill-opacity: .92; stroke: #14281f; stroke-width: 1.5; transition: fill-opacity 170ms; }
.zone > span { position: relative; z-index: 1; font-size: .6875rem; font-weight: 800; text-shadow: 0 1px 3px #552719; }
.zone > svg:not(:first-child) { z-index: 1; }
.zone--you svg:first-child path { stroke: #ffe5d6; stroke-width: 1.6; }
.zone--free svg:first-child path { fill: #243a31; stroke: var(--owner); }
.zone--camp.zone--free svg:first-child path { stroke: var(--map-trail); stroke-dasharray: 4 3; stroke-width: 2; }
.zone:hover, .zone:focus-visible, .zone--selected { z-index: 4; }
.zone:hover svg:first-child path, .zone:focus-visible svg:first-child path, .zone--selected svg:first-child path { fill-opacity: 1; stroke: var(--map-text); stroke-width: 3; }
.owner-legend { grid-area: legend; display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.owner-legend > span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.owner-legend i, .rank-row i { width: 13px; height: 14px; background: var(--owner); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.map-rule { grid-area: rules; font-size: .8125rem; }
.leader-card { border: 0; background: transparent; }
.leader-card ol { display: grid; gap: 2px; list-style: none; }
.rank-row { display: grid; grid-template-columns: 24px 14px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 46px; padding: 4px 12px; border: 2px solid transparent; border-radius: 10px; color: var(--muted); font-size: .9375rem; }
.rank-row strong { color: var(--ink); }
.rank-position { color: var(--dim); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-you { border-color: #d4a58e; background: #fff4e7; color: var(--ink); font-weight: 800; box-shadow: inset 3px 0 #bc5638; }
.rank-you .rank-position { color: var(--ink); }
.inline-zone { padding: 13px; animation: unfold 220ms var(--ease); }
.inline-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
.zone-detail { display: flex; align-items: center; gap: 11px; }
.zone-detail-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #9c8067; border-radius: 7px; color: var(--owner); }
.zone-detail strong, .zone-detail small { display: block; margin-top: 3px; }
.zone-detail small { color: var(--muted); }

.profile-identity { display: flex; align-items: center; gap: 14px; margin: 0 0 14px 3px; }
.profile-identity .avatar { width: 60px; height: 60px; background: #b93e1e; color: #fff; font-size: 1.75rem; outline: 2px solid var(--ink); outline-offset: 3px; }
.profile-identity h2 { font-size: 1.25rem; }
.profile-identity p { margin-top: 3px; font-size: .875rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.39fr) minmax(0, 1fr); gap: 25px; align-items: start; }
.profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 13px 8px; border-radius: 14px; background: var(--forest); color: var(--dark-text); }
.stat { display: grid; gap: 2px; align-content: center; min-height: 50px; padding: 2px 4px; border-right: 1px solid #45685a; text-align: center; }
.stat:last-child { border-right: 0; }
.stat > span { color: #b9cdbf; font-size: .8125rem; }
.stat > strong { font-size: clamp(1.45rem, 4vw, 2.15rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat:last-child > strong { color: #f2c48a; }
.chart-card { padding: 14px 16px; }
.chart-card h2 { font-size: .9375rem; letter-spacing: -.01em; }
.chart { margin-top: 35px; color: var(--dim); font-size: .8125rem; }
.chart-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; justify-items: center; height: 140px; padding-inline: 9%; border-bottom: 2px solid var(--ink); }
.chart-bar { --bar-color: #9db5a8; position: relative; width: min(68%, 100px); height: var(--size); }
.chart-bar::before { content: ""; position: absolute; inset: 0; transform-origin: bottom; border-radius: 8px 8px 0 0; background: var(--bar-color); }
.chart-bar--current { --bar-color: #d9552b; }
.chart-bar strong { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--ink); }
.chart-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; padding-inline: 9%; text-align: center; }
.chart-card > p { margin-top: 8px; font-size: .75rem; }
.achievement-card { padding: 7px 16px; }
.achievement-card ul { list-style: none; }
.achievement { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.achievement:last-child { border-bottom: 0; }
.achievement .tile-icon { width: 34px; height: 34px; border-radius: 9px; background: #eee9de; color: var(--muted); }
.achievement--earned .tile-icon { background: var(--sage); color: var(--accent); }
.achievement--earned .achievement-status { color: var(--accent); }
.achievement--featured { margin-inline: -6px; padding-inline: 6px; border-radius: 9px; background: #f6e9d1; }
.achievement--featured .tile-icon { background: #f0d8a8; color: #76591f; }
.achievement > div { display: grid; gap: 2px; font-size: .9375rem; }
.achievement > div span { color: var(--muted); font-size: .8125rem; }
.achievement-status { display: grid; place-items: center; color: var(--dim); }

.detail-panel {
  width: min(520px, 100% - 32px);
  max-height: min(88dvh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 80px #14281f36;
  opacity: 0;
  transform: translateY(15px) scale(.985);
  transition: transform 260ms var(--ease), opacity 200ms, display 260ms allow-discrete, overlay 260ms allow-discrete;
}
.detail-panel[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
.detail-panel::backdrop { background: #14281f9c; opacity: 0; transition: opacity 220ms, display 260ms allow-discrete, overlay 260ms allow-discrete; }
.detail-panel[open]::backdrop { opacity: 1; }
@starting-style {
  .detail-panel[open] { opacity: 0; transform: translateY(15px) scale(.985); }
  .detail-panel[open]::backdrop { opacity: 0; }
}
@supports not (transition-behavior: allow-discrete) {
  .detail-panel[open] { animation: unfold 220ms var(--ease); }
}
@keyframes unfold { from { opacity: .35; translate: 0 7px; } to { opacity: 1; translate: 0 0; } }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head > div { align-self: center; }
.panel-head h2 { font: 800 clamp(1.35rem, 4vw, 1.85rem)/1.13 var(--display); letter-spacing: -.031em; text-wrap: initial; }
.panel-head .eyebrow { margin-bottom: 4px; }
.panel-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -7px 0 2px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: .8125rem; font-weight: 780; text-align: left; }
.panel-back:hover { color: var(--accent-light); }
.panel-content { overflow: auto; overscroll-behavior: contain; padding: 15px 18px 19px; }
.panel-content > .button { margin-top: 13px; width: 100%; }
.panel-content > p + p, .panel-content > h3 { margin-top: 12px; }
.panel-lede { margin-bottom: 11px; }
.panel-lede svg { color: var(--accent); vertical-align: -.2em; }
.experience-options { display: grid; gap: 5px; min-width: 0; padding: 0; margin: 0; border: 0; }
.experience-option { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; min-height: 60px; gap: 9px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); line-height: 1.3; cursor: pointer; text-align: left; transition: background-color 180ms, border-color 180ms; }
.experience-option:hover, .experience-option[aria-pressed="true"] { background: var(--sage); border-color: var(--accent); }
.gear-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.experience-option__icon { display: grid; place-items: center; width: 33px; height: 33px; color: var(--accent); }
.radio-mark { color: var(--accent); display: grid; place-items: center; }

.callout { display: flex; align-items: flex-start; gap: 7px; padding: 9px; border-left: 2px solid var(--accent); background: var(--sage); }
.callout svg { flex: none; margin-top: 2px; color: var(--accent); }
.callout p { color: var(--ink); font-size: .875rem; }
.gear-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; color: var(--muted); font-size: .8125rem; }
.gear-progress progress { width: min(42%, 151px); height: 8px; accent-color: var(--accent); }
.gear-list { list-style: none; margin-top: 5px; }
.gear-item { position: relative; display: flex; align-items: center; gap: 8px; min-height: 59px; padding: 7px 0; border-bottom: 1px solid var(--line); }
label.gear-item { cursor: pointer; }
.gear-item .tile-icon { width: 33px; height: 33px; border-radius: 5px; background: transparent; }
.gear-item--shoe { align-items: flex-start; }
.gear-item > div, .gear-copy { flex: 1; min-width: 0; }
.gear-item strong { display: block; font-size: .9375rem; line-height: 1.25; }
.gear-item p, .gear-copy > span { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.gear-item .shoe-advice { margin-top: 6px; color: var(--gold); animation: unfold 180ms var(--ease); }
.shoe-options { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.shoe-options button { min-height: 44px; padding: 4px 9px; border: 1px solid #ac9077; border-radius: 6px; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 750; }
.shoe-options button[aria-pressed="true"] { background: var(--sage); border-color: var(--accent); color: var(--accent); }
.check-box { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #9e795b; border-radius: 5px; color: transparent; transition: color 145ms, background-color 145ms, border-color 145ms, transform 145ms var(--ease); }
.gear-item input:checked ~ .check-box { background: var(--accent); border-color: var(--accent); color: #fffbf4; }
label.gear-item:active .check-box { transform: scale(.85); }
.gear-footnote { font-size: .875rem; margin-top: 9px; }
.gear-footnote strong { color: var(--ink); }
.quest-task { padding: 9px; border-left: 2px solid var(--accent); background: var(--sage); }
.quest-task p { color: var(--ink); margin-top: 3px; }
.quest-photo { margin-top: 11px; }
.quest-photo img { width: 100%; height: clamp(152px, 28dvh, 270px); object-fit: cover; object-position: 54% 61%; border-radius: 6px; background: #dac7b3; }
.quest-photo figcaption, .risk-figure figcaption { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.quest-photo figcaption .example-tag { margin-right: 4px; }
.quest-state { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--accent); }
.inline-risk { margin-top: 10px; padding: 11px; border: 1px solid #c49f82; background: #f5e8d8; animation: unfold 220ms var(--ease); }
.risk-block { margin-top: 10px; }
.risk-block p, .risk-block .button { margin-top: 5px; }
.credit-list { margin: 7px 0 0 17px; color: var(--muted); }
.credit-list li { margin-top: 5px; }
.credit-list a { color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .shell { width: min(100% - 32px, 720px); }
  .header-inner { min-height: 56px; }
  .app-main { scrollbar-gutter: auto; }
  .view, .view[data-tab="home"] { padding-block: 16px 20px; }
  .home-grid, .top-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-image { max-height: min(340px, 32dvh); }
  .app .hero-title { font-size: clamp(1.625rem, 6.92vw, 2.55rem); letter-spacing: -.025em; }
  .hero-body { padding-block: 12px; }
  .hero-body p { line-height: 1.4; }
  .saved-route h2 { font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .screen-heading { margin-bottom: 12px; }
  .app .screen-heading h1 { font-size: clamp(1.56rem, 6.4vw, 2.5rem); letter-spacing: -.02em; }
  .screen-meta { margin-top: 3px; }
  .routes-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; grid-template-areas: "ready" "map" "next" "stops"; gap: 12px; }
  .readiness { padding: 13px 14px; }
  .route-plot { height: clamp(220px, 27dvh, 300px); }
  .top-grid { grid-template-areas: "map" "legend" "leaders" "rules"; }
  .territory-plot { --map-scale: 145%; height: clamp(265px, 33.2dvh, 360px); }
  .territory-plot .zone { top: calc(50% + (var(--y) - 50%) * 1.28); left: calc(50% + (var(--x) - 50%) * 1.45); width: min(10.4%, 52px); }
  .territory-plot .zone svg:first-child { height: auto; top: 50%; transform: translateY(-50%); }
  .country-inset { right: 7px; top: 7px; }
  .country-inset img { width: 61px; }
  .map-legend { gap: 4px 9px; }
  .map-rule { line-height: 1.34; }
  .rank-row { min-height: 44px; }
  .inline-zone { display: none; }
  .profile-identity { margin-bottom: 13px; }
  .profile-left, .profile-side { gap: 12px; }
  .chart-bars { height: 100px; }
  .detail-panel { width: 100%; max-width: none; max-height: calc(94dvh - env(safe-area-inset-top)); margin: auto 0 0; bottom: 0; border-radius: 17px 17px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); }
  .detail-panel--gear { max-height: calc(100dvh - env(safe-area-inset-top) - 9px); }
  .panel-head { padding: 9px 11px; }
  .panel-content { padding: 11px 11px 15px; }
  @starting-style { .detail-panel[open] { opacity: .65; transform: translateY(100%); } }
}
@media (max-width: 390px) {
  .nav-item { font-size: .75rem; }
  .screen-heading { align-items: flex-start; }
  .level { font-size: .6875rem; gap: 4px; }
  .goal-card__copy strong { font-size: .9375rem; }
  .map-label { font-size: .6875rem; padding: 3px 4px; }
  .map-label--left { right: 15px; }
  .map-label--right { left: 15px; }
  .map-static-label { font-size: .625rem; }
}
@media (max-width: 345px) {
  .shell { width: calc(100% - 24px); }
  .app .hero-title { font-size: 1.44rem; }
  .hero-body p { font-size: .875rem; }
  .saved-route { padding: 13px; }
  .ranking-card { padding-inline: 9px; }
  .ranking-card__copy, .ranking-card__action { gap: 5px; }
  .ranking-card__copy strong { font-size: .875rem; }
  .ranking-card__action { font-size: .75rem; }
  .map-caption { font-size: .55rem; }
  .readiness-actions .button { padding-inline: 7px; font-size: .8125rem; }
  .profile-identity .avatar { width: 52px; height: 52px; }
  .rank-summary { gap: 4px; font-size: .8125rem; }
}
.detail-panel--goal { width: min(780px, 100% - 40px); border-radius: 14px; }
.detail-panel--goal[open] { display: grid; grid-template-columns: minmax(180px, .78fr) minmax(0, 1fr); grid-template-rows: auto minmax(0,1fr); }
.detail-panel--goal .panel-head { grid-area: 1 / 2; align-items: center; padding: 19px 19px 5px; border: 0; }
.detail-panel--goal .panel-head h2 { font-size: clamp(1.8rem, 5vw, 2.75rem); }
.detail-panel--goal .panel-content { display: contents; }
.goal-cover { grid-area: 1 / 1 / 3 / 2; min-height: 290px; position: relative; border-right: 1px solid var(--line); background: #f2cfa0 url("assets/demo-landscape.svg") center / cover; overflow: hidden; }
.goal-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.goal-cover path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.goal-trace-casing { stroke: #fcf6e6; stroke-width: 6px; opacity: .8; }
.goal-trace { stroke: var(--rust); stroke-width: 2.7px; stroke-dasharray: 1; stroke-dashoffset: 0; }
.detail-panel--goal[open] .goal-trace { animation: trace-path 550ms cubic-bezier(.34,.09,.26,1) both; }
.goal-trace-start, .goal-trace-end { fill: var(--rust); stroke: #fcf6e6; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.goal-trace-end { transform-box: fill-box; transform-origin: center; }
.detail-panel--goal[open] .goal-trace-end { animation: trace-point 280ms 315ms var(--ease) both; }
@keyframes trace-path { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes trace-point { from { opacity: .25; scale: .7; } to { opacity: 1; scale: 1; } }
.goal-picker-inner { grid-area: 2 / 2; overflow: auto; overscroll-behavior: contain; padding: 8px 19px 20px; }
.goal-picker-inner > p { font-size: .875rem; }

@media (max-width: 660px) {
  .detail-panel--goal { width: 100%; border-radius: 16px 16px 0 0; }
  .detail-panel--goal[open] { display: flex; }
  .detail-panel--goal .panel-head { padding: 8px 12px; }
  .detail-panel--goal .panel-content { display: block; padding: 0; }
  .goal-cover { min-height: 0; height: clamp(66px, 15dvh, 107px); border-right: 0; border-block: 1px solid #c9b8a0; background-position: 48% 47%; }
  .goal-picker-inner { padding: 9px 12px 13px; }
  .goal-card { min-height: 59px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.capture-result { overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.capture-map { display: block; width: 100%; aspect-ratio: 254 / 174; max-height: 260px; background: #ddd6c4; }
.capture-neighbor { fill: #cfbd9e69; stroke: #998265; stroke-width: 1; }
.capture-hex { fill: #c36a3d; stroke: #7e3524; stroke-width: 2; }
.capture-pin { fill: #fff5e4; stroke: #7e3524; stroke-width: 1.5; }
.capture-result-copy { padding: 13px 14px 15px; }
.capture-result-copy > strong { color: var(--accent); font-size: .8125rem; }
.capture-result-copy h3 { margin-top: 4px; font: 500 clamp(1.34rem, 4vw, 1.85rem)/1.15 var(--display); letter-spacing: -.045em; }
.capture-metrics { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 16px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.capture-change { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 1.12rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.capture-change i { font-style: normal; opacity: .72; }
.capture-change strong { color: var(--accent); font-size: 1.5em; line-height: 1.15; }
.capture-change small { font-size: .75em; }
.capture-award { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 740; white-space: nowrap; }
.capture-result--enter .capture-hex, .zone--just-captured svg:first-child path { animation: capture-settle 570ms var(--ease) both; }
@keyframes capture-settle { 0% { fill-opacity: .08; stroke-width: 1; } 50% { fill-opacity: 1; stroke-width: 4; } }
.captured-zone-line { display: flex; align-items: center; gap: 7px; width: fit-content; padding: 7px 11px; margin: -6px 0 12px; border: 1px solid #abc6b4; border-radius: 10px; background: var(--sage); color: var(--accent); font-size: .875rem; font-weight: 750; }

.goal-cue { color: var(--ink); font-size: .8125rem; line-height: 1.24; }
.route-peak-marker { transform-box: fill-box; transform-origin: center; }
@keyframes trail-pin { from { scale: .8; } 56% { scale: 1.17; } to { scale: 1; } }

.risk-focus-map { display: block; width: 100%; max-height: 220px; aspect-ratio: 250 / 173; background: #ddd3bd; border: 1px solid var(--line); overflow: hidden; }
.risk-focus-map path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.risk-focus-map text { fill: var(--ink); stroke: #fbf5e9; stroke-width: 2.8px; paint-order: stroke; font: 780 10px var(--font); }
.risk-focus-map .risk-focus-label { fill: var(--accent-light); font-size: 13px; }
.risk-focus-halo { fill: #a43d2825; stroke: #a43d28; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: trail-pin 450ms var(--ease) both; }
.risk-focus-pin { fill: #a43d28; stroke: #fff4df; stroke-width: 1.5; }
.risk-focus-hut { fill: #3b2d21; stroke: #fff4df; stroke-width: 1.5; }
.field-stamp { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 11px; border: 1px solid #c6d3c7; border-radius: 14px; background: var(--sage); }
.field-stamp-mark { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 88px; min-height: 61px; padding: 5px; color: var(--accent); border: 2px double var(--accent); transform: rotate(-4deg); font-size: .6875rem; font-weight: 790; }
.field-stamp h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.field-stamp p { margin-top: 3px; font-size: .875rem; }

.vote-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; font-size: .875rem; }
.vote-feedback:not(:empty) { margin-bottom: 12px; }

.app .gear-progress progress { appearance: none; overflow: hidden; border: 0; border-radius: 6px; background: #dee6dc; }
.app .gear-progress progress::-webkit-progress-bar { border-radius: inherit; background: #dee6dc; }
.app .gear-progress progress::-webkit-progress-value { border-radius: inherit; background: var(--accent); transition: width 280ms var(--ease); }
.app .gear-progress progress::-moz-progress-bar { border-radius: inherit; background: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .app { --enter-ease: cubic-bezier(.22, 1, .36, 1); }
  .nav-item.is-active svg { animation: control-settle 260ms var(--enter-ease); }

  .view--enter :is(.hero-image, .hero-title, .hero-body, .saved-route, .home-action,
    .ranking-card, .screen-heading, .readiness, .route-map, .next-card, .territory-card,
    .owner-legend, .leader-card, .profile-identity, .profile-stats, .chart-card,
    .achievement-card, .field-stamp) {
    animation: surface-enter 410ms var(--enter-ease) var(--enter-delay, 0ms) both;
  }
  .view--enter :is(.hero-title, .readiness, .territory-card, .profile-identity) { --enter-delay: 45ms; }
  .view--enter :is(.hero-body, .route-map, .profile-stats) { --enter-delay: 80ms; }
  .view--enter :is(.saved-route, .home-action, .next-card, .owner-legend, .chart-card, .field-stamp) { --enter-delay: 120ms; }
  .view--enter :is(.leader-card, .achievement-card, .ranking-card) { --enter-delay: 165ms; }
  .view--enter .hero-image img { animation: landscape-settle 700ms var(--enter-ease) both; }
  .view--enter .saved-route::before { animation: contours-enter 590ms var(--enter-ease) 155ms both; }
  .view--enter .rank-you { animation: surface-enter 370ms var(--enter-ease) 235ms both; }
  .readiness--updated .readiness-heading .tile-icon { animation: control-settle 420ms var(--enter-ease) 70ms both; }

  :is(.view--enter .route-plot, .route-plot--trace) .map-trail-line {
    stroke-dasharray: 1;
    animation: trace-path 610ms var(--enter-ease) 60ms both;
  }
  :is(.view--enter .route-plot, .route-plot--trace) :is(.map-trip, .map-return-arrow, .map-overview) {
    animation: fade-in 360ms var(--enter-ease) 180ms both;
  }
  :is(.view--enter .route-plot, .route-plot--trace) .map-point {
    animation: marker-enter 330ms var(--enter-ease) var(--point-delay) both;
  }
  :is(.view--enter .route-plot, .route-plot--trace) .route-peak-marker {
    animation: marker-enter 330ms var(--enter-ease) 350ms both;
  }
  .view--enter .zone:not(.zone--just-captured) > svg:first-child {
    animation: zone-enter 390ms var(--enter-ease) calc(65ms + var(--zone-delay)) both;
  }
  .zone--just-captured::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, #ffe6adbb 3%, transparent 72%);
    animation: capture-light 840ms var(--enter-ease) both;
  }
  .captured-zone-line { animation: surface-enter 350ms var(--enter-ease) both; }
  .app .capture-result--enter .capture-result-copy { animation: surface-enter 430ms var(--enter-ease) 110ms both; }
  .app .capture-result--enter .capture-change strong { animation: control-settle 420ms var(--enter-ease) 215ms both; }
  .app .capture-result--enter .capture-award { animation: surface-enter 350ms var(--enter-ease) 260ms both; }

  .view--enter .chart-bar { --bar-delay: 205ms; }
  .view--enter .chart-bar--current { --bar-delay: 275ms; }
  .view--enter .chart-bar::before { animation: grow-bar 460ms var(--enter-ease) var(--bar-delay) both; }
  .view--enter .chart-bar strong { animation: fade-in 220ms var(--enter-ease) calc(var(--bar-delay) + 220ms) both; }
  .view--enter .field-stamp-mark { animation: stamp-enter 490ms var(--enter-ease) 190ms both; }
  .view--enter .achievement--featured .tile-icon { animation: control-settle 420ms var(--enter-ease) 275ms both; }
  .gear-item input:checked ~ .check-box svg { animation: control-settle 280ms var(--enter-ease); }

  .saved-route .button svg, .ranking-card__action svg, .next-card > svg { transition: transform 220ms var(--enter-ease); }
  @media (hover: hover) {
    :is(.saved-route .button, .ranking-card, .next-card):hover svg:last-child { transform: translateX(4px); }
    .ranking-card:hover { transform: translateY(-2px); }
  }
  :is(.ranking-card, .next-card):active { transform: scale(.985); }

  @keyframes surface-enter { from { opacity: .35; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
  @keyframes landscape-settle { from { scale: 1.045; } to { scale: 1; } }
  @keyframes contours-enter { from { opacity: .2; translate: 20px -10px; } to { opacity: 1; translate: 0 0; } }
  @keyframes control-settle { from { scale: .86; } 58% { scale: 1.12; } to { scale: 1; } }
  @keyframes fade-in { from { opacity: .15; } to { opacity: 1; } }
  @keyframes marker-enter { from { opacity: .25; scale: .78; } 65% { scale: 1.05; } to { opacity: 1; scale: 1; } }
  @keyframes zone-enter { from { opacity: .15; scale: .88; } to { opacity: 1; scale: 1; } }
  @keyframes capture-light { from { opacity: 0; scale: .55; } 42% { opacity: 1; } to { opacity: 0; scale: 1.15; } }
  @keyframes grow-bar { from { scale: 1 .06; } to { scale: 1 1; } }
  @keyframes stamp-enter { from { opacity: .2; scale: 1.17; rotate: 11deg; } 58% { scale: .96; } to { opacity: 1; scale: 1; rotate: 0deg; } }
}
