:root {
  --bg1: #1f4d3a;
  --bg2: #0f2a22;
  --ink: #f4efe4;
  --muted: #c7d5cc;
  --card: rgba(255, 248, 235, 0.1);
  --line: rgba(244, 239, 228, 0.22);
  --accent: #f0b429;
  --accent-ink: #1a1408;
  --font-display: "Hiragino Maru Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  --font-body: "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #2f7a58 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #8a5a1c 0%, transparent 45%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}
.hero, .list, .foot, .game-shell { width: min(720px, calc(100% - 2rem)); margin-inline: auto; }
.hero { padding: 3.5rem 0 1.5rem; }
.brand { margin: 0 0 0.75rem; font-size: clamp(2rem, 6vw, 3rem); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; }
.hero h1 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; }
.lead, .foot { color: var(--muted); }
.lead { margin: 0.75rem 0 0; max-width: 28rem; line-height: 1.6; }
.list { display: grid; gap: 0.85rem; padding: 1rem 0 2rem; }
.game-link { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); color: inherit; text-decoration: none; }
.game-link:hover, .game-link:focus-visible { transform: translateY(-2px); background: rgba(255, 248, 235, 0.16); outline: none; }
.game-id { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.85rem; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.game-meta { display: grid; gap: 0.2rem; }
.game-meta strong { font-size: 1.05rem; }
.game-meta span { color: var(--muted); font-size: 0.92rem; }
.foot { padding-bottom: 2.5rem; font-size: 0.9rem; line-height: 1.5; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.topbar a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(0, 0, 0, 0.18); }
.panel h1 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.panel p { margin: 0 0 1rem; color: var(--muted); line-height: 1.5; }
.score { margin-bottom: 0.75rem; font-weight: 700; }
.playfield { position: relative; height: min(55vh, 420px); border-radius: 1rem; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%), #16382c; border: 1px solid var(--line); cursor: crosshair; user-select: none; }
.target { position: absolute; width: 64px; height: 64px; border: 0; border-radius: 50%; background: #f6d27a; box-shadow: 0 8px 20px rgba(0,0,0,0.25); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.choices { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choices button, .actions button { appearance: none; border: 0; border-radius: 999px; padding: 0.7rem 1.1rem; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
.choices button.secondary, .actions button.secondary { background: rgba(255, 248, 235, 0.14); color: var(--ink); }
.actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
@media (max-width: 560px) { .hero { padding-top: 2.25rem; } .game-link { grid-template-columns: 1fr; } }
