Files
Stat-Dashboard/mockups/mockup.css

476 lines
33 KiB
CSS

:root {
color-scheme: dark;
--page: #0b0c10;
--sidebar: #0e1015;
--surface: #12151c;
--surface-raised: #171a23;
--surface-hover: #1d212c;
--border: #252a36;
--border-soft: #1c202a;
--text: #f2f4f8;
--muted: #9299a8;
--dim: #676f7d;
--accent: #7c8cff;
--accent-strong: #6477ff;
--cyan: #49d4dc;
--green: #43d49b;
--amber: #f2bb61;
--red: #f07483;
--chart-1: #7c8cff;
--chart-2: #49d4dc;
--chart-3: #f2bb61;
--chart-4: #ed82b8;
--chart-5: #72d59d;
--chart-6: #bc96fa;
--chart-7: #f08d72;
--chart-8: #8bc7f4;
--chart-9: #d5d378;
--chart-10: #a8aaa5;
--chart-11: #ef7793;
--chart-12: #67c7b5;
--chart-height: 230px;
--radius: 12px;
--sidebar-width: 232px;
--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
--motion-fast: 150ms;
--motion-normal: 260ms;
--motion-reveal: 420ms;
--ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: var(--sidebar-width); flex-direction: column; border-right: 1px solid var(--border-soft); background: var(--sidebar); padding: 20px 14px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: linear-gradient(140deg,#798aff,#a58aff); color: white; font-weight: 800; }
.project-select { margin: 0 2px 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 10px; }
.project-label, .eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project-name { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-weight: 600; }
.nav-label { margin: 0 9px 8px; color: var(--dim); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; min-height: 39px; align-items: center; gap: 11px; border-radius: 8px; padding: 0 10px; color: var(--muted); font-size: 13px; }
.nav a:hover { background: var(--surface-hover); color: var(--text); }
.nav a.active { background: #1a1d2a; color: #dce1ff; }
.nav-icon { display: inline-grid; width: 18px; place-items: center; color: currentColor; font-size: 15px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border-soft); padding-top: 13px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 9px 7px; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #2d3653; color: #dce1ff; font-size: 11px; font-weight: 700; }
.user-name { font-size: 12px; font-weight: 600; }
.user-role { color: var(--muted); font-size: 11px; }
.main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; min-height: 62px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-soft); background: rgb(11 12 16 / 92%); padding: 0 30px; backdrop-filter: blur(16px); }
.breadcrumbs { color: var(--muted); font-size: 12px; }
.breadcrumbs strong { color: var(--text); font-weight: 600; }
.top-actions, .toolbar, .inline { display: flex; align-items: center; gap: 9px; }
.icon-button, .button, .select, .date-button { min-height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 0 11px; color: var(--text); font-size: 12px; }
.icon-button { width: 34px; padding: 0; color: var(--muted); }
.button:hover, .icon-button:hover, .date-button:hover { background: var(--surface-hover); }
.button.primary { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; font-weight: 600; }
.button.ghost { background: transparent; }
.page { max-width: 1500px; margin: 0 auto; padding: 28px 30px 48px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h1 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.subtitle { margin-top: 5px; color: var(--muted); font-size: 12px; }
.page-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin: 0 0 20px; }
.tabs a { position: relative; padding: 0 1px 11px; color: var(--muted); font-size: 12px; }
.tabs a.active { color: var(--text); }
.tabs a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--accent); content: ""; }
.grid { display: grid; gap: 14px; }
.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 14px; }
.two-col { grid-template-columns: minmax(0,1.55fr) minmax(290px,1fr); }
.three-col { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card-pad { padding: 17px 18px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 9px; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-title { font-size: 13px; font-weight: 600; }
.card-note { margin-top: 3px; color: var(--muted); font-size: 11px; }
.card-body { padding: 14px 16px 16px; }
.chart { display: block; width: 100%; height: var(--chart-height); overflow: visible; }
.chart.short { height: 170px; }
.chart.tall { height: 300px; }
.chart text { fill: var(--muted); font-family: var(--font); font-size: 12px; }
.chart .gridline { stroke: var(--border); stroke-dasharray: 3 5; }
.chart .axis { stroke: var(--border); }
.chart .line { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.chart .line.secondary { stroke: var(--cyan); stroke-width: 2; }
.chart .area { fill: url(#areaFill); }
.chart .bar { fill: #7889ff; opacity: .8; }
.chart .bar:hover { opacity: 1; }
.chart-wrap { padding: 0 16px 10px; overflow-x: auto; }
.interactive-chart { cursor: crosshair; touch-action: pan-y; }
.interactive-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.chart-inspection { pointer-events: none; }
.chart-inspection[hidden], .chart-tooltip[hidden] { display: none; }
.chart-crosshair { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-hover-point { fill: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-hover-band { fill: var(--accent); opacity: .09; }
.chart-tooltip { position: fixed; z-index: 100; pointer-events: none; max-width: min(360px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow: hidden; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); color: var(--text); box-shadow: 0 8px 28px rgb(0 0 0 / 35%); font-size: 12px; }
.chart-tooltip-title { margin-bottom: 8px; font-weight: 600; }
.chart-tooltip-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 3px 0; }
.chart-tooltip-row > span { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.chart-tooltip-row strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dot.cyan { background: var(--cyan); }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }
.table-wrap { overflow-x: auto; }
.player-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--dim) var(--surface); }
.player-table-wrap table { min-width: 1180px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 10px 15px; color: var(--muted); font-size: 10px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
th[data-key] { cursor: pointer; user-select: none; }
th[data-key]:hover { color: var(--text); }
td { border-top: 1px solid var(--border-soft); padding: 12px 15px; font-size: 12px; }
tbody tr:hover { background: rgb(255 255 255 / 2%); }
.pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; color: var(--muted); font-size: 10px; }
.pill.good { border-color: #234537; background: #14251e; color: var(--green); }
.pill.warn { border-color: #4c3e25; background: #282114; color: var(--amber); }
.event-name { color: #dce1ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.filter-input { min-width: 185px; min-height: 34px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: var(--surface); padding: 0 10px; color: var(--text); font-size: 12px; }
.filter-input:focus { border-color: var(--accent); }
.filter-input::placeholder { color: var(--dim); }
.player-controls { align-items: end; padding: 0 16px 13px; }
.control-label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.control-label .select { min-width: 145px; }
.empty { padding: 35px 20px; color: var(--muted); text-align: center; }
.retention-grid { display: grid; grid-template-columns: 150px repeat(8,minmax(56px,1fr)); min-width: 700px; gap: 4px; padding: 14px; }
.retention-grid > div { display: grid; min-height: 35px; place-items: center; border-radius: 5px; font-size: 10px; }
.retention-grid .heat-label { justify-items: start; color: var(--muted); }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 18px; }
.settings-nav { display: grid; align-content: start; gap: 3px; }
.settings-nav a { border-radius: 7px; padding: 9px 10px; color: var(--muted); font-size: 12px; }
.settings-nav a.active { background: var(--surface-hover); color: var(--text); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border-soft); padding: 15px 0; }
.setting-row:first-child { border-top: 0; }
.setting-title { font-size: 12px; font-weight: 600; }
.setting-help { margin-top: 3px; color: var(--muted); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ""; }
.mobile-nav { display: none; }
.menu-toggle { display: none; }
.loading { color: var(--muted); font-size: 12px; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 0%, #171b2b 0%, var(--page) 48%); }
.login-card { width: min(100%, 400px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 30px; box-shadow: 0 24px 80px #0007; }
.login-brand { justify-content: center; padding: 0 0 27px; }
.login-card h1 { text-align: center; font-size: 22px; }
.login-subtitle { margin: 7px 0 23px; color: var(--muted); text-align: center; font-size: 12px; }
.login-label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.login-input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #0d0f14; padding: 0 11px; color: var(--text); }
.login-input:focus { border-color: var(--accent); }
.login-submit { width: 100%; height: 40px; margin-top: 20px; }
.login-foot { margin-top: 18px; color: var(--dim); text-align: center; font-size: 10px; }
.activity-picker-row { display: flex; align-items: end; gap: 12px; margin: 0 0 19px; }
.activity-select-wrap { display: grid; gap: 5px; min-width: 210px; }
.activity-updated { margin-left: auto; color: var(--muted); font-size: 11px; }
.activity-panel { display: none; }
.activity-panel.active { display: block; animation: surface-enter var(--motion-normal) var(--ease-out) both; }
.activity-flow-card { margin-bottom: 14px; }
.activity-flow { display: flex; align-items: center; overflow-x: auto; padding: 24px 18px 20px; }
.flow-node { display: grid; min-width: 146px; min-height: 91px; align-content: center; gap: 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); padding: 11px; }
.flow-node.start { border-color: #35466a; background: #151d2c; }
.flow-node.prompt { border-color: #59462a; background: #211c15; }
.flow-node.outcome { border-color: #3b355e; background: #1b1929; }
.flow-node.end { border-color: #2b4438; background: #141f19; }
.flow-kind { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.flow-node code, .captured-list code { color: #dce1ff; font-size: 11px; }
.flow-node small { color: var(--muted); font-size: 10px; }
.flow-connector { position: relative; min-width: 28px; height: 1px; background: var(--border); }
.flow-connector::after { position: absolute; top: -3px; right: 0; width: 6px; height: 6px; transform: rotate(45deg); border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); content: ""; }
.activity-lower { margin-top: 14px; }
.captured-list { display: grid; gap: 0; padding: 6px 18px 16px; }
.captured-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-soft); padding: 11px 0; }
.captured-list > div:first-child { border-top: 0; }
.captured-list span { display: grid; gap: 3px; }
.captured-list small { color: var(--muted); font-size: 10px; }
.captured-list strong { font-size: 12px; }
.activity-config-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(240px,.75fr); align-items: start; gap: 14px; }
.activity-config-layout > .grid { gap: 14px; }
.config-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 17px; }
.config-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 600; }
.config-grid .filter-input, .config-grid .select { width: 100%; }
.config-events, .capture-fields { display: grid; gap: 8px; margin: 14px 0 0; }
.config-event, .capture-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-soft); border-radius: 9px; background: #10131a; padding: 8px; }
.config-event .filter-input, .capture-field .filter-input { min-width: 110px; flex: 1; }
.config-event .select, .capture-field .select { min-width: 125px; }
.event-type { width: 94px; min-width: 94px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.event-type.prompt-type { color: var(--amber); }
.event-type.outcome-type { color: var(--green); }
.drag-handle { color: var(--dim); font-size: 15px; }
.remove-event { width: 28px; min-height: 28px; flex: 0 0 28px; }
.capture-fields { margin-bottom: 12px; }
.summary-list { display: grid; gap: 0; margin-top: 13px; }
.summary-list > div { display: grid; gap: 4px; border-top: 1px solid var(--border-soft); padding: 11px 0; }
.summary-list span { color: var(--muted); font-size: 10px; }
.summary-list strong { font-size: 11px; font-weight: 550; }
.config-note { display: flex; gap: 8px; margin: 13px 0; border: 1px solid #3b355e; border-radius: 8px; background: #191726; padding: 10px; color: #b9b4d7; font-size: 10px; }
.save-activity { width: 100%; }
.activity-dialog { width: min(440px, calc(100vw - 28px)); border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: var(--text); padding: 24px; box-shadow: 0 24px 80px #0009; }
.activity-dialog[open] { animation: surface-enter var(--motion-normal) var(--ease-out) both; }
.activity-dialog::backdrop { background: rgb(3 4 8 / 72%); backdrop-filter: blur(3px); }
.dialog-card { position: relative; }
.dialog-card h2 { margin: 16px 0 5px; font-size: 18px; }
.dialog-card > .filter-input { width: 100%; }
.dialog-close { position: absolute; top: 0; right: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; transform: translateY(8px); border: 1px solid var(--border); border-radius: 9px; background: var(--surface-raised); padding: 11px 14px; color: var(--text); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease; }
.toast.visible { transform: translateY(0); opacity: 1; }
.player-segments { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid var(--border-soft); padding: 0 15px 12px; }
.segment-button { flex: 0 0 auto; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 7px 10px; color: var(--muted); font-size: 11px; }
.segment-button span { margin-left: 3px; color: var(--dim); font-size: 9px; }
.segment-button:hover { background: var(--surface-hover); color: var(--text); }
.segment-button.active { border-color: #343a50; background: #1a1d2a; color: #dce1ff; }
.player-name-link { color: var(--text); font-weight: 600; }
.player-name-link:hover { color: #c8ceff; text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.back-link:hover { color: var(--text); }
.player-profile-title { margin-top: 0; }
.player-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.player-info-panel { display: none; }
.player-info-panel.active { display: block; animation: surface-enter var(--motion-normal) var(--ease-out) both; }
.snapshot-fields { display: grid; gap: 0; margin-top: 12px; }
.snapshot-fields > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; border-top: 1px solid var(--border-soft); padding: 13px 0; }
.snapshot-fields > div:first-child { border-top: 0; }
.snapshot-fields span { color: var(--muted); font-size: 11px; }
.snapshot-fields strong { font-size: 12px; }
.snapshot-fields small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.session-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.session-summary > div { display: grid; gap: 5px; }
.session-summary span { color: var(--muted); font-size: 11px; }
.session-summary strong { font-size: 18px; }
.section-gap { margin-top: 16px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 16px; color: var(--muted); font-size: 11px; }
.json-value { display: block; max-width: 560px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.game-select { width: 100%; margin-top: 6px; }
.mobile-game-select { display: none; }
.mobile-more-links { display: none; }
.error-banner { margin-bottom: 16px; border: 1px solid #653942; border-radius: 9px; background: #29181d; padding: 12px 14px; color: #f8bcc5; font-size: 12px; }
.button:disabled { opacity: .4; cursor: default; transform: none; }
.metric-value { overflow-wrap: anywhere; }
.metric-value[data-format="date"] { font-size: 16px; }
.chart-wrap { min-height: 120px; }
.card-head .filter-input { min-width: 0; }
@media (max-width: 700px) {
.mobile-game-select { display: block; max-width: 65%; font-size: 11px; }
.topbar .breadcrumbs { max-width: 30%; font-size: 10px; }
.topbar .top-actions { display: none; }
.mobile-more-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mobile-more-links .button { display: inline-flex; align-items: center; }
.card-head:has([data-player-search]) { flex-direction: column; padding-bottom: 12px; }
.card-head [data-player-search] { width: 100%; }
}
/* Shared motion: small distances and brief transitions keep data easy to follow. */
.button, .icon-button, .date-button, .select, .filter-input, .login-input,
.nav a, .tabs a, .settings-nav a, .mobile-nav a, tbody tr {
transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease,
border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.button:active, .icon-button:active, .date-button:active { transform: translateY(1px); }
.select { cursor: pointer; }
.select:hover { border-color: var(--dim); background-color: var(--surface-hover); }
.select:focus-visible, .button:focus-visible, .icon-button:focus-visible,
.date-button:focus-visible, .nav a:focus-visible, .tabs a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
.filter-input:focus, .login-input:focus { box-shadow: 0 0 0 3px rgb(124 140 255 / 10%); }
.page-heading, .login-card { animation: surface-enter var(--motion-reveal) var(--ease-out) both; }
.page .card { animation: surface-enter var(--motion-reveal) var(--ease-out) both; }
.metrics .card:nth-child(2) { animation-delay: 35ms; }
.metrics .card:nth-child(3) { animation-delay: 70ms; }
.metrics .card:nth-child(4) { animation-delay: 105ms; }
.chart { animation: data-fade var(--motion-normal) ease-out both; }
.chart .line { stroke-dasharray: 100; animation: line-reveal 700ms var(--ease-out) both; }
.chart .line.secondary { animation-delay: 65ms; }
.chart .bar { transform-box: fill-box; transform-origin: center bottom; animation: bar-reveal 480ms var(--ease-out) backwards; transition: opacity var(--motion-fast) ease; }
.retention-grid { animation: data-fade var(--motion-normal) ease-out both; }
@keyframes surface-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes data-fade { from { opacity: .55; } to { opacity: 1; } }
@keyframes line-reveal { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes bar-reveal { from { opacity: .3; transform: scaleY(.08); } to { opacity: .8; transform: scaleY(1); } }
/* Browsers with customizable native selects get an animated, themed popup. */
@supports (appearance: base-select) {
select.select, select.select::picker(select) { appearance: base-select; }
select.select { align-items: center; gap: 12px; }
select.select::picker-icon { color: var(--muted); transition: rotate var(--motion-fast) ease; }
select.select:open::picker-icon { rotate: 180deg; }
select.select::picker(select) {
margin-top: 6px; max-height: 320px; overflow-y: auto; padding: 5px;
border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised);
color: var(--text); box-shadow: 0 12px 28px rgb(0 0 0 / 30%);
opacity: 0; transform: translateY(-4px); transform-origin: top;
transition: opacity var(--motion-fast) ease, transform var(--motion-normal) var(--ease-out),
display var(--motion-normal) allow-discrete, overlay var(--motion-normal) allow-discrete;
}
select.select:open::picker(select) { opacity: 1; transform: translateY(0); }
@starting-style { select.select:open::picker(select) { opacity: 0; transform: translateY(-4px); } }
select.select option { padding: 9px 10px; border-radius: 6px; font-size: 12px; transition: background-color var(--motion-fast) ease; }
select.select option:hover, select.select option:focus { background: var(--surface-hover); }
select.select option:checked { color: #dce1ff; background: #23283c; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.button:active, .icon-button:active, .date-button:active { transform: none; }
.chart .line { stroke-dasharray: none; }
}
@media (max-width: 1050px) {
:root { --sidebar-width: 196px; }
.page { padding-right: 22px; padding-left: 22px; }
.metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.two-col { grid-template-columns: minmax(0,1fr); }
.activity-config-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
body { padding-bottom: 68px; }
.sidebar { display: none; }
.main { margin-left: 0; }
.topbar { min-height: 54px; padding: 0 15px; }
.menu-toggle { display: inline-grid; }
.breadcrumbs { display: block; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions .status { display: none; }
.page { padding: 21px 14px 30px; }
.page-heading { flex-direction: column; gap: 13px; margin-bottom: 17px; }
h1 { font-size: 21px; }
.page-controls { width: 100%; }
.page-controls > * { flex: 1; }
.metrics { gap: 9px; }
.metric-card { padding: 13px; }
.metric-value { font-size: 22px; }
.three-col { grid-template-columns: 1fr; }
.tabs { gap: 19px; overflow-x: auto; }
.tabs a { flex: 0 0 auto; }
.card-head { padding: 14px 14px 0; }
.chart-wrap { padding: 0 10px 10px; }
.chart { height: 210px; }
.chart.tall { height: 255px; }
.mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--border); background: rgb(14 16 21 / 96%); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); backdrop-filter: blur(15px); }
.mobile-nav a { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: 9px; }
.mobile-nav a.active { color: #cbd2ff; }
.mobile-nav .nav-icon { font-size: 16px; }
.toolbar { width: 100%; }
.toolbar .date-button { flex: 1; }
.player-controls { align-items: stretch; padding: 0 12px 12px; }
.control-label { flex: 1 1 44%; }
.control-label .select { width: 100%; min-width: 0; }
.settings-layout { grid-template-columns: 1fr; }
.settings-nav { display: flex; overflow-x: auto; }
.settings-nav a { flex: 0 0 auto; }
.retention-grid { grid-template-columns: 105px repeat(8,minmax(48px,1fr)); padding: 10px; }
.player-table-wrap { margin-right: -1px; }
.login-card { padding: 26px 22px; }
.activity-picker-row { align-items: stretch; flex-wrap: wrap; }
.activity-select-wrap { min-width: 0; flex: 1 1 55%; }
.activity-updated { margin-left: 0; }
.activity-flow { margin-right: -14px; padding-right: 14px; padding-left: 14px; }
.config-grid { grid-template-columns: minmax(0,1fr); }
.config-event, .capture-field { flex-wrap: wrap; }
.config-event .filter-input, .capture-field .filter-input { flex-basis: calc(100% - 130px); }
.event-type { width: auto; min-width: 68px; }
.config-event .select, .capture-field .select { flex: 1; min-width: 100px; }
.toast { right: 12px; bottom: 80px; left: 12px; text-align: center; }
.player-segments { margin-right: -14px; padding-right: 14px; padding-left: 12px; }
.session-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.grid > :only-child { grid-column: 1 / -1; }
.stage-reach { color: var(--accent); font-weight: 600; }
.stage-drop { color: var(--muted); font-size: 11px; margin-top: 5px; }
.card-head:has(.profile-history-controls) { flex-wrap: wrap; padding-bottom: 12px; }
.profile-history-controls { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.profile-history-controls .control-label { flex: 1 1 130px; min-width: 0; }
.profile-history-controls .select { width: 100%; min-width: 0; }
.join-session { white-space: nowrap; }
.join-session:disabled { color: var(--muted); filter: grayscale(1); cursor: not-allowed; }
.event-chart-controls { padding: 12px 18px; }
.event-picker { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.event-picker summary { cursor: pointer; padding: 10px 12px; font-size: 12px; }
.event-picker summary .card-note { margin-left: 8px; }
.event-picker-panel { padding: 0 12px 12px; }
.event-picker-toolbar { display: flex; gap: 8px; padding-bottom: 10px; }
.event-picker-toolbar .filter-input { flex: 1; min-width: 0; }
.event-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); max-height: 240px; overflow-y: auto; gap: 4px 12px; }
.event-option { display: flex; align-items: center; gap: 8px; padding: 7px 5px; cursor: pointer; font-size: 12px; min-width: 0; border-radius: 6px; }
.event-option:hover { background: var(--surface-hover); }
.event-option input { accent-color: var(--accent); }
.event-option span { overflow-wrap: anywhere; }
.event-option[hidden] { display: none; }
.chart-series-picker { margin: 12px 0; }
.prompt-source-controls { align-items: center; }
.record-filter { margin: 12px 18px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.record-filter summary { cursor: pointer; font-size: 12px; }
.record-filter-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 5px 12px; max-height: 240px; overflow-y: auto; padding: 8px 0; }
.record-filter-options > p { grid-column: 1 / -1; }
.table-footer { flex-wrap: wrap; gap: 10px; }
.table-footer .select { min-width: 115px; }
.hall-of-fame h2 { margin: 0 0 6px; font-size: 18px; }
.health-reports h2 { margin: 0 0 6px; font-size: 18px; }
.health-report-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; margin-bottom: 20px; }
.health-report-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.health-report-title { font-size: 15px; font-weight: 600; }
.health-report-summary { display: block; cursor: pointer; list-style: none; border-radius: 6px; }
.health-report-summary::-webkit-details-marker { display: none; }
.health-report-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.health-report-summary > .card-note { display: block; }
.health-report-actions { display: flex; align-items: center; gap: 12px; }
.health-report-chevron { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform var(--motion-fast) ease; }
.health-report-disclosure[open] .health-report-chevron { transform: rotate(90deg); }
.health-report-disclosure[open] .health-report-content { animation: data-fade var(--motion-fast) ease-out; }
.health-report-body { font-size: 13px; line-height: 1.65; }
.health-report-body p { margin: 14px 0 0; color: var(--muted); }
.health-report-body strong { color: var(--text); }
.health-report-body .health-weekday { font-size: 12px; }
.health-report-notes { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.health-report-notes:empty { display: none; }
.health-report-updated { border-top: 1px solid var(--border-soft); margin-top: 14px; padding-top: 10px; line-height: 1.6; }
.summary-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.summary-toolbar .player-segments { margin: 0; padding: 0; }
.summary-period-note { margin-bottom: 16px; line-height: 1.6; }
.summary-executive { border-color: var(--accent); }
.summary-executive .health-report-title { font-size: 18px; }
.overview-analysis { border-color: var(--accent); }
.overview-analysis .health-report-title { font-size: 18px; }
.overview-analysis .health-report-body { column-count: 2; column-gap: 30px; }
.overview-analysis .health-report-body p { break-inside: avoid; margin-bottom: 16px; }
@media (max-width: 1050px) { .overview-analysis .health-report-body { column-count: 1; } }
.summaries-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.summary-detail-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 12px; }
@media (max-width: 900px) { .summaries-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1050px) { .health-report-grid { grid-template-columns: minmax(0,1fr); } }
.hall-of-fame [data-leaderboards] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hall-of-fame [data-leaderboards] > .card { min-width: 0; }
@media (max-width: 700px) {
.hall-of-fame [data-leaderboards] { grid-template-columns: minmax(0, 1fr); }
}
.fame-list { list-style: none; margin: 14px 0 0; padding: 0; }
.fame-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.fame-list li:last-child { border-bottom: 0; }
.fame-rank { width: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fame-list li:first-child .fame-rank { color: var(--amber); }
.avatar-placeholder { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-raised); color: var(--muted); font-size: 12px; }
.fame-player { flex: 1; min-width: 0; }
.fame-player .player-name-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fame-player .card-note { font-size: 10px; overflow-wrap: anywhere; }
.fame-list strong { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
:root { --chart-height: 210px; }
.record-filter-options { grid-template-columns: 1fr; }
.table-footer .inline { flex-wrap: wrap; }
}