Files
SteamBase/web/static/styles.css
T
2026-11-09 08:13:00 +03:00

1736 lines
51 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
:root {
--bg: #090c12;
--bg-2: #0d121b;
--panel: #111725;
--panel-2: #151d2e;
--text: #e9edf5;
--muted: #93a0b8;
--border: rgba(255, 255, 255, .075);
--border-strong: rgba(255, 255, 255, .14);
--accent: #f3b45c;
--accent-2: #5eead4;
--danger: #fb7185;
--radius: 16px;
--shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
button, a, summary, input, select { touch-action: manipulation; }
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.skip-link {
position: fixed;
top: -60px;
left: 12px;
z-index: 200;
padding: 8px 12px;
border-radius: 8px;
background: var(--accent);
color: #0a0d13;
font-weight: 650;
text-decoration: none;
transition: top .15s;
}
.skip-link:focus { top: 12px; }
body {
margin: 0;
min-height: 100vh;
background:
radial-gradient(1100px 600px at 85% -10%, rgba(94, 234, 212, .10), transparent 60%),
radial-gradient(900px 500px at 0% 0%, rgba(243, 180, 92, .09), transparent 55%),
var(--bg);
color: var(--text);
font: 15px/1.5 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
/* top bar */
.topbar {
position: sticky;
top: 0;
z-index: 20;
display: flex;
align-items: center;
gap: 22px;
padding: 14px 28px;
background: rgba(9, 12, 18, .78);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(14px);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 750;
font-size: 17px;
letter-spacing: -.02em;
white-space: nowrap;
}
.logo {
width: 34px;
height: 34px;
flex: 0 0 34px;
display: block;
border-radius: 10px;
box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.tabs {
display: flex;
gap: 4px;
padding: 4px;
border: 1px solid var(--border);
border-radius: 999px;
background: rgba(255, 255, 255, .02);
}
.tab {
border: 0;
background: transparent;
color: var(--muted);
padding: 7px 16px;
border-radius: 999px;
font-size: 14px;
transition: .18s;
}
.tab:hover { color: var(--text); }
.tab.active {
color: #0a0d13;
background: linear-gradient(135deg, var(--accent), #ffd59a);
font-weight: 650;
}
/* Paint the requested view before app.js runs (no library flash on reload). */
html[data-view="recommend"] #libraryView,
html[data-view="hltb"] #libraryView,
html[data-view="friends"] #libraryView,
html[data-view="services"] #libraryView,
html[data-view="help"] #libraryView { display: none !important; }
html[data-view="recommend"] #recommendView,
html[data-view="hltb"] #hltbView,
html[data-view="friends"] #friendsView,
html[data-view="services"] #servicesView,
html[data-view="help"] #helpView { display: block !important; }
html[data-view="recommend"] #tabRecommend,
html[data-view="hltb"] #tabHltb,
html[data-view="friends"] #tabFriends,
html[data-view="services"] #tabServices,
html[data-view="help"] #tabHelp {
color: #0a0d13;
background: linear-gradient(135deg, var(--accent), #ffd59a);
font-weight: 650;
}
html[data-view="recommend"] #tabLibrary,
html[data-view="hltb"] #tabLibrary,
html[data-view="friends"] #tabLibrary,
html[data-view="services"] #tabLibrary,
html[data-view="help"] #tabLibrary {
color: var(--muted);
background: transparent;
font-weight: normal;
}
.stats {
margin-left: auto;
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: flex-end;
}
.stat {
display: inline-flex;
align-items: baseline;
gap: 6px;
padding: 6px 11px;
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(255, 255, 255, .025);
font-size: 12.5px;
color: var(--muted);
}
.stat b { color: var(--text); font-weight: 650; }
/* layout */
main { padding: 24px 28px 70px; }
.layout {
display: grid;
grid-template-columns: 232px minmax(0, 1fr);
gap: 26px;
align-items: start;
max-width: 1500px;
margin: 0 auto;
}
.filters {
position: sticky;
top: 86px;
max-height: calc(100vh - 110px);
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 12px;
padding: 18px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008));
}
.layout.filters-collapsed { grid-template-columns: minmax(0, 1fr); }
.layout.filters-collapsed .filters { display: none; }
.layout.filters-unpinned { grid-template-columns: minmax(0, 1fr); }
.layout.filters-unpinned .filters {
position: fixed;
top: 86px;
left: 18px;
width: 268px;
max-height: calc(100vh - 110px);
z-index: 40;
background: #0f1520;
box-shadow: var(--shadow);
opacity: 0;
pointer-events: none;
transform: translateX(calc(-100% - 30px));
transition: transform .22s ease, opacity .22s ease;
will-change: transform;
overscroll-behavior: contain;
}
.layout.filters-unpinned .filters.open {
opacity: 1;
pointer-events: auto;
transform: none;
}
.saved-views { display: grid; grid-template-columns: minmax(0, 1fr) 34px 34px; gap: 6px; }
.saved-views .icon-btn { width: 34px; height: 38px; flex: none; font-size: 16px; }
.saved-views select { padding: 8px 9px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filter-actions { display: flex; align-items: center; gap: 8px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; }
.link:hover { text-decoration: underline; }
.icon-btn {
width: 42px;
height: 42px;
flex: 0 0 42px;
display: grid;
place-items: center;
border-radius: 11px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, .03);
color: var(--muted);
transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover {
color: var(--text);
border-color: var(--border-strong);
background: rgba(255, 255, 255, .06);
}
.icon-btn.active {
color: var(--accent);
border-color: rgba(243, 180, 92, .45);
background: rgba(243, 180, 92, .09);
}
.filter-actions .icon-btn {
width: 28px;
height: 28px;
flex-basis: 28px;
border-radius: 8px;
font-size: 17px;
line-height: 1;
}
.drawer-close { display: none; }
.layout.filters-unpinned .drawer-close { display: grid; }
.filters-backdrop {
position: fixed;
inset: 62px 0 0 0;
z-index: 35;
background: rgba(4, 6, 10, .55);
backdrop-filter: blur(2px);
}
body.drawer-open { overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--muted); }
.filter-group {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 12px;
background: rgba(255, 255, 255, .015);
}
.filter-group summary {
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 0;
cursor: pointer;
font-size: 11.5px;
font-weight: 650;
letter-spacing: .05em;
text-transform: uppercase;
color: var(--muted);
list-style: none;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; font-size: 14px; color: var(--muted); }
.filter-group[open] summary::after { content: "−"; }
.filter-group-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }
select, input[type="search"], input[type="number"], textarea {
width: 100%;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-2);
padding: 9px 11px;
outline: none;
transition: border-color .15s, box-shadow .15s;
}
select:focus, input[type="search"]:focus, input[type="number"]:focus, textarea:focus {
border-color: rgba(243, 180, 92, .55);
box-shadow: 0 0 0 3px rgba(243, 180, 92, .12);
}
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.range-row input { padding: 8px 9px; }
textarea { resize: vertical; min-height: 54px; }
.check {
display: flex;
align-items: center;
gap: 9px;
font-size: 13.5px;
color: var(--muted);
cursor: pointer;
user-select: none;
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.check:hover { color: var(--text); }
.card:focus-visible,
button:focus-visible,
summary:focus-visible,
.chip:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.multi-select { margin: 0; }
.multi-toggle {
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 9px 11px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-2);
font-size: 14px;
cursor: pointer;
user-select: none;
}
.multi-toggle::-webkit-details-marker { display: none; }
.multi-toggle::after {
content: "▾";
color: var(--muted);
font-size: 11px;
transition: transform .15s;
}
.multi-select[open] > .multi-toggle { border-color: rgba(243, 180, 92, .55); }
.multi-select[open] > .multi-toggle::after { transform: rotate(180deg); }
.multi-list {
display: flex;
flex-direction: column;
gap: 1px;
max-height: 210px;
overflow-y: auto;
margin-top: 6px;
padding: 5px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-2);
}
.multi-list .check {
padding: 4px 6px;
border-radius: 6px;
font-size: 13px;
}
.multi-list .check:hover { background: rgba(255, 255, 255, .04); }
.maintenance {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--border);
}
.maintenance-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 6px 2px;
border: 0;
background: none;
color: var(--muted);
font-size: 12px;
text-align: left;
}
.maintenance-toggle:hover { color: var(--text); }
.maintenance-title { display: flex; align-items: center; gap: 8px; }
.maintenance-title svg { color: var(--accent); }
.maintenance-toggle .chev { transition: transform .25s ease; }
.maintenance.open .maintenance-toggle .chev { transform: rotate(180deg); }
.maintenance-body {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows .28s ease;
}
.maintenance-body > .maintenance-inner {
overflow: hidden;
min-height: 0;
}
.maintenance.open .maintenance-body { grid-template-rows: 1fr; }
.maintenance-inner > :first-child { margin-top: 12px; }
.details-progress {
display: flex;
flex-direction: column;
gap: 8px;
font-size: 12px;
color: var(--muted);
}
.dp-head { display: flex; justify-content: space-between; }
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.dp-note { font-size: 11px; color: #6e7c93; line-height: 1.35; }
.translate-head { margin-top: 10px; }
.refresh-block {
margin-top: 10px;
padding-top: 12px;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 8px;
}
.refresh-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ghost {
flex: 1;
padding: 7px 8px;
border-radius: 9px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, .03);
color: #c7d1e2;
font-size: 11.5px;
transition: .15s;
}
.ghost:hover { border-color: var(--accent); color: var(--accent); }
.ghost:disabled { opacity: .5; cursor: wait; }
.content { min-width: 0; }
.toolbar {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 18px;
}
.toolbar input { flex: 1; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar .ghost { flex: 0 0 auto; }
#sortDir { min-width: 34px; padding-left: 8px; padding-right: 8px; }
.toolbar-check {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 12px;
color: var(--muted);
white-space: nowrap;
cursor: pointer;
}
.toolbar-check input { flex: 0 0 auto; width: auto; }
.count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.undo-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin: -8px 0 10px;
padding: 8px 12px;
border: 1px solid var(--accent);
border-radius: 12px;
background: var(--panel);
font-size: 13px;
}
.undo-bar[hidden] { display: none; }
.undo-bar #undoAction { margin-left: auto; }
.bulk-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin: -8px 0 18px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--panel);
}
.bulk-bar[hidden] { display: none; }
.bulk-bar b { font-size: 13px; margin-right: 4px; }
.bulk-bar select { width: auto; min-width: 130px; padding: 7px 9px; }
.bulk-bar .ghost { flex: 0 0 auto; padding: 7px 10px; }
.activity-panel { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.activity-body {
padding: 14px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--panel);
}
.activity-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.activity-head select { width: auto; min-width: 110px; }
.activity-heatmap {
display: grid;
grid-auto-flow: column;
grid-template-rows: repeat(7, 12px);
gap: 3px;
overflow-x: auto;
padding-bottom: 4px;
}
.activity-cell { width: 12px; height: 12px; border-radius: 3px; background: var(--bg-2); }
.activity-cell.blank { background: transparent; }
.activity-cell.l1 { background: rgba(94, 234, 212, .22); }
.activity-cell.l2 { background: rgba(94, 234, 212, .45); }
.activity-cell.l3 { background: rgba(94, 234, 212, .7); }
.activity-cell.l4 { background: rgba(94, 234, 212, .95); }
.activity-legend { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; }
.activity-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.activity-legend .l1 { background: rgba(94, 234, 212, .22); }
.activity-legend .l2 { background: rgba(94, 234, 212, .45); }
.activity-legend .l3 { background: rgba(94, 234, 212, .7); }
.activity-legend .l4 { background: rgba(94, 234, 212, .95); }
.select-box {
position: absolute;
right: 8px;
bottom: 8px;
z-index: 3;
display: grid;
place-items: center;
width: 28px;
height: 28px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, .16);
background: rgba(8, 11, 17, .72);
backdrop-filter: blur(6px);
cursor: pointer;
}
.select-box input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.card.selected { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-theme="light"] .select-box {
background: rgba(250, 247, 240, .88);
border-color: rgba(23, 32, 51, .16);
}
/* grid + cards */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
gap: 18px;
}
.grid.list-view { display: flex; flex-direction: column; gap: 8px; }
.grid.list-view .card {
display: grid;
grid-template-columns: 76px minmax(0, 1fr);
align-items: stretch;
}
.grid.list-view .cover {
aspect-ratio: auto;
min-height: 112px;
height: 100%;
border-right: 1px solid var(--border);
}
.grid.list-view .card-body {
display: block;
padding: 10px 14px;
}
.grid.list-view .card-title { margin-bottom: 4px; }
.grid.list-view .card-meta { margin-bottom: 4px; }
.grid.list-view .card-desc {
-webkit-line-clamp: 1;
min-height: 0;
margin-top: 6px;
}
.grid.list-view .reasons {
margin: 2px 0 0;
padding-left: 14px;
color: var(--muted);
font-size: 11px;
line-height: 1.45;
}
.feedback-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cover .feedback-row {
position: absolute;
left: 6px;
right: 6px;
bottom: 6px;
z-index: 4;
margin: 0;
padding: 4px;
border-radius: 8px;
background: rgba(8, 11, 17, .78);
opacity: 0;
transform: translateY(4px);
pointer-events: none;
transition: .15s;
}
.cover .feedback-row .fb { min-width: 26px; padding: 3px 6px; }
.card:hover .cover .feedback-row,
.card:focus-within .cover .feedback-row {
opacity: 1;
transform: none;
pointer-events: auto;
}
@media (hover: none) {
.cover .feedback-row { opacity: 1; transform: none; pointer-events: auto; }
}
.feedback-row .fb {
padding: 3px 7px;
border-radius: 6px;
border: 1px solid var(--border);
background: transparent;
color: var(--muted);
font-size: 10.5px;
transition: .15s;
}
.feedback-row .fb:hover { border-color: var(--border-strong); color: var(--text); }
.feedback-row .fb.active { border-color: transparent; background: var(--accent); color: #0a0d13; }
.card.dismissed { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.card-status { margin-top: 6px; }
.grid.list-view .select-box { right: 6px; bottom: 6px; width: 24px; height: 24px; }
.grid.table-view { display: block; }
.game-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.game-table th {
position: relative;
text-align: left;
padding: 8px 10px;
border-bottom: 1px solid var(--border);
color: var(--muted);
font-size: 11px;
text-transform: uppercase;
letter-spacing: .06em;
font-weight: 600;
white-space: nowrap;
}
.game-table td {
padding: 6px 10px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
.game-table tbody tr { cursor: pointer; }
.game-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.game-table tbody tr.selected { background: rgba(243, 180, 92, .08); }
.game-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.game-table .t-select { width: 30px; padding-right: 0; }
.game-table .t-select input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.game-table .t-name { min-width: 210px; }
.game-table .t-title { font-weight: 600; vertical-align: middle; }
.game-table .t-name .status-chip { margin-left: 8px; vertical-align: middle; }
.game-table .t-genres { color: var(--muted); font-size: 11.5px; }
.game-table .t-fav { color: var(--accent); width: 26px; text-align: center; }
.game-table .t-year, .game-table .t-duration { white-space: nowrap; }
.game-table td:nth-child(5) { white-space: nowrap; }
.game-table td:nth-child(3),
.game-table td:nth-child(4),
.game-table td:nth-child(5),
.game-table td:nth-child(6) { font-variant-numeric: tabular-nums; }
.game-table th[data-sort] { cursor: pointer; user-select: none; }
.game-table th[data-sort]:hover { color: var(--text); }
.th-label { white-space: nowrap; }
.col-resizer {
position: absolute;
top: 0;
right: -3px;
z-index: 2;
width: 6px;
height: 100%;
cursor: col-resize;
}
.col-resizer:hover { background: var(--accent); opacity: .35; }
.cover-inline {
display: inline-block;
position: relative;
width: 34px;
aspect-ratio: 2 / 3;
margin-right: 10px;
vertical-align: middle;
border-radius: 5px;
overflow: hidden;
background: linear-gradient(145deg, #1b2436, #0d121b);
}
.cover-inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-inline .fallback {
display: none;
position: absolute;
inset: 0;
place-items: center;
padding: 2px;
text-align: center;
font-size: 9px;
font-weight: 700;
color: rgba(255, 255, 255, .82);
background: linear-gradient(145deg, rgba(243, 180, 92, .25), rgba(94, 234, 212, .12));
}
.cover-inline.noimg .fallback { display: grid; }
html[data-theme="light"] .cover-inline { background: #e9e2d5; }
html[data-theme="light"] .cover-inline .fallback { color: rgba(23, 32, 51, .72); }
html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 51, .035); }
.card {
display: flex;
flex-direction: column;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel);
overflow: hidden;
cursor: pointer;
transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover {
transform: translateY(-3px);
border-color: var(--border-strong);
box-shadow: var(--shadow);
}
.cover {
position: relative;
aspect-ratio: 2 / 3;
background: linear-gradient(145deg, #1b2436, #0d121b);
overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .fallback {
position: absolute;
inset: 0;
display: none;
place-items: center;
padding: 14px;
text-align: center;
font-weight: 700;
font-size: 15px;
color: rgba(255, 255, 255, .82);
background:
linear-gradient(145deg, rgba(243, 180, 92, .25), rgba(94, 234, 212, .12)),
linear-gradient(145deg, #1b2436, #0d121b);
}
.cover.noimg .fallback { display: grid; }
.badge {
position: absolute;
z-index: 2;
padding: 3px 7px;
border-radius: 7px;
font-size: 11px;
font-weight: 650;
backdrop-filter: blur(6px);
background: rgba(8, 11, 17, .72);
border: 1px solid rgba(255, 255, 255, .1);
}
.badge.review { top: 8px; left: 8px; color: #b8f5e9; }
.badge.review.warn { color: #ffd59a; }
.badge.installed { top: 8px; right: 8px; color: var(--accent-2); }
.badge.shared { top: 34px; right: 8px; color: #f5b8c9; font-size: 10px; }
.badge.score { top: 8px; left: 8px; color: #0a0d13; background: linear-gradient(135deg, var(--accent), #ffd59a); border: 0; }
.card-body { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px 13px; }
.card-title {
font-size: 14px;
font-weight: 620;
line-height: 1.25;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.card-meta .stat, .modal-meta .stat { display: inline-flex; align-items: baseline; gap: 3px; }
.stat-hint { font-size: 9.5px; color: var(--muted); opacity: .85; }
.card-meta .dot::before { content: "·"; margin-right: 6px; }
.card-genres { display: flex; flex-wrap: wrap; gap: 4px; }
.genre {
padding: 2px 7px;
border-radius: 99px;
font-size: 10.5px;
color: #c7d1e2;
background: rgba(255, 255, 255, .055);
border: 1px solid rgba(255, 255, 255, .05);
white-space: nowrap;
}
.card-desc {
margin: 2px 0 0;
font-size: 11.5px;
line-height: 1.45;
color: #aab5c9;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
min-height: 48px;
}
.card-desc.loading { color: #5d6a80; font-style: italic; }
.card-desc.missing-desc { color: #64708a; font-style: italic; }
.status-chip {
align-self: flex-start;
padding: 2px 8px;
border-radius: 99px;
font-size: 10.5px;
border: 1px solid transparent;
}
.st-backlog { color: #9aa6bd; background: rgba(154, 166, 189, .12); }
.st-playing { color: #6ee7b7; background: rgba(110, 231, 183, .12); }
.st-played { color: #93c5fd; background: rgba(147, 197, 253, .12); }
.st-nostalgia { color: #c4b5fd; background: rgba(196, 181, 253, .12); }
.st-tribute { color: #fcd34d; background: rgba(252, 211, 77, .12); }
.st-ignore { color: #fda4af; background: rgba(253, 164, 175, .12); }
.more {
display: block;
margin: 26px auto 0;
padding: 11px 28px;
border-radius: 999px;
border: 1px solid var(--border-strong);
background: rgba(255, 255, 255, .04);
color: var(--text);
}
.more:hover { border-color: var(--accent); color: var(--accent); }
.empty {
grid-column: 1 / -1;
padding: 60px 20px;
text-align: center;
color: var(--muted);
border: 1px dashed var(--border-strong);
border-radius: var(--radius);
}
/* service pages */
.services-page { max-width: 1200px; margin: 0 auto; }
.services-page h1 { font-size: 26px; margin-bottom: 18px; }
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 18px;
align-items: start;
}
.service-card {
display: flex;
flex-direction: column;
gap: 10px;
padding: 20px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--panel);
}
.service-card h2 { font-size: 17px; }
#serverCard { grid-column: 1 / -1; }
.server-fields {
display: grid;
grid-template-columns: 1.5fr .8fr 1.4fr;
gap: 8px;
max-width: 900px;
}
.server-fields label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 11.5px;
color: var(--muted);
}
#serverShowcase { margin-left: auto; }
.hltb-controls { margin-bottom: 4px; }
.hltb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hltb-actions .ghost { flex: 0 0 auto; }
.hltb-job { display: flex; flex-direction: column; gap: 8px; }
.hltb-log {
margin: 0;
max-height: 150px;
overflow: auto;
padding: 9px 11px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-2);
color: var(--muted);
font: 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
white-space: pre-wrap;
}
/* HLTB service page */
#hltbView { max-width: 1200px; margin: 0 auto; }
.hltb-page { display: flex; flex-direction: column; gap: 18px; }
.hltb-head h1 { font-size: 26px; }
.hltb-head .muted { margin-top: 6px; }
.hltb-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.hltb-table { table-layout: auto; min-width: 760px; }
.hltb-table td, .hltb-table th { padding: 8px 12px; }
.hltb-table td:nth-child(3),
.hltb-table td:nth-child(4),
.hltb-table td:nth-child(5) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hltb-table .status-chip { display: inline-block; }
.hltb-table .hltb-name { font-weight: 600; }
.hltb-toolbar .ghost { flex: 0 0 auto; }
/* recommendations */
#recommendView { max-width: 1200px; margin: 0 auto; }
.cold-start {
display: flex;
flex-direction: column;
gap: 14px;
margin-bottom: 22px;
padding: 22px 24px;
border: 1px solid var(--border);
border-radius: 20px;
background: var(--panel);
}
.cold-start.hidden { display: none; }
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-head h2 { font-size: 18px; }
.cs-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cs-q > span { min-width: 88px; font-size: 12px; color: var(--muted); }
.cs-q .chips { gap: 6px; }
.cs-q .chip { padding: 5px 11px; font-size: 12px; }
.cs-q .chip[aria-pressed="true"] { color: #0a0d13; border-color: transparent; background: var(--accent); }
.mood-panel {
display: flex;
flex-direction: column;
gap: 14px;
padding: 26px;
border: 1px solid var(--border);
border-radius: 22px;
background:
radial-gradient(600px 200px at 100% 0%, rgba(94, 234, 212, .10), transparent 70%),
linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
}
.mood-panel h1 { font-size: 26px; }
.mood-panel p { margin: 6px 0 0; }
.mood-panel.compact {
position: sticky;
top: 78px;
z-index: 15;
gap: 0;
padding: 10px 14px;
border-radius: 14px;
box-shadow: 0 12px 30px rgba(0, 0, 0, .32);
}
.mood-panel.compact > :not(.mood-compact) { display: none !important; }
.mood-compact { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.mood-compact[hidden] { display: none; }
.mood-compact span {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mood-chips-wrap { max-height: 78px; overflow: hidden; }
.mood-chips-wrap.expanded { max-height: none; }
#moodMore { align-self: flex-start; }
.mood-search { position: relative; }
.mood-search textarea { padding-right: 118px; }
.mood-go {
position: absolute;
right: 8px;
bottom: 8px;
padding: 8px 14px;
border-radius: 9px;
font-size: 12.5px;
}
.mood-options {
padding: 0 10px;
border: 1px solid var(--border);
border-radius: 12px;
background: rgba(255, 255, 255, .015);
}
.mood-options summary { padding: 8px 0; cursor: pointer; font-size: 12px; color: var(--muted); }
.mood-options[open] summary { color: var(--text); }
.mood-options .options { padding-bottom: 10px; }
.mood-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: -4px; }
.mood-editor {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--bg-2);
}
.mood-editor.hidden { display: none; }
.mood-editor label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.me-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.me-actions { display: flex; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
padding: 7px 13px;
border-radius: 999px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, .03);
color: #c9d3e4;
font-size: 13px;
transition: .15s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
border-color: transparent;
background: linear-gradient(135deg, rgba(243, 180, 92, .95), rgba(255, 213, 154, .95));
color: #0a0d13;
font-weight: 640;
}
.options { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.range { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.range input { accent-color: var(--accent); }
.range select { width: auto; min-width: 120px; padding: 6px 8px; }
.range b { color: var(--text); font-weight: 600; min-width: 34px; }
.primary {
align-self: flex-start;
padding: 11px 26px;
border: 0;
border-radius: 12px;
color: #0a0d13;
font-weight: 700;
background: linear-gradient(135deg, var(--accent), #ffd59a);
box-shadow: 0 10px 26px rgba(243, 180, 92, .22);
transition: .15s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(243, 180, 92, .3); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.compare-panel { display: flex; flex-direction: column; gap: 10px; margin-top: -4px; }
.compare-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.compare-form[hidden] { display: none; }
.compare-form select { width: auto; min-width: 180px; }
.compare-result {
display: flex;
flex-wrap: wrap;
gap: 16px;
padding: 14px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--bg-2);
}
.compare-result[hidden] { display: none; }
.compare-col { flex: 1 1 220px; min-width: 180px; }
.compare-col h3 {
margin: 0 0 6px;
font-size: 12px;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--muted);
}
.compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.compare-col .link { text-align: left; }
.compare-score { margin-left: 6px; font-size: 12px; color: var(--accent-2); }
.compare-jaccard { margin-bottom: 4px; font-size: 13px; color: var(--text); }
.friends-page { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.friends-layout {
display: grid;
grid-template-columns: 300px minmax(0, 1fr);
gap: 18px;
align-items: start;
min-width: 0;
}
.friends-sidebar {
display: flex;
flex-direction: column;
gap: 10px;
position: sticky;
top: 84px;
min-width: 0;
}
.friends-sidebar .friends-toolbar {
flex-direction: column;
align-items: stretch;
gap: 6px;
}
.friends-sidebar .friends-toolbar input,
.friends-sidebar .friends-toolbar select,
.friends-sidebar .friends-toolbar .ghost {
flex: 0 0 auto;
width: 100%;
max-width: none;
min-width: 0;
}
.friends-sidebar .friends-toolbar .count { margin-left: 0; }
.friends-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
width: 100%;
min-width: 0;
}
.friends-toolbar input { flex: 1 1 220px; max-width: 360px; min-width: 0; }
.friends-toolbar select { width: auto; min-width: 120px; }
.friends-toolbar .count { margin-left: auto; }
.friends-toolbar .ghost, .friends-manual-row .ghost { flex: 0 0 auto; }
.friends-manual {
padding: 0 12px;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--panel);
}
.friends-manual summary { padding: 9px 0; cursor: pointer; font-size: 13px; color: var(--muted); }
.friends-manual[open] summary { color: var(--text); }
.friends-manual-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 10px; }
.friends-manual-row input { flex: 1 1 220px; max-width: 320px; }
.friends-list {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
max-height: calc(100vh - 330px);
overflow-y: auto;
padding-right: 4px;
}
.friend-card {
display: flex;
align-items: center;
gap: 10px;
padding: 9px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--panel);
text-align: left;
color: inherit;
transition: .15s;
}
.friend-card:hover { border-color: var(--accent); background: var(--panel-2); }
.friend-card.active { border-color: var(--accent); background: var(--panel-2); }
.friend-avatar-wrap { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.friend-avatar-wrap img, .friend-avatar {
display: block;
width: 44px;
height: 44px;
border-radius: 10px;
background: var(--bg-2);
object-fit: cover;
}
.friend-dot {
position: absolute;
right: -2px;
bottom: -2px;
width: 11px;
height: 11px;
border: 2px solid var(--panel);
border-radius: 50%;
background: #6b7280;
}
.friend-dot.online { background: #34d399; }
.friend-dot.offline { background: #6b7280; }
.friend-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.friend-info b {
overflow: hidden;
font-size: 14px;
text-overflow: ellipsis;
white-space: nowrap;
}
.friend-meta { font-size: 12px; color: var(--muted); }
.friend-since { font-size: 11px; color: var(--muted); opacity: .75; }
.friend-compare {
display: flex;
flex-direction: column;
gap: 14px;
padding: 16px;
border: 1px solid var(--border);
border-radius: 16px;
background: var(--panel);
}
.friend-compare[hidden] { display: none; }
.friend-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.friend-head .friend-avatar-wrap { flex-basis: 56px; width: 56px; height: 56px; }
.friend-head .friend-avatar-wrap img, .friend-head .friend-avatar {
width: 56px;
height: 56px;
border-radius: 12px;
}
.friend-title { flex: 1 1 200px; }
.friend-title h2 { margin: 0 0 2px; font-size: 20px; }
.friend-profile { font-size: 12px; color: var(--accent-2); }
.friend-head #friendClose { margin-left: auto; }
.friend-compare-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.friend-compare-toolbar input { flex: 1 1 220px; max-width: 360px; }
.friend-compare-toolbar .count { margin-left: auto; }
.friend-columns { display: flex; flex-wrap: wrap; gap: 18px; }
.friend-columns .compare-col { flex: 1 1 260px; min-width: 220px; }
.friend-columns ul { max-height: 360px; overflow-y: auto; }
.friend-columns li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.friend-installed {
padding: 0 5px;
border: 1px solid rgba(94, 234, 212, .3);
border-radius: 99px;
font-size: 10px;
color: var(--accent-2);
}
.friend-more { align-self: flex-start; margin-top: 6px; }
/* ---------- help ---------- */
.help-page { display: flex; flex-direction: column; gap: 16px; }
.help-page .hltb-head { align-items: center; }
.help-page #helpSearch { width: min(360px, 100%); }
.help-layout {
display: grid;
grid-template-columns: 260px minmax(0, 1fr);
gap: 18px;
align-items: start;
min-width: 0;
}
.help-toc {
position: sticky;
top: 86px;
display: flex;
flex-direction: column;
gap: 2px;
max-height: calc(100vh - 110px);
overflow-y: auto;
padding: 12px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--panel);
}
.help-toc a {
padding: 6px 8px;
border-radius: 8px;
color: var(--muted);
font-size: 13px;
text-decoration: none;
}
.help-toc a:hover { color: var(--text); background: var(--bg-2); }
.help-content { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.help-section {
padding: 16px 18px;
border: 1px solid var(--border);
border-radius: 14px;
background: var(--panel);
}
.help-section h2 { margin: 0 0 8px; font-size: 18px; }
.help-section h3 { margin: 14px 0 6px; font-size: 14px; color: var(--text); }
.help-section p, .help-section li {
font-size: 13.5px;
line-height: 1.55;
color: var(--text);
opacity: .86;
}
.help-section ul, .help-section ol {
display: flex;
flex-direction: column;
gap: 4px;
margin: 6px 0;
padding-left: 20px;
}
.help-section code {
padding: 1px 5px;
border: 1px solid var(--border);
border-radius: 5px;
background: var(--bg-2);
font-size: 12px;
}
.help-section pre {
overflow-x: auto;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--bg-2);
}
.help-section pre code { padding: 0; border: 0; background: transparent; }
.modal { overflow: hidden; }
.modal-grid { overflow: hidden; }
.modal-body {
min-height: 0;
max-height: calc(100vh - 36px);
overscroll-behavior: contain;
}
.addons-block { max-height: 220px; overflow-y: auto; }
.friend-columns ul { max-height: calc(100vh - 320px); }
.reco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.reco-actions[hidden] { display: none; }
.reco-actions .ghost { flex: 0 0 auto; padding: 7px 12px; }
.reco-summary {
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
margin: 22px 0 16px;
font-size: 13px;
color: var(--muted);
}
.reco-summary .genre { font-size: 11.5px; }
.reco-summary b { color: var(--text); }
.matched {
margin: 2px 0 0;
font-size: 11px;
color: var(--accent-2);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* modal */
.modal {
border: 0;
padding: 0;
width: min(940px, calc(100vw - 36px));
max-height: calc(100vh - 36px);
border-radius: 22px;
background: var(--panel);
color: var(--text);
box-shadow: var(--shadow);
overflow: hidden;
overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(4, 6, 10, .72); backdrop-filter: blur(6px); }
.modal.small { width: min(420px, calc(100vw - 36px)); }
.hltb-match-form { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.hltb-match-form h2 { margin: 0; font-size: 18px; }
.hltb-match-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.modal-actions { display: flex; align-items: center; gap: 10px; }
.modal-grid {
display: grid;
grid-template-columns: 300px minmax(0, 1fr);
max-height: calc(100vh - 36px);
}
.modal-cover { position: relative; overflow: hidden; background: var(--bg-2); }
.modal-cover .cover-blur {
position: absolute;
inset: -24px;
background-size: cover;
background-position: center;
filter: blur(24px) saturate(1.2);
opacity: .48;
transform: scale(1.08);
z-index: 0;
}
.modal-cover img {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
object-fit: contain;
display: block;
}
.modal-cover .fallback { display: none; }
.modal-cover.noimg .cover-blur { display: none; }
.modal-cover.noimg .fallback {
position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
background: linear-gradient(145deg, rgba(243, 180, 92, .25), rgba(94, 234, 212, .12)), var(--bg-2);
font-size: 22px; font-weight: 700; text-align: center; padding: 20px;
}
.modal-body { padding: 24px 26px 26px; overflow-y: auto; }
.modal-top { display: flex; gap: 12px; align-items: flex-start; }
.modal-title { font-size: 24px; line-height: 1.2; }
.modal-close {
margin-left: auto;
width: 34px; height: 34px;
flex: 0 0 34px;
border-radius: 50%;
border: 1px solid var(--border);
background: rgba(255, 255, 255, .04);
color: var(--muted);
font-size: 17px;
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 16px; font-size: 13px; color: var(--muted); }
.modal-meta b { color: var(--text); font-weight: 600; }
.achievements-block { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.achievements-block h3 {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
margin-bottom: 10px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: .08em;
color: var(--muted);
}
.achievement-list {
display: flex;
flex-direction: column;
gap: 7px;
max-height: 260px;
overflow-y: auto;
margin-top: 10px;
padding-right: 4px;
}
.ach { display: flex; align-items: center; gap: 9px; opacity: .5; }
.ach.done { opacity: 1; }
.ach img, .ach-icon {
flex: 0 0 32px;
width: 32px;
height: 32px;
border-radius: 7px;
background: var(--bg-2);
object-fit: cover;
}
.ach-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ach-text b { font-size: 13px; font-weight: 600; }
.ach-text span { font-size: 12px; }
.addons-block { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.addons-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
button.addon { cursor: pointer; font: inherit; }
button.addon:hover { border-color: var(--accent); color: var(--text); }
.parent-link { margin: 0 0 14px; font-size: 13px; }
.similar-block { margin: 4px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.similar-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.similar-row {
display: flex;
gap: 10px;
overflow-x: auto;
overscroll-behavior-x: contain;
padding: 2px 2px 8px;
scrollbar-width: thin;
}
.mini {
flex: 0 0 102px;
padding: 0;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--panel-2);
overflow: hidden;
text-align: left;
color: inherit;
transition: .15s;
}
.mini:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.mini .mini-cover { position: relative; aspect-ratio: 2 / 3; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .mini-body { padding: 7px 8px 9px; display: flex; flex-direction: column; gap: 3px; }
.mini-title {
font-size: 11.5px;
font-weight: 600;
line-height: 1.25;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.mini-meta { font-size: 10px; color: var(--muted); }
.modal-back {
width: 34px;
height: 34px;
flex: 0 0 34px;
border-radius: 50%;
border: 1px solid var(--border);
background: rgba(255, 255, 255, .04);
color: var(--muted);
font-size: 16px;
}
.modal-back:hover { color: var(--text); border-color: var(--border-strong); }
.modal-desc { margin: 0 0 16px; color: #c6d0e0; }
.modal-desc.about { font-size: 13px; color: #a8b3c7; line-height: 1.6; }
.about-block { margin: 0 0 16px; }
.about-block summary { cursor: pointer; color: var(--accent-2); font-size: 13px; margin-bottom: 8px; }
.about-block summary:hover { text-decoration: underline; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags-row { position: relative; }
.tags-row.clamped { max-height: 46px; overflow: hidden; padding-bottom: 0; }
.tags-row.clamped::after {
content: "";
position: absolute;
left: 0; right: 0; bottom: 0;
height: 22px;
background: linear-gradient(to bottom, transparent, var(--panel));
pointer-events: none;
}
.tags-toggle {
margin: -10px 0 16px;
padding: 0;
border: 0;
background: none;
color: var(--accent-2);
font: inherit;
font-size: 12px;
cursor: pointer;
}
.tags-toggle:hover { text-decoration: underline; }
.personal {
display: flex;
flex-direction: column;
gap: 8px;
margin: 0 0 14px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--panel);
}
.personal-sticky {
position: sticky;
top: 0;
z-index: 8;
box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}
.personal-head { display: flex; align-items: baseline; justify-content: space-between; }
.personal h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.personal-grid { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, .7fr) auto; gap: 8px; align-items: end; }
.personal-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.personal-grid label.wide { grid-column: 1 / -1; }
.personal-grid label.check { flex-direction: row; align-items: center; gap: 7px; padding-bottom: 8px; font-size: 12px; }
.personal input, .personal select, .personal textarea {
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: 10px;
padding: 9px 11px;
outline: none;
transition: border-color .15s, box-shadow .15s;
}
.personal input:focus, .personal select:focus, .personal textarea:focus {
border-color: rgba(243, 180, 92, .55);
box-shadow: 0 0 0 3px rgba(243, 180, 92, .12);
}
.personal textarea { grid-column: 1 / -1; }
.personal-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.save { padding: 9px 18px; border-radius: 10px; border: 0; background: var(--accent); color: #0a0d13; font-weight: 650; }
.save:hover { background: #ffd59a; }
.steam-link { margin-left: auto; font-size: 13px; color: var(--accent-2); text-decoration: none; }
.steam-link:hover { text-decoration: underline; }
.toast {
position: fixed;
left: 50%;
bottom: 26px;
transform: translateX(-50%) translateY(20px);
display: flex;
align-items: center;
gap: 12px;
padding: 10px 18px;
border-radius: 12px;
background: rgba(20, 26, 38, .95);
border: 1px solid var(--border-strong);
color: var(--text);
font-size: 13px;
opacity: 0;
pointer-events: none;
transition: .25s;
z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.show.has-action { pointer-events: auto; }
.toast-action {
border: 0;
background: none;
padding: 0;
color: var(--accent);
font-weight: 650;
white-space: nowrap;
}
.toast-action:hover { text-decoration: underline; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* light theme */
html[data-theme="light"] {
color-scheme: light;
--bg: #f4f1e9;
--bg-2: #fffcf5;
--panel: #ffffff;
--panel-2: #f3efe5;
--text: #172033;
--muted: #5c687c;
--border: rgba(23, 32, 51, .13);
--border-strong: rgba(23, 32, 51, .24);
--accent: #a8620d;
--accent-2: #0f766e;
--danger: #be123c;
--shadow: 0 18px 48px rgba(50, 40, 20, .16);
}
html[data-theme="light"] body {
background:
radial-gradient(1100px 600px at 85% -10%, rgba(15, 118, 110, .08), transparent 60%),
radial-gradient(900px 500px at 0% 0%, rgba(168, 98, 13, .08), transparent 55%),
var(--bg);
}
html[data-theme="light"] .topbar { background: rgba(247, 244, 236, .82); }
html[data-theme="light"] .tabs,
html[data-theme="light"] .stat,
html[data-theme="light"] .ghost,
html[data-theme="light"] .more,
html[data-theme="light"] .chip,
html[data-theme="light"] .modal-close,
html[data-theme="light"] .modal-back { background: rgba(23, 32, 51, .035); }
html[data-theme="light"] .layout.filters-unpinned .filters { background: #fbf8f1; }
html[data-theme="light"] .cover,
html[data-theme="light"] .cover .fallback {
background: linear-gradient(145deg, #e9e2d5, #f7f3ea);
color: rgba(23, 32, 51, .72);
}
html[data-theme="light"] .ghost,
html[data-theme="light"] .genre,
html[data-theme="light"] .chip,
html[data-theme="light"] .modal-desc,
html[data-theme="light"] .modal-desc.about { color: #3a4760; }
html[data-theme="light"] .genre {
background: rgba(23, 32, 51, .055);
border-color: rgba(23, 32, 51, .08);
}
html[data-theme="light"] .card-desc { color: #4a566d; }
html[data-theme="light"] .card-desc.loading,
html[data-theme="light"] .card-desc.missing-desc,
html[data-theme="light"] .dp-note { color: #6f7b8f; }
html[data-theme="light"] .bar { background: rgba(23, 32, 51, .1); }
html[data-theme="light"] .badge {
background: rgba(250, 247, 240, .85);
border-color: rgba(23, 32, 51, .12);
}
html[data-theme="light"] .badge.review { color: #0f766e; }
html[data-theme="light"] .badge.review.warn { color: #a8620d; }
html[data-theme="light"] .toast { background: rgba(255, 252, 245, .97); }
html[data-theme="light"] .skeleton .cover,
html[data-theme="light"] .skeleton .line {
background: linear-gradient(100deg, #e8e2d6 30%, #f5f0e6 50%, #e8e2d6 70%);
background-size: 200% 100%;
}
html[data-theme="light"] .st-backlog { color: #475569; }
html[data-theme="light"] .st-playing { color: #047857; }
html[data-theme="light"] .st-played { color: #1d4ed8; }
html[data-theme="light"] .st-nostalgia { color: #6d28d9; }
html[data-theme="light"] .st-tribute { color: #92400e; }
html[data-theme="light"] .st-ignore { color: #be123c; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
/* skeleton */
.skeleton { pointer-events: none; }
.skeleton .cover { background: linear-gradient(100deg, #131a28 30%, #1b2436 50%, #131a28 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skeleton .card-body { gap: 9px; }
.skeleton .line { height: 11px; border-radius: 6px; background: linear-gradient(100deg, #131a28 30%, #1b2436 50%, #131a28 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #26304a; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .01ms !important;
animation-iteration-count: 1 !important;
transition-duration: .01ms !important;
scroll-behavior: auto !important;
}
}
@media (max-width: 980px) {
.layout { grid-template-columns: minmax(0, 1fr); }
.filters-backdrop { inset: 0; }
.layout.filters-unpinned .filters {
top: 76px;
left: 12px;
width: min(300px, calc(100vw - 24px));
max-height: calc(100vh - 96px);
flex-direction: column;
}
.pin { display: none; }
.modal-grid { grid-template-columns: 1fr; }
.modal-cover { max-height: 260px; }
.modal-body { max-height: calc(100vh - 320px); }
.addons-block { max-height: 160px; }
.friends-layout { grid-template-columns: 1fr; }
.friends-sidebar { position: static; }
.friends-list { max-height: 360px; }
.friend-columns ul { max-height: 420px; }
.server-fields { grid-template-columns: 1fr; }
.help-layout { grid-template-columns: 1fr; }
.help-toc {
position: static;
flex-direction: row;
flex-wrap: wrap;
max-height: none;
}
}
@media (max-width: 720px) {
.topbar { position: relative; flex-wrap: wrap; gap: 12px; padding: 12px 68px 12px 16px; }
.theme-toggle { position: absolute; top: 12px; right: 16px; }
.tabs { gap: 2px; padding: 3px; max-width: 100%; overflow-x: auto; }
.tab { padding: 6px 9px; font-size: 12px; white-space: nowrap; }
.friends-layout { grid-template-columns: 1fr; }
.friends-sidebar { position: static; }
.friends-list { max-height: 360px; }
.friends-manual-row input { max-width: none; }
.mood-panel.compact { top: 8px; }
.mood-search textarea { padding-right: 104px; }
.mood-go { padding: 7px 10px; font-size: 12px; }
.help-page #helpSearch { width: 100%; }
.stats { width: 100%; justify-content: flex-start; }
main { padding: 18px 16px 60px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.toolbar { flex-wrap: wrap; gap: 8px; }
.toolbar input { flex: 1 1 150px; }
.toolbar select { flex: 1 1 140px; min-width: 140px; }
.stat { padding: 4px 9px; font-size: 12px; }
.game-table { table-layout: auto; font-size: 12px; }
.game-table col { width: auto !important; }
.game-table th, .game-table td { padding: 6px 7px; }
.game-table .t-year,
.game-table .t-genres,
.game-table .t-duration { display: none; }
.game-table .t-name { min-width: 0; }
.cover-inline { width: 28px; margin-right: 7px; }
.me-grid { grid-template-columns: 1fr; }
.service-grid { grid-template-columns: 1fr; }
.service-card { padding: 16px; }
}