/* Rotate the Rings — canvas logic puzzle, KidSafe Play pastel/wood theme.
   Everything is scoped under .gw so the game's generic class names (.app, .pill,
   .btn, .hint) don't clobber the site nav/buttons from head.php. The standalone
   html,body full-page rules are dropped — the site owns <body>. The .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:12px;padding:10px 0}
.gw .hud{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.gw .pill{background:#fffaf2;border:2px solid #f4d9b6;border-radius:999px;padding:6px 14px;font-size:14px;font-weight:800;color:#a07b52;box-shadow:0 4px 12px rgba(200,140,70,.18)}
.gw .pill b{color:#e07b3c}
.gw .board-wrap{position:relative;max-width:100%}
.gw canvas{display:block;border-radius:22px;background:repeating-linear-gradient(115deg,rgba(255,255,255,.06) 0 8px,rgba(0,0,0,.03) 8px 16px),linear-gradient(160deg,#d8a86e,#c58e52);box-shadow:0 14px 34px rgba(150,95,45,.35),inset 0 0 0 5px #fff2;touch-action:none}
.gw .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,250,242,.86);backdrop-filter:blur(4px);border-radius:22px;text-align:center;padding:18px}
.gw .overlay.hidden{display:none}
.gw .card{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:290px}
.gw .card h2{margin:0;font-size:26px;color:#e07b3c}
.gw .card p{margin:0;font-size:14.5px;line-height:1.5;color:#6d5237}
.gw .stars{font-size:30px;letter-spacing:4px}
.gw .controls{display:flex;gap:10px}
/* reset — head.php's global .btn is display:block;width:100%, so restate layout here */
.gw .btn{cursor:pointer;border:none;display:inline-block;width:auto;padding:11px 24px;border-radius:999px;font-size:16px;font-weight:800;color:#fff;background:linear-gradient(180deg,#ffb166,#f08a3a);box-shadow:0 5px 0 #cf6f24;transition:transform .08s ease,box-shadow .08s ease}
.gw .btn:active{transform:translateY(3px);box-shadow:0 2px 0 #cf6f24}
.gw .btn.ghost{background:#fffaf2;color:#e07b3c;border:2px solid #f4d0a6;box-shadow:0 4px 0 #f4d0a6}
.gw .btn.ghost:active{box-shadow:0 1px 0 #f4d0a6}
.gw .hint{margin:0;font-size:13px;color:#a07b52;max-width:340px;text-align:center;line-height:1.5}
.gw .hint b{color:#e07b3c}
