/* Shared presentation only: existing gameplay scripts and scoped layout remain intact. */
.game-shell h1,.flash-game h1,.new-game h1{text-align:left}
.game-families{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:24px 5px 0 0}.game-family{padding:22px;border:3px solid var(--navy);background:var(--white);box-shadow:5px 5px 0 var(--navy)}.game-family h2{font-size:23px;margin:0 0 8px}.game-family p{font-size:15px;margin:0 0 12px}.game-family h3{font-size:15px;margin:14px 0 8px}.family-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.family-buttons .btn{min-height:48px;padding:8px 4px;font-size:14px;white-space:nowrap}.family-buttons.single{grid-template-columns:1fr}
.new-game{max-width:740px;margin:auto;background:var(--white);border:3px solid var(--navy);padding:24px;text-align:center;box-shadow:6px 6px 0 var(--red)}.new-game h1{font-size:clamp(1.35rem,4.6vw,2rem);line-height:1.4;margin:0 0 12px}.new-game .game-tagline{font-size:15px;font-weight:800;margin:0 0 12px}.new-game .new-info{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;font-weight:750;border-block:2px solid var(--navy);padding:8px 0;font-variant-numeric:tabular-nums}.new-game p{margin-bottom:12px}.new-game .btn{white-space:nowrap}.new-game .choices{margin:0 4px 8px 0}.new-game .choice{padding:6px 2px;min-height:100px;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.new-game .choice span{white-space:nowrap}.new-game .choice img{width:60px;height:60px}.new-status{min-height:28px;line-height:1.5;font-size:15px;font-weight:800;margin:4px 0!important}.new-game dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.new-game dt{font-size:13px}.new-game dd{margin:0;font-size:22px;font-weight:900}.new-game dl>div{background:var(--cream);padding:12px 4px}.new-game .result-score{font-size:clamp(24px,6vw,36px);font-weight:900;margin:18px 0}.five-stage{height:152px;display:flex;align-items:center;justify-content:center;gap:24px}.five-stage img{width:104px;height:104px;object-fit:contain}.five-stage strong{font-size:64px}.five-history{text-align:left;font-size:14px;list-style:none;padding:0}.five-history li{padding:8px 0;border-bottom:1px solid #c6bba7}.five-next-slot{min-height:64px;padding:4px 0}.nine-stage{position:relative;width:100%;max-width:360px;aspect-ratio:1;margin:10px auto}.nine-stage>#nine-hand,.nine-stage>#nine-count{position:absolute;inset:0;margin:auto;width:120px;height:120px;object-fit:contain}.nine-stage>#nine-count{font:bold 64px monospace;display:grid;place-items:center}.nine-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}.nine-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;padding:3px;border:3px solid var(--navy);box-shadow:3px 3px 0 var(--navy);background:var(--cream);font-weight:800;line-height:1.2;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.nine-cell img{width:clamp(38px,11vw,62px);height:clamp(38px,11vw,62px);object-fit:contain;pointer-events:none}.nine-cell span{font-size:12px;white-space:nowrap}.nine-cell:active:not(:disabled){background:var(--yellow)}.nine-cell.is-cleared{border-style:dashed;box-shadow:none;background:var(--white)}.nine-cell.is-wrong{border-color:#a72e28;background:#fce2d9}.nine-cell:disabled{cursor:default}.nine-clock-row{display:flex;justify-content:space-between;gap:10px;min-height:28px;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}.new-game[data-phase=answer] h1,.new-game[data-phase=show] h1,.new-game[data-phase=countdown] h1,.new-game[data-phase=between] h1,.new-game[data-phase=positioning] h1,.new-game[data-phase=feedback] h1{font-size:18px}
@supports not (aspect-ratio:1){.nine-stage{height:300px}}
@media(max-width:760px){.game-families{grid-template-columns:1fr}.game-family{padding:20px}.new-game{padding:14px 10px}.new-game .choices{gap:10px}.new-game .choice{min-height:clamp(88px,18svh,116px)}.nine-stage{max-width:300px}.new-game .new-info{font-size:12px;padding:5px 0}.five-stage{height:136px}.five-stage img{width:96px;height:96px}}
@media(max-width:360px){.new-game .choices{gap:8px}.game-family{padding:16px}.family-buttons .btn{font-size:13px}.nine-grid{gap:6px}.nine-cell{border-width:2px}}

.game-families>.game-family{margin:0}

.five-reveal{display:flex;align-items:center;justify-content:center;gap:24px}.five-reveal span{display:block;font-size:12px;font-weight:700}.five-reveal img{display:block}
