.game-demo {
    --demo-line: #d6dfe1;
    --demo-muted: #54636b;
    --demo-accent: #176b7b;
    background: #fff;
    border: 1px solid #c4ccce;
    border-radius: 6px;
    color: #1b252b;
    overflow: hidden;
}
.game-demo[hidden], .game-demo-status[hidden] { display: none; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; }
.demo-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.demo-identity img { width: 56px; height: 56px; border-radius: 6px; flex-shrink: 0; object-fit: cover; }
.demo-identity h4 { margin: 4px 0 0; font-size: 1.375rem; line-height: 1.3; overflow-wrap: anywhere; }
.demo-eyebrow { color: var(--demo-muted); font-size: .75rem; margin: 0; }
.demo-game-select { display: grid; gap: 6px; font-size: .75rem; color: var(--demo-muted); min-width: 230px; }
.demo-game-select select { width: 100%; min-height: 44px; color: #1b252b; background: #fff; border-color: #82969d; border-radius: 4px; font-size: .875rem; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--demo-line); background: #f6f8f9; }
.demo-kpis > div { min-width: 0; padding: 24px 30px; }
.demo-kpis > div + div { border-left: 1px solid var(--demo-line); }
.demo-kpis span { display: block; color: var(--demo-muted); font-size: .75rem; margin-bottom: 10px; }
.demo-kpis strong { font-size: 1.75rem; font-weight: 550; font-variant-numeric: tabular-nums; line-height: 1.3; }
.demo-chart-content { padding: 26px 30px 0; }
.demo-chart-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.demo-segments { display: inline-flex; gap: 4px; padding: 3px; background: #f0f4f5; border-radius: 4px; }
.demo-segments button { min-width: 48px; min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 3px; color: #53626a; background: transparent; font-size: .8125rem; }
.demo-segments button:hover { color: #133740; background: #e2edef; }
.demo-segments button[aria-pressed="true"] { border-color: #afc5cb; background: #fff; color: #145e6b; }
.demo-reading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; min-height: 68px; padding-block: 20px 8px; }
.demo-reading strong { font-size: 1.625rem; font-variant-numeric: tabular-nums; font-weight: 550; }
.demo-reading span { font-size: .75rem; color: var(--demo-muted); }
.demo-chart-frame { position: relative; width: 100%; height: 320px; }
.demo-chart-frame canvas { display: block; }
.demo-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--demo-muted); padding: 24px; font-size: .875rem; }
.demo-chart-empty[hidden] { display: none; }
.demo-chart-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: .75rem; color: var(--demo-muted); padding-top: 12px; }
.demo-history-note { font-size: .75rem; color: var(--demo-muted); line-height: 1.6; margin-block: 14px 20px; }
.demo-data { border-top: 1px solid var(--demo-line); }
.demo-data summary { display: list-item; padding-block: 16px; min-height: 48px; font-size: .8125rem; cursor: pointer; color: #176b7b; }
.demo-table-scroll { max-height: 250px; overflow: auto; margin-bottom: 20px; }
.demo-data table { width: 100%; min-width: 0; border-collapse: collapse; font-size: .75rem; }
.demo-data caption { text-align: left; color: var(--demo-muted); padding-bottom: 12px; }
.demo-data th, .demo-data td { padding: 10px 12px; border-bottom: 1px solid var(--demo-line); text-align: right; color: #25353d; background: #fff; white-space: nowrap; }
.demo-data th:first-child, .demo-data td:first-child { text-align: left; }
.demo-data th { font-weight: 550; background: #f6f8f9; }
.demo-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 16px 30px; border-top: 1px solid var(--demo-line); color: var(--demo-muted); font-size: .6875rem; line-height: 1.6; background: #f6f8f9; }
.game-demo-status:not([hidden]) { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; font-size: .875rem; color: #54636b; }
.game-demo-status p { margin: 0; }
.game-demo-status button { min-height: 44px; color: #145e6b; background: #fff; border-color: #82969d; }
#demo-game { scroll-margin-top: 108px; }
@media (max-width: 700px) {
    .demo-heading { flex-wrap: wrap; padding: 20px 16px; gap: 20px; }
    .demo-identity h4 { font-size: 1.125rem; }
    .demo-game-select { width: 100%; min-width: 0; }
    .demo-kpis > div { padding: 16px 10px; }
    .demo-kpis span { min-height: 32px; line-height: 1.4; font-size: .6875rem; margin-bottom: 4px; }
    .demo-kpis strong { font-size: 1.125rem; }
    .demo-chart-content { padding: 18px 14px 0; }
    .demo-chart-toolbar { gap: 10px; }
    .demo-segments button { padding-inline: 12px; }
    .demo-reading { min-height: 92px; display: block; padding-top: 18px; }
    .demo-reading strong { display: block; font-size: 1.5rem; margin-bottom: 6px; }
    .demo-chart-frame { height: 250px; }
    .demo-footer { padding: 14px 16px; }
    .demo-data th, .demo-data td { padding: 10px 6px; font-size: .6875rem; }
}
