:root{--ink:#122542;--blue:#183f9a;--paper:#f8f4ea;--edge:#d6dce1;--quiet:#4c5e71;--display:Georgia,"Times New Roman",serif;--gutter:clamp(14px,2vw,28px)}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.48 "DM Sans","Segoe UI",Arial,sans-serif}
header,main{width:min(1460px,94%);margin:auto}
header{display:flex;justify-content:space-between;align-items:center;gap:10px;height:72px}
.brand{display:flex;align-items:center;gap:11px;font-size:clamp(18px,2vw,28px);letter-spacing:-.055em}
.logo{width:40px;height:26px;flex:none;background:radial-gradient(circle at 12px 13px,transparent 5px,#1644bf 6px 11px,transparent 12px),radial-gradient(circle at 28px 13px,transparent 5px,#df384b 6px 11px,transparent 12px)}
button{font:inherit;font-weight:700;color:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #a53a00;outline-offset:3px}
nav{display:flex;background:white;border:1px solid var(--edge);border-radius:30px;padding:2px}
nav button{border:0;background:transparent;border-radius:30px;padding:8px 13px;min-height:40px}
nav [aria-pressed=true],.primary{background:var(--blue);color:white}
.intro{
  position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;
  min-height:clamp(210px,19vw,275px);padding:clamp(24px,4vw,60px);
  border:1px solid #ded4bb;border-radius:16px;background:#f2e7ce;
}
.intro:after{
  content:"";position:absolute;z-index:-1;inset:0 0 0 41%;
  background:#214a71 url("rheinpanorama.webp") 69% 50% /cover;
  border-left:4px solid #dca235;
}
.hero-copy{max-width:40%;color:var(--ink)}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.08;letter-spacing:-.045em}
h1{font:700 clamp(51px,6.1vw,94px)/.94 var(--display);letter-spacing:-.075em}
h1 em{color:#15469d}
.intro p{max-width:35ch;margin-top:8px;font-size:clamp(16px,1.35vw,21px);font-weight:500}
.layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:14px 18px;margin:18px 0 28px}
.board,#card,.pass-strip{border:1px solid var(--edge);border-radius:14px;background:#fcfdfe;overflow:hidden;box-shadow:0 6px 18px #182e4510}
.board{grid-row:span 2;display:flex;flex-direction:column;padding:23px 0 16px;min-width:0;background:#fbfcfd}
.boardhead,.map-controls,#legend,.map-hint{margin-inline:var(--gutter)}
.boardhead,.map-controls{display:flex;align-items:center;justify-content:space-between;gap:8px}
.boardhead h2,.inner h2,.copy h2{font-weight:800}
.boardhead h2{font:700 clamp(25px,2.3vw,34px)/1.08 var(--display);letter-spacing:-.055em}
.boardhead span,#count,#progress{font-variant-numeric:tabular-nums}
.boardhead span{font:700 12px/1.3 ui-monospace,Consolas,monospace;color:#2a4a74;background:#eaf0f6;padding:6px 9px;border-radius:5px;white-space:nowrap}
.map-hint{margin-top:5px;color:var(--quiet);font-size:14px}
.mapframe{position:relative;margin:auto 0;background:radial-gradient(#52799827 1px,transparent 1px) 0 0/16px 16px,#eff5f9;border-block:1px solid #e2ebf2}
.mapscroll{overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b0bfc5 transparent}
.pan{position:absolute;top:57%;width:44px;height:44px;border:0;background:transparent;color:white;font-size:0;padding:0}
.pan:after{content:"‹";display:grid;place-content:center;width:24px;height:24px;border-radius:50%;background:#173754;font:700 20px/1 Arial}
#panLeft{left:0}#panRight{right:0}#panRight:after{content:"›";margin-left:auto}
#map{display:block;width:100%;min-width:790px}
.stop{cursor:pointer;outline:0}
.stop text{font:600 14px Arial,sans-serif;fill:#466078;paint-order:stroke;stroke:#eff5f9;stroke-width:3px;stroke-linejoin:round}
.stop tspan{font-size:16px;font-weight:700;fill:var(--ink)}
.stop:focus-visible .hit{stroke:#a53a00;stroke-dasharray:4 2}
.stop:hover .dot{stroke-width:7}
.selection-ring{visibility:hidden;pointer-events:none}
.stop[aria-pressed=true] .selection-ring{visibility:visible}
#legend{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;font-weight:650}
.map-controls{margin-top:12px;padding-top:10px;border-top:1px dashed #bac4c9;font-size:14px}
.map-controls button,.dialog-bar button,#answers button,#stamps button{border:1px solid var(--edge);border-radius:8px;background:white;min-height:44px;padding:7px 12px}
.map-controls button+button{margin-left:4px}#next{background:var(--ink);border-color:var(--ink);color:#fff}
button:hover:not(:disabled){filter:brightness(.94)}
#card{display:flex;flex-direction:column;background:#142944;color:#fff9ed;border-color:#142944}
#art{height:clamp(128px,12vw,190px);overflow:hidden;background:#ede2cb;border-bottom:4px solid var(--line)}
#art img{width:100%;height:100%;object-fit:cover;object-position:var(--photo-position, center);display:block}
.copy{display:flex;flex-direction:column;align-items:flex-start;padding:18px 22px 22px}.copy small{color:#dce5f0}
small{display:block;font-size:12px;font-weight:750;letter-spacing:.035em}
.copy h2,.inner h2{font:700 clamp(24px,2.4vw,37px)/1.03 var(--display);letter-spacing:-.05em;margin:6px 0 10px}
.copy p{color:#e5eaf1;margin-bottom:16px}
.primary{background:#f4cf78;color:#142944;border:0;border-radius:9px;padding:11px 16px;min-height:44px}
.pass-strip{width:100%;display:flex;align-items:center;gap:16px;padding:12px 15px;text-align:left;background:#f3e7c9;border-color:#ddd0ac}
.pass-icon{font:36px/1 Georgia;color:#884511;border:2px dashed #af7934;border-radius:50%;padding:3px 7px;transform:rotate(-12deg)}
.pass-strip strong{font-size:19px}.pass-strip small{font-weight:500;letter-spacing:0}
#progress{margin-left:auto;white-space:nowrap;border-left:1px dashed #a78e5f;padding-left:16px}
dialog{border:1px solid var(--edge);border-radius:16px;padding:0;color:var(--ink);background:#fffdf7;width:min(580px,94%);max-height:88dvh;overscroll-behavior:contain}
dialog::backdrop{background:#071a33bb}
.dialog-bar{position:sticky;top:0;background:#fffdf7;z-index:1;text-align:right;padding:8px 18px;border-bottom:1px solid var(--edge)}
.inner{padding:18px clamp(16px,3vw,32px) 28px}
.inner p{margin:12px 0;max-width:57ch}.inner a{color:var(--blue);font-weight:650}
.vocab{margin:18px 0;padding:10px 14px;border-left:4px solid #d89b18;background:#faf1d8;font-weight:650}
.quiz{border-top:1px dashed var(--edge);padding-top:14px}
.quiz h3{font-size:21px;margin:5px 0 12px}
#answers,#stamps{display:grid;gap:7px}
#answers button,#stamps button{text-align:left}
#answers button:disabled{opacity:.55;cursor:default}
#answers .correct:disabled,#stamps .earned{opacity:1;background:#dfefdd;border-color:#80a883;color:#215626}
#feedback{color:#244966;font-weight:650}#feedback:empty{margin:0}
#stamps{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(prefers-reduced-motion:no-preference){
  .intro{animation:arrive .45s ease-out}
  #art img,dialog[open]{animation:arrive .24s ease-out}
  .stop.arrived .selection-ring{transform-box:fill-box;transform-origin:center;animation:pulse .45s ease-out}
  .correct{animation:stamp .28s ease-out}
  @keyframes arrive{from{opacity:.5;transform:translateY(5px)}}
  @keyframes pulse{from{opacity:.3;transform:scale(1.55)}}
  @keyframes stamp{50%{transform:scale(.97)}}
}
@media(max-width:850px){.layout{grid-template-columns:1fr}.board{grid-row:auto}#card{display:grid;grid-template-columns:1fr 2fr}#art{height:100%;min-height:130px;border:0;border-right:4px solid var(--line)}}
@media(max-width:600px){
 header,main{width:calc(100% - 20px)}header{height:54px}.brand{gap:6px;font-size:17px}.logo{width:40px}nav button{padding:5px 9px}
 .intro{min-height:124px;padding:13px 14px;border-radius:11px}
 .intro:after{inset-inline-start:57%;background-position:74% 50%;border-left-width:3px}
 .hero-copy{max-width:58%}h1{font-size:clamp(31px,9.8vw,48px)}
 .intro p{font-size:13px;line-height:1.3;margin-top:7px}
 .layout{gap:9px;margin:9px 0 18px}.board{padding:11px 0 7px}.boardhead h2{font-size:23px}.map-hint{font-size:12px;margin-top:3px}
 #map{min-width:950px}#legend{margin-top:5px;font-size:11px;gap:3px 8px}
 .map-controls{margin-top:7px;padding-top:5px;font-size:13px}.map-controls button{padding:6px 9px}
 #card{grid-template-columns:minmax(76px,.7fr) minmax(0,2fr)}.copy{padding:10px 12px}.copy h2{font-size:21px;margin:4px 0}.copy p{font-size:13px;margin-bottom:7px}.copy small{font-size:11px}.primary{font-size:14px;padding:6px 11px}
 .pass-strip{padding:10px 12px;gap:9px}.pass-strip strong{font-size:16px}.pass-strip small{font-size:11px}.pass-icon{font-size:24px}.pass-strip #progress{padding-left:8px}
}

/* The opening station doubles as the boarding challenge. */
@media(min-width:851px){
  .board{grid-column:1;grid-row:1 / span 2}
  #card{grid-column:2;grid-row:1}
  .pass-strip{grid-column:2;grid-row:2}
}
#art{position:relative}
#mapTram,.map-badge{pointer-events:none}
.map-badge circle{fill:#fffdf6;stroke:#96a9b9;stroke-width:1}
.map-badge text{font-size:10px;font-weight:800;stroke:none;fill:var(--ink)}
.map-badge:has(text:empty){display:none}
.stamped .map-badge circle{fill:#246141;stroke:#fff;stroke-width:1.5}
.stamped .map-badge text{fill:white}
#quickQuiz{width:100%;margin:6px 0 10px}
#quickQuiz:empty{display:none}
#quickQuiz .quiz{border-top:1px solid #ffffff30;padding-top:9px}
#quickQuiz .quiz small{color:#f5cd75}
#quickQuiz .quiz h3{line-height:1.2;font-size:clamp(17px,2vw,21px)}
#quickQuiz #answers{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#quickQuiz #answers button{background:#f6f8ff;color:#142944;text-align:center;padding:6px;font-size:14px}
#quickQuiz #answers .correct{background:#dff3d8;color:#245637}
#quickQuiz #feedback{color:#e7f6df;margin:8px 0 0;font-size:14px}
#quickQuiz #feedback:empty{margin:0}
#quickQuiz + #discover{align-self:flex-start}
.start-card #discover{color:#fff9ed;background:transparent;border:1px solid #ffffff60}
#rideChoices:not([hidden]),.listen:not([hidden]){display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#rideChoices button,.listen button{min-height:44px;border:1px solid var(--edge);border-radius:8px;padding:5px 9px;background:#fffefa;font-size:13px;color:var(--ink)}
#rideChoices #rideNext{background:#f4cf78;border-color:#f4cf78}
.listen p{width:100%;padding:8px;background:#eff5f9;border-radius:6px}
@media(max-width:600px){
  #quickQuiz .quiz h3{margin-bottom:8px}
  #quickQuiz #answers button{font-size:12px;padding:4px}
  .start-card{grid-template-columns:minmax(66px,.5fr) minmax(0,2fr)}
  .start-card #discover{font-size:13px}
}

/* Preserve the full photo in the detail view, including archival documents. */
.station-photo{margin:14px 0 18px;overflow:hidden;border:1px solid var(--edge);border-radius:9px;background:#f2efe7}
.station-photo img{display:block;width:100%;height:clamp(150px,52vw,295px);object-fit:contain}
.station-photo figcaption{padding:8px 12px;border-top:1px solid var(--edge);font-size:14px}
.station-photo small{margin-top:3px;font-weight:500;letter-spacing:0;color:var(--quiet)}
#art[data-photo="schuman"]{background:#192234}
#art[data-photo="schuman"] img,#art[data-photo="abibac"] img,#art[data-photo="jugendwerk"] img{object-fit:contain;object-position:center}
#art[data-photo="tram"] img{object-position:50% 58%}
@media(max-width:600px){
  #card{grid-template-columns:minmax(0,1fr)}
  #art{height:clamp(108px,30vw,145px);min-height:0;border-right:0;border-bottom:4px solid var(--line)}
}

/* Strasbourg–Kehl route diagram and the three stops of the trial ride. */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap;
}
.preview-caption{
  position:absolute;right:9px;bottom:8px;background:#fffaf0;color:var(--ink);
  border-radius:4px;padding:3px 8px;font-size:12px;font-weight:650;
}
.border-ride:not([hidden]){
  display:grid;grid-template-columns:1fr minmax(66px,.68fr) 1fr;
  grid-template-rows:auto 35px 19px;align-items:center;
  margin:12px 12px 0;padding:7px 8px 5px;
  border:1px solid #ded1b5;border-radius:10px;background:#fbf4e5;
}
.border-city{
  grid-row:1;grid-column:1;display:grid;justify-items:center;gap:3px;
  font-size:15px;font-weight:800;
}
.border-city:nth-child(2){grid-column:3}
.flag{display:block;width:25px;height:17px;border:1px solid #18253c24;border-radius:3px}
.flag-fr{background:linear-gradient(90deg,#1745ae 33.33%,#fff 33.33% 66.66%,#d82541 66.66%)}
.flag-de{background:linear-gradient(#202127 33.33%,#ca1e35 33.33% 66.66%,#f8c43c 66.66%)}
.mini-track{grid-area:2 / 1 / 3 / 4;position:relative;height:35px;background:linear-gradient(#233d66,#233d66) center 20px / 66% 3px no-repeat}
.mini-track:before,.mini-track:after{
  content:"";position:absolute;top:16px;width:8px;height:8px;
  border:2px solid #233d66;border-radius:50%;background:#fbf4e5;transform:translateX(-50%);
}
.mini-track:before{left:17%}.mini-track:after{left:83%}
.mini-track .rhine-bridge{position:absolute;left:50%;top:0;width:76px;transform:translateX(-50%);background:#fbf4e5}
.rhine-bridge path{fill:none;stroke:#233d66;stroke-width:3.5;stroke-linecap:round}
.rhine-bridge .water{stroke:#275fc3}
#crossingTram{
  position:absolute;top:0;left:17%;height:23px;width:29px;
  transform:translateX(-50%);z-index:1;
}
.crossed #crossingTram{left:83%}
.river-label{grid-area:3 / 1 / 4 / 4;justify-self:center;font-size:13px;font-weight:800}
#card.start-card{display:flex;background:#fffaf0;color:var(--ink);border-color:#ded1b5}
#card.start-card #art{height:clamp(140px,12.5vw,200px);min-height:0;border-right:0;border-bottom:0}
.start-card .copy{padding:12px 13px 13px}
.start-card .copy small{color:#4d6178}
.start-card .copy h2{font-size:clamp(19px,2vw,28px);margin-bottom:4px}
.start-card #quickQuiz{margin:7px 0 8px}
.start-card #quickQuiz .quiz{border-color:#ded1b5}
.start-card #quickQuiz .quiz h3{font-weight:800;font-size:clamp(17px,2vw,21px);line-height:1.18;letter-spacing:-.025em}
.start-card #quickQuiz .quiz small{color:#68400d}
.start-card #quickQuiz #answers button{background:#fffdf6;color:var(--ink);border:1px solid #435776}
.start-card #quickQuiz #answers .correct{background:#f6c94e;border-color:#a77900;color:var(--ink)}
.start-card #quickQuiz #feedback{color:#2c4a36}
.start-card #discover{color:var(--blue);border:1px solid #c7d2e1;background:#fffaf0}
.pass-strip{
  position:relative;gap:10px;background:#f8cf64;border:1px solid #c8962b;
  padding:10px 14px;border-radius:9px;color:#142944;
  box-shadow:inset 0 0 0 4px #f8cf64,inset 0 0 0 5px #d5a343;
}
.pass-label{flex:1;min-width:0}
.pass-label strong{font:700 italic clamp(15px,1.7vw,22px)/1 var(--display)}
.pass-label small{margin-top:4px}
.ticket-stamps{display:flex;flex:none;gap:5px}
.ticket-stamps > span{
  display:grid;place-items:center;border:1.5px dashed #684d25;border-radius:50%;
  width:clamp(23px,3vw,34px);aspect-ratio:1;font-size:17px;
}
.ticket-stamps > span svg{width:75%}
.ticket-stamps .inked{border:2px solid #1d489d;color:#113e8a;background:#fff4ce;transform:rotate(-8deg)}
.pass-total{flex:none;white-space:nowrap;border-left:1px dashed #8f6b35;padding-left:7px;font-size:12px}
.pass-total #progress{margin:0;border:0;padding:0}
#legend > span{display:inline-flex;align-items:center;gap:5px}
.line-sign{
  display:grid;place-items:center;border-radius:4px;width:19px;height:19px;
  font-size:12px;color:white;
}
.line-sign:first-child{flex:none}
#legend > span:last-child .line-sign{color:#142944}
@media(prefers-reduced-motion:no-preference){
  #crossingTram{transition:left 950ms cubic-bezier(.45,0,.55,1)}
  .ticket-stamps .inked{animation:stamp .28s ease-out}
}
@media(max-width:850px){
  .pass-strip{grid-row:auto}
}
@media(min-width:851px){
  .intro{min-height:clamp(195px,15vw,230px);padding-block:clamp(22px,3vw,42px)}
  .board{align-self:start}
  .mapframe{margin:12px 0 0}
  #card.start-card #art{height:clamp(133px,11vw,177px)}
}
@media(max-width:600px){
  .intro{min-height:0;padding:9px 4px 11px;border:0;background:transparent}
  .intro:after{display:none}
  .hero-copy{max-width:100%}
  h1{font-size:clamp(44px,13.5vw,70px)}
  h1 em{text-decoration:underline #e9ad2a 3px;text-underline-offset:5px}
  .intro p{margin-top:5px;max-width:none}
  #card.start-card #art{height:clamp(139px,43vw,220px)}
  .border-ride:not([hidden]){margin:9px 9px 0}
  .start-card .copy{padding:9px 10px 11px}
  .start-card #quickQuiz #quizLabel{display:none}
  .pass-strip{gap:7px}
}

[hidden]{display:none!important}
.header-actions{display:flex;align-items:center;gap:7px}
#effectsToggle{
  display:grid;place-items:center;width:44px;height:44px;padding:0;
  border:1px solid var(--edge);border-radius:50%;background:#fffdf7;
}
#effectsToggle svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#effectsToggle[aria-pressed=true]{background:#f8cf64;border-color:#a77c28}
#effectsToggle[aria-pressed=false] svg{opacity:.63}
#effectsToggle[aria-pressed=false]{background:linear-gradient(135deg,transparent 47%,#728095 48% 51%,transparent 52%) center/22px 22px no-repeat,#fffdf7}
.photo-scroll{overflow:auto}
.photo-stage{position:relative}
#pictureTask .station-photo{margin:10px 0}
#pictureTask .photo-stage img{height:auto;aspect-ratio:960 / 671}
#pictureTask .zoomed .photo-stage{width:960px}
#pictureTask .zoomed{max-height:min(55dvh,385px)}
#photoMiss,#photoHit{
  position:absolute;margin:0;padding:0;border:0;border-radius:0;background:transparent;
}
#photoMiss{inset:0;width:100%;height:100%}
#photoHit,#photoMark{position:absolute;left:5%;top:68%;width:67%;height:27%;border-radius:50%}
#photoMark{pointer-events:none;overflow:visible;filter:drop-shadow(0 0 1px #122542)}
.picture-controls{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}
.picture-controls button{
  background:#fffdf7;border:1px solid var(--edge);border-radius:8px;
  min-height:44px;padding:5px 10px;font-size:14px;
}
#answers [aria-pressed=true]{background:#e3eef9;border-color:#5d84ad}
#exchangeScene{padding:10px 12px;background:#edf4f9;border-left:3px solid #3066b4;border-radius:4px}
#exchangeScene span{display:block}
#exchangeScene span+span{margin-top:5px;color:#344d71}
.nearby-ticket{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:9px;padding:7px 10px;background:#fae6aa;border:1px dashed #ab8238;
  border-radius:8px;font-size:14px;color:var(--ink);
}
#rideChoices button{font-size:14px}
@media(max-width:600px){
  .brand{line-height:1.1}
  #effectsToggle{width:39px;height:44px}
  .header-actions{gap:4px}
}

#pictureNote{padding:7px 10px;border-left:3px solid #e0a62e;background:#fcf2d8}
#photoMark ellipse{fill:none;stroke:#ffd56d;stroke-width:3px;vector-effect:non-scaling-stroke}
#arrivalLabel{margin-right:10px;color:var(--blue);font-size:.85rem;font-weight:750}
#exchangeScene{display:grid;gap:8px;border:0;background:transparent;padding:0;margin:11px 0}
#exchangeScene span{
  max-width:91%;padding:8px 12px;background:#eaf2fa;
  border-radius:11px 11px 11px 3px;color:var(--ink);
}
#exchangeScene span+span{
  justify-self:end;margin-top:0;background:#f9edca;
  border-radius:11px 11px 3px 11px;
}
#exchangeAudio button{
  min-height:44px;padding:6px 10px;border:1px solid var(--edge);border-radius:8px;background:#fffdf7;
}
#exchangeAudioStatus:empty{display:none}
#exchangeAudio [aria-pressed=true],.listen [aria-pressed=true]{
  background:#dceafb;border-color:#5d84ad;
}
#rideChoices:has(#rideNext[hidden]) #pickMap{background:#f4cf78;border-color:#b78b30}
.nearby-ticket.complete{background:#f8cf64;border-color:#a47418}
.audio-screen{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:13px;width:100%;
  min-height:70px;padding:11px 13px;background:#172c46;border:4px solid #354960;
  border-radius:10px;color:#fff8e8;
}
.audio-screen > span{font-weight:850;letter-spacing:.105em;color:#f8cf64;font-size:12px}
.audio-screen b{font-size:21px}
.audio-bars{display:flex;align-items:center;gap:4px;height:31px}
.audio-bars i{width:4px;height:55%;border-radius:3px;background:#89a6c0;transform-origin:center}
.audio-bars i:nth-child(2n){height:95%}
.audio-screen.playing .audio-bars i{background:#f8cf64}
@media(prefers-reduced-motion:no-preference){
  .crossing-now #riverLabel{animation:signal-in .28s 880ms both}
  .crossing-now .mini-track:after{animation:kehl-signal .5s 850ms backwards}
  .crossing-now .ticket-stamps > span:first-child.inked{animation:signal-in .32s 980ms both}
  #photoMark ellipse{stroke-dasharray:1;animation:draw-mark .62s ease-out both}
  #pictureNote{animation:signal-in .22s .36s both}
  #exchangeScene span{animation:signal-in .27s ease-out both}
  #exchangeScene span+span{animation-delay:.18s}
  #arrivalLabel{animation:signal-in .34s ease-out both}
  .nearby-ticket.complete{animation:signal-in .4s ease-out}
  .audio-screen.playing .audio-bars i{animation:meter .65s ease-in-out infinite alternate}
  .audio-bars i:nth-child(2n){animation-delay:-.25s!important}
  .audio-bars i:nth-child(3n){animation-delay:-.48s!important}
  @keyframes signal-in{from{opacity:0;transform:translateY(4px)}}
  @keyframes kehl-signal{50%{background:#f8cf64;box-shadow:0 0 0 5px #e0ad3a55}}
  @keyframes draw-mark{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
  @keyframes meter{from{transform:scaleY(.31)}to{transform:scaleY(1)}}
}

#detail[open]{
  display:grid;grid-template-rows:auto minmax(0,1fr) auto;
  height:min(88dvh,780px);overflow:hidden;
}
#detail > .inner{overflow-y:auto;overscroll-behavior:contain}
.station-footer{
  padding:6px 16px 8px;
  background:#fffdf7;border-top:1px solid var(--edge);
}
#stationStatus{display:block;margin-bottom:3px;font-size:13px;color:var(--quiet)}
#stationStatus.has-stamp{font-weight:700;color:#215626}
#detailNext{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px;
  width:100%;min-height:44px;padding:7px 12px;border:1px solid #b78b30;
  border-radius:8px;background:#f4cf78;color:var(--ink);text-align:left;
}
#detailNextStop{font-size:13px}
.journey-finish{
  position:relative;isolation:isolate;overflow:hidden;margin:12px 0 8px;padding:17px 16px;
  background:#faf0cf;border:1px dashed #9e711d;border-radius:12px;text-align:center;color:var(--ink);
}
.journey-finish:focus{outline:2px solid var(--blue);outline-offset:2px}
.finish-score{font-weight:850;font-variant-numeric:tabular-nums;color:#744600}
.journey-finish h3{font:700 32px/1.08 var(--display);margin:5px 0}
.journey-finish p{font-size:15px;margin:5px 0 0}
.finish-confetti{position:absolute;inset:0;z-index:-1;pointer-events:none}
.finish-confetti i{
  position:absolute;top:9%;left:6%;width:7px;height:13px;border-radius:2px;
  background:#2252b2;transform:rotate(-26deg);
}
.finish-confetti i:nth-child(2){top:37%;left:12%;background:#dd9a00;transform:rotate(36deg)}
.finish-confetti i:nth-child(3){top:14%;left:20%;height:8px;background:#be2b43}
.finish-confetti i:nth-child(4){top:37%;left:83%;background:#2252b2;transform:rotate(37deg)}
.finish-confetti i:nth-child(5){top:12%;left:89%;height:8px;background:#dd9a00}
.finish-confetti i:nth-child(6){top:28%;left:95%;background:#be2b43}
@media(prefers-reduced-motion:no-preference){
  .journey-finish.celebrate .finish-confetti i{animation:finish-confetti .76s cubic-bezier(.16,.75,.32,1) both}
  .journey-finish.celebrate .finish-confetti i:nth-child(2n){animation-delay:.1s}
  .journey-finish.celebrate .finish-score{display:inline-block;animation:finish-score .48s ease-out both}
  @keyframes finish-confetti{from{opacity:0;translate:0 -55px;rotate:-150deg}to{opacity:1;translate:0 0;rotate:0deg}}
  @keyframes finish-score{from{opacity:0;transform:scale(.82)}to{opacity:1;transform:scale(1)}}
}
