/* Andy Play's front door, laid out after the "Andy 5" sketch but calmer: Pet Smadder's sky, soft panels, few words.
   The same toy-block buttons and tokens as the game types (see verden/game.css). Nothing here moves by itself. */
:root{
  --sky:#8fd3ff; --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{min-height:100%;margin:0}
body{background:linear-gradient(#8fd3ff,#d8f1ff 70%);background-attachment:fixed;color:var(--ink);font-family:var(--body);font-weight:600;font-size:16px;
  -webkit-tap-highlight-color:transparent;display:flex;flex-direction:column;min-height:100vh}
.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;
  display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.btn:active,.card:active{transform:translateY(2px)}
.btn:focus-visible,.card:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.btn.plain{background:var(--panel);color:var(--ink);border-bottom-color:var(--line)}
.btn.calm{background:#5b7a99;border-bottom-color:#40586f}

#bar{display:flex;align-items:center;gap:12px;padding:12px 20px 4px}
#bar h1{font-family:var(--display);font-weight:900;font-size:30px;margin:0;color:#2b4c7e}
#bar h1 .nd{color:#fff;background:var(--blue);border-radius:10px;padding:0 4px;margin:0 1px}
#kid{font-family:var(--display);font-weight:800;font-size:16px;background:var(--panel);border-radius:999px;padding:8px 14px;border-bottom:3px solid var(--line)}

/* three columns: the games, aNDy, the child's own world */
main{flex:1;display:grid;grid-template-columns:minmax(250px,1fr) minmax(280px,1.15fr) minmax(220px,.85fr);gap:18px;
  width:100%;max-width:1240px;margin:0 auto;padding:10px 20px 18px;box-sizing:border-box;align-items:stretch}
.panel{background:rgba(255,250,240,.82);border-radius:24px;padding:14px 16px 16px;border-bottom:5px solid rgba(230,220,196,.9)}
.panel h2{font-family:var(--display);font-weight:800;font-size:22px;margin:2px 4px 12px}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);background:#fff;border-radius:18px;
  border-bottom:4px solid var(--line);padding:10px 10px 12px}
.card .pic{display:flex;align-items:center;justify-content:center;font-size:44px;height:92px;border-radius:12px;margin-bottom:4px}
.card b{font-family:var(--display);font-weight:800;font-size:17px}
.card .say{color:var(--muted);font-size:14px;line-height:1.3}
.card.big .pic{height:150px;font-size:64px}

#stage{position:relative;min-height:420px}
#c{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none;outline:none}
.bubble{position:absolute;z-index:1;right:6%;top:2%;margin:0;background:#fff;border-radius:18px;padding:12px 16px;
  font-family:var(--display);font-weight:800;font-size:19px;box-shadow:0 3px 0 var(--line)}
.bubble::after{content:"";position:absolute;left:22px;bottom:-10px;border:10px solid transparent;border-top-color:#fff;border-bottom:0}
#stage .under{position:absolute;left:0;right:0;bottom:6px;display:flex;justify-content:center}

/* the bar at the bottom: what the child can always reach, and the grown-up's lock at the far end */
#foot{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 20px calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,250,240,.9);border-top:1px solid var(--line)}
#foot #body{display:contents}
#foot .local{margin-left:auto;color:var(--muted);font-size:14px}

@media (max-width:860px){
  main{grid-template-columns:1fr;gap:14px;padding:6px 14px 14px}
  #stage{order:-1;min-height:300px;height:42vh}
  .card.big .pic{height:92px;font-size:44px}
  #bar h1{font-size:24px}
  #foot{padding:8px 14px calc(10px + env(safe-area-inset-bottom))}
  #foot .local{display:none}
  #foot{flex-wrap:nowrap;overflow-x:auto;gap:8px}
  #foot .btn{flex:none;font-size:16px;padding:10px 12px 8px}
  #bAdult{margin-left:auto}
}

/* the front door's own window ("Din figur", "Træk vejret"), the same as the game types' */
.shade{position:fixed;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 .row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.muted{color:var(--muted)}
body.damped #c{filter:brightness(.55) saturate(.6)}
