:root {
  --bg: #fff6f0;
  --surface: #ffffff;
  --text: #3a2e28;
  --text-muted: #8a7a6e;
  --accent: #ff6f91;
  --accent2: #ffb84d;
  --border: #ffe3d1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241c1a;
    --surface: #2f2521;
    --text: #f6ece4;
    --text-muted: #c2ab9c;
    --border: #4a3a32;
  }
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
.hidden { display: none !important; }

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 18px 60px;
}

/* --- ヒーロー --- */
.hero {
  text-align: center;
  padding-bottom: 28px;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255,111,145,.12);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.hero-title {
  font-size: 2.4rem;
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.hero-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0 0 22px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.btn-random, .btn-share {
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-random {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,111,145,.35);
}
.btn-random:active { transform: scale(.97); }
.btn-share {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.toast {
  margin: 14px auto 0;
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
}

/* --- ゲームカードグリッド --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.game-card {
  display: block;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 22px rgba(58,46,40,.1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(58,46,40,.16);
}
.card-visual {
  background: var(--card-gradient);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon {
  font-size: 3.6rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.card-body {
  padding: 16px 18px 20px;
}
.card-tag {
  display: inline-block;
  background: var(--card-accent-soft);
  color: var(--card-accent);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.card-title {
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.card-pitch {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.card-cta {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--card-accent);
}

/* --- コレクション訴求 --- */
.collect-note {
  text-align: center;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: .88rem;
  color: var(--text-muted);
}

/* --- PR --- */
.ad-slot {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 0;
  margin-bottom: 24px;
  overflow: hidden;
}
.pr-badge {
  background: var(--text-muted);
  color: var(--bg);
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 4px;
}

.footer {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
