@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&display=swap'); /* ゲームの画面（キャンバス）の文字だけは Dela Gothic One のまま */
/* ゲームの画面 */
body.is-game { background: #0f1430; }
body.is-game .crumbs, body.is-game .crumbs a { color: #aab3d8; }
body.is-game main > .wrap { background: var(--bg); border-radius: 22px; margin-top: 16px; }
.game-wrap { max-width: 760px; margin: 0 auto; padding: 10px 10px 0; color: #fff; }
.g-head { text-align: center; }
.g-title { margin: 4px 0 0; font-size: 26px; font-weight: 900; display: flex; align-items: center; justify-content: center; gap: 8px; }
.g-title span { font-size: 32px; }
.g-head p { margin: 2px 0 10px; color: #c9d0f0; font-size: 14px; }
.g-stage { scroll-margin-top: 64px; position: relative; background: #151c44; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 4px var(--c), 0 10px 40px rgba(0, 0, 0, .5); min-height: 420px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.g-canvas { display: block; width: 100%; height: auto; max-height: calc(100vh - 130px); object-fit: contain; margin: 0 auto; background: #0b1030; touch-action: none; }
.g-loading { text-align: center; padding: 120px 0; color: #c9d0f0; }
.g-menu { padding: 22px 16px 26px; text-align: center; background: radial-gradient(circle at 50% 0, color-mix(in srgb, var(--c) 55%, #151c44), #151c44 70%); min-height: 420px; }
.g-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.g-logo span { font-size: 64px; line-height: 1; animation: gbob 1.6s ease-in-out infinite; }
@keyframes gbob { 50% { transform: translateY(-6px) rotate(6deg); } }
.g-logo b { font-size: 30px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.g-best { color: #ffd23f; margin: 4px 0; font-weight: 900; }
.g-lab { font-weight: 900; margin: 16px 0 6px; color: #fff; }
.g-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.g-opt { border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; }
.g-opt[aria-pressed="true"] { background: #ffd23f; border-color: #ffd23f; color: #1d2b64; }
.g-pool { color: #c9d0f0; font-size: 13px; margin: 12px 0; }
.g-start { display: block; margin: 8px auto; border: 0; background: #ffd23f; color: #1d2b64; font-size: 22px; font-weight: 900; padding: 14px 48px; border-radius: 999px; box-shadow: 0 6px 0 #c99a00; animation: pulse 1.4s ease-in-out infinite; }
.g-start:disabled { opacity: .4; animation: none; }
.g-start:active { transform: translateY(4px); box-shadow: 0 2px 0 #c99a00; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.g-mute { border: 0; background: none; color: #c9d0f0; font-weight: 800; margin-top: 8px; text-decoration: underline; }
.g-res-h { font-size: 26px; font-weight: 900; margin: 4px 0; }
.g-score { font-family: var(--en); font-size: 64px; font-weight: 900; margin: 0; color: #ffd23f; line-height: 1.1; text-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.g-score small { font-size: 22px; margin-left: 4px; }
.g-new { color: #ffd23f; font-weight: 900; font-size: 18px; animation: pulse 1s infinite; }
.g-line { margin: 2px 0; color: #e6e9fb; }
.g-miss { list-style: none; padding: 0; margin: 0 auto 14px; max-width: 520px; text-align: left; background: rgba(255, 255, 255, .06); border-radius: 14px; }
.g-miss a { display: block; padding: 8px 14px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.g-miss b { color: #ffd23f; display: block; } .g-miss span { font-size: 13px; color: #c9d0f0; }
/* DOM で作るゲームの部品 */
.g-hud { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--en); font-weight: 900; font-size: 18px; background: rgba(0, 0, 0, .25); }
.g-hud .lv { color: #ffd23f; }
.g-panel { padding: 16px; }
.g-q { background: #fff; color: #1d2b64; border-radius: 18px; padding: 16px; text-align: center; font-size: 22px; font-weight: 900; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.g-q small { display: block; font-size: 13px; color: #5b6382; font-weight: 700; }
.g-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.g-c { border: 0; background: #fff; color: #1d2b64; border-radius: 16px; padding: 14px 10px; font-weight: 900; font-size: 16px; box-shadow: 0 5px 0 rgba(0, 0, 0, .3); min-height: 64px; line-height: 1.35; }
.g-c:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.g-c.ok { background: #2ee6a6; } .g-c.ng { background: #ff5a7a; color: #fff; }
.g-bar { height: 14px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; }
.g-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2ee6a6, #ffd23f); transition: width .25s; }
.g-bar.hp i { background: linear-gradient(90deg, #ff3d57, #ff9f1c); }
.shake { animation: shake .35s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.pop { animation: popin .3s ease-out; }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
.float { position: absolute; font-weight: 900; font-family: var(--en); pointer-events: none; animation: floatup .9s ease-out forwards; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
@keyframes floatup { to { transform: translateY(-50px); opacity: 0; } }
@media (max-width: 480px) { .g-ch { grid-template-columns: 1fr; } .g-c { min-height: 52px; } }

/* タイトル絵 */
.g-menu { padding-top: 0; }
.g-hero { position: relative; margin: 0 -16px 10px; height: clamp(210px, 52vw, 400px); overflow: hidden; }
.g-hero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: heroin 1.2s ease-out; }
@keyframes heroin { from { transform: scale(1.12); filter: brightness(1.6); } }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(10, 14, 40, .92)); }
.g-hero-t { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 1; text-align: center; }
.g-hero-t b { display: block; font-size: clamp(30px, 8vw, 48px); font-weight: 900; letter-spacing: .04em; color: #fff; -webkit-text-stroke: 2px #1d2b64; paint-order: stroke fill; text-shadow: 0 4px 0 var(--c), 0 0 24px rgba(255, 210, 63, .7); animation: titlein .8s cubic-bezier(.2, 1.6, .4, 1) .2s both; }
.g-hero-t span { display: inline-block; margin-top: 4px; background: #ffd23f; color: #1d2b64; font-weight: 900; font-size: 13px; padding: 2px 12px; border-radius: 999px; }
@keyframes titlein { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } }
.games .game-img { width: calc(100% + 32px); margin: -16px -16px 8px; aspect-ratio: 3/2; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }
