/* Game Patch — Universal Shell (Phase 2, 2026-12-03)
   One style layer for every Game Patch surface: the opening page, the
   Christmas Door, Paint Row, and every game page. Tokens come from the
   approved Christmas Door palette (Gemini Frontend Design, adopted
   2026-12-02 for the whole Game Patch). Kid rules outrank everything:
   controls >= 72px, text >= 15px, whole-panel taps, picture first. */
:root{
  --gp-night:#0C241A;
  --gp-panel:#14532D;
  --gp-panel-2:#173F2C;
  --gp-green:#1E7A46;
  --gp-gold:#FFC93C;
  --gp-cream:#FFFDF5;
  --gp-cream-2:#FFF6D9;
  --gp-red:#C0392B;
  --gp-font-display:"Fraunces",Georgia,serif;
  --gp-font-ui:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --gp-tile-radius:20px;
  --gp-gap:18px;
}
.gp-shell-font{font-family:var(--gp-font-ui);}
.gp-shell-display{font-family:var(--gp-font-display);}

/* Persistent Home pill — same place on EVERY screen (owner rule 5):
   fixed top-left, at least 72x72, one tap back to the opening page. */
.gp-home-pill{
  position:fixed;
  top:calc(10px + env(safe-area-inset-top,0px));
  left:calc(10px + env(safe-area-inset-left,0px));
  z-index:99990;
  display:inline-flex;align-items:center;gap:8px;
  min-width:72px;min-height:72px;
  padding:10px 20px 10px 16px;
  border-radius:999px;border:3px solid var(--gp-panel-2);
  background:var(--gp-gold);color:var(--gp-panel-2);
  font-family:var(--gp-font-ui);font-weight:800;font-size:18px;line-height:1;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  -webkit-tap-highlight-color:transparent;
}
.gp-home-pill:active{transform:scale(.96);}
.gp-home-pill .gp-home-ico{font-size:24px;line-height:1;}

/* Persistent Aria voice toggle — same place on every screen:
   fixed bottom-right, 72x72. On/off lives in localStorage 'gp_snd'
   ('0' = off), the same flag the hub's sound button has always used,
   so the choice follows the child across every page. */
.gp-voice-pill{
  position:fixed;
  right:calc(10px + env(safe-area-inset-right,0px));
  bottom:calc(10px + env(safe-area-inset-bottom,0px));
  z-index:99990;
  width:72px;height:72px;border-radius:999px;
  border:3px solid var(--gp-gold);
  background:var(--gp-panel-2);color:var(--gp-cream);
  font-size:30px;line-height:1;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  -webkit-tap-highlight-color:transparent;
}
.gp-voice-pill:active{transform:scale(.94);}
.gp-voice-pill[aria-pressed="true"]{opacity:.55;border-color:var(--gp-cream);}

/* Opening-page tiles (Roblox-style rows): 4:3 picture, whole-panel tap,
   the game's name UNDER the tile (never baked into the art). */
.gp-tile{
  display:block;text-decoration:none;color:var(--gp-cream);
  -webkit-tap-highlight-color:transparent;
}
.gp-tile-art{
  aspect-ratio:4/3;border-radius:var(--gp-tile-radius);overflow:hidden;
  background:var(--gp-panel-2);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.gp-tile-art img{width:100%;height:100%;object-fit:cover;display:block;}
.gp-tile:active .gp-tile-art{transform:scale(.98);}
.gp-tile-name{
  margin-top:8px;text-align:center;
  font-family:var(--gp-font-ui);font-weight:700;font-size:17px;line-height:1.25;
}
.gp-shelf-row{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,210px);
  gap:var(--gp-gap);overflow-x:auto;padding:6px 4px 14px;
  scroll-snap-type:x proximity;
}
.gp-shelf-row>.gp-tile{scroll-snap-align:start;}
.gp-shelf-title{
  font-family:var(--gp-font-display);font-weight:700;
  font-size:clamp(26px,4.5vw,38px);color:var(--gp-cream);
  margin:26px 0 10px;
}
.gp-home-pill:focus-visible,.gp-voice-pill:focus-visible,.gp-tile:focus-visible{
  outline:4px solid var(--gp-gold);outline-offset:3px;
}
