@font-face{font-family:DM Sans;src:url('/fonts/dm-sans.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:DM Serif Text;src:url('/fonts/dm-serif-text.woff2') format('woff2');font-display:swap}
@font-face{font-family:DM Serif Text;src:url('/fonts/dm-serif-text-italic.woff2') format('woff2');font-style:italic;font-display:swap}
:root{--navy:#132537;--deep:#101f2e;--cream:#faf7f0;--gold:#f4c66b;--muted:#b9c6cd;--line:#344454;--ink:#192b38;--serif:'DM Serif Text',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:var(--ink);font:1rem/1.55 var(--sans);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #da8c27;outline-offset:4px}
button:disabled{cursor:default;opacity:.65}
[hidden]{display:none!important}
h1,h2,h3,p,ol,dl,dd{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.1;text-wrap:balance}
svg{width:1.2em;height:1.2em;display:inline-block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6;flex:none}
.skip{position:fixed;top:-100px;left:15px;padding:10px;background:#fff;z-index:10}
.skip:focus{top:8px}
.topbar{background:var(--deep);color:#f9f5e9}
.top-inner{max-width:1440px;margin:auto;height:66px;padding:0 clamp(20px,4.7vw,72px);display:flex;align-items:center}
.brand{display:inline-flex;align-items:center;gap:10px;font:normal 30px/.95 var(--serif);letter-spacing:-1.1px}
.top-inner nav{height:100%;display:flex;align-items:stretch;gap:28px;margin-left:clamp(32px,5vw,80px)}
.top-inner nav a{display:flex;align-items:center;position:relative;font-size:.9rem;font-weight:550;color:#ced7db}
.top-inner nav .nav-current,.top-inner nav a:hover{color:#fff7e4}
.nav-current::after{content:'';height:2px;position:absolute;bottom:13px;left:0;right:0;background:var(--gold)}
.utilities{display:flex;align-items:center;margin-left:auto;gap:15px}
.icon-btn,.stats-btn,.close-btn,.link-btn{background:none;border:0;color:inherit}
.icon-btn,.stats-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center}
.icon-btn{width:38px;padding:6px}
.stats-btn{gap:8px;font-size:.9rem;font-weight:550;padding:0 2px}
.utilities button:hover{color:var(--gold)}
.vline{height:19px;width:1px;background:#41505b}
#game{background:var(--navy);color:var(--cream)}
.scene{height:clamp(355px,28.9vw,515px);position:relative;isolation:isolate;overflow:hidden;background:#b9d8d9;color:#142839}
.landscape{position:absolute;inset:0;background:url('/assets/alpine-route.jpg') center 58%/cover no-repeat;z-index:-1}
.hero-type{position:absolute;top:clamp(28px,3.1vw,58px);width:100%;text-align:center;padding:0 14px}
.edition,.kicker,.route-head,.service,.round-label,.fine,.tier-tag{font-size:.74rem;font-weight:750;letter-spacing:.15em;text-transform:uppercase;line-height:1.2}
.edition{display:flex;align-items:center;justify-content:center;gap:13px;color:#30464b;letter-spacing:.22em}
.edition i{width:40px;position:relative;height:1px;background:#5c7374}
.edition i::after{content:'';width:5px;height:5px;position:absolute;top:-2px;right:0;transform:rotate(45deg);background:#456065}
.edition i:last-child::after{right:auto;left:0}
.hero-type h2{font-size:clamp(66px,7vw,114px);letter-spacing:-.058em;line-height:1.02;margin:6px 0 10px;text-shadow:0 1px 0 #fff5}
.hero-type h2 em{font-weight:400}
.hero-type p{color:#243c47;font-weight:550;font-size:clamp(15px,1.15vw,19px);line-height:1.4;text-shadow:0 1px 8px #e7eee5}
.railworld{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);width:min(100%,1600px);height:0}
.train{width:clamp(420px,44vw,760px);position:absolute;bottom:-1px;left:47%;transform:translateX(-50%);z-index:2}
.train img{width:100%;height:auto;display:block;position:relative;filter:drop-shadow(0 2px 1px #1b251f5c)}
.steam{display:block;position:absolute;left:89%;bottom:96%;width:1px;height:1px}
.steam b{position:absolute;bottom:0;left:0;width:12px;height:9px;border-radius:50%;background:#f4f0e2;filter:blur(1px);animation:puff 3.9s ease-out infinite;opacity:0}
.steam b:nth-child(2){animation-delay:-1.3s}.steam b:nth-child(3){animation-delay:-2.6s}
@keyframes puff{0%{opacity:0;transform:translate(0,4px) scale(.55)}15%{opacity:.73}100%{opacity:0;transform:translate(-46px,-53px) scale(3)}}
.train.travelling{animation:depart .85s ease-in-out}
@keyframes depart{0%,100%{transform:translateX(-50%);opacity:1}43%{transform:translateX(75%);opacity:0}44%{transform:translateX(-170%);opacity:0}}
.station-sign{position:absolute;left:76%;bottom:1px;height:46px;display:flex;align-items:flex-start}
.station-sign::before,.station-sign::after{content:'';position:absolute;width:4px;bottom:0;height:32px;background:#363d3e;left:12px}
.station-sign::after{left:auto;right:12px}
.station-sign span{position:relative;z-index:1;display:block;padding:3px 12px;border:2px solid #ebcf85;outline:2px solid #243543;background:#213545;color:#fff3d0;text-transform:uppercase;letter-spacing:.19em;font-weight:750;font-size:clamp(10px,.8vw,14px);line-height:1.4}
.track{position:absolute;bottom:0;height:10px;left:0;right:0;background:repeating-linear-gradient(90deg,#8e7457 0 16px,#534b42 16px 24px,#aa8c64 24px 28px);border-top:3px solid #697477;border-bottom:3px solid #26333b;box-shadow:0 -1px #cebd92}
.console{text-align:center;padding:28px 18px 25px;background:var(--navy);outline:none}
.actions{display:flex;align-items:center;justify-content:center;gap:12px}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:11px;border-radius:7px;min-height:50px;padding:10px 23px;font-weight:700;transition:background .15s,transform .15s}
.primary{color:#172739;background:var(--gold);border:1px solid #e4b259;box-shadow:inset 0 1px #ffe5aa,0 3px 0 #9a763d}
.secondary{color:#f2f4f2;border:1px solid #607181;background:#22364a;box-shadow:inset 0 1px #ffffff0b}
.primary:hover{background:#ffda86}.secondary:hover{background:#2c4257}
.primary:active,.secondary:active{transform:translateY(1px)}
.actions .primary{min-width:211px}.actions .secondary{min-width:191px}
.actions svg{width:23px;height:23px;stroke-width:1.8}
.rule-strip{color:#c8d1d7;display:flex;align-items:center;justify-content:center;gap:15px;margin-top:18px;font-size:.8rem}
.rule-strip span,.route-head>div,.service,.card-head{display:flex;align-items:center;gap:7px}
.rule-strip svg{height:15px;width:15px;color:#c3aa76}
.rule-strip i{width:3px;height:3px;border-radius:50%;background:#75818a}
.itinerary{background:var(--deep);padding:17px 28px 19px;border-top:1px solid #41505b;border-bottom:3px solid #c7a967}
.route-wrap{max-width:1020px;margin:auto}
.route-head{display:flex;align-items:center;justify-content:space-between;gap:12px;letter-spacing:.125em;color:#e4d5b4}
.route-head>div{gap:8px}
.route-head>div svg{color:var(--gold);width:19px;height:19px}
.service{color:#aebdc7;font-size:.7rem;font-weight:550;letter-spacing:.085em}
.stops{list-style:none;display:flex;margin:11px 0 0;padding:0}
.stops li{position:relative;text-align:center;display:flex;flex:1 1 0;align-items:center;flex-direction:column;gap:6px;color:#b9c4cd;font-size:.8rem;line-height:1.35;isolation:isolate}
.stops li::before{content:'';position:absolute;height:1px;left:-50%;right:50%;top:5px;background:#526272;z-index:-1}
.stops li:first-child::before{display:none}
.stops li i{border:2px solid #8b9ba8;background:var(--deep);width:10px;height:10px;border-radius:50%;display:block;margin-top:1px}
.stops li.current{color:#f7d28b;font-weight:650}.stops li.current i{background:var(--gold);border-color:var(--gold);outline:1px solid #d0ac66;outline-offset:2px}
.stops li.visited i{background:#8ac6af;border-color:#8ac6af}
.guide{width:min(1020px,calc(100% - 56px));margin:auto;padding:49px 0 65px}
.kicker{display:flex;align-items:center;gap:10px;color:#7b6140;font-size:.72rem;letter-spacing:.16em}
.kicker span{width:26px;height:2px;background:#b1894f}
.article-intro h1{font-size:clamp(32px,3.55vw,54px);letter-spacing:-.044em;margin:14px 0 12px}
.article-intro p,.tips p,.faq details p,.instructions p,.fare-card p{color:#46535a;line-height:1.62}
.article-intro p{max-width:780px;font-size:1.065rem}
.guide-grid{border-top:1px solid #d9d6cc;margin-top:32px;padding-top:34px;display:grid;grid-template-columns:1.35fr .85fr;gap:clamp(30px,7vw,110px);scroll-margin-top:20px}
.guide h2,.dialog-body h2{font-size:clamp(29px,2.6vw,38px);letter-spacing:-.032em}
.instructions{padding:0;list-style:none;counter-reset:step;margin:20px 0 0}
.instructions li{position:relative;padding-left:44px;counter-increment:step;margin-bottom:18px}
.instructions li::before{content:counter(step);position:absolute;left:0;top:2px;border:1px solid #b9a988;border-radius:50%;width:27px;height:27px;text-align:center;color:#806238;font-family:var(--serif)}
.instructions strong{font-size:1.05rem}
.instructions p{margin:3px 0 0}
.fare-card{padding:24px;background:#f0ecdf;border:1px solid #d9cdb8;align-self:start;border-radius:6px}
.card-head{gap:9px}.card-head svg{color:#826434;width:25px;height:25px}.card-head h2{font-size:26px}
.fare-card p{margin:12px 0 15px}
.fares{border-top:1px dashed #bfb399;padding-top:8px}
.fares>div{display:flex;justify-content:space-between;align-items:center;padding:3px 0}
.fares dt{display:flex;gap:9px;align-items:center}.fares dd{font:650 .84rem var(--sans);font-variant-numeric:tabular-nums}
.tier-dot{width:9px;height:9px;border-radius:50%;background:#76818a;display:inline-block}
.t100{background:#bc8b25}.t85{background:#9973a5}.t60{background:#558e83}.t30{background:#6486a2}
.tips,.faq{border-top:1px solid #d9d6cc;margin-top:32px;padding-top:32px}
.tips p,.faq details p{max-width:780px;margin:12px 0}
.faq h2{margin:12px 0 23px}
details{border-top:1px solid #d8d6ce}
details:last-child{border-bottom:1px solid #d8d6ce}
summary{list-style:none;font-weight:650;cursor:pointer;padding:16px 36px 16px 0;position:relative}
summary::-webkit-details-marker{display:none}
summary::after{content:'+';position:absolute;right:5px;top:10px;font-size:24px;font-weight:400;color:#637079}
details[open] summary::after{content:'−'}
.faq details p{margin-top:0;padding-right:24px}
footer{background:var(--deep);color:#d5dce0;display:flex;align-items:center;gap:20px;padding:22px max(28px,calc((100% - 1020px)/2));font-size:.85rem}
footer .brand{font-size:24px}footer>a:last-child{margin-left:auto;text-decoration:underline;text-underline-offset:3px}
dialog{background:var(--cream);color:var(--ink);border:1px solid #d1c1a6;border-radius:12px;padding:0;width:min(455px,calc(100% - 30px));max-height:88dvh;box-shadow:0 20px 80px #0c192c55}
dialog::backdrop{background:#0b192ab8}
.dialog-body{padding:28px;position:relative}.dialog-body h2{margin:12px 0 20px}
.close-btn{position:absolute;right:12px;top:7px;font-size:28px;width:40px;height:40px}
.stat-boxes{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px dashed #b9ac91;padding:14px 0;margin-bottom:18px;gap:8px}
.stat-boxes strong{display:block;font:32px/1.1 var(--serif)}.stat-boxes span{font-size:.8rem;color:#4d5a61}
#stats-body h3{font-size:21px;margin:18px 0 6px}
.log-row{width:100%;display:flex;align-items:center;justify-content:space-between;color:var(--ink);border:0;border-top:1px solid #d8d1c4;background:none;padding:9px 0}
.log-row:hover{text-decoration:underline}
#game.in-play .scene{height:clamp(130px,13vw,215px)}
.in-play .hero-type{display:none}.in-play .landscape{background-position:center 79%}.in-play .train{width:clamp(280px,30vw,540px)}
#game.in-play .console{padding:21px 18px 24px}
.play-card{max-width:640px;margin:auto;background:var(--cream);border:1px solid #e0cfaf;box-shadow:0 4px 0 #09172555;border-radius:9px;color:var(--ink);text-align:left;padding:20px 25px 22px}
.card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px dashed #c3b8a5;padding-bottom:12px}
.round-label{color:#715c3d;letter-spacing:.1em}.score-total{font-size:.86rem;font-weight:650}
.prompt-head{display:flex;align-items:center;justify-content:space-between;margin:17px 0 8px;gap:15px}
.fine{color:#576969;font-size:.74rem;letter-spacing:.12em}
.clock{display:flex;align-items:center;gap:5px;font:700 .95rem var(--sans);color:#315e55;font-variant-numeric:tabular-nums}
.clock.urgent{color:#a33624}
.play-card h2{font-size:clamp(25px,2.6vw,35px);letter-spacing:-.03em;text-wrap:pretty;line-height:1.16;outline:0}
.answer-form{margin-top:18px;display:flex;gap:8px}
.answer-form input{width:100%;min-width:0;background:#fffefa;border-radius:5px;border:1px solid #9daba8;padding:10px 12px;color:var(--ink)}
.play-card .primary,.play-card .secondary{min-height:43px;font-size:.95rem;padding:8px 17px;box-shadow:none}
.play-card .secondary{color:var(--ink);background:transparent;border-color:#a1aaa7}
.play-card .secondary:hover{background:#e9e6de}
.feedback{font-size:.85rem;color:#9d3826;margin-top:6px}
.card-foot,.result-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}
.link-btn{font-size:.87rem;padding:5px 0;color:#46585d;text-decoration:underline;text-underline-offset:3px}
.result-title{margin:13px 0 7px}
.result-copy{color:#4e595b;margin:7px 0;overflow-wrap:anywhere}
.tier-tag{display:inline-flex;align-items:center;gap:6px;color:#6f5426;letter-spacing:.1em}
.summary-score{font-family:var(--serif);font-size:40px;line-height:1.1}.summary-score small{font:500 1rem var(--sans);color:#637077}
.score-list{list-style:none;padding:0;margin:12px 0;border-top:1px dashed #c3b8a5}
.score-list li{display:grid;grid-template-columns:1fr 1.3fr auto;gap:6px;padding:5px 0;border-bottom:1px solid #e2dccd;font-size:.86rem;align-items:center}
.score-list li span:nth-child(2){color:#526269;overflow-wrap:anywhere}
.result-actions{justify-content:flex-start;flex-wrap:wrap}
.share-fallback{width:100%;font:inherit;margin-top:14px;resize:vertical}
@media(min-width:1650px){.landscape{background-position:center 62%}}
@media(max-width:760px){
  .top-inner{height:58px;padding:0 18px}.brand{font-size:26px;gap:7px}.brand img{width:29px;height:29px}
  .top-inner nav{gap:16px;margin-left:24px}.top-inner nav a{font-size:.82rem}.utilities{gap:6px}
  .scene{height:330px}.landscape{background-size:auto 100%}
  .hero-type{top:26px}.hero-type h2{font-size:clamp(54px,9vw,72px)}.hero-type p{font-size:.93rem}
  .train{width:min(62vw,440px);left:43%}.station-sign{left:79%}
  .console{padding:23px 15px 21px}.guide{padding-top:33px}
  .guide-grid{grid-template-columns:1fr;gap:14px}.fare-card{max-width:100%}
}
@media(max-width:540px){
  .top-inner nav{gap:14px;margin-left:20px}.top-inner nav .nav-current{display:none}.top-inner nav a{font-size:.8rem}
  .utilities .vline{display:none}.utilities{gap:0}.stats-btn span{display:none}.stats-btn{width:34px}.icon-btn{width:34px}
  .scene{height:325px}.landscape{background-position:54% 100%;background-size:auto 90%;background-color:#add4d8}
  .landscape::before{content:'';position:absolute;inset:0 0 80%;background:linear-gradient(#acd2d6 0%,#b0d7da 55%,transparent)}
  .hero-type{top:22px}.edition{font-size:.68rem}.hero-type h2{font-size:clamp(47px,11.8vw,64px);margin:9px 0 6px}.hero-type p{font-size:.88rem}
  .train{width:75%;left:39%}.station-sign{left:auto;right:4%;height:33px}.station-sign span{font-size:9px;padding:2px 6px}.station-sign::after,.station-sign::before{height:24px;width:3px}
  .actions{gap:9px}.actions .primary,.actions .secondary{padding:9px 13px;min-width:0;font-size:.92rem;min-height:46px;gap:8px}
  .actions svg{width:19px;height:19px}.rule-strip{gap:7px;font-size:.71rem}.rule-strip span{gap:4px}.rule-strip svg{width:13px;height:13px}
  .itinerary{padding:14px 12px 16px}.route-head{padding:0 4px;font-size:.67rem}.service{font-size:.62rem}
  .stops li{font-size:clamp(.59rem,2.35vw,.73rem);gap:6px}.stops{margin-top:12px}
  .guide{width:calc(100% - 36px);padding-top:31px}.article-intro h1{font-size:34px;line-height:1.08}.article-intro p{font-size:1rem}
  .guide-grid{margin-top:25px;padding-top:24px}
  #game.in-play .scene{height:115px}.in-play .landscape{background-size:cover}.in-play .landscape::before{display:none}.in-play .train{width:62%}
  #game.in-play .console{padding:15px 11px 18px}.play-card{padding:17px 15px}.rule-strip,.route-head{white-space:nowrap}
  .score-list li{font-size:.81rem}.dialog-body{padding:24px 18px}footer{padding:19px 18px;gap:12px;font-size:.76rem}
}
@media(max-width:354px){.top-inner{padding:0 10px}.top-inner nav{margin-left:12px;gap:10px}.actions .primary,.actions .secondary{font-size:.85rem}.rule-strip{font-size:.66rem}.service{letter-spacing:0}.stops li{font-size:.57rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
