* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif; background: #eaf6fb; color: #223; }
.site-header { text-align: center; padding: 18px 10px 6px; }
.site-header h1 { font-size: 1.7rem; color: #1a56c4; }
.tagline { color: #557; font-size: 0.95rem; margin-top: 2px; }
main { max-width: 760px; margin: 0 auto; padding: 0 10px 30px; }
#game-area { margin-top: 8px; }
#hud { display: flex; justify-content: space-between; align-items: center; background: #1a56c4; color: #fff; border-radius: 10px 10px 0 0; padding: 8px 14px; font-size: 0.95rem; }
#hud #count { font-size: 1.5rem; color: #ffe14d; }
#progress { height: 8px; background: #c9d8f2; }
#progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #2fbf71, #ffe14d, #e05252); transition: width 0.2s; }
#canvas-wrap { position: relative; width: 100%; height: 68vh; min-height: 380px; background: #9fd8ef; border-radius: 0 0 10px 10px; overflow: hidden; touch-action: none; }
#canvas-wrap canvas { display: block; }
#flash { position: absolute; top: 14%; left: 0; right: 0; text-align: center; font-size: 2rem; font-weight: 900; opacity: 0; pointer-events: none; text-shadow: 0 2px 0 #fff, 0 0 12px #fff; z-index: 5; }
#flash.show { animation: flashpop 0.9s ease-out; }
@keyframes flashpop { 0% { opacity: 0; transform: scale(0.7); } 20% { opacity: 1; transform: scale(1.15); } 45% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.overlay { position: absolute; inset: 0; background: rgba(10, 30, 60, 0.72); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; z-index: 10; }
.overlay.hidden { display: none; }
.overlay h2 { font-size: 1.6rem; }
.overlay p { line-height: 1.6; font-size: 0.98rem; }
.howto { font-size: 0.85rem !important; color: #bcd6ff; }
.big-btn { background: #ffb400; color: #402d00; border: none; font-size: 1.2rem; font-weight: 900; padding: 13px 42px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 0 #c78d00; }
.big-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c78d00; }
#best { font-size: 0.85rem; color: #ffe14d; min-height: 1em; }
.controls-note { text-align: center; color: #557; font-size: 0.85rem; margin-top: 6px; }
#ad-top, #ad-bottom { text-align: center; margin: 10px auto; min-height: 0; }
.text-section { background: #fff; border-radius: 10px; padding: 20px; margin-top: 18px; line-height: 1.8; }
.text-section h2 { font-size: 1.2rem; color: #1a56c4; margin: 14px 0 8px; }
.text-section h2:first-child { margin-top: 0; }
.text-section h3 { font-size: 1rem; margin: 10px 0 4px; }
.text-section ul { padding-left: 1.3em; }
.other-games { background: #fff; border-radius: 10px; padding: 16px 20px; margin-top: 14px; }
.other-games h2 { font-size: 1.05rem; color: #1a56c4; margin-bottom: 8px; }
.other-games ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.other-games a { color: #1a56c4; }
footer { text-align: center; color: #889; font-size: 0.8rem; padding: 14px 0 20px; }
