/* the loading-screen train game (nsn-runner.js). Colours = the site's tokens, written out (the /play page has no nsn-site.css). */
.nsn-runner{display:flex;flex-direction:column;gap:6px}
.nsn-runner-cv{display:block;width:100%;height:180px;background:#0b0c0e;border:1px solid #26282d;border-radius:6px;touch-action:none;
  cursor:pointer;-webkit-user-select:none;user-select:none}
.nsn-runner-cv:focus-visible{outline:3px solid #f4f1e8;outline-offset:2px}
.nsn-runner-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nsn-runner-keys{flex:1;min-width:0;font:400 13px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#b3b0a6}
.nsn-runner-slow{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #6b6e75;border-radius:4px;background:transparent;color:#f4f1e8;cursor:pointer;
  font:400 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.nsn-runner-slow[aria-pressed="true"]{border-color:#ffd200;color:#ffd200}
.nsn-runner-slow:hover{background:#1c1d21}
.nsn-runner-slow:focus-visible{outline:3px solid #f4f1e8;outline-offset:2px}
.nsn-runner-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.nsn-runner-cv{-webkit-touch-callout:none}
/* a phone on its side (short and wide): the board, button and note on the left, the game on the right, so everything fits
   without scrolling (the board page can't scroll). Only when the game is on the board. */
@media (orientation:landscape) and (max-height:560px){
  .nsn-frame:has(.nsn-runner){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-rows:min-content;column-gap:24px;row-gap:10px;
    align-content:center;padding-top:calc(env(safe-area-inset-top) + 10px);padding-bottom:calc(env(safe-area-inset-bottom) + 10px)}
  .nsn-frame:has(.nsn-runner) > *{grid-column:1;max-width:26rem}
  .nsn-frame:has(.nsn-runner) > :has(> .nsn-runner){grid-column:2;grid-row:1 / span 3;align-self:center;width:100%}
  .nsn-frame:has(.nsn-runner) .nsn-flaps span{height:56px;width:46px;font-size:44px}
  .nsn-frame:has(.nsn-runner) .nsn-go{height:52px}
  .nsn-frame:has(.nsn-runner) .nsn-top{white-space:nowrap;letter-spacing:.08em}   /* (667px-wide phones wrapped "Next stop" onto two lines) */
}
.nsn-runner-st{min-width:2em;padding:2px 6px;border-radius:3px;background:#26282d;color:#f4f1e8;font-weight:600;text-align:center}
.nsn-runner-slow[aria-pressed="true"] .nsn-runner-st{background:#ffd200;color:#0b0c0e}
