/* Splat Battle — canvas turn-based water-balloon game, KidSafe Play pastel theme.
   Scoped under .gw so the generic class names (.pill, .btn, .app, .hint) don't
   clobber the site nav/buttons from head.php. The full-page html,body rules from
   the standalone version are dropped — the site owns <body>. .game-* chrome matches
   the other game pages. */

.game-page{width:min(96vw,920px);margin:0 auto}
.game-head{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.game-thumb{border-radius:16px;flex:none;box-shadow:0 6px 14px rgba(255,150,180,.25)}
.game-head h1{margin:0;font-size:26px;color:#5a4a6a;text-shadow:0 2px 0 #fff}
.game-head .sub{margin:2px 0 0;color:#9a86ad;font-size:14px}

.gw{user-select:none}
.gw *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.gw .app{display:flex;flex-direction:column;align-items:center;gap:9px;padding:6px 0}
.gw .bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center}
.gw .pill{background:#fff;border:2px solid #ffe1ee;border-radius:999px;padding:6px 14px;font-size:14px;font-weight:800;color:#9a86ad;box-shadow:0 4px 12px rgba(255,150,180,.18)}
.gw .iconbtn{cursor:pointer;border:none;border-radius:999px;padding:7px 14px;font-size:14px;font-weight:800;color:#fff;background:linear-gradient(180deg,#ffa9cf,#ff7eb3);box-shadow:0 4px 0 #ef5e98}
.gw .iconbtn:active{transform:translateY(2px);box-shadow:0 2px 0 #ef5e98}
.gw .board-wrap{position:relative}
.gw canvas{display:block;border-radius:18px;box-shadow:0 12px 30px rgba(150,180,255,.25),inset 0 0 0 4px #fff;touch-action:none;cursor:pointer}
.gw .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.86);backdrop-filter:blur(4px);border-radius:18px;text-align:center;padding:18px}
.gw .overlay.hidden{display:none}
.gw .ovcard{display:flex;flex-direction:column;align-items:center;gap:12px}
.gw .ovcard h2{margin:0;font-size:24px;color:#ff8fb1}
.gw .ovcard p{margin:0;font-size:14px}
.gw .btn{cursor:pointer;border:none;display:inline-block;width:auto;padding:12px 26px;border-radius:999px;font-size:16px;font-weight:800;color:#fff;background:linear-gradient(180deg,#9bd0ff,#5fb8ff);box-shadow:0 5px 0 #3a93dd}
.gw .btn:active{transform:translateY(3px);box-shadow:0 2px 0 #3a93dd}
.gw .hint{margin:0;font-size:12px;color:#9a86ad;text-align:center;max-width:420px;line-height:1.5}
