/* Nodes shares Geo Sort's paper, plum typography and tactile controls. */
.nodesNav{white-space:nowrap;position:relative;font-weight:800!important}.nodesBeta{color:#d83a44;position:relative;top:-.65em;margin-left:3px;font-size:8px;letter-spacing:.04em;font-weight:900;line-height:0}
.nodesShell{max-width:960px;margin:12px auto 30px}.nodesTop{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:28px}.nodesSteps{display:flex;gap:7px}.nodesSteps span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;border:1px solid var(--edge);font-size:11px;font-weight:800;color:var(--muted)}.nodesSteps .current{color:var(--paper);background:var(--accent);border-color:var(--accent)}.nodesSteps .done{color:var(--green);background:var(--greenSoft);border-color:#bdcdbf}
.nodesHeading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.nodesHeading h1{font-family:var(--display);font-size:clamp(30px,4vw,46px);letter-spacing:-.055em;line-height:1.08;margin:10px 0}.nodesHeading p{font-size:14px;line-height:1.5;color:var(--muted);margin:0;max-width:560px}.nodesHeading p b{color:var(--ink);font-weight:650}.nodesBudget{background:var(--paper);border:1px solid var(--edge);border-radius:14px;padding:15px 19px;flex:0 0 184px}.nodesBudget small{display:block;font-size:9px;font-weight:800;letter-spacing:.08em;color:var(--muted)}.nodesBudget strong{display:block;font-size:32px;font-family:var(--display);letter-spacing:-.04em;margin:4px 0}.nodesBudget strong span{font-size:14px;font-weight:600;letter-spacing:0}.nodesBudgetTrack{height:4px;background:var(--greenSoft);border-radius:2px;overflow:hidden}.nodesBudgetTrack i{display:block;height:100%;background:var(--accent);transition:width .2s}
.nodesBoard{border:1px solid #c6cfc0;border-radius:18px;overflow:hidden;background:#e5eadf;box-shadow:0 12px 36px #30213f07}.nodesBoard svg{display:block;width:100%;height:auto;touch-action:none;user-select:none}.nodesTown{fill:#78846a;opacity:.42;transition:fill .5s,opacity .5s}.nodesTown.connected{fill:#50316f;opacity:.88}.nodesDotted{fill:none;stroke:#687660;stroke-width:2;stroke-dasharray:2 7;stroke-linecap:round;opacity:.7}.nodesCoverage{fill:none;stroke:#fffdf9;stroke-opacity:.48;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.nodesCoverage.revealed{stroke:#9d80b5;stroke-opacity:.18}.nodesRail{fill:none;stroke:#50316f;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.nodesRailTies{fill:none;stroke:#50316f;stroke-width:10;stroke-dasharray:2 9;opacity:.6;pointer-events:none}.nodesGhost{fill:none;stroke:#50316f;stroke-width:2;stroke-dasharray:5 5;opacity:.6;pointer-events:none}.nodesBest{fill:none;stroke:#d18b23;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:13 8;pointer-events:none}.nodesHit{fill:transparent;cursor:crosshair}.nodesStation{cursor:crosshair;outline:none}.nodesDot{fill:#fffdf9;stroke:#50316f;stroke-width:2.5;pointer-events:none}.nodesStation.visited .nodesDot{fill:#50316f}.nodesStation.tip .nodesDot{stroke:#fffdf9;stroke-width:4;filter:drop-shadow(0 0 2px #50316f)}.nodesStation.terminal .nodesDot{fill:#50316f}.nodesTerminalMark{font:bold 11px var(--body);text-anchor:middle;fill:white;pointer-events:none}.nodesLabel{font:650 13px var(--body);fill:#40324d;paint-order:stroke;stroke:#e5eadf;stroke-width:5;stroke-linejoin:round;pointer-events:none}.nodesStation:focus-visible .nodesDot{stroke:#d18b23;stroke-width:5}.nodesScale path{fill:none;stroke:#697562;stroke-width:1.5}.nodesScale text,.nodesNorth{font:600 11px var(--body);fill:#697562;paint-order:stroke;stroke:#e5eadf;stroke-width:3}
.nodesMapKey{display:flex;justify-content:space-between;gap:12px;padding:13px 3px;font-size:11px;color:var(--muted)}.nodesMapKey span{display:flex;align-items:center;gap:7px}.nodesKeyDot{width:6px;height:6px;border-radius:50%;background:#78846a}.nodesKeyStation{width:9px;height:9px;border:2px solid var(--accent);border-radius:50%}.nodesKeyLine{width:24px;border-top:2px dotted #687660}.nodesFeedback{font-size:13px;line-height:1.5;min-height:42px;padding:8px 0;color:var(--muted)}.nodesControls{display:flex;justify-content:space-between;align-items:center;gap:16px}.nodesControls[hidden]{display:none}.nodesControls>div{display:flex;gap:8px}.nodesControls .chip{min-height:44px}.nodesControls .primaryBtn{min-width:200px}
.nodesHelp{margin-top:25px;border-top:1px solid var(--edge);padding-top:16px;color:var(--muted);font-size:12px;line-height:1.7}.nodesHelp summary{cursor:pointer;font-weight:650;min-height:35px}.nodesHelp p{max-width:760px}.nodesDataNote{font-size:11px}.nodesReveal{border:1px solid var(--edge);border-radius:18px;background:var(--paper);padding:24px;margin-top:10px;display:grid;grid-template-columns:150px 1fr;gap:22px;outline:none;animation:nodesReveal .4s ease-out both}.nodesScore{display:flex;flex-direction:column;justify-content:center}.nodesScore>strong{font:900 53px var(--display);letter-spacing:-.065em;line-height:1.1}.nodesScore strong small{font-size:16px;letter-spacing:0}.nodesScore>span{font-size:8px;letter-spacing:.1em;font-weight:800;color:var(--muted);margin-top:8px}.nodesComparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.nodesComparison>div{display:flex;flex-direction:column;gap:7px}.nodesComparison span{font-size:9px;letter-spacing:.08em;font-weight:800;color:var(--muted)}.nodesComparison strong{font:800 clamp(19px,3vw,31px) var(--display);letter-spacing:-.04em}.nodesComparison small{font-size:11px;color:var(--muted)}.nodesRevealActions{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--edge);padding-top:19px}
.nodesSummary{max-width:730px;margin:40px auto}.nodesSummary h1{font:900 clamp(38px,6vw,60px) var(--display);letter-spacing:-.065em;margin:15px 0 24px}.nodesFinalScore{background:var(--paper);border:1px solid var(--edge);border-radius:18px;padding:23px;text-align:center}.nodesFinalScore strong{font:900 73px var(--display);letter-spacing:-.065em}.nodesFinalScore strong span{font-size:22px;letter-spacing:0}.nodesFinalScore p{font-size:12px;color:var(--muted);margin:3px 0 0}.nodesRoundResults{margin:22px 0;display:grid;gap:12px}.nodesRoundResults article{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 20px;border:1px solid var(--edge);border-radius:12px;background:var(--paper)}.nodesRoundResults span{font-size:9px;font-weight:800;letter-spacing:.1em;color:var(--muted)}.nodesRoundResults h2{font-size:18px;letter-spacing:-.02em;margin:6px 0}.nodesRoundResults p{font-size:12px;color:var(--muted);margin:0}.nodesRoundResults article>b{font:900 30px var(--display);letter-spacing:-.05em;white-space:nowrap}.nodesRoundResults article>b small{font-size:11px;letter-spacing:0}.nodesTomorrow{font-size:13px;color:var(--muted);line-height:1.5}.nodesSummaryActions{display:flex;gap:12px;margin-top:21px}.nodesLoading{margin:60px auto;max-width:800px}.nodesLoading h1{font-family:var(--display);font-size:38px;letter-spacing:-.04em}.nodesLoading p{color:var(--muted);font-size:14px}
@keyframes nodesReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:620px){.nodesNav{font-size:12px!important}.nodesBeta{font-size:7px}.headerNav{gap:8px}.nodesShell{margin-top:10px}.nodesTop{margin-bottom:17px}.nodesTop .breadcrumbs{font-size:9px;gap:7px}.nodesSteps{gap:4px}.nodesSteps span{width:23px;height:23px;font-size:10px}.nodesHeading{gap:10px;align-items:start;margin-bottom:15px}.nodesHeading h1{font-size:28px;margin:8px 0}.nodesHeading .eyebrow{font-size:8px;letter-spacing:.06em}.nodesHeading p{font-size:11px}.nodesBudget{flex-basis:114px;padding:11px 12px;border-radius:11px}.nodesBudget small{font-size:7px;letter-spacing:.04em}.nodesBudget strong{font-size:24px}.nodesBudget strong span{font-size:11px}.nodesBoard{border-radius:12px}.nodesLabel{font-size:25px;stroke-width:6}.nodesDot{stroke-width:3}.nodesMapKey{font-size:9px;gap:6px;padding:11px 0}.nodesFeedback{font-size:11px;min-height:44px}.nodesControls{gap:8px}.nodesControls .primaryBtn{min-width:0;padding:13px 15px;font-size:11px}.nodesControls .chip{font-size:11px;padding:9px 11px}.nodesControls>div{gap:6px}.nodesReveal{padding:18px 15px;grid-template-columns:1fr;gap:17px}.nodesScore{align-items:center}.nodesScore>strong{font-size:48px}.nodesComparison{gap:13px;text-align:center}.nodesComparison span{font-size:8px}.nodesComparison strong{font-size:23px}.nodesComparison small{font-size:10px}.nodesRevealActions{gap:8px;padding-top:15px}.nodesRevealActions .chip,.nodesRevealActions .primaryBtn{font-size:10px;padding:12px}.nodesSummary{margin:26px auto}.nodesSummary .eyebrow{font-size:8px}.nodesFinalScore strong{font-size:60px}.nodesRoundResults article{padding:15px 13px}.nodesRoundResults p{font-size:10px}.nodesSummaryActions .primaryBtn,.nodesSummaryActions .chip{font-size:11px;padding:14px}.nodesHelp{font-size:11px}}
/* Freehand railway: two terminals, a continuous track, and zoom-aware place labels. */
.freehandNodes .nodesHeading{margin-bottom:17px}.freehandNodes .nodesHeading p{max-width:700px}.freeTrackBudget{background:var(--paper);border:1px solid var(--edge);border-radius:12px;padding:13px 17px;margin-bottom:13px}.freeTrackBudget>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.freeTrackBudget span{font-size:9px;font-weight:800;letter-spacing:.1em;color:var(--muted)}.freeTrackBudget strong{font:800 19px var(--display);font-variant-numeric:tabular-nums}.freeTrackBudget strong small{font-size:12px;font-weight:550;color:var(--muted)}.freeTrackBar{height:9px;border-radius:5px;background:#e8e1ed;overflow:hidden}.freeTrackBar i{display:block;width:100%;height:100%;background:var(--accent);border-radius:5px;transition:width .06s linear}.freeTrackBudget.low .freeTrackBar i{background:#bd693f}.freeMapTools{display:flex;justify-content:space-between;gap:14px;margin-bottom:10px}.freeDrawTools,.freeZoomTools{display:flex;gap:6px}.freeMapTools .chip{min-height:40px;padding:8px 15px;font-size:12px}.freeMapTools .chip.active{background:var(--accent);color:var(--paper);border-color:var(--accent)}.freeZoomTools #nodesZoomOut,.freeZoomTools #nodesZoomIn{font-size:18px;min-width:42px;padding:5px}.freehandNodes #nodesMap{cursor:crosshair}.freehandNodes #nodesMap.panning{cursor:grab}.freehandNodes #nodesMap.panning:active{cursor:grabbing}.freehandNodes .nodesDotted{vector-effect:non-scaling-stroke;stroke-width:1.5;stroke-dasharray:2 6}.freehandNodes .nodesRail{stroke-width:3.5}.freehandNodes .nodesBest{stroke-width:3.5}.freePlace{pointer-events:none}.freePlace circle{fill:#747d69}.freePlace text{font-family:var(--body);font-weight:550;fill:#4d5547;stroke:#e5eadf;paint-order:stroke;stroke-linejoin:round}.freeTerminal{pointer-events:none}.freeTerminal circle{fill:var(--accent);stroke:#fffdf9;stroke-width:2;vector-effect:non-scaling-stroke}.freeTerminal text{font-family:var(--body);font-weight:800;fill:white;text-anchor:middle}.freeTrackTip{fill:var(--accent);stroke:white;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.freeMapNote{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;padding:12px 0 2px}.freehandNodes .nodesScore>span{font-size:7px;line-height:1.5}.freehandNodes .nodesBoard svg:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
@media(max-width:620px){.freehandNodes .nodesHeading h1{font-size:32px}.freehandNodes .nodesHeading p{font-size:12px;line-height:1.5}.freeTrackBudget{padding:12px 13px}.freeTrackBudget span{font-size:8px}.freeTrackBudget strong{font-size:17px}.freeTrackBudget strong small{font-size:10px}.freeMapTools{gap:8px}.freeMapTools .chip{padding:7px 11px;font-size:10px;min-height:39px}.freeZoomTools #nodesZoomOut,.freeZoomTools #nodesZoomIn{min-width:36px}.freeMapNote{font-size:9px;flex-wrap:wrap;gap:5px}.freehandNodes .nodesControls .chip{padding:10px 9px;font-size:10px}}
.freehandNodes .nodesBoard svg{height:clamp(280px,calc(100svh - 390px),620px)}.freeTrackBudget{position:sticky;top:8px;z-index:3;box-shadow:0 3px 12px #30213f06}.freehandNodes .nodesBoard{background:#e5eadf}
@media(max-width:620px){.freehandNodes .nodesBoard svg{height:clamp(300px,calc(100svh - 390px),440px)}.freeTrackBudget{top:5px}}
@media(max-width:620px){.freehandNodes .nodesBoard svg{height:clamp(280px,calc(100svh - 550px),370px)}}
/* Nodes is a viewport-sized game; map space grows into the remaining height. */
body.nodesActive{height:100dvh;min-height:0;overflow:hidden}body.nodesActive #app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}body.nodesActive .siteHeader{height:58px;min-height:58px;flex:none;width:100%;padding-top:0;padding-bottom:0}body.nodesActive .footer{display:none}body.nodesActive .view{flex:1;min-height:0;width:100%;padding:0 20px 10px;overflow:hidden}body.nodesActive .freehandNodes{height:100%;max-width:1100px;margin:0 auto;display:grid;grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto auto auto;gap:6px}body.nodesActive .nodesTop{margin:0;min-height:26px}body.nodesActive .nodesHeading{margin:0;gap:6px}body.nodesActive .nodesHeading h1{font-size:26px;margin:3px 0;line-height:1.05}body.nodesActive .nodesHeading p{font-size:11px;line-height:1.35}body.nodesActive .nodesHeading .eyebrow{font-size:8px;letter-spacing:.08em}body.nodesActive .freeTrackBudget{margin:0;padding:8px 12px;position:static;box-shadow:none}body.nodesActive .freeTrackBudget>div:first-child{margin-bottom:5px}body.nodesActive .freeTrackBudget strong{font-size:16px}body.nodesActive .freeTrackBar{height:7px}body.nodesActive .freeMapTools{margin:0;gap:8px}body.nodesActive .freeMapTools .chip{min-height:32px;padding:5px 12px;font-size:11px}body.nodesActive .freeZoomTools #nodesZoomOut,body.nodesActive .freeZoomTools #nodesZoomIn{min-width:32px;font-size:17px}body.nodesActive .nodesBoard{min-height:0;height:100%}body.nodesActive .nodesBoard svg{height:100%;min-height:0}body.nodesActive .freeMapNote{display:none}body.nodesActive .nodesFeedback{min-height:0;padding:0;font-size:11px;line-height:1.35}body.nodesActive .nodesControls .chip,body.nodesActive .nodesControls .primaryBtn{min-height:39px;padding:8px 15px;font-size:11px}body.nodesActive .nodesReveal{margin:0;padding:12px 15px;grid-template-columns:100px 1fr;gap:10px;animation:none}body.nodesActive .nodesScore>strong{font-size:37px}body.nodesActive .nodesScore>span{font-size:7px;margin-top:4px}body.nodesActive .nodesComparison{gap:12px}body.nodesActive .nodesComparison strong{font-size:22px}body.nodesActive .nodesComparison span{font-size:8px}body.nodesActive .nodesComparison small{font-size:10px}body.nodesActive .nodesRevealActions{padding-top:9px;gap:9px}body.nodesActive .nodesRevealActions .chip,body.nodesActive .nodesRevealActions .primaryBtn{min-height:35px;font-size:10px;padding:8px 12px}body.nodesActive .nodesSummary{height:100%;max-width:730px;margin:0 auto;display:flex;flex-direction:column;justify-content:center;gap:10px}body.nodesActive .nodesSummary h1{font-size:38px;margin:0}body.nodesActive .nodesFinalScore{padding:12px}body.nodesActive .nodesFinalScore strong{font-size:56px}body.nodesActive .nodesRoundResults{margin:0;gap:8px}body.nodesActive .nodesRoundResults article{padding:10px 14px}body.nodesActive .nodesRoundResults h2{margin:3px 0;font-size:16px}body.nodesActive .nodesTomorrow{margin:0;font-size:11px}body.nodesActive .nodesSummaryActions{margin:0}.nodesHelpDialog{max-width:620px;max-height:80dvh;overflow:auto;padding:22px;border:1px solid var(--edge);border-radius:16px;background:var(--paper);color:var(--ink);font-size:13px;line-height:1.6}.nodesHelpDialog::backdrop{background:#30213f66}.nodesHelpDialog #nodesHelpClose{float:right;min-height:40px}.nodesHelpDialog h2{font-family:var(--display);font-size:24px}
@media(max-width:620px){body.nodesActive .siteHeader{height:76px;min-height:76px;padding:5px 12px}body.nodesActive .view{padding:0 12px 8px}body.nodesActive .freehandNodes{gap:5px}body.nodesActive .nodesTop{min-height:22px}body.nodesActive .nodesTop .breadcrumbs{font-size:8px}body.nodesActive .nodesHeading h1{font-size:24px}body.nodesActive .nodesHeading .eyebrow{font-size:7px}body.nodesActive .nodesHeading p{font-size:10px}body.nodesActive .freeMapTools .chip{font-size:10px;padding:5px 9px}body.nodesActive .freeTrackBudget span{font-size:7px}body.nodesActive .freeTrackBudget strong{font-size:15px}body.nodesActive .nodesFeedback{font-size:10px}body.nodesActive .nodesControls .chip,body.nodesActive .nodesControls .primaryBtn{font-size:10px;padding:8px 10px}body.nodesActive .nodesReveal{padding:9px 10px;grid-template-columns:75px 1fr;gap:8px}body.nodesActive .nodesScore>strong{font-size:31px}body.nodesActive .nodesScore strong small{font-size:11px}body.nodesActive .nodesComparison{gap:8px}body.nodesActive .nodesComparison strong{font-size:17px}body.nodesActive .nodesComparison span{font-size:6px}body.nodesActive .nodesComparison small{font-size:8px}body.nodesActive .nodesComparison>div{gap:4px}body.nodesActive .nodesSummary h1{font-size:31px}body.nodesActive .nodesFinalScore strong{font-size:47px}body.nodesActive .nodesRoundResults p{font-size:9px}body.nodesActive .nodesRoundResults article>b{font-size:25px}body.nodesActive .nodesSummary .eyebrow{font-size:7px}}
@media(max-height:600px){body.nodesActive .nodesHeading h1{font-size:20px}body.nodesActive .nodesHeading .eyebrow{display:none}body.nodesActive .nodesSummary{gap:6px}body.nodesActive .nodesSummary h1{font-size:26px}body.nodesActive .nodesFinalScore{padding:6px}body.nodesActive .nodesFinalScore strong{font-size:36px}body.nodesActive .nodesRoundResults article{padding:6px 10px}}
.nodesBorders{pointer-events:none}.stateBorder{fill:none;stroke:#a2ad95;stroke-width:.9;stroke-dasharray:4 2;stroke-linecap:round;stroke-linejoin:round}.countryBorder{fill:none;stroke:#747d6a;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.nodesRouteLegend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:10px}.nodesRouteLegend i{display:inline-block;width:17px;border-top:3px solid var(--accent)}.nodesRouteLegend .maximum{border-top-color:#d18b23;border-top-style:dashed}body.nodesActive .nodesRouteLegend{font-size:9px}
body.nodesActive .nodesBoard{background:#d8e9ed}
body.nodesActive .mercCoverage{fill:#fffdf9;stroke:none;opacity:.48}body.nodesActive .mercCoverage.revealed{fill:#9d80b5;opacity:.18}

/* Keep static map geometry out of the moving track's paint layer. */
.freehandNodes .nodesBoard{position:relative;contain:layout paint;isolation:isolate}
.freehandNodes #nodesMap{will-change:transform}
#nodesTrackCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;will-change:transform}
#nodesRail,#nodesBest,.freeTrackTip{display:none}
.freehandNodes .nodesDotted{stroke:#244d37;stroke-width:3;stroke-dasharray:3 8;opacity:.95}
.freeTrackBar i{transition:none}

.nodesHome{height:100%;max-width:800px;margin:0 auto;display:flex;flex-direction:column;padding:12px 0}
.nodesHome>.backTiny{align-self:flex-start}.nodesHomeMain{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px 12px}
.nodesHome h1{font:800 clamp(64px,10vw,100px) var(--display);letter-spacing:-.065em;line-height:1;margin:18px 0}.nodesHome h1 sup{font:800 10px var(--body);letter-spacing:.08em;color:#bf4242;vertical-align:super;margin-left:8px}
.nodesHomeMain>p{color:var(--muted);font-size:14px;margin:4px 0 32px}.nodesHomeModes{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:640px}.nodesHomeModes button{min-height:106px;font-size:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-radius:15px}.nodesHomeModes small{font:500 11px var(--body);opacity:.8}.nodesUnlimitedBtn{background:#e4eadf;color:#244d37;border:1px solid #bccbb3}.nodesSteps[hidden]{display:none}
@media(max-width:620px){.nodesHomeModes{grid-template-columns:1fr;max-width:360px}.nodesHomeModes button{min-height:95px}.nodesHomeMain>p{font-size:12px;margin-bottom:24px}}

#nodesTrainCanvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;will-change:transform}
.nodesScoreArrival{animation:nodesScoreArrival .35s ease-out}@keyframes nodesScoreArrival{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.nodesScoreArrival{animation:none}}

body.nodesActive .nodesBoard{justify-self:center;max-width:100%}body.nodesActive .freehandNodes{max-width:900px}

body.nodesActive .nodesBoard{align-self:center}body.nodesActive .freehandNodes{max-width:min(900px,calc((100dvh - 340px)*1.6))}@media(max-width:620px){body.nodesActive .freehandNodes{max-width:100%}}

.nodesWorldWrap{display:none}.showWorldWrap .nodesWorldWrap{display:inline}

/* Explicit rows and a height cap keep the map clear of the result panel. */
body.nodesActive .freehandNodes{grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto auto}
body.nodesActive .nodesTop{grid-row:1}body.nodesActive .nodesHeading{grid-row:2}body.nodesActive .freeTrackBudget{grid-row:3}body.nodesActive .freeMapTools{grid-row:4}body.nodesActive .nodesBoard{grid-row:5;max-height:100%;align-self:center;min-height:0}body.nodesActive .nodesFeedback{grid-row:6}body.nodesActive .nodesControls{grid-row:7}body.nodesActive #nodesResult{grid-row:8;position:relative;z-index:2;min-width:0}

/* The site entry contains only its two game choices. */
body.siteHub{height:100dvh;min-height:0;overflow:hidden}body.siteHub .siteHeader,body.siteHub .footer,body.siteHub .paperGrain{display:none}
body.siteHub #app{min-height:100dvh}body.siteHub .view{width:100%;max-width:none;min-height:100dvh;height:100dvh;margin:0;padding:24px;display:grid;place-items:center}
.gameChoice{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:min(100%,680px)}.gameChoiceButton{position:relative;min-width:0;min-height:156px;border:1px solid transparent;border-radius:18px;font:800 32px var(--display);letter-spacing:-.035em;box-shadow:0 5px 0 #30213f12;transition:transform .15s,box-shadow .15s}
.gameChoiceButton:hover{transform:translateY(-2px);box-shadow:0 7px 0 #30213f12}.gameChoiceButton:active{transform:translateY(1px);box-shadow:0 2px 0 #30213f12}.nodesChoice{background:var(--accent);color:var(--paper)}.geoChoice{background:#e4eadf;color:#244d37;border-color:#bdcbb5}
.gameNewBanner{position:absolute;top:0;right:0;background:#e9ba61;color:#3e2c1e;padding:8px 14px;border-radius:0 17px 0 12px;font:800 11px var(--body);letter-spacing:.12em}
@media(max-width:620px){.gameChoice{grid-template-columns:1fr;max-width:360px;gap:18px}.gameChoiceButton{min-height:125px;font-size:29px}}
@media(prefers-reduced-motion:reduce){.gameChoiceButton{transition:none}}
/* Shared game hub: railway scenery and sortable country cards. */
body.siteHub{height:auto;overflow:auto;background:radial-gradient(ellipse at 15% 20%,#dce8d6 0,transparent 48%),radial-gradient(ellipse at 90% 80%,#e9dded 0,transparent 45%),var(--paper)}
body.siteHub .view{display:flex;flex-direction:column;justify-content:center;gap:32px;height:auto;padding:42px 24px}
.hubIntro{text-align:center}.hubIntro h1{font:800 clamp(40px,5.5vw,68px)/1.04 var(--display);letter-spacing:-.055em;margin:18px 0}.hubIntro h1 em{color:var(--accent);font-style:normal}.hubIntro p{font-size:15px;color:var(--muted);margin:0}
.gameChoice{width:min(100%,850px);gap:24px}.gameChoiceButton{padding:0 0 24px;overflow:hidden;text-align:left;border-radius:22px;background:var(--paper);color:var(--ink);border:1px solid var(--edge);box-shadow:0 8px 0 #30213f0a}.gameArt{display:block;width:100%;height:180px;object-fit:cover;background:#e2d5ec}.gameCardTitle{display:flex;align-items:center;justify-content:space-between;padding:22px 26px 8px;font-size:32px}.gameCardTitle>span{font:500 25px var(--body);color:var(--accent)}.gameChoiceButton>small{display:block;padding:0 26px;font:500 13px var(--body);letter-spacing:0;color:var(--muted)}.gameNewBanner{z-index:1;border-radius:0 21px 0 12px}.rankingArt{padding:20px 30px;display:flex;flex-direction:column;gap:9px;justify-content:center}.rankingArt>span{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fffdf9;border:1px solid #c9b7d6;border-radius:9px;font:650 13px var(--body);letter-spacing:0;box-shadow:3px 3px 0 #77499413}.rankingArt b{font-size:10px;color:#774994}.rankingArt i{margin-left:auto;background:#b4cba3;width:75px;height:8px;border-radius:3px}.rankingArt>span:nth-child(2){transform:translateX(8px)}.rankingArt>span:nth-child(2) i{width:48px}.rankingArt>span:nth-child(3) i{width:35px}.nodesStatsGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:24px 0}.nodesStatsGrid>div{background:#ece6f0;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:8px}.nodesStatsGrid strong{font:800 27px var(--display)}.nodesStatsGrid span{font-size:12px;color:var(--muted)}
@media(max-width:620px){body.siteHub .view{padding:32px 18px;gap:26px}.hubIntro .eyebrow{font-size:9px}.hubIntro h1{font-size:39px}.hubIntro p{font-size:12px}.gameChoice{max-width:390px;gap:18px}.gameArt{height:145px}.gameCardTitle{padding:17px 22px 7px;font-size:27px}.gameChoiceButton>small{padding:0 22px}.gameChoiceButton{padding-bottom:20px}.headerNav{gap:10px}.headerNav button{font-size:11px}.nodesHomeModes button{font-size:21px}}
.nodesHomeMain{padding:12px}.nodesHome h1{margin:10px 0}.nodesHomeMain>p{margin:5px 0 16px}.nodesMenuArt{width:min(100%,640px);height:150px;overflow:hidden;border:1px solid #b5c6ab;border-radius:20px;margin-bottom:20px;box-shadow:0 6px 0 #30213f08}.nodesMenuArt .gameArt{height:150px}.nodesHomeModes button{min-height:96px;box-shadow:0 5px 0 #30213f10}.nodesHomeModes .nodesUnlimitedBtn{background:#e9efdf}.helpRouteArt{overflow:hidden;border:1px solid #b5c6ab;border-radius:14px;margin:18px 0;background:#edf2e6}.helpRouteArt .gameArt{height:105px}.helpRouteArt>span{display:block;padding:11px;text-align:center;font-size:11px;font-weight:700;color:#244d37}.nodesHelpDialog .nodesGoal{background:#e9efdf;border-radius:12px;padding:14px;color:#244d37}.freeTrackBudget{background:linear-gradient(100deg,#eee5f3,#fffdf9);border-color:#d4c5dd}.nodesBoard{border:1px solid #b5c6ab!important;box-shadow:0 4px 0 #30213f08}.nodesReveal{background:linear-gradient(130deg,#eee5f3,#fffdf9);border-color:#d4c5dd}.nodesFinalScore{background:linear-gradient(130deg,#e8deef,#edf2e6);border-color:#d4c5dd}.nodesRoundResults article{box-shadow:0 3px 0 #30213f06}.nodesStatsGrid>div:nth-child(2n){background:#e9efdf}
@media(max-width:620px){.nodesMenuArt,.nodesMenuArt .gameArt{height:110px}.nodesMenuArt{margin-bottom:16px}.nodesHomeMain>p{font-size:12px}.nodesHomeModes button{min-height:82px}.nodesHome h1{font-size:58px}.nodesHomeMain{padding:8px}}
@media(max-height:650px){.nodesMenuArt,.nodesMenuArt .gameArt{height:85px}.nodesHome h1{font-size:55px}.nodesHomeModes button{min-height:76px}.nodesHomeMain>p{margin-bottom:12px}.nodesMenuArt{margin-bottom:12px}}
.nodesHomeModes button{letter-spacing:-.025em;text-transform:none}.nodesHomeModes small{letter-spacing:0;line-height:1.4}.nodesMenuArt .gameArt{background:#b5cf9d}
.nodesMenuArt .gameArt,.helpRouteArt .gameArt{background:#b5cf9d}.nodesMenuArt .gameArt{padding:6px}.helpRouteArt .gameArt{padding:4px}
.nodesRouteLegend .maximum{border-top-style:double;border-top-width:5px}
body.siteHub{background:var(--bg)!important}.nodesMenuArt,.nodesMenuArt .gameArt,.helpRouteArt,.helpRouteArt .gameArt{background:#365348}.nodesHome h1{font-size:72px;font-weight:750;margin:0 0 8px}.nodesHomeMain>p{color:var(--muted)}.nodesMenuArt{border-radius:6px;border-color:var(--edge);box-shadow:none}.nodesHomeModes button{font-size:23px;border-radius:6px}.nodesHomeModes .nodesUnlimitedBtn{background:#2b3b2c;color:var(--ink);border-color:#536c48}.nodesSteps span{border-color:var(--edge);background:var(--paper)}.nodesSteps .current{background:var(--accent);color:#15200c}.freeTrackBudget{background:var(--paper);border-color:var(--edge);border-radius:6px}.freeTrackBar{background:#344036}.freeTrackBar i{background:var(--accent)}.freehandNodes .nodesBoard,body.nodesActive .nodesBoard{background:#162a32;border:1px solid #435c4c!important;border-radius:4px;box-shadow:none}.nodesAreaBoundary{fill:#d3fa3510;stroke:#d3fa35;stroke-width:2.5;vector-effect:non-scaling-stroke}.freePlace circle{fill:#a5bc9e}.freePlace text{fill:#d8e4d7;stroke:#294239}.countryBorder{stroke:#648575}.stateBorder{stroke:#537262}.nodesReveal,.nodesFinalScore,.nodesRoundResults article{background:var(--paper);border-color:var(--edge);border-radius:6px;box-shadow:none}.nodesComparison strong{color:var(--accent)}.nodesStatsGrid>div,.nodesStatsGrid>div:nth-child(2n){background:#293a2b}.nodesHelpDialog .nodesGoal{background:#283e29;color:var(--ink)}.nodesRouteLegend i{border-color:var(--accent)}.nodesRouteLegend .maximum{border-color:#ee9b43}.freehandNodes .mercCoverage{display:none}.nodesHomeMain .eyebrow{display:none}.nodesHeading h1{font-weight:750}.nodesTop .breadcrumbs{color:var(--muted)}.nodesHelpDialog a{color:var(--accent)}
