:root{--accent:#C62820;--accent-d:#9E1C16;--ink:#0E0A09;--text:#1C1512;--muted:#5E5049;--cream:#F7F3EE;--gold:#E6B866;--gold-t:#F0C982}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--cream);font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}
.v2-page{font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--text);background:var(--cream);min-height:100vh;display:flex;flex-direction:column}
main{flex:1 0 auto}
img{max-width:100%}
a{color:var(--accent)}a:hover{color:var(--accent-d)}
.nav-link:hover{color:var(--text) !important}
.btn:hover{filter:brightness(1.08);color:#fff}
.tlink:hover{text-decoration:underline !important}
.foot-link:hover{color:#FFFFFF !important}
.lift{transition:box-shadow .2s,transform .2s}
.lift:hover{box-shadow:0 16px 36px rgba(60,30,20,.16) !important;transform:translateY(-2px)}
.row:hover td{background:rgba(230,184,102,.08)}
:focus-visible{outline:3px solid rgba(198,40,32,.45);outline-offset:2px}
.v2-skip{position:absolute;left:-9999px;top:8px;z-index:100;background:#fff;padding:10px 14px;border-radius:8px}
.v2-skip:focus{left:8px}
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none !important}

/* header */
.v2-header{background:#FFFFFF;border-bottom:1px solid rgba(28,21,18,.08);position:sticky;top:0;z-index:50}
.v2-header-in{max-width:1200px;margin:0 auto;padding:12px 24px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px}
.v2-logo{display:block;line-height:0;flex:none}
.v2-logo img{height:48px;width:auto;display:block}
.v2-nav{display:flex;align-items:center;gap:2px;flex-wrap:wrap;font-size:15px;font-weight:600}
.v2-nav a{color:var(--muted);text-decoration:none;padding:12px;border-radius:8px}
.v2-nav a:hover{color:var(--text)}
.v2-nav a[aria-current=page]{color:var(--text);background:rgba(198,40,32,.08)}
.v2-auth{display:flex;align-items:center;gap:8px}
.v2-login{display:inline-flex;align-items:center;height:44px;padding:0 12px;color:var(--muted);text-decoration:none;font-size:15px;font-weight:600}
.v2-register{display:inline-flex;align-items:center;height:44px;padding:0 18px;background:var(--accent);color:#FFFFFF;text-decoration:none;font-size:15px;font-weight:700;border-radius:8px}
.v2-menu-btn{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:8px;border:1px solid rgba(28,21,18,.14);background:#fff;color:var(--text);cursor:pointer}
.v2-user{position:relative}
.v2-user summary{list-style:none;display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 12px 0 6px;border-radius:999px;border:1px solid rgba(28,21,18,.12);color:var(--text);font-size:15px;font-weight:700;cursor:pointer;max-width:240px}
.v2-user summary::-webkit-details-marker{display:none}
.v2-user summary img{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none}
.v2-user summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2-user-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;background:#fff;border-radius:12px;border:1px solid rgba(28,21,18,.08);box-shadow:0 16px 40px rgba(60,30,20,.16);padding:8px;display:flex;flex-direction:column;z-index:60}
.v2-user-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:var(--text);text-decoration:none;font-size:15px;font-weight:600}
.v2-user-menu a:hover{background:var(--cream);color:var(--text)}
.v2-user-name{padding:8px 12px 10px;font-size:13px;font-weight:800;color:var(--muted);border-bottom:1px solid rgba(28,21,18,.08);margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2-user-menu a.v2-user-logout{color:var(--accent)}
@media (max-width:1100px){
  .v2-header-in{flex-wrap:wrap}
  .v2-auth{margin-left:auto}
  .v2-menu-btn{display:inline-flex}
  .v2-nav{display:none;order:5;width:100%;flex-direction:column;align-items:stretch;padding:4px 0 8px}
  .v2-nav.is-open{display:flex}
}
@media (max-width:520px){
  .v2-header-in{padding:10px 16px;gap:10px}
  .v2-logo img{height:40px}
  .v2-login{padding:0 8px}
  .v2-register{padding:0 12px}
  .v2-user summary span{display:none}
}

/* footer */
.v2-footer{background:var(--ink);color:rgba(255,255,255,.72);flex:none}
.v2-footer-in{max-width:1200px;margin:0 auto;padding:56px 24px 32px;box-sizing:border-box;display:flex;flex-direction:column;gap:40px}
.v2-foot-cols{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}
.v2-foot-brand{flex:1 1 260px;max-width:320px;display:flex;flex-direction:column;gap:16px}
.v2-foot-brand img{height:48px;width:auto;align-self:flex-start;display:block}
.v2-foot-brand p{margin:0;font-size:15px;line-height:1.65;color:rgba(255,255,255,.66)}
.v2-foot-loc{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:rgba(255,255,255,.66)}
.v2-foot-col{flex:0 1 170px;display:flex;flex-direction:column;gap:4px;font-size:15px}
.v2-foot-col a{color:rgba(255,255,255,.72);text-decoration:none;padding:6px 0}
.v2-foot-title{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);padding-bottom:8px}
.v2-foot-line{height:1px;background:rgba(255,255,255,.1)}
.v2-foot-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:13px;color:rgba(255,255,255,.6)}

/* alerts */
.v2-alert{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:12px;font-size:15px;line-height:1.5;font-weight:600;border:1px solid transparent}
.v2-alert-success{background:#DCFCE7;color:#14532D;border-color:#BBF7D0}
.v2-alert-info{background:#E0F2FE;color:#0C4A6E;border-color:#BAE6FD}
.v2-alert-warning{background:#FEF3C7;color:#78350F;border-color:#FDE68A}
.v2-alert-danger{background:#FEE2E2;color:#7F1D1D;border-color:#FECACA}

/* forms */
.v2-field{display:flex;flex-direction:column;gap:8px}
.v2-label{font-size:14px;font-weight:700;color:var(--text)}
.v2-input{width:100%;box-sizing:border-box;height:48px;padding:0 14px;border-radius:10px;border:1px solid rgba(28,21,18,.18);background:#FFFFFF;font-size:15px;font-family:inherit;color:var(--text)}
.v2-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(198,40,32,.15)}
.v2-input[readonly]{background:var(--cream)}
textarea.v2-input{height:auto;padding:12px 14px;line-height:1.5}
select.v2-input{cursor:pointer}
.v2-hint{font-size:13px;color:var(--muted)}
.text-danger,.field-validation-error{color:#B91C1C;font-size:13px;font-weight:600}
.input-validation-error{border-color:#DC2626 !important}
.v2-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:8px;background:var(--accent);color:#FFFFFF;text-decoration:none;font-size:15px;font-weight:800;border:0;cursor:pointer;font-family:inherit}
.v2-btn:hover{filter:brightness(1.08);color:#fff}
.v2-btn[disabled]{opacity:.6;cursor:wait}
.v2-btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 20px;border-radius:8px;border:1px solid rgba(28,21,18,.18);color:var(--text);text-decoration:none;font-size:15px;font-weight:700;background:#FFFFFF;cursor:pointer;font-family:inherit}
.v2-btn-ghost:hover{border-color:rgba(28,21,18,.4);color:var(--text)}

/* tabs & chips */
.v2-tabs{display:flex;flex-wrap:wrap;gap:8px}
.v2-tab{height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(28,21,18,.14);background:#FFFFFF;color:var(--text);font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.v2-tab:hover{border-color:rgba(28,21,18,.35)}
.v2-tab.is-active{background:var(--accent);border-color:var(--accent);color:#FFFFFF}
.v2-tab.v2-tab-sm{height:40px;padding:0 14px;font-size:14px}
.v2-chip-dark.is-active{background:var(--text);border-color:var(--text);color:#FFFFFF}

/* data tables */
.v2-table{width:100%;border-collapse:collapse;min-width:640px}
.v2-table th{text-align:left;padding:12px 16px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);background:var(--cream);white-space:nowrap}
.v2-table td{padding:12px 16px;font-size:15px;color:var(--text);border-top:1px solid rgba(28,21,18,.07);vertical-align:middle}
.v2-table tr:hover td{background:rgba(230,184,102,.08)}
.v2-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.v2-medal{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;background:var(--cream);color:var(--muted)}
.v2-medal.m1{background:#E6B866;color:#2A1D0A}.v2-medal.m2{background:#D6D3D1;color:#1C1512}.v2-medal.m3{background:#D9A27A;color:#2A1D0A}
.v2-face{width:32px;height:32px;border-radius:8px;object-fit:cover;flex:none;vertical-align:middle}
.v2-name{display:flex;align-items:center;gap:12px;font-weight:700;min-width:0}

/* compact data rows */
.v2-ico{width:36px;height:36px;flex:none;border-radius:8px;background:var(--cream);display:inline-flex;align-items:center;justify-content:center}
.v2-ico img{max-width:30px;max-height:30px}
.v2-ico-lg{width:44px;height:44px;border-radius:10px}
.v2-ico-lg img{max-width:36px;max-height:36px}
.v2-muted{color:var(--muted)}
.v2-b{font-weight:800}
.v2-b7{font-weight:700}
.v2-nw{white-space:nowrap}
.v2-tab-num{font-variant-numeric:tabular-nums}
.v2-price{display:inline-flex;align-items:center;gap:6px}
.v2-table td.q-Normal,.q-Normal{color:#78716C}.v2-table td.q-Refined,.q-Refined{color:#2F6DB5}.v2-table td.q-Unique,.q-Unique{color:#15803D}.v2-table td.q-Elite,.q-Elite{color:#A21CAF}.v2-table td.q-Super,.q-Super{color:#B45309}
.v2-table td.v2-muted{color:var(--muted)}
.v2-table.v2-compact th,.v2-table.v2-compact td{padding:10px 12px;font-size:14px}
.v2-table.v2-compact th{font-size:11px}

/* server status (home) */
.v2-status{width:100%;max-width:980px;display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;border-radius:18px;border:1px solid rgba(28,21,18,.08);background:#FFFFFF;box-shadow:0 16px 40px rgba(60,30,20,.10);overflow:hidden;box-sizing:border-box}
.v2-status-cell{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:18px 22px;border-left:1px solid rgba(28,21,18,.08);min-width:0;text-align:left}
.v2-status-cell:first-child{border-left:0;background:linear-gradient(135deg,rgba(74,222,128,.10),rgba(74,222,128,0) 70%)}
.v2-status-cell>span{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.v2-status-live{flex-direction:row;align-items:center;justify-content:flex-start;gap:14px}
.v2-status-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.v2-status-txt strong{font-size:17px;font-weight:800;color:var(--text)}
.v2-status-txt span{font-size:13px;font-weight:600;color:var(--muted)}
.v2-status-num{font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.1;color:var(--text);font-variant-numeric:tabular-nums}
.v2-status-gold{color:#15803D}
.v2-live-dot{width:14px;height:14px;border-radius:50%;background:#22C55E;flex:none;animation:v2live 1.8s infinite}
.v2-live-dot.is-off{background:#9CA3AF;animation:none}
@keyframes v2live{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.v2-status-bar{display:block;height:6px;border-radius:999px;background:rgba(28,21,18,.08);overflow:hidden;margin-top:6px}
.v2-status-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22C55E,#E6B866);animation:v2grow 1.2s ease-out}
@keyframes v2grow{from{width:0}}
@media (max-width:760px){
  .v2-status{grid-template-columns:1fr 1fr}
  .v2-status-cell:nth-child(3){border-left:0}
  .v2-status-cell:nth-child(n+3){border-top:1px solid rgba(28,21,18,.08)}
  .v2-status-cell{padding:16px}
  .v2-status-num{font-size:26px}
}

/* countdown */
.v2-count{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:var(--cream);font-size:13px;font-weight:700;color:var(--muted)}
.v2-count b{font-variant-numeric:tabular-nums;color:var(--text)}
.v2-count.is-live{background:#DCFCE7;color:#14532D}
.v2-count.is-live b{color:#14532D}

/* prose (patch notes, legal) */
.v2-prose p{margin:0 0 12px;font-size:16px;line-height:1.7;color:var(--muted)}
.v2-prose ul{margin:0 0 12px;padding-left:20px;color:var(--muted);line-height:1.7}

@media (max-width:640px){
  .v2-hide-sm{display:none !important}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .v2-live-dot,.v2-status-bar i,.v2-mk-dot{animation:none}
  .lift,.lift:hover{transition:none;transform:none}
}


/* ---------- theme toggle ---------- */
.v2-theme{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:999px;border:1px solid rgba(28,21,18,.12);background:transparent;color:var(--text);cursor:pointer;padding:0}
.v2-theme:hover{border-color:rgba(28,21,18,.35)}
.v2-theme .i-sun{display:none}
html[data-theme="dark"] .v2-theme .i-sun{display:block}
html[data-theme="dark"] .v2-theme .i-moon{display:none}
.v2-theme-row{display:none}
@media (max-width:520px){.v2-theme{display:none}.v2-nav .v2-theme-row{display:flex;align-items:center;gap:10px;padding:12px;margin:0;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer}}
.v2-theme-row .i-sun,.v2-theme-row .t-light{display:none}
html[data-theme="dark"] .v2-theme-row .i-sun,html[data-theme="dark"] .v2-theme-row .t-light{display:inline}
html[data-theme="dark"] .v2-theme-row .i-moon,html[data-theme="dark"] .v2-theme-row .t-dark{display:none}

/* ---------- dark mode ---------- */
html[data-theme="dark"]{color-scheme:dark;--text:#F3ECE6;--muted:#B4A59A;--cream:#1F1916}
html[data-theme="dark"] body,html[data-theme="dark"] .v2-page{background:#0F0C0B}
html[data-theme="dark"] .v2-skip{background:#1C1715;color:#F3ECE6}
html[data-theme="dark"] .v2-header{background:#15110F;border-bottom-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .v2-nav a[aria-current=page]{background:rgba(239,90,79,.16)}
html[data-theme="dark"] .v2-theme,html[data-theme="dark"] .v2-user summary{border-color:rgba(255,255,255,.16)}
html[data-theme="dark"] .v2-theme:hover{border-color:rgba(255,255,255,.4)}
html[data-theme="dark"] .v2-menu-btn{background:#1C1715;border-color:rgba(255,255,255,.16)}
html[data-theme="dark"] .v2-user-menu{background:#1C1715;border-color:rgba(255,255,255,.1);box-shadow:0 16px 40px rgba(0,0,0,.55)}
html[data-theme="dark"] .v2-user-name{border-bottom-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .v2-input{background:#15110F;border-color:rgba(255,255,255,.16);color:#F3ECE6}
html[data-theme="dark"] .v2-input::placeholder{color:#8C7E74}
html[data-theme="dark"] .v2-btn-ghost{border-color:rgba(255,255,255,.2)}
html[data-theme="dark"] .v2-btn-ghost:hover{border-color:rgba(255,255,255,.45)}
html[data-theme="dark"] .v2-tab{background:#1A1513;border-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .v2-tab:hover{border-color:rgba(255,255,255,.35)}
html[data-theme="dark"] .v2-tab.is-active{background:var(--accent);border-color:var(--accent)}
html[data-theme="dark"] .v2-chip-dark.is-active{background:#F3ECE6;border-color:#F3ECE6;color:#1C1512}
html[data-theme="dark"] .v2-table td{border-top-color:rgba(255,255,255,.07)}
html[data-theme="dark"] .v2-status{background:#1A1513;border-color:rgba(255,255,255,.08);box-shadow:0 16px 40px rgba(0,0,0,.4)}
html[data-theme="dark"] .v2-status-cell,html[data-theme="dark"] .v2-status-cell:nth-child(n+3){border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .v2-status-live{background:rgba(34,197,94,.07)}
html[data-theme="dark"] .v2-status-bar{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .v2-status-gold{color:#4ADE80}
html[data-theme="dark"] .v2-count.is-live{background:rgba(34,197,94,.14);color:#86EFAC}
html[data-theme="dark"] .v2-alert-success{background:rgba(34,197,94,.12);color:#BBF7D0;border-color:rgba(34,197,94,.3)}
html[data-theme="dark"] .v2-alert-info{background:rgba(56,189,248,.12);color:#BAE6FD;border-color:rgba(56,189,248,.3)}
html[data-theme="dark"] .v2-alert-warning{background:rgba(245,158,11,.12);color:#FDE68A;border-color:rgba(245,158,11,.3)}
html[data-theme="dark"] .v2-alert-danger{background:rgba(239,68,68,.12);color:#FECACA;border-color:rgba(239,68,68,.3)}
html[data-theme="dark"] .v2-table td.q-Normal,html[data-theme="dark"] .q-Normal{color:#A8A29E}
html[data-theme="dark"] .v2-table td.q-Refined,html[data-theme="dark"] .q-Refined{color:#60A5FA}
html[data-theme="dark"] .v2-table td.q-Unique,html[data-theme="dark"] .q-Unique{color:#4ADE80}
html[data-theme="dark"] .v2-table td.q-Elite,html[data-theme="dark"] .q-Elite{color:#E879F9}
html[data-theme="dark"] .v2-table td.q-Super,html[data-theme="dark"] .q-Super{color:#FBBF24}
html[data-theme="dark"] .v2-st{color:#F87171;border-color:rgba(248,113,113,.5);background:rgba(248,113,113,.08)}
html[data-theme="dark"] .v2-st.on{color:#4ADE80;border-color:rgba(74,222,128,.55);background:rgba(74,222,128,.1)}
html[data-theme="dark"] .rk-podium{border:1px solid rgba(255,255,255,.08)}
html[data-theme="dark"] .lift:hover{box-shadow:0 16px 36px rgba(0,0,0,.5) !important}
/* inline page colors */
html[data-theme="dark"] [style*="background: #FFFFFF"]{background:#1A1513 !important}
html[data-theme="dark"] [style*="background: #F7F3EE"]{background:#1F1916 !important}
html[data-theme="dark"] [style*="rgba(247,243,238,0)"]{background:radial-gradient(1300px 600px at 50% 0%,rgba(230,184,102,.07),rgba(15,12,11,0) 62%),#0F0C0B !important}
html[data-theme="dark"] [style*="background: rgba(28,21,18,.08)"]{background:rgba(255,255,255,.08) !important}
html[data-theme="dark"] [style*="background: #F5F5F4"]{background:rgba(255,255,255,.06) !important}
html[data-theme="dark"] [style*="background: #FEF3C7"]{background:rgba(245,158,11,.14) !important}
html[data-theme="dark"] [style*="background: #FEE2E2"]{background:rgba(239,68,68,.14) !important}
html[data-theme="dark"] [style*="background: #DCFCE7"]{background:rgba(34,197,94,.14) !important}
html[data-theme="dark"] [style*="color: #1C1512"]{color:#F3ECE6 !important}
html[data-theme="dark"] [style*="color: #5E5049"]{color:#B4A59A !important}
html[data-theme="dark"] [style*="color: #C62820"]{color:#F0675C !important}
html[data-theme="dark"] [style*="color: #9E1C16"]{color:#F2A39A !important}
html[data-theme="dark"] [style*="color: #15803D"]{color:#4ADE80 !important}
html[data-theme="dark"] [style*="color: #6B4A12"]{color:#F0C982 !important}
html[data-theme="dark"] [style*="color: #78350F"],html[data-theme="dark"] [style*="color: #B45309"]{color:#FCD34D !important}
html[data-theme="dark"] [style*="color: #B91C1C"]{color:#FCA5A5 !important}
html[data-theme="dark"] [style*="color: #57534E"]{color:#D6D3D1 !important}
html[data-theme="dark"] [style*="border: 1px solid rgba(28,21,18,"]{border-color:rgba(255,255,255,.1) !important}
html[data-theme="dark"] [style*="border-top: 1px solid rgba(28,21,18,"]{border-top-color:rgba(255,255,255,.08) !important}
html[data-theme="dark"] [style*="border-bottom: 1px solid rgba(28,21,18,"]{border-bottom-color:rgba(255,255,255,.08) !important}
html[data-theme="dark"] [style*="box-shadow: 0 12px 32px rgba(60,30,20"],html[data-theme="dark"] [style*="box-shadow: 0 8px 22px rgba(60,30,20"],html[data-theme="dark"] [style*="box-shadow: 0 18px 44px rgba(60,30,20"]{box-shadow:0 12px 32px rgba(0,0,0,.35) !important}
/* light elements that keep dark text */
html[data-theme="dark"] [style*="background: #E6B866"][style*="color: #1C1512"],html[data-theme="dark"] [style*="background: #F0C982"][style*="color: #1C1512"]{color:#1C1512 !important}
/* layout scale: 100% */
