/* The arcade page around a published kid's game (worker/kidgames.js, kidgame.js): the game full screen, a way back,
   and the scoreboard card. */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
html, body { margin: 0; height: 100%; background: #1b1b2f; overflow: hidden; font-family: "Fredoka", system-ui, sans-serif; color: #2b1b0e; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.kgback { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 10px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 248, 225, .92); color: #2b1b0e; font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid #2b1b0e; }
.kgboard { position: fixed; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(27, 27, 47, .55); }
.kgboard[hidden] { display: none; }
.kgcard { width: min(360px, 100%); box-sizing: border-box; background: #fff8e1; border: 3px solid #2b1b0e; border-radius: 22px; box-shadow: 0 6px 0 #2b1b0e; padding: 20px; text-align: center; }
.kgcard h2 { margin: 0 0 6px; font-size: 26px; }
.kgcard p { margin: 6px 0; font-size: 17px; }
.kgcard label { display: block; margin: 10px 0 6px; font-size: 14px; color: #6b5640; font-weight: 600; }
#kginit { width: 130px; font: 700 34px/1 "Fredoka", system-ui, sans-serif; letter-spacing: 10px; text-align: center; padding: 8px 0 8px 10px;
  border: 3px solid #2b1b0e; border-radius: 14px; background: #fff; text-transform: uppercase; }
.kgrow { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.kgbtn { font: 700 17px "Fredoka", system-ui, sans-serif; padding: 10px 18px; border-radius: 14px; border: 3px solid #2b1b0e; background: #fff; color: #2b1b0e; cursor: pointer; box-shadow: 0 4px 0 #2b1b0e; }
.kgbtn.kgmain { background: #2fbf71; color: #fff; }
.kgerr { color: #c0392b; font-weight: 600; }
#kglist { list-style: none; margin: 10px 0 14px; padding: 0; text-align: left; }
#kglist li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 10px; font-size: 17px; }
#kglist li:nth-child(odd) { background: #ffe9b0; }
#kglist li.me { background: #2fbf71; color: #fff; }
/* "Made by <nickname> with Kids Game Builder": for grown-ups on the website, never inside the installed app */
.kgmade { position: fixed; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; z-index: 2; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 248, 225, .92); color: #2b1b0e; font: 600 13px "Fredoka", system-ui, sans-serif; text-decoration: none; border: 2px solid #2b1b0e; }
.kgmade b { font-weight: 700; }
@media (display-mode: standalone) { .web-only { display: none !important; } }
html.in-app .web-only { display: none !important; }
