/* 行事の英語ゲームセンター（/games/ だけで読む） */
.page-games { --ga-night: #14123a; --ga-night2: #241a5c; }

/* ---------- 看板 ---------- */
.ga-hero { position: relative; overflow: hidden; background: var(--ga-night); color: #fff; border-bottom: var(--bw) solid var(--ink); isolation: isolate; }
.ga-hero::before { content: ''; position: absolute; inset: 0 0 0 30%; background: var(--hero) center 35% / cover no-repeat; z-index: -2; }
.ga-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ga-night) 28%, rgba(20, 18, 58, 0.82) 46%, rgba(20, 18, 58, 0.1) 75%, rgba(20, 18, 58, 0) 100%), linear-gradient(0deg, rgba(20, 18, 58, 0.6), transparent 30%); }
.ga-hero-in { padding: 6px 16px 56px; min-height: 520px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ga-bc { color: rgba(255, 255, 255, 0.75); align-self: stretch; }
.ga-bc a { color: #fff; }
.ga-kicker { display: inline-block; margin-top: 28px; font-family: var(--f-en); font-weight: 900; letter-spacing: 0.18em; font-size: 13px; color: #14123a; background: var(--yellow); border: 2px solid #000; border-radius: 999px; padding: 3px 14px; box-shadow: 3px 3px 0 #000; transform: rotate(-2deg); }
.ga-h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.08; margin: 18px 0 14px; letter-spacing: 0.01em; text-shadow: 4px 4px 0 #000; }
.ga-h1 span { display: block; }
.ga-h1 em { white-space: nowrap; font-style: normal; color: var(--yellow); margin-left: 0.08em; }
.ga-hero-lead { max-width: 540px; font-size: 16.5px; line-height: 1.8; font-weight: 700; margin: 0 0 18px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.ga-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.ga-stats span { background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 14px; padding: 6px 14px; font-weight: 800; font-size: 13px; }
.ga-stats b { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--yellow); margin-right: 4px; }
.ga-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ga-big { font-size: 17px; padding: 12px 22px; }
.ga-ghost { background: rgba(255, 255, 255, 0.95); color: #1b1511; }
.btn.ga-big.btn-y { animation: ga-pulse 2.2s ease-in-out infinite; }
@keyframes ga-pulse { 0%, 100% { box-shadow: 4px 4px 0 #000, 0 0 0 0 rgba(255, 216, 77, 0.7); } 50% { box-shadow: 4px 4px 0 #000, 0 0 0 12px rgba(255, 216, 77, 0); } }

/* ---------- 今日のチャレンジ ---------- */
.ga-daily { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center; margin: -36px 0 28px; padding: 20px 26px 20px 20px; border: var(--bw) solid var(--ink); border-radius: 26px; background: linear-gradient(120deg, #fff3c4, #ffe1ec 60%, #e3e6ff); color: #1b1511; box-shadow: 6px 6px 0 var(--sh); z-index: 2; }
.ga-daily-img { width: 210px; height: 210px; border-radius: 20px; border: var(--bw) solid var(--ink); object-fit: cover; transform: rotate(-3deg); box-shadow: 4px 4px 0 #1b1511; background: #fff; }
.ga-daily h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 34px); margin: 2px 0 6px; }
.ga-daily p { margin: 0 0 14px; font-size: 14.5px; color: #4a3f36; font-weight: 600; }
.ga-daily-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ga-en { font-family: var(--f-en); font-weight: 900; letter-spacing: 0.12em; font-size: 12px; text-transform: uppercase; color: var(--c, var(--accent)); margin: 0; }
.ga-daily .ga-en { color: #c2410c; }
.ga-streak { font-weight: 900; color: #c2410c; }
.ga-best-l { font-family: var(--f-en); font-weight: 900; border: 2px solid #1b1511; border-radius: 999px; padding: 3px 12px; background: #fff; }

/* ---------- 設定 ---------- */
.ga-set { padding: 12px 20px; border: var(--bw) dashed var(--line2); border-radius: 20px; background: var(--paper2); margin: 0 0 8px; }
.ga-set-s { cursor: pointer; font-weight: 900; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ga-set-s::-webkit-details-marker, .ga-fold > summary::-webkit-details-marker { display: none; }
.ga-set-s span { font-weight: 700; font-size: 12.5px; color: var(--ink2); background: var(--card); border: 1.5px solid var(--line2); border-radius: 999px; padding: 1px 10px; }
.ga-set-s::after { content: '▾'; margin-left: auto; transition: transform 0.2s; }
.ga-set[open] .ga-set-s::after { transform: rotate(180deg); }
.ga-set-b { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 12px; }
.ga-fold > summary { cursor: pointer; list-style: none; }
.ga-fold-i::after { content: '▾'; font-size: 22px; display: inline-block; transition: transform 0.2s; }
.ga-fold[open] .ga-fold-i::after { transform: rotate(180deg); }
.gh-more-w { text-align: center; margin: 16px 0 0; }
.gh-more-w [hidden] { display: none; }
.ga-set-g { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ga-set-l { font-weight: 900; font-size: 13px; color: var(--ink2); }
.ga-set-n { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink3); }

/* ---------- ゲームを選ぶ ---------- */
.ga-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.ga-card { --c: var(--accent); }
.ga-card-in { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer; border: var(--bw) solid var(--ink); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 5px 5px 0 var(--sh); overflow: hidden; font: inherit; transition: transform 0.18s var(--ease), box-shadow 0.18s; }
.ga-card-in:hover, .ga-card-in:focus-visible { transform: translate(-3px, -5px) rotate(-0.6deg); box-shadow: 9px 11px 0 var(--sh); }
.ga-card-in:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sh); }
.ga-pic { position: relative; display: block; aspect-ratio: 1 / 0.82; overflow: hidden; background: var(--c); border-bottom: var(--bw) solid var(--ink); }
.ga-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.ga-card-in:hover .ga-img { transform: scale(1.07); }
.ga-emo { display: grid; place-items: center; font-size: 80px; }
.ga-no { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--f-display); font-size: 20px; color: #fff; background: var(--c); border: 2px solid #000; border-radius: 12px; padding: 0 10px; box-shadow: 2px 2px 0 #000; }
.ga-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 10px; flex: 1; }
.ga-name { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.25; }
.ga-lead { font-size: 13.5px; color: var(--ink2); font-weight: 600; line-height: 1.6; }
.ga-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.ga-how, .ga-best { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.ga-how { background: var(--soft); }
.ga-best { font-family: var(--f-en); background: var(--paper2); color: var(--ink3); border: 1.5px solid var(--line2); }
.ga-best.has { color: #1b1511; background: var(--yellow); border-color: #1b1511; }
.ga-go { display: block; margin: 0 14px 14px; text-align: center; font-family: var(--f-en); font-weight: 900; letter-spacing: 0.1em; color: #fff; background: var(--c); border: 2px solid #000; border-radius: 12px; padding: 8px; box-shadow: 0 4px 0 #000; transition: transform 0.12s; }
.ga-card-in:hover .ga-go { transform: translateY(-2px); }
.ga-keys { margin: 18px 0 0; font-size: 13px; color: var(--ink3); }
kbd { display: inline-block; font-family: var(--f-en); font-weight: 800; font-size: 12px; border: 1.5px solid var(--line2); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; background: var(--card); color: var(--ink); }

/* ---------- ルール ---------- */
.ga-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ga-rule { border: var(--bw) solid var(--ink); border-radius: 18px; padding: 16px 18px; background: var(--card); box-shadow: 4px 4px 0 var(--sh); }
.ga-rule-e { font-size: 34px; display: block; }
.ga-rule b { font-size: 17px; }
.ga-rule p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink2); }

/* ---------- 行事ごとのゲーム ---------- */
.gh-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.gh-q { flex: 1 1 260px; min-width: 0; font: inherit; font-weight: 700; padding: 10px 16px; border: var(--bw) solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); }
.gh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gh { display: flex; gap: 10px; align-items: center; padding: 8px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--ink); box-shadow: 3px 3px 0 var(--sh); transition: transform 0.15s; }
.gh:hover { transform: translateY(-3px); }
.gh[hidden] { display: none; }
.gh-th { flex: none; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--ink); background: var(--soft); }
.gh-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-emo { display: grid; place-items: center; font-size: 28px; }
.gh-t { display: flex; flex-direction: column; min-width: 0; }
.gh-t b { font-size: 14px; line-height: 1.35; }
.gh-t small { font-family: var(--f-en); font-size: 12px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-g { font-size: 13px; letter-spacing: 1px; margin-top: 2px; }
.gh-empty { text-align: center; color: var(--ink3); padding: 20px; }

/* ---------- ステージ（遊ぶ画面） ---------- */
html.ga-lock, html.ga-lock body { overflow: hidden; }
html.ga-lock .totop, html.ga-lock .tabbar, html.ga-lock .hd { visibility: hidden; }
.ga-stage { position: fixed; inset: 0; z-index: 5000; display: flex; justify-content: center; color: #fff; }
.ga-stage[hidden] { display: none; }
.ga-stage-bg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 50% -10%, #4b2fa0 0%, transparent 60%), radial-gradient(800px 500px at 100% 100%, #1d4f9a 0%, transparent 60%), linear-gradient(180deg, #1a1442, #0d0b26); }
.ga-stage-bg::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.5px), radial-gradient(rgba(255, 216, 77, 0.45) 1px, transparent 1.5px); background-size: 46px 46px, 73px 73px; background-position: 0 0, 20px 30px; opacity: 0.5; animation: ga-stars 40s linear infinite; }
@keyframes ga-stars { to { background-position: 0 460px, 20px 760px; } }
.ga-stage-in { position: relative; width: 100%; max-width: 880px; overflow-y: auto; padding: 14px 16px 40px; -webkit-overflow-scrolling: touch; }
.ga-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; }
.ga-x:hover { background: #e5352b; }
.ga-x-abs { position: absolute; top: 14px; right: 16px; }
.ga-load { min-height: 70vh; display: grid; place-content: center; text-align: center; font-size: 64px; }
.ga-load p { font-size: 16px; }

/* 開始の 3・2・1 */
.ga-intro { min-height: 86vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ga-intro img, .ga-intro-e { width: min(280px, 62vw); height: auto; aspect-ratio: 1; border-radius: 28px; border: 3px solid #fff; box-shadow: 0 0 0 6px var(--c), 0 20px 60px rgba(0, 0, 0, 0.5); object-fit: cover; }
.ga-intro-e { display: grid; place-items: center; font-size: 120px; background: var(--c); }
.ga-intro .ga-en { color: var(--yellow); margin-top: 22px; }
.ga-intro h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 6vw, 48px); margin: 4px 0; text-shadow: 3px 3px 0 #000; }
.ga-intro-l { margin: 0; font-weight: 700; opacity: 0.85; }
.ga-cnt { font-family: var(--f-display); font-size: 84px; line-height: 1.2; color: var(--yellow); text-shadow: 4px 4px 0 #000; margin-top: 10px; min-height: 1.2em; }

/* 上のバー */
.ga-hud { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.ga-hud-m { font-weight: 900; font-size: 14px; background: var(--c); border: 2px solid #000; border-radius: 999px; padding: 3px 12px; box-shadow: 2px 2px 0 #000; }
.ga-qn { font-family: var(--f-en); font-weight: 700; font-size: 15px; }
.ga-qn b { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--yellow); margin: 0 2px; }
.ga-sc, .ga-tm { margin-left: auto; font-family: var(--f-en); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.ga-sc b, .ga-tm b { font-family: var(--f-display); font-weight: 400; font-size: 24px; letter-spacing: 0; color: var(--yellow); margin-left: 4px; }
.ga-tm { margin-left: 0; padding: 2px 12px; border-radius: 999px; border: 2px solid transparent; opacity: 0.6; }
.ga-tm.r { margin-left: auto; }
.ga-tm.on { opacity: 1; border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.ga-combo { font-weight: 900; font-size: 13px; color: #1b1511; background: linear-gradient(90deg, #ffd84d, #ff8c3a); border-radius: 999px; padding: 2px 10px; display: none; }
.ga-combo.on { display: inline-block; animation: ga-fire 0.6s ease-in-out infinite alternate; }
@keyframes ga-fire { to { transform: scale(1.08) rotate(-2deg); } }
.ga-hud .sbtn { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
/* ことば：英語と日本語を両方書いておき、ステージの data-lang で出し分け（英語だけ／日本語訳つき） */
.le, .lj { display: contents; }
[data-lang="en"] .lj, [data-lang="ja"] .le { display: none !important; }
.ga-hud .ga-lang[aria-pressed="false"] { background: #ffd84d; color: #1b1511; border-color: #000; }
.qa-word-ja { font-family: inherit; font-weight: 900; }
.ga-dots { display: flex; gap: 6px; margin: 2px 0 10px; }
.ga-dots i { flex: 1; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); }
.ga-dots i.cur { background: #fff; }
.ga-dots i.ok { background: #12c29a; }
.ga-dots i.ng { background: #e5352b; }
.ga-turn { text-align: center; font-family: var(--f-display); font-size: 22px; margin: 0 0 8px; padding: 4px; border-radius: 12px; }
.ga-turn.r { background: rgba(229, 53, 43, 0.35); }
.ga-turn.b { background: rgba(47, 98, 181, 0.45); }
.ga-tbar { --p: 100%; position: relative; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.6); overflow: hidden; margin-bottom: 14px; }
.ga-tbar i { position: absolute; inset: 0; width: var(--p); background: linear-gradient(90deg, #12c29a, #ffd84d); }
.ga-tbar.warn i { background: #e5352b; animation: ga-blink 0.4s steps(2) infinite; }
@keyframes ga-blink { 50% { opacity: 0.5; } }
.ga-tbar span { position: absolute; right: 8px; top: -3px; font-size: 11px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }

/* 問題 */
.ga-q { position: relative; background: #fffdf6; color: #1b1511; border: 3px solid #000; border-radius: 24px; box-shadow: 0 6px 0 var(--c), 0 6px 0 3px #000; padding: 18px 20px 20px; text-align: center; margin-bottom: 22px; }
.ga-qmode { position: absolute; top: -14px; left: 16px; margin: 0; font-size: 12.5px; font-weight: 900; color: #fff; background: var(--c); border: 2px solid #000; border-radius: 999px; padding: 1px 10px; }
.ga-hint { margin: 0 0 10px; font-weight: 800; font-size: 14px; color: #5a4f46; }
.qa-photo img { width: 100%; max-width: 560px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; border: 2px solid #000; display: block; margin: 0 auto; }
.qa-food { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qa-food img { width: min(260px, 60vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #000; box-shadow: 0 0 0 8px #ffe9a3; }
.qa-food-n { margin: 6px 0 0; }
.qa-food-n b { display: block; font-family: var(--f-en); font-size: 26px; }
.qa-food-n small { font-weight: 700; color: #5a4f46; }
.qa-bigemo { font-size: 110px; line-height: 1.1; }
.qa-emo { display: flex; justify-content: center; gap: 18px; font-size: clamp(64px, 14vw, 104px); line-height: 1.15; }
.qa-emo span { display: inline-block; animation: ga-bob 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.2s); }
@keyframes ga-bob { 50% { transform: translateY(-10px) rotate(4deg); } }
.qa-emo .flag-i { width: 1em; height: auto; }
.qa-word { font-family: var(--f-en); font-weight: 800; font-size: clamp(30px, 6vw, 50px); line-height: 1.2; margin: 16px 0; }
.qa-cal { display: inline-flex; flex-direction: column; align-items: center; min-width: 210px; border: 3px solid #000; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 4px 4px 0 #000; }
.qa-cal .m { align-self: stretch; background: #e5352b; color: #fff; font-family: var(--f-en); font-weight: 800; font-size: 20px; padding: 6px 16px; letter-spacing: 0.06em; }
.qa-cal .d { font-family: var(--f-display); font-size: 84px; line-height: 1.1; }
.qa-cal .w { font-size: 13px; font-weight: 700; color: #5a4f46; padding-bottom: 8px; }
.qa-tag { display: inline-block; margin: 0 0 8px; font-weight: 900; font-size: 14px; background: #ffe9a3; border-radius: 999px; padding: 2px 12px; }
.qa-sent { font-family: var(--f-en); font-size: clamp(20px, 3.6vw, 27px); font-weight: 600; line-height: 1.45; margin: 4px 0; }
.qa-ja { margin: 10px 0 0; font-weight: 700; color: #2f62b5; }
.qa-sp { display: flex; justify-content: center; align-items: center; gap: 18px; text-align: left; }
.qa-sp-e { font-size: 84px; line-height: 1; }
.qa-sp p { margin: 0; }
.qa-sp b { display: block; font-size: 28px; }
.qa-sp small { font-weight: 700; color: #5a4f46; }

/* 選択肢 */
.ga-ch { display: grid; gap: 12px; }
.ga-ch.four { grid-template-columns: 1fr 1fr; }
.ga-ch button { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 72px; padding: 10px 14px; border: 3px solid #000; border-radius: 18px; background: #fff; color: #1b1511; font: inherit; cursor: pointer; box-shadow: 0 5px 0 #000; transition: transform 0.08s, box-shadow 0.08s, background 0.15s; }
.ga-ch button:nth-child(1) { --k: #e8577e; }
.ga-ch button:nth-child(2) { --k: #2f62b5; }
.ga-ch button:nth-child(3) { --k: #1fae8b; }
.ga-ch button:nth-child(4) { --k: #ff8c3a; }
.ga-ch button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 0 #000; background: #fffbe6; }
.ga-ch button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.ga-ch .k { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--k); color: #fff; font-family: var(--f-display); font-size: 18px; border: 2px solid #000; }
.ga-ch .v { display: flex; flex-direction: column; min-width: 0; }
.ga-ch .v b { font-size: 18px; line-height: 1.3; }
.ga-ch .v b.en { font-family: var(--f-en); font-size: 19px; }
.ga-ch .v small { font-size: 12.5px; color: #5a4f46; font-weight: 600; }
.ga-ch .v small.en { font-family: var(--f-en); color: #2f62b5; }
.ga-ch button.ok { background: #d5f7e7; border-color: #0a7a5c; box-shadow: 0 5px 0 #0a7a5c; animation: ga-ok 0.5s; }
.ga-ch button.ng { background: #ffdcdc; border-color: #b3261e; box-shadow: 0 5px 0 #b3261e; opacity: 0.9; }
.ga-ch button:disabled:not(.ok):not(.ng) { opacity: 0.45 !important; }
@keyframes ga-ok { 40% { transform: scale(1.05); } }
.ga-tf { grid-template-columns: 1fr 1fr; }
.ga-tf button { flex-direction: column; justify-content: center; gap: 0; min-height: 130px; text-align: center; }
.ga-tf button b { font-size: 64px; line-height: 1; }
.ga-tf button small { font-family: var(--f-en); font-weight: 800; font-size: 15px; }
.ga-tf button.o b { color: #e5352b; }
.ga-tf button.x b { color: #2f62b5; }

/* スペル */
.ga-slots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ga-slots span { width: 44px; height: 54px; display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; border-bottom: 4px solid rgba(255, 255, 255, 0.7); color: #fff; }
.ga-slots span.on { background: rgba(255, 255, 255, 0.14); border-radius: 10px 10px 0 0; }
.ga-slots span.ok { color: #12c29a; border-color: #12c29a; }
.ga-slots span.rv { color: var(--yellow); border-color: var(--yellow); }
.ga-slots.bad span { color: #ff6b6b; border-color: #ff6b6b; }
.ga-tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ga-tiles button { width: 58px; height: 62px; border: 3px solid #000; border-radius: 14px; background: linear-gradient(#fff6d6, #ffd84d); color: #1b1511; font-family: var(--f-display); font-size: 28px; cursor: pointer; box-shadow: 0 5px 0 #8a5a00, 0 5px 0 3px #000; transition: transform 0.08s; }
.ga-tiles button:hover:not(:disabled) { transform: translateY(-3px) rotate(-3deg); }
.ga-tiles button:disabled { opacity: 0.2 !important; transform: scale(0.9) !important; }
.ga-sp-tools { text-align: center; margin: 16px 0 0; }
.ga-sp-tools .btn { background: rgba(255, 255, 255, 0.9); }

/* カレンダー並べ */
.ga-q-order { padding: 10px 16px; }
.ga-ord { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ga-ord button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; border: 3px solid #000; border-radius: 18px; background: #fff; color: #1b1511; font: inherit; cursor: pointer; box-shadow: 0 5px 0 #000; }
.ga-ord button.on { background: #fff3c4; transform: translateY(3px); box-shadow: 0 2px 0 #000; }
.ga-ord .no { position: absolute; top: -12px; left: -10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2.5px solid #000; font-family: var(--f-display); font-size: 20px; }
.ga-ord .no:empty { display: none; }
.ga-ord .e { font-size: 42px; line-height: 1.15; }
.ga-ord b { font-size: 16px; }
.ga-ord small { font-family: var(--f-en); font-size: 12px; color: #2f62b5; }
.ga-ord .dt { font-weight: 900; color: #c2410c; }
.ga-ord button.ok { background: #d5f7e7; }
.ga-ord button.ng { background: #ffdcdc; }

/* 正解・不正解 */
.ga-fb { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px 0 0; padding: 12px 16px; border-radius: 18px; border: 3px solid #000; text-align: center; }
.ga-fb[hidden] { display: none; }
.ga-fb.ok { background: #12c29a; }
.ga-fb.ng { background: #e5352b; }
.ga-fb-big { font-family: var(--f-display); font-size: 24px; text-shadow: 2px 2px 0 #000; }
.ga-fb-big b { color: var(--yellow); }
.ga-fb-a { flex-basis: 100%; background: rgba(255, 255, 255, 0.95); color: #1b1511; border-radius: 12px; padding: 6px 12px; font-weight: 800; }
.ga-fb-a .en, .ga-res .en { font-family: var(--f-en); margin-left: 6px; color: #2f62b5; font-weight: 700; }
.ga-fb-a .ja-s { display: block; font-size: 13px; font-weight: 600; color: #5a4f46; }
.ga-fb .btn { margin-left: auto; }
.ga-pop { position: fixed; left: 50%; top: 40%; translate: -50% 0; font-family: var(--f-display); font-size: 54px; color: var(--yellow); text-shadow: 3px 3px 0 #000; pointer-events: none; z-index: 5; }

/* 結果 */
.ga-res { position: relative; padding-top: 30px; }
.ga-res-top { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.ga-res-img { width: 220px; height: 220px; border-radius: 30px; border: 3px solid #fff; object-fit: cover; box-shadow: 0 0 0 6px var(--yellow), 0 18px 50px rgba(0, 0, 0, 0.5); }
.ga-res .ga-en { color: var(--yellow); }
.ga-rank { font-family: var(--f-display); font-size: clamp(28px, 5vw, 42px); line-height: 1.2; margin: 6px 0; text-shadow: 3px 3px 0 #000; }
.ga-rank span { margin-right: 8px; }
.ga-rank small { display: block; font-family: var(--f-en); font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); text-shadow: none; }
.ga-res-sc { margin: 0 0 12px; font-weight: 900; font-size: 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ga-res-sc b { font-family: var(--f-display); font-weight: 400; font-size: 60px; line-height: 1; color: #fff; }
.ga-new { font-family: var(--f-en); font-size: 15px; color: #1b1511; background: var(--yellow); border: 2px solid #000; border-radius: 999px; padding: 2px 12px; animation: ga-fire 0.5s ease-in-out infinite alternate; }
.ga-bst { font-family: var(--f-en); font-size: 14px; opacity: 0.75; }
.ga-res-st { display: flex; gap: 10px; flex-wrap: wrap; }
.ga-res-st span { background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; padding: 6px 14px; font-weight: 800; }
.ga-res-st b { font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--yellow); }
.ga-res-st small { display: block; font-size: 11.5px; opacity: 0.8; }
.ga-next { margin: 18px 0 0; text-align: center; font-weight: 800; background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 8px; }
.ga-next b { color: var(--yellow); font-size: 20px; }
.ga-res-team { text-align: center; }
.ga-win { font-family: var(--f-display); font-size: clamp(32px, 6vw, 52px); margin: 8px 0 16px; text-shadow: 3px 3px 0 #000; }
.ga-vs { display: flex; justify-content: center; align-items: center; gap: 16px; }
.ga-vs > span { display: flex; flex-direction: column; min-width: 150px; padding: 14px; border-radius: 20px; border: 3px solid #000; font-size: 30px; }
.ga-vs .r { background: #e5352b; }
.ga-vs .b { background: #2f62b5; }
.ga-vs .win { box-shadow: 0 0 0 5px var(--yellow); transform: scale(1.06); }
.ga-vs b { font-family: var(--f-display); font-weight: 400; font-size: 44px; }
.ga-vs small { font-size: 13px; font-weight: 800; }
.ga-vs i { font-family: var(--f-display); font-style: normal; font-size: 28px; color: var(--yellow); }
.ga-res-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.ga-rev-h { font-size: 19px; margin: 0 0 10px; }
.ga-rev-h small { font-size: 13px; opacity: 0.75; margin-left: 6px; font-weight: 600; }
.ga-rev { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ga-rev li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fffdf6; color: #1b1511; border-left: 8px solid #12c29a; }
.ga-rev li.ng { border-left-color: #e5352b; }
.ga-rev .n { text-align: center; font-size: 22px; line-height: 1; }
.ga-rev .n small { display: block; font-size: 11px; font-weight: 800; color: #8b8076; margin-top: 3px; }
.ga-rev p { margin: 0; }
.ga-rev .rq { font-size: 13.5px; color: #5a4f46; font-weight: 600; }
.ga-rev .tg { font-size: 11px; font-weight: 900; background: #ece6ff; border-radius: 6px; padding: 0 6px; margin-right: 6px; }
.ga-rev .ra { font-weight: 800; }
.ga-rev .rl { font-weight: 900; font-size: 13px; white-space: nowrap; text-decoration: none; background: #ffe9a3; border: 2px solid #1b1511; border-radius: 999px; padding: 3px 10px; color: #1b1511; }

@media (max-width: 760px) {
  .ga-hero::before { inset: 0 0 auto 0; height: 300px; background-position: 50% 80%; }
  .ga-hero::after { background: linear-gradient(180deg, rgba(20, 18, 58, 0) 120px, var(--ga-night) 300px); }
  .ga-hero-in { min-height: 0; padding-top: 0; padding-bottom: 60px; }
  .ga-kicker { margin-top: 190px; }
  .ga-h1 { font-size: 36px; }
  .ga-h1 em { white-space: nowrap; }
  .ga-stats { gap: 6px; }
  .ga-stats span { padding: 4px 10px; font-size: 12px; }
  .ga-stats b { font-size: 20px; }
  .ga-hero-lead { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
  .ga-hero-in { padding-bottom: 46px; }
  .ga-stats { margin-bottom: 14px; }
  .ga-cta { flex-wrap: nowrap; gap: 8px; }
  .ga-cta .ga-big { font-size: 13.5px; padding: 10px 8px; flex: 1; justify-content: center; text-align: center; white-space: nowrap; }
  .ga-daily { grid-template-columns: 76px 1fr; gap: 12px; text-align: left; padding: 12px 14px; margin: -28px 0 18px; border-radius: 20px; }
  .ga-daily-img { width: 76px; height: 76px; border-radius: 14px; }
  .ga-daily h2 { font-size: 20px; margin: 0 0 8px; }
  .ga-daily p { display: none; }
  .ga-daily-row { gap: 8px; }
  .ga-daily-row .ga-big { font-size: 14px; padding: 8px 14px; }
  .ga-best-l { font-size: 12px; }
  .ga-set { padding: 10px 14px; }
  /* 設定：見出しは1行（開いているときは要約を出さない）。中身は「ラベル｜ボタン」の2列でそろえ、ボタンは横いっぱいに等分 */
  .ga-set-s { flex-wrap: nowrap; white-space: nowrap; }
  .ga-set-s span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ga-set[open] .ga-set-s span { display: none; }
  .ga-set-b { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .ga-set-g { display: contents; }
  .ga-set-l { font-size: 12.5px; white-space: nowrap; }
  .ga-set-b .seg { display: flex; width: 100%; }
  .ga-set-b .seg button { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 13px; white-space: nowrap; }
  .ga-set-n { grid-column: 1 / -1; font-size: 12px; line-height: 1.65; }
  .page-games .sec { margin-top: 30px; }
  .page-games .sec-h { margin-bottom: 12px; }
  .ga-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ga-card-in { border-radius: 18px; box-shadow: 4px 4px 0 var(--sh); }
  .ga-pic { aspect-ratio: 1 / 0.7; }
  .ga-no { font-size: 14px; top: 6px; left: 6px; padding: 0 7px; }
  .ga-en { font-size: 10px; letter-spacing: 0.06em; }
  .ga-name { font-size: 15.5px; }
  .ga-lead, .ga-how, .ga-go, .ga-keys { display: none; }
  .ga-meta { padding-top: 4px; }
  .ga-body { padding: 8px 10px 10px; gap: 2px; }
  .ga-rules { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ga-rule { padding: 10px 12px; }
  .ga-rule-e { font-size: 24px; }
  .ga-rule b { font-size: 14px; }
  .ga-rule p { font-size: 12px; }
  .page-games .sec-lead { font-size: 13.5px; }
  .gh-grid { grid-template-columns: 1fr; gap: 8px; }
  .ga-ch.four { grid-template-columns: 1fr; }
  .ga-ch button { min-height: 58px; }
  .ga-res-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ga-res-img { width: 150px; height: 150px; }
  .ga-res-sc, .ga-res-st { justify-content: center; }
  .ga-rev li { grid-template-columns: 40px 1fr; }
  .ga-rev .rl { grid-column: 2; justify-self: start; }
  .ga-tiles button { width: 48px; height: 54px; font-size: 24px; }
  .ga-slots span { width: 34px; font-size: 22px; }
  .qa-sp-e { font-size: 60px; }
  .ga-hud-m { font-size: 12px; }
}
/* スマホ：1問が1画面に収まるように */
@media (max-width: 760px) {
  .ga-stage-in { padding: 6px 12px 24px; }
  .ga-hud { padding: 4px 0; gap: 6px; }
  .ga-hud .sbtn { font-size: 11px; padding: 1px 8px; }
  .ga-x { width: 34px; height: 34px; font-size: 15px; }
  .ga-qn b { font-size: 18px; }
  .ga-sc b, .ga-tm b { font-size: 19px; }
  .ga-dots { margin-bottom: 6px; }
  .ga-tbar { height: 10px; margin-bottom: 10px; }
  .ga-q { padding: 10px 12px 12px; margin-bottom: 14px; border-radius: 18px; }
  .ga-hint { font-size: 12.5px; margin-bottom: 6px; }
  .qa-photo img { max-height: 30vh; width: auto; max-width: 100%; }
  .qa-food img { width: min(150px, 22vh); box-shadow: 0 0 0 5px #ffe9a3; }
  .qa-food-n b { font-size: 20px; }
  .qa-bigemo { font-size: 72px; }
  .qa-emo { font-size: 60px; gap: 10px; }
  .qa-word { font-size: 28px; margin: 8px 0; }
  .qa-cal { min-width: 160px; }
  .qa-cal .m { font-size: 15px; padding: 4px 12px; }
  .qa-cal .d { font-size: 54px; }
  .qa-sent { font-size: 18px; }
  .ga-ch.four { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ga-ch button { min-height: 62px; padding: 8px 9px; gap: 7px; border-width: 2.5px; border-radius: 14px; box-shadow: 0 4px 0 #000; }
  .ga-ch .k { width: 24px; height: 24px; font-size: 13px; border-radius: 7px; }
  .ga-ch .v b, .ga-ch .v b.en { font-size: 14px; line-height: 1.3; }
  .ga-ch .v small { font-size: 11px; }
  .ga-tf button { min-height: 96px; }
  .ga-tf button b { font-size: 48px; }
  .ga-fb { margin-top: 12px; padding: 8px 12px; }
  .ga-fb-big { font-size: 19px; }
  .ga-fb-a { font-size: 13.5px; }
  .ga-ord { gap: 10px; }
  .ga-ord button { padding: 10px 8px 8px; }
  .ga-ord .e { font-size: 32px; }
  .ga-ord b { font-size: 14px; }
  .ga-intro { min-height: 80vh; }
  .ga-cnt { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-emo span, .ga-combo.on, .ga-new, .btn.ga-big.btn-y, .ga-stage-bg::before { animation: none; }
}
