/* ============================================================
   NexorV — blue / purple / blue on black
   ============================================================ */
:root {
  --bg: #04050a;
  --bg-2: #080a14;
  --card: rgba(14, 16, 30, 0.72);
  --card-solid: #0c0e1b;
  --line: rgba(120, 130, 255, 0.10);
  --line-2: rgba(140, 150, 255, 0.20);
  --text: #eef0ff;
  --muted: #8a90b4;
  --dim: #565c80;
  --blue: #3d7bff;
  --blue-2: #5ab0ff;
  --purple: #8b5cf6;
  --purple-2: #b07bff;
  --grad: linear-gradient(90deg, #3d7bff 0%, #8b5cf6 50%, #3d7bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(61,123,255,.18), rgba(139,92,246,.18));
  --good: #34d399;
  --bad: #f87171;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --accent: #8b5cf6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
body.ready { opacity: 1; }
body.leaving { opacity: 0; transition-duration: .22s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.display { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; }

/* ---------- animated backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb.a { width: 560px; height: 560px; background: #1f3cff; top: -220px; left: -160px; opacity: .28; }
.orb.b { width: 520px; height: 520px; background: #7c3aed; bottom: -240px; right: -140px; opacity: .25; animation-delay: -6s; }
.orb.c { width: 380px; height: 380px; background: #2563eb; top: 40%; left: 55%; opacity: .12; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 70px) scale(.95); }
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,130,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,130,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.grain {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ---------- gradient text ---------- */
.grad-text {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- typing caret ---------- */
.typing::after {
  content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  vertical-align: -0.12em; background: var(--purple-2); border-radius: 2px;
  animation: caret 1s steps(1) infinite;
}
.typed-done::after { animation: caret 1s steps(1) 3, fadeout .3s 3s forwards; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; width: 0; margin: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- cards ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(14px);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s;
  overflow: hidden;
}
.card.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 100, 255, .14), transparent 45%);
  transition: opacity .3s;
}
.card.glow:hover::before { opacity: 1; }
a.card:hover, .card.link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card.featured { border-color: rgba(120, 110, 255, .32);
  box-shadow: 0 0 0 1px rgba(120,110,255,.08) inset, 0 20px 60px -30px rgba(100, 90, 255, .5); }

/* gradient border helper */
.gborder { position: relative; }
.gborder::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(61,123,255,.6), rgba(139,92,246,.5), rgba(61,123,255,.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- avatars ---------- */
.avatar { position: relative; flex: none; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #2d4bff, #7c3aed); display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .initials { font-weight: 700; font-size: .9em; color: #fff; letter-spacing: .02em; }
.avatar.sq { border-radius: 14px; }
.avatar-ring { position: relative; border-radius: 50%; padding: 3px; }
.avatar-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #3d7bff, #8b5cf6, #3d7bff, #8b5cf6, #3d7bff);
  animation: spin 6s linear infinite;
}
.avatar-ring::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(110, 90, 255, .45), transparent 65%);
  animation: pulse 3.5s ease-in-out infinite;
}
.avatar-ring .avatar { border: 3px solid var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .55; transform: scale(.94); } }

/* ---------- labels / chips ---------- */
.label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; color: var(--muted); font-weight: 500;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge.rank { color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); }
.badge.you { color: #86efac; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.35); }
.badge.live { color: #fca5a5; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f87171;
  animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  transition: all .25s var(--ease);
}
.btn:hover { background: rgba(255,255,255,.06); border-color: rgba(150,150,255,.35); }
.btn.primary {
  border: 0; color: #fff; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(100, 90, 255, .7);
}
.btn.primary:hover { background-position: 100% 0; transform: translateY(-1px);
  box-shadow: 0 14px 40px -10px rgba(100, 90, 255, .9); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 22px;
  background: rgba(4,5,10,.7); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.nav .left, .nav .right { display: flex; align-items: center; gap: 12px; flex: 1; }
.nav .right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.brand svg { width: 26px; height: 26px; }
.userpill { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); font-size: 13px; font-weight: 600; }
.userpill .avatar { width: 28px; height: 28px; }
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 12px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 32px;
  padding: 0 14px; border-radius: 9px; font-size: 13px; color: var(--muted); font-weight: 500; transition: color .25s; white-space: nowrap; }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; }
.tabs .indicator { position: absolute; z-index: 0; top: 4px; height: 32px; border-radius: 9px;
  background: var(--grad-soft); border: 1px solid rgba(130,120,255,.35);
  box-shadow: 0 6px 24px -10px rgba(110,90,255,.8);
  transition: left .45s var(--ease), width .45s var(--ease); }

/* ---------- layout ---------- */
.wrap { width: min(920px, calc(100% - 32px)); margin: 0 auto; }
.wrap.wide { width: min(1100px, calc(100% - 32px)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-variant-numeric: tabular-nums; }

/* ============================================================
   LOGIN
   ============================================================ */
.login { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.login-box { width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo-big { width: 76px; height: 76px; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(100,90,255,.6));
  animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.login h1 { font-size: 40px; font-weight: 700; line-height: 1.05; min-height: 1.1em; }
.login p.sub { margin-top: 12px; color: var(--muted); font-size: 15px; min-height: 1.4em; }
.login .discord-btn { margin-top: 34px; height: 50px; width: 100%; font-size: 15px; border-radius: 14px; }
.discord-btn svg { width: 22px; height: 22px; }
.login .fine { margin-top: 16px; font-size: 12px; color: var(--dim); }
.login .error { margin-top: 18px; padding: 10px 14px; border-radius: 12px; font-size: 13px;
  color: #fecaca; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); }
.login-feats { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   HUB
   ============================================================ */
.hub { padding: 64px 0 60px; }
.hub-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 44px; }
.hub-head .avatar { width: 84px; height: 84px; font-size: 26px; }
.hub-head h1 { margin-top: 22px; font-size: 27px; font-weight: 700; min-height: 1.3em; }
.hub-head p { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 1.4em; }
.hub-col { width: min(440px, 100%); margin: 0 auto; display: flex; flex-direction: column; }
.hub-col .label { margin: 26px 4px 10px; }
.hub-col .label:first-child { margin-top: 0; }
.hub-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.hub-card .icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: #0a0c18; border: 1px solid var(--line); }
.hub-card .icon svg { width: 26px; height: 26px; }
.hub-card .avatar { width: 46px; height: 46px; border-radius: 12px; }
.hub-card .t { font-weight: 650; font-size: 14.5px; }
.hub-card .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hub-card .chev { margin-left: auto; color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.hub-card:hover .chev { transform: translateX(4px); color: var(--purple-2); }
.mini-badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 7px;
  display: grid; place-items: center; font-size: 11px; background: #0b0d1a; border: 1px solid var(--line-2); }
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted);
}
.empty svg { width: 24px; height: 24px; color: var(--dim); margin-bottom: 4px; }
.empty .t { font-size: 14px; color: var(--text); opacity: .85; }
.empty .s { font-size: 12px; color: var(--dim); }
.signout { margin: 36px auto 0; }
.team-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.team-card .crest { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 40%, #000)); }

/* ============================================================
   PROFILE
   ============================================================ */
.page { padding: 28px 0 80px; }
.hero { padding: 28px; --accent-c: var(--accent); }
.hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-c) 30%, transparent), transparent 65%);
  pointer-events: none; }
.hero-top { display: flex; gap: 22px; align-items: flex-start; position: relative; z-index: 1; }
.hero .avatar { width: 96px; height: 96px; border-radius: 22px; font-size: 30px;
  box-shadow: 0 0 0 1px rgba(150,140,255,.35), 0 18px 50px -18px color-mix(in srgb, var(--accent-c) 80%, transparent); }
.hero h1 { font-size: 30px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.hero .chip.team { color: #c7d2fe; border-color: color-mix(in srgb, var(--tc) 50%, transparent);
  background: color-mix(in srgb, var(--tc) 12%, transparent); }
.hero-stats { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.hero-stats .big { font-size: 38px; font-weight: 700; line-height: 1; }
.hero-stats .val { font-size: 21px; font-weight: 700; }
.progress { margin-top: 30px; position: relative; z-index: 1; }
.progress .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 12.5px; }
.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; position: relative; }
.bar > span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: var(--grad); background-size: 200% 100%; transition: width 1.6s var(--ease);
  animation: shimmer 4s linear infinite; box-shadow: 0 0 18px rgba(110,90,255,.7); }
.bar.thin { height: 5px; }
.progress .ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--dim); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 18px; }
.stat .top { display: flex; justify-content: space-between; align-items: center; }
.stat .top svg { width: 17px; height: 17px; color: var(--purple-2); opacity: .8; }
.stat .n { font-size: 30px; font-weight: 700; margin-top: 12px; }
.stat .s { font-size: 11.5px; color: var(--dim); margin-top: 4px; }

.section { padding: 22px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.section-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); }
.comp-row { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.035); }
.comp-row:last-child { border-bottom: 0; }
.comp-row .head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 10px; gap: 10px; }
.comp-row .nums { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.comp-row .nums b { color: var(--text); font-weight: 600; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bio-text { font-size: 15px; line-height: 1.6; color: #d9dcf5; }
.music { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.025); border: 1px solid var(--line); transition: border-color .25s; }
.music:hover { border-color: var(--line-2); }
.music .disc { width: 46px; height: 46px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(#1a1d33, #3d7bff, #1a1d33, #8b5cf6, #1a1d33); animation: spin 4s linear infinite; }
.music .disc::after { content: ""; position: absolute; inset: 17px; border-radius: 50%; background: var(--bg); }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 16px; margin-left: auto; }
.eq i { width: 3px; background: var(--grad); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }

.panel { display: none; }
.panel.active { display: flex; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); padding: 0 10px 12px; }
.table td { padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.04); }
.table th.n, .table td.n { text-align: right; width: 54px; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(120,110,255,.05); }
.table .pos { width: 34px; color: var(--muted); font-weight: 600; }
.table tr.top .pos { color: var(--blue-2); }
.table td.pts { font-weight: 700; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(2,3,8,.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal { width: min(500px, 100%); padding: 26px; transform: translateY(16px) scale(.98); transition: transform .4s var(--ease);
  max-height: calc(100vh - 32px); overflow: auto; }
.modal-bg.open .modal { transform: none; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; font: inherit; font-size: 14px; color: var(--text);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: 86px; padding: 11px 13px; resize: none; line-height: 1.5; }
.input:focus { border-color: rgba(139,92,246,.7); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }
select.input option { background: #0c0e1b; }
.pos-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pos-grid button { height: 36px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: all .2s; }
.pos-grid button:hover { color: var(--text); border-color: var(--line-2); }
.pos-grid button.on { color: #fff; background: var(--grad-soft); border-color: rgba(139,92,246,.6); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; position: relative;
  transition: transform .2s; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; }
.swatches button:hover { transform: scale(1.12); }
.swatches button.on { border-color: #fff; }
.swatches button.auto { background: conic-gradient(#cd7f32, #c0c0c0, #ffd700, #00bfff, #ff00ff, #cd7f32); }
.err { font-size: 12px; color: var(--bad); min-height: 0; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

.toast { position: fixed; bottom: 24px; left: 50%; z-index: 60; transform: translate(-50%, 30px); opacity: 0;
  padding: 11px 16px; border-radius: 12px; font-size: 13.5px; background: #10132a; border: 1px solid var(--line-2);
  transition: all .4s var(--ease); box-shadow: 0 20px 50px -20px #000; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   MATCH CENTRE
   ============================================================ */
.centre-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 10px 0 24px; flex-wrap: wrap; }
.centre-head h1 { font-size: 44px; font-weight: 700; line-height: 1; min-height: 1em; }
.centre-head p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; transition: all .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #fff; background: var(--grad-soft); box-shadow: 0 0 0 1px rgba(139,92,246,.4) inset; }
.toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.match { padding: 16px 18px; }
.match .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-bottom: 14px; letter-spacing: .04em; }
.match .line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.match .side { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; min-width: 0; }
.match .side span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .side.away { flex-direction: row-reverse; text-align: right; }
.match .side.lose { color: var(--muted); font-weight: 500; }
.crest-sm { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff;
  background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 35%, #000)); }
.score { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; padding: 4px 14px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); letter-spacing: .04em; }
.score b { color: var(--dim); font-weight: 500; margin: 0 4px; }

.leader { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.leader:hover { background: rgba(120,110,255,.06); }
.leader .pos { width: 22px; font-weight: 700; color: var(--dim); font-size: 13px; text-align: center; }
.leader:nth-child(1) .pos { color: #ffd76a; } .leader:nth-child(2) .pos { color: #d5d9e6; } .leader:nth-child(3) .pos { color: #e2a36a; }
.leader .avatar { width: 34px; height: 34px; font-size: 12px; }
.leader .nm { font-weight: 600; font-size: 14px; }
.leader .sub { font-size: 11.5px; color: var(--dim); }
.leader .v { margin-left: auto; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; }
.leader.first { background: var(--grad-soft); border: 1px solid rgba(139,92,246,.25); padding: 14px; }
.leader.first .avatar { width: 44px; height: 44px; }
.leader.first .v { font-size: 26px; }

.feed-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.feed-item + .feed-item { border-top: 1px solid rgba(255,255,255,.04); }
.kind { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kind svg { width: 17px; height: 17px; }
.kind.sign { color: #6ee7b7; background: rgba(52,211,153,.1); }
.kind.transfer { color: #93c5fd; background: rgba(61,123,255,.12); }
.kind.loan { color: #c4b5fd; background: rgba(139,92,246,.12); }
.kind.release { color: #fca5a5; background: rgba(248,113,113,.1); }
.move { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.move svg { width: 12px; height: 12px; color: var(--dim); }
.fee { margin-left: auto; text-align: right; font-weight: 700; font-size: 14px; white-space: nowrap; }
.fee small { display: block; font-size: 11px; color: var(--dim); font-weight: 500; margin-top: 2px; }

.budget-row { display: grid; grid-template-columns: 180px 1fr 120px; align-items: center; gap: 14px; padding: 10px 0; }
.budget-row .nm { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.budget-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.budget-row .amt { text-align: right; font-weight: 700; font-size: 13.5px; }

.rosters { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.roster { padding: 16px; }
.roster .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.roster .pl { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 8px; font-size: 13px; transition: background .2s; }
.roster .pl:hover { background: rgba(120,110,255,.06); }
.roster .pl .avatar { width: 24px; height: 24px; font-size: 9px; }

.note { font-size: 12.5px; color: var(--muted); padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(139,92,246,.25); background: rgba(139,92,246,.06); line-height: 1.5; }
.note code { font-size: 12px; color: #c4b5fd; }

.big-err { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.big-err h1 { font-size: 96px; font-weight: 700; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav .tabs .tab span { display: none; }
  .nav .tabs .tab { padding: 0 11px; }
  .userpill .nm { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two, .results { grid-template-columns: 1fr; }
  .hero-top { flex-wrap: wrap; }
  .hero-stats { margin-left: 0; text-align: left; align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .budget-row { grid-template-columns: 1fr 100px; }
  .budget-row .bar { grid-column: 1 / -1; order: 3; }
  .centre-head h1 { font-size: 34px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .hero { padding: 20px; }
  .hero .avatar { width: 72px; height: 72px; }
  .hero h1 { font-size: 24px; }
  .nav { padding: 0 12px; }
  .brand .word { display: none; }
  .pos-grid { grid-template-columns: repeat(4, 1fr); }
  .table td, .table th { padding-left: 6px; padding-right: 6px; }
  .table th.n, .table td.n { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.hub-card .chev svg { width: 16px; height: 16px; display: block; }
.chip svg { width: 13px; height: 13px; }
[hidden] { display: none !important; }
.btn { white-space: nowrap; }
@media (max-width: 820px) { .userpill .badge { display: none; } .userpill { padding-right: 4px; } }
@media (max-width: 820px) { .hero-stats { flex-wrap: wrap; gap: 14px 22px; } }
