/* Hexagon Fall — Matter.js physics puzzle, dark starry 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:8px 0}
.gw .hud{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.gw .pill{background:rgba(90,74,106,.14);border:2px solid rgba(90,74,106,.22);border-radius:999px;padding:6px 14px;font-size:14px;font-weight:800;color:#7a6a90}
.gw .pill b{color:#e8951f}
.gw .board-wrap{position:relative;max-width:100%}
.gw canvas{display:block;border-radius:20px;background:radial-gradient(circle at 50% 0%,#3a2d6b,#241a4a 70%,#180f38);box-shadow:0 12px 30px rgba(40,25,80,.4);touch-action:none}
.gw .overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(24,15,56,.82);backdrop-filter:blur(4px);border-radius:20px;text-align:center;padding:18px}
.gw .overlay.hidden{display:none}
.gw .card{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:300px}
.gw .card h2{margin:0;font-size:26px;color:#ffb454}
.gw .card p{margin:0;font-size:14.5px;line-height:1.5;color:#e9e3ff}
.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:#241a4a;background:linear-gradient(180deg,#ffce7a,#ffb454);box-shadow:0 5px 0 #d98a1f;transition:transform .08s ease,box-shadow .08s ease}
.gw .btn:active{transform:translateY(3px);box-shadow:0 2px 0 #d98a1f}
.gw .btn.ghost{background:rgba(90,74,106,.16);color:#c98a2f;border:2px solid rgba(90,74,106,.28);box-shadow:0 4px 0 rgba(90,74,106,.28)}
.gw .btn.ghost:active{box-shadow:0 1px 0 rgba(90,74,106,.28)}
.gw .hint{margin:0;font-size:13px;color:#9a86ad;max-width:340px;text-align:center;line-height:1.5}
.gw .hint b{color:#e8951f}
