/* ゲーム共通 */
.gm-head h1 { margin: 6px 0 14px; font-size: clamp(26px, 5vw, 42px); }
.gm-head h1 small { display: block; font-family: var(--en); font-weight: 800; font-size: 13px; letter-spacing: 0.3em; color: var(--cyan); }
.game { position: relative; min-height: 520px; border-radius: 26px; background: radial-gradient(circle at 50% 0%, rgba(53, 227, 255, 0.12), transparent 60%), rgba(10, 14, 40, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); padding: 18px; overflow: hidden; }
.g-loading { display: grid; place-items: center; min-height: 480px; color: var(--mute); }
.g-start { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 10px 0; }
.g-start .art { width: min(640px, 100%); aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.g-start .art img { width: 100%; height: 100%; object-fit: cover; }
.g-start h2 { margin: 4px 0 0; font-size: clamp(24px, 4.6vw, 38px); }
.g-start p { margin: 0; color: var(--mute); max-width: 620px; }
.g-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.g-best { font-family: var(--en); color: var(--gold); font-weight: 800; }
.hud { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hud .pill { padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); font-weight: 900; font-size: 14px; }
.hud .pill b { font-family: var(--en); font-size: 18px; color: var(--gold); margin-left: 4px; }
.hud .grow { flex: 1; }
.tbar { height: 8px; border-radius: 99px; background: #23285a; overflow: hidden; flex: 1 1 100%; }
.tbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--gold), var(--shu)); transition: width 0.25s linear; }
.q-big { text-align: center; font-family: var(--disp); font-size: clamp(22px, 4.4vw, 34px); margin: 4px 0 14px; }
.q-big small { display: block; font-family: var(--en); font-size: 0.5em; color: var(--mute); }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { padding: 16px 12px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, #252c74, #1a1f57); font-weight: 900; font-size: clamp(16px, 2.6vw, 20px); transition: transform 0.1s, border-color 0.2s; }
.choice small { display: block; font-family: var(--en); font-size: 12px; color: var(--mute); font-weight: 600; }
.choice:hover { border-color: var(--gold); transform: translateY(-2px); }
.choice.ok { background: linear-gradient(180deg, #1fb866, #0e7a41); border-color: #8affc0; animation: pop 0.35s; }
.choice.ng { background: linear-gradient(180deg, #d63a3a, #8a1a1f); border-color: #ff9a9a; animation: shake 0.35s; }
.choice[disabled] { pointer-events: none; }
@keyframes pop { 50% { transform: scale(1.06); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.g-res { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 20px 0; }
.g-res .big { font-family: var(--disp); font-size: clamp(52px, 12vw, 96px); line-height: 1; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(255, 204, 61, 0.5)); }
.g-res .rank { font-family: var(--disp); font-size: 24px; color: var(--pink); }
.g-res .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.flash { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 20; }
.flash b { font-family: var(--disp); font-size: clamp(60px, 16vw, 140px); animation: flash 0.8s ease-out forwards; text-shadow: 0 0 40px currentColor; }
.flash.ok b { color: #5dffa8; }
.flash.ng b { color: #ff5a5a; }
@keyframes flash { 0% { transform: scale(0.3); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.combo { position: absolute; top: 14px; right: 18px; font-family: var(--disp); color: var(--gold); font-size: 22px; text-shadow: 0 0 16px var(--gold); }
@media (max-width: 560px) { .game { padding: 12px; border-radius: 18px; } .choices { gap: 8px; } }

/* ハイ＆ロー */
.hl-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.hl-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 300px; border: 2px solid rgba(255, 255, 255, 0.15); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; isolation: isolate; text-align: center; transition: transform 0.15s, border-color 0.2s; }
.hl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hl-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5, 7, 25, 0.92)); }
.hl-card b { font-family: var(--disp); font-weight: 400; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; }
.hl-card .v { font-family: var(--en); font-weight: 800; font-size: clamp(20px, 3.4vw, 30px); color: var(--gold); min-height: 1.3em; }
.hl-card .v.hide { color: transparent; }
.hl-card.pickable { cursor: pointer; }
.hl-card.pickable:hover { transform: translateY(-4px); border-color: var(--gold); }
.hl-card.win { border-color: #5dffa8; box-shadow: 0 0 30px rgba(93, 255, 168, 0.5); }
.hl-card.lose { border-color: #ff5a5a; filter: saturate(0.6); }
.hl-vs { display: grid; place-items: center; font-family: var(--disp); font-size: 34px; color: var(--shu); text-shadow: 0 0 20px var(--shu); }
@media (max-width: 640px) { .hl-row { grid-template-columns: 1fr; } .hl-card { min-height: 190px; } .hl-vs { font-size: 24px; } }

/* シルエット */
.sil { display: grid; place-items: center; margin: 0 auto 16px; width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(53, 227, 255, 0.2), transparent 70%); }
.sil svg { width: 80%; height: 80%; overflow: visible; }
.sil path { fill: #fff; filter: drop-shadow(0 0 16px rgba(53, 227, 255, 0.9)); }
.sil.spin svg { animation: rot 6s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* 地図タッチ・パズル・ロワイヤル共通の地図 */
.gmap { width: 100%; max-width: 640px; margin: 0 auto; position: relative; }
.gmap .pf { fill: #2d3580; }
.gmap .pf.ok { fill: #1fb866; }
.gmap .pf.miss { fill: #d63a3a; }
.gmap .pf.blink { animation: blink 0.5s 3; }
@keyframes blink { 50% { fill: var(--gold); } }

/* カードバトル */
.bt-arena { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 10px 0 16px; min-height: 250px; }
.bt-slot { display: grid; justify-items: center; gap: 6px; }
.bt-slot h4 { margin: 0; font-size: 14px; color: var(--mute); }
.bt-vs { font-family: var(--disp); font-size: 30px; color: var(--shu); text-align: center; }
.bt-vs small { display: block; font-size: 14px; color: var(--gold); font-family: var(--body); font-weight: 900; }
.pcardx { position: relative; width: 170px; aspect-ratio: 3 / 4.2; border-radius: 16px; overflow: hidden; border: 3px solid var(--pc, var(--gold)); background: #10143a; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px color-mix(in srgb, var(--pc, #fc3) 40%, transparent); display: flex; flex-direction: column; isolation: isolate; text-align: left; padding: 0; color: #fff; transition: transform 0.2s; }
.pcardx img { width: 100%; height: 46%; object-fit: cover; }
.pcardx .nm { font-family: var(--disp); font-size: 20px; padding: 4px 10px 0; line-height: 1.2; }
.pcardx .st { padding: 2px 10px 8px; font-size: 11.5px; line-height: 1.55; color: #d9d7f3; }
.pcardx .st div { display: flex; justify-content: space-between; }
.pcardx .st div.hi { color: var(--gold); font-weight: 900; }
.pcardx.back { background: repeating-linear-gradient(45deg, #2b1050 0 10px, #3a1670 10px 20px); border-color: var(--gold); display: grid; place-items: center; font-family: var(--disp); font-size: 40px; color: var(--gold); }
.pcardx.win { animation: pop 0.4s; box-shadow: 0 0 40px #5dffa8; border-color: #5dffa8; }
.pcardx.lose { filter: grayscale(0.7) brightness(0.7); }
.hand { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hand .pcardx { width: 140px; cursor: pointer; }
.hand .pcardx:hover { transform: translateY(-8px); }
.hand .pcardx.used { opacity: 0.25; pointer-events: none; }
.score-row { display: flex; justify-content: center; gap: 30px; font-family: var(--en); font-weight: 800; font-size: 26px; }
.score-row span { color: var(--gold); }
@media (max-width: 640px) { .pcardx { width: 130px; } .hand .pcardx { width: 104px; } .pcardx .nm { font-size: 16px; } .pcardx .st { font-size: 10px; } .bt-arena { min-height: 200px; } }

/* ロワイヤル */
.ry { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.ry-side { display: grid; gap: 10px; align-content: start; }
.ry-log { height: 260px; overflow: auto; font-size: 13px; background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 8px 10px; }
.ry-log div { padding: 2px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.ry-rank { display: grid; gap: 4px; font-size: 13px; }
.ry-rank div { display: flex; align-items: center; gap: 6px; }
.ry-rank i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ry-rank b { margin-left: auto; font-family: var(--en); }
.ry-ctl { display: flex; gap: 6px; flex-wrap: wrap; }
.gmap .pf.flash { stroke: #fff; stroke-width: 2.5; }
.ry-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 760px; }
@media (max-width: 860px) { .ry { grid-template-columns: 1fr; } .ry-log { height: 140px; } }

/* パズル */
.pz { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; }
.pz .gmap .pf { fill: #1c2160; stroke: #3b44a0; stroke-dasharray: 3 2; }
.pz .gmap .pf.ok { fill: var(--wc, #1fb866); stroke: #0a0e27; stroke-dasharray: none; }
.pz-tray { display: grid; place-items: center; gap: 8px; text-align: center; background: rgba(0, 0, 0, 0.25); border-radius: 16px; padding: 12px; align-content: start; }
.pz-piece { width: 160px; height: 160px; touch-action: none; cursor: grab; }
.pz-piece path { fill: var(--gold); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.pz-drag { position: fixed; z-index: 500; pointer-events: none; }
.pz-drag path { fill: var(--gold); fill-opacity: 0.85; stroke: #fff; stroke-width: 1.5; }
@media (max-width: 700px) { .pz { grid-template-columns: 1fr; } .pz-tray { grid-template-columns: auto 1fr; } .pz-piece { width: 110px; height: 110px; } }

/* ビンゴ */
.bg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.bg-card { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: linear-gradient(180deg, #8a1020, #4a0612); padding: 10px; border-radius: 18px; border: 3px solid var(--gold); }
.bg-cell { aspect-ratio: 1; border-radius: 10px; background: #fffaf0; color: #1a1030; display: grid; place-items: center; font-weight: 900; font-size: clamp(11px, 2.2vw, 15px); text-align: center; line-height: 1.15; padding: 2px; position: relative; border: 0; }
.bg-cell.on { background: radial-gradient(circle, #ffcc3d 0 40%, #ff9d1f 41% 60%, #fffaf0 61%); }
.bg-cell.on::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 4px solid rgba(255, 75, 58, 0.85); }
.bg-cell.free { background: var(--gold); font-family: var(--en); }
.bg-cell.line { box-shadow: 0 0 0 3px #5dffa8, 0 0 16px #5dffa8; }
.bg-call { display: grid; gap: 10px; align-content: start; text-align: center; }
.bg-now { font-family: var(--disp); font-size: clamp(36px, 8vw, 64px); min-height: 1.3em; color: var(--gold); text-shadow: 0 0 30px rgba(255, 204, 61, 0.6); }
.bg-called { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; font-size: 12px; }
.bg-called span { padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.bg-called span.hit { background: var(--gold); color: #2a0a00; font-weight: 900; }
@media (max-width: 760px) { .bg { grid-template-columns: 1fr; } }

/* 足あと */
.as { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.as .pf.l1 { fill: #3d6bff; } .as .pf.l2 { fill: #2fd27a; } .as .pf.l3 { fill: #ffcc3d; } .as .pf.l4 { fill: #ff4b3a; }
.as-leg { display: grid; gap: 6px; font-size: 14px; }
.as-leg button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 8px 10px; text-align: left; }
.as-leg button.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 204, 61, 0.35) inset; }
.as-leg i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.as-score { text-align: center; }
.as-score b { font-family: var(--disp); font-size: 56px; color: var(--gold); line-height: 1; display: block; }
.as-title { font-family: var(--disp); color: var(--pink); font-size: 20px; }
@media (max-width: 860px) { .as { grid-template-columns: 1fr; } }
/* 空から当てろ！航空写真クイズ */
.skq { position: relative; aspect-ratio: 16 / 9; max-height: 56vh; width: 100%; margin: 6px auto 12px; border-radius: 20px; overflow: hidden; border: 3px solid rgba(53, 227, 255, 0.5); box-shadow: 0 0 40px rgba(53, 227, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5); background: #10304a; }
.skq-view { position: absolute; inset: 0; overflow: hidden; }
.skq-layer { position: absolute; inset: 0; transition: transform 0.85s cubic-bezier(0.3, 0.1, 0.2, 1), opacity 0.85s; transform-origin: 50% 50%; }
.skq-layer img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.skq-layer.in { transform: scale(4); opacity: 0; }
.skq-layer.out { transform: scale(0.25); opacity: 0; }
.skq-hud { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(4, 8, 30, 0.55)); }
.skq-hud .alt { position: absolute; left: 12px; top: 10px; font-family: var(--en); font-weight: 800; font-size: 13px; color: var(--cyan); background: rgba(4, 10, 30, 0.7); padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(53, 227, 255, 0.4); }
.skq-hud .cross { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 14px rgba(53, 227, 255, 0.6); }
.skq-hud .cross::before, .skq-hud .cross::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.8); }
.skq-hud .cross::before { left: 50%; top: -12px; bottom: -12px; width: 2px; margin-left: -1px; }
.skq-hud .cross::after { top: 50%; left: -12px; right: -12px; height: 2px; margin-top: -1px; }
.skq-zoom { position: absolute; right: 12px; bottom: 12px; font: inherit; font-weight: 900; font-size: 15px; color: #04131c; background: var(--cyan); border: 0; border-radius: 99px; padding: 10px 18px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 20px rgba(53, 227, 255, 0.55); }
.skq-zoom:disabled { background: #556; color: #ccd; box-shadow: none; cursor: default; }
.skq-att { position: absolute; left: 10px; bottom: 6px; font-size: 10px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px #000; }
.skq-ans { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(6, 10, 34, 0.9); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); animation: pop 0.35s; display: grid; gap: 8px; }
.skq-ans small { display: block; color: var(--mute); font-size: 12px; }
.skq-ans strong { color: var(--gold); font-size: 1.15em; }
.skq-ans-b { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .skq { aspect-ratio: 4 / 3; } .skq-zoom { font-size: 13px; padding: 8px 14px; } }

.gm-lead { margin: -4px 0 16px; color: var(--mute); max-width: 820px; }
.gm-lead strong { color: var(--ink); }
