/* ─────────────────────────────────────────────────────────────
 * slotInfo · design system v2
 * dark · 資料高級感 · 金色 accent
 * ───────────────────────────────────────────────────────────── */

:root {
  /* surface scale */
  --bg-0: #07090f;      /* page bg */
  --bg-1: #0e1320;      /* section bg */
  --bg-2: #161c2c;      /* card */
  --bg-3: #1f2638;      /* raised */
  --bg-4: #2a334a;      /* hover */
  /* border */
  --bd-1: #1f2638;
  --bd-2: #2c3550;
  --bd-3: #3a4566;
  /* text */
  --t-1: #f0f3fa;       /* primary */
  --t-2: #aab2c6;       /* secondary */
  --t-3: #6b7591;       /* muted */
  --t-4: #4a5269;       /* hint */
  /* brand */
  --gold:  #F5B942;
  --gold-2:#ffcb5c;
  --gold-bg: rgba(245, 185, 66, 0.10);
  /* semantic */
  --win:   #4ade80;
  --loss:  #f87171;
  --info:  #60a5fa;
  --bonus: #a78bfa;
  --orange:#fb923c;
  /* radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  /* spacing helpers */
  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 16px;
  --gap-4: 24px;
  --gap-5: 32px;
  --gap-6: 48px;
  --gap-7: 64px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--t-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle ambient grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -100px, rgba(245,185,66,0.04), transparent 70%),
    radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.03), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--info); text-decoration: none; transition: color 0.15s; }
a:hover { color: #93c2ff; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--gap-4); }

/* ─────────── numbers / mono ─────────── */
.mono, .num, .stat-value, .ind-value, .pc-k, .games-table .num,
.spin-log .num, .pagination a { font-variant-numeric: tabular-nums; }

/* ─────────── header / footer ─────────── */
.site-header {
  background: linear-gradient(180deg, #0e1320 0%, #07090f 100%);
  border-bottom: 1px solid var(--bd-1);
  padding: var(--gap-5) 0 var(--gap-4);
  margin-bottom: var(--gap-5);
}
.site-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  margin-top: var(--gap-3); margin-bottom: calc(var(--gap-3) * -1);
  opacity: 0.4;
}
.site-logo-link { display: inline-block; line-height: 0; }
.site-logo {
  display: block;
  height: 72px;
  width: auto;
  /* Choice B: 反色 + 色相反轉 — 暗色文字翻成亮色,藍色保留藍色 (預設) */
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
/* Alt filters — add class to <img> to switch */
.site-logo.style-outline  {
  /* A: 白色描邊 + 金光 (保留原色) */
  filter:
    drop-shadow(0 0 2px rgba(255,255,255,0.95))
    drop-shadow(0 0 4px rgba(255,255,255,0.55))
    drop-shadow(0 6px 16px rgba(245,185,66,0.25));
}
.site-logo.style-neon {
  /* C: 純白剪影 + 多層彩光 */
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 4px rgba(96,165,250,0.8))
    drop-shadow(0 0 12px rgba(245,185,66,0.5));
}
.site-logo.style-glow {
  /* D: 純白光暈 */
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,1))
    drop-shadow(0 0 8px rgba(255,255,255,0.6))
    drop-shadow(0 0 24px rgba(96,165,250,0.4));
}

.site-tag { margin: 12px 0 0; color: var(--t-2); font-size: 14px; }

/* Nav-style logo for inner pages (L2/L3/L4) */
.nav-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.nav-logo {
  height: 36px; width: auto;
  filter: invert(1) hue-rotate(180deg) drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Game header card (top of L3/L4) — shows the game we're viewing */
.game-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(135deg, rgba(245,185,66,0.05), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--bd-1);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-top: var(--gap-2);
  position: relative;
  overflow: hidden;
}
.game-header::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.gh-thumb-sm {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.gh-info { flex: 1; min-width: 0; }
.gh-game-name {
  margin: 0 0 2px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.gh-game-name a { color: var(--gold); }
.gh-game-name a:hover { color: var(--gold-2); }
.gh-game-name .gh-prov { color: var(--t-3); font-weight: 500; margin-left: 6px; }
.gh-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff, #b8c2db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gh-page-sub {
  margin: 6px 0 0;
  color: var(--t-3);
  font-size: 13px;
}
@media (max-width: 600px) {
  .game-header { padding: 14px 16px; gap: 14px; }
  .gh-thumb-sm { width: 72px; height: 72px; }
  .gh-page-title { font-size: 22px; }
}
.nav-divider { width: 1px; height: 24px; background: var(--bd-2); }
.breadcrumb {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--t-3);
  letter-spacing: 0.3px;
}
.breadcrumb a { color: var(--t-2); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--gold); }
.site-footer {
  margin-top: var(--gap-7);
  padding: var(--gap-4) 0;
  border-top: 1px solid var(--bd-1);
  color: var(--t-4); text-align: center; font-size: 12px;
}

/* ─────────── section ─────────── */
section { margin-bottom: var(--gap-6); }
.section-title {
  font-size: 13px;
  margin: 0 0 var(--gap-3);
  color: var(--t-3);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 12px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--gap-3); flex-wrap: wrap; gap: var(--gap-2);
}

/* ─────────── L1 · provider cards ─────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-3);
}
.provider-card {
  position: relative;
  background:
    linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--bd-1);
  border-radius: var(--r-lg);
  padding: 18px;
  color: var(--t-1);
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex; flex-direction: column; gap: var(--gap-2);
  overflow: hidden;
}
.provider-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.provider-card:hover {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border-color: var(--bd-3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--t-1);
}
.provider-card:hover::before { opacity: 1; }
.provider-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(245,185,66,0.15);
}
.provider-card.is-active::before { opacity: 1; }
.provider-card.is-empty { opacity: 0.55; }
.pc-head { display: flex; gap: 12px; align-items: center; }
.pc-logo {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--bd-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.pc-name { margin: 0; font-size: 16px; font-weight: 700; }
.pc-meta { margin: 2px 0 0; font-size: 12px; color: var(--t-3); }
.pc-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--r-md); padding: 12px;
}
.pc-stats > div { display: flex; flex-direction: column; gap: 2px; }
.pc-k { font-size: 22px; font-weight: 700; color: var(--t-1); }
.pc-v { font-size: 10px; color: var(--t-3); text-transform: uppercase; letter-spacing: 1px; }
.pc-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.pc-time { color: var(--t-3); }
.pc-time-dim { color: var(--t-4); font-style: italic; }

/* ─────────── status tags ─────────── */
.status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.02);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.tag-na       { color: var(--t-3); }
.tag-drought  { color: var(--loss); }
.tag-low      { color: var(--orange); }
.tag-normal   { color: var(--win); }
.tag-good     { color: var(--info); }
.tag-volcano  { color: var(--gold); }

/* When tag class applied to text/numbers */
td.tag-drought, td.tag-low, td.tag-normal, td.tag-good, td.tag-volcano,
.stat-value.tag-drought, .stat-value.tag-low, .stat-value.tag-normal,
.stat-value.tag-good, .stat-value.tag-volcano,
.pc-k.tag-drought, .pc-k.tag-low, .pc-k.tag-normal,
.pc-k.tag-good, .pc-k.tag-volcano,
.ind-value, .ind-card.tag-drought .ind-value, .ind-card.tag-low .ind-value,
.ind-card.tag-normal .ind-value, .ind-card.tag-good .ind-value,
.ind-card.tag-volcano .ind-value {
  font-weight: 700;
}
.ind-card.ind-rtp.tag-drought .ind-value { color: var(--loss); }
.ind-card.ind-rtp.tag-low     .ind-value { color: var(--orange); }
.ind-card.ind-rtp.tag-normal  .ind-value { color: var(--win); }
.ind-card.ind-rtp.tag-good    .ind-value { color: var(--info); }
.ind-card.ind-rtp.tag-volcano .ind-value { color: var(--gold); }
.pc-k.tag-drought { color: var(--loss); }
.pc-k.tag-low     { color: var(--orange); }
.pc-k.tag-normal  { color: var(--win); }
.pc-k.tag-good    { color: var(--info); }
.pc-k.tag-volcano { color: var(--gold); }
td.tag-drought { color: var(--loss); }
td.tag-low     { color: var(--orange); }
td.tag-normal  { color: var(--win); }
td.tag-good    { color: var(--info); }
td.tag-volcano { color: var(--gold); }

/* ─────────── game grid (L1 top games) ─────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap-3);
}
.game-card {
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--t-1);
  text-decoration: none;
  transition: all 0.2s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--bd-3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: var(--t-1);
  text-decoration: none;
}
.gc-thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  background: var(--bg-1);
}
.gc-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--gold); font-size: 28px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.gc-body { padding: 12px 14px 14px; }
.gc-name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gc-prov { margin: 4px 0 8px; font-size: 11px; color: var(--t-3); }
.gc-stats {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--t-2);
  padding-top: 8px; border-top: 1px solid var(--bd-1);
}

/* ─────────── tables ─────────── */
.games-table, .sessions-table, .spin-log {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--bd-1);
}
.games-table th, .sessions-table th, .spin-log th {
  background: var(--bg-1);
  color: var(--t-3);
  font-weight: 600; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bd-2);
}
.games-table td, .sessions-table td, .spin-log td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--bd-1);
}
.games-table tr:last-child td,
.sessions-table tr:last-child td,
.spin-log tr:last-child td { border-bottom: 0; }
.games-table tr:hover td, .sessions-table tr:hover td {
  background: rgba(245, 185, 66, 0.03);
}
.games-table .num, .sessions-table .num, .spin-log .num {
  text-align: right; font-variant-numeric: tabular-nums;
}
.games-table .empty, .spin-log .empty {
  text-align: center; color: var(--t-3); padding: 48px;
}
.games-table a { font-weight: 500; color: var(--t-1); }
.games-table a:hover { color: var(--gold); }

/* horizontal scroll wrapper for wide data tables on narrow screens */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  scrollbar-width: thin;
}
.table-scroll > .games-table,
.table-scroll > .sessions-table,
.table-scroll > .spin-log { min-width: 540px; }

/* ─────────── search form ─────────── */
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input[type="search"] {
  background: var(--bg-2); border: 1px solid var(--bd-2); color: var(--t-1);
  padding: 8px 14px; border-radius: var(--r-md); font-size: 14px; width: 220px;
  font-family: inherit;
  transition: border 0.15s;
}
.search-form input[type="search"]:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.search-form button {
  background: var(--gold); border: 0; color: #1a1505;
  padding: 8px 18px; border-radius: var(--r-md);
  cursor: pointer; font-weight: 600; font-size: 14px;
  transition: all 0.15s;
}
.search-form button:hover { background: var(--gold-2); }
.btn-clear { font-size: 13px; color: var(--t-3); }
.btn-clear:hover { color: var(--gold); }

/* ─────────── buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: all 0.15s ease;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1505;
  box-shadow: 0 4px 12px rgba(245,185,66,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,185,66,0.35);
  text-decoration: none; color: #1a1505;
}
.btn-secondary {
  background: var(--bg-3); color: var(--t-1); border: 1px solid var(--bd-2);
}
.btn-secondary:hover {
  background: var(--bg-4); border-color: var(--bd-3); text-decoration: none; color: var(--t-1);
}
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ─────────── game hero (L2) ─────────── */
.game-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--gap-5);
  background:
    linear-gradient(135deg, rgba(245,185,66,0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--bd-1);
  border-radius: var(--r-xl);
  padding: var(--gap-4);
  margin-bottom: var(--gap-5);
  position: relative; overflow: hidden;
}
.game-hero::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,185,66,0.08), transparent 70%);
  pointer-events: none;
}
.gh-cover {
  width: 220px; height: 220px; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.gh-cover-empty {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 42px; color: var(--gold);
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.gh-title {
  margin: 0 0 8px; font-size: 36px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #b8c2db);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.gh-meta { color: var(--t-2); font-size: 14px; margin: 0 0 var(--gap-3); }
.gh-meta span { margin-right: 4px; }
.gh-actions { display: flex; gap: var(--gap-2); flex-wrap: wrap; }

/* ─────────── stat cards (L2 aggregate) ─────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--gap-2);
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 2px;
  transition: border 0.15s;
}
.stat-card:hover { border-color: var(--bd-3); }
.stat-card.stat-highlight {
  background:
    linear-gradient(135deg, var(--gold-bg), transparent 70%),
    var(--bg-2);
  border-color: var(--gold);
}
.stat-label {
  font-size: 11px; color: var(--t-3); text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 600;
}
.stat-value {
  font-size: 28px; font-weight: 700; color: var(--t-1); line-height: 1.1;
  margin: 4px 0;
}
.stat-sub { font-size: 12px; color: var(--t-3); }

/* ─────────── indicator cards (L4) ─────────── */
.indicator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-2);
  margin-bottom: var(--gap-5);
}
.ind-card {
  background:
    linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--bd-1);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.2s;
}
.ind-card:hover {
  border-color: var(--bd-3);
  transform: translateY(-2px);
}
.ind-card.ind-rtp {
  background:
    linear-gradient(135deg, var(--gold-bg), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(245,185,66,0.12);
}
.ind-icon {
  font-size: 32px; line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.ind-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ind-label {
  font-size: 11px; color: var(--t-3); text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 600;
}
.ind-value { font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--t-1); margin: 4px 0; }
.ind-sub { font-size: 13px; color: var(--t-2); }
.ind-detail { font-size: 11px; margin-top: 8px; align-self: flex-start; white-space: normal; }

/* ─────────── chart container (Chart.js) ─────────── */
.chart-card {
  background: var(--bg-2);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: var(--gap-3);
}
.chart-card h3 {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; color: var(--t-3);
  text-transform: uppercase; letter-spacing: 1px;
}
/* fixed-height wrapper so Chart.js with maintainAspectRatio:false doesn't grow infinitely */
.chart-canvas-wrap {
  position: relative;
  height: 280px;
  width: 100%;
}
.chart-canvas-wrap canvas {
  position: absolute; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
}
.chart-row { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-3); margin-bottom: var(--gap-5); }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }

/* ─────────── L3 sessions hub ─────────── */
.date-group { margin-bottom: var(--gap-4); }
.date-head {
  font-size: 13px; color: var(--t-2); font-weight: 600;
  padding: 10px 14px;
  background: var(--bg-2); border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
  margin: 0 0 var(--gap-2);
}
.sessions-table td:first-child { color: var(--gold); font-weight: 600; }

/* ─────────── L4 spin log ─────────── */
.spin-log { font-size: 13px; }
.spin-log td { padding: 8px 12px; }
.spin-log .row-thumb {
  width: 56px; height: auto; display: block; border-radius: var(--r-sm);
  transition: transform 0.2s ease, box-shadow 0.2s;
  background: var(--bg-1);
}
.thumb-link {
  display: block;
  position: relative;
  z-index: 1;
}
.thumb-link:hover { z-index: 100; }
.thumb-link:hover .row-thumb {
  transform: scale(3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px var(--gold);
}
.spin-log tr.row-big     td { background: rgba(245, 185, 66, 0.08); }
.spin-log tr.row-win     td { background: rgba(74, 222, 128, 0.04); }
.spin-log tr.row-bonus   td { background: rgba(96, 165, 250, 0.06); }
.spin-log tr.row-cascade td { color: var(--t-3); }
.spin-log tr.row-big td:nth-child(5) { color: var(--gold); }

/* mini chips for spin type */
.chip-mini {
  display: inline-block; padding: 2px 8px; border-radius: 100px;
  font-size: 10px; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.3px;
}
.chip-cascade { background: var(--bg-3); color: var(--t-3); }
.chip-bonus   { background: rgba(96, 165, 250, 0.18); color: var(--info); }
.chip-fs      { background: rgba(245, 185, 66, 0.18); color: var(--gold); }

/* ─────────── filter chips ─────────── */
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px; border-radius: 100px;
  background: var(--bg-2); border: 1px solid var(--bd-1);
  color: var(--t-2); font-size: 12px; font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.chip:hover { background: var(--bg-3); color: var(--t-1); text-decoration: none; border-color: var(--bd-3); }
.chip.is-active {
  background: var(--gold); color: #1a1505;
  border-color: var(--gold);
}

/* ─────────── pagination ─────────── */
.pagination {
  display: flex; gap: 4px; justify-content: center; align-items: center;
  margin-top: var(--gap-3); flex-wrap: wrap;
}
.pagination a {
  padding: 7px 13px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--bd-1);
  color: var(--t-2); font-size: 13px;
  text-decoration: none; min-width: 36px; text-align: center;
  transition: all 0.15s;
}
.pagination a:hover { background: var(--bg-3); color: var(--t-1); text-decoration: none; }
.pagination a.is-active {
  background: var(--gold); color: #1a1505; border-color: var(--gold); font-weight: 600;
}
.page-info { color: var(--t-3); font-size: 12px; margin-left: 12px; }

/* ─────────── gallery (L2 best wins / L3 unused, but kept) ─────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--gap-2);
}
.gallery-item {
  position: relative;
  display: block; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-2);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.gallery-item:hover {
  transform: scale(1.04);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item.gallery-win   { box-shadow: 0 0 0 2px var(--gold); }
.gallery-item.gallery-bonus { box-shadow: 0 0 0 2px var(--info); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff; font-size: 12px; font-weight: 600;
}
.gallery-caption .mult { color: var(--gold); }
.gallery-caption .win  { color: var(--win); }
.gallery-caption .zero { color: var(--t-3); }

/* ─────────── misc ─────────── */
.empty-state {
  text-align: center; padding: var(--gap-6) var(--gap-3);
  background: var(--bg-2); border: 1px dashed var(--bd-2);
  border-radius: var(--r-lg); color: var(--t-2);
}
.empty-state h2 { margin-top: 0; color: var(--t-1); }
.game-info {
  background: var(--bg-2); border: 1px solid var(--bd-1);
  border-radius: var(--r-lg); padding: 22px 26px;
}
.game-info p { margin: 6px 0; }
.game-info p strong { color: var(--gold); }
.game-info-note { color: var(--t-3); font-size: 12.5px; margin-top: 16px; line-height: 1.6; }

.game-info-lead {
  font-size: 15px; line-height: 1.85; color: var(--t-1);
  margin: 0 0 18px !important;
}

.spec-grid {
  display: grid; gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  background: var(--bd-1);
  border: 1px solid var(--bd-1);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 14px 0 18px;
}
.spec-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 16px;
  background: var(--bg-1);
}
.spec-k {
  font-size: 11px; color: var(--t-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.spec-v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px; color: var(--gold); font-weight: 600;
  line-height: 1.2;
}

.game-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 18px;
}
.tag-pill {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--bd-1); background: var(--bg-1);
  color: var(--t-2); letter-spacing: 0.02em;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tag-pill:hover { transform: translateY(-1px); border-color: var(--gold); }
.tag-theme {
  color: var(--gold);
  border-color: rgba(245, 185, 66, 0.32);
  background: rgba(245, 185, 66, 0.07);
}
.tag-mech {
  color: #9ec5fe;
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(96, 165, 250, 0.06);
}

.observation {
  margin: 18px 0 6px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.08), rgba(245, 185, 66, 0.01));
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.observation h4 {
  margin: 0 0 8px;
  font-size: 14px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.02em;
}
.observation p {
  margin: 0 !important;
  font-size: 14px; line-height: 1.85; color: var(--t-1);
}
.observation p strong { color: var(--gold); }
.note { font-size: 13px; color: var(--t-3); text-align: center; margin-top: var(--gap-2); }

/* ─────────── lightbox ─────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 11, 22, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 92vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  background: var(--bg-2);
  transition: opacity 0.18s ease;
}
.lightbox-img.is-loading { opacity: 0.3; }
.lightbox-caption {
  color: var(--t-1); font-size: 14px;
  background: rgba(20, 26, 44, 0.85);
  border: 1px solid var(--bd-1);
  padding: 8px 14px; border-radius: 999px;
  max-width: 92vw; text-align: center;
}
.lightbox-counter {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  color: var(--t-2); font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.05em;
  background: rgba(20, 26, 44, 0.75);
  border: 1px solid var(--bd-1);
  padding: 4px 12px; border-radius: 999px;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(20, 26, 44, 0.7);
  border: 1px solid var(--bd-1); color: var(--t-1);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: rgba(245, 185, 66, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav  { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* clickable thumb hover hint */
.thumb-link, .gallery-item { cursor: zoom-in; }

/* ─────────── compare page (L2.5) ─────────── */
.cmp-cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: var(--gap-3);
}
.cmp-card {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--bd-1);
  border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cmp-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.cmp-card.is-hot  { border-color: rgba(245, 185, 66, 0.55); }
.cmp-card.is-cold { border-color: rgba(96, 165, 250, 0.35); }
.cmp-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.02em; z-index: 2;
  backdrop-filter: blur(4px);
}
.cmp-badge-hot  { background: rgba(245, 185, 66, 0.92); color: #1a1a1a; }
.cmp-badge-cold { background: rgba(96, 165, 250, 0.85); color: #f0f6ff; }
.cmp-thumb {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: var(--bg-1);
}
.cmp-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--t-3); font-family: 'JetBrains Mono', monospace; font-weight: 600;
}
.cmp-card-body { padding: 14px 16px; }
.cmp-name { margin: 0 0 4px; font-size: 16px; }
.cmp-prov { margin: 0 0 12px; color: var(--t-3); font-size: 12.5px; }
.cmp-headline {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 4px;
}
.cmp-rtp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; font-weight: 700; line-height: 1;
}
.cmp-rtp-lbl { font-size: 11px; color: var(--t-3); text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-sample  { margin: 0; font-size: 12px; color: var(--t-3); }

.cmp-table-wrap {
  background: var(--bg-2); border: 1px solid var(--bd-1);
  border-radius: var(--r-lg); overflow-x: auto;
}
.cmp-table {
  width: 100%; border-collapse: collapse; min-width: 580px;
}
.cmp-table th, .cmp-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--bd-1);
  font-size: 14px; text-align: right;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.cmp-table th { color: var(--t-2); font-weight: 600; background: var(--bg-1); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .cmp-row-h {
  text-align: left; color: var(--t-2); font-weight: 600;
  background: var(--bg-1);
  font-family: 'Inter', sans-serif;
  position: sticky; left: 0;
}
.cmp-table tr:hover td { background: rgba(245, 185, 66, 0.04); }
.cmp-table tr:hover .cmp-row-h { background: rgba(245, 185, 66, 0.08); }

.chart-sub {
  margin: -6px 0 10px;
  color: var(--t-3); font-size: 12.5px; line-height: 1.5;
}

/* ─── heat strip (滑動視窗 RTP) ─── */
.heatstrip-wrap {
  background: var(--bg-2); border: 1px solid var(--bd-1);
  border-radius: var(--r-lg); padding: 16px;
}
.heatstrip {
  display: grid; gap: 3px;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
}
.hs-cell {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 4px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  cursor: default;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
  min-height: 56px;
}
.hs-cell:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.hs-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px; font-weight: 700; line-height: 1.1;
}
.hs-lbl {
  font-size: 10px; opacity: 0.78;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px; letter-spacing: 0.02em;
}
.hs-partial::after {
  content: '*';
  position: absolute; top: 2px; right: 6px;
  font-size: 11px; opacity: 0.7;
}
/* thermal scale:cold → hot 單向漸層
   blue (賠多/冷) → cyan → slate (持平) → amber (微熱) → red (爆獎)        */
.hs-na      { background: #2a2f44; color: var(--t-3); }
.hs-drought { background: #1e40af; }                       /* 深藍 - 寒徹 */
.hs-low     { background: #0891b2; }                       /* 青 - 微冷 */
.hs-normal  { background: #475569; }                       /* 中性灰 - 持平 */
.hs-good    { background: #ea7c0c; }                       /* 暖橘 - 微熱 */
.hs-volcano { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); } /* 火 - 沸騰 */

.heatstrip-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--bd-1);
  font-size: 12px; color: var(--t-2);
}
.heatstrip-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hs-sw {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 4px; vertical-align: middle;
}

/* ─────────── language switcher ─────────── */
.lang-switch {
  position: fixed; top: 14px; right: 16px; z-index: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid var(--bd-1);
  color: var(--t-1); font-size: 13px; font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.lang-switch:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-1px);
}

/* ─────────── responsive ─────────── */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .site-title { font-size: 24px; }
  .game-hero { grid-template-columns: 1fr; padding: 18px; }
  .gh-cover { width: 100%; height: auto; max-width: 220px; margin: 0 auto; }
  .gh-title { font-size: 26px; }
  .spin-log .row-thumb { width: 40px; }
  .spin-log td { padding: 6px 8px; }
  .indicator-grid { grid-template-columns: 1fr; }
  .lightbox-close, .lightbox-nav { width: 38px; height: 38px; font-size: 18px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev  { left: 8px; }
  .lightbox-next  { right: 8px; }
  .cmp-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cmp-rtp-val { font-size: 22px; }
  .cmp-table th, .cmp-table td { padding: 8px 10px; font-size: 13px; }
}
