
:root {
  --bg: #0f1220; --panel: #1a1e33; --panel2: #232845;
  --text: #e8eaf5; --muted: #9aa1c4; --line: #2e3358;
  --accent: #6ea8fe; --record: #22c55e; --near: #84cc16;
  --decent: #eab308; --watch: #94a3b8; --high: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 900px; margin: 0 auto; padding: 24px 16px 64px; }
.site-header {
  display: flex; align-items: baseline; gap: 12px;
  padding: 16px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; }
.tagline { color: var(--muted); font-size: .85rem; }
.site-footer {
  text-align: center; color: var(--muted); font-size: .8rem;
  padding: 24px; border-top: 1px solid var(--line);
}
.hero h1, .game-head h1 { margin: 0 0 4px; }
.meta { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .8rem; font-weight: 600; }
.deals .c-price { font-weight: 700; }
.deals .c-verdict { white-space: nowrap; }
.disc { color: var(--record); font-size: .8rem; margin-left: 4px; }
.gap { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.timing { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.verdict-detail { margin: 8px 0 0; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.jp { color: var(--near); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.jp-no { color: var(--muted); font-size: .72rem; }
.title-cell { display: flex; align-items: center; gap: 10px; }
.title-text { min-width: 0; }
.thumb {
  width: 72px; height: 34px; object-fit: cover; border-radius: 4px;
  flex: 0 0 auto; background: var(--panel2);
}
.img-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel2); color: var(--muted);
}
.thumb.img-ph { font-size: 16px; }
.expiry { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.expiry.urgent { color: var(--high); font-weight: 700; }
.expiry.undated { color: var(--muted); opacity: .8; }
.game-banner { margin: 4px 0 16px; }
.hero-banner {
  width: 100%; max-width: 100%; height: auto; display: block; border-radius: 12px;
  background: var(--panel2);
}
.hero-banner.img-ph { height: 200px; font-size: 52px; }
.expiry-detail { margin: 8px 0 0; font-size: .95rem; font-weight: 600; color: var(--muted); }
.expiry-detail.urgent { color: var(--high); }
.src-auto {
  display: inline-block; padding: 0 6px; border-radius: 6px;
  background: var(--panel2); color: var(--muted); font-size: .7rem; font-weight: 600;
}
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: #0b0e18;
}
.v-record { background: var(--record); }
.v-near { background: var(--near); }
.v-decent { background: var(--decent); }
.v-watch { background: var(--watch); }
.v-high { background: var(--high); color: #fff; }
.v-unknown { background: #4b5170; color: var(--text); }
.crumbs { margin-bottom: 12px; }
.game-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.card-label { color: var(--muted); font-size: .8rem; }
.card-value { font-size: 1.4rem; font-weight: 700; }
.card-value.big { font-size: 1.9rem; color: var(--accent); }
.card-sub { color: var(--muted); font-size: .8rem; min-height: 1.2em; }
.card-sub.save { color: var(--record); font-weight: 600; }
.buy {
  display: inline-block; margin: 4px 0 8px; padding: 10px 18px;
  background: var(--accent); color: #0b0e18; border-radius: 10px; font-weight: 700;
}
.buy:hover { text-decoration: none; opacity: .9; }
.chart { width: 100%; height: auto; background: var(--panel); border-radius: 12px; padding: 8px; }
.price-line { stroke: var(--accent); stroke-width: 2; }
.pt { fill: var(--accent); opacity: .55; }
.pt-low { fill: var(--record); stroke: var(--bg); stroke-width: 1.5; }
.pt-current { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.cur-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; opacity: .8; }
.cur-label { fill: var(--accent); font-size: 12px; font-weight: 700; }
.axis-label { fill: var(--muted); font-size: 11px; }
.low-line { stroke: var(--record); stroke-width: 1; stroke-dasharray: 4 4; }
.low-label { fill: var(--record); font-size: 11px; }
.muted { color: var(--muted); }
@media (max-width: 640px) {
  .price-cards { grid-template-columns: 1fr; }
}
