/* ゲーム共通 */
.game { position: relative; min-height: 520px; border-radius: 22px; background: radial-gradient(800px 400px at 50% 0%, rgba(79, 141, 255, 0.18), transparent), rgba(6, 10, 26, 0.82); box-shadow: 0 0 0 1px var(--line2), 0 30px 80px rgba(0, 0, 0, 0.5); overflow: hidden; isolation: isolate; }
.g-intro, .g-result { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 40px; gap: 6px; }
.g-owl { width: 150px; height: 150px; }
.g-en { color: var(--cyan); font-size: 13.5px; letter-spacing: 0.3em; margin: 6px 0 0; }
.g-title { font-size: clamp(26px, 4vw, 40px); font-family: var(--ff-d); }
.g-rules { max-width: 620px; color: var(--tx2); font-size: 16.5px; }
.g-rules ul { text-align: left; display: inline-block; margin: 0 0 10px; padding-left: 1.2em; }
.g-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 14px; }
.g-opts label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; font-weight: 700; cursor: pointer; }
.g-opts input { accent-color: var(--gold); }
.g-best { color: var(--gold); font-size: 15.5px; margin-top: 10px; }
.g-stage { position: relative; padding: 16px; min-height: 520px; }
.g-hud { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; font-family: var(--ff-x); font-size: 14.5px; color: var(--tx2); margin-bottom: 12px; }
.g-hud b { color: #fff; font-size: 18px; margin-left: 4px; }
.g-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; flex: 1; min-width: 120px; }
.g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold)); transition: width 0.1s linear; }
.g-q { font-size: clamp(20px, 3vw, 30px); font-weight: 900; text-align: center; margin: 10px 0 18px; line-height: 1.45; }
.g-q .ja { display: block; font-size: 0.6em; color: var(--tx2); margin-top: 4px; font-weight: 700; }
.g-chs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.g-ch { border: 0; border-radius: 16px; padding: 16px 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line2); font-size: 17px; font-weight: 800; color: var(--tx); transition: 0.15s; line-height: 1.4; min-height: 64px; }
.g-ch:hover { background: rgba(99, 140, 255, 0.18); transform: translateY(-2px); }
.g-ch.ok { background: rgba(93, 255, 176, 0.22); box-shadow: inset 0 0 0 2px var(--green); }
.g-ch.ng { background: rgba(255, 107, 107, 0.22); box-shadow: inset 0 0 0 2px var(--red); animation: shake 0.4s; }
.g-ch img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 560px) { .g-chs { grid-template-columns: 1fr; } .g-ch { min-height: 54px; padding: 12px; } }
.g-canvas { display: block; width: 100%; border-radius: 14px; background: #000; touch-action: none; }
.g-pad { display: flex; justify-content: center; gap: 10px; margin-top: 12px; user-select: none; -webkit-user-select: none; }
.g-pad button { width: 72px; height: 64px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line2); font-size: 22px; font-weight: 900; touch-action: none; }
.g-pad button.on { background: rgba(255, 210, 122, 0.35); }
@media (hover: hover) and (pointer: fine) { .g-pad.touch-only { display: none; } }
.g-rank { font-family: var(--ff-x); font-size: 96px; font-weight: 800; 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, 210, 122, 0.5)); }
.g-rank.r-C { background: linear-gradient(180deg, #fff, #8fb0ff); -webkit-background-clip: text; background-clip: text; }
.g-rank-ja { font-size: 20px; font-weight: 900; }
.g-rank-ja .en { display: block; font-size: 15.5px; color: var(--cyan); }
.g-score { font-family: var(--ff-x); font-size: 44px; font-weight: 800; margin: 0; }
.g-score small { font-size: 17.5px; margin-left: 4px; font-family: var(--ff); }
.g-score .chip { margin-left: 10px; vertical-align: middle; }
.g-detail { max-width: 640px; width: 100%; font-size: 15.5px; color: var(--tx2); margin: 8px 0 14px; text-align: left; }
.g-conf { position: absolute; pointer-events: none; font-size: 20px; z-index: 5; }
.g-msg { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-size: clamp(26px, 5vw, 52px); font-weight: 900; font-family: var(--ff-x); text-align: center; pointer-events: none; text-shadow: 0 0 30px rgba(0, 0, 0, 0.8); z-index: 4; white-space: nowrap; }
.g-msg .ja { display: block; font-size: 0.45em; font-family: var(--ff); }

/* ゲーム一覧 */
.games-grid .card .cv { aspect-ratio: 16/9; }
.games-grid .card .lv { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ゲーム一覧：NEW タグ・新しいグループ（2026-11） */
.gcard .tag.new { left: 12px; right: auto; background: linear-gradient(90deg, #ff7ac6, #ffb648); color: #2a0a1a; font-weight: 900; letter-spacing: 0.08em; box-shadow: 0 4px 16px rgba(255, 122, 198, 0.45); animation: gnew 1.6s ease-in-out infinite; }
@keyframes gnew { 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .gcard .tag.new { animation: none; } }
.cg-lead { color: var(--tx2); font-size: 15.5px; margin: 4px 0 0; }
.cg-arcade, .cg-kids { border-radius: 26px; padding: 18px 16px 20px; margin-bottom: 26px; }
.cg-arcade { background: radial-gradient(700px 260px at 15% 0%, rgba(255, 122, 198, 0.16), transparent), rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(255, 122, 198, 0.28); }
.cg-kids { background: radial-gradient(700px 260px at 85% 0%, rgba(125, 255, 138, 0.14), transparent), rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(125, 255, 138, 0.28); }
.cg-kids .h-m { font-family: var(--ff-m); }
/* アーケード・ちいさい子むけ：カードが少ないので真ん中にそろえる */
.cg-arcade .grid, .cg-kids .grid { display: flex; flex-wrap: wrap; justify-content: center; }
.cg-arcade .grid > .card { flex: 0 1 calc((100% - 54px) / 4); }
.cg-kids .grid > .card { flex: 0 1 calc((100% - 36px) / 3); }
@media (max-width: 900px) { .cg-arcade .grid > .card, .cg-kids .grid > .card { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .cg-kids .grid > .card { flex-basis: 100%; } }
