:root {
  color-scheme: light;
  font-size: 16px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #263248;
  background: #f2f5fa;
  font-synthesis: none;
  --navy: #202b3e;
  --navy-soft: #2a374d;
  --cyan: #26c1d4;
  --blue: #178ee0;
  --purple: #7153ec;
  --amber: #f5a623;
  --pink: #ed4264;
  --green: #24bd91;
  --border: #e8edf4;
  --muted: #8d97a8;
  --shadow: 0 8px 24px rgba(40, 55, 80, 0.055);
  --game-outcome-column-width: 180px;
}

:root[data-font-size="large"] { font-size: 18px; }
:root[data-font-size="extra-large"] { font-size: 20px; }

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: #f2f5fa; font-size: 1rem; line-height: 1.5; }
button, input, select { font: inherit; }
a { color: inherit; }

.topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.control-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #29364a;
  text-decoration: none;
  letter-spacing: .045em;
}

.control-brand strong { font-size: 1.125rem; }
.brand-orbit { position: relative; display: block; width: 29px; height: 29px; }
.brand-orbit::after {
  position: absolute; inset: 5px; border-radius: 50%; background: var(--cyan); content: "";
}
.brand-orbit i {
  position: absolute; left: 1px; right: 1px; height: 5px; border-radius: 999px;
  background: var(--cyan); transform: rotate(-7deg);
}
.brand-orbit i:nth-child(1) { top: 3px; }
.brand-orbit i:nth-child(2) { top: 12px; }
.brand-orbit i:nth-child(3) { top: 21px; }

.top-actions { display: flex; align-items: center; gap: 12px; }
.environment-pill, .hall-link {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; font-size: .8125rem;
}
.environment-pill { padding: 8px 11px; color: #627087; background: #f4f7fa; }
.environment-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(36,189,145,.1); }
.hall-link { padding: 9px 12px; color: #58657a; text-decoration: none; border: 1px solid #e3e8ef; }
.hall-link:hover { color: #25344c; border-color: #bec9d7; }
.hall-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.font-size-control { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #e3e8ef; border-radius: 8px; color: #6b778a; background: #f7f9fb; }
.font-size-control > span { padding: 0 6px; font-size: .75rem; }
.font-size-control button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 5px; color: #657287; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 650; }
.font-size-control button:hover { color: #26364c; background: #fff; }
.font-size-control button[aria-pressed="true"] { color: #147f8e; background: #fff; box-shadow: 0 1px 5px rgba(40, 55, 80, .1); }
.font-size-control button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.dashboard-hero {
  padding: 10px clamp(20px, 4vw, 56px) 12px;
  color: #fff;
  background: var(--navy);
}
.dashboard-hero-inner { width: min(1450px, 100%); margin: 0 auto; }

.hero-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.hero-heading p { margin-bottom: 1px; line-height: 1.25; }
.hero-heading p, .panel-header p { margin-top: 0; color: #8e99ab; font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
.panel-header p { margin-bottom: 6px; }
.hero-heading h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; }
.hero-heading > div > span { display: block; margin-top: 2px; color: #909bae; font-size: .875rem; line-height: 1.3; }
.rule-badge { min-width: 174px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: rgba(255,255,255,.035); }
.rule-badge span, .rule-badge small { display: block; color: #9da7b7; font-size: .75rem; line-height: 1.3; }
.rule-badge strong { display: block; margin: 1px 0 0; color: var(--cyan); font-size: 1.25rem; line-height: 1.15; }

.metric-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; margin-top: 8px;
}
.hero-metric { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 15px; }
.hero-metric > div { min-width: 0; }
.hero-metric span, .hero-metric small { display: block; }
.hero-metric span { margin-bottom: 1px; color: #f1f4f8; font-size: .875rem; font-weight: 650; line-height: 1.3; }
.hero-metric strong { display: block; overflow: hidden; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.hero-metric small { margin-top: 1px; color: #8d98aa; font-size: .75rem; line-height: 1.3; }
.sparkline { flex: 0 1 140px; min-width: 70px; max-width: 140px; height: 38px; overflow: visible; }
.sparkline path:not(.fill) { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sparkline .fill { opacity: .2; fill: currentColor; }
.metric-blue { color: var(--blue); } .metric-amber { color: var(--amber); }
.metric-cyan { color: var(--cyan); } .metric-pink { color: var(--pink); }

.section-nav {
  position: sticky; top: 20px; display: flex; min-width: 0; align-self: start; flex-direction: column; gap: 4px; padding: 8px;
  background: #fff; border: 1px solid #edf0f5; border-radius: 4px; box-shadow: var(--shadow);
}
.section-nav a { position: relative; display: inline-flex; min-height: 50px; align-items: center; gap: 10px; padding: 0 15px; border-radius: 4px; color: #5e697a; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.section-nav a::after { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: transparent; content: ""; }
.section-nav a:hover, .section-nav a.active { color: var(--cyan); }
.section-nav a:hover { background: #f7fafc; }
.section-nav a.active { background: #eefbfd; }
.section-nav a.active::after { background: var(--cyan); }
.section-nav span { font-size: 1.125rem; }

.dashboard-workspace {
  display: grid; width: min(1450px, calc(100% - 40px)); grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 26px;
  margin: 0 auto; padding: 28px 0 42px;
}
.dashboard-main { min-width: 0; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(310px, .92fr); gap: 26px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 26px; align-items: stretch; }
[data-dashboard-section][hidden],
.detail-grid[hidden] { display: none !important; }
body[data-active-view="rules"] .rules-panel form { max-width: 940px; }
body[data-active-view="overview"] .comparison-kpis { grid-template-columns: 1fr 1fr; }
body[data-active-view="overview"] .comparison-panel { min-height: 0; }
body[data-active-view="rules"] .detail-grid,
body[data-active-view="activity"] .detail-grid { margin-top: 0; }
body[data-active-view="activity"] .activity-list { max-height: none; }
.panel { min-width: 0; padding: 22px; background: #fff; border: 1px solid #edf0f5; border-radius: 4px; box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-header h2 { margin: 0; color: #2c374b; font-size: 1.125rem; letter-spacing: .015em; }
.panel-hint, .rule-status { padding: 6px 8px; border-radius: 5px; color: #7f8b9d; background: #f4f7fa; font-size: .75rem; }
.rule-status { color: #168e72; background: #eaf9f4; }

.chart-legend { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin: 2px 0 10px; color: #8993a3; font-size: .75rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }
.legend-player { background: var(--cyan); } .legend-house { background: var(--blue); } .legend-jackpot { background: var(--purple); }
.stack-chart {
  display: grid; min-height: 305px; grid-template-columns: repeat(8, minmax(42px, 1fr)); align-items: end; gap: clamp(8px, 2vw, 24px);
  padding: 30px 18px 0; border-bottom: 1px solid #edf0f4;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 74px, #eef2f6 75px);
}
.chart-column { display: grid; height: 100%; min-width: 0; grid-template-rows: 1fr 34px; align-items: end; gap: 8px; text-align: center; }
.bar-shell { display: flex; width: min(48px, 76%); height: 100%; min-height: 10px; align-self: end; flex-direction: column-reverse; justify-self: center; border-radius: 4px 4px 0 0; overflow: hidden; box-shadow: 0 5px 15px rgba(34, 61, 94, .08); }
.bar-segment { display: block; min-height: 1px; }
.bar-player { background: var(--cyan); } .bar-house { background: var(--blue); } .bar-jackpot { background: var(--purple); }
.chart-column label { overflow: hidden; color: #7d8899; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }

.allocation-panel { display: flex; flex-direction: column; }
.donut-wrap { display: grid; flex: 1; min-height: 235px; place-items: center; padding: 18px 0; }
.allocation-donut { display: grid; width: 190px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) 0 5%, var(--cyan) 5% 90%, var(--purple) 90% 100%); }
.allocation-donut::before { grid-area: 1 / 1; width: 66%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #edf1f5; content: ""; }
.allocation-donut div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.allocation-donut strong, .allocation-donut span { display: block; }
.allocation-donut strong { color: #273349; font-size: 2rem; }
.allocation-donut span { margin-top: 3px; color: #99a3b2; font-size: .8125rem; }
.allocation-list { margin: 0; border-top: 1px solid #edf0f4; }
.allocation-list div { display: flex; justify-content: space-between; padding: 10px 2px; color: #667286; font-size: .875rem; }
.allocation-list dt { display: flex; align-items: center; gap: 8px; }
.allocation-list dd { margin: 0; color: #273349; font-weight: 750; }
.allocation-list i { width: 8px; height: 8px; border-radius: 2px; }
.dot-house { background: var(--blue); } .dot-regular { background: var(--cyan); } .dot-jackpot { background: var(--purple); }

.rules-panel form { margin-top: 22px; }
fieldset { margin: 0 0 20px; padding: 0; border: 0; }
legend, .field-label > span, .note-field > span { margin-bottom: 9px; color: #465267; font-size: .9375rem; font-weight: 700; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-options label { cursor: pointer; }
.mode-options input { position: absolute; opacity: 0; pointer-events: none; }
.mode-options label > span { display: block; padding: 13px; border: 1px solid #e3e8ef; border-radius: 7px; transition: .16s ease; }
.mode-options b, .mode-options small { display: block; }
.mode-options b { color: #39465c; font-size: .9375rem; }
.mode-options small { margin-top: 4px; color: #8d97a7; font-size: .75rem; line-height: 1.4; }
.mode-options input:checked + span { border-color: var(--cyan); background: #eefbfd; box-shadow: 0 0 0 2px rgba(38,193,212,.08); }
.mode-options input:focus-visible + span { outline: 2px solid #188fdc; outline-offset: 2px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #edf0f4; }
.rtp-control-row { margin-top: 2px; padding-inline: 12px; border: 1px solid #cceef2; border-radius: 7px; background: #f1fbfc; }
.rtp-control-row + .form-row { border-top: 0; }
.field-label { min-width: 0; }
.field-label > span, .field-label > small { display: block; }
.field-label > span { margin: 0; }
.field-label > small { margin-top: 4px; color: #98a1af; font-size: .75rem; }
.percent-input { display: flex; width: 110px; align-items: center; border: 1px solid #dfe5ed; border-radius: 6px; background: #fff; }
.percent-input:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.percent-input input { width: 100%; padding: 9px 2px 9px 12px; border: 0; outline: 0; color: #2d3a50; background: transparent; font-weight: 750; }
.percent-input span { padding: 0 10px; color: #8490a3; font-size: .875rem; }
.rtp-percent-input { border-color: #8edce6; box-shadow: 0 0 0 2px rgba(38,193,212,.08); }
.rtp-percent-input input { color: #147e8c; font-size: 1rem; }
select, .note-field input { border: 1px solid #dfe5ed; border-radius: 6px; color: #3d4a60; background: #fff; outline: none; }
select { min-width: 150px; padding: 9px 12px; font-size: .875rem; }
select:focus, .note-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.allocation-preview { margin: -4px 0 8px; padding: 10px 12px; border-radius: 6px; color: #497085; background: #f0f9fb; font-size: .8125rem; line-height: 1.5; }
.game-max-win-fieldset { width: 100%; min-width: 0; max-width: 100%; margin: 16px 0 6px; padding-top: 16px; border-top: 1px solid #edf0f4; }
.game-max-win-fieldset > p { margin: -2px 0 12px; color: #8a95a6; font-size: .75rem; line-height: 1.5; }
.game-max-win-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.game-rule-selector { min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 8px; background: #fafbfd; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.game-rule-selector:hover { border-color: #b8e3e9; transform: translateY(-1px); }
.game-rule-selector.is-active { border-color: var(--cyan); background: #f7fdfe; box-shadow: 0 0 0 2px rgba(38,193,212,.1); }
.game-rule-select { display: grid; width: 100%; min-width: 0; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 9px; padding: 10px; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.game-rule-select:focus-visible { outline: 2px solid #188fdc; outline-offset: -3px; }
.game-rule-select img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; box-shadow: 0 3px 10px rgba(31,44,64,.12); }
.game-rule-select-copy { min-width: 0; }
.game-rule-select-copy b, .game-rule-select-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-rule-select-copy b { color: #3d4a60; font-size: .8125rem; }
.game-rule-select-copy small { margin-top: 3px; color: #929dab; font-size: .625rem; }
.game-rule-view-label { grid-column: 1 / -1; color: #178b9c; font-size: .6875rem; font-weight: 750; }
.game-rule-view-label::after { margin-left: 5px; content: "→"; }
.game-rule-selector.is-active .game-rule-view-label::after { content: "↓"; }
.game-max-win-input-label { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 10px; border-top: 1px solid #e8edf3; color: #8490a3; font-size: .6875rem; }
.multiplier-input { display: flex; width: 96px; flex: 0 0 96px; align-items: center; border: 1px solid #dfe5ed; border-radius: 6px; background: #fff; }
.multiplier-input:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.multiplier-input input { width: 100%; min-width: 0; padding: 8px 2px 8px 10px; border: 0; outline: 0; color: #2d3a50; background: transparent; font-weight: 750; }
.multiplier-input span { padding: 0 9px; color: #8490a3; font-size: .875rem; }
.game-rule-detail { margin-top: 14px; overflow: hidden; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; }
.game-rule-detail.has-error { border-color: #e8aab4; background: #fff8f9; }
.game-detail-error { margin: 0; padding: 18px; color: #bd4258; font-size: .8125rem; }
.selected-game-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid #e8edf3; background: linear-gradient(105deg, #f3fbfc, #fbfcfe); }
.selected-game-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.selected-game-identity img { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 9px; object-fit: cover; box-shadow: 0 4px 14px rgba(31,44,64,.15); }
.selected-game-identity > div { min-width: 0; }
.selected-game-kicker, .game-detail-kicker { display: block; color: #1495a7; font-size: .625rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.selected-game-identity h3 { margin: 2px 0 0; overflow: hidden; color: #2d3a50; font-size: 1.125rem; text-overflow: ellipsis; white-space: nowrap; }
.selected-game-identity p { margin: 3px 0 0; color: #8390a2; font-size: .75rem; }
.selected-game-maximum { flex: 0 0 auto; text-align: right; }
.selected-game-maximum span, .selected-game-maximum strong { display: block; }
.selected-game-maximum span { color: #909baa; font-size: .6875rem; }
.selected-game-maximum strong { margin-top: 2px; color: #178b9c; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.selected-game-body { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(420px, 1.45fr); align-items: start; }
.gameplay-guide { min-width: 0; padding: 18px; border-right: 1px solid #e8edf3; }
.gameplay-guide h4, .provider-rule-heading h4, .selected-multiplier-heading h4 { margin: 3px 0 0; color: #334057; font-size: .9375rem; }
.gameplay-description { margin: 10px 0 0; color: #6e7a8d; font-size: .75rem; line-height: 1.65; }
.gameplay-count-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gameplay-count-strip strong, .gameplay-count-strip span { padding: 5px 7px; border-radius: 5px; font-size: .625rem; white-space: nowrap; }
.gameplay-count-strip strong { color: #147f8e; background: #e8f8fa; }
.gameplay-count-strip span { color: #667387; background: #f0f3f6; }
.gameplay-steps { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.gameplay-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 8px; }
.gameplay-steps li > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #178b9c; background: #e9f8fa; font-size: .625rem; font-weight: 800; }
.gameplay-steps p { margin: 2px 0 0; color: #59667a; font-size: .75rem; line-height: 1.45; }
.gameplay-facts { display: grid; gap: 9px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #edf1f5; }
.gameplay-facts div { min-width: 0; }
.gameplay-facts dt { color: #8e99a9; font-size: .625rem; font-weight: 750; }
.gameplay-facts dd { margin: 3px 0 0; color: #536176; font-size: .6875rem; line-height: 1.5; }
.provider-rule-section { min-width: 0; padding: 18px; }
.provider-rule-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.provider-source-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #137e8d; background: #e9f8fa; font-size: .625rem; font-weight: 800; white-space: nowrap; }
.provider-source-line { margin: 10px 0 0; color: #8290a2; font-size: .625rem; line-height: 1.55; overflow-wrap: anywhere; }
.provider-source-line a { color: #168b9b; font-weight: 700; text-underline-offset: 2px; }
.provider-source-line code { color: #5f6e83; font-family: inherit; font-weight: 700; }
.provider-boundary-note { margin: 9px 0 0; padding: 8px 9px; border-left: 3px solid #e9b84a; border-radius: 0 5px 5px 0; color: #75643e; background: #fff9ec; font-size: .6875rem; line-height: 1.55; }
.continuous-payout-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 11px; overflow: hidden; border: 1px solid #e4ebf1; border-radius: 6px; background: #e4ebf1; }
.continuous-payout-card > div { min-width: 0; padding: 10px; background: #f8fafc; }
.continuous-payout-card span, .continuous-payout-card strong { display: block; }
.continuous-payout-card span { color: #929dac; font-size: .5625rem; }
.continuous-payout-card strong { margin-top: 4px; color: #3f4d63; font-size: .6875rem; line-height: 1.4; }
.provider-paytable-groups { display: grid; max-height: 650px; gap: 10px; margin-top: 11px; padding-right: 3px; overflow-y: auto; scrollbar-gutter: stable; }
.provider-paytable-group { min-width: 0; padding: 10px; border: 1px solid #e6ebf1; border-radius: 6px; background: #fbfcfd; }
.provider-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.provider-group-heading h5 { margin: 0; color: #46546a; font-size: .75rem; }
.provider-group-heading span { flex: 0 0 auto; color: #168b9b; font-size: .625rem; font-weight: 800; }
.provider-paytable-group > p { margin: 4px 0 8px; color: #8b96a6; font-size: .5625rem; line-height: 1.45; }
.provider-paytable-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 5px; }
.provider-paytable-entry { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 7px; padding: 6px 7px; border: 1px solid #edf0f4; border-radius: 5px; background: #fff; }
.provider-paytable-entry > span { min-width: 0; overflow: hidden; color: #69768a; font-size: .625rem; text-overflow: ellipsis; white-space: nowrap; }
.provider-paytable-entry > strong { color: #168a70; font-size: .6875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.provider-paytable-entry > small { grid-column: 1 / -1; color: #8a6a26; font-size: .5625rem; line-height: 1.3; }
.selected-multiplier-section { min-width: 0; padding: 18px; }
.local-allocation-section { border-top: 1px solid #e8edf3; background: #fcfdfe; }
.selected-multiplier-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.multiplier-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.jackpot-state { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: .625rem; font-weight: 800; }
.jackpot-state.is-enabled { color: #8d6414; background: #fff2cf; }
.jackpot-state.is-disabled { color: #707c8e; background: #edf1f5; }
.enable-all-prizes { padding: 5px 8px; border: 1px solid #b8dfe4; border-radius: 5px; color: #177f8e; background: #f3fcfd; font-size: .625rem; font-weight: 750; cursor: pointer; }
.enable-all-prizes:hover:not(:disabled) { border-color: var(--cyan); background: #e8fafd; }
.enable-all-prizes:focus-visible { outline: 2px solid #188fdc; outline-offset: 2px; }
.enable-all-prizes:disabled { color: #a1aab7; border-color: #e0e5eb; background: #f5f7f9; cursor: default; }
.game-multiplier-summary { margin: 10px 0; padding: 8px 9px; border-radius: 5px; color: #387485; background: #eef9fb; font-size: .6875rem; line-height: 1.5; }
.has-error .game-multiplier-summary { color: #bd4258; background: #fff0f3; }
.table-resize-hint { margin: -3px 0 7px; color: #929dac; font-size: .5625rem; line-height: 1.45; text-align: right; }
.game-multiplier-table { overflow-x: auto; border: 1px solid #e8edf3; border-radius: 6px; background: #fff; }
.game-multiplier-headings,
.game-multiplier-row { display: grid; min-width: calc(720px + var(--game-outcome-column-width)); grid-template-columns: 36px 65px var(--game-outcome-column-width) 90px 180px minmax(150px, 1fr); align-items: center; gap: 7px; }
.game-multiplier-headings { padding: 7px 9px; color: #929dac; background: #f7f9fb; font-size: .625rem; }
.game-multiplier-headings span:nth-child(4), .game-multiplier-headings span:nth-child(5) { text-align: right; }
.game-multiplier-details { min-width: calc(720px + var(--game-outcome-column-width)); }
.game-outcome-heading { position: relative; display: flex; min-width: 0; height: 100%; align-items: center; }
.table-column-resizer { position: absolute; z-index: 3; top: -7px; right: -8px; bottom: -7px; width: 15px; border: 0; background: transparent; cursor: col-resize; touch-action: none; }
.table-column-resizer::before { position: absolute; top: 3px; bottom: 3px; left: 6px; width: 2px; border-radius: 999px; background: #cbd5df; content: ""; transition: background .15s ease, box-shadow .15s ease; }
.table-column-resizer:hover::before, .table-column-resizer:focus-visible::before, .table-column-resizer.is-resizing::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.12); }
.table-column-resizer:focus-visible { outline: 0; }
:root.is-resizing-table-column, :root.is-resizing-table-column * { cursor: col-resize !important; user-select: none !important; }
.game-multiplier-row { min-height: 34px; padding: 6px 9px; border-top: 1px solid #f0f3f6; }
.game-multiplier-row:first-child { border-top: 0; }
.game-multiplier-order { color: #a5aebb; font-size: .625rem; font-variant-numeric: tabular-nums; }
.game-multiplier-tier { justify-self: start; padding: 3px 5px; border-radius: 4px; color: #6d798b; background: #f0f3f6; font-size: .5625rem; font-weight: 750; white-space: nowrap; }
.game-multiplier-row strong { min-width: 0; overflow: hidden; color: #59667a; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.game-multiplier-row b { color: #168a70; font-size: .75rem; text-align: right; font-variant-numeric: tabular-nums; }
.game-multiplier-row small { color: #7c8798; font-size: .6875rem; text-align: right; font-variant-numeric: tabular-nums; }
.game-multiplier-row.tier-loss b { color: #98a2b1; }
.game-multiplier-row.tier-jackpot { background: #fffaf0; }
.game-multiplier-row.tier-jackpot strong, .game-multiplier-row.tier-jackpot b { color: #9b6c14; }
.game-multiplier-row.is-disabled { background: #f5f7f9; }
.game-multiplier-row.is-disabled strong, .game-multiplier-row.is-disabled b, .game-multiplier-row.is-disabled small { color: #8e99a9; }
.game-multiplier-row.is-disabled .game-multiplier-tier { color: #737f91; background: #e6eaf0; }
.game-multiplier-row.is-manual-probability:not(.is-disabled) { box-shadow: inset 3px 0 #24a9b9; }
.probability-editor-cell { display: grid; min-width: 0; justify-items: end; gap: 2px; }
.probability-editor { display: flex; width: 100%; max-width: 145px; align-items: center; justify-content: flex-end; gap: 4px; color: #778497; font-size: .6875rem; }
.probability-editor input { width: 112px; min-width: 0; height: 28px; padding: 4px 7px; border: 1px solid #d9e1e9; border-radius: 5px; color: #4b5a70; background: #fff; outline: none; text-align: right; font: inherit; font-variant-numeric: tabular-nums; }
.probability-editor input:hover:not(:disabled) { border-color: #9ed8df; }
.probability-editor input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.probability-editor input:invalid { border-color: #d9536d; }
.probability-editor input:disabled { color: #9aa4b1; border-color: #e3e7ec; background: #f0f2f5; cursor: not-allowed; }
.probability-mode-label { display: block; color: #97a1af !important; font-size: .5625rem !important; line-height: 1.2; text-align: right; white-space: nowrap; }
.is-manual-probability:not(.is-disabled) .probability-mode-label { color: #168a9a !important; font-weight: 750; }
.calculated-probability { color: #7c8798; font-size: .6875rem; font-variant-numeric: tabular-nums; }
.prize-switch-cell { min-width: 0; }
.prize-switch { position: relative; display: inline-flex; max-width: 100%; align-items: center; gap: 7px; color: #526073; font-size: .625rem; font-weight: 750; cursor: pointer; }
.prize-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prize-switch-visual { position: relative; width: 30px; height: 17px; flex: 0 0 30px; border-radius: 999px; background: #c9d0d9; transition: background .15s ease; }
.prize-switch-visual::after { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31,44,64,.22); content: ""; transition: transform .15s ease; }
.prize-switch input:checked + .prize-switch-visual { background: #28b89f; }
.prize-switch input:checked + .prize-switch-visual::after { transform: translateX(13px); }
.prize-switch input:focus-visible + .prize-switch-visual { outline: 2px solid #188fdc; outline-offset: 2px; }
.prize-switch-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixed-outcome-state { color: #8a95a5; font-size: .625rem; font-weight: 700; }
.note-field { display: block; padding-top: 14px; border-top: 1px solid #edf0f4; }
.note-field span { display: block; }
.note-field input { width: 100%; padding: 10px 12px; font-size: .875rem; }
.safety-note { display: flex; gap: 9px; margin-top: 15px; padding: 11px; border-radius: 6px; color: #697789; background: #fff9ec; font-size: .75rem; line-height: 1.55; }
.safety-note svg { flex: 0 0 18px; width: 18px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.form-actions button { min-height: 42px; padding: 0 15px; border-radius: 5px; cursor: pointer; font-size: .875rem; font-weight: 700; }
.form-actions button:disabled { cursor: wait; opacity: .6; }
.secondary-button { border: 1px solid #dce3ec; color: #58667a; background: #fff; }
.primary-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--cyan); color: #fff; background: var(--cyan); }
.primary-button i { display: none; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-button.loading i { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { min-height: 16px; margin: 10px 0 0; color: #1b9c7b; font-size: .8125rem; text-align: right; }
.form-message.error { color: #d7425e; }

.comparison-kpis { display: grid; gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid #ebeff4; border-radius: 6px; background: #ebeff4; }
.comparison-kpis > div { padding: 14px; background: #fff; }
.comparison-kpis span, .comparison-kpis small, .comparison-kpis strong { display: block; }
.comparison-kpis span { color: #8f99a8; font-size: .75rem; }
.comparison-kpis strong { margin: 5px 0; color: #2f3b50; font-size: 1.375rem; }
.comparison-kpis small { color: #a1a9b5; font-size: .75rem; }
.comparison-bars { display: grid; gap: 12px; margin-top: 22px; }
.comparison-bars > div { display: grid; grid-template-columns: 5.5rem 1fr 3rem; align-items: center; gap: 9px; color: #718095; font-size: .75rem; }
.comparison-bars div > div { height: 7px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.comparison-bars i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--pink); transition: width .3s ease; }
.comparison-bars > div:nth-child(2) i { background: var(--cyan); }
.comparison-bars strong { color: #536176; font-size: .75rem; text-align: right; }
.comparison-copy { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #edf0f4; color: #8994a4; font-size: .8125rem; line-height: 1.7; }

.activity-list { display: grid; gap: 0; max-height: 410px; margin: 20px 0 0; padding: 0; overflow: auto; list-style: none; }
.activity-list li { position: relative; padding: 0 0 18px 28px; color: #58657a; font-size: .875rem; line-height: 1.5; }
.activity-list li::before { position: absolute; top: 3px; left: 4px; width: 8px; height: 8px; border: 3px solid #d8f5f7; border-radius: 50%; background: var(--cyan); content: ""; }
.activity-list li:not(:last-child)::after { position: absolute; top: 15px; bottom: 0; left: 10px; width: 1px; background: #dfe8ee; content: ""; }
.activity-list time { display: block; margin-bottom: 4px; color: #a2abb7; font-size: .75rem; }
.activity-list strong { color: #28364b; }
.activity-game-limits { margin-top: 4px; color: #8490a2; font-size: .75rem; line-height: 1.6; }
.activity-empty { color: #9aa4b2 !important; }

.members-panel { margin-top: 0; }
.member-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.member-summary-grid article { padding: 16px; border: 1px solid #e8edf3; border-radius: 7px; background: #f8fafc; }
.member-summary-grid span, .member-summary-grid strong, .member-summary-grid small { display: block; }
.member-summary-grid span { color: #788599; font-size: .75rem; font-weight: 700; }
.member-summary-grid strong { margin: 5px 0 3px; color: #2d3a50; font-size: 1.375rem; line-height: 1.15; }
.member-summary-grid article:nth-child(2) strong { color: #179a80; }
.member-summary-grid article:nth-child(4) strong { color: var(--pink); }
.member-summary-grid small { color: #9aa4b2; font-size: .75rem; }
.member-tier-guide { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 2fr); align-items: stretch; gap: 14px; margin-top: 14px; padding: 13px 14px; border: 1px solid #dceff2; border-radius: 7px; background: #f3fbfc; }
.member-tier-guide-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.member-tier-guide-copy strong { color: #2d3a50; font-size: .875rem; }
.member-tier-guide-copy span { margin-top: 4px; color: #718095; font-size: .75rem; line-height: 1.45; }
.member-tier-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid #dcebef; border-radius: 6px; background: #dcebef; list-style: none; }
.member-tier-levels li { min-width: 0; padding: 9px 10px; background: #fff; text-align: center; }
.member-tier-levels strong, .member-tier-levels span { display: block; }
.member-tier-levels strong { color: #178b9c; font-size: .8125rem; }
.member-tier-levels span { margin-top: 3px; color: #7d899a; font-size: .6875rem; white-space: nowrap; }
.member-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px auto; align-items: end; gap: 14px; margin-top: 20px; }
.member-toolbar label > span { display: block; margin-bottom: 6px; color: #68758a; font-size: .75rem; font-weight: 700; }
.member-search-field input { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid #dfe5ed; border-radius: 6px; color: #344158; background: #fff; font-size: .875rem; outline: none; }
.member-search-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.member-status-field select { width: 100%; min-width: 0; min-height: 40px; }
.member-result-count { margin: 0; padding-bottom: 10px; color: #8994a4; font-size: .8125rem; white-space: nowrap; }
.member-identity { display: flex; align-items: center; gap: 10px; }
.member-avatar { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; color: #168b9b; background: #e8f8fb; font-size: .75rem; font-weight: 800; }
.member-identity strong, .member-identity small { display: block; }
.member-identity strong { color: #2f3c51; font-size: .8125rem; }
.member-identity small { margin-top: 2px; color: #99a3b1; font-size: .6875rem; font-weight: 500; }
.member-status-chip { display: inline-block; padding: 4px 7px; border-radius: 4px; font-size: .75rem; }
.member-status-chip.online { color: #168a70; background: #e9f8f3; }
.member-status-chip.offline { color: #6f7b8c; background: #eff2f6; }
.member-status-chip.restricted { color: #c3475c; background: #fff0f3; }
.member-net.positive { color: #168a70; }
.member-net.negative { color: #c3475c; }
.member-empty { padding: 34px 12px; color: #98a2b1; text-align: center !important; }
.member-action-cell { min-width: 250px; }
.member-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.member-action button { min-height: 32px; padding: 0 11px; border-radius: 5px; cursor: pointer; font-size: .75rem; font-weight: 700; }
.member-margin-chip { display: inline-block; padding: 4px 7px; border-radius: 4px; color: #6f7b8c; background: #eff2f6; font-size: .6875rem; white-space: nowrap; }
.member-margin-chip.independent { color: #137f8f; background: #e7f8fa; }
.member-action-button { border: 1px solid #dce3ec; color: #59677b; background: #fff; }
.member-action-button:hover, .member-action-button[aria-expanded="true"] { color: #147f8e; border-color: #89dbe5; background: #f1fbfc; }
.member-balance-action { border: 1px solid var(--cyan); color: #fff; background: var(--cyan); }
.member-balance-action:hover { border-color: #1eabba; background: #1eabba; }
.member-margin-action { border: 1px solid #7b6bed; color: #fff; background: #7b6bed; }
.member-margin-action:hover { border-color: #6857dc; background: #6857dc; }
.member-page-message { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; color: #168a70; background: #eaf9f4; font-size: .8125rem; }
.member-page-message:empty { display: none; }
.member-page-message.error { color: #c3475c; background: #fff0f3; }
.member-data-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #edf0f4; color: #96a0af; font-size: .75rem; line-height: 1.6; }

body.member-dialog-open { overflow: hidden; }
.member-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.member-modal[hidden] { display: none; }
.member-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(24, 34, 51, .56); cursor: default; }
.member-dialog-card { position: relative; z-index: 1; width: min(520px, 100%); max-height: calc(100vh - 40px); padding: 22px; overflow-y: auto; border: 1px solid #e4eaf1; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(25, 38, 60, .25); }
.member-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.member-dialog-header p { margin: 0 0 4px; color: #8e99ab; font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
.member-dialog-header h2 { margin: 0; color: #2c374b; font-size: 1.25rem; }
.member-dialog-close { display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid #e1e7ee; border-radius: 6px; color: #728095; background: #fff; cursor: pointer; font-size: 1.375rem; line-height: 1; }
.member-dialog-target { margin: 17px 0 10px; color: #536176; font-size: .9375rem; font-weight: 700; }
.member-current-balance { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; border-radius: 6px; color: #68758a; background: #f5f8fb; font-size: .8125rem; }
.member-current-balance strong { color: #25344b; font-size: 1.125rem; }
#memberBalanceForm { margin-top: 17px; }
#memberMarginForm { margin-top: 17px; }
.member-balance-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.member-balance-fields label, .member-balance-note { display: block; }
.member-balance-fields label > span, .member-balance-note > span { display: block; margin-bottom: 6px; color: #59677b; font-size: .8125rem; font-weight: 700; }
.member-balance-fields select, .member-balance-fields input, .member-balance-note input { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #dfe5ed; border-radius: 6px; color: #344158; background: #fff; font-size: .875rem; outline: none; }
.member-balance-fields select:focus, .member-balance-fields input:focus, .member-balance-note input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.member-balance-note { margin-top: 13px; }
.member-balance-preview { margin: 13px 0 0; padding: 10px 12px; border-radius: 6px; color: #317183; background: #eff9fb; font-size: .8125rem; }
.member-balance-preview.error { color: #c3475c; background: #fff0f3; }
.member-balance-preview.unchanged { color: #6f7b8c; background: #f1f4f7; }
.member-balance-warning { margin: 10px 0 0; padding: 10px 12px; border-radius: 6px; color: #7f6d40; background: #fff9ec; font-size: .75rem; line-height: 1.55; }
.member-balance-message { min-height: 20px; margin: 10px 0 0; color: #168a70; font-size: .8125rem; }
.member-balance-message.error { color: #c3475c; }
.member-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.member-dialog-actions button { min-height: 40px; padding: 0 14px; border-radius: 5px; cursor: pointer; font-size: .875rem; font-weight: 700; }
.member-dialog-actions button:disabled { cursor: wait; opacity: .6; }

.games-panel { margin-top: 0; }
.table-scroll { margin-top: 19px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 13px 12px; border-top: 1px solid #edf0f4; font-size: .8125rem; text-align: right; }
th { color: #68758a; font-size: .75rem; font-weight: 750; }
th:first-child, td:first-child { text-align: left; }
td { color: #657287; }
td:first-child { color: #2f3c51; font-weight: 700; }
.status-chip { display: inline-block; padding: 4px 7px; border-radius: 4px; color: #198a70; background: #e9f8f3; font-size: .75rem; }
.status-chip.warn { color: #b77d17; background: #fff5df; }
.round-details { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.round-details-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.round-details-header p { margin: 0 0 4px; color: #8e99ab; font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
.round-details-header h3 { margin: 0; color: #2f3c51; font-size: 1.125rem; }
.round-details-header > span { color: #8d97a8; font-size: .8125rem; }
.round-detail-filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(210px, 1.3fr) minmax(160px, .8fr) auto auto; align-items: end; gap: 10px; margin-top: 17px; }
.round-detail-filters label > span { display: block; margin-bottom: 5px; color: #647187; font-size: .75rem; font-weight: 700; }
.round-detail-filters select, .round-detail-filters input[type="text"], .round-detail-filters input:not([type]) { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #dfe5ed; border-radius: 6px; color: #344158; background: #fff; outline: none; }
.round-detail-filters select:focus, .round-detail-filters input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(38,193,212,.1); }
.round-detail-filters button, .round-pagination button { min-height: 40px; padding: 0 13px; border: 1px solid var(--cyan); border-radius: 6px; color: #fff; background: var(--cyan); cursor: pointer; font-size: .8125rem; font-weight: 700; }
.round-detail-filters button.secondary, .round-pagination button { color: #536178; border-color: #dfe5ed; background: #fff; }
.round-detail-filters button:disabled, .round-pagination button:disabled { cursor: not-allowed; opacity: .5; }
.round-detail-message { min-height: 20px; margin: 12px 0 0; color: #68758a; font-size: .8125rem; }
.round-detail-message.error { color: #c3475c; }
.round-table-scroll { margin-top: 5px; }
.round-table td.payout { color: #168a70; font-weight: 750; }
.round-table td.prize-cell { color: #8b6417; background: #fffaf0; font-weight: 750; }
.round-table td.independent { color: #188aa0; font-weight: 700; }
.round-empty { padding: 28px 12px; color: #8d97a8; text-align: center !important; }
.round-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; color: #778297; font-size: .8125rem; }
.round-pagination > div { display: flex; gap: 8px; }
.control-footer { padding: 22px; color: #9aa4b3; background: #fff; border-top: 1px solid #e9edf3; font-size: .8125rem; text-align: center; }

@media (max-width: 1100px) {
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .activity-panel { grid-column: 1 / -1; }
  .game-max-win-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dashboard-workspace { display: block; width: 100%; padding-top: 0; }
  .section-nav {
    position: static; display: flex; min-height: 59px; flex-direction: row; align-items: stretch; gap: 25px; padding: 0 20px;
    border-width: 0 0 1px; border-radius: 0; box-shadow: none; overflow-x: auto;
  }
  .section-nav a { min-height: 59px; padding: 0; border-radius: 0; background: transparent; }
  .section-nav a:hover, .section-nav a.active { background: transparent; }
  .section-nav a::after { top: auto; right: 0; bottom: 0; left: 0; width: auto; height: 2px; border-radius: 0; }
  .dashboard-main { width: calc(100% - 40px); margin: 0 auto; padding-top: 28px; }
  .selected-game-body { grid-template-columns: 1fr; }
  .gameplay-guide { border-right: 0; border-bottom: 1px solid #e8edf3; }
}

@media (max-width: 720px) {
  .topbar { min-height: 60px; padding: 0 15px; }
  .environment-pill { display: none; }
  .hall-link { padding: 8px; }
  .hall-link svg { width: 19px; }
  .dashboard-hero { padding: 12px 16px 14px; }
  .rule-badge { min-width: 130px; }
  .metric-strip { gap: 14px 18px; margin-top: 14px; }
  .hero-metric { align-items: center; }
  .sparkline { display: none; }
  .section-nav { padding: 0 16px; gap: 25px; }
  .dashboard-workspace { padding-bottom: 42px; }
  .dashboard-main { width: calc(100% - 24px); padding-top: 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .activity-panel { grid-column: auto; }
  .overview-grid { gap: 18px; }
  .panel { padding: 17px; }
  .stack-chart { min-height: 250px; gap: 6px; padding-right: 2px; padding-left: 2px; }
  .stack-chart { grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: hidden; }
  .bar-shell { width: 70%; }
  .chart-column label { font-size: .6875rem; }
  .mode-options { grid-template-columns: 1fr; }
  .game-max-win-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-tier-guide { grid-template-columns: 1fr; }
  .member-toolbar { grid-template-columns: 1fr 1fr; }
  .member-result-count { grid-column: 1 / -1; padding-bottom: 0; }
  .round-detail-filters { grid-template-columns: 1fr 1fr auto; }
  body[data-active-view="overview"] .comparison-kpis { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { gap: 10px; }
  .top-actions { gap: 6px; }
  .control-brand strong { font-size: .8125rem; white-space: nowrap; }
  .font-size-control > span { display: none; }
  .font-size-control button { width: 29px; min-height: 28px; padding: 0; font-size: 0; }
  .font-size-control button::after { font-size: .625rem; }
  .member-modal { align-items: end; padding: 10px; }
  .member-dialog-card { max-height: calc(100vh - 20px); padding: 18px; }
  .member-balance-fields { grid-template-columns: 1fr; }
  .font-size-control button[data-font-size-option="standard"]::after { content: "A"; }
  .font-size-control button[data-font-size-option="large"]::after { content: "A+"; }
  .font-size-control button[data-font-size-option="extra-large"]::after { content: "A++"; }
  .hall-link { border: 0; }
  .hall-link { font-size: 0; }
  .hero-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .rule-badge { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .rule-badge strong { grid-row: 1 / 3; grid-column: 2; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .hero-metric strong { font-size: 1.125rem; }
  .member-tier-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-max-win-grid { grid-template-columns: 1fr; }
  .selected-game-header { align-items: flex-start; }
  .provider-rule-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .continuous-payout-card { grid-template-columns: 1fr; }
  .selected-game-identity img { width: 46px; height: 46px; flex-basis: 46px; }
  .selected-game-maximum strong { font-size: .9375rem; }
  .member-toolbar { grid-template-columns: 1fr; }
  .member-result-count { grid-column: auto; }
  .round-details-header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .round-detail-filters { grid-template-columns: 1fr 1fr; }
  .round-detail-filters label { grid-column: 1 / -1; }
  .round-pagination { align-items: stretch; flex-direction: column; }
  .round-pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
  .form-row { align-items: flex-start; flex-direction: column; }
  .percent-input, select { width: 100%; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions button { width: 100%; justify-content: center; }
  .chart-legend { justify-content: flex-start; }
}

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