@font-face {
  font-family: "Heebo";
  src: url("../assets/fonts/Heebo-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../assets/fonts/FrankRuhlLibre-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Heebo", "Noto Sans Hebrew", Arial, sans-serif;
  color: #f8f4fb;
  background: #100d16;
  --bg: #100d16;
  --surface: #1b1723;
  --surface-raised: #241e2e;
  --surface-soft: rgba(255, 255, 255, 0.045);
  --text: #f8f4fb;
  --muted: #bcb4c8;
  --muted-strong: #d6cfdd;
  --pink: #ff6c98;
  --pink-soft: #ffd7e3;
  --purple: #ae8cff;
  --mint: #72dbc0;
  --amber: #ffc867;
  --danger: #ff8f94;
  --border: rgba(255, 255, 255, 0.115);
  --border-strong: rgba(255, 255, 255, 0.21);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% -8%, rgba(255, 108, 152, 0.18), transparent 34rem),
    radial-gradient(circle at 2% 55%, rgba(174, 140, 255, 0.11), transparent 32rem),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

button,
input,
select { font: inherit; }

button { cursor: pointer; }

button:disabled { cursor: wait; opacity: 0.62; }

a { color: inherit; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 15px;
  color: #1c0d14;
  background: var(--pink-soft);
  border: 2px solid #fff;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

:where(button, input, select, a):focus-visible {
  outline: 3px solid var(--pink-soft);
  outline-offset: 3px;
}

.site-header,
.site-footer,
#dashboard-content {
  width: min(calc(100% - 40px), 1420px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 46px; height: 46px; object-fit: contain; }

.brand span { display: grid; gap: 1px; }

.brand bdi {
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.brand small { color: var(--muted); font-size: 0.77rem; }

.private-badge {
  padding: 7px 12px;
  color: var(--pink-soft);
  border: 1px solid rgba(255, 108, 152, 0.34);
  border-radius: 999px;
  background: rgba(255, 108, 152, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

#dashboard-content { padding-block: 46px 70px; }

.auth-view {
  min-height: calc(100vh - 252px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 940px);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  background: rgba(27, 23, 35, 0.92);
  box-shadow: var(--shadow);
}

.auth-visual {
  min-height: 570px;
  display: grid;
  place-items: center;
  border-inline-end: 1px solid var(--border);
  background:
    radial-gradient(circle at center, rgba(255, 215, 227, 0.28), transparent 18rem),
    linear-gradient(145deg, rgba(255, 108, 152, 0.24), rgba(174, 140, 255, 0.17));
}

.auth-visual img {
  width: min(54%, 190px);
  height: auto;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.34));
}

.auth-copy {
  align-self: center;
  padding: clamp(34px, 6vw, 64px);
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--pink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-copy h1,
.dashboard-header h1 {
  margin: 8px 0 10px;
  font-family: "Frank Ruhl Libre", serif;
  font-size: clamp(2.45rem, 6vw, 4.4rem);
  font-weight: 650;
  line-height: 0.98;
}

.lead,
.dashboard-subtitle {
  color: var(--muted-strong);
  line-height: 1.65;
}

.auth-methods { margin-top: 30px; display: grid; gap: 14px; }

.auth-copy form { display: grid; gap: 9px; }

.auth-copy label,
.filter-form label > span {
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(7, 5, 10, 0.35);
}

input::placeholder { color: #91899b; }

input:hover,
select:hover { border-color: rgba(255, 215, 227, 0.42); }

input:focus,
select:focus { border-color: var(--pink); }

.password-field { position: relative; }

.password-field input { padding-inline-end: 74px; }

.password-field .text-button {
  position: absolute;
  inset-inline-end: 7px;
  inset-block: 7px;
}

.text-button {
  min-height: 34px;
  padding: 5px 10px;
  color: var(--pink-soft);
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-weight: 700;
}

.text-button:hover { background: rgba(255, 108, 152, 0.1); }

.google-sign-in {
  width: 100%;
  min-height: 50px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
  font-weight: 750;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.google-sign-in:hover {
  background: #f8f9fa;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.google-mark { flex: 0 0 auto; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--border);
}

.auth-divider span { white-space: nowrap; }

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.primary-button {
  color: #26101a;
  border: 1px solid #ff9dbb;
  background: linear-gradient(135deg, #ff8aaf, #ffbfd2);
  box-shadow: 0 10px 26px rgba(255, 108, 152, 0.18);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-1px); }

.secondary-button:hover { border-color: rgba(255, 215, 227, 0.48); }

.auth-submit {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.button-spinner {
  width: 17px;
  height: 17px;
  display: none;
  border: 2px solid rgba(38, 16, 26, 0.28);
  border-top-color: #26101a;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.auth-submit.is-loading .button-spinner { display: inline-block; }

.google-sign-in .button-spinner {
  border-color: rgba(32, 33, 36, 0.25);
  border-top-color: #202124;
}

.google-sign-in.is-loading .button-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-error,
.filter-error {
  margin: 6px 0 0;
  padding: 10px 12px;
  color: #ffd8da;
  border: 1px solid rgba(255, 143, 148, 0.35);
  border-radius: 10px;
  background: rgba(255, 72, 82, 0.08);
}

.security-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.dashboard-view { width: 100%; }

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.dashboard-header h1 { font-size: clamp(2.7rem, 6vw, 5rem); }

.dashboard-subtitle { margin: 8px 0 0; }

.account-box {
  min-width: 215px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.account-box > span { color: var(--muted); font-size: 0.76rem; }
.account-box bdi { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-size: 0.87rem; }
.account-box .text-button { grid-row: 1 / 3; grid-column: 2; }

.control-bar {
  margin-top: 32px;
  padding: 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(27, 23, 35, 0.74);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

.filter-form {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(145px, 0.7fr) minmax(200px, 1.25fr) auto;
  align-items: end;
  gap: 11px;
}

.filter-form label { display: grid; gap: 5px; }
.filter-submit { white-space: nowrap; }

.refresh-box {
  min-width: 210px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--border);
}

.freshness {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 200, 103, 0.09);
}

.freshness[data-state="live"] .status-dot {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(114, 219, 192, 0.1);
}

.freshness[data-state="stale"] .status-dot,
.freshness[data-state="error"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 143, 148, 0.1);
}

.refresh-box time {
  color: var(--muted);
  font-size: 0.73rem;
}

.refresh-box .secondary-button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-height: 40px;
  padding-inline: 12px;
  font-size: 0.8rem;
}

.filter-error { margin-top: 12px; }

.notice {
  margin-top: 14px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  font-size: 0.9rem;
}

.notice-stale {
  color: #ffeaed;
  border: 1px solid rgba(255, 143, 148, 0.34);
  background: rgba(255, 88, 98, 0.09);
}

.notice-quality {
  color: #fff2d4;
  border: 1px solid rgba(255, 200, 103, 0.32);
  background: rgba(255, 200, 103, 0.08);
}

.sample-scope-note { margin: 14px 2px 0; color: var(--muted); font-size: 0.83rem; line-height: 1.6; }
.sample-scope-note[data-configured="false"] { color: #fff0cf; }

.loading-state { margin-top: 32px; }

.skeleton {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 220% 100%;
  animation: shimmer 1.35s ease-in-out infinite;
}

.skeleton-title { width: 240px; height: 22px; margin-bottom: 15px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.skeleton-card { height: 136px; }
.skeleton-panel { height: 320px; margin-top: 16px; }

@keyframes shimmer { to { background-position: -220% 0; } }

.state-card {
  width: min(100%, 660px);
  margin: 50px auto 0;
  padding: 46px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.state-card h2 { margin: 15px 0 7px; font-size: 1.9rem; }
.state-card p { margin: 0 0 22px; color: var(--muted); }
.state-icon { width: 52px; height: 52px; margin: auto; display: grid; place-items: center; color: #301319; border-radius: 50%; background: var(--danger); font-size: 1.5rem; font-weight: 900; }
.state-icon-empty { color: #1a1227; background: var(--purple); }

#dashboard-data { margin-top: 28px; display: grid; gap: 24px; }

.live-strip,
.panel,
.kpi-card {
  border: 1px solid var(--border);
  background: rgba(27, 23, 35, 0.83);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

.live-strip {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 22px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(100deg, rgba(114, 219, 192, 0.08), transparent 45%),
    rgba(27, 23, 35, 0.86);
}

.live-heading { display: flex; align-items: center; gap: 12px; }
.live-heading h2 { margin: 1px 0 0; font-size: 1.25rem; }
.live-scope-note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.7rem; }

.live-pulse {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(114, 219, 192, 0.08);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 13px rgba(114, 219, 192, 0.01); }
}

.live-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.live-metric { min-width: 0; padding-inline: 14px; border-inline-start: 1px solid var(--border); }
.live-metric:first-child { border-inline-start: 0; }
.live-metric strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.live-metric span { color: var(--muted); font-size: 0.78rem; }

.live-events { margin: 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.live-events li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-strong); font-size: 0.8rem; }
.live-events time { color: var(--muted); white-space: nowrap; }

.section-heading,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.panel-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-heading > p,
.panel-heading > p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.kpi-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.kpi-card { min-height: 142px; padding: 18px; border-radius: var(--radius-md); }
.kpi-card > span { display: block; color: var(--muted-strong); font-size: 0.85rem; }
.kpi-card strong { display: block; margin: 12px 0 7px; font-size: clamp(1.8rem, 3.2vw, 2.55rem); line-height: 1; }
.kpi-card small { color: var(--muted); line-height: 1.35; }

.dashboard-grid { display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.4fr); gap: 18px; }
.panel { min-width: 0; padding: 22px; border-radius: var(--radius-lg); }

.insight-list { margin-top: 20px; display: grid; gap: 10px; }
.insight-card { padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 11px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.insight-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #24130a; background: var(--amber); font-weight: 900; }
.insight-card[data-severity="positive"] .insight-mark { color: #0b241d; background: var(--mint); }
.insight-card[data-severity="critical"] .insight-mark { color: #2b1014; background: var(--danger); }
.insight-card h3 { margin: 0 0 2px; font-size: 0.98rem; }
.insight-card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 0.84rem; }

.category-summary { margin-top: 18px; padding-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; border-top: 1px solid var(--border); }
.category-chip { padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-strong); background: var(--surface-soft); font-size: 0.75rem; }
.category-chip strong { color: var(--text); }

.chart-legend { margin-top: 18px; display: flex; gap: 18px; color: var(--muted); font-size: 0.78rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-line { width: 24px; height: 3px; display: inline-block; border-radius: 99px; }
.legend-plays { background: var(--pink); }
.legend-completed { background: var(--purple); }

.reach-chart { min-height: 280px; margin-top: 5px; overflow: hidden; }
.reach-chart svg { width: 100%; height: auto; min-height: 270px; display: block; direction: ltr; }
.chart-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.chart-axis-label { fill: #9e96aa; font-family: "Heebo", sans-serif; font-size: 11px; }
.chart-path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-path-plays { stroke: var(--pink); }
.chart-path-completed { stroke: var(--purple); }
.chart-point { stroke: #17121f; stroke-width: 2; }
.chart-point-plays { fill: var(--pink); }
.chart-point-completed { fill: var(--purple); }
.chart-empty { min-height: 250px; display: grid; place-items: center; color: var(--muted); text-align: center; }

.table-panel-heading { align-items: center; }
.table-search { width: min(100%, 290px); }
.table-search input { min-height: 42px; }
.result-count { margin: 13px 0 8px; color: var(--muted); font-size: 0.8rem; }
.rating-legend { margin: 17px 0 0; color: var(--muted-strong); font-size: 0.83rem; line-height: 1.8; }
.rating-legend span { white-space: nowrap; }
.table-context { margin: 6px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.6; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 15px; }
table { width: 100%; min-width: 920px; border-collapse: collapse; }
th, td { padding: 12px 13px; text-align: start; border-bottom: 1px solid var(--border); }
th { color: var(--muted-strong); background: rgba(255, 255, 255, 0.028); font-size: 0.75rem; font-weight: 750; white-space: nowrap; }
th button { padding: 0; color: inherit; border: 0; background: transparent; font-weight: inherit; }
th button::after { content: ""; margin-inline-start: 5px; }
th[aria-sort="ascending"] button::after { content: "↑"; }
th[aria-sort="descending"] button::after { content: "↓"; }
td { font-size: 0.84rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.027); }
.card-cell { min-width: 240px; max-width: 370px; display: grid; gap: 3px; }
.card-cell strong { font-size: 0.9rem; }
.card-cell small { color: var(--muted); }
.card-prompt { margin: 5px 0; color: var(--muted-strong); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-variant { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.rating-average-cell { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.rating-average-cell.has-rating { color: var(--pink-soft); direction: ltr; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.number-cell { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.attention-badge { padding: 5px 8px; display: inline-block; border-radius: 999px; color: var(--muted-strong); background: var(--surface-soft); font-size: 0.72rem; white-space: nowrap; }
.attention-badge[data-state="attention"] { color: #fff0cf; background: rgba(255, 200, 103, 0.12); }
.attention-badge[data-state="critical"] { color: #ffd9dc; background: rgba(255, 143, 148, 0.12); }
.attention-badge[data-state="positive"] { color: #d9f7e8; background: rgba(91, 207, 153, 0.12); }

.mobile-card-list { display: none; }
.mobile-sort-controls { display: none; }
.inline-empty { min-height: 120px; margin: 0; display: grid; place-items: center; color: var(--muted); text-align: center; }

.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel-count { padding: 5px 9px; color: var(--muted-strong); border: 1px solid var(--border); border-radius: 999px; font-size: 0.75rem; }
.feedback-list { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.feedback-item { padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.feedback-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.73rem; }
.feedback-item p { margin: 9px 0 0; color: var(--muted-strong); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.sentiment { padding: 4px 7px; border-radius: 999px; color: #dffbf4; background: rgba(114, 219, 192, 0.11); }
.sentiment[data-sentiment="okay"] { color: #fff0cf; background: rgba(255, 200, 103, 0.1); }
.sentiment[data-sentiment="did_not_work"] { color: #ffd9dc; background: rgba(255, 143, 148, 0.1); }

.sequence-summary { margin: 13px 0 4px; color: var(--pink-soft); font-size: 0.9rem; }
.sequence-note { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }
.game-sequence-list { margin: 20px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.game-run { padding: 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.game-run-number { min-height: 36px; display: grid; place-items: center; color: var(--pink-soft); border-radius: 10px; background: rgba(255, 108, 152, 0.09); font-weight: 800; font-variant-numeric: tabular-nums; }
.game-run-heading { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.95rem; }
.game-run-heading .category-chip { font-weight: 500; }
.game-run-prompt { margin: 11px 0 12px; color: var(--text); font-size: 1rem; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.game-run-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 0.74rem; }
.run-outcome { padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; }
.run-outcome[data-state="changed"] { color: #fff0cf; border-color: rgba(255, 200, 103, 0.32); }
.game-run-rating { display: grid; justify-items: start; gap: 8px; min-width: 150px; }
.game-run-rating-label { color: var(--muted); font-size: 0.74rem; }
.game-run-rating .sentiment { font-size: 0.8rem; }
.unrated-label { color: var(--muted); font-size: 0.85rem; }

.site-footer {
  min-height: 74px;
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
}

.site-footer span:first-child { color: var(--muted-strong); font-weight: 800; letter-spacing: 0.08em; }

.noscript-message {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--text);
  background: var(--bg);
  text-align: center;
}

@media (max-width: 1120px) {
  .control-bar { align-items: stretch; flex-direction: column; }
  .refresh-box { padding: 13px 0 0; border-inline-start: 0; border-top: 1px solid var(--border); }
  .live-strip { grid-template-columns: auto 1fr; }
  .live-events { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  #dashboard-content { width: min(calc(100% - 24px), 1420px); }
  #dashboard-content { padding-top: 26px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-visual { min-height: 190px; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .auth-visual img { width: 112px; }
  .auth-copy { padding: 30px 24px 34px; }
  .dashboard-header { align-items: start; flex-direction: column; }
  .account-box { width: 100%; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .game-filter-label { grid-column: 1 / -1; }
  .filter-submit { grid-column: 1 / -1; }
  .live-strip { grid-template-columns: 1fr; }
  .live-events { grid-column: auto; grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .feedback-grid { grid-template-columns: 1fr; }
  .cards-table-wrap { display: none; }
  .mobile-sort-controls { display: flex; align-items: end; gap: 9px; margin-top: 14px; }
  .mobile-sort-controls label { flex: 1; display: grid; gap: 6px; color: var(--muted); font-size: 0.74rem; }
  .mobile-sort-controls select { width: 100%; min-height: 42px; }
  .mobile-sort-controls .secondary-button { min-height: 42px; white-space: nowrap; }
  .mobile-card-list { display: grid; gap: 9px; }
  .mobile-card { padding: 14px; display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
  .mobile-card-heading { margin: 0; display: flex; align-items: start; justify-content: space-between; gap: 12px; font-size: 1rem; }
  .mobile-card-heading small { color: var(--muted); }
  .mobile-card-prompt { margin: 0; color: var(--text); line-height: 1.55; }
  .mobile-card > .attention-badge { justify-self: start; }
  .mobile-card-metrics { margin-top: 3px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mobile-card-metrics span { min-width: 0; }
  .mobile-card-metrics small { display: block; color: var(--muted); font-size: 0.68rem; }
  .mobile-card-metrics strong { display: block; margin-top: 2px; font-size: 0.87rem; }
  .game-run { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .game-run-rating { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
}

@media (max-width: 520px) {
  .site-header { min-height: 76px; }
  .brand small { display: none; }
  .private-badge { font-size: 0.68rem; }
  .auth-copy h1,
  .dashboard-header h1 { font-size: 2.55rem; }
  .auth-divider span { white-space: normal; }
  .filter-form { grid-template-columns: 1fr; }
  .game-filter-label,
  .filter-submit { grid-column: auto; }
  .refresh-box { min-width: 0; }
  .mobile-card-metrics { grid-template-columns: repeat(2, 1fr); }
  .mobile-sort-controls { align-items: stretch; flex-direction: column; }
  .notice { align-items: start; flex-direction: column; }
  .skeleton-grid { grid-template-columns: 1fr 1fr; }
  .skeleton-card:last-child { display: none; }
  .live-metrics { grid-template-columns: 1fr; }
  .live-metric { padding: 8px 0; border-inline-start: 0; border-top: 1px solid var(--border); }
  .live-metric:first-child { border-top: 0; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 120px; }
  .panel { padding: 18px; border-radius: 20px; }
  .section-heading,
  .panel-heading { align-items: start; flex-direction: column; }
  .table-search { width: 100%; }
  .mobile-card-metrics { grid-template-columns: 1fr 1fr; }
  .site-footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (forced-colors: active) {
  .status-dot,
  .live-pulse,
  .legend-line { forced-color-adjust: none; }
  .panel,
  .kpi-card,
  .live-strip,
  .control-bar,
  .google-sign-in { border-color: CanvasText; }
  .google-sign-in { color: ButtonText; background: ButtonFace; }
}
