:root {
  --bg: #070b14;
  --panel: rgba(15, 22, 37, .86);
  --panel-2: rgba(25, 35, 56, .86);
  --line: rgba(129, 148, 184, .18);
  --line-2: rgba(129, 148, 184, .12);
  --text: #edf4ff;
  --muted: #92a2bd;
  --accent: #47d6ff;
  --signal: #8b5cf6;
  --accent-soft: rgba(71, 214, 255, .13);
  --vip: #f5bc58; --vip-bg: rgba(245, 188, 88, .14);
  --hot: #ff646b; --hot-bg: rgba(255, 100, 107, .14);
  --ok: #47e59a; --ok-bg: rgba(71, 229, 154, .14);
  --pop: #55a7ff; --pop-bg: rgba(85, 167, 255, .14);
  --hid: #b993ff; --hid-bg: rgba(185, 147, 255, .14);
  --warn: #f2a65a; --warn-bg: rgba(242, 166, 90, .14);
  --loc: #6ee7f9; --loc-bg: rgba(110, 231, 249, .14);
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.035);
}
html { color-scheme: dark; background: #050812; }
* { box-sizing: border-box; }
body {
  margin: 0; background-color: var(--bg); color: var(--text);
  font: 14px/1.55 "Inter", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(135deg, rgba(71,214,255,.16) 0%, transparent 28%),
    linear-gradient(225deg, rgba(139,92,246,.16) 0%, transparent 30%),
    linear-gradient(180deg, #080c16 0%, #070b14 48%, #050812 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body, input, select, button, textarea { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; }
.muted { color: var(--muted); }

.topbar {
  display: grid; grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(8, 12, 22, .76); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(0,0,0,.2);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--signal));
  color: #06101d; font-weight: 900; letter-spacing: .4px;
  box-shadow: 0 0 34px rgba(71,214,255,.26);
}
.brand h1 { font-size: 19px; letter-spacing: .2px; }
.brand .tag { margin: 2px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
nav::-webkit-scrollbar { display: none; }
nav a { flex: 0 0 auto; padding: 8px 13px; border-radius: 8px; color: var(--muted); font-weight: 700; white-space: nowrap; line-height: 1.2; }
nav a:hover { background: rgba(255,255,255,.06); color: var(--text); }
nav a.active { background: linear-gradient(135deg, rgba(71,214,255,.18), rgba(139,92,246,.18)); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(71,214,255,.22); }

main { padding: 28px; max-width: 1240px; margin: 0 auto; }
.loading { color: var(--muted); padding: 48px; text-align: center; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 26px 28px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(71,214,255,.15), rgba(139,92,246,.1) 38%, rgba(15,22,37,.72)),
    var(--panel);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset: auto -10% -55% 38%;
  height: 180px; background: radial-gradient(circle, rgba(71,214,255,.18), transparent 66%);
  pointer-events: none;
}
.page-head h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: 0; line-height: 1.05; }
.page-head p { color: var(--muted); margin: 10px 0 0; max-width: 680px; line-height: 1.7; }
.kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* cards & grid */
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 22px; }
.kpi { background: linear-gradient(180deg, rgba(25,35,56,.92), rgba(12,18,32,.92)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--accent), var(--signal)); opacity: .82; }
.kpi .n { font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: 0; text-shadow: 0 0 24px rgba(71,214,255,.24); }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; }

.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.card h3 { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px; font-weight: 650; }
.two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.note-card { margin-bottom: 16px; border-left: 3px solid var(--accent); }
.note-card.warn { border-left-color: var(--warn); }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-title-row h3 { margin: 0; }
.card-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 500; }
.insight-row { padding: 9px 0 9px 14px; line-height: 1.7; border-left: 2px solid var(--accent-soft); border-bottom: 1px solid var(--line-2); }

/* bar chart — single flat accent */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 12px; font-size: 13px; }
.bar-row .label { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { display: block; background: rgba(255,255,255,.07); border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--accent), var(--signal)); border-radius: 6px; box-shadow: 0 0 16px rgba(71,214,255,.32); }
.bar-row .val { text-align: right; color: var(--muted); }

.revenue-panel { margin-bottom: 16px; overflow: hidden; }
.revenue-overview { display: grid; gap: 18px; }
.revenue-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: center; }
.pie {
  width: 100%; max-width: 240px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; position: relative; margin: 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 18px 44px rgba(0,0,0,.24);
}
.pie::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: #0b1220; box-shadow: inset 0 0 0 1px var(--line); }
.pie span { position: relative; z-index: 1; display: grid; gap: 4px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.25; max-width: 92px; }
.pie b { color: var(--text); font-size: 24px; line-height: 1; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.legend-row {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 9px;
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.035); color: var(--text); text-align: left; cursor: pointer;
}
.legend-row:hover, .legend-row.on { border-color: rgba(71,214,255,.42); background: var(--accent-soft); }
.legend-row .swatch { width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 14px rgba(255,255,255,.16); }
.legend-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.legend-val { color: var(--muted); }
.revenue-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.revenue-summary div { padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.035); }
.revenue-summary span { display: block; color: var(--muted); font-size: 11px; }
.revenue-summary b { display: block; margin-top: 3px; color: var(--text); font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revenue-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.revenue-cat-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 13px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--text); min-width: 0; overflow: hidden; }
.revenue-cat-card:hover { border-color: rgba(71,214,255,.42); background: var(--accent-soft); }
.revenue-cat-top { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.revenue-cat-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revenue-cat-top b { font-size: 16px; }
.revenue-meter { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.revenue-meter span { display: block; height: 100%; min-width: 2px; border-radius: inherit; }
.revenue-cat-meta { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; }
.revenue-cat-meta span { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revenue-detail-head { margin-bottom: 16px; }
.revenue-table table { min-width: 1180px; }
.revenue-table tr.longtail-row { background: rgba(125,125,160,.06); }
.revenue-table tr.longtail-row td { color: var(--muted, #8b93a7); font-style: italic; }
.revenue-table tr.longtail-row td strong { color: var(--muted, #8b93a7); font-weight: 600; }

/* game library thumbnails */
.game-cell { display: flex; align-items: center; gap: 10px; }
.game-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: rgba(125,125,160,.12); }
.game-thumb.ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted, #8b93a7); font-size: 14px; }
.game-thumb.sm { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.game-thumb.xs { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.game-thumb.lg { width: 64px; height: 64px; border-radius: 14px; }
.game-mini { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; }
.game-mini strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-chip { padding-left: 4px; max-width: 180px; }
.game-chip .game-thumb { margin-right: 2px; }
.detail-title-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.detail-title-row h2 { min-width: 0; overflow-wrap: anywhere; }
.upcoming-panel {
  margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8,12,22,.58); box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.upcoming-panel .card-title-row { margin-bottom: 12px; align-items: flex-start; gap: 14px; }
.upcoming-panel h3 { margin: 0 0 4px; font-size: 17px; }
.upcoming-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.upcoming-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.upcoming-actions select {
  background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 7px 10px;
  border-radius: 8px; font-size: 12px; outline: none;
}
.upcoming-datebar {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255,255,255,.028);
}
.upcoming-current { min-width: 0; text-align: center; }
.upcoming-current span { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; }
.upcoming-current strong { display: block; margin-top: 2px; color: var(--text); font-size: 16px; line-height: 1.2; }
.icon-btn {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: rgba(71,214,255,.42); background: var(--accent-soft); color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.upcoming-dates { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 11px; scrollbar-width: thin; }
.date-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.035);
  color: var(--muted); font-weight: 750; white-space: nowrap; cursor: pointer;
}
.date-pill span {
  min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.06);
  color: var(--text); font-size: 11px; text-align: center;
}
.date-pill:hover, .date-pill.on { color: var(--accent); border-color: rgba(71,214,255,.42); background: var(--accent-soft); }
.upcoming-strip {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity;
  scrollbar-width: thin; cursor: grab; touch-action: pan-x;
}
.upcoming-strip:active { cursor: grabbing; }
.upcoming-card {
  flex: 0 0 320px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
  min-width: 0; padding: 11px; border-radius: 10px; color: var(--text);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.035); scroll-snap-align: start;
}
.upcoming-card:hover { border-color: rgba(71,214,255,.42); background: rgba(71,214,255,.08); }
.upcoming-main { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 11px; align-items: center; min-width: 0; }
.upcoming-main .game-thumb.lg { width: 48px; height: 48px; border-radius: 9px; }
.upcoming-provider { color: var(--accent); font-size: 12px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-main strong { display: block; margin-top: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14px; }
.upcoming-meta { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-tags { margin-top: 7px; max-height: 22px; overflow: hidden; }

.ps-trend-card { overflow: hidden; }
.ps-trend-list { display: grid; gap: 9px; }
.ps-trend-row {
  display: grid; grid-template-columns: auto minmax(150px, 1fr) minmax(180px, .9fr) auto; gap: 11px; align-items: center;
  min-width: 0; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03);
}
.ps-trend-copy { min-width: 0; display: grid; gap: 3px; }
.ps-trend-copy strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14px; }
.ps-trend-copy span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ps-trend-meter { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); }
.ps-trend-meter i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--signal)); }
.ps-trend-row b { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.opportunity-panel {
  margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(71,214,255,.07), rgba(160,116,255,.04));
}
.opportunity-panel .card-title-row { margin-bottom: 12px; align-items: flex-start; gap: 14px; }
.opportunity-panel h3 { margin: 0 0 4px; font-size: 17px; }
.opportunity-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.opportunity-shortcuts {
  display: block;
  margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8,12,22,.42);
}
.opportunity-shortcuts h3 { margin: 0 0 4px; font-size: 15px; }
.opportunity-shortcuts p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.shortcut-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.shortcut-card {
  min-width: 0; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255,255,255,.035); color: var(--text); text-align: left; cursor: pointer;
}
.shortcut-card:hover, .shortcut-card.active { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); }
.shortcut-card.active strong { color: var(--accent); }
.shortcut-card strong, .shortcut-card span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortcut-card strong { font-size: 13px; }
.shortcut-card span { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.opportunity-help { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.source-readiness { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.source-readiness div { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.source-readiness b { display: block; color: var(--accent); font-size: 24px; line-height: 1.1; }
.source-readiness span { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.source-state { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.source-state.ready { background: var(--ok-bg); color: var(--ok); }
.source-state.watch { background: var(--loc-bg); color: var(--loc); }
.source-state.blocked { background: var(--hot-bg); color: var(--hot); }
.platform-action-brief { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 16px; }
.platform-action-brief > span { display: inline-flex; justify-content: center; padding: 4px 8px; border-radius: 999px; background: var(--loc-bg); color: var(--loc); font-size: 12px; font-weight: 800; }
.platform-action-brief strong { display: block; color: var(--text); line-height: 1.5; }
.platform-action-brief p { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }

.insight-brief { margin-bottom: 16px; border-top: 3px solid var(--accent); }
.insight-brief .card-title-row { margin-bottom: 12px; align-items: flex-start; }
.insight-brief h3 { margin: 0 0 5px; }
.insight-brief p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.insight-tile { min-width: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.035); }
.insight-tile span { display: inline-flex; margin-bottom: 7px; color: var(--accent); font-size: 12px; font-weight: 800; }
.insight-tile p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.6; }

.overview-flow { display: grid; gap: 16px; align-items: start; }
.overview-card { overflow: hidden; }
.overview-stack { display: grid; gap: 16px; }
.ph-pulse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pulse-col { min-width: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.pulse-col h4 { margin: 0 0 10px; color: var(--text); font-size: 13px; }
.pulse-col.up h4 { color: var(--ok); }
.pulse-col.down h4 { color: var(--hot); }
.pulse-row { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line-2); min-width: 0; }
.pulse-row:first-of-type { border-top: 0; padding-top: 0; }
.pulse-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pulse-row span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.pulse-row b { color: inherit; }

.trend-readable-list { display: grid; gap: 11px; }
.trend-readable-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.trend-readable-row.rich { grid-template-columns: auto minmax(0, 1fr); padding: 13px; }
.trend-readable-row strong { display: block; color: var(--text); font-size: 14px; }
.trend-readable-row p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.trend-readable-row > b { color: var(--accent); font-size: 13px; }
.trend-main { display: grid; gap: 9px; min-width: 0; }
.trend-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.trend-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.trend-head b { color: var(--accent); font-size: 13px; white-space: nowrap; }
.trend-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.trend-meta span { padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 11.5px; }
.trend-meta .loc-signal { color: var(--loc); background: var(--loc-bg); border-color: transparent; }
.trend-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trend-games a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255,255,255,.03); color: var(--text); }
.trend-games a:hover { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); }
.trend-games span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 12.5px; }
.trend-games em { color: var(--accent); font-style: normal; font-size: 12px; }
.trend-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; background: rgba(110,231,249,.07); border: 1px solid rgba(110,231,249,.14); }
.trend-gap span { color: var(--loc); font-size: 12px; font-weight: 800; }
.trend-gap a { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; font-weight: 700; }

.decision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.decision-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; transition: border-color .12s, transform .12s, background .12s; }
.decision-card:hover { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); transform: translateY(-1px); }
.game-thumb.decision { width: 64px; height: 64px; border-radius: 13px; font-size: 19px; }
.decision-main { min-width: 0; display: grid; gap: 7px; }
.decision-main > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.decision-provider { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; }
.decision-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.decision-meta span { padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 11.5px; background: rgba(255,255,255,.035); }
.score-badge { display: inline-flex; justify-content: center; min-width: 34px; padding: 3px 8px; border-radius: 999px; background: var(--loc-bg); color: var(--loc); font-weight: 800; }

.radar-change-list { display: grid; gap: 8px; }
.radar-action-block { display: grid; gap: 8px; }
.radar-action-block h4 { margin: 0; color: var(--text); font-size: 13px; }
.radar-change-list a { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(260px, .52fr); gap: 12px; align-items: start; min-width: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--text); }
.radar-change-list a:hover { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); }
.change-kind { display: inline-flex; justify-content: center; padding: 3px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.change-kind.rank_riser { background: var(--ok-bg); color: var(--ok); }
.change-kind.rank_faller { background: var(--hot-bg); color: var(--hot); }
.change-kind.new_external_game { background: var(--loc-bg); color: var(--loc); }
.change-kind.shelf_missing { background: var(--hot-bg); color: var(--hot); }
.change-kind.multi_platform_hot { background: var(--ok-bg); color: var(--ok); }
.change-copy { min-width: 0; display: grid; gap: 4px; }
.change-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.change-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.change-head b { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; background: rgba(71,214,255,.12); color: var(--accent); font-size: 11px; font-weight: 800; }
.change-copy p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.change-copy .change-action { color: var(--text); }
.radar-change-list em { min-width: 0; color: var(--muted); font-style: normal; font-size: 12px; line-height: 1.45; text-align: right; overflow-wrap: anywhere; }
.watchlist-summary { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.025); }
.radar-action-block + .watchlist-summary { margin-top: 12px; }
.watchlist-status { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.watchlist-status > span { display: inline-flex; justify-content: center; padding: 3px 8px; border-radius: 999px; background: var(--loc-bg); color: var(--loc); font-size: 11px; font-weight: 800; }
.watchlist-status strong { display: block; color: var(--text); font-size: 14px; }
.watchlist-status p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.watchlist-status .change-action { color: var(--text); }

.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.quality-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 11px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.quality-row strong, .quality-row span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality-row span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.quality-row b { color: var(--accent); font-size: 18px; line-height: 1.1; }
.quality-meter { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.quality-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--signal)); }
.quality-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }

.shelf-radar-card { margin-top: 16px; }
.shelf-radar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.shelf-radar-row { display: grid; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.03); }
.shelf-radar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.shelf-radar-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.shelf-radar-head span { color: var(--accent); font-size: 12px; font-weight: 800; white-space: nowrap; }
.provider-mini-row { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.provider-mini-row span { max-width: 100%; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.055); color: var(--text); font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-mini-row span.unknown { background: var(--hot-bg); color: var(--hot); }
.provider-mini-row.detail { margin-bottom: 10px; }
.shelf-platform-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.shelf-platform-summary div { padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.shelf-platform-summary b, .shelf-platform-summary span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-platform-summary b { color: var(--accent); font-size: 20px; line-height: 1.1; }
.shelf-platform-summary span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.shelf-game-list { display: grid; gap: 7px; }
.shelf-game-list.detail { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.shelf-game-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255,255,255,.03); color: var(--text); }
.shelf-game-list a:hover { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); }
.shelf-game-list span, .shelf-game-list em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-game-list span { font-size: 12.5px; font-weight: 750; }
.shelf-game-list em { color: var(--accent); font-style: normal; font-size: 12px; }
.provider-heat-list { display: grid; gap: 8px; margin-top: 12px; }
.provider-heat-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.provider-heat-list strong, .provider-heat-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-heat-list span { color: var(--muted); font-size: 12px; }
.operations-radar-card { display: grid; gap: 12px; }
.operations-grid, .operations-platforms { display: grid; gap: 8px; }
.operation-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 86px; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); min-width: 0; }
.operation-kind { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; border-radius: 999px; background: var(--loc-bg); color: var(--loc); font-size: 11px; font-weight: 900; }
.operation-row strong, .operation-row p, .operation-row em { min-width: 0; overflow-wrap: anywhere; }
.operation-row strong { display: block; font-size: 13px; }
.operation-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.operation-row em { color: var(--muted); font-size: 12px; font-style: normal; text-align: right; white-space: nowrap; }
.operations-platforms { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.operations-platforms div { padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); min-width: 0; }
.operations-platforms strong, .operations-platforms span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-platforms span { margin-top: 3px; color: var(--accent); font-size: 12px; font-weight: 800; }
.operations-platforms p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.platform-operations-card, .coverage-card { display: grid; gap: 12px; }
.coverage-table table { min-width: 780px; }
.coverage-table td, .coverage-table th { vertical-align: top; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 999px; background: var(--muted); box-shadow: 0 0 0 3px rgba(255,255,255,.04); vertical-align: middle; }
.status-dot.ok { background: var(--ok); }
.status-dot.error { background: var(--hot); }
.coverage-mini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.coverage-mini strong, .coverage-mini em, .coverage-mini p { min-width: 0; overflow-wrap: anywhere; }
.coverage-mini em { color: var(--muted); font-style: normal; font-size: 12px; white-space: nowrap; }
.coverage-mini p { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.coverage-entry { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 0; color: var(--muted); font-size: 12px; }
.coverage-entry span { font-weight: 800; color: var(--text); }
.coverage-entry p { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.decision-brief, .evidence-card { margin-top: 16px; }
.decision-brief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.decision-copy { display: grid; gap: 10px; }
.decision-copy div { padding: 11px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.decision-copy span, .evidence-grid span { display: block; margin-bottom: 5px; color: var(--accent); font-size: 12px; font-weight: 800; }
.decision-copy p, .evidence-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.evidence-grid > div { min-width: 0; padding: 11px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); }
.evidence-grid b { display: block; color: var(--text); font-size: 18px; line-height: 1.2; }

.local-summary-card { overflow: hidden; }
.local-summary { display: grid; grid-template-columns: repeat(2, minmax(130px, 180px)) minmax(240px, 1fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
.summary-metric, .summary-copy { min-width: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.035); }
.summary-metric b { display: block; color: var(--accent); font-size: 24px; line-height: 1.1; }
.summary-metric span, .summary-copy > span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.summary-copy { display: grid; gap: 8px; }
.summary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 9px; align-items: center; min-width: 0; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--text); }
.summary-list a:hover { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); }
.summary-list .game-thumb { grid-row: 1 / span 2; }
.summary-list strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.summary-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }

/* provider website links */
.provider-link { color: inherit; display: inline-flex; max-width: 100%; vertical-align: middle; }
.provider-link:hover .provider-pill strong { color: var(--accent); }
.provider-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; }
.provider-pill strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .12s; }
.provider-pill.compact { gap: 6px; }
.provider-pill.chip {
  padding: 3px 10px 3px 5px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line);
}
.provider-logo {
  width: 28px; height: 28px; border-radius: 7px; object-fit: contain; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--line);
}
.provider-logo.ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel-2); color: var(--muted); font-size: 11px; font-weight: 800;
}
.provider-pill.compact .provider-logo { width: 22px; height: 22px; border-radius: 6px; }
.provider-pill.chip .provider-logo { width: 20px; height: 20px; border-radius: 6px; }
.provider-chip-list { align-items: center; }
.provider-brief { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; margin-bottom: 16px; }
.provider-summary-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.provider-profile-main { min-width: 0; }
.provider-profile-main p { margin: 10px 0; color: var(--muted); max-width: 880px; }
.provider-titleline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.provider-metrics { display: block; min-width: 0; }
.provider-metrics .kpi { min-height: 0; padding: 14px 16px; box-shadow: none; background: rgba(255,255,255,.035); }
.provider-metrics .kpi .n { font-size: 28px; }
.dot-sep { color: var(--muted); }

/* chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); white-space: nowrap; }
.chip.sm { font-size: 11px; padding: 2px 8px; }
.tag-high_vip { background: var(--vip-bg); color: var(--vip); border-color: transparent; }
.tag-high_volatility { background: var(--hot-bg); color: var(--hot); border-color: transparent; }
.tag-high_rtp { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.tag-high_popularity { background: var(--pop-bg); color: var(--pop); border-color: transparent; }
.tag-hidden_direct { background: var(--hid-bg); color: var(--hid); border-color: transparent; }
.tag-new_release { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.tag-localization_candidate { background: var(--loc-bg); color: var(--loc); border-color: transparent; }
.chip.mk { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.lic-pagcor { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.lic-offshore { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.lic-unlicensed { background: var(--hot-bg); color: var(--hot); border-color: transparent; }
.lic-banned { background: #f3d9d9; color: #a32020; border-color: transparent; }
.lic-unknown { background: var(--panel-2); color: var(--muted); border-color: transparent; }
.pf-cell { display: flex; align-items: center; gap: 10px; }
.pf-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.pf-logo.ph { background: var(--panel-2); }
.pf-logo.lg { width: 64px; height: 64px; border-radius: 14px; }

/* explorer */
.workbench { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8,12,22,.42); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.workbench .filters { margin-bottom: 0; }
.filters input, .filters select { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 9px 12px; border-radius: 9px; font-size: 13px; outline: none; transition: border-color .15s; }
.filters input:focus, .filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters input[type=search] { min-width: 230px; }
.provider-filters { margin-top: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.provider-filters select { min-width: 150px; }
.provider-filter-count { margin-left: auto; font-size: 12px; white-space: nowrap; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
th { color: var(--muted); font-weight: 700; background: #111a2c; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: rgba(71,214,255,.07); }
.rank-badge { font-weight: 700; color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.table-wrap { width: 100%; overflow-x: auto; border-radius: 12px; }
.table-wrap table { min-width: 860px; }
.platform-table table { min-width: 1460px; table-layout: fixed; }
.platform-table th, .platform-table td { overflow-wrap: normal; word-break: keep-all; }
.platform-table th:nth-child(1), .platform-table td:nth-child(1) { width: 5%; white-space: nowrap; }
.platform-table th:nth-child(2), .platform-table td:nth-child(2) { width: 17%; }
.platform-table th:nth-child(3), .platform-table td:nth-child(3) { width: 13%; }
.platform-table th:nth-child(4), .platform-table td:nth-child(4) { width: 13%; }
.platform-table th:nth-child(5), .platform-table td:nth-child(5) { width: 5%; white-space: nowrap; }
.platform-table th:nth-child(6), .platform-table td:nth-child(6) { width: 10%; white-space: nowrap; }
.platform-table th:nth-child(7), .platform-table td:nth-child(7) { width: 7%; white-space: nowrap; }
.platform-table th:nth-child(8), .platform-table td:nth-child(8) { width: 15%; }
.platform-table th:nth-child(9), .platform-table td:nth-child(9) { width: 11%; }
.platform-table th:nth-child(10), .platform-table td:nth-child(10) { width: 4%; white-space: nowrap; }
.company-link { color: var(--text); font-weight: 700; text-decoration: none; }
.company-link:hover { color: var(--accent); }

/* detail */
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--accent); }
.detail-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.detail-head h2 { font-size: 24px; letter-spacing: -.3px; }
.detail-head .prov { color: var(--muted); margin-top: 4px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.meta-grid .m .k { color: var(--muted); font-size: 12px; }
.meta-grid .m .v { font-size: 18px; font-weight: 700; margin-top: 3px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--signal)); color: #06101d; font-weight: 800; border: none; cursor: pointer; box-shadow: 0 0 24px rgba(71,214,255,.18); }
.btn:hover { filter: brightness(1.06); color: #06101d; }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.07); filter: none; }
.btn.sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }
.btn.ghost.danger { color: var(--hot); border-color: #f1cdcb; }
.btn.ghost.danger:hover { background: var(--hot-bg); filter: none; }

/* generic small text + auth/admin chrome */
.sm { font-size: 12px; }
.userbox { display: flex; align-items: center; gap: 12px; }
.userbox .user-name { color: var(--muted); font-size: 13px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; }
.admin-actions { text-align: right; }
.admin-action-buttons { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; justify-content: flex-end; }
.nowrap { white-space: nowrap; }
.admin-table { width: 100%; overflow-x: auto; border-radius: 12px; }
.admin-table table { min-width: 1040px; table-layout: fixed; }
.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 29%; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 10%; }
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 9%; }
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 13%; }
.admin-table th:nth-child(5), .admin-table td:nth-child(5) { width: 13%; }
.admin-table th:nth-child(6), .admin-table td:nth-child(6) { width: 26%; }
.admin-table .btn.sm { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
table.responsive-table td { vertical-align: top; }
tbody tr.row-off { opacity: .55; }
tbody tr.row-off:hover { opacity: 1; }
.section-title { margin: 22px 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.section-subtitle { margin: 16px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.reason { color: var(--muted); font-size: 12px; }
.flag { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--panel-2); color: var(--muted); font-weight: 600; }
.flag.live { color: var(--ok); background: var(--ok-bg); }
.flag.vip { color: var(--vip); background: var(--vip-bg); }
.flag.hidden { color: var(--hid); background: var(--hid-bg); }
.flag.estimate { color: var(--warn); background: var(--warn-bg); vertical-align: middle; margin-left: 5px; }

.foot { padding: 16px 28px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; background: rgba(8, 12, 22, .76); }
.empty { color: var(--muted); padding: 32px; text-align: center; }

/* info "?" tooltip on card / section titles */
.info { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); font-size: 10px; font-weight: 700; line-height: 1; cursor: help; margin-left: 6px; position: relative; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.info:hover, .info:focus { background: var(--accent); color: #fff; outline: none; }
.info .tip { display: none; position: absolute; left: 0; top: 150%; width: max-content; max-width: 300px; background: #1f2430; color: #fff; font-size: 12px; font-weight: 400; line-height: 1.55; padding: 9px 11px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.22); z-index: 50; white-space: normal; text-align: left; }
.info .tip::before { content: ''; position: absolute; left: 4px; bottom: 100%; border: 5px solid transparent; border-bottom-color: #1f2430; }
.info:hover .tip, .info:focus .tip { display: block; }

/* 玩法库 */
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .12s; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.ps-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ps-card { display: flex; flex-direction: column; cursor: pointer; transition: border-color .12s, transform .12s, box-shadow .12s; }
.ps-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(0,0,0,.22), 0 0 26px rgba(71,214,255,.1); }
.ps-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ps-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; box-shadow: inset 0 0 18px rgba(71,214,255,.08); }
.ps-icon.lg { width: 58px; height: 58px; border-radius: 14px; }
.ps-name { font-size: 16px; font-weight: 650; }
.ps-en { font-size: 12px; }
.ps-sum { color: var(--text); font-size: 13px; line-height: 1.6; min-height: 42px; }
.ps-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-2); }
.ps-heat { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ps-heat b { color: var(--accent); }
.heat { display: inline-block; width: 56px; height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.heat-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--signal)); border-radius: 999px; }
.signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.signal-card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.045); border: 1px solid var(--line-2); }
.loc-grid { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.loc-card { display: flex; flex-direction: column; gap: 12px; min-height: 224px; color: var(--text); text-decoration: none; transition: border-color .12s, transform .12s, background .12s; }
.loc-card:hover { border-color: rgba(71,214,255,.5); background: rgba(71,214,255,.075); transform: translateY(-1px); }
.loc-card-top { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 12px; }
.game-thumb.loc { width: 58px; height: 58px; border-radius: 12px; font-size: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.loc-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.loc-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.loc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.loc-section { display: grid; gap: 5px; font-size: 12.5px; line-height: 1.55; }
.loc-section b { color: var(--accent); font-size: 12px; }
.loc-section span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.loc-mechanics { margin-top: auto; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 4px 0 2px;
    border-top: 1px solid var(--line-2);
  }
}

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr; align-items: stretch; padding: 12px 16px; }
  .brand { width: 100%; }
  .brand .logo { width: 36px; height: 36px; border-radius: 10px; }
  .brand h1 { font-size: 18px; }
  nav {
    grid-column: auto;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 6px 16px 2px;
  }
  nav a { padding: 8px 12px; }
  .userbox { width: 100%; justify-content: space-between; }
  main { padding: 18px 14px; }
  .page-head { align-items: flex-start; flex-direction: column; padding: 22px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 0; justify-content: center; min-width: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; min-height: 116px; }
  .kpi .n { font-size: 28px; }
  .filters input[type=search] { min-width: 100%; }
  .filters select, .filters button { flex: 1 1 auto; min-width: 140px; }
  .provider-filter-count { width: 100%; margin-left: 0; }
  .revenue-layout { grid-template-columns: 1fr; }
  .pie { max-width: 220px; }
  .revenue-summary { grid-template-columns: 1fr; }
  .provider-brief { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .ph-pulse-grid { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .local-summary { grid-template-columns: 1fr; }
  .summary-list { grid-template-columns: 1fr; }
  .trend-games { grid-template-columns: 1fr; }
  .ps-trend-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ps-trend-meter { grid-column: 2 / -1; }
  .shortcut-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-brief-grid, .evidence-grid { grid-template-columns: 1fr; }
  .radar-change-list a { grid-template-columns: 1fr; align-items: start; }
  .radar-change-list em { text-align: left; }
  .operation-row { grid-template-columns: 1fr; }
  .operation-row em { text-align: left; }
  .shelf-game-list.detail { grid-template-columns: 1fr; }
  .coverage-entry { align-items: flex-start; flex-direction: column; }
  .coverage-entry p { white-space: normal; }
}

@media (max-width: 760px) {
  .card { padding: 16px; }
  .card-title-row { align-items: flex-start; flex-direction: column; }
  .opportunity-panel { padding: 14px; }
  .decision-card { grid-template-columns: 54px minmax(0, 1fr); }
  .game-thumb.decision { width: 54px; height: 54px; border-radius: 11px; }
  .trend-readable-row { grid-template-columns: auto minmax(0, 1fr); }
  .trend-readable-row > b { grid-column: 2; }
  .table-wrap.responsive-cards,
  .admin-table.responsive-cards { overflow: visible; }
  table.responsive-table,
  table.responsive-table thead,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td { display: block; width: 100%; }
  table.responsive-table { min-width: 0; border-collapse: separate; border-spacing: 0; }
  .table-wrap.responsive-cards table.responsive-table { table-layout: auto; }
  .table-wrap.responsive-cards table.responsive-table th,
  .table-wrap.responsive-cards table.responsive-table td {
    width: 100%;
    white-space: normal;
  }
  table.responsive-table thead { display: none; }
  table.responsive-table tbody { display: grid; gap: 12px; }
  table.responsive-table tr {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(10, 16, 29, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  }
  table.responsive-table td {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-2);
    overflow-wrap: anywhere;
  }
  table.responsive-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  table.responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  table.responsive-table td[colspan]::before { content: none; }
  table.responsive-table td[colspan] { display: block; }
  table.responsive-table td.admin-actions {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
  }
  table.responsive-table td.admin-actions::before { content: attr(data-label); }
  table.responsive-table .admin-action-buttons { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  table.responsive-table .admin-actions .btn { flex: 1 1 92px; justify-content: center; min-height: 34px; }
  table.responsive-table .pf-cell { min-width: 0; align-items: flex-start; }
  table.responsive-table .pf-cell > div { min-width: 0; }
  table.responsive-table .pf-cell strong { overflow-wrap: anywhere; }
}
