mirror of
https://github.com/kuhyx/steam-backlog-enforcer.git
synced 2026-11-24 03:36:18 +01:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
717 lines
14 KiB
CSS
717 lines
14 KiB
CSS
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 16px/1.5 var(--font-sans);
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
h1 {
|
|
font-size: 24px;
|
|
letter-spacing: -0.4px;
|
|
}
|
|
h2 {
|
|
font-size: 16px;
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
a {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
code {
|
|
font-family: var(--font-mono);
|
|
background: var(--surface-2);
|
|
padding: var(--space-1) var(--space-2);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.app {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: var(--space-4);
|
|
}
|
|
.app-head {
|
|
margin-bottom: var(--space-4);
|
|
}
|
|
.sub {
|
|
color: var(--text-muted);
|
|
margin-top: var(--space-2);
|
|
}
|
|
|
|
.status {
|
|
max-width: 640px;
|
|
margin: 12vh auto;
|
|
text-align: center;
|
|
}
|
|
.error {
|
|
color: var(--danger);
|
|
}
|
|
.hint {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
margin: var(--space-2) 0 0;
|
|
}
|
|
|
|
/* ── Layout ── */
|
|
/* Fixed sidebar + fluid content is a page-chrome split, not a content grid --
|
|
the 12-column rule below applies to .cards, which actually needs 1/2/3/4-up
|
|
flexibility; this shell doesn't. */
|
|
.layout {
|
|
display: grid;
|
|
grid-template-columns: 320px 1fr;
|
|
gap: var(--space-4);
|
|
align-items: start;
|
|
}
|
|
@container planner (max-width: 900px) {
|
|
.layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ── Filter panel ── */
|
|
.panel {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-3);
|
|
position: sticky;
|
|
top: var(--space-3);
|
|
}
|
|
.panel-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
.field {
|
|
padding: var(--space-2) 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.field > label {
|
|
display: block;
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
.field .val {
|
|
float: right;
|
|
color: var(--accent);
|
|
font-family: var(--font-mono);
|
|
font-weight: 400;
|
|
}
|
|
.field input[type='range'] {
|
|
width: 100%;
|
|
accent-color: var(--accent);
|
|
}
|
|
.subfield {
|
|
margin-top: var(--space-2);
|
|
}
|
|
.subfield.row {
|
|
display: flex;
|
|
gap: var(--space-2);
|
|
align-items: center;
|
|
}
|
|
.check {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
}
|
|
.check input {
|
|
accent-color: var(--accent);
|
|
}
|
|
select,
|
|
input[type='date'],
|
|
input[type='search'] {
|
|
width: 100%;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
border-radius: var(--radius-sm);
|
|
padding: 7px var(--space-2);
|
|
font: inherit;
|
|
}
|
|
details summary {
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
details[open] summary {
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
|
|
/* ── Buttons / segmented ── */
|
|
.segmented {
|
|
display: flex;
|
|
gap: var(--space-1);
|
|
background: var(--surface-2);
|
|
padding: var(--space-1);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
.seg {
|
|
flex: 1;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
/* Padding = outer(2x vertical, rule 22). Radius = outer 8 - the .segmented
|
|
gap of 4 = 4 (rule 24), not a free choice. */
|
|
padding: var(--space-1) var(--space-2);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.seg.active {
|
|
background: var(--accent);
|
|
color: var(--on-fill);
|
|
font-weight: 600;
|
|
}
|
|
.ghost {
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
color: var(--text-muted);
|
|
padding: var(--space-1) var(--space-2);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 12px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.ghost:hover {
|
|
color: var(--text);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ── Summary ── */
|
|
.summary {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-3);
|
|
}
|
|
.summary-head {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-2);
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
.big {
|
|
font-size: 32px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
.big-label {
|
|
margin-left: var(--space-2);
|
|
color: var(--text-muted);
|
|
}
|
|
.parity {
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.parity .ok {
|
|
color: var(--success);
|
|
font-weight: 600;
|
|
}
|
|
.target-banner {
|
|
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
|
|
border-radius: var(--radius-sm);
|
|
padding: var(--space-2) 12px;
|
|
margin-bottom: var(--space-3);
|
|
font-size: 14px;
|
|
}
|
|
.cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, 1fr);
|
|
gap: var(--space-3);
|
|
}
|
|
.cards .card {
|
|
grid-column: span 3;
|
|
}
|
|
@container planner (max-width: 640px) {
|
|
.cards .card {
|
|
grid-column: span 6;
|
|
}
|
|
}
|
|
.card {
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px;
|
|
}
|
|
.card.active {
|
|
border-color: var(--accent);
|
|
/* Selection ring without a shadow (rule 26/27) -- inset outline reads
|
|
identically to the old 0-blur box-shadow ring. */
|
|
outline: 1px solid var(--accent);
|
|
outline-offset: -1px;
|
|
}
|
|
.card-title {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
}
|
|
.card-blurb {
|
|
font-size: 12px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--space-2);
|
|
min-height: 28px;
|
|
}
|
|
.card-total {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
font-family: var(--font-mono);
|
|
}
|
|
.card-eta {
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text);
|
|
margin-top: 2px;
|
|
}
|
|
.presets {
|
|
margin-top: var(--space-2);
|
|
border-top: 1px solid var(--border);
|
|
padding-top: var(--space-2);
|
|
}
|
|
.preset {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 11px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-muted);
|
|
padding: 1px 0;
|
|
}
|
|
|
|
/* ── Player Speed Insight ── */
|
|
.player-insight {
|
|
margin-top: var(--space-3);
|
|
padding: 14px;
|
|
background: var(--surface-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
}
|
|
.player-insight--empty {
|
|
opacity: 0.7;
|
|
}
|
|
.player-insight-title {
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-2);
|
|
font-size: 14px;
|
|
}
|
|
.player-insight-empty {
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-muted);
|
|
margin: 0;
|
|
}
|
|
.player-insight-grid {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 4px 20px;
|
|
/* Dense stat grid, deliberately below the 16px body floor (rule 20) --
|
|
same density trade-off as the game table below, not an accidental default. */
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
.player-insight-grid span:nth-child(odd) {
|
|
color: var(--text-muted);
|
|
}
|
|
.player-insight-fast {
|
|
color: var(--success);
|
|
font-weight: 600;
|
|
}
|
|
.player-insight-slow {
|
|
color: var(--warning);
|
|
font-weight: 600;
|
|
}
|
|
.player-insight-style--faster_than_rush {
|
|
color: var(--success);
|
|
}
|
|
.player-insight-style--slower_than_leisure {
|
|
color: var(--warning);
|
|
}
|
|
.player-insight-estimate {
|
|
border-top: 1px solid var(--border);
|
|
padding-top: var(--space-2);
|
|
}
|
|
.player-insight-estimate-total {
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
.player-insight-estimate-hours {
|
|
color: var(--accent);
|
|
font-family: var(--font-mono);
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* ── Chart ── */
|
|
.chart {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-3);
|
|
}
|
|
.chart-svg {
|
|
width: 100%;
|
|
height: auto;
|
|
display: block;
|
|
}
|
|
.chart-svg .grid {
|
|
stroke: var(--border);
|
|
stroke-width: 1;
|
|
}
|
|
.chart-svg .line {
|
|
fill: none;
|
|
stroke: var(--accent);
|
|
stroke-width: 2.5;
|
|
}
|
|
.chart-svg .area {
|
|
fill: color-mix(in srgb, var(--accent) 12%, transparent);
|
|
stroke: none;
|
|
}
|
|
.chart-svg .axis-label {
|
|
fill: var(--text-muted);
|
|
font-size: 11px;
|
|
letter-spacing: 0.02em;
|
|
font-family: var(--font-mono);
|
|
}
|
|
.chart-svg .axis-label.end {
|
|
text-anchor: end;
|
|
}
|
|
.chart-svg .axis-label.mid {
|
|
text-anchor: middle;
|
|
}
|
|
|
|
/* ── Table ── */
|
|
.table-wrap {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-3);
|
|
}
|
|
.table-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-2);
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
.table-head input {
|
|
max-width: 260px;
|
|
}
|
|
.table-scroll {
|
|
max-height: 540px;
|
|
overflow: auto;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
/* The game list is this app's primary read content, so 16px would be the
|
|
default -- but a data table this wide (name/hours/price/... columns)
|
|
needs the density; 13px is a deliberate trade-off, not the leftover
|
|
default, per the audit's own recommendation. */
|
|
font-size: 13px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
text-align: left;
|
|
padding: var(--space-2) 10px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
z-index: 1;
|
|
}
|
|
th.num,
|
|
td.num {
|
|
text-align: right;
|
|
}
|
|
th.clickable {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
tbody td {
|
|
padding: var(--space-2) 10px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
tbody tr:hover {
|
|
background: var(--surface-2);
|
|
}
|
|
tr.excluded {
|
|
opacity: 0.4;
|
|
}
|
|
tr.excluded .name a {
|
|
text-decoration: line-through;
|
|
}
|
|
td.name {
|
|
max-width: 320px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
td.proton {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
letter-spacing: 0.02em;
|
|
color: var(--text-muted);
|
|
}
|
|
.badge {
|
|
margin-left: var(--space-2);
|
|
font-size: 10px;
|
|
letter-spacing: 0.02em;
|
|
background: var(--warning);
|
|
color: var(--on-fill);
|
|
padding: 1px 5px;
|
|
border-radius: var(--radius-sm);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* --- Tabs ---------------------------------------------------------------
|
|
Same shape as .segmented/.seg, but page-level rather than inside a panel. */
|
|
.tabs {
|
|
display: flex;
|
|
gap: var(--space-1);
|
|
padding: var(--space-3) var(--space-4) 0;
|
|
}
|
|
.tab {
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
padding: var(--space-2) var(--space-3);
|
|
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
.tab.active {
|
|
color: var(--text);
|
|
border-bottom-color: var(--accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* --- Gaming budget ------------------------------------------------------ */
|
|
.budget {
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
}
|
|
.budget-today,
|
|
.budget-live,
|
|
.budget-rules {
|
|
background: var(--surface-1);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-3);
|
|
}
|
|
.budget-hero {
|
|
font-size: 40px;
|
|
line-height: 1.1;
|
|
margin: var(--space-2) 0;
|
|
color: var(--text-muted);
|
|
}
|
|
.budget-hero strong {
|
|
color: var(--text);
|
|
font-weight: 700;
|
|
}
|
|
.budget-meter {
|
|
height: 10px;
|
|
background: var(--surface-2);
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
}
|
|
.budget-meter-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
}
|
|
.budget-meter--warn .budget-meter-fill {
|
|
background: var(--warning);
|
|
}
|
|
.budget-meter--blocked .budget-meter-fill {
|
|
background: var(--danger);
|
|
}
|
|
.budget-badge {
|
|
display: inline-block;
|
|
padding: var(--space-1) var(--space-2);
|
|
border-radius: var(--radius-sm);
|
|
font-weight: 600;
|
|
}
|
|
.budget-badge--blocked {
|
|
background: var(--danger);
|
|
color: var(--on-fill);
|
|
}
|
|
.budget-verdict {
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
.budget-verdict--engaged {
|
|
color: var(--success);
|
|
}
|
|
.budget-rules-list {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: var(--space-1) var(--space-3);
|
|
margin: 0;
|
|
font-size: 14px;
|
|
}
|
|
.budget-rules-list dt {
|
|
color: var(--text-muted);
|
|
}
|
|
.budget-rules-list dd {
|
|
margin: 0;
|
|
}
|
|
.chart-svg .seg.cat-1 {
|
|
fill: var(--cat-1);
|
|
}
|
|
.chart-svg .seg.cat-2 {
|
|
fill: var(--cat-2);
|
|
}
|
|
.chart-svg .seg.cat-3 {
|
|
fill: var(--cat-3);
|
|
}
|
|
.chart-svg .seg.cat-4 {
|
|
fill: var(--cat-4);
|
|
}
|
|
.chart-svg .seg.cat-5 {
|
|
fill: var(--cat-5);
|
|
}
|
|
.chart-svg .seg.cat-6 {
|
|
fill: var(--cat-6);
|
|
}
|
|
.chart-svg .seg.other {
|
|
fill: var(--text-muted);
|
|
}
|
|
.chart-svg .seg.unattributed {
|
|
fill: color-mix(in srgb, var(--text-muted) 30%, var(--surface-2));
|
|
}
|
|
.chart-svg .budget-line {
|
|
stroke: var(--text-muted);
|
|
stroke-width: 1;
|
|
stroke-dasharray: 4 4;
|
|
}
|
|
|
|
/* --- Per-game breakdown: legend, swatches, today's list --- */
|
|
.chart-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-2) var(--space-3);
|
|
margin: var(--space-2) 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
color: var(--text-muted);
|
|
font-size: 0.875rem;
|
|
}
|
|
.chart-legend li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
}
|
|
.swatch {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 3px;
|
|
background: color-mix(in srgb, var(--text-muted) 30%, var(--surface-2));
|
|
flex: none;
|
|
}
|
|
.swatch.cat-1 {
|
|
background: var(--cat-1);
|
|
}
|
|
.swatch.cat-2 {
|
|
background: var(--cat-2);
|
|
}
|
|
.swatch.cat-3 {
|
|
background: var(--cat-3);
|
|
}
|
|
.swatch.cat-4 {
|
|
background: var(--cat-4);
|
|
}
|
|
.swatch.cat-5 {
|
|
background: var(--cat-5);
|
|
}
|
|
.swatch.cat-6 {
|
|
background: var(--cat-6);
|
|
}
|
|
.swatch.other {
|
|
background: var(--text-muted);
|
|
}
|
|
.swatch.unattributed {
|
|
background: color-mix(in srgb, var(--text-muted) 30%, var(--surface-2));
|
|
}
|
|
.budget-subhead {
|
|
margin: var(--space-3) 0 var(--space-2);
|
|
font-size: 0.95rem;
|
|
color: var(--text);
|
|
}
|
|
.budget-games {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
display: grid;
|
|
gap: var(--space-1);
|
|
}
|
|
.budget-games li {
|
|
display: grid;
|
|
grid-template-columns: 12px 1fr auto auto;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
}
|
|
.budget-game-name {
|
|
color: var(--text);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.budget-game-time {
|
|
font-family: var(--font-mono);
|
|
color: var(--text);
|
|
}
|
|
.budget-game-share {
|
|
color: var(--text-muted);
|
|
min-width: 3ch;
|
|
text-align: right;
|
|
}
|