/* インディーゲームガチャ — 明るくポップな見た目 */
:root {
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #2b2a4c;
  --ink-2: #6b6a8c;
  --line: #f0e3cf;
  --coral: #ff5a5f;
  --coral-d: #e8434a;
  --sun: #ffc93c;
  --mint: #2ec4b6;
  --sky: #3fa7ff;
  --grape: #7b61ff;
  --pink: #ff8fab;
  --ok: #1f9d6b;
  --warn: #b26a00;
  --danger: #d63c3c;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 4px 0 rgba(43, 42, 76, 0.12), 0 10px 30px rgba(43, 42, 76, 0.08);
  --shadow-pop: 0 5px 0 var(--ink);
  --font: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  line-height: 1.75; font-size: 16px; overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(43,42,76,0.06) 1px, transparent 0);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #d43d63; text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
h1, h2, h3 { line-height: 1.35; font-weight: 800; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin: 1.4em 0 0.6em; }
h3 { font-size: 1.1rem; margin: 0 0 0.4em; }
p { margin: 0 0 0.9em; }
code { background: #f6efe2; padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; word-break: break-all; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding: 32px 16px; }
.pad-l { padding-top: 32px; padding-bottom: 32px; }
.pad-xl { padding-top: 64px; padding-bottom: 64px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.big { font-size: 1.8rem; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.inline { display: inline; }

/* ── ヘッダー・フッター ── */
.site-header { background: rgba(255,248,236,0.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 2px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; min-width: 0; }
.logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { width: 38px; height: 38px; flex: none; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; transition: transform 0.25s; }
.logo:hover .logo-mark svg { transform: rotate(-12deg); }
/* アイコン（src/views/icons.ts） */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ico .ico-fill { fill: currentColor; stroke: none; }
.ico .ico-soft { fill: currentColor; stroke: none; opacity: 0.25; }
.chip .ico { width: 1.1em; height: 1.1em; }
.btn .ico { margin-right: 6px; }
.review-count { display: inline-flex; align-items: center; gap: 3px; }
.nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-weight: 700; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 2px; }
.nav a.btn { padding: 5px 16px; color: #fff; }
.nav a:hover { color: var(--coral); }
.linklike { background: none; border: 0; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 2px; }
.linklike:hover { color: var(--coral); }
.linklike.danger { color: var(--danger); text-decoration: underline; }

.site-footer { margin-top: 48px; background: var(--ink); color: #f4f1ff; padding: 32px 0; }
.site-footer a { color: #ffd6e0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; max-width: 560px; }
.footer-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.site-footer .muted { color: #c9c6e8; }

.banner { padding: 10px 0; font-size: 0.92rem; font-weight: 700; }
.banner-warn { background: #fff1c2; }
.banner-ok { background: #d9f7ee; color: #105b40; }

/* ── ボタン ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 800; color: var(--ink); background: #fff; text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 10px 22px; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s; line-height: 1.3; text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-pop { background: var(--coral); color: #fff; }
.btn-pop:hover { color: #fff; background: var(--coral-d); }
.btn-play { background: var(--mint); color: #fff; font-size: 1.05rem; }
.btn-play:hover { color: #fff; background: #23ab9e; }
.btn-x { background: var(--ink); color: #fff; }
.btn-x:hover { color: #fff; }
.btn-danger { background: #fff0f0; color: var(--danger); border-color: var(--danger); box-shadow: 0 4px 0 var(--danger); }
.btn-ghost { box-shadow: none; border-style: dashed; }
.btn-small { padding: 6px 14px; font-size: 0.88rem; box-shadow: 0 3px 0 var(--ink); }
.btn-block { width: 100%; }
.actions-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── ヒーローとガチャ ── */
.hero { padding: 28px 0 24px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 420px; height: 420px; background: #ffe39b; right: -120px; top: -140px; opacity: 0.7; }
.hero::after { width: 300px; height: 300px; background: #c6f1ea; left: -110px; bottom: -60px; opacity: 0.8; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.hero-copy { padding-top: 24px; }
.eyebrow { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.lead { font-size: 1.05rem; color: var(--ink-2); font-weight: 700; }
.mini-steps { list-style: none; padding: 0; margin: 20px 0 12px; display: grid; gap: 10px; }
.mini-steps li { display: flex; align-items: center; gap: 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 10px 14px; font-weight: 800; box-shadow: 0 4px 0 var(--ink); max-width: 360px; }
.mini-steps li:nth-child(2) { margin-left: 24px; } .mini-steps li:nth-child(3) { margin-left: 48px; }
.mini-steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); flex: none; }
.mini-steps li:nth-child(2) span { background: var(--mint); } .mini-steps li:nth-child(3) span { background: var(--pink); }
.hero-links { font-weight: 700; }

.gacha { background: #fff; border: 3px solid var(--ink); border-radius: 28px; padding: 16px; box-shadow: 0 8px 0 var(--ink); min-width: 0; }
.platform-picker { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.platform-picker legend { font-weight: 800; margin-bottom: 8px; }
.platform-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pf-opt { position: relative; cursor: pointer; --pf: var(--coral); }
.pf-sp_browser { --pf: #ff6b8b; } .pf-pc_browser { --pf: #3fa7ff; } .pf-windows { --pf: #7b61ff; }
.pf-mac { --pf: #2ec4b6; } .pf-android { --pf: #7cc243; } .pf-ios { --pf: #ffb000; }
.pf-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pf-face { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center;
  border: 2.5px solid var(--line); border-radius: 14px; padding: 6px 10px; background: #fffdf8; transition: all 0.12s; min-height: 52px; }
.pf-icon { grid-row: span 2; font-size: 1.5rem; display: flex; color: var(--pf, var(--ink)); }
.pf-opt input:checked + .pf-face .pf-icon { color: #fff; }
.pf-name { font-weight: 800; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-count { font-size: 0.75rem; color: var(--ink-2); line-height: 1.2; }
.pf-opt input:checked + .pf-face { border-color: var(--ink); background: var(--pf); color: #fff; box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.pf-opt input:checked + .pf-face .pf-count { color: rgba(255,255,255,0.9); }
.pf-opt input:focus-visible + .pf-face { outline: 3px solid var(--sky); outline-offset: 2px; }

.machine { position: relative; height: 360px; margin: 4px auto 0; border-radius: 20px; background: radial-gradient(circle at 50% 35%, #fff 0, #fff3df 60%, #ffe8c9 100%); overflow: hidden; }
.machine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.machine.is-3d .machine-canvas { display: block; }
.machine.is-3d .machine-fallback { display: none; }
/* WebGLなし・動きを減らす設定のときの筐体（CSSのみ）。台の大きさは tier-1〜4 */
.machine-fallback { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: var(--fb-w, 170px); display: flex; flex-direction: column; align-items: center; }
.machine.tier-2 { --fb-w: 196px; --fb-win: 112px; } .machine.tier-3 { --fb-w: 226px; --fb-win: 128px; } .machine.tier-4 { --fb-w: 256px; --fb-win: 142px; }
.fb-lid { width: 104%; height: 10px; background: var(--pf-color, #ff6b8b); border: 3px solid var(--ink); border-radius: 6px 6px 2px 2px; filter: brightness(0.9); }
.fb-top { position: relative; width: 100%; border: 4px solid var(--ink); border-top: 0; border-bottom-width: 3px; background: var(--pf-color, #ff6b8b); padding: 0 6px 6px; }
.fb-card { position: relative; z-index: 1; background: var(--sun); border: 2px solid var(--ink); border-top: 0; text-align: center; font-weight: 800; font-size: 0.9rem; line-height: 1.6; }
.fb-window { width: 100%; height: var(--fb-win, 92px); border-radius: 0 0 4px 4px; background: rgba(240,250,255,0.86); padding: 4px; position: relative; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 2px; overflow: hidden; }
.fb-window::after { content: ''; position: absolute; left: 18%; top: 6%; width: 8px; height: 80%; background: rgba(255,255,255,0.75); transform: rotate(18deg); border-radius: 4px; }
.fb-window span { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(var(--c, var(--coral)) 50%, #fff 50%); }
.fb-window .c0 { --c: #ff5a5f; } .fb-window .c1 { --c: #ffc93c; } .fb-window .c2 { --c: #2ec4b6; } .fb-window .c3 { --c: #3fa7ff; }
.fb-window .c4 { --c: #7b61ff; } .fb-window .c5 { --c: #ff8fab; } .fb-window .c6 { --c: #7cc243; } .fb-window .c7 { --c: #ff9f1c; }
.fb-body { width: 100%; height: 104px; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; background: var(--pf-color, #ff6b8b); position: relative; }
.fb-body::before { content: ''; position: absolute; left: 6px; right: 6px; top: 8px; height: 50px; border-radius: 4px; background: var(--cream); }
.machine[data-platform="pc_browser"] { --pf-color: #3fa7ff; } .machine[data-platform="windows"] { --pf-color: #7b61ff; }
.machine[data-platform="mac"] { --pf-color: #2ec4b6; } .machine[data-platform="android"] { --pf-color: #7cc243; } .machine[data-platform="ios"] { --pf-color: #ffb000; }
.fb-knob { position: absolute; left: 16%; top: 13px; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c9d0db); border: 3px solid var(--ink); }
.fb-knob::after { content: ''; position: absolute; left: 50%; top: 50%; width: 36px; height: 10px; background: #f4f6f9; border: 2px solid var(--ink); border-radius: 5px; transform: translate(-50%, -50%); }
.fb-coin { position: absolute; right: 16%; top: 11px; width: 28px; height: 50px; border-radius: 4px; background: linear-gradient(90deg, #d9dee6, #f4f6f9 50%, #c9d0db); border: 2px solid var(--ink); display: flex; justify-content: center; padding-top: 3px; }
.fb-coin span { width: 22px; background: var(--coral); color: #fff; font-size: 0.45rem; font-weight: 800; line-height: 1.15; text-align: center; border-radius: 3px; height: 20px; padding-top: 1px; }
.fb-chute { position: absolute; left: 22%; bottom: 8px; width: 74px; height: 30px; border-radius: 3px; background: linear-gradient(rgba(70,65,96,0.55), rgba(43,42,76,0.9)), var(--ink); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(255,255,255,0.18); }
.fb-base { width: 106%; height: 12px; background: var(--ink); border-radius: 6px; }
.machine.spinning .fb-knob { animation: knob 0.7s ease-out; }
.machine.spinning .fb-window span { animation: jiggle 0.25s ease-in-out 3; }
.machine.is-empty .fb-window span, .machine.is-empty.is-3d { opacity: 0.6; }
/* 台の名前とカプセル数、パワーアップのお知らせ、ハンドルの当たり判定 */
.machine-tier { position: absolute; left: 10px; bottom: 6px; margin: 0; font-size: 0.72rem; font-weight: 800; color: var(--ink-2); background: rgba(255,255,255,0.8); border-radius: 999px; padding: 1px 10px; }
.knob-hit { position: absolute; border-radius: 50%; touch-action: none; cursor: grab; z-index: 2; }
.knob-hit.grabbing { cursor: grabbing; }
.machine:not(.is-3d) .knob-hit { display: none; }
@keyframes knob { to { transform: rotate(-360deg); } }
@keyframes jiggle { 50% { transform: translateY(-14px) rotate(20deg); } }

.gacha-controls { text-align: center; margin-top: 12px; }
.btn-spin { font-size: 1.35rem; padding: 14px 48px; background: var(--sun); box-shadow: 0 6px 0 var(--ink); }
.btn-spin:hover { background: #ffbf1a; }
.gacha-hint { margin: 10px 0 0; }

.gacha-result { margin-top: 16px; }
.gacha-result:empty { display: none; }
.gacha-result.show { animation: pop 0.4s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.result-card { border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fffdf8; box-shadow: 0 6px 0 var(--ink); }
.result-kicker { margin: 0; padding: 8px 16px; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.9rem; }
.spark { color: var(--sun); display: inline-flex; vertical-align: -0.15em; }
.result-media { position: relative; }
.result-media .game-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.result-body { padding: 14px 18px 18px; }
.result-title { font-size: 1.5rem; margin: 0; }
.result-title:focus { outline: none; }
.result-author { color: var(--ink-2); font-weight: 700; margin: 0 0 6px; font-size: 0.92rem; }
.result-summary { margin-bottom: 8px; }
.result-quote { margin: 10px 0; padding: 10px 14px; background: #fff3d1; border-radius: 14px; font-weight: 700; }
.result-quote p { margin: 0; }
.result-quote footer { font-size: 0.82rem; color: var(--ink-2); }
.result-first { background: #e6f9f5; border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 0.92rem; }
.result-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 12px; }
.result-actions .btn-play { font-size: 1.2rem; padding: 14px; }
.result-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; margin-top: 12px; }
.result-empty { border: 3px dashed var(--ink-2); border-radius: 22px; padding: 18px; text-align: center; background: #fffdf8; }
.result-empty h2 { margin-top: 0; font-size: 1.2rem; }
.empty-alts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result-error { color: var(--danger); font-weight: 800; text-align: center; }
.again { margin-top: 20px; }

/* ── カード・一覧 ── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0.4em; }
.page-head { margin-bottom: 16px; }
.count { display: inline-block; min-width: 1.8em; text-align: center; background: var(--sun); border-radius: 999px; font-size: 0.85em; padding: 0 8px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.game-card { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 5px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s; }
.game-card:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 8px 0 var(--ink); }
.game-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.game-card-media { position: relative; }
.game-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #ffe8ef; }
.img-placeholder { display: grid; place-items: center; color: var(--ink-2); font-weight: 700; background: repeating-linear-gradient(45deg, #ffeef2, #ffeef2 12px, #fff7f9 12px, #fff7f9 24px); }
.game-card-media .badge { position: absolute; left: 10px; top: 10px; }
.result-media .badge { position: absolute; left: 12px; top: 12px; }
.game-card-body { padding: 12px 14px 14px; }
.game-card-title { font-size: 1.08rem; margin: 0; }
.game-card-author { font-size: 0.82rem; color: var(--ink-2); margin: 0 0 4px; font-weight: 700; }
.game-card-summary { font-size: 0.9rem; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-count { font-size: 0.85rem; font-weight: 800; white-space: nowrap; }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; vertical-align: middle; }
.badge-free { background: #d9f7ee; } .badge-free_ads { background: #fff1c2; } .badge-free_trial { background: #e8e1ff; }
.chips { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; color: #fff; background: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; }
.chips-small .chip { font-size: 0.72rem; padding: 1px 8px; }
.chip-sp_browser { background: #ff6b8b; } .chip-pc_browser { background: #3fa7ff; } .chip-windows { background: #7b61ff; }
.chip-mac { background: #23a497; } .chip-android { background: #5ea82a; } .chip-ios { background: #d99400; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.quote-card { display: block; background: #fff; border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); border: 2.5px solid var(--ink); position: relative; box-shadow: 0 4px 0 var(--ink); }
.quote-card::before { content: '“'; position: absolute; top: -18px; left: 14px; font-size: 3.6rem; color: var(--coral); font-weight: 800; line-height: 1; }
.quote-text { font-weight: 700; }
.quote-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-2); margin: 0; }

.dev-cta-inner { background: var(--grape); color: #fff; border-radius: 28px; padding: 24px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.dev-cta-inner h2 { margin-top: 0; }
.how { list-style: none; counter-reset: how; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.how li { counter-increment: how; background: rgba(255,255,255,0.14); border-radius: 16px; padding: 14px 14px 14px 52px; position: relative; display: flex; flex-direction: column; }
.how li::before { content: counter(how); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.how span { font-size: 0.88rem; opacity: 0.92; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; font-size: 0.82rem; font-weight: 800; min-width: 0; }
.filters .grow { flex: 1 1 180px; }
.empty { text-align: center; background: #fff; border: 2.5px dashed var(--line); border-radius: var(--radius); padding: 24px; }

/* ── 作品詳細 ── */
.game-detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gd-media .game-img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.credit { font-size: 0.8rem; color: var(--ink-2); margin-top: 8px; }
.gd-genre { font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }
.gd-author { color: var(--ink-2); font-weight: 700; }
.gd-summary { font-size: 1.05rem; }
.play-buttons { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.copy-status { font-size: 0.85rem; color: var(--ok); font-weight: 700; word-break: break-all; }
.review-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.review-card { background: #fff; border-radius: var(--radius); padding: 18px; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.review-label { display: inline-block; font-size: 0.75rem; font-weight: 800; background: var(--coral); color: #fff; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.review-body { font-size: 1.02rem; overflow-wrap: anywhere; }
.review-body p { margin: 0 0 0.5em; }
.review-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; color: var(--ink-2); align-items: center; }
.reviewer { font-weight: 800; color: var(--ink); }
.report-links { text-align: right; }
.mini-game { max-width: 420px; margin: 24px auto; }

/* ── プロフィール ── */
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; flex: none; }
.profile-head h1 { margin: 0; }
.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1.5px dashed var(--line); }
.bio { overflow-wrap: anywhere; }

/* ── フォーム ── */
.form { display: grid; gap: 16px; background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 0 var(--ink); }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; }
.form small { font-weight: 400; color: var(--ink-2); font-size: 0.82rem; }
.form fieldset { border: 2px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; display: grid; gap: 12px; min-width: 0; }
.form legend { font-weight: 800; padding: 0 6px; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=url], input[type=search], select, textarea {
  font: inherit; color: var(--ink); background: #fffdf8; border: 2px solid #d8cbb5; border-radius: 12px; padding: 10px 12px; width: 100%; min-width: 0; font-weight: 400;
}
input:focus, select:focus, textarea:focus { border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(63,167,255,0.25); }
input[type=file] { font: inherit; font-weight: 400; max-width: 100%; }
.check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 700 !important; }
.check input { margin-top: 0.4em; width: 18px; height: 18px; flex: none; accent-color: var(--coral); }
.req { display: inline-block; margin-left: 6px; font-size: 0.7rem; background: var(--coral); color: #fff; border-radius: 6px; padding: 0 6px; vertical-align: middle; }
.form-errors { background: #fff0f0; border: 2px solid var(--danger); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 16px; color: #8c1d1d; }
.form-errors p { font-weight: 800; margin-bottom: 4px; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.field-error { color: var(--danger); font-size: 0.85rem; }
.link-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.hint { margin: -8px 0 0; font-size: 0.92rem; }
.notice-box { background: #f5f3ff; border-radius: var(--radius-s); padding: 10px 14px; }
.notice-box p { margin: 0 0 4px; }
.counter { margin: -10px 0 0; text-align: right; }
.review-target { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.review-target h1 { margin: 0; font-size: 1.4rem; }
.thumb { width: 160px !important; flex: none; border-radius: 12px; border: 2px solid var(--ink); }
.auth .form { margin-top: 8px; }
.dev-note { background: #fff1c2; border: 2px dashed var(--warn); border-radius: 12px; padding: 8px 12px; font-size: 0.9rem; }
.mail-icon { font-size: 3.4rem; color: var(--coral); display: flex; justify-content: center; }
.withdraw { margin-top: 16px; }

/* ── マイページ ── */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.panel { background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: 0 4px 0 var(--ink); min-width: 0; }
.panel h2 { margin-top: 0; }
.my-game { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 2px dashed var(--line); }
.my-game.is-live .my-game-media .game-img { outline: 3px solid var(--mint); }
.my-game-media .game-img { border-radius: 12px; }
.progress { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.progress li { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; background: #f6efe2; border-radius: 999px; padding: 3px 10px 3px 4px; color: var(--ink-2); }
.progress .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #d8cbb5; font-size: 0.72rem; }
.progress li.done { background: #d9f7ee; color: #105b40; }
.progress li.done .dot { background: var(--mint); color: #fff; border-color: var(--mint); }
.progress li.current { background: #fff1c2; color: var(--ink); outline: 2px solid var(--sun); }
.progress .note { font-size: 0.72rem; color: var(--warn); }
.capsule-status { background: #fffaf0; border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.capsule-status p { margin: 0 0 2px; }
.capsule-dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.cdot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.cdot.on { background: linear-gradient(var(--coral) 50%, #fff 50%); }
.cdot.on:nth-child(2) { background: linear-gradient(var(--sun) 50%, #fff 50%); }
.cdot.on:nth-child(3) { background: linear-gradient(var(--mint) 50%, #fff 50%); }
.cdot.on:nth-child(4) { background: linear-gradient(var(--grape) 50%, #fff 50%); }
.capsule-panel { position: sticky; top: 76px; }
.today { font-weight: 700; }
.unused-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.unused-list li { background: #fffaf0; border-radius: 12px; padding: 10px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form select { flex: 1 1 140px; width: auto; }
.alert { background: #fff1c2; border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.alert.ok { background: #d9f7ee; color: #105b40; }
.status { display: inline-block; font-size: 0.75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #eee; vertical-align: middle; }
.status-published { background: #d9f7ee; color: #105b40; } .status-pending { background: #fff1c2; } .status-returned { background: #ffe0d0; }
.status-hidden { background: #ffe0e0; color: var(--danger); } .status-withdrawn { background: #eee; color: #666; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 1px 8px; border-radius: 6px; background: #ece8ff; color: var(--grape); margin-left: 4px; }
.tag.ok { background: #d9f7ee; color: #105b40; } .tag.warn { background: #fff1c2; color: var(--warn); }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-done .burst { width: 120px; height: 120px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--ink); background: conic-gradient(var(--coral) 0 25%, var(--sun) 0 50%, var(--mint) 0 75%, var(--sky) 0); animation: spinIn 0.8s cubic-bezier(.2,1.4,.4,1); }
@keyframes spinIn { from { transform: scale(0.4) rotate(-180deg); } }
.error-capsule { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 12px; border: 4px solid var(--ink); background: linear-gradient(#ddd 50%, #fff 50%); }

/* ── 管理画面 ── */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.admin-nav a { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 0.88rem; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; background: #fff; border: 2.5px solid var(--ink); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); }
.stat strong { font-size: 2rem; line-height: 1.1; }
.stat.warn { background: #fff1c2; }
.admin-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.admin-item > div:only-child { grid-column: 1 / -1; }
.admin-item-media .thumb { width: 100% !important; }
.admin-actions { display: grid; gap: 8px; margin-top: 10px; }
.admin-actions .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-quote { background: #fffaf0; border-left: 4px solid var(--sun); margin: 8px 0; padding: 8px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.url-list { padding-left: 1.2em; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 4px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.88rem; }
.tabs a.on { border-color: var(--ink); background: var(--sun); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 0.9rem; display: block; overflow-x: auto; }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #fff3d1; white-space: nowrap; }
.dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 6px 12px; background: #fff; padding: 14px; border-radius: 12px; }
.dl dt { font-weight: 800; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.narrow-form { max-width: 520px; }
.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }

/* ── 規約 ── */
.legal h2 { font-size: 1.15rem; border-left: 6px solid var(--coral); padding-left: 10px; }
.legal li { margin-bottom: 4px; }
.draft-note { background: #fff1c2; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 0.9rem; }

/* ── レスポンシブ ── */
@media (max-width: 880px) {
  .hero-inner, .game-detail, .dash-grid, .dash-grid.two { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 0; text-align: center; }
  .mini-steps, .hero-links { display: none; }
  .capsule-panel { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .section { padding: 24px 16px; }
  .nav { gap: 2px 10px; font-size: 0.88rem; }
  .logo { font-size: 1rem; }
  .hero { padding-top: 14px; }
  .hero-copy h1 { font-size: 1.45rem; margin-bottom: 0.3em; }
  .hero-copy .eyebrow { display: none; }
  .lead { font-size: 0.92rem; margin-bottom: 0; }
  .lead-more { display: none; }
  .gacha { padding: 10px; border-radius: 22px; }
  .platform-picker legend { font-size: 0.9rem; margin-bottom: 4px; }
  .platform-options { gap: 6px; }
  .pf-face { grid-template-columns: 1fr; text-align: center; padding: 4px 2px; min-height: 0; justify-items: center; }
  .pf-icon { grid-row: auto; font-size: 1.2rem; line-height: 1.2; }
  .pf-name { font-size: 0.78rem; }
  .pf-count { font-size: 0.68rem; }
  .machine { height: 270px; }
  .machine-fallback { transform: translateX(-50%) scale(0.8); transform-origin: bottom center; bottom: 26px; }
  .btn-spin { font-size: 1.2rem; padding: 12px 24px; }
  .result-actions { grid-template-columns: 1fr; }
  .my-game { grid-template-columns: minmax(0, 1fr); }
  .my-game-media .game-img { max-width: 220px; }
  .admin-item { grid-template-columns: minmax(0, 1fr); }
  .review-target { flex-direction: column; align-items: flex-start; }
  .link-row { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .btn-spin { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* AI連携 */
.tag.ai { background: #e0f0ff; color: #12507a; margin-left: 0; }
code.secret { display: block; word-break: break-all; padding: 8px 10px; background: #fff; border-radius: 8px; user-select: all; }

/* ログインと安全 */
.passkey-box { margin: 0 0 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b6a8c); font-size: 0.85rem; margin: 18px 0 4px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 2px dashed #e6dcc8; }
.qr { width: 200px; max-width: 100%; background: #fff; padding: 8px; border-radius: 12px; margin: 8px 0; }
.qr svg { display: block; width: 100%; height: auto; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.codes code { font-size: 1rem; letter-spacing: 0.04em; }
.key-list { list-style: none; padding: 0; }
.key-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #efe6d4; }
.mfa-nudge { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mfa-nudge p { margin: 0; }

/* ─── 余白の見直し ─── */
html { scroll-padding-top: 88px; } /* 固定ヘッダーの下に入力欄が隠れないように */
.form label > .lbl { display: block; }
.form label > .lbl .req { margin-left: 6px; }
.form + p, .form + .center, form.form + p { margin-top: 20px; }
.section-head { margin-bottom: 14px; }
.share { margin: 18px 0 22px; }
.report-links { margin-top: 24px; }
.passkey-box label { display: flex; flex-direction: column; gap: 4px; font-weight: 800; margin-bottom: 12px; }
.passkey-box .btn + p { margin-top: 8px; }
.auth h2 { margin-top: 36px; margin-bottom: 10px; }
.auth h2 + p { margin-top: 0; }
.auth form + p.small, .auth .key-list + .passkey-box { margin-top: 16px; }
.auth .notice-box, .auth .form-errors { margin: 12px 0 16px; }
.totp-setup .form { margin-top: 12px; }
@media (max-width: 600px) {
  html { scroll-padding-top: 120px; } /* スマホのヘッダーは2段 */
  .report-links { text-align: left; }
  .section-head { align-items: flex-start; }
}
/* 管理画面の表は狭い画面では横にスクロールさせ、文字を1字ずつ折り返さない */
.table td { min-width: 5.5em; }
.table td .btn { white-space: nowrap; }
.table td:has(> form) { min-width: 0; }
@media (max-width: 600px) {
  .table td, .table th { white-space: nowrap; }
  .table td:last-child, .table td.wrap { white-space: normal; min-width: 14em; }
  .table td:has(> form) { min-width: 0; }
}
.admin .check { display: flex; margin-bottom: 12px; }
.admin-nav { margin-bottom: 8px; }
.report-links a { white-space: nowrap; }
