/* SAN STATUS · pilot app
   Brand: SAN orange #FC4C01 · cream #F9F4EE · #161616 / #0A0A0A
   Type: Futura PT Bold Oblique → Jost 700 italic (web) · Red Hat Display / Text · JetBrains Mono */
:root {
  --bg: #0A0A0A;
  --surface: #121212;
  --surface-2: #181818;
  --line: #262626;
  --line-2: #333;
  --ink: #F9F4EE;
  --ink-2: #C9C5C0;
  --dim: #8A8784;
  --mute: #85827F;   /* 4.9:1 on --bg */
  --orange: #FC4C01;
  --orange-ink: #0A0A0A;
  --bronze: #C08F66;
  --silver: #C9CDD3;
  --gold: #D8B574;
  --diamond: #BCD7EC;
  --tier: var(--bronze);
  --ok: #7FD08A;
  --r: 2px;
  --gut: 16px;
  --max: 560px;
  --nav: 64px;
  --f-head: 'Jost', 'Futura PT', 'Futura', sans-serif;
  --f-disp: 'Red Hat Display', system-ui, sans-serif;
  --f-text: 'Red Hat Text', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
[data-tier="silver"] { --tier: var(--silver); }
[data-tier="gold"] { --tier: var(--gold); }
[data-tier="diamond"] { --tier: var(--diamond); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-text); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1.5px solid var(--orange); outline-offset: 2px; }

/* ---------- type ---------- */
.label { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.head { font: italic 700 32px/0.95 var(--f-head); text-transform: uppercase; letter-spacing: -.005em; }
.sub { font: 600 17px/1.25 var(--f-disp); letter-spacing: .01em; }
.body { color: var(--ink-2); font-size: 14.5px; }
.small { font-size: 13px; color: var(--dim); }
.mono { font-family: var(--f-mono); }

/* ---------- shell ---------- */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) calc(var(--nav) + 40px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(var(--bg) 70%, rgba(10,10,10,0)); }
.topbar-in { max-width: var(--max); margin: 0 auto; padding: 14px var(--gut) 18px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: auto; color: var(--ink); }
.brand .label { color: var(--ink-2); border-left: 1px solid var(--line-2); padding-left: 12px; }
.me-btn { width: 34px; height: 34px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 12px var(--f-mono); color: var(--ink-2); }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(10,10,10,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--nav); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font: 500 10px var(--f-mono); letter-spacing: .16em; color: var(--mute); }
.nav button svg { width: 18px; height: 18px; }
.nav button.on { color: var(--ink); }
.nav button.on::after { content: ''; position: absolute; }

/* ---------- blocks ---------- */
.sec { margin-top: 36px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); position: relative; }
.frame::before, .frame::after { content: ''; position: absolute; width: 10px; height: 10px; border-color: var(--tier); border-style: solid; pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.frame::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.pad { padding: 20px; }
.rule { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; height: 48px; padding: 0 18px; font: 600 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn.block { width: 100%; }
.btn.sm { height: 40px; padding: 0 14px; font-size: 10.5px; white-space: nowrap; flex: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.tri { width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.link { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 440px; margin: 0 auto; padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-top svg { width: 56px; color: var(--ink); }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.auth .head { font-size: 56px; margin: 14px 0 14px; }
.auth .lede { color: var(--ink-2); font-size: 16px; margin-bottom: 36px; }
.field { display: block; margin-bottom: 14px; }
.field .label { display: block; margin-bottom: 8px; }
.input { width: 100%; height: 52px; background: var(--surface); border: 1px solid var(--line-2); padding: 0 16px; font-size: 16px; border-radius: 0; }
.input:focus { border-color: var(--ink-2); outline: none; }
.input.code { font: 500 22px var(--f-mono); letter-spacing: .3em; text-align: center; }
.input.code::placeholder { font: 400 14px var(--f-text); letter-spacing: 0; }
.err { min-height: 18px; font: 500 11px var(--f-mono); letter-spacing: .08em; color: var(--orange); margin: 4px 0 10px; text-transform: uppercase; }
.auth-foot { display: flex; justify-content: space-between; }
.spinner { width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- reveal ---------- */
.reveal { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; max-width: 440px; margin: 0 auto; padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 50% 38%, color-mix(in srgb, var(--tier) 16%, transparent), transparent 70%); }
.reveal .tierword { font: italic 700 clamp(64px, 20vw, 96px)/.9 var(--f-head); text-transform: uppercase; color: var(--tier); margin: 18px 0 16px; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); letter-spacing: .08em; } to { opacity: 1; transform: none; } }
.reveal .why { color: var(--ink-2); font-size: 16px; max-width: 32ch; animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- hero ---------- */
.hero { padding: 22px 20px 20px; overflow: hidden; }
.hero::marker { display: none; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--tier) 14%, transparent), transparent 65%); pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.hero .tierword { font: italic 700 clamp(56px, 17vw, 80px)/.88 var(--f-head); text-transform: uppercase; color: var(--tier); margin: 16px 0 10px; position: relative; }
.hero .why { color: var(--ink-2); position: relative; max-width: 40ch; }
.progress { margin-top: 22px; position: relative; }
.bar { height: 3px; background: var(--line-2); margin-top: 10px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tier); }
.bar b { position: absolute; top: -4px; width: 1px; height: 11px; background: var(--ink); }
.progress-row { display: flex; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid var(--line-2); font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pill.tier { border-color: color-mix(in srgb, var(--tier) 60%, transparent); color: var(--tier); }
.pill .dot { width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }

.next { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); position: relative; }
.next .sub { font-size: 15px; }

/* ---------- signals ---------- */
.sig { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sig:first-child { border-top: 1px solid var(--line); }
.sig .name { font: 600 15px var(--f-disp); }
.sig .word { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.sig .detail { font-size: 13px; color: var(--dim); }
.meter { display: flex; gap: 3px; justify-content: flex-end; }
.meter i { width: 14px; height: 4px; background: var(--line-2); }
.meter i.on { background: var(--ink); }
.sig.off .name { color: var(--dim); }
.soon { font: 500 10px var(--f-mono); letter-spacing: .14em; color: var(--mute); border: 1px dashed var(--line-2); padding: 4px 8px; text-transform: uppercase; }

/* ---------- benefits ---------- */
.ben { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ben:last-child { border-bottom: 0; }
.ben .mark { width: 44px; height: 44px; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.ben .mark img { width: 100%; height: 100%; object-fit: cover; }
.ben .mark svg { width: 18px; height: 18px; color: var(--ink-2); }
.ben .t { font: 600 15px var(--f-disp); }
.ben .s { font-size: 12.5px; color: var(--dim); }
.ben.locked .t { color: var(--dim); }
.ben.locked .mark { opacity: .45; }
.state { font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.state.on { color: var(--ok); }
.state.off { color: var(--mute); }
.ben-group + .ben-group { margin-top: 26px; }
.ben-group > .label { display: block; margin-bottom: 4px; }

/* ---------- avatars ---------- */
.av-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.av-tabs::-webkit-scrollbar { display: none; }
.av-tab { flex: 0 0 auto; width: 58px; height: 58px; border: 1px solid var(--line-2); overflow: hidden; position: relative; opacity: .55; }
.av-tab.on { opacity: 1; border-color: var(--ink); }
.av-tab img { width: 100%; height: 100%; object-fit: cover; }
.av { overflow: hidden; }
.av-art { aspect-ratio: 1; background: var(--surface-2); position: relative; }
.av-art img { width: 100%; height: 100%; object-fit: cover; }
.av-art .tag { position: absolute; left: 12px; top: 12px; background: rgba(10,10,10,.78); padding: 6px 9px; font: 500 10.5px var(--f-mono); letter-spacing: .14em; }
.av-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.av-stats > div { padding: 16px 20px; }
.av-stats > div + div { border-left: 1px solid var(--line); }
.av-stats .v { font: italic 700 40px/1 var(--f-head); margin-top: 6px; }
.gear { padding: 4px 20px 16px; }
.gear-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.gear-row:last-child { border-bottom: 0; }
.gear-row .c { font: 500 10px var(--f-mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; display: block; }
.gear-row .n { color: var(--ink); }
.gear-row .vf { font: 500 11.5px var(--f-mono); color: var(--ink-2); text-align: right; white-space: nowrap; }
.av-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }

.origin { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px; margin-top: 12px; }
.origin img { width: 72px; height: 72px; object-fit: cover; background: var(--surface-2); }

/* ---------- collection ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item { overflow: hidden; }
.item .ph { aspect-ratio: 1; background: #E9E6E2; display: grid; place-items: center; overflow: hidden; }
.item .ph img { width: 100%; height: 100%; object-fit: cover; }
.item .ph.dark { background: var(--surface-2); }
.item .ph svg { width: 40%; color: var(--mute); }
.item .meta { padding: 12px; }
.item .n { font: 600 13.5px/1.25 var(--f-disp); }
.item .s { font-size: 12px; color: var(--dim); margin-top: 2px; }
.qty { position: absolute; right: 8px; top: 8px; background: var(--bg); color: var(--ink); font: 600 10.5px var(--f-mono); padding: 4px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 11px var(--f-mono); letter-spacing: .08em; padding: 7px 10px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- badges ---------- */
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 12px; }
.badge .n { font: 600 12.5px/1.2 var(--f-disp); text-transform: uppercase; letter-spacing: .02em; }
.badge .r { font: 500 9.5px var(--f-mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; margin-top: 3px; }
.r-legendary { color: var(--orange) !important; }
.r-ultra { color: var(--gold) !important; }

/* ---------- leaderboard ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); margin-bottom: 16px; }
.seg button { height: 40px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.seg button.on { background: var(--ink); color: var(--bg); }
.row { display: grid; grid-template-columns: 34px 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row .rk { font: 600 13px var(--f-mono); color: var(--dim); }
.row .ini { width: 34px; height: 34px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 11px var(--f-mono); color: var(--ink-2); }
.row .nm { font: 600 14.5px var(--f-disp); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .bd { font: 500 10px var(--f-mono); letter-spacing: .1em; color: var(--dim); margin-top: 2px; }
.row.you { background: color-mix(in srgb, var(--tier) 8%, transparent); margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); border-bottom-color: color-mix(in srgb, var(--tier) 35%, transparent); }
.tchip { font: 500 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.t-bronze { color: var(--bronze); } .t-silver { color: var(--silver); } .t-gold { color: var(--gold); } .t-diamond { color: var(--diamond); }
.empty { padding: 28px 20px; text-align: center; color: var(--dim); font-size: 14px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; opacity: 0; transition: opacity .2s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: var(--max); margin: 0 auto; background: var(--surface); border-top: 1px solid var(--line-2); max-height: 88vh; overflow-y: auto; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); padding: 10px var(--gut) calc(24px + env(safe-area-inset-bottom)); }
.sheet.on { transform: none; }
.sheet:not(.on) { visibility: hidden; }
.grab { width: 36px; height: 3px; background: var(--line-2); margin: 4px auto 18px; }
.sheet-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sheet-sec:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.kv .v { color: var(--ink-2); font-size: 14px; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.inline .input { height: 44px; font-size: 15px; }
.inline .btn { height: 44px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60; width: calc(100% - 32px); max-width: 520px; background: var(--ink); color: var(--bg); padding: 14px 16px; font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { display: block; font: 600 10.5px var(--f-mono); letter-spacing: .14em; margin-bottom: 3px; }

.foot { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; }
.preview-flag { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--orange); color: var(--orange-ink); font: 600 10px var(--f-mono); letter-spacing: .16em; padding: 4px 10px; }
.preview-flag button { text-decoration: underline; font: inherit; color: inherit; margin-left: 8px; }

@media (min-width: 720px) {
  :root { --gut: 24px; }
  .head { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
select.input { appearance: none; -webkit-appearance: none; font: inherit; font-size: 16px; color: inherit;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="date"].input { font: inherit; font-size: 16px; color: inherit; }

/* Badge emblems: hex frame in the rarity color + SAN brand icon (icons.js) + optional level tag */
.emb { --rc: #4A4A4A; position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--rc); flex: none; }
.emb .frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.emb .ico { position: relative; width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink); }
.emb .ico svg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; }
.emb .tag { position: absolute; right: -4px; bottom: 0; min-width: 18px; padding: 2px 4px; background: var(--bg); border: 1px solid var(--rc);
  font: 700 8.5px/1 var(--f-mono); letter-spacing: .04em; color: var(--rc); text-align: center; }
.emb.r-common { --rc: #4A4A4A; } .emb.r-uncommon { --rc: var(--dim); } .emb.r-rare { --rc: var(--ink); }
.emb.r-ultra { --rc: var(--gold); } .emb.r-legendary { --rc: var(--orange); }
.emb.r-ultra .frame path, .emb.r-legendary .frame path { stroke-width: 1.6; }
.emb.r-legendary .frame path { fill: var(--orange); }
.emb.r-legendary .ico { color: var(--orange-ink); }
.emb.r-common, .emb.r-uncommon, .emb.r-rare, .emb.r-ultra, .emb.r-legendary { color: var(--rc) !important; }
.emb.xs { width: 22px; height: 22px; } .emb.xs .ico { width: 11px; height: 11px; }
.row .bd { display: flex; gap: 4px; margin-top: 4px; }

/* Community art (art.js): role cats, Soulbound, SANWEAR owners, The 33, 4th anniversary */
.emb.art { width: 48px; height: 48px; display: grid; place-items: center; }
.emb.art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.emb.art.xs { width: 22px; height: 22px; }
.ben .mark img.role-art { width: 32px; height: 32px; object-fit: contain; }
.emoji { display: block; width: 56px; height: 56px; object-fit: contain; margin: 18px auto 0; }
.emoji.hello { width: 64px; height: 64px; margin: 0 0 18px; }
.emoji.sm { width: 44px; height: 44px; margin: 0 auto 12px; opacity: .9; }
.emoji.pulse { animation: sanpulse 1.4s ease-in-out infinite; }
@keyframes sanpulse { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .emoji.pulse { animation: none; } }
.r-team { color: var(--orange) !important; }

/* Status Points */
.pts-total { display: flex; align-items: baseline; gap: 10px; margin: -2px 0 10px; position: relative; }
.pts-total b { font: 600 26px var(--f-mono); letter-spacing: -.01em; color: var(--ink); }
.pcat { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pcat:first-of-type { border-top: 1px solid var(--line); }
.pc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pc-h .name { font: 600 15px var(--f-disp); }
.pcat.off .pc-h .name { color: var(--dim); }
.pc-n { font: 500 12px var(--f-mono); color: var(--dim); letter-spacing: .04em; }
.pc-n b { color: var(--ink); font-weight: 600; font-size: 14px; }
.pc-bar { height: 3px; background: var(--line); margin: 10px 0 8px; }
.pc-bar i { display: block; height: 100%; background: var(--tier); }
.pc-about { font-size: 13px; color: var(--dim); }
.pc-lines { display: grid; gap: 5px; }
.pl { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-2); }
.pl .mono { font: 500 12px var(--f-mono); color: var(--ink); white-space: nowrap; }
.pl .mono i { font-style: normal; color: var(--mute, #5a5a5a); }
/* Order numbers on collection cards */
.item .ord { font: 500 10px var(--f-mono); letter-spacing: .1em; color: var(--dim); margin-top: 6px; }
/* Side-scrolling rails: unbound accessories, SANGA */
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0 6px; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rcard { flex: 0 0 136px; scroll-snap-align: start; border: 1px solid var(--line-2); background: var(--surface); }
.rail.sanga .rcard { flex-basis: 150px; }
.rimg { position: relative; aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.rimg.tall { aspect-ratio: 3 / 4; }
.rimg img { width: 100%; height: 100%; object-fit: cover; }
.rimg svg { width: 36%; color: var(--mute, #5a5a5a); }
.rmeta { padding: 9px 10px 11px; display: grid; gap: 3px; }
.rmeta .c { font: 500 9.5px var(--f-mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.rmeta .n { font: 600 12.5px/1.2 var(--f-disp); text-transform: uppercase; }
.rmeta .vf { font: 500 10px var(--f-mono); letter-spacing: .08em; color: var(--tier); margin-top: 2px; }
/* Avatar as profile picture */
.av-pfp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.me-btn.pic, .row .ini.pic { padding: 0; overflow: hidden; border-color: var(--tier); }
.me-btn.pic img, .row .ini.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail.sanga .rimg img { object-fit: contain; background: #0d0d0d; }

/* ===== v2.1 · SAN Key, key inventory, category boards, team tools ===== */
.ben { grid-template-columns: 44px 1fr auto; }
.ben-r { display: flex; justify-content: flex-end; }
.keycard { border: 1px solid var(--line-2); padding: 16px; margin-bottom: 22px; background: var(--surface-2); }
.keycard.live { border-color: color-mix(in srgb, var(--tier) 55%, var(--line-2)); }
.kc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kc-url { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line-2); padding: 6px 6px 6px 12px; margin-bottom: 10px; background: var(--bg); }
.kc-url .mono { font-size: 14px; overflow-wrap: anywhere; color: var(--ink); }
.kc-comm { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.kc-big { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.kc-big svg { width: 24px; height: 24px; color: var(--tier); }
.kc-pre { display: flex; align-items: center; border: 1px solid var(--line-2); background: var(--bg); }
.kc-pre > .mono { padding: 0 0 0 12px; color: var(--dim); font-size: 14px; white-space: nowrap; }
.kc-pre .input { border: 0; padding-left: 2px; min-width: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 4px 0 16px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); }
.empty.left { display: grid; grid-template-columns: 28px 1fr; gap: 14px; text-align: left; }
.empty.left svg { width: 24px; height: 24px; color: var(--dim); }
.alloc-list { display: grid; gap: 10px; }
.card.alloc { display: grid; grid-template-columns: 96px 1fr; overflow: hidden; }
.al-img { background: var(--surface-2); display: grid; place-items: center; min-height: 96px; }
.al-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-img svg { width: 28px; height: 28px; color: var(--dim); }
.al-body { padding: 14px; display: grid; gap: 6px; min-width: 0; }
.al-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.seg.lb { overflow-x: auto; grid-auto-columns: minmax(84px, 1fr); scrollbar-width: none; }
.seg.lb::-webkit-scrollbar { display: none; }
.seg.lb button { font-size: 10px; letter-spacing: .1em; padding: 0 8px; white-space: nowrap; min-height: 44px; }
.row.first .rk { color: var(--tier); }
.crown { font: 600 9.5px var(--f-mono); letter-spacing: .14em; color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 50%, transparent); padding: 3px 6px; margin-right: 4px; white-space: nowrap; }
.grid2f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2f .field { min-width: 0; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.sheet:focus { outline: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* narrow phones: nothing overflows */
.hero .tierword, .reveal .tierword { overflow-wrap: anywhere; }
.badge .n { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 360px) {
  .hero .tierword { font-size: 48px; }
  .reveal .tierword { font-size: 56px; }
  .grid2f { grid-template-columns: 1fr; }
  .card.alloc { grid-template-columns: 72px 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== v2.2 · shared key perks, holder perks, desktop dashboard ===== */
.uico { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink-2); }
.uico svg { width: 100%; height: 100%; }
.ben .mark .uico { width: 22px; height: 22px; }
.kc-big .kc-ico { width: 30px; height: 30px; color: var(--tier); display: grid; place-items: center; }
.kc-big .kc-ico svg { width: 100%; height: 100%; }
.kc-big { grid-template-columns: 34px 1fr; }
.kc-big .small { margin-top: 4px; }
.kc-gives { margin: 4px 0 14px; }
.kc-gives .chips { margin-top: 8px; }
.chip.on { color: var(--ink); border-color: color-mix(in srgb, var(--tier) 60%, var(--line-2)); }
.keycard { margin-bottom: 0; }
.empty.left .uico { width: 26px; height: 26px; color: var(--dim); }
.np-list { margin: -6px 0 6px 58px; border-left: 1px solid var(--line-2); padding-left: 12px; }
.np { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--ink-2); }
/* holder perks */
.sbl { padding: 14px 0 6px; border-top: 1px solid var(--line); }
.ben-group + .sbl, .sbl:first-child { border-top: 0; }
.sbl-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.sbl.cur .sbl-h .label { color: var(--tier); }
.perk { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; padding: 9px 0; }
.perk .uico { width: 22px; height: 22px; margin-top: 1px; }
.perk .t { font: 600 14px/1.3 var(--f-disp); }
.perk .s { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.perk.locked .t, .perk.locked .uico { color: var(--mute); }
.pstate { font: 500 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding-top: 3px; }
.pstate.on { color: var(--ok); }
.pstate.soon { color: var(--tier); }
.pstate.off { color: var(--mute); }
/* tier ladder in the hero */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; position: relative; }
.ladder span { border-top: 2px solid var(--line-2); padding-top: 6px; display: grid; gap: 1px; }
.ladder span.past { border-color: color-mix(in srgb, var(--tier) 45%, var(--line-2)); }
.ladder span.on { border-color: var(--tier); }
.ladder b { font: 500 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ladder span.on b { color: var(--tier); }
.ladder i { font: 500 10px var(--f-mono); font-style: normal; color: var(--mute); }
/* account button: picture on phones, name + picture on desktop */
.me-btn { width: auto; height: auto; border: 0; display: flex; align-items: center; gap: 12px; padding: 0; }
.me-pic { width: 34px; height: 34px; border: 1px solid var(--line-2); display: grid; place-items: center; font: 600 12px var(--f-mono); color: var(--ink-2); overflow: hidden; }
.me-btn.pic .me-pic { border-color: var(--tier); }
.me-btn.pic .me-pic img { width: 100%; height: 100%; object-fit: cover; }
.me-name, .topnav { display: none; }
/* leaderboard */
.seg.lb button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg.lb button i { font-style: normal; font-size: 9.5px; opacity: .7; }
.lb-intro { margin-bottom: 20px; }
.lb-head, .lb-you { display: none; }
.lby { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n r" "n s"; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 0 10px; }
.lby span { grid-area: n; font: 600 13px var(--f-disp); align-self: center; color: var(--ink-2); }
.lby b { grid-area: r; font: 600 18px var(--f-mono); text-align: right; }
.lby i { grid-area: s; font: 500 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-style: normal; text-align: right; }
.lby.on span { color: var(--tier); }
.lby:last-of-type { border-bottom: 0; }
/* team */
.tg-side > .sec-h:first-child { margin-top: 28px; }

/* tablet */
@media (min-width: 720px) and (max-width: 1079px) {
  :root { --max: 720px; }
  .a-collection .grid2 { grid-template-columns: repeat(3, 1fr); }
  .alloc-list { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: repeat(3, 1fr); }
}

/* desktop */
@media (min-width: 1080px) {
  :root { --max: 1240px; --gut: 32px; --nav: 0px; }
  .nav { display: none; }
  .shell { max-width: var(--max); padding: 8px var(--gut) 72px; }
  .topbar { background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar-in { max-width: var(--max); padding: 14px var(--gut); display: grid; grid-template-columns: 1fr auto 1fr; }
  .topbar-in .me-btn { justify-self: end; }
  .topnav { display: flex; gap: 2px; }
  .topnav button { height: 36px; padding: 0 18px; font: 500 11px var(--f-mono); letter-spacing: .16em; color: var(--dim); border: 1px solid transparent; }
  .topnav button:hover { color: var(--ink); }
  .topnav button.on { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
  .me-name { display: grid; justify-items: end; font: 600 13.5px/1.2 var(--f-disp); color: var(--ink); }
  .me-name i { font: 500 9.5px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; font-style: normal; }
  .me-pic { width: 38px; height: 38px; }
  .head { font-size: 48px; }

  /* status dashboard: 7 / 5 columns, sections placed by area */
  .dash { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 32px; align-items: start; margin-top: 24px;
    grid-template-areas: "hero key" "points benefits" "discord benefits" "badges benefits" "claim claim" "avatars holders" "collection collection" "sanga sanga";
    grid-template-rows: auto auto auto 1fr auto auto auto auto; }
  .dash > .blk > .sec { margin-top: 0; }
  .a-hero { grid-area: hero; } .a-key { grid-area: key; } .a-points { grid-area: points; } .a-benefits { grid-area: benefits; }
  .a-discord { grid-area: discord; } .a-claim { grid-area: claim; } .a-avatars { grid-area: avatars; } .a-holders { grid-area: holders; }
  .a-collection { grid-area: collection; } .a-sanga { grid-area: sanga; } .a-badges { grid-area: badges; }
  .dash:not(:has(.a-holders)) .a-avatars, .dash:not(:has(.a-avatars)) .a-holders { grid-column: 1 / -1; }
  /* left column (points, Discord, badges) stacks beside the taller benefits column, so collapsing points leaves no hole.
     The badges row is 1fr, so any leftover height sits below the badges instead of between sections. */
  .a-hero, .a-key { align-self: stretch; }
  .a-hero > .card, .a-key > .sec { height: 100%; }
  .a-key > .sec { display: flex; flex-direction: column; }
  .a-key .keycard { flex: 1; }

  .a-hero > .card { display: flex; flex-direction: column; }
  .hero { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 30px 32px 28px; flex: 1; }
  .hero .tierword { font-size: clamp(80px, 7.6vw, 116px); margin: 22px 0 12px; white-space: nowrap; }
  .hero-r { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 40px; align-items: end; }
  .hero-r .ladder { grid-column: 2; grid-row: 1; margin: 0; }
  .hero-r .progress { grid-column: 1 / -1; }
  .pts-total { flex-direction: column; gap: 4px; margin: 0; grid-row: 1; }
  .pts-total b { font-size: 46px; line-height: 1; }
  .next { padding: 18px 32px; }

  .pcats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .pcats .pcat:first-of-type, .pcats .pcat:nth-of-type(2) { border-top: 1px solid var(--line); }
  .pcats .pcat.off:last-child { grid-column: 1 / -1; }

  .alloc-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card.alloc { grid-template-columns: 1fr; }
  .card.alloc .al-img { aspect-ratio: 16 / 10; min-height: 0; }
  .card.alloc .al-img.dark { aspect-ratio: auto; height: 72px; justify-items: start; padding-left: 14px; border-bottom: 1px solid var(--line); }
  .card.alloc .al-img.dark svg { width: 26px; height: 26px; }
  .a-discord { align-self: start; }

  .card.av { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; }
  .card.av .av-art { grid-row: 1 / 5; aspect-ratio: 1; align-self: start; }
  .card.av .gear { max-height: 300px; overflow-y: auto; }
  .card.av .av-stats { border-top: 0; border-left: 1px solid var(--line); }
  .card.av .gear, .card.av .av-foot, .card.av .av-pfp { border-left: 1px solid var(--line); }
  .av-tabs { flex-wrap: wrap; }

  .a-collection .grid2 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .rail { margin: 0; padding-left: 0; padding-right: 0; }
  .a-collection .rail .rcard { flex-basis: 160px; }
  .badges { grid-template-columns: 1fr 1fr; }
  .dash:not(:has(.a-sanga)) .badges { grid-template-columns: repeat(4, 1fr); }
  .foot { margin-top: 56px; }

  /* leaderboard: boards · list · your positions */
  .lb-page { margin-top: 32px !important; }
  .lbwrap { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
  .seg.lb { display: flex; flex-direction: column; border: 0; border-left: 1px solid var(--line-2); overflow: visible; margin: 0; position: sticky; top: 96px; }
  .seg.lb button { justify-content: space-between; height: 48px; padding: 0 16px; text-align: left; font-size: 11px; letter-spacing: .14em; }
  .seg.lb button.on { background: transparent; color: var(--ink); box-shadow: inset 2px 0 0 var(--tier); }
  .seg.lb button i { font-size: 11px; opacity: 1; color: var(--tier); }
  .lb-head { display: grid; border-bottom: 1px solid var(--line-2); padding: 0 16px 10px; }
  .lb-main .row { grid-template-columns: 48px 40px minmax(0, 1fr) 110px; padding: 14px 16px; }
  .lb-main .row .ini { width: 40px; height: 40px; }
  .lb-main .row .tchip { text-align: right; }
  .lb-head .label:last-child { text-align: right; }
  .row.you { margin: 0; padding-left: 16px; padding-right: 16px; }
  .lb-you { display: block; position: sticky; top: 96px; }
  .lb-you .lby { cursor: pointer; }

  /* team: queue left, tools right */
  .team-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .tg-side > .sec-h:first-child { margin-top: 0; }

  /* account: a drawer from the right */
  .sheet { left: auto; right: 0; top: 0; bottom: 0; width: 440px; max-width: none; max-height: none; margin: 0; border-top: 0; border-left: 1px solid var(--line-2);
    transform: translateX(100%); padding: 24px 28px 32px; }
  .sheet.on { transform: none; }
  .grab { display: none; }
  .toast { left: auto; right: 32px; bottom: 32px; transform: translateY(20px); width: 380px; }
  .toast.on { transform: none; }

  /* sign-in: tier ladder art beside the form */
  .auth-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
  .auth-art { display: flex; align-items: center; padding: 64px; border-right: 1px solid var(--line);
    background: radial-gradient(80% 60% at 20% 30%, color-mix(in srgb, var(--orange) 10%, transparent), transparent 70%); }
  .aa-in { display: grid; gap: 4px; }
  .aa-in .label { margin-bottom: 18px; }
  .aa-tier { font: italic 700 clamp(64px, 7vw, 108px)/.9 var(--f-head); text-transform: uppercase; opacity: calc(1 - var(--i) * .18); }
  .aa-in .small { margin-top: 24px; max-width: 34ch; }
  .auth { margin: 0 auto; max-width: 460px; width: 100%; }
  .reveal { max-width: 640px; }
  .reveal .tierword { font-size: 128px; }
}
.auth-art { display: none; }
@media (min-width: 1080px) { .auth-art { display: flex; } }
@media (min-width: 1440px) { :root { --max: 1320px; } }

/* ===== v2.3 · key card: perk tiles, pending steps ===== */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 10px; }
.ptile { border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--line-2)); background: var(--bg); padding: 12px 10px; display: grid; gap: 6px; justify-items: start; min-width: 0; }
.ptile.locked { border-color: var(--line); opacity: .55; }
.pt-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); overflow: hidden; }
.pt-mark svg { width: 24px; height: 24px; }
.pt-mark img { width: 100%; height: 100%; object-fit: cover; }
.pt-t { font: 600 13px/1.2 var(--f-disp); }
.pt-s { font: 500 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tier); }
.ptile.locked .pt-s { color: var(--mute); }
.kc-inline { color: var(--ink); font-size: 12px; }
.ben-note { margin: 4px 0 2px; }
.kc-url.pending { background: transparent; border-style: dashed; padding: 10px 12px; }
.kc-url.pending .mono { color: var(--ink-2); }
.ksteps { list-style: none; display: grid; gap: 0; margin: 4px 0 18px; }
.kst { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 8px 0; position: relative; }
.kst i { width: 9px; height: 9px; margin: 5px 0 0 4px; border: 1.5px solid var(--line-2); transform: rotate(45deg); background: var(--bg); position: relative; z-index: 1; }
.kst:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: -6px; width: 1px; background: var(--line-2); }
.kst.done i { background: var(--ok); border-color: var(--ok); }
.kst.cur i { border-color: var(--tier); background: var(--tier); animation: sanpulse 1.6s ease-in-out infinite; }
.kst .t { font: 600 14px/1.3 var(--f-disp); }
.kst.up .t { color: var(--dim); }
.kst .s { font-size: 12.5px; color: var(--dim); }
.keycard { display: flex; flex-direction: column; }
.keycard .kc-comm { margin-top: auto; padding-top: 14px; }
.keycard > .kc-gives { margin-bottom: 14px; }
@media (max-width: 520px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .kst.cur i { animation: none; } }
@media (min-width: 1080px) {
  .ksteps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 18px; }
  .kst { grid-template-columns: 1fr; padding: 14px 0 0; border-top: 1px solid var(--line-2); }
  .kst.done { border-top-color: var(--ok); }
  .kst.cur { border-top-color: var(--tier); }
  .kst i { position: absolute; top: -5px; left: 0; margin: 0; }
  .kst:not(:last-child)::before { display: none; }
}

/* ===== v3 · compact page: expandables, one benefits list, simpler leaderboard, team tabs ===== */
/* toggles */
.tog { display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0; min-height: 32px; }
.tog:hover { color: var(--ink); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.chev.up { transform: rotate(-135deg) translateY(-1px); }
.sec-h .tog { padding: 0; min-height: 0; }
/* compact status card */
.hero-c .hero { padding: 18px 20px 16px; }
.hc-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; position: relative; margin-top: 10px; }
.hero-c .tierword { font-size: clamp(48px, 14vw, 64px); margin: 0; line-height: .9; }
.hc-pts { display: grid; justify-items: end; gap: 4px; padding-bottom: 4px; }
.hc-pts b { font: 600 26px/1 var(--f-mono); }
.hero-c .why { margin-top: 10px; font-size: 13.5px; }
.hero-c .progress { margin-top: 16px; }
.hero-c .next { padding: 12px 20px; }
/* status points */
.pcats:not(.open) .pcat { padding: 11px 0; }
.pcats:not(.open) .pc-bar { margin: 8px 0 0; }
.pc-more { font-size: 12.5px; color: var(--tier); margin-top: 8px; }
/* benefits */
.btag { display: inline-block; font: 600 8.5px/1 var(--f-mono); letter-spacing: .12em; padding: 3px 5px; border: 1px solid; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }
.btag.key { color: var(--tier); border-color: color-mix(in srgb, var(--tier) 55%, transparent); }
.btag.you { color: var(--ink-2); border-color: var(--line-2); }
.ben-foot .btag { margin: 0 4px 0 0; }
.ben-foot { margin-top: 16px; line-height: 1.9; }
.sub-l { display: block; margin: 14px 0 2px; }
.ben-group > .tog { margin-top: 2px; }
/* SAN Key card */
.kc-strip { margin: 2px 0 12px; }
.kstrip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kperk { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 6px; border: 1px solid color-mix(in srgb, var(--tier) 45%, var(--line-2)); background: var(--bg); font: 600 12px var(--f-disp); }
.kperk i { width: 20px; height: 20px; display: grid; place-items: center; overflow: hidden; color: var(--ink); }
.kperk i svg { width: 16px; height: 16px; }
.kperk i img { width: 100%; height: 100%; object-fit: cover; }
.kc-btns { display: flex; gap: 6px; }
.keycard .kc-comm { margin-top: 2px; }
.ksteps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; margin: 4px 0 16px !important; }
.kst { grid-template-columns: 1fr !important; padding: 12px 0 0 !important; border-top: 1px solid var(--line-2); }
.kst.done { border-top-color: var(--ok); } .kst.cur { border-top-color: var(--tier); }
.kst i { position: absolute; top: -5px; left: 0; margin: 0 !important; }
.kst::before { display: none !important; }
.kst .t { font-size: 12.5px; }
/* discord */
.dc-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; }
.card .dc-row + .tog { margin-top: 10px; }
.dc-row .uico, .dc-row .dc-art { width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; }
.dc-row .uico svg { width: 18px; height: 18px; }
.dc-row .t { font: 600 15px var(--f-disp); }
.dc-art img.role-art { width: 30px; height: 30px; object-fit: contain; }
.dc-ladder { margin-top: 6px; border-top: 1px solid var(--line); }
/* claimables */
.claim-empty { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; padding: 14px 16px; }
.claim-empty .uico { color: var(--dim); }
.claim-empty .t { font: 600 14px var(--f-disp); color: var(--ink-2); }
/* badges row */
.badge-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.badge-row::-webkit-scrollbar { display: none; }
.br-item { flex: 0 0 64px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.br-n { font: 500 9px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.br-more { flex: 0 0 48px; height: 48px; border: 1px dashed var(--line-2); font: 600 12px var(--f-mono); color: var(--ink-2); align-self: start; }
/* holders summary */
.sb-sum { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.ben-group + .sb-sum { margin-top: 10px; }
.sb-sum .chips { margin: 10px 0 4px; }
.sb-sum .chip { padding: 5px 8px; font-size: 10.5px; }
/* leaderboard */
.lb-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 6px; flex-wrap: wrap; }
.lb-pick { display: grid; gap: 6px; min-width: 200px; }
.lb-pick .input { height: 44px; font-size: 14px; }
.lb-intro { margin-bottom: 18px; }
.lb-you { display: block; margin-bottom: 18px; }
.lby-main { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 10px 0 6px; }
.lby-main b { font: 600 34px/1 var(--f-mono); color: var(--tier); }
.lby-main .t { font: 600 14px var(--f-disp); }
.row.pts { grid-template-columns: 34px 34px minmax(0, 1fr) auto auto; }
.rpts { font: 600 13px var(--f-mono); text-align: right; min-width: 52px; }
.lb-head { display: none !important; }
/* team */
.team-tabs { overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; }
.team-tabs button { white-space: nowrap; padding: 0 12px; }
.team-tabs button i { font-style: normal; color: var(--orange); margin-left: 4px; }
.tt-body .sec-h[style] { margin-top: 0 !important; }
.tt-body > div > .sec-h:first-child { margin-top: 0; }

@media (min-width: 1080px) {
  .hero-c .hero { padding: 26px 30px 22px; justify-content: space-between; }
  .hero-c .tierword { font-size: clamp(64px, 6vw, 88px); }
  .hc-pts b { font-size: 40px; }
  .hero-c .next { padding: 16px 30px; }
  .lb-head { display: grid !important; }
  .lbwrap { grid-template-columns: minmax(0, 1fr) 300px !important; }
  .lb-you { order: 2; position: sticky; top: 96px; margin: 0; }
  .lb-main { order: 1; }
  .lb-main .row.pts { grid-template-columns: 48px 40px minmax(0, 1fr) 110px 110px; }
  .lb-head.pts .label:nth-last-child(2), .lb-head .label:last-child { text-align: right; }
  .seg.lb { display: none; }
  .tt-body.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .tt-body { max-width: 1100px; }
  .team-tabs { display: inline-grid; grid-auto-columns: minmax(150px, auto); }
  .badge-row { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 1079px) { .ben .t .btag { display: table; margin: 5px 0 3px; } }
@media (min-width: 1080px) { .card.alloc .al-img.dark { display: none; } }

/* ===== v3.1 · gear images, Origins grid, holder level tags ===== */
.gear .tog { margin: 8px 0 2px; }
.gear-row.img { grid-template-columns: 44px 1fr auto; align-items: center; }
.g-img { width: 44px; height: 44px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.g-img img { width: 100%; height: 100%; object-fit: cover; }
.g-img svg { width: 18px; color: var(--mute); }
.btag.lvl { color: var(--dim); border-color: var(--line-2); }
.perk.locked .btag.lvl { color: var(--mute); }
.origin-card { margin-top: 12px; }
.origin-card .origin { margin: 0; border: 0; background: none; }
.pips { display: inline-flex; gap: 4px; margin-top: 8px; }
.pips i { width: 8px; height: 8px; border: 1px solid var(--line-2); transform: rotate(45deg); }
.pips i.on { background: var(--tier); border-color: var(--tier); }
.og-tog { padding: 0 14px 10px; }
.og-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 4px 14px 16px; }
.og { display: grid; gap: 4px; justify-items: start; }
.og-img { width: 100%; aspect-ratio: 1; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.og-img img { width: 100%; height: 100%; object-fit: cover; }
.og-id { font: 600 11px var(--f-mono); }
.og-lv { font: 500 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.og-lv.sb { color: var(--tier); }
.og .pips { margin-top: 0; }

/* v3.2 audit: zoom small product shots (SANCAST sits small in its frame) */
.zm { display: block; width: 100%; height: 100%; overflow: hidden; }
.zm img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }

/* v3.3 holder perks: trait perks group + Origin trait tags */
.holders .hp-sub { display: block; margin: 6px 0 2px; color: var(--dim); }
.holders .hp-sub + .perk { border-top: 0; }
.holders .perk .btn.sm { align-self: center; }
.og-trait { display: block; margin-top: 4px; font: 500 9px var(--f-mono); letter-spacing: .14em; color: var(--orange); }
.lvl-units { margin: 4px 0 6px; }
.grid4f { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.hl-blk { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hl-blk:first-child { padding-top: 0; }
.hl-blk .small { margin-top: 4px; }

.og-trait.dim { color: var(--dim); }

/* v3.6 holder perks: ordered by state, compact rows, your numbers on top */
.hp-stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 14px; }
.hp-stat { flex: 1 1 140px; background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.hp-stat b { font: 600 22px/1.1 var(--f-mono); color: var(--ink); }
.hp-stat .label { font-size: 9px; }
.hp-stat .small { color: var(--dim); font-size: 12px; }
.hp-sec { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 2px; }
.hp-sec:first-of-type { margin-top: 4px; }
.hp-sec .label { color: var(--dim); }
.hp-sec .tog { margin: 0; }
.hp-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.hp-sec + .hp-row { border-top: 0; }
.hp-row:hover .t { color: var(--ink); }
.hp-row .t { font: 500 14px/1.35 var(--f-text); color: var(--ink-2, var(--ink)); }
.hp-row .s { margin-top: 4px; font-size: 13px; color: var(--dim); line-height: 1.45; }
.hp-row.locked { opacity: .45; }
.hp-row .chev { justify-self: end; }
.btag.trait { color: var(--orange); border-color: rgba(255, 85, 0, .45); }
.sp-stats { margin-top: 18px; }
.sp-card { padding: 0 16px; }
.sp-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) 70px 70px 80px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.sp-row:first-child { border-top: 0; }
.sp-head { padding: 10px 0 8px; }
.sp-head .label { font-size: 9px; color: var(--dim); }
.sp-row .nm { font: 500 14px var(--f-text); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-mail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-n { font: 600 14px var(--f-mono); text-align: right; }
.sp-head .label:nth-child(n+3) { text-align: right; }
@media (max-width: 719px) {
  .sp-row { grid-template-columns: minmax(0, 1fr) 54px 54px 60px; }
  .sp-row > :nth-child(2) { display: none; }
}

/* ===== STATUS UI v4 · membership card, SAN Key, unlocks, compact points, next tier ===== */
/* layout: phones stack in reading order; desktop splits into two columns */
.dash2-top { display: flex; flex-direction: column; }
.dash2-top .col { display: contents; }
.a-card { order: 1; } .a-unlocks { order: 2; } .a-perks { order: 3; } .a-discord { order: 4; } .a-points { order: 5; } .a-next { order: 6; } .a-badges { order: 7; }
/* membership card */
.mcard { background: var(--surface); border: 1px solid var(--line); position: relative; margin-top: 4px; }
.mc-face { position: relative; padding: 14px 18px 14px; overflow: hidden; }
.mc-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-top .pill { flex: none; }
.mc-main { position: relative; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.mc-main .tierword { font: italic 700 clamp(42px, 13vw, 60px)/.9 var(--f-head); text-transform: uppercase; color: var(--tier); white-space: nowrap; }
.mc-pts { display: flex; align-items: baseline; gap: 10px; }
.mc-pts b { font: 600 20px/1 var(--f-mono); color: var(--ink); }
.mcard .why { position: relative; color: var(--ink-2); font-size: 13.5px; margin-top: 8px; max-width: 44ch; }
.mcard .progress { margin-top: 12px; }
/* SAN Key zone: the card's lower half */
.kz { position: relative; border-top: 1px solid var(--line-2); padding: 14px 18px 18px; background: color-mix(in srgb, var(--tier) 5%, var(--surface-2)); }
.kz-claim { background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 10%, var(--surface-2)), var(--surface-2) 70%); }
.kz-live { background: color-mix(in srgb, var(--tier) 8%, var(--surface-2)); }
.mk-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mk-st { display: inline-flex; align-items: center; gap: 8px; font: 600 10px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.mk-st i { width: 9px; height: 9px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: currentColor; flex: none; }
.mk-st.off i { width: 7px; height: 7px; clip-path: none; transform: rotate(45deg); background: transparent; border: 1.5px solid currentColor; }
.mk-st.on { color: var(--ok); }
.mk-st.wait { color: var(--tier); }
.mk-st.wait i { animation: sanpulse 1.6s ease-in-out infinite; }
.mk-st.bad { color: var(--orange); }
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mk-url { font: 500 17px/1.3 var(--f-mono); color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.mk-url.dim { color: var(--ink-2); }
.kz-title { font: 600 22px/1.15 var(--f-disp); margin: 8px 0 4px; letter-spacing: .005em; }
.kz-lede { color: var(--ink-2); font-size: 14px; line-height: 1.45; max-width: 54ch; }
.kz-grid { display: grid; gap: 16px; margin-top: 12px; }
.kz-act { display: grid; gap: 8px; align-content: start; }
.kz-url { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 1px dashed color-mix(in srgb, var(--tier) 60%, var(--line-2)); background: var(--bg); }
.kz-url .mono { font-size: 14.5px; }
.kz-url .dim { color: var(--mute); }
.kz-url.ghost { height: 34px; padding: 0 1px; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--tier) 55%, var(--line-2)); background: transparent; }
.kz-url.ghost .mono { font-size: 15px; letter-spacing: .01em; }
.kz-url.kc-pre { padding: 0; }
.kz-url.kc-pre > .mono { padding-left: 12px; color: var(--dim); }
.kz-url .input { height: 42px; font-size: 14.5px; border: 0; background: transparent; }
.kz-act .btn.primary { height: 52px; }
.kz-note { color: var(--mute); font-size: 12px; }
.kz-what { display: grid; gap: 6px; align-content: start; }
.kz-vals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kv-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv-ic { width: 34px; height: 34px; border: 1px solid color-mix(in srgb, var(--tier) 55%, var(--line-2)); background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.kv-ic svg { width: 17px; height: 17px; color: var(--ink); }
.kv-ic img, .kv-ic .zm { width: 100%; height: 100%; object-fit: cover; }
.kv-t b { display: block; font: 600 14px/1.25 var(--f-disp); }
.kv-t span { display: block; font-size: 12.5px; color: var(--dim); }
.kv-tag { font: 600 9.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tier); white-space: nowrap; }
.kz-up { margin-top: 6px; color: var(--dim); }
.kz-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--tier) 55%, var(--line-2)); background: var(--bg); text-decoration: none; }
.kz-wait .label { color: var(--tier); }
.kz-wait-t { font: 600 13px var(--f-disp); color: var(--ink); }
.kz-p { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.kz-ready { margin-top: 14px; }
.kz-ready .kstrip { margin-top: 8px; }
.kstrip.dim .kperk { border-color: var(--line-2); color: var(--ink-2); }
.kz-slow { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.kz-slow.first { margin-top: 12px; padding-top: 0; border-top: 0; }
.kz-help { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; vertical-align: middle; }
.kz-help .link.sm { margin: 0; }
.kz-new { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ok) 50%, var(--line-2)); background: color-mix(in srgb, var(--ok) 7%, var(--bg)); font-size: 13.5px; color: var(--ink-2); }
.kz-new b { color: var(--ink); font-weight: 600; }
.kz-acc { margin-top: 14px; border-top: 1px solid var(--line-2); }
.kz-ar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kz-ar:last-child { border-bottom: 0; padding-bottom: 0; }
.kz-ar b { display: block; font: 600 14px var(--f-disp); }
.kz-ar .small { display: block; font-size: 12.5px; }
.link.sm { font-size: 10.5px; color: var(--ink); }
/* unlocks */
.ulist { display: grid; gap: 10px; }
.rw-alloc { margin-top: 10px; }
.ucard { display: grid; grid-template-columns: 112px minmax(0, 1fr); border: 1px solid color-mix(in srgb, var(--tier) 50%, var(--line-2)); background: var(--surface); }
.u-img { background: #E9E6E2; display: grid; place-items: center; overflow: hidden; min-height: 112px; }
.u-img img { width: 100%; height: 100%; object-fit: cover; }
.u-img svg { width: 28px; color: var(--dim); }
.u-body { padding: 12px 14px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.u-body > .label { font-size: 9.5px; }
.u-t { font: italic 700 24px/1 var(--f-head); text-transform: uppercase; margin-top: 2px; }
.u-src { font-size: 12.5px; color: var(--ink-2); }
.u-terms { font-size: 12.5px; color: var(--dim); }
.u-bar { height: 3px; background: var(--line-2); margin-top: 6px; }
.u-bar i { display: block; height: 100%; background: var(--tier); }
.u-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 6px; }
.u-st { font: 600 10px var(--f-mono); letter-spacing: .12em; }
.u-st.wait { color: var(--tier); } .u-st.on { color: var(--ok); } .u-st.off { color: var(--mute); }
.ucard.st-expired, .ucard.st-unavailable, .ucard.st-used { border-color: var(--line); }
.ucard.st-expired .u-img, .ucard.st-unavailable .u-img { opacity: .45; }
.ucard.st-expired .u-t, .ucard.st-unavailable .u-t { color: var(--dim); }
/* tier perks */
.rw .ben:first-child { padding-top: 0; }
.rw .ben:last-child { padding-bottom: 0; }
/* Discord */
.dcard { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); }
.dcard .uico { width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; }
.dcard .uico svg { width: 16px; height: 16px; }
.dcard .uico.art img { width: 28px; height: 28px; object-fit: contain; }
.mc-dc-t { min-width: 0; }
.dcard .t { font: 600 14px/1.3 var(--f-disp); }
.dcard .small { font-size: 12.5px; }
.dcard .tog { padding: 0; min-height: 0; }
.dc-lad { border: 1px solid var(--line); border-top: 0; padding: 0 16px 8px; background: var(--surface); }
.a-discord > .sec { margin-top: 24px; }
/* Status Points */
.prs { padding: 6px 20px 14px; }
.pr { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pr:first-child { border-top: 0; }
.pr-n { font: 600 14.5px var(--f-disp); }
.pr-bar { height: 3px; background: var(--line-2); }
.pr-bar i { display: block; height: 100%; background: var(--tier); }
.pr-v { font: 500 11.5px var(--f-mono); color: var(--dim); white-space: nowrap; text-align: right; min-width: 92px; }
.pr-v b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.pr.zero .pr-v b { color: var(--ink-2); }
.pr-d { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: -2px; }
.pr-foot { margin-top: 10px; font-size: 12px; color: var(--mute); }
.recent { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2); display: grid; }
.recent > .label { margin-bottom: 4px; }
.rc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13px; }
.rc-d { font: 500 10px var(--f-mono); letter-spacing: .1em; color: var(--mute); }
.rc-t { color: var(--ink-2); min-width: 0; }
.rc-p { font: 600 10px var(--f-mono); letter-spacing: .1em; color: var(--tier); white-space: nowrap; }
/* next tier and ways to get there */
.nt { padding: 6px 20px 14px; }
.nt-adds { padding: 10px 0 12px; }
.nt-adds .kstrip { margin-top: 8px; }
.nt-adds + .nt-adds { border-top: 1px solid var(--line); }
.ops { border-top: 1px solid var(--line-2); padding-top: 12px; }
.op { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.op:last-child { border-bottom: 0; }
.op-t b { display: block; font: 600 14px/1.3 var(--f-disp); }
.op-t span { display: block; font-size: 12.5px; color: var(--dim); }
.op-p { font: 600 13px var(--f-mono); color: var(--ink); white-space: nowrap; text-align: right; }
.op-p i { font-style: normal; font-weight: 500; font-size: 10px; color: var(--mute); }
.nt-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.nt-row .mark { width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.nt-row .mark img { width: 100%; height: 100%; object-fit: cover; }
.nt-row .mark .uico { width: 20px; height: 20px; }
.nt-row .t { font: 600 14.5px/1.3 var(--f-disp); }
.nt-row .s { font-size: 12.5px; color: var(--dim); }
.nt-tag { font: 500 9.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.nt-more { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.nt-more .sub-l { margin: 12px 0 0; }
.nt-more .nt-row:first-of-type { border-top: 0; }
.foot .stale { color: var(--warn, #D8B574); }
@media (max-width: 520px) { .op { grid-template-columns: minmax(0, 1fr) auto; } .op .link.sm { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 380px) { .pr { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; } .pr-v { min-width: 0; } .nt-tag { display: none; } }
@media (min-width: 720px) and (max-width: 1079px) {
  .mc-main { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .mc-pts { flex-direction: column; align-items: flex-end; gap: 6px; }
  .mc-pts b { font-size: 32px; }
  .kz-grid:has(> .kz-act) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "what act"; gap: 24px; align-items: start; }
  .kz-grid > .kz-act { grid-area: act; } .kz-grid > .kz-what { grid-area: what; }
}
@media (min-width: 1080px) {
  .dash2-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; margin-top: 24px; }
  .dash2-top .col { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
  .dash2-top .blk { align-self: stretch; }
  .dash2-top .blk > .sec, .dash-rest .blk > .sec { margin-top: 0; }
  .a-discord > .sec { margin-top: 0; }
  .mcard { margin-top: 0; }
  .mc-face { padding: 22px 32px 20px; }
  .mc-main { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
  .mc-main .tierword { font-size: clamp(64px, 5.4vw, 80px); }
  .mc-pts { flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 6px; }
  .mc-pts b { font-size: 36px; }
  .mcard .progress { margin-top: 18px; }
  .kz { padding: 22px 32px 24px; }
  .kz-title { font-size: 28px; margin-top: 10px; }
  .kz-lede { font-size: 14.5px; }
  .kz-grid { margin-top: 16px; }
  .kz-grid:has(> .kz-act) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "what act"; gap: 28px; align-items: start; }
  .kz-grid > .kz-act { grid-area: act; } .kz-grid > .kz-what { grid-area: what; }
  .kz-url.kc-pre { height: 50px; }
  .dcard { padding: 14px 20px; }
  .ucard { grid-template-columns: 148px minmax(0, 1fr); }
  .u-img { min-height: 148px; }
  .rw-alloc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-rest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 32px; align-items: start; margin-top: 44px; }
  .dash-rest:empty { display: none; }
  .dash-rest > .blk { grid-area: auto; }
  .dash-rest > .a-collection, .dash-rest > .a-sanga { grid-column: 1 / -1; }
  .dash-rest:not(:has(.a-holders)) > .a-avatars, .dash-rest:not(:has(.a-avatars)) > .a-holders { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .mk-st.wait i { animation: none; } }

/* ===== STATUS UI v4.1 · calmer membership area, Discord band, Signal Combat, collection, Soundscape ===== */
:root { --dc: #5865F2; --sc-panel: #0E0D12; --snd-bg: #0B0E13; --snd-line: #1D2530; }
/* sentence-case headings replace most mono eyebrows; mono stays for real metadata (states, counts, dates) */
.h2 { font: 600 20px/1.2 var(--f-disp); letter-spacing: .005em; color: var(--ink); }
.h3 { font: 600 15px/1.3 var(--f-disp); color: var(--ink); }
.cnt { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: var(--mute); white-space: nowrap; }
.sec-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; min-width: 0; }
.sec-hd .sec-r { margin-left: auto; display: inline-flex; }
.kz-rl { font: 500 12.5px/1.3 var(--f-text); color: var(--dim); }
.zone .blk > .sec { margin-top: 0; height: auto; display: block; }

/* zones */
.zone { display: flex; flex-direction: column; gap: 16px; }
.zm-l, .zm-r { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.z-member { margin-top: 4px; }
.z-member .blk { order: 0; align-self: stretch; }
.z-engage { margin-top: 40px; gap: 40px; }
.z-engage > .a-play { order: 1; } .z-engage > .a-collection { order: 2; } .z-engage > .a-badges { order: 3; }

/* membership card */
.mc-top { justify-content: flex-start; }
.mc-name { font: 600 14px/1.2 var(--f-disp); color: var(--ink-2); letter-spacing: .01em; }
.mc-bdg { display: inline-flex; gap: 4px; flex: none; }
.mc-top .pill { margin-left: auto; }
.mc-pts span { font-size: 12.5px; color: var(--dim); }
.kz-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kz-h .kz-title { margin: 0; }
.kz-claim .kz-grid { margin-top: 8px; }
.kz-what { gap: 10px; }
.kz-lede { margin: 0; }
.kz-what .kstrip { margin-top: 0; }
.kperk.next { border-style: dashed; border-color: var(--line-2); color: var(--dim); padding-left: 10px; background: transparent; }
.kz-comm { font-size: 12.5px; color: var(--ink-2); max-width: 52ch; }
.kz-ready { margin-top: 12px; display: grid; gap: 8px; }
.kz-ready .kstrip { margin-top: 0; }
.kz-live .kz-note { margin: 0; }
.kz-wait { margin-top: 10px; }

/* Discord band: its own row under the card, quieter than an unclaimed key */
.dband { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--dc) 38%, var(--line-2)); background: linear-gradient(90deg, color-mix(in srgb, var(--dc) 13%, var(--surface)), var(--surface) 62%); }
.dband.on { border-color: var(--line); background: var(--surface); }
.dc-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--dc); color: #fff; }
.dc-mark svg { width: 22px; height: 22px; }
.dc-mark.art { background: var(--surface-2); border: 1px solid var(--line-2); }
.dc-mark.art img { width: 34px; height: 34px; object-fit: contain; }
.dc-t { min-width: 0; display: grid; gap: 4px; }
.dband .t { font: 600 15.5px/1.25 var(--f-disp); }
.dband .s { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.dc-lv { font: 500 10.5px var(--f-mono); letter-spacing: .14em; color: var(--dim); margin-left: 6px; }
.dc-bar { flex: 0 0 96px; height: 3px; background: var(--line-2); position: relative; }
.dc-bar i { position: absolute; inset: 0 auto 0 0; background: var(--dc); }
.dc-next { font-size: 12.5px; color: var(--dim); }
.dc-btn { gap: 10px; border-color: color-mix(in srgb, var(--dc) 70%, var(--line-2)); }
.dc-btn svg { width: 15px; height: 15px; }
.dband .dc-lad { grid-column: 1 / -1; border: 0; padding: 0; margin-top: 2px; background: transparent; }

/* progress: points by category, then the next tier */
.pcard { background: var(--surface); border: 1px solid var(--line); padding: 16px 20px 18px; }
.pcard .sec-hd { margin-bottom: 4px; }
.pcard .prs { padding: 0; }
.pc-next { border-top: 1px solid var(--line-2); margin-top: 14px; padding-top: 14px; display: grid; gap: 10px; }
.pc-next .kstrip { margin-top: 0; }
.pc-top { color: var(--ink-2); font-size: 14px; }
.kperk .kk { display: inline-grid; place-items: center; margin-left: 2px; color: var(--tier); }
.kperk .kk svg { width: 12px; height: 12px; }
.nt-tag svg { width: 13px; height: 13px; color: var(--tier); }
.pcard .ops { border-top: 0; padding-top: 0; }
.pcard .recent { margin-top: 12px; }
.rc-p:empty { display: none; }

/* Signal Combat: the game's own panel, italic display and the five Wardens' colours */
.play .sc-inv { position: relative; display: grid; gap: 22px; padding: 22px 20px 24px; background: var(--sc-panel); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.sc-inv::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, #08C1FE, #FD038B 25%, #A9A5AE 50%, #CECF66 75%, #D2A27F); }
.sc-inv::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); pointer-events: none; }
.sc-copy { position: relative; z-index: 1; min-width: 0; }
.sc-k { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .18em; color: var(--ink-2); }
.sc-k em { font-style: normal; color: var(--ink); }
.sc-h { font: italic 700 clamp(32px, 8vw, 44px)/.92 var(--f-head); max-width: 15ch; text-transform: uppercase; letter-spacing: -.005em; margin: 10px 0 10px; }
.sc-p { color: var(--ink-2); font-size: 14px; max-width: 42ch; }
.sc-btn { position: relative; z-index: 1; justify-self: start; background: var(--ink); border-color: var(--ink); color: #0A0A0A; }
.sc-btn:hover { background: #fff; }
.sc-route { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 4px; }
.sc-route::before { content: ""; position: absolute; left: 16px; right: 16px; top: 15px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); }
.sc-node { position: relative; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.sc-node i { width: 22px; height: 22px; margin-top: 4px; transform: rotate(45deg); border: 1.5px solid var(--h); background: var(--sc-panel); box-shadow: 0 0 0 5px var(--sc-panel); }
.sc-node.won i { background: var(--h); box-shadow: 0 0 0 5px var(--sc-panel), 0 0 18px color-mix(in srgb, var(--h) 55%, transparent); }
.sc-node b { font: 600 9px/1 var(--f-mono); letter-spacing: .12em; color: var(--h); }
.sc-more { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 14px; background: var(--sc-panel); border: 1px solid rgba(255, 255, 255, .08); }
.sc-route.sm { gap: 6px; }
.sc-route.sm::before { display: none; }
.sc-route.sm .sc-node i { width: 10px; height: 10px; margin: 0; box-shadow: none; }
.sc-route.sm .sc-node b { display: none; }
.sc-more-t { flex: 1; min-width: 0; font: 600 14px var(--f-disp); }
.sc-more-t .sc-ft { display: block; font: 600 10.5px/1.4 var(--f-mono); letter-spacing: .18em; color: var(--ink-2); }
.play .ulist { gap: 10px; }
.u-offer { font: 600 12.5px/1.3 var(--f-mono); color: var(--ink); letter-spacing: .02em; }
.u-t { margin-top: 0; }

/* collection: photography first */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard2 { display: grid; grid-template-rows: auto 1fr; text-align: left; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pcard2:hover { border-color: var(--line-2); }
.pcard2 .ph { position: relative; aspect-ratio: 1; background: #ECEAE6; overflow: hidden; display: grid; place-items: center; }
.pcard2 .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard2 .ph.dark { background: var(--surface-2); }
.pcard2 .ph.dark svg { width: 32px; color: var(--dim); }
.pcard2 .pm { display: grid; gap: 3px; padding: 12px 14px 14px; min-width: 0; }
.pcard2 .n { font: 600 14.5px/1.25 var(--f-disp); overflow-wrap: anywhere; }
.pcard2 .s { font-size: 12.5px; color: var(--dim); }

/* badges */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.bt { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; min-width: 0; }
.bt .emb, .bt .emb.art { width: 52px; height: 52px; }
.bt-n { font: 500 12px/1.3 var(--f-text); color: var(--ink-2); overflow-wrap: anywhere; }
.bt-r { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.bsub { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.ach { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.ach i { position: absolute; inset: 9px; transform: rotate(45deg); border: 1.5px solid var(--h); background: color-mix(in srgb, var(--h) 16%, var(--sc-panel)); }
.ach b { position: relative; font: italic 700 15px/1 var(--f-head); color: var(--h); }

/* ===== Soundscape: a distinct on-chain area, full bleed ===== */
.z-sound { position: relative; display: block; margin-top: 64px; margin-inline: calc(50% - 50vw); background: var(--snd-bg); border-top: 1px solid var(--snd-line); border-bottom: 1px solid var(--snd-line); }
.z-sound::before { content: ""; position: absolute; inset: 0 0 auto; height: 460px; background: radial-gradient(60% 100% at 18% 0%, color-mix(in srgb, var(--fh) 15%, transparent), transparent 72%); pointer-events: none; }
.z-sound::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fh) 70%, transparent) 30%, transparent 80%); }
.ss-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 52px; }
.ss-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }
.ss-k { font: 600 10.5px/1 var(--f-mono); letter-spacing: .22em; color: var(--fh); }
.ss-h { font: italic 700 clamp(38px, 12vw, 92px)/.86 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; }
.ss-c { font: 500 12px/1.3 var(--f-mono); letter-spacing: .08em; color: var(--ink-2); }
.ss-grid { display: flex; flex-direction: column; gap: 36px; }
.z-sound .card, .z-sound .pad.holders { background: color-mix(in srgb, var(--snd-bg) 55%, var(--surface)); border-color: var(--snd-line); }
/* avatar with its equipment */
.av-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px; scrollbar-width: thin; }
.av-rail .av-tab { flex: 0 0 56px; width: 56px; height: 56px; border-color: var(--snd-line); opacity: .6; }
.av-rail .av-tab.on { opacity: 1; border-color: var(--fh); box-shadow: inset 0 0 0 1px var(--fh); }
.avc-main { display: grid; gap: 18px; }
.avc-art { position: relative; aspect-ratio: 1; background: #000; border: 1px solid var(--snd-line); overflow: hidden; }
.avc-art img { width: 100%; height: 100%; object-fit: cover; }
.avc-art .tag { position: absolute; left: 12px; top: 12px; background: rgba(10,10,10,.78); padding: 6px 9px; font: 500 10.5px var(--f-mono); letter-spacing: .14em; }
.avc-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
.avc-side .av-stats { border: 1px solid var(--snd-line); }
.avc-g { position: relative; display: grid; gap: 10px; }
.avc-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 18px; }
.acc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.acc > img, .acc > svg { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); border: 1px solid var(--snd-line); }
.acc { position: relative; outline: none; }
.acc.unb > img { border-style: dashed; border-color: #34404F; opacity: .82; }
.acc:hover > img, .acc:focus-visible > img { border-color: var(--fh); opacity: 1; }
.acc .qty { top: 3px; right: 3px; padding: 2px 4px; font-size: 9.5px; }
.acc-tip { display: none; position: absolute; z-index: 5; left: 0; bottom: calc(100% + 6px); width: max-content; max-width: 220px; padding: 8px 10px; background: #05070A; border: 1px solid var(--snd-line); gap: 2px; pointer-events: none; }
.acc-tip b { font: 600 13px var(--f-disp); color: var(--ink); }
.acc-tip span { font-size: 11.5px; color: var(--dim); }
.acc:hover .acc-tip, .acc:focus .acc-tip { display: grid; }
.acc-grid .acc:nth-child(6n) .acc-tip, .acc-grid .acc:nth-child(6n-1) .acc-tip { left: auto; right: 0; }
.avc-note { font-size: 12px; color: var(--mute); }
.avc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 18px; border-top: 1px solid var(--snd-line); padding-top: 12px; }
/* SANGA: cover-led, one volume per card, reader on demand */
.sga-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(124px, 150px); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sga-c { display: grid; gap: 8px; text-align: left; scroll-snap-align: start; min-width: 0; }
.sga-img { position: relative; aspect-ratio: 7 / 11; background: #111; border: 1px solid var(--snd-line); overflow: hidden; }
.sga-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ui-ease, ease); }
.sga-c:hover .sga-img img { transform: scale(1.035); }
.sga-c:hover .sga-img, .sga-c:focus-visible .sga-img { border-color: var(--fh); }
.sga-m { display: grid; gap: 2px; }
.sga-m b { font: 600 14px var(--f-disp); }
.sga-m span { font-size: 12px; color: var(--dim); text-transform: capitalize; }
.sga-rd { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
.sga-bg { position: absolute; inset: 0; background: rgba(5, 6, 9, .93); backdrop-filter: blur(6px); }
.sga-box { position: relative; width: min(560px, 100%); max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.sga-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sga-stage { min-height: 0; display: grid; place-items: center; }
.sga-stage img { max-height: min(72vh, 860px); width: auto; max-width: 100%; object-fit: contain; background: #111; }
.sga-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sga-thumbs { display: flex; gap: 6px; overflow-x: auto; justify-content: center; min-width: 0; }
.sga-th { flex: 0 0 34px; height: 52px; border: 1px solid var(--line-2); opacity: .5; overflow: hidden; }
.sga-th.on { opacity: 1; border-color: var(--ink); }
.sga-th img { width: 100%; height: 100%; object-fit: cover; }
.hp-more { margin-top: 10px; }
.ogs .origin { margin-top: 0; }

@media (max-width: 520px) {
  .dband.off { grid-template-columns: 44px minmax(0, 1fr); }
  .dband.off > .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .dband .s { flex-wrap: wrap; }
  .acc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .acc-grid .acc:nth-child(6n) .acc-tip, .acc-grid .acc:nth-child(6n-1) .acc-tip { left: 0; right: auto; }
  .acc-grid .acc:nth-child(5n) .acc-tip, .acc-grid .acc:nth-child(5n-1) .acc-tip { left: auto; right: 0; }
}
@media (min-width: 720px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .play .sc-inv { padding: 28px; }
  .sc-route { max-width: 560px; }
  .avc-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 1080px) {
  .z-member { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; margin-top: 24px; }
  .zm-l, .zm-r { gap: 20px; }
  .z-engage { margin-top: 56px; }
  .z-engage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "play coll" "bdg bdg"; gap: 48px 32px; align-items: start; }
  .z-engage > .a-play { grid-area: play; } .z-engage > .a-collection { grid-area: coll; } .z-engage > .a-badges { grid-area: bdg; }
  .z-engage:not(:has(> .a-collection)) { grid-template-areas: "play bdg"; }
  .z-engage:not(:has(> .a-collection)) .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .z-engage:not(:has(> .a-play)) { grid-template-areas: "coll coll" "bdg bdg"; }
  .z-engage:not(:has(> .a-play)) .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .z-engage .bgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dband { padding: 16px 20px; }
  .pcard { padding: 20px 24px 22px; }
  .play .sc-inv { padding: 30px 36px 32px; }
  .sc-node i { width: 30px; height: 30px; }
  .sc-route::before { top: 19px; }
  .z-sound { margin-top: 80px; }
  .ss-in { padding: 56px var(--gut) 64px; }
  .ss-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k k" "h c"; align-items: end; column-gap: 28px; margin-bottom: 36px; }
  .ss-k { grid-area: k; } .ss-h { grid-area: h; } .ss-c { grid-area: c; padding-bottom: 10px; }
  .ss-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "av hp" "av og" "sga sga" "swe swe"; gap: 40px 32px; align-items: start; }
  .ss-grid > .a-avatars { grid-area: av; } .ss-grid > .a-holders { grid-area: hp; } .ss-grid > .a-origins { grid-area: og; } .ss-grid > .a-sanga { grid-area: sga; } .ss-grid > .a-sanwear { grid-area: swe; }
  .ss-grid:not(:has(> .a-avatars)) { grid-template-areas: "hp og" "sga sga" "swe swe"; }
  .avc-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sga-rail { grid-auto-columns: 168px; }
}
@media (prefers-reduced-motion: reduce) { .sga-img img { transition: none; } }
.hp-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.holders > .hp-row:first-of-type + .hp-more, .hp-stats + .hp-more { border-top: 0; }
.hp-sum { font-size: 12.5px; color: var(--dim); }
.coll > .tog { margin-top: 10px; }
.sga-c.pg .sga-img::after { content: "PAGE"; position: absolute; left: 6px; bottom: 6px; font: 600 9px/1 var(--f-mono); letter-spacing: .14em; padding: 4px 5px; background: #F2EFEA; color: #0A0A0A; }
.sga-box.page .sga-stage img { background: #F2EFEA; }
.sga-box.page { width: min(820px, 100%); }

/* ===== v4.1.1 · Points hierarchy, Signal Combat route ===== */
/* Points: the breakdown reads first (bigger values, thicker bars), the next tier is a tile in that tier's colour,
   and ways to get there end in real buttons or a points value. */
.pcard .pr { padding: 11px 0; }
.pcard .pr-n { font-size: 14.5px; }
.pcard .pr-bar { height: 4px; }
.pcard .pr-v b { font-size: 14px; }
.pc-next { border-top: 0; margin-top: 10px; padding-top: 0; gap: 4px; }
.nt-unlock { display: grid; gap: 10px; padding: 14px 14px 14px; border: 1px solid color-mix(in srgb, var(--nt) 38%, var(--line-2)); background: linear-gradient(135deg, color-mix(in srgb, var(--nt) 11%, var(--surface)), var(--surface) 75%); }
.ntu-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ntu-t { font: 600 16px/1.2 var(--f-disp); color: var(--nt); }
.ntu-go { font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--ink-2); white-space: nowrap; }
.nt-unlock .kstrip { margin-top: 0; gap: 8px; }
.nt-unlock .kperk { height: 38px; padding: 0 12px 0 8px; border-color: color-mix(in srgb, var(--nt) 45%, var(--line-2)); background: var(--bg); font-size: 13.5px; }
.nt-unlock .kperk i { width: 24px; height: 24px; }
.nt-unlock .kperk .kk { color: var(--nt); }
.pcard .ops { margin-top: 6px; }
.pcard .op { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; }
.pcard .op:last-child { border-bottom: 1px solid var(--line); }
.pcard .op-t b { font-size: 14.5px; }
.op-btn { height: 36px; padding: 0 12px; gap: 10px; border-color: var(--ink-2); color: var(--ink); }
.op-btn:hover { background: var(--ink); color: #0A0A0A; border-color: var(--ink); }
.pcard .op-p { font: 600 13px/1 var(--f-mono); color: var(--nt, var(--tier)); padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--nt, var(--tier)) 40%, var(--line-2)); white-space: nowrap; }
.pcard .op-p i { color: var(--mute); }
.pcard .nt-more { border-top: 0; padding-top: 8px; margin-top: 0; }
@media (max-width: 520px) { .pcard .op { grid-template-columns: minmax(0, 1fr) auto; } .pcard .op .op-btn { grid-column: auto; } }

/* Signal Combat route: diamonds drawn with clip-path (box = shape, so labels never collide),
   five Wardens joined by the Road, then the boss stage after a dashed gap */
.sc-route { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 0; }
.sc-route::before { display: none; }
.sc-route ol { list-style: none; margin: 0; padding: 0; display: flex; position: relative; }
.sc-w { justify-content: space-between; }
.sc-w::before { content: ""; position: absolute; left: 13px; right: 13px; top: 13px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.3), rgba(255,255,255,.12)); }
.sc-route .sc-b { padding-left: 58px; }
.sc-b::before { content: ""; position: absolute; left: 10px; right: calc(100% - 52px); top: 13px; border-top: 1px dashed rgba(255,255,255,.28); }
.sc-node { position: relative; display: grid; justify-items: center; gap: 9px; min-width: 0; width: 26px; }
.sc-node i { position: relative; display: block; width: 26px; height: 26px; margin: 0; transform: none; border: 0; box-shadow: none; background: var(--h); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sc-node i::after { content: ""; position: absolute; inset: 2px; background: var(--sc-panel); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sc-node.won i { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--h) 60%, transparent)); }
.sc-node.won i::after { display: none; }
.sc-node b { font: 600 9px/1.1 var(--f-mono); letter-spacing: .1em; color: var(--h); white-space: nowrap; }
.sc-node.boss { width: 34px; }
.sc-node.boss i { width: 34px; height: 34px; margin-top: -4px; }
.sc-node.boss i::after { inset: 2px; }
.sc-node.boss i::before { content: ""; position: absolute; inset: 9px; z-index: 1; background: var(--h); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: .55; }
.sc-node.boss.won i::before { display: none; }
.sc-node.boss b { margin-top: -4px; }
/* phones: labels alternate above and below the Road so long names never touch */
@media (max-width: 560px) {
  .sc-route:not(.sm) { padding-top: 20px; }
  .sc-route:not(.sm) .sc-w .sc-node:nth-child(even) b { position: absolute; bottom: calc(100% + 7px); }
  .sc-route:not(.sm) .sc-w .sc-node:nth-child(even) { gap: 0; }
  .sc-route .sc-b { padding-left: 46px; }
  .sc-b::before { left: 8px; right: calc(100% - 42px); }
}
@media (min-width: 720px) { .sc-route { max-width: 600px; } }
@media (min-width: 1080px) { .sc-node:not(.boss) i { width: 28px; height: 28px; } .sc-node:not(.boss) { width: 28px; } .sc-w::before { top: 14px; } .sc-b::before { top: 14px; } }
/* compact row: dots only */
.sc-route.sm { display: flex; gap: 6px; align-items: center; }
.sc-route.sm ol { gap: 6px; align-items: center; }
.sc-route.sm .sc-w::before, .sc-route.sm .sc-b::before { display: none; }
.sc-route.sm .sc-b { padding-left: 4px; }
.sc-route.sm .sc-node, .sc-route.sm .sc-node.boss { width: auto; }
.sc-route.sm .sc-node i { width: 10px; height: 10px; margin: 0; }
.sc-route.sm .sc-node.boss i { width: 12px; height: 12px; }
.sc-route.sm .sc-node i::after { inset: 1.5px; }
.sc-route.sm .sc-node.boss i::before { inset: 3px; }
.sc-route.sm .sc-node b { display: none; }
.sc-k { color: var(--ink-2); }

/* 4.1.1 · SAN Keys at launch (manual): the application's commission box, and the team's SAN KEYS panel */
.kz-chk { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.kz-chk input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.input.sm { height: 40px; font-size: 13.5px; padding: 0 12px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.kq-body { display: block; }
.kq-lede { max-width: 72ch; margin-bottom: 18px; }
.kq { margin-bottom: 10px; display: grid; gap: 10px; }
.kq > .sub { margin-top: 0 !important; }
.kq-k { font-size: 15px; word-break: break-all; }
.kq-k .mono { color: var(--ink); }
.kq.k-closed, .kq.k-declined { opacity: .72; }
.kq-reason, .kq-note, .kq-hint, .kq-own { color: var(--ink-2); }
.kq-own { border-left: 2px solid var(--orange); padding-left: 10px; }
.kq-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kq-row > .input { flex: 1 1 200px; min-width: 0; width: auto; }
.kq-row.two { display: grid; grid-template-columns: 1fr 1fr; }
.kq-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 8px; align-items: end; }
.kq-f { display: grid; gap: 6px; min-width: 0; }
.kq-url { flex: 1 1 auto; min-width: 0; word-break: break-all; color: var(--ink); }
.kq-check { padding: 10px 12px; border: 1px dashed var(--line-2); }
.kq-hist { border-top: 1px solid var(--line); padding-top: 8px; }
.kq-ev { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: baseline; }
.kq-ev:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .kq-form { grid-template-columns: 1fr; }
  .kq-row.two { grid-template-columns: 1fr 1fr; }
}
.kq-person { padding: 10px 0; border-top: 1px solid var(--line); }
.kq-who { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kq-who .mono { overflow-wrap: anywhere; color: var(--ink); }
.kq-seen { color: var(--dim); font-size: 12px; }
.al-row .name { color: var(--orange); }
.al-where { margin: 10px 0 14px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal { margin-top: 10px; }
