:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --raise: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --green: #22c55e;
  --border: rgba(148, 163, 184, 0.28);
  --danger: #ef4444;
  --font: "Barlow", system-ui, sans-serif;
  --display: "Barlow Condensed", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 8% -5%, rgba(245, 158, 11, 0.07), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}
.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  text-transform: uppercase;
}
.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.nav button {
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--panel);
  color: #f8fafc;
  cursor: pointer;
}
.nav button:hover { background: var(--raise); border-color: rgba(245, 158, 11, 0.55); }
.nav button.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #d97706);
  color: #1c1917;
  border: none;
  box-shadow: 0 4px 20px rgba(245, 156, 26, 0.35);
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.1rem;
  align-items: start;
}
.layout .sidebar {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.panel {
  background: rgba(30, 41, 59, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.sidebar h2, .main h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  color: var(--amber);
}

label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.65rem 0 0.25rem;
  font-family: var(--mono);
}
select, input[type="checkbox"] + span { color: var(--text); }
select {
  width: 100%;
  background: #0f172a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0;
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #d97706);
  color: #1c1917;
  box-shadow: 0 4px 20px rgba(245, 156, 26, 0.35);
}
.btn:disabled { opacity: 0.55; cursor: wait; }

.winner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  background: #14532d;
  color: #86efac;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
@media (max-width: 800px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
.kpi .label { color: var(--muted); font-size: 0.72rem; font-family: var(--mono); }
.kpi .value { font-size: 1.2rem; font-weight: 700; margin-top: 0.2rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; }
tr.win td { background: rgba(34, 197, 94, 0.1); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}
@media (max-width: 800px) { .charts { grid-template-columns: 1fr; } }
.chart-card {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}
.chart-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
}
canvas { width: 100% !important; max-height: 220px; }

.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  white-space: pre-wrap;
}
.muted { color: var(--muted); font-size: 0.88rem; }
.finding {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.hidden { display: none !important; }
.stub {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.step-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.step-row input[type="range"] {
  flex: 1;
  min-width: 160px;
  accent-color: #f59e0b;
  height: 0.45rem;
  cursor: pointer;
}
.step-btn {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(217, 119, 6, 0.12));
  color: #fde68a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.step-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #d97706);
  color: #1c1917;
  border-color: transparent;
  transform: translateY(-1px);
}
.step-btn:active { transform: translateY(0); }
.step-row .badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  padding: 0.35rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.hero h2 {
  font-family: var(--display);
  color: var(--amber);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.btn.inline { width: auto; margin-top: 0; }
.btn.secondary {
  background: var(--panel);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--raise); }

.details { margin-top: 1rem; }
.details summary { cursor: pointer; color: var(--amber); font-weight: 600; margin-bottom: 0.5rem; }
.tabs { display: flex; gap: 0.4rem; margin: 0.5rem 0; }
.tab {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.tab.active { color: #1c1917; background: var(--amber); border-color: transparent; }

.live-banner {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 0.8rem;
  font-family: var(--mono);
}
.decision-card {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.decision-card .title { font-weight: 700; color: #fde68a; }
.decision-card .sub { color: var(--muted); margin-top: 0.35rem; font-size: 0.9rem; }

.play-setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 700px) { .play-setup-grid { grid-template-columns: 1fr; } }

.play-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  margin: 0.85rem 0;
}
@media (max-width: 800px) { .play-actions { grid-template-columns: 1fr 1fr; } }
.act {
  border: none;
  border-radius: 10px;
  padding: 0.7rem 0.4rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #f8fafc;
}
.act:disabled { opacity: 0.4; cursor: not-allowed; }
.act.hold { background: #64748b; }
.act.charge { background: #eab308; color: #0f172a; }
.act.discharge { background: #a855f7; }
.act.grid { background: #3b82f6; }
.act.export { background: #22c55e; color: #0f172a; }

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0.85rem 0;
}
.score {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.score .who { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.score .cost { font-size: 1.15rem; font-weight: 700; margin-top: 0.2rem; }

.feedback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.75rem 0;
}
@media (max-width: 700px) { .feedback-row { grid-template-columns: 1fr; } }
.fb {
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.fb.agent {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}
.fb .t { font-weight: 700; color: #fde68a; margin-bottom: 0.2rem; }
.fb.agent .t { color: #c7d2fe; }

.energy-badge {
  display: inline-block;
  margin: 0.35rem 0 0.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
}
.energy-badge.deficit { background: rgba(239,68,68,0.15); color: #fecaca; }
.energy-badge.surplus { background: rgba(234,179,8,0.15); color: #fde68a; }
.energy-badge.flat { background: rgba(148,163,184,0.15); color: #cbd5e1; }

/* —— Streamlit landing parity —— */
body.landing-mode {
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(245, 158, 11, 0.08), transparent 55%),
    linear-gradient(180deg, #070d1a 0%, #0c1424 40%, #070d1a 100%);
}
body.landing-mode .app {
  max-width: min(1180px, 100%);
  padding-top: 0.35rem;
}

.gq-card {
  background: linear-gradient(180deg, #0c1424 0%, #070d1a 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 156, 26, 0.18);
  margin-bottom: 0.65rem;
}
.gq-title-bar {
  padding: 1.5rem 1.5rem 0.35rem;
  text-align: center;
}
.gq-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.gq-logo-wrap img {
  width: min(280px, 88vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(245, 156, 26, 0.25));
}
.gq-tagline {
  margin: 0;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.04em;
}
.gq-title-divider {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59c1a, transparent);
  border-radius: 99px;
  margin: 0.85rem auto 0.5rem;
}
.gq-landing-cta-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 1rem;
  padding: 0 1rem 0.35rem;
}
.btn-enter-twin,
.btn-enter-play {
  min-width: 11.5rem;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 2.25rem;
}
.btn-enter-twin {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e1a 55%, #d97706 100%);
  color: #1c1917;
  border: none;
  box-shadow: 0 4px 14px rgba(245, 156, 26, 0.28);
}
.btn-enter-twin:hover { transform: translateY(-1px); }
.btn-enter-play {
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.btn-enter-play:hover {
  border-color: rgba(245, 156, 26, 0.4);
  color: #fde68a;
}

.gq-hero {
  background: linear-gradient(175deg, #0a1020 0%, #0c1424 50%, #070d1a 100%);
  border: 1px solid rgba(245, 156, 26, 0.15);
  border-radius: 16px;
  padding: 0.35rem 0.5rem 0.5rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.gq-hero iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  height: min(72vh, 560px);
  border: 1px solid rgba(245, 156, 26, 0.12);
  border-radius: 12px;
  background: #0c1424;
}

.gq-explain {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(245, 156, 26, 0.18);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}
.gq-explain h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f59c1a;
}
.gq-explain p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.gq-action-strip {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem 0.85rem;
  background: #070d1a;
  border-radius: 12px;
  border: 1px solid rgba(245, 156, 26, 0.15);
  margin-bottom: 0.75rem;
}
.gq-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gq-badge-charge { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.gq-badge-discharge { background: rgba(245,156,26,0.12); color: #fbbf24; border: 1px solid rgba(245,156,26,0.35); }
.gq-badge-hold { background: rgba(100,116,139,0.14); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.gq-badge-grid_charge { background: rgba(14,165,233,0.12); color: #38bdf8; border: 1px solid rgba(14,165,233,0.35); }
.gq-badge-export { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.35); }
.gq-badge-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.exp-settings {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 0.55rem 0.7rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
}
.exp-settings summary {
  cursor: pointer;
  color: var(--amber);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.exp-section {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--raise);
  font-size: 0.78rem;
}

.section-h {
  margin: 1.1rem 0 0.55rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  color: var(--amber);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar-flow {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.sidebar-flow-caption {
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
}
.sidebar-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.15rem;
  padding: 0.35rem 0.1rem;
}
.sp-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  flex-shrink: 0;
}
.sp-seg > span {
  font-size: 0.48rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sp-q {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(245, 156, 26, 0.5);
  background: #0f1729;
  color: #f59e1a;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(245, 156, 26, 0.25);
}
.sp-solar {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: #334155;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.3s, box-shadow 0.3s;
}
.sp-solar.on {
  background: rgba(245, 156, 26, 0.75);
  box-shadow: 0 0 8px rgba(245, 156, 26, 0.35);
}
.sp-batt {
  width: 22px;
  height: 30px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  background: #0f1729;
  position: relative;
  overflow: hidden;
}
.sp-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  transition: height 0.4s ease;
}
.sp-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.42rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.sp-home {
  width: 18px;
  height: 14px;
  background: #4338ca;
  clip-path: polygon(0 100%, 0 40%, 50% 0, 100% 40%, 100% 100%);
  opacity: 0.75;
  transition: opacity 0.3s, filter 0.3s;
}
.sp-home.on {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.55));
}
.sp-conn {
  flex: 1;
  height: 3px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
  min-width: 8px;
}
.sp-conn.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  border-radius: 99px;
  background: #f59e1a;
  box-shadow: 0 0 6px #f59e1a;
  animation: spflow 1.1s linear infinite;
}
.sp-conn.charge.active::after { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.sp-conn.discharge.active::after { background: #f59e1a; box-shadow: 0 0 6px #f59e1a; }
.sp-conn.grid_charge.active::after { background: #0ea5e9; box-shadow: 0 0 6px #0ea5e9; }
.sp-conn.export.active::after { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
@keyframes spflow {
  0% { left: -35%; }
  100% { left: 100%; }
}
.sidebar-flow-step {
  text-align: center;
  font-size: 0.68rem;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.why-win {
  margin: 0.65rem 0 0.85rem;
  border: 1px solid rgba(245, 156, 26, 0.28);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(245, 156, 26, 0.06);
}
.why-win summary {
  color: #fde68a;
  font-weight: 700;
}
.why-win #whyWinBody {
  margin-top: 0.45rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.results-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0.85rem;
  margin: 1rem 0;
}
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; }
}
.learn-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.learn-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  color: #86efac;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.learn-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.9rem;
}
.learn-card .next {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.play-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 1rem 0 0.65rem;
}
.play-tab {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.play-tab.active {
  color: #1c1917;
  background: var(--amber);
  border-color: transparent;
}
.play-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}
@media (max-width: 800px) {
  .play-charts { grid-template-columns: 1fr; }
}
.play-charts .chart-card canvas { max-height: 200px; }

.q-table {
  width: 100%;
  margin-top: 0.5rem;
}
.q-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .gq-title-bar { padding: 1.15rem 1rem 0.35rem; }
  .gq-hero iframe { min-height: 420px; }
  .btn-enter-twin, .btn-enter-play { min-width: 100%; max-width: 20rem; }
}
