/* Normandy to Haarlem — a printed map sheet on a table, seen at an angle, with painted miniatures standing on it
   and a red thread for the route. Paper things (cards, strips, tabs) lie on the table in front of the sheet. */
@font-face { font-family: "Besley"; src: url("../fonts/besley-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("../fonts/besley-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --sea: #b7d7d0; --sea-far: #a9cbc4; --land: #ead8a8; --ink: #2a2117; --body: #3a2e1f; --paper: #f6edd6; --paper-dim: #e6d6ae;
  --red: #c2362a; --red-deep: #8f2118; --moss: #5d7c3b; --sepia: #6b5637; --water-ink: #3f7f86;
  --font-text: "Overpass", "Gill Sans", "Trebuchet MS", sans-serif; --font-label: "Besley", "Rockwell", Georgia, serif;
  --tilt: 48deg; --mm-h: 50px; --edge: clamp(14px, 2.4vw, 34px);
  --lift: 0 1px 1px rgba(42, 28, 12, .18), 0 6px 14px rgba(42, 28, 12, .22), 0 18px 34px rgba(42, 28, 12, .16);
  --lift-small: 0 1px 1px rgba(42, 28, 12, .3), 0 4px 8px rgba(42, 28, 12, .22);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--sepia) var(--paper-dim); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; font-family: var(--font-text); color: var(--ink); background: var(--sea-far); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2.5px solid var(--red-deep); outline-offset: 3px; }
.unit { font-size: .5em; margin-left: .12em; letter-spacing: 0; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: currentColor; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- the sheet ---------- */
#stage { position: fixed; inset: 0; overflow: hidden; background: #46301f radial-gradient(120% 80% at 50% 40%, #5d4129, #3a2718 78%); }
#tilt { position: absolute; inset: 0; transform-origin: var(--ax, 50%) var(--ay, 60%); transform: perspective(1400px) rotateX(var(--tilt)) scale(1.22); transform-style: preserve-3d; }
#world { position: absolute; left: 0; top: 0; will-change: transform; background: var(--sea); transform-style: preserve-3d; box-shadow: 0 0 0 2px rgba(42, 33, 23, .8), 0 0 0 28px #fcf8ec, 0 0 0 29px rgba(42, 28, 12, .35), 22px 46px 60px 24px rgba(20, 10, 2, .55); }
#world::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateZ(.2px); opacity: .5;
  background:
    repeating-linear-gradient(to right, transparent 0 518px, rgba(255, 250, 235, .55) 518px 520px, rgba(96, 72, 40, .3) 520px 522px, transparent 522px 620px),
    repeating-linear-gradient(to bottom, transparent 0 438px, rgba(255, 250, 235, .55) 438px 440px, rgba(96, 72, 40, .3) 440px 442px, transparent 442px 560px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E"); }
#tiles { position: absolute; inset: 0; overflow: hidden; }
.tile { position: absolute; display: block; overflow: hidden; }
.shelf { fill: none; stroke-linejoin: round; }
.shelf-3 { stroke: #c4dfd8; stroke-width: 50px; } .shelf-2 { stroke: #d2e8e1; stroke-width: 28px; } .shelf-1 { stroke: #e3f1eb; stroke-width: 11px; }
.land-shadow { fill: rgba(28, 58, 62, .3); transform: translate(2.5px, 5px); }
.land { fill: var(--land); stroke: #b99c5c; stroke-width: 1.3px; stroke-linejoin: round; }
.lbl { font-family: var(--font-label); fill: var(--ink); pointer-events: none; }
.lbl-sea, .lbl-region, .lbl-beach, .lbl-isle { text-anchor: middle; }
.lbl-town { font-size: 12px; font-weight: 650; }
.town-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4px; }
.lbl-sea { font-size: 18px; font-style: italic; font-weight: 500; letter-spacing: .28em; fill: #4f8581; }
.lbl-region { font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; fill: #8a7245; }
.lbl-isle { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; fill: #8a7245; }
.lbl-beach { font-family: var(--font-text); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; fill: var(--red-deep); }
.leg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.leg-base { stroke: var(--sepia); stroke-width: 1.5px; stroke-dasharray: 5 5; stroke-linecap: butt; opacity: .7; }
.leg-transfer.leg-base { stroke-dasharray: 1.5 7; stroke-width: 2.4px; stroke-linecap: round; }
.leg-ferry.leg-base { stroke: var(--water-ink); stroke-dasharray: 9 6; stroke-width: 2.2px; opacity: .85; }
.leg-transfer.leg-base.is-current, .leg-transfer.leg-base.is-done, .leg-ferry.leg-base.is-current, .leg-ferry.leg-base.is-done { opacity: 1; stroke-width: 3px; }
.leg-ink.leg-casing { stroke: rgba(46, 22, 10, .34); stroke-width: 5.5px; transform: translate(2px, 3.5px); }
.leg-ink.leg-thread { stroke: var(--red); stroke-width: 4.2px; }

/* ---------- the riders: sixteen beads on the sheet ---------- */
#marker { position: absolute; left: 0; top: 0; pointer-events: none; transform: translateZ(2px); }
.rider { position: absolute; left: 0; top: 0; will-change: transform; }
/* the sixteen riders: painted beads, one image, outlined in paper so they read against the red thread */
.rider { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: url("../art/marker/bead.webp") center / cover no-repeat; box-shadow: 0 0 0 1.5px var(--paper), 2px 3.5px 3px rgba(40, 20, 8, .5); }

/* ---------- places: miniatures standing on the sheet, base on the place ---------- */
#items { position: absolute; left: 0; top: 0; transform: translateZ(1px); transform-style: preserve-3d; }
.item-wrap { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.item-wrap::before { content: ""; position: absolute; left: -66px; top: -22px; width: 150px; height: 62px; border-radius: 50%; background: radial-gradient(closest-side, rgba(44, 26, 8, .5), rgba(44, 26, 8, .22) 55%, transparent); opacity: 0; transition: opacity .5s .15s; }
.item-wrap.is-on::before { opacity: 1; }
.item { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 2px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transform-origin: 50% 100%; transform: translate(-50%, -100%) rotateX(calc(var(--tilt) * -1)); }
.item-wrap:not(.is-on) .item { opacity: 0; pointer-events: none; }
.item-name { position: relative; margin-bottom: 8px; padding: 6px 9px 5px; white-space: nowrap; font-family: var(--font-label); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1; background: var(--paper); color: var(--ink); border-radius: 2px; box-shadow: var(--lift-small); }
.item-name::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 9px; background: var(--ink); opacity: .6; }
.item-art { display: grid; place-items: center; width: 132px; transform-origin: 50% 100%; transition: transform .35s var(--out), filter .25s; }
.item-art img { width: 100%; height: auto; }
.item-stop .item-name { background: var(--red); color: var(--paper); }
.item-stop .item-name::after { background: var(--red-deep); opacity: 1; }
.item-wrap.is-on .item-art { animation: land .75s var(--out) both; }
.item-wrap.is-on .item-name { animation: tag .4s .45s var(--out) both; }
.item:hover .item-art, .item.is-open .item-art, .item:focus-visible .item-art { transform: translateY(-8px) scale(1.07); filter: brightness(1.06) saturate(1.08); }
.item:focus-visible { outline-offset: 6px; }
@keyframes land { from { opacity: 0; transform: translateY(-70px) scale(.9); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes tag { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- the lens: far edge out of focus, corners darker, like a close-up of a model ---------- */
#lens { position: fixed; inset: 0; z-index: 10; pointer-events: none; background: radial-gradient(120% 90% at 50% 62%, transparent 55%, rgba(54, 34, 14, .34)), linear-gradient(to bottom, rgba(246, 232, 204, .5), transparent 26%); }
#lens::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30vh; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent); }

/* ---------- paper lying on the table ---------- */
#card, #daycard, #minimap, .cl-sheet { background: var(--paper); box-shadow: var(--lift); border-radius: 3px; }
#card { position: fixed; z-index: 40; left: 0; top: 0; width: min(340px, calc(100vw - 24px)); padding: 9px 9px 0; opacity: 0; transform: translateY(10px) rotate(-1.2deg); transition: opacity .22s, transform .38s var(--out); }
#card[hidden] { display: none; }
#card.is-open { opacity: 1; transform: rotate(-.8deg); }
#card.no-photo { padding-top: 2px; }
.card-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1px; background: var(--paper-dim); }
.card-photo figcaption { padding: 5px 2px 0; font-size: 10.5px; color: var(--sepia); letter-spacing: .02em; }
.card-photo figcaption a { color: inherit; text-decoration-color: rgba(107, 86, 55, .5); text-underline-offset: 2px; }
.card-photo figcaption a:hover, .card-photo figcaption a:focus-visible { color: var(--red-deep); text-decoration-color: currentColor; }
.card-body { padding: 10px 7px 16px; }
.card-name { font-family: var(--font-label); font-size: 25px; font-weight: 750; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.card-where { margin-top: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); line-height: 1.7; }
.card-tag { display: inline-block; background: var(--red); color: var(--paper); padding: 0 6px; margin-right: 8px; border-radius: 2px; }
.card-note { margin-top: 9px; font-size: 15.5px; line-height: 1.45; color: var(--body); }

/* ---------- opening: the title is printed on the sheet itself ---------- */
#opening { position: fixed; inset: 0; z-index: 30; pointer-events: none; will-change: opacity; }
#opening.is-gone, #closing.is-gone { visibility: hidden; }
.op-inner { position: absolute; inset: 0; transform-origin: var(--ax, 50%) var(--ay, 60%); transform: perspective(1400px) rotateX(var(--tilt)) scale(1.22); }
.op-title { position: absolute; left: 12%; top: 40%; font-family: var(--font-label); font-size: clamp(2.2rem, 5.7vw, 4.6rem); font-weight: 900; letter-spacing: .01em; line-height: .92; text-transform: uppercase; color: var(--ink); opacity: .9; mix-blend-mode: multiply; animation: print 1.2s var(--out) both; }
.op-title span { display: block; }
.op-title span + span { font-size: .62em; letter-spacing: .06em; margin-top: .12em; }
.op-sub { position: absolute; left: 12%; top: calc(40% + clamp(2.2rem, 5.7vw, 4.6rem) * 1.62 + 20px); max-width: 27em; font-family: var(--font-label); font-style: italic; font-size: clamp(16px, 1.7vw, 23px); line-height: 1.3; color: var(--sepia); mix-blend-mode: multiply; text-wrap: balance; animation: print 1.2s .12s var(--out) both; }
@keyframes print { from { opacity: 0; filter: blur(6px); } to { filter: none; } }
.op-flat { position: absolute; left: 0; right: 0; bottom: clamp(14px, 3vh, 30px); display: grid; justify-items: center; gap: 14px; }
.op-stats { display: grid; grid-template-columns: repeat(4, auto); background: var(--paper); box-shadow: var(--lift); border-radius: 3px; transform: rotate(-.6deg); animation: slide .9s .3s var(--out) both; }
.op-stats div { display: grid; gap: 3px; padding: 14px clamp(14px, 2.4vw, 30px) 12px; border-left: 1px dashed rgba(107, 86, 55, .5); }
.op-stats div:first-child { border-left: 0; }
.op-stats dt { order: 2; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sepia); }
.op-stats dd { font-family: var(--font-label); font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; line-height: 1; color: var(--ink); }
.op-hint { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: var(--paper); padding: 6px 10px 5px; border-radius: 2px; box-shadow: var(--lift-small); transform: rotate(.8deg); }
@keyframes slide { from { opacity: 0; transform: translateY(40px) rotate(2deg); } to { opacity: 1; transform: rotate(-.6deg); } }

/* ---------- closing: the last sheet, laid beside Haarlem ---------- */
#closing { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: grid; align-items: center; padding: var(--edge); will-change: opacity, transform; }
.cl-sheet { width: min(470px, 100%); max-height: calc(100vh - var(--edge) * 2); overflow: auto; padding: clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 32px) 22px; transform: rotate(-.9deg); pointer-events: auto; scrollbar-width: thin; }
.cl-title { font-family: var(--font-label); font-size: clamp(30px, 4vw, 46px); font-weight: 850; line-height: 1; letter-spacing: -.015em; }
.cl-lead { margin-top: 12px; font-family: var(--font-label); font-style: italic; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.35; color: var(--sepia); text-wrap: pretty; }
.cl-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 18px; padding: 15px 0; border: dashed rgba(107, 86, 55, .55); border-width: 1px 0; }
.cl-totals dt { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sepia); }
.cl-totals dd { font-family: var(--font-label); font-size: 30px; font-weight: 800; line-height: 1.05; }
.cl-totals div { display: grid; gap: 5px; align-content: start; }
.cl-totals dt { order: 2; }
.cl-credit { margin-top: 20px; font-size: 11.5px; line-height: 1.45; color: var(--sepia); }
body.is-closing #daycard, body.is-closing #minimap, body.is-closing #compass { opacity: 0; visibility: hidden; }

/* ---------- day card ---------- */
#daycard { position: fixed; z-index: 20; left: var(--edge); top: var(--edge); width: min(320px, calc(100vw - 96px)); padding: 16px 18px 18px; transform: rotate(-1.1deg); transition: opacity .25s, visibility .25s; }
body:not(.is-travelling) #daycard, body:not(.is-travelling) #minimap { opacity: 0; visibility: hidden; }
#daycard.is-in { animation: card .55s var(--out) both; }
@keyframes card { from { opacity: 0; transform: translate(-30px, -8px) rotate(-5deg); } to { opacity: 1; transform: rotate(-1.1deg); } }
.dc-label { font-family: var(--font-label); font-size: 42px; font-weight: 850; line-height: .95; letter-spacing: -.01em; }
.dc-route { margin-top: 8px; font-family: var(--font-label); font-size: 17px; font-weight: 600; line-height: 1.22; text-wrap: balance; }
.dc-to { font-style: italic; font-weight: 400; color: var(--sepia); }
.dc-note { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--body); }
.dc-facts { display: flex; gap: 24px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed rgba(107, 86, 55, .55); }
.dc-facts dt { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sepia); }
.dc-facts dd { margin-top: 1px; font-family: var(--font-label); font-size: 32px; font-weight: 750; line-height: 1; }
.dc-ferry { margin-top: 8px; font-family: var(--font-label); font-style: italic; font-size: 14px; color: var(--water-ink); }
.dc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dc-gpx { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 7px; border: 2px solid var(--red); border-radius: 3px; color: var(--red-deep); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background-color .18s, color .18s; }
.dc-gpx .ico { font-size: 16px; }
.dc-gpx:hover, .dc-gpx:focus-visible { background: var(--red); color: var(--paper); }

/* ---------- rail: index tabs on the table edge ---------- */
#rail { position: fixed; z-index: 20; right: 0; top: 50%; transform: translateY(-50%); }
.rail-list { display: grid; gap: 3px; }
.rail-btn { position: relative; display: grid; place-items: center; width: 40px; height: 27px; overflow: hidden; background: var(--paper); color: var(--ink); border-radius: 3px 0 0 3px; box-shadow: var(--lift-small); font-family: var(--font-label); font-size: 14px; font-weight: 750; transition: transform .2s var(--out), background-color .2s; }
.rail-fill { position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0); }
.rail-text { position: relative; }
.rail-transfer .rail-text, .rail-stay:not(.rail-rest) .rail-text { font-family: var(--font-text); font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.rail-rest .rail-text { font-style: italic; font-weight: 500; }
.rail-btn.is-done { background: var(--paper-dim); }
.rail-btn.is-current { background: var(--red); color: var(--paper); transform: translateX(-6px); }
.rail-btn.is-current .rail-fill { background: var(--red-deep); }
.rail-btn:hover { transform: translateX(-6px); }

/* ---------- minimap: a paper strip with the day's cross-section ---------- */
#minimap { position: fixed; z-index: 20; left: 50%; bottom: clamp(10px, 1.6vw, 22px); width: min(720px, calc(100vw - 20px)); padding: 10px 16px 0; transform: translateX(-50%) rotate(.5deg); overflow: hidden; transition: opacity .25s, visibility .25s; }
.mm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mm-title { font-family: var(--font-label); font-style: italic; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-read { flex: none; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--sepia); }
.mm-plot { position: relative; height: var(--mm-h); margin-top: 5px; }
.mm-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mm-plot path { vector-effect: non-scaling-stroke; }
.mm-area { fill: #d8cfa4; } .mm-done { fill: var(--moss); } .mm-line { fill: none; stroke: #3f5a26; stroke-width: 1.5px; }
.mm-cursor { position: absolute; top: -3px; bottom: 0; width: 2px; margin-left: -1px; background: var(--red); }
.mm-cursor::before { content: ""; position: absolute; left: -6px; top: -9px; width: 14px; height: 14px; border-radius: 50%; background: url("../art/marker/bead.webp") center / cover no-repeat; box-shadow: 1px 2px 2px rgba(40, 20, 8, .4); }
.mm-ticks i { position: absolute; bottom: 0; width: 1.5px; height: 46%; background: var(--ink); opacity: .55; }
.mm-ticks i::before { content: ""; position: absolute; left: -2.5px; top: -5px; width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.mm-label { display: none; padding: 6px 0 14px; font-family: var(--font-label); font-style: italic; font-size: clamp(15px, 1.9vw, 20px); font-weight: 600; text-align: center; }
#minimap.is-label .mm-head, #minimap.is-label .mm-plot { display: none; }
#minimap.is-label .mm-label { display: block; }

/* ---------- compass and scale ---------- */
#compass { position: fixed; z-index: 15; left: var(--edge); bottom: var(--edge); display: grid; justify-items: start; gap: 12px; pointer-events: none; color: var(--ink); transition: opacity .3s, visibility .3s; }
body:not(.is-travelling) #compass { opacity: 0; visibility: hidden; }
.cp-rose { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: var(--lift); }
.cp-turn { position: relative; width: 40px; height: 40px; }
.cp-needle { width: 40px; height: 40px; stroke-width: 1.8; color: var(--red-deep); }
.cp-n { display: none; }
.cp-scale { display: grid; gap: 4px; padding: 6px 9px 5px; background: var(--paper); border-radius: 2px; box-shadow: var(--lift-small); }
.cp-scale i { display: block; height: 5px; background: repeating-linear-gradient(to right, var(--ink) 0 25%, transparent 25% 50%); border: 1px solid var(--ink); }
.cp-scale span { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }


#scrollspace { position: relative; width: 1px; pointer-events: none; }

@media (max-width: 899px) {
  :root { --tilt: 44deg; --mm-h: 42px; --edge: 10px; }
  body:not(.is-travelling) #rail { opacity: 0; visibility: hidden; }
  .op-title { left: 14%; top: 24%; }
  .op-sub { left: 14%; top: calc(24% + clamp(2.2rem, 5.7vw, 4.6rem) * 1.62 + 12px); max-width: 19em; font-size: 15px; }
  .op-stats { grid-template-columns: repeat(2, auto); }
  .op-stats div { padding: 9px 16px 8px; }
  .op-stats div:nth-child(3) { border-left: 0; }
  .op-stats div:nth-child(n + 3) { border-top: 1px dashed rgba(107, 86, 55, .5); }
  .op-stats dt { font-size: 10.5px; letter-spacing: .08em; }
  .op-stats dd { font-size: 26px; }
  #daycard { padding: 11px 13px 13px; width: min(236px, calc(100vw - 62px)); }
  .dc-label { font-size: 30px; } .dc-route { font-size: 15px; } .dc-note { font-size: 13.5px; } .dc-facts dd { font-size: 25px; } .dc-facts { gap: 18px; margin-top: 9px; padding-top: 8px; }
  .dc-ferry { font-size: 13px; margin-top: 6px; }
  .dc-links { margin-top: 10px; gap: 6px; } .dc-gpx { padding: 6px 9px 5px; font-size: 10.5px; letter-spacing: .08em; }
  .rail-btn { width: 44px; height: 36px; font-size: 14px; }
  .rail-list { gap: 2px; }
  .rail-transfer .rail-text, .rail-stay:not(.rail-rest) .rail-text { font-size: 10.5px; letter-spacing: .04em; }
  #minimap { padding: 8px 12px 0; }
  #compass { bottom: 112px; }
  #daycard { width: min(236px, calc(100vw - 70px)); }
  .cp-scale { display: none; }
  .cp-rose { width: 44px; height: 44px; } .cp-turn, .cp-needle { width: 30px; height: 30px; }
  .item-art { width: 104px; }
  .item-name { font-size: 11.5px; }
  .card-photo img { aspect-ratio: 16 / 9; }
  #card { width: calc(100vw - 68px); }
  body.has-card #daycard { opacity: 0; visibility: hidden; }
  #closing { align-items: end; padding: 10px 10px 12px; }
  .cl-sheet { width: calc(100% - 50px); max-height: 78vh; padding: 16px 18px 16px; transform: rotate(-.5deg); }
  .cl-title { font-size: 27px; } .cl-lead { margin-top: 8px; font-size: 15px; }
  .cl-totals { gap: 8px 18px; margin-top: 12px; padding: 11px 0; } .cl-totals dd { font-size: 22px; } .cl-totals dt { font-size: 10.5px; letter-spacing: .08em; }
  #lens::before { height: 17vh; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
