:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --tile: rgba(255, 255, 255, 0.03);
  --tile-line: rgba(255, 255, 255, 0.07);
  --field: rgba(255, 255, 255, 0.04);
  --text: #f5f5f5;
  --soft: #a3a3a3;
  --muted: #7a7a7a;
  --gold: #ffd21f;
  --green: #03ff53;
  --blue: #5bb8ff;
  --red: #ff5a5a;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 14px/1.5 Montserrat, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
::selection { background: rgba(255, 210, 31, 0.35); }
[hidden] { display: none !important; }
svg { flex-shrink: 0; }

.row { display: flex; align-items: center; }
.stack { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.center { text-align: center; align-items: center; }
.center-row { justify-content: center; }
.baseline { align-items: baseline; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-40 { gap: 40px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small { font-size: 12px; }
.strong { font-weight: 700; color: var(--text); }
.soft { color: var(--soft); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.red { color: #ff7a7a; }
.italic { font-style: italic; }
.mono-caps { text-transform: uppercase; letter-spacing: 0.01em; }
.sep-space { height: 20px; }
.pad-8 { padding: 0 8px 8px; }

.display-sm { font: italic 800 44px/1.05 Montserrat, sans-serif; margin: 0; letter-spacing: -0.01em; }
.h1 { font: italic 800 32px/1.1 Montserrat, sans-serif; margin: 0; letter-spacing: -0.01em; }
.h2 { font: italic 800 26px/1.15 Montserrat, sans-serif; margin: 0; }
.h3 { font: italic 800 19px/1.25 Montserrat, sans-serif; margin: 0; }
.title { font: 700 17px/1.3 Montserrat, sans-serif; margin: 0; }
.p { margin: 0; color: #d6d6d6; font-size: 14px; line-height: 1.65; }
.lead { margin: 0; color: #d6d6d6; font-size: 16px; line-height: 1.6; max-width: 640px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 600; }

.logo { display: inline-flex; flex-direction: column; font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.02em; }
.logo .l1 {
  background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 40%, #9c9c9c 62%, #d9d9d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .l2 { color: var(--gold); align-self: flex-end; letter-spacing: -0.01em; }
.logo-sm .l1 { font-size: 21px; }
.logo-sm .l2 { font-size: 12.5px; margin-top: 1px; }
.logo-md .l1 { font-size: 34px; }
.logo-md .l2 { font-size: 20px; margin-top: 2px; }
.logo-lg .l1 { font-size: clamp(54px, 9vw, 104px); }
.logo-lg .l2 { font-size: clamp(32px, 5.4vw, 62px); margin-top: 4px; }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--green); flex-shrink: 0; }
.dot.live { background: var(--green); box-shadow: 0 0 0 0 rgba(3, 255, 83, 0.5); animation: pulse 2.4s infinite; }
.dot.off { background: #5a5a5e; }
.dot.warn { background: var(--gold); }
.dot.blue { background: var(--blue); }
.dot.red { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(3, 255, 83, 0.45); } 70% { box-shadow: 0 0 0 6px rgba(3, 255, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(3, 255, 83, 0); } }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease), opacity 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--text); color: #0b0b0c; }
.btn-primary:hover { background: #ffffff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.28); color: var(--text); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
.btn-soft { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn-soft:hover { background: rgba(255, 255, 255, 0.14); }
.btn-danger { background: rgba(255, 90, 90, 0.14); color: #ff7a7a; }
.btn-danger:hover { background: rgba(255, 90, 90, 0.22); }
.btn-danger-solid { background: #e5484d; color: #fff; }
.btn-danger-solid:hover { background: #f05a5f; }
.btn-ghost-danger { color: #ff7a7a; padding: 0 12px; }
.btn-ghost-danger:hover { background: rgba(255, 90, 90, 0.1); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn-xs { height: 28px; padding: 0 11px; font-size: 12px; gap: 6px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: 0.16; transform: scale(0); animation: ripple 0.6s var(--ease); pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--soft); transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.panel { background: rgba(20, 20, 22, 0.85); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; min-height: 68px; }
.panel-head.col { flex-direction: column; align-items: flex-start; gap: 16px; }
.panel-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.tile { background: var(--tile); border: 1px solid var(--tile-line); border-radius: 14px; }
.empty { padding: 28px 24px; color: var(--muted); text-align: center; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .flabel { font-size: 12px; font-weight: 600; color: var(--soft); }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s; outline: none;
}
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.input.error { border-color: rgba(255, 90, 90, 0.7); }
textarea.input { height: auto; min-height: 96px; max-height: 520px; padding: 12px 14px; line-height: 1.55; resize: vertical; field-sizing: content; }
textarea.input.tall { min-height: 120px; }
input[type="datetime-local"].input, input[type="date"].input { color-scheme: dark; }
.select { position: relative; }
.select select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: #18181b; color: var(--text); }
.select > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--soft); }
.select-sm select.input { height: 36px; font-size: 13px; padding-left: 12px; padding-right: 34px; border-radius: 10px; }
.select-sm > svg { right: 11px; }
.err { font-size: 12px; color: #ff7a7a; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input, input.box {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 5px; margin: 0; flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3); background: transparent; cursor: pointer; display: inline-grid; place-content: center;
  transition: background-color 0.15s, border-color 0.15s;
}
.check input::after, input.box::after { content: ""; width: 10px; height: 6px; border: 2px solid #0b0b0c; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.15s var(--ease); }
.check input:checked, input.box:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after, input.box:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: end; }
.form-row.three { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
.form-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-row.start-row { grid-template-columns: auto minmax(0, 1fr); }
.form-row.title-row { grid-template-columns: minmax(0, 1fr) 200px; }
.form-row.code-fields { grid-template-columns: minmax(0, 1fr) auto 160px; }
.dialog .form-row.code-fields { grid-template-columns: auto minmax(0, 1fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.seg { display: inline-flex; align-self: flex-start; padding: 4px; gap: 2px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); }
.seg.wrap { flex-wrap: wrap; border-radius: 22px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg-links a { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--soft); transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
.seg label:hover span, .seg-links a:hover { color: var(--text); }
.seg input:checked + span, .seg-links a.on { background: var(--text); color: #0b0b0c; }
.seg input:focus-visible + span { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 1px; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.tag.gold { background: rgba(255, 210, 31, 0.15); color: var(--gold); }
.tag.blue { background: rgba(91, 184, 255, 0.15); color: var(--blue); }

.avatar { border-radius: 10px; background: #26262a; object-fit: cover; flex-shrink: 0; }
.avatar.ph { display: inline-grid; place-content: center; }
.rank { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
a.who:hover .strong { text-decoration: underline; text-underline-offset: 3px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--soft); background: rgba(255, 255, 255, 0.025); padding: 12px 24px; white-space: nowrap; }
.table td { padding: 14px 24px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:first-child td { border-top-color: transparent; }
.table th.num, .table td.num { text-align: right; }
.table td.act, .table th.act { text-align: right; width: 1%; white-space: nowrap; }
.table th.c, .table td.c { text-align: center; }
.table.hover tbody tr[data-href] { cursor: pointer; }
.table.hover tbody tr[data-href]:hover td, .table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table tr.dim td { opacity: 0.55; }
.table td form { display: inline; }
.table s { margin-left: 4px; }
.panel > .table:last-child tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.panel > .table:last-child tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.matrix td { padding-top: 10px; padding-bottom: 10px; }
.mark-yes { display: inline-grid; place-content: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(3, 255, 83, 0.12); color: var(--green); }
.mark-no { display: inline-block; width: 8px; height: 2px; border-radius: 1px; background: #4a4a4e; vertical-align: middle; }

.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); min-height: 52px; }
.panel-head + .kv .kv-row:first-child { border-top: 1px solid var(--line); margin: 0 24px; padding-left: 0; padding-right: 0; }
.panel-head + .kv .kv-row { margin: 0 24px; padding-left: 0; padding-right: 0; }
.kv-row .k { color: var(--soft); font-size: 14px; min-width: 0; }
.kv-row .k .strong { font-size: 14px; }
.kv-row .v { font-weight: 700; text-align: right; }
.kv.flush .kv-row { margin: 0; padding: 12px 0; min-height: 0; }
.kv.flush .kv-row:first-child { border-top: 0; }

.secret { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); min-height: 44px; }
.secret code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #d6d6d6; }

.toasts { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #1c1c1f; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 14px; animation: toast-in 0.45s var(--ease) both; }
.toast > svg { color: var(--green); margin-top: 2px; }
.toast.error > svg { color: var(--red); }
.toast.hide { animation: toast-out 0.35s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
.mock-note { padding: 12px 16px; border-radius: 14px; background: rgba(255, 210, 31, 0.07); border: 1px solid rgba(255, 210, 31, 0.2); color: #f0dc8a; font-size: 13px; }

.dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px; border-radius: 22px; border: 1px solid var(--line-2); background: #161618; color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); overflow: auto; }
.dialog.wide { width: min(680px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
.dialog[open] { animation: dlg-in 0.35s var(--ease); }
.dialog[open]::backdrop { animation: fade-in 0.3s ease; }
.dialog.closing { animation: dlg-out 0.22s ease forwards; }
.dialog.closing::backdrop { animation: fade-out 0.22s ease forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--gold); transition: width 1s linear; }
.bar.white > span { background: var(--text); }

.account { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-line); }

/* public site */
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; display: flex; flex-direction: column; gap: 24px; padding-bottom: 80px; }
.page-pad { padding-top: 56px; }
.narrow { max-width: 820px; }
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(11, 11, 12, 0.78); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand .sub { font-size: 12px; font-weight: 500; color: var(--soft); }
.pill-nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(20, 20, 22, 0.7); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.pill-nav a { position: relative; z-index: 1; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 600; color: #d6d6d6; transition: color 0.2s, background-color 0.2s; }
.pill-nav a:hover { color: #fff; }
.pill-nav a.on { background: var(--text); color: #0b0b0c; }
.hover-glow { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.07); opacity: 0; pointer-events: none; transition: transform 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.2s; }
.sidebar .hover-glow { border-radius: 10px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.profile-chip { position: relative; }
.profile-chip summary { list-style: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; font-weight: 600; }
.profile-chip summary::-webkit-details-marker { display: none; }
.profile-chip .avatar { border-radius: 50%; }
.profile-chip .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 16px; background: #1a1a1d; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; animation: dlg-in 0.25s var(--ease); }
.profile-chip .menu a, .profile-chip .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #e0e0e0; text-align: left; }
.profile-chip .menu a:hover, .profile-chip .menu button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.hero { position: relative; margin-top: -76px; min-height: min(760px, 92vh); display: flex; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.04); animation: hero-zoom 14s ease-out forwards; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.7) 34%, rgba(11, 11, 12, 0.15) 70%), linear-gradient(180deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0) 22%, rgba(11, 11, 12, 0) 70%, var(--bg) 100%); }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-inner { position: relative; padding: 140px 0 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-logo { margin: 0; }
.hero-lead { margin: 0; max-width: 470px; font-size: 16px; line-height: 1.65; color: #e6e6e6; }
.live-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.hero-stats { display: flex; gap: 40px; margin-top: 16px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat .v { font: italic 800 26px/1 Montserrat, sans-serif; }
.hero-stat .k { font-size: 12px; color: var(--soft); }

.teaser { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 28px; }
.teaser-text { display: flex; flex-direction: column; gap: 16px; padding: 0 0 0 4px; }
.render-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.render { aspect-ratio: 16 / 9.4; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.06), transparent 70%), var(--tile); transition: border-color 0.3s, transform 0.4s var(--ease); }
.render img { width: 82%; height: 82%; object-fit: contain; transition: transform 0.5s var(--ease); }
.render:hover { border-color: var(--line-2); }
.render:hover img { transform: scale(1.05) translateY(-2px); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px; align-items: start; }
.code-row { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 16px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-line); }
.code-row .gold { font-style: italic; font-weight: 800; }
.code { font-weight: 800; letter-spacing: 0.01em; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.code-lg { font: italic 800 26px/1.15 Montserrat, sans-serif; }
.code-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.code-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.reward-big { font: italic 800 30px/1 Montserrat, sans-serif; color: var(--gold); }
.reward-unit { font-size: 14px; color: var(--soft); font-weight: 600; }
.expired-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.expired-row .code { flex: none; color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }

.notes-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.notes-list { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.notes-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; transition: background-color 0.2s; }
.notes-list a .date { color: var(--muted); }
.notes-list a:hover { background: rgba(255, 255, 255, 0.04); }
.notes-list a.on { background: rgba(255, 255, 255, 0.07); }
.post { overflow: hidden; }
.post-cover { aspect-ratio: 21 / 9; overflow: hidden; background: #111; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.note-section { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.note-head { display: flex; align-items: center; gap: 10px; margin: 0; font: italic 800 18px/1.3 Montserrat, sans-serif; }
.note-head .dot { animation: none; box-shadow: none; }
.note-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; color: #dadada; line-height: 1.6; }
.note-list li::marker { color: var(--muted); }

.apply-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.position { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease); }
.position:hover { border-color: var(--line-2); }
.position.on { border-color: rgba(255, 255, 255, 0.45); background: rgba(30, 30, 33, 0.9); }
.position.closed { opacity: 0.6; cursor: default; }
.checks { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #d6d6d6; }
.checks > span { display: flex; align-items: center; gap: 10px; }
.checks svg { color: var(--green); }
.checks.muted svg { color: var(--muted); }
.apply-form { padding: 28px; }

.login-wrap { position: relative; flex: 1; min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 48px 16px; }
.login-photo { position: absolute; inset: -76px 0 0; overflow: hidden; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(0.45); transform: scale(1.04); }
.login-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, 0.3), var(--bg)); }
.login-card { position: relative; width: min(420px, 100%); padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; backdrop-filter: blur(18px); background: rgba(20, 20, 22, 0.82); }
.login-card .logo { align-self: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.big-check { align-self: center; width: 60px; height: 60px; border-radius: 50%; display: grid; place-content: center; background: rgba(3, 255, 83, 0.12); color: var(--green); }
.prose p, .prose li { color: #d6d6d6; line-height: 1.7; margin: 0; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--soft); }
.site-footer a:hover, .to-top:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); }

/* admin panel */
.panel-body { background: var(--bg); }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 20px; padding: 24px 14px 14px; border-right: 1px solid var(--line); background: #0d0d0e; z-index: 40; }
.sidebar .brand { padding: 0 10px; }
.side-scroll { position: relative; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; margin: 0 -4px; padding: 0 4px; }
.side-group { position: relative; display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 12px; color: var(--muted); padding: 6px 10px 4px; }
.side-link { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #dcdcdc; transition: background-color 0.2s, color 0.2s; }
.side-link svg { color: var(--soft); transition: color 0.2s; }
.side-link:hover { color: #fff; }
.side-link.on { background: var(--text); color: #0b0b0c; }
.side-link.on svg { color: #0b0b0c; }
.side-link .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #0b0b0c; font-size: 11px; font-weight: 800; display: inline-grid; place-content: center; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--tile); border: 1px solid var(--tile-line); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(11, 11, 12, 0.85); backdrop-filter: blur(14px); }
.topbar .title { font: italic 800 24px/1 Montserrat, sans-serif; flex: 1; min-width: 0; }
.side-toggle { display: none; }
.live-count { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.search { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; width: 300px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--soft); transition: border-color 0.2s; }
.search:focus-within { border-color: rgba(255, 255, 255, 0.4); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; color: var(--text); font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.search kbd { font-size: 12px; color: var(--muted); }
.search.inline { width: 260px; height: 38px; }
.content { padding: 32px; display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 1360px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile-stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat-big { font: italic 800 34px/1.05 Montserrat, sans-serif; }
.stat-huge { font: italic 800 40px/1 Montserrat, sans-serif; }
.rank-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rank-row .tile-stat { gap: 10px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.list-panel { display: flex; flex-direction: column; padding: 8px; gap: 2px; }
.list-panel .panel-head { padding: 12px 12px 12px 16px; min-height: 0; }
.list-panel .pad-8 { padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; transition: background-color 0.2s; }
.pick:hover { background: rgba(255, 255, 255, 0.04); }
.pick.on { background: rgba(255, 255, 255, 0.08); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.facts .tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.answer { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-line); line-height: 1.65; white-space: pre-wrap; color: #e2e2e2; }

.player-head { display: flex; align-items: center; gap: 20px; padding: 24px; }
.player-head .avatar { border-radius: 16px; }
.cash-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cash-form { display: flex; align-items: flex-end; gap: 8px; }
.cash-form .field { width: 160px; }
.list-row { display: flex; align-items: center; gap: 16px; margin: 0 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.bike-thumb { width: 100px; height: 60px; border-radius: 12px; background: var(--tile); border: 1px solid var(--tile-line); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex-shrink: 0; }
.bike-thumb img { width: 92%; height: 92%; object-fit: contain; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-line); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.swatch input { position: absolute; opacity: 0; }
.swatch img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.swatch:has(input:checked) { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }

.live-event .event-plate { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #0b0b0c; border: 1px solid var(--line); }
.event-name { font: italic 800 22px/1.1 Montserrat, sans-serif; color: var(--gold); text-transform: uppercase; letter-spacing: -0.01em; }
.event-name.sm { font-size: 14px; color: var(--text); display: block; }
.event-time { font: italic 800 22px/1.1 Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
.kind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kind { position: relative; cursor: pointer; }
.kind input { position: absolute; opacity: 0; }
.kind-card { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-line); transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease); }
.kind:hover .kind-card { border-color: var(--line-2); }
.kind-name { font: italic 800 14px/1.2 Montserrat, sans-serif; text-transform: uppercase; }
.kind input:checked + .kind-card { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.07); }
.kind input:checked + .kind-card .kind-name { color: var(--gold); }
.kind input:focus-visible + .kind-card { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.preview { position: relative; height: 132px; border-radius: 14px; overflow: hidden; background: #222 center 62% / cover no-repeat; display: grid; place-items: center; border: 1px solid var(--line); }
.preview::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); }
.preview > * { position: relative; z-index: 1; }
.preview-plate { display: flex; align-items: center; gap: 24px; padding: 10px 22px; border-radius: 10px; background: rgba(11, 11, 12, 0.82); }
.preview-banner { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 10px; background: rgba(11, 11, 12, 0.82); font-weight: 700; font-size: 14px; text-align: center; }
.preview-chat { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 8px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); font-size: 13px; }

.feature { display: flex; align-items: center; gap: 28px; }
.feature-img { width: 250px; aspect-ratio: 16 / 10; border-radius: 16px; background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.07), transparent 70%), var(--tile); border: 1px solid var(--tile-line); display: grid; place-items: center; flex-shrink: 0; color: var(--muted); }
.feature-img img { width: 88%; height: 88%; object-fit: contain; }

.cover-pick { display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); }
.cover-pick img { width: 132px; height: 74px; border-radius: 10px; object-fit: cover; background: #222; }
.cover-pick .select { width: 260px; flex-shrink: 0; }

.pager { display: flex; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* motion */
html.js:not(.no-anim) [data-reveal], html.js:not(.no-anim) .content > *, html.js:not(.no-anim) .grid-main > *, html.js:not(.no-anim) .split > * { opacity: 0; transform: translateY(14px); }
html.js:not(.no-anim) .in { opacity: 1 !important; transform: none !important; transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
html.js:not(.no-anim) .content > .toasts, html.js:not(.no-anim) .content > dialog { opacity: 1; transform: none; }
.hero-inner > * { animation: rise 0.8s var(--ease) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.06s; } .hero-inner > *:nth-child(3) { animation-delay: 0.14s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.22s; } .hero-inner > *:nth-child(5) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-reveal], html.js .content > *, html.js .grid-main > *, html.js .split > * { opacity: 1 !important; transform: none !important; }
}

/* responsive */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-count { display: none; }
}
@media (max-width: 960px) {
  .pill-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .pill-nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 24px; right: 24px; border-radius: 20px; background: #161618; padding: 8px; }
  .site-header.open .pill-nav a { height: 44px; }
  .teaser, .home-grid, .apply-grid, .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .notes-list { position: static; flex-direction: row; overflow-x: auto; }
  .notes-list a { min-width: 200px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform 0.35s var(--ease); box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5); }
  .side-open .sidebar { transform: none; }
  .side-toggle { display: inline-flex; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .search { width: auto; flex: 0 1 240px; }
  .form-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { flex-direction: column; align-items: stretch; }
  .feature-img { width: 100%; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  .display-sm { font-size: 34px; }
  .hero-inner { padding: 120px 0 64px; }
  .hero-stats { gap: 24px; }
  .content { padding: 20px 16px; }
  .topbar { padding: 12px 16px; gap: 12px; height: auto; flex-wrap: wrap; }
  .topbar .search { order: 3; flex: 1 1 100%; width: 100%; }
  .code-row { flex-wrap: wrap; row-gap: 8px; }
  .code-row .code { flex-basis: 100%; }
  .code-lg { font-size: 21px; }
  .panel > .table td { white-space: nowrap; }
  .topbar .title { font-size: 20px; }
  .search kbd { display: none; }
  .tiles, .rank-row, .facts, .form-row, .form-row.three, .form-row.four, .form-row.code-fields, .dialog .form-row.code-fields, .form-row.title-row, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .panel-head + .kv .kv-row, .list-row { margin: 0 16px; }
  .table th, .table td { padding-left: 14px; padding-right: 14px; }
  .panel > .table { display: block; overflow-x: auto; }
  .player-head { flex-wrap: wrap; }
  .post-body { padding: 22px; }
  .code-cards { grid-template-columns: minmax(0, 1fr); }
}
