/* Andy Play Verden: the same daylight, toy-block look as Pet and Bold Smadder (their tokens and buttons), so the
   three feel like one family. Fonts come from /colors_and_type.css. One look on purpose: calm and bright. */
:root{
  --sky:#bfe3ff; --ink:#1d2340; --panel:#fffaf0; --line:#e6dcc4; --muted:#666d8c;
  --go:#34c759; --go-dark:#1f9a3f; --blue:#3d7bff; --blue-dark:#2452c9; --sun:#ffd447;
  --display:"Montserrat","Trebuchet MS",system-ui,sans-serif; --body:"Manrope","Trebuchet MS",system-ui,sans-serif;
  color-scheme:light;
}
[hidden]{display:none!important}
html,body{height:100%;margin:0}
body{background:var(--sky);color:var(--ink);font-family:var(--body);font-weight:600;font-size:16px;overflow:hidden;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
#game{position:fixed;inset:0;overflow:hidden}
#c{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
#hud{position:absolute;inset:0;pointer-events:none}
#hud > *{pointer-events:auto}
.btn{font-family:var(--display);font-weight:800;font-size:17px;line-height:1;color:#fff;background:var(--blue);
  border:0;border-bottom:4px solid var(--blue-dark);border-radius:14px;padding:11px 16px 9px;cursor:pointer;min-height:44px}
.btn:active{transform:translateY(2px);border-bottom-width:2px}
.btn:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.btn.go{background:var(--go);border-bottom-color:var(--go-dark)}
.btn.plain{background:var(--panel);color:var(--ink);border-bottom-color:var(--line)}
.btn.calm{background:#5b7a99;border-bottom-color:#40586f}
.btn[disabled]{background:#b9bfd0;border-bottom-color:#959cb1;cursor:default}

#load{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:var(--sky);
  font-family:var(--display);font-weight:800;font-size:22px}

/* the whole route, always in sight: what comes next is never a surprise */
#route{position:absolute;left:12px;right:200px;top:10px;display:flex;gap:6px;flex-wrap:wrap}
#route button{font-family:var(--display);font-weight:800;font-size:14px;color:var(--ink);background:var(--panel);
  border:0;border-bottom:3px solid var(--line);border-radius:12px;padding:8px 10px 6px;min-height:40px;cursor:pointer}
#route button.here{background:var(--sun);border-bottom-color:#d9a400}
#route button.seen::after{content:" ✓";color:var(--go-dark)}
#route .n{display:inline-block;min-width:1.2em;opacity:.7}
#topRight{position:absolute;right:12px;top:10px;display:flex;gap:8px}

#joy{position:absolute;left:24px;bottom:28px;width:132px;height:132px;border-radius:50%;background:rgba(255,250,240,.55);
  border:3px solid rgba(29,35,64,.15);touch-action:none}
#knob{position:absolute;left:50%;top:50%;width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:var(--panel);
  box-shadow:0 3px 0 var(--line)}
@media (pointer:fine){ #joy{display:none} }
#bRun{position:absolute;right:16px;bottom:28px}

/* what happens here: a calm panel, never in the way of walking */
#station{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);width:min(520px,calc(100% - 200px));
  background:var(--panel);border-radius:18px;box-shadow:0 6px 0 var(--line);padding:12px 16px}
#station h2{font-family:var(--display);font-weight:800;font-size:20px;margin:0 0 4px}
#station p{margin:4px 0;font-weight:600}
#station .next{color:var(--muted);font-size:14px}
@media (max-width:640px){ #route{right:12px;top:62px} #station{width:calc(100% - 32px);bottom:180px} }

.shade{position:absolute;inset:0;background:rgba(29,35,64,.4);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
.sheet{background:var(--panel);border-radius:22px;width:min(520px,100%);max-height:86vh;display:flex;flex-direction:column;overflow:hidden}
.sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 8px}
.sheet h2{font-family:var(--display);font-weight:800;font-size:24px;margin:0}
.sheet .body{overflow:auto;padding:4px 16px 12px}
.sheet .foot{border-top:1px solid var(--line);padding:8px 16px 12px}
.sheet .row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.opt{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}
.muted{color:var(--muted);font-weight:500}
a.btn{text-decoration:none;display:inline-flex;align-items:center}
