/* ゲームの共通の見た目。サイトの色（--ink --card --line --board --yellow など）を使う。スマホ（375px）が基準 */
.game-root { max-width: 720px; margin: 0 auto 30px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.g-screen { background: var(--card); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 16px; min-height: 420px; position: relative; overflow: hidden; }
.g-title { font-family: var(--head); font-weight: 900; font-size: clamp(22px, 6vw, 30px); margin: 4px 0 8px; line-height: 1.3; }
.g-hud { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.g-hud b { font-size: 20px; color: var(--ink); }
.g-bar { height: 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg2); overflow: hidden; }
.g-bar > i { display: block; height: 100%; background: var(--yellow); transition: width .2s linear; }
.g-btn { font: inherit; font-weight: 800; min-height: 48px; padding: 10px 16px; border: 3px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.g-btn small { font-weight: 400; font-size: 12px; color: var(--ink2); }
.g-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.g-btn.pop, .g-btn.on { background: var(--yellow); color: #1d211f; }
.g-btn.pop small, .g-btn.on small { color: #3a3a3a; }
.g-btn.ok { background: #d6f2df; border-color: var(--ok); color: #123; }
.g-btn.ng { background: #f8d7d4; border-color: var(--ng); color: #311; }
.g-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.g-choices { display: grid; gap: 10px; margin-top: 12px; }
.g-choices.two { grid-template-columns: 1fr 1fr; }
.g-choices .g-btn { width: 100%; text-align: left; align-items: flex-start; font-size: 16px; }
.g-q { font-size: clamp(20px, 5.6vw, 28px); font-weight: 900; text-align: center; margin: 14px 0 6px; overflow-wrap: anywhere; }
.g-sub { text-align: center; color: var(--ink2); font-size: 14px; margin: 0; }
.g-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; }
.g-sound { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.g-bgm.on { background: var(--yellow); color: #1d211f; }
.g-mute { font: inherit; font-size: 12.5px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); padding: 3px 10px; cursor: pointer; }
.g-result { text-align: center; }
.g-result .big { font-family: var(--head); font-size: 54px; font-weight: 900; line-height: 1.1; }
.g-review { text-align: left; margin-top: 16px; display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.g-review > div { border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--bg); font-size: 14.5px; line-height: 1.7; }
.g-review .x { color: var(--ng); font-weight: 800; }
.g-review .o { color: var(--ok); font-weight: 800; }
.g-flash-ok { animation: gok .35s; }
.g-flash-ng { animation: gng .35s; }
@keyframes gok { 50% { background: #d6f2df; } }
@keyframes gng { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.g-combo { position: absolute; right: 14px; top: 58px; font-weight: 900; color: var(--r-col); font-size: 18px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .g-flash-ok, .g-flash-ng { animation: none; } }
