/* ============================================================
   game-top.css — ゲームページ共通レイアウト (2026-12-05)
   原則: 遊べるゲーム本体をページの一番上に大きく表示する。
   - 見出し (rw-hero) はコンパクトにし、帯画像は出さない
   - ゲーム本体 (#play / #draw) はヒーロー直下・幅いっぱい
   - 説明・配当表・履歴などの参考情報はゲーム本体の下に回す
   - バナーカルーセルはゲーム本体の下に配置する (HTML 側で移動済み)
   対象ページの <body class="game-top"> でのみ有効。
   ゲームの動作・数値には一切触れない、表示だけの上書き。
   ============================================================ */

/* --- compact hero --- */
body.game-top .rw-hero { padding: 16px 0 2px; }
body.game-top .rw-hero h1 { font-size: clamp(1.55rem, 4.2vw, 2.15rem); margin-bottom: 6px; }
body.game-top .rw-hero .lead { font-size: .97rem; margin-bottom: 12px; max-width: 780px; }
body.game-top .rw-hero .rw-band { display: none; }
body.game-top .rw-hero .btn-lg { padding: 10px 18px; font-size: .95rem; min-height: 46px; }

/* --- play section comes first, tight to the hero --- */
body.game-top #play,
body.game-top #draw { padding-top: 10px; }
body.game-top #play .section-title,
body.game-top #draw .section-title { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin-bottom: 4px; }
body.game-top #play .section-sub,
body.game-top #draw .section-sub { margin-bottom: 10px; font-size: .95rem; }

/* --- game card full width; info / paytable card goes below it --- */
body.game-top #play .rw-grid,
body.game-top #draw .rw-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* --- big, easy-to-tap controls --- */
body.game-top #play .btn-lg,
body.game-top #draw .btn-lg { min-height: 54px; }

/* --- Chicken: bigger stage, coins, chick and pot --- */
body.game-top .ck-stage { padding: 22px 16px 14px; }
body.game-top .ck-coins { height: 128px; }
body.game-top .ck-coin { width: clamp(84px, 20vw, 118px); height: clamp(84px, 20vw, 118px); }
body.game-top .ck-chick { width: clamp(78px, 18vw, 108px); height: clamp(78px, 18vw, 108px); }
body.game-top .ck-pot { font-size: clamp(3.4rem, 11vw, 5.2rem); }
body.game-top .ck-ava { width: 46px; height: 46px; }

/* --- Slot: wider machine, larger cells (slot.js reads --sl-cell) --- */
body.game-top .sl-machine { max-width: 800px; --sl-cell: 116px; }
@media (max-width: 860px) {
  body.game-top .sl-machine { --sl-cell: clamp(54px, 16.8vw, 84px); }
}

/* --- Dice: wider stage, larger dice --- */
body.game-top .dc-stage { max-width: 800px; padding: 20px 16px; }
@media (min-width: 701px) {
  body.game-top .dc-die { width: 118px; height: 118px; }
  body.game-top .dc-die .pip { width: 21px; height: 21px; }
}

/* --- Baccarat: wider table, larger cards on desktop --- */
body.game-top .bc-table { max-width: 800px; padding: 22px 18px 18px; }
@media (min-width: 701px) {
  body.game-top .bc-card { width: 84px; height: 118px; }
}

/* --- Spin: larger wheel --- */
body.game-top .sw-stage { width: min(88vw, 470px); }

/* --- Gacha: larger machine --- */
body.game-top .gx-machine { width: min(336px, 80vw); }
body.game-top .gx-dome { height: 216px; }
@media (max-width: 700px) {
  body.game-top .gx-dome { height: 190px; }
}

/* --- Card Duel: wider stage and cards --- */
body.game-top .cd-stage-card { max-width: 1040px; }
body.game-top .cd-cards { max-width: 700px; }
body.game-top .cd-cardbtn { max-width: 300px; }

/* --- Bingo: larger board --- */
body.game-top .bingo-board-wrap { max-width: 620px; }

@media (prefers-reduced-motion: reduce) {
  body.game-top .ck-coin,
  body.game-top .ck-chick { transition: none; }
}
