/* GTA67 Hub – components (one layer, no overrides). Tokens and base live in tokens.css.
   Order: shell · navbar · buttons · badges · panels · stats · progress · tables · forms · tabs · chips · avatars ·
   feedback (toast, loader, skeleton, empty) · modal · home (hero, live strip, features, start, cta) · ranking ·
   player profile · documents · admin · footer · 404 · motion · responsive. */

/* =========================================================
   1. page shell
   ========================================================= */
main { min-height: calc(100vh - var(--nav-h) - 120px); counter-reset: sec; }
.section { padding: var(--s-9) 0; }
.section + .section { padding-top: 0; }
.section.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-6); position: relative;
}
.section-title::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  flex-basis: 100%; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.3em; color: var(--accent);
  padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.section-title h2 { font-size: var(--fs-h2); }
.section-title .sub { font-family: var(--font-body); font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; color: var(--muted); padding-bottom: 4px; }
.section-title .link-arrow { padding-bottom: 6px; }
.admin-content .section-title::before { content: none; }

/* page header for list pages (ranking) */
.page-head { padding: var(--s-7) 0 var(--s-5); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head h1 { font-size: var(--fs-h1); }
.page-head .eyebrow { display: block; margin-bottom: 10px; color: var(--accent); }
.page-head p { color: var(--text-2); margin-top: 10px; max-width: 54ch; }

/* =========================================================
   2. navbar
   ========================================================= */
.navbar {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(9, 9, 10, 0.84); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
}
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; letter-spacing: 0.02em; color: #fff; line-height: 1; }
.brand .logo-accent { color: var(--accent); }
.brand-logo { width: 34px; height: 34px; border-radius: var(--radius); margin-right: 8px; border: 1px solid var(--line-strong); object-fit: cover; }
.brand-hub { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.3em; color: var(--muted); margin-left: 8px; padding-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-links li { height: 100%; display: flex; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 100%;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--muted); transition: color var(--t);
}
.nav-link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow); }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }
.nav-link .ico { opacity: 0.55; transition: opacity var(--t); }
.nav-link:hover .ico, .nav-link.active .ico { opacity: 1; }
.nav-link.active .ico { color: var(--accent); }
.nav-actions, .nav-right { display: flex; align-items: center; gap: var(--s-2); }
.nav-user { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: border-color var(--t); }
.nav-user:hover { border-color: var(--text); }
.nav-user-name { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; font-size: 1rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout { width: 34px; }
.btn.nav-burger { display: none; }
.nav-mobile-only { display: none !important; }
.server-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: var(--fs-sm); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text-2); }
.status-dot { width: 7px; height: 7px; background: var(--cash); }

/* =========================================================
   3. buttons – primary is the bone-white selected row of the pause menu
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; user-select: none; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-sm { height: 34px; padding: 0 14px; font-size: var(--fs-sm); letter-spacing: 0.1em; gap: 8px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1.1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-sm.btn-icon { width: 34px; height: 34px; }

.btn-primary { background: var(--plate); color: #0a0a0b; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.btn-primary:hover { background: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-cash { background: var(--cash); color: #07140a; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.btn-cash:hover { background: var(--cash-hover); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.btn-danger:hover { background: var(--danger-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-hard); overflow: hidden; isolation: isolate; }
.btn-ghost::before { content: ""; position: absolute; inset: 0; background: var(--plate); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow); z-index: -1; }
.btn-ghost:hover { color: #0b0b0b; border-color: var(--plate); }
.btn-ghost:hover::before { transform: scaleX(1); }
.btn-ghost:disabled:hover { color: var(--text); border-color: var(--line-hard); }
.btn-ghost:disabled:hover::before { transform: scaleX(0); }

/* travelling arrow on the filled variants */
.btn-primary::after, .btn-accent::after, .btn-cash::after {
  content: ""; width: 14px; height: 10px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' stroke='black' stroke-width='1.6' fill='none'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' stroke='black' stroke-width='1.6' fill='none'/></svg>") center / contain no-repeat;
  transition: transform var(--t-slow);
}
.btn-sm::after { width: 11px; height: 8px; }
.btn-primary:hover::after, .btn-accent:hover::after, .btn-cash:hover::after { transform: translateX(4px); }
.btn:disabled::after, .btn-icon::after, .btn-plain::after { display: none; }

/* sign in with Roblox: white plate + tilted-square mark */
.btn-roblox { background: var(--plate); color: #0a0a0b; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.btn-roblox:hover { background: #fff; }
.btn-roblox::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0; background: currentColor; transform: rotate(-15deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 2.6px, #000 2.8px);
  mask: radial-gradient(circle at 50% 50%, transparent 2.6px, #000 2.8px);
}
.btn-sm.btn-roblox::before { width: 11px; height: 11px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; color: var(--text-2); transition: color var(--t); }
.link-arrow::after {
  content: ""; width: 12px; height: 9px; background: currentColor; transition: transform var(--t-slow);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' stroke='black' stroke-width='1.6' fill='none'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><path d='M0 5h12M8 1l4 4-4 4' stroke='black' stroke-width='1.6' fill='none'/></svg>") center / contain no-repeat;
}
.link-arrow:hover { color: #fff; }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   4. badges – flat tags, no pills
   ========================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5;
  background: var(--panel-3); color: var(--text-2); border: 1px solid var(--line-strong); white-space: nowrap;
}
.badge-cash { color: var(--cash); border-color: rgba(114, 194, 94, 0.45); background: rgba(114, 194, 94, 0.08); }
.badge-wanted { color: var(--danger); border-color: rgba(217, 68, 58, 0.5); background: rgba(217, 68, 58, 0.08); }
.badge-admin { color: #fff; border-color: var(--accent); background: var(--accent); }
.badge-vip { color: var(--warn); border-color: rgba(232, 179, 60, 0.5); background: rgba(232, 179, 60, 0.08); }
.badge-cyan { color: var(--info); border-color: rgba(95, 168, 232, 0.5); background: rgba(95, 168, 232, 0.08); }

/* =========================================================
   5. panels
   ========================================================= */
.card {
  position: relative; padding: var(--s-5); border-radius: var(--radius);
  background: linear-gradient(180deg, #131316 0%, var(--panel) 100%); border: 1px solid var(--line); box-shadow: var(--depth);
}
.card-glow-pink, .card-glow-green, .card-glow-cyan { transition: border-color var(--t); }
.card-glow-pink:hover { border-color: var(--accent); }
.card-glow-green:hover { border-color: var(--cash); }
.card-glow-cyan:hover { border-color: var(--info); }
.card-header {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-5); padding: 12px var(--s-5); border-bottom: 1px solid var(--line);
}
.card-header h3, .card-header h4 { color: var(--text-2); font-size: 0.95rem; letter-spacing: var(--track-label); }
.card-body { position: relative; }
.card-footer { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.alert { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.alert-warning { border-left-color: var(--warn); }
.alert-danger { border-left-color: var(--danger); }
.alert-success { border-left-color: var(--cash); }

/* =========================================================
   6. stats – label + big number, thin colour mark on the left
   ========================================================= */
.stat-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--line-strong); box-shadow: var(--depth);
}
.stat-card.stat-pink { border-left-color: var(--accent); }
.stat-card.stat-cash { border-left-color: var(--cash); }
.stat-card.stat-cyan { border-left-color: var(--info); }
.stat-card.stat-danger { border-left-color: var(--danger); }
.stat-label { display: flex; align-items: center; gap: 7px; }
.stat-label .ico { color: var(--dim); }
.stat-value { font-family: var(--font-head); font-weight: 700; font-size: 2.3rem; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.stat-card.stat-cash .stat-value { color: var(--cash); }
.stat-subtext { font-size: var(--fs-xs); color: var(--dim); }

/* =========================================================
   7. progress – segmented like the GTA skill bars
   ========================================================= */
.progress-wrap { width: 100%; }
.progress-header { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-head); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.progress-track { position: relative; width: 100%; height: 8px; background: var(--panel-3); overflow: hidden; }
.progress-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), var(--bg) calc(10% - 2px) 10%); }
.progress-fill { height: 100%; background: var(--text); transition: width 0.6s var(--ease); }
.progress-fill-cash { background: var(--cash); }
.progress-fill-cyan { background: var(--info); }

/* =========================================================
   8. tables
   ========================================================= */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--depth); }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.table th {
  padding: 12px 14px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr td:first-child { box-shadow: inset 2px 0 0 transparent; transition: box-shadow var(--t); }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); color: var(--text); }
.table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.table .num { text-align: right; }
.table .rank-col { width: 72px; }
.table .val { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--text); }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--muted); background: var(--panel-3); font-variant-numeric: tabular-nums;
}
.rank-1 { background: var(--plate); color: #0b0b0b; }
.rank-2 { background: #9a9a9a; color: #0b0b0b; }
.rank-3 { background: #6b5a45; color: var(--plate); }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-cell a { color: var(--text); font-weight: 600; }
.user-cell a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.user-cell .display { color: var(--dim); font-size: var(--fs-sm); }

/* =========================================================
   9. forms
   ========================================================= */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-deep); border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-hard); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238c8983' stroke-width='1.6' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.select option { background: var(--panel-2); }
.textarea { min-height: 110px; resize: vertical; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .input, .row > .select { flex: 1; min-width: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; }
.switch input { appearance: none; width: 40px; height: 20px; flex-shrink: 0; background: var(--panel-3); border: 1px solid var(--line-strong); border-radius: var(--radius); position: relative; cursor: pointer; transition: border-color var(--t); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--muted); transition: left var(--t), background var(--t); }
.switch input:checked { border-color: var(--cash); }
.switch input:checked::after { left: 22px; background: var(--cash); }
.switch input:disabled { opacity: 0.5; cursor: wait; }
.switch input:focus-visible { outline: 2px solid var(--plate); outline-offset: 3px; }

/* =========================================================
   10. tabs – underline, like the pause-menu header
   ========================================================= */
.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.tab {
  position: relative; padding: 10px 16px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted);
  transition: color var(--t), border-color var(--t);
}
.tab:hover { color: var(--text); }
.tab.active { color: #fff; border-bottom-color: var(--accent); }

/* =========================================================
   11. chips – inventory rows
   ========================================================= */
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 7px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-2); }
.chip-active { border-color: var(--cash); color: var(--text); }
.chip .chip-tag, .car-class { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--dim); margin-right: 6px; }

/* =========================================================
   12. avatars – square, like Social Club
   ========================================================= */
.avatar { object-fit: cover; background: var(--panel-3); border: 1px solid var(--line-strong); border-radius: var(--radius); flex-shrink: 0; }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--dim); font-family: var(--font-head); font-weight: 700; }
.avatar-xl { width: 132px; height: 132px; }

/* =========================================================
   13. feedback – toasts, loader, skeleton, empty
   ========================================================= */
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 40px)); }
.toast { padding: 12px 14px; background: rgba(10, 10, 10, 0.96); border: 1px solid var(--line); border-left: 3px solid var(--text); font-size: 0.92rem; box-shadow: var(--shadow-lg); animation: toast-in 0.25s var(--ease); transition: opacity 0.4s, transform 0.4s; }
.toast-success { border-left-color: var(--cash); }
.toast-error { border-left-color: var(--danger); }
.toast-out { opacity: 0; transform: translateX(-20px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.loader { display: flex; gap: 6px; justify-content: center; padding: var(--s-6); }
.loader span { width: 22px; height: 3px; background: var(--line-strong); animation: load 0.9s infinite ease-in-out; }
.loader span:nth-child(2) { animation-delay: 0.15s; }
.loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes load { 0%, 80%, 100% { background: var(--line-strong); } 40% { background: var(--text); } }

/* skeleton blocks: panel-coloured bars with a slow sheen */
.sk { position: relative; overflow: hidden; background: var(--panel-2); border-radius: var(--radius); color: transparent !important; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%); transform: translateX(-100%); animation: sk-sheen 1.6s var(--ease) infinite; }
.sk-text { height: 0.9em; width: 60%; margin: 0.25em 0; }
.sk-text.w-30 { width: 30%; } .sk-text.w-45 { width: 45%; } .sk-text.w-80 { width: 80%; }
.sk-num { height: 2.3rem; width: 55%; }
.sk-box { min-height: 92px; }
.sk-avatar { width: 132px; height: 132px; }
.sk-line { height: 8px; width: 100%; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--s-4); }
.sk-stack { display: flex; flex-direction: column; gap: var(--s-6); }
@keyframes sk-sheen { to { transform: translateX(100%); } }

.empty-state { padding: var(--s-6) var(--s-4); text-align: center; color: var(--muted); border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius); }
.empty-state p { margin: 0 auto; }
.empty-icon { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.empty-state .btn { margin-top: var(--s-4); }
.no-access { text-align: center; padding: 15vh 20px; }

/* =========================================================
   14. modal
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.78); display: flex; align-items: center; justify-content: center; padding: var(--s-4); animation: fade-in 0.2s var(--ease); }
.modal { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: modal-in 0.25s var(--ease); }
.modal-wide { max-width: 860px; }
.modal-header { padding: 14px 20px; background: var(--panel-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.modal-header h3 { font-size: 1.3rem; letter-spacing: 0.06em; }
.modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } }

/* =========================================================
   15. home – hero with the map slideshow
   ========================================================= */
.hero-section { position: relative; min-height: 88vh; display: flex; align-items: flex-end; background: #000; overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s var(--ease); will-change: opacity, transform; }
.hero-slide.active { opacity: 1; animation: drift-0 calc(var(--slide-ms, 7000ms) + 1600ms) linear both; }
.hero-slide.active[data-drift="1"] { animation-name: drift-1; }
.hero-slide.active[data-drift="2"] { animation-name: drift-2; }
.hero-slide.active[data-drift="3"] { animation-name: drift-3; }
@keyframes drift-0 { from { transform: scale(1.12) translate(-1.5%, 1%); } to { transform: scale(1.02) translate(1%, -0.5%); } }
@keyframes drift-1 { from { transform: scale(1.02) translate(1.5%, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes drift-2 { from { transform: scale(1.1) translate(0, 1.5%); } to { transform: scale(1.03) translate(-1%, -1%); } }
@keyframes drift-3 { from { transform: scale(1.04) translate(-1%, -1%); } to { transform: scale(1.13) translate(1.5%, 1%); } }

/* grade: desaturate the flat Studio daylight, teal shadows / warm highlights, scrim for the copy */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  -webkit-backdrop-filter: saturate(0.62) contrast(1.18) brightness(0.78); backdrop-filter: saturate(0.62) contrast(1.18) brightness(0.78);
  background:
    radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(0, 0, 0, 0.55) 75%),
    linear-gradient(90deg, rgba(5, 5, 6, 0.92) 0%, rgba(5, 5, 6, 0.55) 45%, rgba(5, 5, 6, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9, 9, 10, 0.6) 18%, transparent 42%);
}
.hero-overlay::before { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(180deg, rgba(255, 150, 90, 0.35) 0%, rgba(40, 70, 110, 0.45) 100%); }
.hero-section::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); z-index: 2; }
.hero-content { position: relative; z-index: 2; padding-top: var(--s-9); padding-bottom: calc(var(--s-8) + 72px); }
.hero-content .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--text-2); }
.hero-content .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.hero-title { font-size: var(--fs-display); line-height: 0.86; }
.hero-title .logo-accent { color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem); color: var(--text-2); margin: 20px 0 30px; max-width: 46ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero-actions .link-arrow { margin-left: 8px; }

/* caption: district + counter + progress bars, bottom-right, aligned to the container edge */
.hero-caption {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 84px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 260px;
}
.hero-cap-text { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-head); text-transform: uppercase; }
.hero-cap-num { font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.24em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-cap-place { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--text); animation: cap-in 0.8s var(--ease) both; }
.hero-bars { display: flex; gap: 6px; width: 100%; }
.hero-bar { flex: 1; height: 14px; padding: 6px 0; cursor: pointer; }
.hero-bar i { display: block; height: 2px; background: rgba(255, 255, 255, 0.2); position: relative; overflow: hidden; transition: background var(--t); }
.hero-bar i::after { content: ""; position: absolute; inset: 0; background: var(--plate); transform: scaleX(0); transform-origin: left; }
.hero-bar.done i::after { transform: scaleX(1); }
.hero-bar.run i::after { animation: bar-fill var(--slide-ms, 7000ms) linear forwards; }
.hero-bar:hover i { background: rgba(255, 255, 255, 0.4); }
.hero-bar:focus-visible { outline-offset: -2px; }
@keyframes bar-fill { to { transform: scaleX(1); } }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* live numbers strip, overlapping the hero edge */
.live-wrap { position: relative; z-index: 5; margin-top: -56px; }
.live-strip { display: grid; grid-template-columns: 150px repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); box-shadow: var(--depth); overflow: hidden; }
.live-strip > * { border-right: 1px solid var(--line); }
.live-strip > *:last-child { border-right: 0; }
.live-tag { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 20px; background: var(--panel-2); font-family: var(--font-head); text-transform: uppercase; }
.live-tag b { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; color: var(--text); }
.live-tag b::before { content: ""; width: 8px; height: 8px; background: var(--cash); animation: live-blink 2.4s ease-in-out infinite; }
.live-tag small { font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.14em; color: var(--dim); }
.live-strip .stat-card { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 20px 24px; }
.live-strip .stat-value { font-size: 2.8rem; }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* features – editorial: one lead panel with a photo, the rest as a numbered list */
.feat-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-4); align-items: stretch; }
.feat-lead {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000 center / cover no-repeat; isolation: isolate; box-shadow: var(--depth);
}
.feat-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 6, 0.96) 0%, rgba(5, 5, 6, 0.55) 45%, rgba(5, 5, 6, 0.2) 100%); -webkit-backdrop-filter: saturate(0.7) contrast(1.1); backdrop-filter: saturate(0.7) contrast(1.1); }
.feat-lead .feat-num { position: absolute; top: var(--s-5); left: var(--s-6); }
.feat-lead h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 10px; max-width: 14ch; }
.feat-lead p { color: var(--text-2); max-width: 44ch; font-size: 1.02rem; }
.feat-lead .link-arrow { margin-top: 18px; }
.feat-num { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.24em; color: var(--accent); font-variant-numeric: tabular-nums; }
.feat-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--depth); }
.feat-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 4px var(--s-4); align-items: start; padding: 18px var(--s-5); border-bottom: 1px solid var(--line); color: inherit; transition: background var(--t); flex: 1; }
.feat-row:last-child { border-bottom: 0; }
.feat-row:hover { background: rgba(255, 255, 255, 0.025); }
.feat-row .feat-num { grid-row: span 2; padding-top: 5px; }
.feat-row h3 { font-size: 1.35rem; }
.feat-row p { grid-column: 2; color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.feat-row .ico { grid-column: 3; grid-row: span 2; color: var(--dim); margin-top: 2px; transition: color var(--t), transform var(--t-slow); }
.feat-row:hover .ico { color: var(--text); transform: translateX(3px); }

/* ranking preview on home */
.top-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); }

/* how to start – three big numerals */
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.start-step { position: relative; padding: var(--s-5) var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--depth); display: flex; flex-direction: column; gap: 10px; }
.start-step .n { font-family: var(--font-head); font-weight: 700; font-size: 4.5rem; line-height: 0.8; color: var(--line-hard); letter-spacing: -0.02em; margin-bottom: var(--s-3); font-variant-numeric: tabular-nums; }
.start-step h3 { font-size: 1.5rem; }
.start-step p { color: var(--muted); font-size: 0.95rem; }
.start-step .kbd-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.start-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); flex-wrap: wrap; }
.start-foot p { color: var(--muted); font-size: 0.95rem; }

/* closing call to action – full-bleed photo band */
.cta-band { position: relative; padding: clamp(96px, 12vw, 160px) 0; background: #000 center / cover no-repeat; isolation: isolate; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.7) 50%, rgba(5, 5, 6, 0.35) 100%); -webkit-backdrop-filter: saturate(0.65) contrast(1.15) brightness(0.8); backdrop-filter: saturate(0.65) contrast(1.15) brightness(0.8); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(180deg, rgba(255, 150, 90, 0.3) 0%, rgba(40, 70, 110, 0.45) 100%); }
.cta-band .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--text-2); }
.cta-band .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.cta-band h2 { font-size: clamp(2.6rem, 2rem + 4vw, 5.2rem); line-height: 0.9; max-width: 12ch; }
.cta-band p { color: var(--text-2); font-size: 1.1rem; margin: 18px 0 28px; max-width: 46ch; }

/* =========================================================
   16. ranking – podium + table
   ========================================================= */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: end; margin-bottom: var(--s-5); }
.podium-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: var(--s-6) var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--depth); color: inherit; transition: border-color var(--t), transform var(--t-slow); }
.podium-card:hover { border-color: var(--line-hard); transform: translateY(-3px); }
.podium-card .avatar { width: 80px; height: 80px; }
.podium-card.p-1 { order: 2; padding-top: var(--s-7); padding-bottom: var(--s-6); border-color: var(--line-strong); background: linear-gradient(180deg, #16161a 0%, var(--panel) 100%); }
.podium-card.p-1 .avatar { width: 112px; height: 112px; }
.podium-card.p-2 { order: 1; }
.podium-card.p-3 { order: 3; }
.podium-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-strong); }
.podium-card.p-1::before { background: var(--plate); }
.podium-card.p-2::before { background: #9a9a9a; }
.podium-card.p-3::before { background: #6b5a45; }
.podium-rank { position: absolute; top: 14px; left: 14px; }
.podium-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card.p-1 .podium-name { font-size: 1.7rem; }
.podium-handle { color: var(--dim); font-size: var(--fs-sm); margin-top: -6px; }
.podium-value { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.podium-card.p-1 .podium-value { font-size: 2.1rem; }
.podium-value.text-cash { color: var(--cash); }
.podium-label { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }

/* =========================================================
   17. player profile (profil + gracz)
   ========================================================= */
.pv-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--s-6); align-items: start; margin-top: var(--s-6); }
.pv-main, .pv-side { display: flex; flex-direction: column; gap: var(--s-7); min-width: 0; }
.pv-side { gap: var(--s-4); position: sticky; top: calc(var(--nav-h) + var(--s-4)); }
.pv-section { margin: 0; }
.pv-card-title { font-size: 1rem; letter-spacing: var(--track-label); color: var(--text-2); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pv-form { display: flex; flex-direction: column; gap: 10px; }
.pv-pending { display: flex; flex-direction: column; gap: 6px; }
.pv-pending li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--bg-deep); border: 1px solid var(--line); border-left: 2px solid var(--cash); border-radius: var(--radius); padding: 8px 12px; font-size: 0.9rem; }
.pv-pending .note { display: block; flex-basis: 100%; color: var(--muted); font-size: var(--fs-xs); }
.pv-center { text-align: center; padding: var(--s-8) var(--s-5); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pv-center h2 { font-size: var(--fs-h2); }
.pv-center p { color: var(--muted); margin: 6px 0 14px; }
.pv-hint { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }

/* player card – like the in-game stats card */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5) var(--s-6); align-items: start; padding: var(--s-6); }
.profile-head .who { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.profile-name { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); overflow-wrap: anywhere; }
.pv-avatar { position: relative; width: 132px; }
.pv-level { position: absolute; right: -8px; bottom: -8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 8px; background: var(--plate); color: #0b0b0b; border-radius: var(--radius); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6); font-family: var(--font-head); line-height: 1; }
.pv-level b { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pv-level small { font-weight: 600; font-size: 0.6rem; letter-spacing: 0.16em; margin-top: 2px; }
.pv-head-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.pv-xp { max-width: 560px; margin-top: 4px; }
.pv-xp .progress-track { height: 10px; }
.pv-head-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.pv-figs { display: grid; grid-auto-flow: row; gap: 0; min-width: 190px; border-left: 1px solid var(--line); padding-left: var(--s-5); align-self: stretch; }
.pv-fig { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pv-fig:last-child { border-bottom: 0; }
.pv-fig b { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-fig b.text-cash { color: var(--cash); }
.online-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.online-dot::before { content: ""; width: 7px; height: 7px; background: var(--dim); }
.online-dot.on { color: var(--cash); }
.online-dot.on::before { background: var(--cash); }

/* garage */
.car-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--depth); overflow: hidden; transition: transform var(--t-slow), border-color var(--t); }
.car-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.car-card.is-fav { border-color: rgba(232, 179, 60, 0.45); }
.car-thumb { position: relative; height: 104px; padding: 12px 14px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%); overflow: hidden; }
.car-thumb::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 18px; height: 1px; background: var(--line-strong); transform: skewY(-6deg); }
.car-thumb-tag { position: absolute; top: 10px; right: 10px; }
.car-emoji { font-family: var(--font-head); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.car-speed { position: absolute; left: 14px; bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.car-speed small { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; margin-left: 4px; }
.car-info { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.car-meta { font-size: var(--fs-sm); margin-top: auto; }
.car-spec { display: flex; flex-direction: column; gap: 6px; }
.car-spec-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.car-spec-row .k { font-family: var(--font-head); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--dim); }
.car-spec-row .bar { height: 4px; background: var(--panel-3); position: relative; overflow: hidden; }
.car-spec-row .bar i { position: absolute; inset: 0; background: var(--text-2); transform-origin: left; }
.car-spec-row .v { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* achievements – award medals: octagon plate, bone-white when earned */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.ach { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: start; transition: border-color var(--t); }
.ach:hover { border-color: var(--line-strong); }
.ach-done { background: linear-gradient(180deg, #141418 0%, var(--panel) 100%); }
.ach-icon {
  grid-row: span 3; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--dim); background: var(--panel-3);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.ach-done .ach-icon { background: var(--plate); color: #0b0b0b; }
.ach-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.ach:not(.ach-done) .ach-title { color: var(--text-2); }
.ach-desc { font-size: var(--fs-xs); color: var(--muted); }
.ach-bar { height: 4px; grid-column: 2; margin-top: 6px; }
.ach-bar::after { display: none; }
.ach-progress { grid-column: 2; font-size: var(--fs-xs); color: var(--dim); font-variant-numeric: tabular-nums; }
.ach .badge { grid-column: 2; justify-self: start; margin-top: 4px; }

/* daily reward */
.daily-streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 4px 0 12px; }
.daily-day { text-align: center; padding: 8px 0 6px; background: var(--panel-3); border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--dim); line-height: 1; }
.daily-day b { display: block; font-size: 1.05rem; margin-bottom: 3px; color: var(--text-2); }
.daily-day.done { background: var(--cash); color: #0b3a12; }
.daily-day.done b { color: #0b0b0b; }
.daily-day.next { outline: 1px solid var(--line-hard); outline-offset: -1px; color: var(--text-2); }
.daily-today { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 0.92rem; color: var(--muted); }
.daily-today b { font-family: var(--font-head); font-size: 1.2rem; color: var(--cash); font-weight: 700; }

/* =========================================================
   18. documents (o-grze, jak-grac, regulamin, prywatnosc)
   ========================================================= */
.doc-hero { position: relative; padding: 112px 0 56px; background: #000 center / cover no-repeat; border-bottom: 1px solid var(--line); isolation: isolate; }
.doc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 6, 0.96) 0%, rgba(5, 5, 6, 0.82) 55%, rgba(5, 5, 6, 0.6) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 70%); -webkit-backdrop-filter: saturate(0.62) contrast(1.18) brightness(0.78); backdrop-filter: saturate(0.62) contrast(1.18) brightness(0.78); }
.doc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(180deg, rgba(255, 150, 90, 0.35) 0%, rgba(40, 70, 110, 0.45) 100%); }
.doc-hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-2); }
.doc-hero .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--accent); }
.doc-hero h1 { font-size: var(--fs-h1); }
.doc-hero p { color: var(--text-2); font-size: 1.1rem; margin-top: 14px; max-width: 52ch; text-wrap: pretty; }
.doc-hero .meta { margin-top: 12px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); padding: var(--s-7) var(--gutter) var(--s-5); }
.doc-toc { position: sticky; top: calc(var(--nav-h) + var(--s-5)); align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.doc-toc::before { content: "Spis treści"; padding: 0 0 10px 16px; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.doc-toc a { padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color var(--t), border-color var(--t); }
.doc-toc a:hover { color: var(--text); }
.doc-toc a.active { color: #fff; border-left-color: var(--accent); }
.prose { max-width: 760px; }
.prose h2 { font-size: 2rem; margin: var(--s-8) 0 var(--s-4); padding-top: 8px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: var(--s-6) 0 10px; color: var(--text); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose p, .prose li { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; max-width: var(--measure); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; transition: color var(--t); }
.prose a:hover { color: var(--accent); }
.prose .callout { margin: 20px 0; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); color: var(--text-2); line-height: 1.6; }
.prose .meta { font-family: var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--dim); }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 var(--s-5); font-size: 0.98rem; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.prose th { text-align: left; font-family: var(--font-head); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; font-size: var(--fs-xs); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: var(--panel-2); }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; line-height: 1.5; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 500; }
.prose code { color: var(--text); }

/* keyboard keys */
.kbd, kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 7px;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.04em; color: var(--text); white-space: nowrap;
  background: #1c1c20; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; box-shadow: 0 2px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* step / fact cards */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 18px 0 var(--s-5); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--depth); display: flex; flex-direction: column; gap: 6px; }
.step b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: 0; color: var(--text); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.step b::before { content: ""; display: block; width: 24px; height: 2px; background: var(--accent); margin-bottom: 12px; }
.step h4 { font-size: 1.15rem; }
.step p { font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

/* =========================================================
   19. admin – sidebar works like the pause-menu list
   ========================================================= */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; flex-shrink: 0; background: var(--bg-deep); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 90; }
.admin-sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.admin-nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; overflow-y: auto; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 20px; width: 100%; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
}
.admin-nav-item .ico { opacity: 0.6; }
.admin-nav-item:hover { background: var(--panel-2); color: #fff; }
.admin-nav-item:hover .ico, .admin-nav-item.active .ico { opacity: 1; }
.admin-nav-item.active { background: var(--plate); color: #0b0b0b; }
.admin-nav-item.item-abuse { color: var(--accent); }
.admin-nav-item.item-abuse.active { background: var(--accent); color: #fff; }
.admin-sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--line); }
.admin-content { flex: 1; min-width: 0; padding: var(--s-6); }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.admin-section-title { margin-bottom: var(--s-5); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-4); }
.action-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--depth); }
.action-box h4 { font-size: 1.05rem; letter-spacing: 0.08em; color: var(--text-2); }
.report-text { white-space: pre-wrap; word-break: break-word; background: var(--bg-deep); border-left: 2px solid var(--line-strong); padding: 10px 12px; font-size: 0.92rem; color: var(--text-2); }
.abuse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-4); margin-top: var(--s-5); }
.event-btn {
  background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--depth);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--text);
  transition: transform var(--t-slow), border-color var(--t), background var(--t);
}
.event-btn:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.45); transform: translateY(-3px); }
.event-btn.ev-money { border-top-color: var(--cash); }
.event-btn.ev-police { border-top-color: var(--info); }
.event-btn.ev-storm { border-top-color: #8fa3b5; }
.event-btn.ev-sunset { border-top-color: var(--accent); }
.event-btn.ev-gravity { border-top-color: #9b7fd1; }
.event-btn.ev-boost { border-top-color: var(--warn); }
.event-icon { font-family: var(--font-head); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.event-title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.event-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.event-meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.wanted-stars { display: inline-flex; gap: 2px; font-size: 1.05rem; color: var(--line-strong); letter-spacing: 0; }
.wanted-stars .star-active { color: var(--plate); }
.wanted-stars .star-police { color: var(--danger); }

/* =========================================================
   20. footer
   ========================================================= */
.site-footer { margin-top: var(--s-9); border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); padding: var(--s-7) 0 var(--s-6); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.footer-brand .brand { font-size: 1.7rem; }
.footer-brand p { line-height: 1.6; color: var(--muted); }
.footer-col h4 { font-size: var(--fs-xs); letter-spacing: 0.2em; color: var(--dim); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-col a { color: var(--text-2); transition: color var(--t); }
.footer-links a:hover, .footer-col a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-4) 0 var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--dim); }
.footer-bottom .link-arrow { font-size: var(--fs-xs); }

/* =========================================================
   21. 404 – WASTED
   ========================================================= */
.lost { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--s-5); gap: var(--s-4); background: #000 center / cover no-repeat; isolation: isolate; }
.lost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 5, 6, 0.86); -webkit-backdrop-filter: saturate(0.2) contrast(1.2) brightness(0.6); backdrop-filter: saturate(0.2) contrast(1.2) brightness(0.6); }
.lost::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: clamp(120px, 26vw, 300px); transform: translateY(-50%); z-index: -1; background: rgba(0, 0, 0, 0.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wasted { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 22vw, 15rem); line-height: 0.9; color: var(--danger); letter-spacing: 0.04em; text-transform: uppercase; animation: wasted-in 0.9s var(--ease) both; }
.lost h1 { font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); color: var(--text-2); letter-spacing: 0.06em; }
.lost p { color: var(--muted); max-width: 46ch; }
.lost .btn { margin-top: var(--s-2); }
@keyframes wasted-in { from { opacity: 0; transform: scale(1.08); } }

/* =========================================================
   22. motion – scroll reveal (common.js adds .rv / .rv-in) + reduced motion
   ========================================================= */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.rv-in { opacity: 1; transform: none; }
.ico { flex-shrink: 0; display: inline-block; vertical-align: middle; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .hero-slide.active { animation: none; }
  .hero-bar.run i::after { animation: none; transform: scaleX(1); }
  .sk::after { display: none; }
}

/* =========================================================
   23. responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-link .ico { display: none; }
  .nav-link { padding: 0 11px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-lead { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn.nav-burger { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; height: auto; flex-direction: column; align-items: stretch; background: #080808; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-links.open li { height: auto; }
  .nav-links.open .nav-link { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-link::after { display: none; }
  .nav-links.open .nav-link.active { box-shadow: inset 2px 0 0 var(--accent); }
  .nav-links.open .nav-link .ico { display: inline-block; }
  .nav-links.open .nav-mobile-only { display: flex !important; }
  .nav-user-name, .nav-user .badge, .nav-logout { display: none; }
  .brand { font-size: 1.6rem; }
  .brand-hub { display: none; }
  .navbar .container { gap: var(--s-2); }

  .hero-section { min-height: 82svh; }
  .hero-content { padding-top: var(--s-8); padding-bottom: 120px; }
  .hero-title { font-size: clamp(4rem, 20vw, 6.5rem); }
  .hero-caption { left: var(--gutter); right: var(--gutter); bottom: 18px; align-items: stretch; min-width: 0; gap: 8px; }
  .hero-cap-place { font-size: 1.05rem; }
  .live-wrap { margin-top: -32px; }
  .live-strip { grid-template-columns: 1fr 1fr; }
  .live-strip > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-tag { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; padding: 12px 20px; }
  .live-strip .stat-card:nth-child(2n) { border-right: 1px solid var(--line); }
  .live-strip > *:last-child { border-bottom: 0; }
  .live-strip .stat-value { font-size: 2.2rem; }
  .start-grid { grid-template-columns: 1fr; }
  .start-step .n { font-size: 3.4rem; }
  .podium { grid-template-columns: 1fr; align-items: stretch; gap: 8px; }
  .podium-card, .podium-card.p-1 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; text-align: left; padding: 14px 16px 14px 52px; }
  .podium-card.p-1 { order: 1; }
  .podium-card.p-2 { order: 2; }
  .podium-card.p-3 { order: 3; }
  .podium-rank { top: 50%; transform: translateY(-50%); left: 12px; }
  .podium-card .avatar, .podium-card.p-1 .avatar { width: 56px !important; height: 56px !important; grid-column: 1; grid-row: 1 / 3; font-size: 24px !important; }
  .podium-card.p-1 .avatar { width: 72px !important; height: 72px !important; }
  .podium-name, .podium-card.p-1 .podium-name { grid-column: 2; grid-row: 1; font-size: 1.15rem; align-self: end; white-space: normal; overflow-wrap: anywhere; }
  .podium-handle { grid-column: 2; grid-row: 2; margin: 0; align-self: start; }
  .podium-value, .podium-card.p-1 .podium-value { grid-column: 3; grid-row: 1; font-size: 1.3rem; text-align: right; align-self: end; }
  .podium-label { grid-column: 3; grid-row: 2; text-align: right; align-self: start; }
  .podium-card:hover { transform: none; }
  .pv-layout { grid-template-columns: 1fr; }
  .pv-side { position: static; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); padding: var(--s-5); }
  .pv-figs { grid-column: 1 / -1; grid-auto-flow: column; grid-auto-columns: 1fr; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-3); }
  .pv-fig { border-bottom: 0; padding: 4px 0; }
  .doc-hero { padding: 72px 0 40px; }
  .doc-layout { grid-template-columns: 1fr; gap: var(--s-5); padding-top: var(--s-5); }
  .doc-toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 4px 14px; }
  .doc-toc::before { flex-basis: 100%; padding-left: 0; }
  .doc-toc a { padding: 4px 0; border-left: 0; border-bottom: 1px solid transparent; }
  .doc-toc a.active { border-bottom-color: var(--accent); }
  .prose h2 { font-size: 1.7rem; margin-top: var(--s-7); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6) 0 var(--s-5); }
  .cta-band { padding: 80px 0; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 6px; }
  .admin-nav-item { width: auto; padding: 8px 12px; }
  .admin-content { padding: var(--s-4); }
  .admin-topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid-4, .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 14px 14px; }
  .stat-value { font-size: 1.8rem; }
  .hero-section { min-height: 78svh; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .link-arrow { margin: 4px 0 0; }
  .live-strip { grid-template-columns: 1fr; }
  .live-strip .stat-card:nth-child(2n) { border-right: 0; }
  .profile-head { grid-template-columns: 1fr; }
  .pv-avatar { width: 112px; }
  .pv-avatar .avatar { width: 112px; height: 112px; }
  .pv-figs { grid-auto-flow: row; }
  .pv-fig { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .pv-fig:last-child { border-bottom: 0; }
  .page-head { padding-top: var(--s-6); }
  .user-cell .display { display: none; }
  .table .val { font-size: 1rem; }
  .table th, .table td { padding-left: 10px; padding-right: 10px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .prose td, .prose th { white-space: normal; min-width: 120px; }
  .cta-band .btn-row .btn { flex: 1 1 100%; }
  .btn-lg { height: 52px; padding: 0 24px; }
}

/* =========================================================
   24. navigation v2 – dropdowns (Gra, Społeczność, konto) + mobile drawer
   ========================================================= */
.nav-item { position: relative; height: 100%; display: flex; }
.nav-trigger { background: none; border: 0; cursor: pointer; }
.nav-link .nav-chev { display: inline-block; opacity: 0.5; transition: transform var(--t), opacity var(--t); margin-left: -2px; }
.nav-chev { opacity: 0.5; transition: transform var(--t), opacity var(--t); margin-left: -2px; }
.nav-item.open .nav-chev, .nav-account.open .nav-chev { transform: rotate(180deg); opacity: 1; }
.nav-menu {
  position: absolute; top: calc(100% + 1px); left: 0; min-width: 260px; padding: 6px;
  background: #0d0d0f; border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; z-index: 120;
}
.nav-menu-right { left: auto; right: 0; }
.nav-item.open > .nav-menu, .nav-account.open > .nav-menu { display: flex; animation: menu-in 0.16s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.nav-menu-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--radius); text-align: left;
  color: var(--text-2); background: none; border: 0; cursor: pointer; transition: background var(--t), color var(--t);
}
.nav-menu-link .ico { color: var(--dim); flex-shrink: 0; transition: color var(--t); }
.nav-menu-link:hover, .nav-menu-link:focus-visible { background: var(--plate); color: #0b0b0b; outline: none; }
.nav-menu-link:hover .ico, .nav-menu-link:focus-visible .ico { color: #0b0b0b; }
.nav-menu-link:hover small, .nav-menu-link:focus-visible small { color: rgba(11, 11, 11, 0.7); }
.nav-menu-link.active { box-shadow: inset 2px 0 0 var(--accent); color: var(--text); }
.nav-menu-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-menu-text b { font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.nav-menu-text small { font-size: var(--fs-xs); color: var(--muted); transition: color var(--t); }
.nav-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nav-menu-head b { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-menu-head small { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.nav-menu-sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav-user { background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; cursor: pointer; transition: border-color var(--t); color: var(--text); }
.nav-user:hover, .nav-account.open .nav-user, .nav-user.active { border-color: var(--text); }
.nav-account { position: relative; display: flex; align-items: center; height: 100%; }
.nav-account .nav-menu { top: calc(100% - 10px); }
.nav-login { white-space: nowrap; }
.btn.nav-burger .ico-close { display: none; }
.btn.nav-burger[aria-expanded="true"] .ico-menu { display: none; }
.btn.nav-burger[aria-expanded="true"] .ico-close { display: block; }

/* mobile drawer */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 99; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #080808; border-top: 1px solid var(--line); padding: 8px var(--gutter) 40px; animation: fade-in 0.18s var(--ease);
}
.nav-drawer[hidden] { display: none; }
body.drawer-open { overflow: hidden; }
.drawer-section { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); padding: 10px 0 6px; }
.drawer-link {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 10px; border-radius: var(--radius); text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text-2); background: none; border: 0; cursor: pointer;
}
.drawer-link .ico { color: var(--dim); }
.drawer-link.active { color: #fff; box-shadow: inset 2px 0 0 var(--accent); background: rgba(255, 255, 255, 0.03); }
.drawer-link.active .ico { color: var(--accent); }
.drawer-link:active { background: rgba(255, 255, 255, 0.05); }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; }
.drawer-user b { display: block; font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; }
.drawer-user small { color: var(--muted); }

/* =========================================================
   25. item cards – garage / arsenal / houses (photo or silhouette)
   ========================================================= */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--s-4); }
.item-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
.item-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--depth); overflow: hidden; transition: transform var(--t-slow), border-color var(--t); }
.item-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.item-card.is-active { border-color: rgba(242, 240, 234, 0.35); }
.item-media { aspect-ratio: 16 / 10; background: linear-gradient(180deg, var(--panel-3) 0%, var(--panel-2) 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.item-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow); }
.item-card:hover .item-media img { transform: scale(1.04); }
.item-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--dim); }
.item-fallback::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 22%; height: 1px; background: var(--line-strong); transform: skewY(-6deg); }
.item-fallback .silhouette { width: 46%; max-width: 120px; color: var(--muted); position: relative; }
.item-fallback span { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; position: relative; }
.item-tag { position: absolute; top: 10px; left: 10px; }
.item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-name { font-size: 1.15rem; line-height: 1.05; letter-spacing: 0.02em; }
.item-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-sm); margin-top: auto; }
.item-value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; white-space: nowrap; }

/* =========================================================
   26. player tabs, ban bar, story, social
   ========================================================= */
.pv-tabbed { margin-top: var(--s-5); }
.pv-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(9, 9, 10, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s-6); }
.pv-tabs::-webkit-scrollbar { display: none; }
.pv-tabs .tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 12px 16px; }
.pv-tabs .tab .ico { opacity: 0.6; }
.pv-tabs .tab.active .ico { opacity: 1; color: var(--accent); }
.tab-count { font-size: 0.72rem; padding: 1px 6px; background: var(--panel-3); color: var(--text-2); border-radius: var(--radius); letter-spacing: 0; }
.tab.active .tab-count { background: var(--plate); color: #0b0b0b; }
.pv-panel { outline: none; }
.pv-panel .section-title::before { content: none; }
.pv-panel .section-title { margin-bottom: var(--s-4); }
.pv-panel .pv-section + .pv-section, .pv-stack > * + * { margin-top: var(--s-7); }
.pv-stack { display: flex; flex-direction: column; }

.ban-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: var(--s-4); background: rgba(217, 68, 58, 0.1); border: 1px solid rgba(217, 68, 58, 0.5); border-left: 4px solid var(--danger); border-radius: var(--radius); color: var(--text); }
.ban-bar .ico { color: var(--danger); flex-shrink: 0; }
.ban-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ban-text b { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--danger); }
.ban-text span { font-size: var(--fs-sm); color: var(--text-2); overflow-wrap: anywhere; }

/* story */
.story-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: var(--s-6); align-items: center; }
.story-now h2 { font-size: var(--fs-h2); margin: 8px 0 10px; }
.story-now .eyebrow { color: var(--accent); }
.story-track { height: 12px; }
.story-figs { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
.story-figs b { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--text); margin-right: 4px; }
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; counter-reset: none; }
.chapter { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chapter-num { grid-row: span 2; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; background: var(--panel-3); color: var(--dim); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.chapter-done .chapter-num { background: var(--plate); color: #0b0b0b; }
.chapter-now .chapter-num { background: var(--accent); color: #fff; }
.chapter-body b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.chapter-todo .chapter-body b { color: var(--text-2); }
.chapter-body small { color: var(--muted); font-size: var(--fs-xs); }
.chapter-now .chapter-body small { color: var(--accent); }
.chapter-missions { grid-column: 2; display: flex; flex-direction: column; gap: 3px; margin-top: 4px; font-size: var(--fs-sm); color: var(--dim); }
.chapter-missions li { display: flex; align-items: center; gap: 8px; }
.chapter-missions i { width: 8px; height: 8px; flex-shrink: 0; background: var(--panel-3); border: 1px solid var(--line-strong); }
.chapter-missions .m-done { color: var(--text-2); }
.chapter-missions .m-done i { background: var(--plate); border-color: var(--plate); }
.chapter-missions .m-now { color: var(--text); }
.chapter-missions .m-now i { background: var(--accent); border-color: var(--accent); }

/* social: app profile cards + posts as phone cards */
.app-card { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--line-strong); }
.app-card.app-insta { border-top-color: #c48be0; }
.app-card.app-tik { border-top-color: var(--info); }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.app-head small { color: var(--muted); }
.app-logo { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-3); border-radius: var(--radius); color: var(--text); }
.app-insta .app-logo { color: #c48be0; }
.app-tik .app-logo { color: var(--info); }
.app-bio { color: var(--text-2); font-size: 0.95rem; }
.app-figs { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-head); font-weight: 600; }
.app-figs b { display: block; font-size: 1.3rem; color: var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.app-none { margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--s-4); }
.post-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--depth); overflow: hidden; transition: border-color var(--t); }
.post-card:hover { border-color: var(--line-strong); }
.post-author { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line); }
.post-author:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-media { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); background: linear-gradient(180deg, var(--panel-3) 0%, var(--panel-2) 100%); border-bottom: 1px solid var(--line); }
.app-tik .post-media { aspect-ratio: 4 / 5; }
.post-media::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line-strong); }
.post-media span { font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; }
.post-dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); background: rgba(9, 9, 10, 0.8); padding: 2px 6px; }
.post-body { padding: 12px 12px 6px; flex: 1; }
.post-cap { font-size: 0.95rem; color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; gap: 14px; padding: 8px 12px 12px; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.post-foot span { display: inline-flex; align-items: center; gap: 4px; }
.post-foot .ico { color: var(--dim); }
.post-date { margin-left: auto; color: var(--dim); }
.app-tabs .tab { display: inline-flex; align-items: center; gap: 8px; }
.feed-sub { margin: -8px 0 var(--s-4); }

/* =========================================================
   27. search players, rewards, settings, reports
   ========================================================= */
.search-box { position: relative; display: flex; align-items: center; margin-bottom: var(--s-3); }
.search-ico { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.search-input { height: 64px; padding-left: 54px; padding-right: 54px; font-size: 1.25rem; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 12px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: var(--radius); }
.search-clear:hover { color: var(--text); background: var(--panel-3); }
.search-status { min-height: 1.5em; margin-bottom: var(--s-4); font-size: var(--fs-sm); }
.search-empty .ico { margin: 0 auto 10px; color: var(--dim); }
.search-empty .small { margin-top: 6px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--s-3); }
.player-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--depth); transition: border-color var(--t), transform var(--t-slow); }
.player-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.player-card.is-banned { border-left: 3px solid var(--danger); }
.player-card.is-private { opacity: 0.75; }
.player-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.player-arrow { color: var(--dim); flex-shrink: 0; transition: transform var(--t-slow), color var(--t); }
.player-card:hover .player-arrow { transform: translateX(4px); color: var(--text); }

.reward-grid { align-items: start; }
.reward-card .pv-card-title { display: flex; align-items: center; gap: 4px; }
.reward-card .pv-card-title .ico { color: var(--dim); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--s-5); align-items: start; }
.steps-list { display: flex; flex-direction: column; gap: 12px; }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text-2); }
.steps-list b { font-family: var(--font-head); font-weight: 700; color: var(--accent); flex-shrink: 0; }
.status-card { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--s-4); border-left: 3px solid var(--cash); }
.status-card .ico { color: var(--cash); flex-shrink: 0; }
.status-card b { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.status-card p { font-size: var(--fs-sm); margin-top: 4px; }
.report-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-counter { font-size: var(--fs-xs); color: var(--dim); }
.setting-row { margin-top: var(--s-3); font-size: 1rem; }
.setting-user { display: flex; align-items: center; gap: 14px; }
.setting-user b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; line-height: 1.1; }

/* =========================================================
   28. map – full screen under the navbar, 2D canvas / 3D WebGL, legend, live status
   ========================================================= */
.map-body { overflow: hidden; }
.map-body::before { display: none; }
.map-main { position: relative; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); min-height: 0; background: #0c1116; overflow: hidden; user-select: none; }
.map-stage { position: absolute; inset: 0; }
.map-canvas, .map-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.map-canvas.dragging { cursor: grabbing; }
.map-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map-label { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.9); will-change: transform; }
.map-label.lbl-district { font-size: 15px; letter-spacing: 0.3em; color: rgba(241, 239, 234, 0.8); }
.map-label.lbl-poi { font-size: 11px; color: var(--text-2); }
.map-label.lbl-player { font-weight: 700; font-size: 12px; padding: 2px 6px; background: rgba(9, 9, 10, 0.75); border-left: 2px solid var(--plate); }
.map-label.lbl-me { border-left-color: var(--accent); color: var(--accent); }
.map-label.lbl-police { border-left-color: var(--info); }
.map-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(12, 17, 22, 0.9); color: var(--muted); font-family: var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--fs-sm); z-index: 5; }
.map-toolbar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 10px; align-items: center; z-index: 6; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.seg { display: inline-flex; border: 1px solid var(--line-hard); border-radius: var(--radius); background: rgba(9, 9, 10, 0.88); overflow: hidden; }
.seg-btn { height: 40px; padding: 0 18px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; color: var(--muted); transition: background var(--t), color var(--t); }
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn[aria-pressed="true"] { background: var(--plate); color: #0b0b0b; }
.map-search { position: relative; flex: 0 1 360px; min-width: 0; }
.map-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.map-search-in { height: 40px; padding-left: 38px; background: rgba(9, 9, 10, 0.88); }
.map-search-in::-webkit-search-cancel-button { display: none; }
.map-search-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #0d0d0f; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 4px; max-height: 50vh; overflow-y: auto; }
.map-search-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; cursor: pointer; border-radius: var(--radius); }
.map-search-list li b { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.map-search-list li small { color: var(--muted); white-space: nowrap; }
.map-search-list li:hover, .map-search-list li.active { background: var(--plate); color: #0b0b0b; }
.map-search-list li:hover small, .map-search-list li.active small { color: rgba(11, 11, 11, 0.7); }
.map-tools { display: flex; gap: 8px; margin-left: auto; }
.map-tools .btn { background: rgba(9, 9, 10, 0.88); height: 40px; }
.map-tools .btn-icon { width: 40px; }
.live-dot { width: 8px; height: 8px; background: var(--dim); flex-shrink: 0; }
.live-dot.on, .map-live-btn.on .live-dot { background: var(--cash); animation: pulse 1.4s infinite; }
.map-live-btn.on { border-color: var(--cash); }
@keyframes pulse { 50% { opacity: 0.35; } }
.map-legend { position: absolute; right: 14px; top: 66px; width: 260px; max-height: calc(100% - 140px); overflow-y: auto; background: rgba(9, 9, 10, 0.92); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 6; display: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map-legend.open { display: block; animation: menu-in 0.16s var(--ease); }
.legend-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line); }
.legend-head b { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.legend-group { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.legend-group:last-child { border-bottom: 0; }
.legend-title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); padding: 4px 4px 6px; }
.legend-title .legend-row { padding: 0; color: var(--accent); font-size: var(--fs-xs); letter-spacing: 0.2em; }
.legend-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: 0.92rem; color: var(--text-2); cursor: pointer; border-radius: var(--radius); }
.legend-row:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.legend-row input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--line-hard); border-radius: 2px; flex-shrink: 0; position: relative; background: var(--bg-deep); cursor: pointer; }
.legend-row input:checked { background: var(--plate); border-color: var(--plate); }
.legend-row input:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #0b0b0b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.legend-row input:focus-visible { outline: 2px solid var(--plate); outline-offset: 2px; }
.legend-swatch { width: 12px; height: 12px; flex-shrink: 0; border: 1px solid rgba(0, 0, 0, 0.6); }
.legend-line { width: 18px; height: 3px; flex-shrink: 0; background: #4d5057; }
.legend-line.main { background: #8e9196; height: 4px; }
.legend-line.districts, .legend-line.streets { background: none; height: auto; width: 18px; font-family: var(--font-head); font-size: 10px; letter-spacing: 0.15em; color: var(--muted); text-align: center; }
.legend-line.districts::before { content: "AB"; }
.legend-line.streets::before { content: "ab"; text-transform: none; }
.legend-line.buildings { background: #30343b; height: 10px; width: 14px; }
.legend-note { padding: 6px 4px; font-size: var(--fs-xs); color: var(--muted); }
.legend-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend-keys .legend-title { flex-basis: 100%; }
.legend-keys span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-2); }
.map-status { position: absolute; left: 14px; bottom: 14px; display: none; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 28px)); padding: 10px 14px; background: rgba(9, 9, 10, 0.92); border: 1px solid var(--line-strong); border-left: 3px solid var(--line-hard); border-radius: var(--radius); z-index: 6; font-size: var(--fs-sm); color: var(--text-2); }
.map-status.show { display: flex; }
.map-status.st-live { border-left-color: var(--cash); }
.map-status.st-offline { border-left-color: var(--warn); }
.map-status.st-error { border-left-color: var(--danger); }
.map-status b { color: var(--text); font-family: var(--font-head); font-size: 1.05rem; }
.map-status .ico { color: var(--muted); flex-shrink: 0; }
.map-status .btn { margin-left: auto; }

@media (max-width: 900px) {
  .map-toolbar { flex-wrap: wrap; gap: 8px; }
  .map-search { order: 3; flex: 1 1 100%; }
  .map-tools { margin-left: auto; }
  .map-tools .btn span { display: none; }
  .map-tools .map-legend-btn { width: 40px; padding: 0; }
  .map-legend { left: 14px; right: 14px; width: auto; top: auto; bottom: 14px; max-height: 55%; }
  .map-status { left: 14px; right: 14px; bottom: 14px; max-width: none; flex-wrap: wrap; }
  .map-status .btn { margin-left: 0; }
  .map-legend.open ~ .map-status { display: none; }
  .story-head { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  /* phone: login + account live in the drawer, the bar keeps only brand + burger */
  .nav-login, .nav-account { display: none; }
}
@media (max-width: 560px) {
  .item-grid, .item-grid-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-body { padding: 10px 10px 12px; }
  .item-name { font-size: 1rem; }
  .item-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .search-input { height: 54px; font-size: 1.05rem; }
  .pv-head-actions .btn { flex: 1 1 auto; }
  .ban-bar { flex-wrap: wrap; }
  .ban-bar .btn { margin-left: 36px; }
}
