/* =====================================================================
   Pelo — منصة البطولات · design system
   Identity: deep arena navy, brushed silver, steel blue light beams.
   ===================================================================== */
:root {
  --bg: #060b14;
  --bg-2: #0a1322;
  --bg-3: #0f1c30;
  --surface: rgba(17, 31, 51, .66);
  --surface-solid: #101d31;
  --surface-2: #15263d;
  --surface-3: #1c3150;
  --line: rgba(170, 197, 222, .12);
  --line-2: rgba(170, 197, 222, .22);
  --line-3: rgba(200, 220, 240, .38);
  --text: #eef4fb;
  --text-2: #c8d6e5;
  --muted: #8ea4bc;
  --dim: #637a94;
  --steel: #aac5de;
  --steel-2: #d9e7f5;
  --royal: #3c6db4;
  --royal-2: #5b8fd6;
  --good: #5fd3a0;
  --good-bg: rgba(95, 211, 160, .12);
  --warn: #f2c66d;
  --warn-bg: rgba(242, 198, 109, .12);
  --bad: #f2788c;
  --bad-bg: rgba(242, 120, 140, .12);
  --live: #ff5d73;
  --silver: linear-gradient(135deg, #ffffff 0%, #d4e1ee 28%, #8fa9c4 52%, #eaf2fa 74%, #9fb6cd 100%);
  --silver-btn: linear-gradient(180deg, #f4f8fc 0%, #cfdceb 48%, #b3c6da 100%);
  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 26px; --r-xl: 34px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(170, 197, 222, .18), 0 20px 60px -20px rgba(60, 109, 180, .45);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Rajdhani', 'Cairo', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top-h: 72px;
  --max: 1240px;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg); min-height: 100vh;
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(60, 109, 180, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(120, 160, 210, .13), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(60, 109, 180, .16), transparent 60%),
    linear-gradient(180deg, #070d18 0%, #060b14 100%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 800; }
p { margin: 0; }
::selection { background: rgba(170, 197, 222, .35); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #22385a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; display: flex; justify-content: center; }
.pad { padding: 18px; }
.grow { flex: 1; min-width: 0; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; }
code { background: rgba(170, 197, 222, .1); padding: 1px 7px; border-radius: 6px; font-size: .9em; direction: ltr; display: inline-block; }

.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i.big { width: 54px; height: 54px; color: var(--steel); }

.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .22em; color: var(--steel); text-transform: uppercase; }
.eyebrow i { width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--steel)); display: inline-block; }
.kicker { display: block; font-size: 13px; font-weight: 700; color: var(--steel); margin-bottom: 4px; }

/* ------------------------------------------------------------------ layout */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.topbar.scrolled, .is-admin-view .topbar { background: rgba(6, 11, 20, .78); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.topbar-in { max-width: var(--max); margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.is-admin-view .topbar-in { max-width: none; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 20px; letter-spacing: .01em; flex: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 6px 16px rgba(60, 109, 180, .45)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-25deg) scale(1.05); }
.brand span { display: flex; align-items: baseline; gap: 6px; direction: ltr; }
.brand small { font-weight: 600; color: var(--steel); font-size: .8em; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; background: rgba(15, 28, 48, .55); border: 1px solid var(--line); padding: 5px; border-radius: 999px; backdrop-filter: blur(10px); }
.nav-link { position: relative; padding: 7px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--text-2); transition: color .2s, background .2s; display: flex; align-items: center; gap: 7px; }
.nav-link:hover { color: var(--text); background: rgba(170, 197, 222, .07); }
.nav-link.on { color: #0a1424; background: var(--silver-btn); box-shadow: 0 6px 20px -8px rgba(200, 220, 240, .6); }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 93, 115, .25); display: inline-block; }
.nav-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; font-family: var(--display); }
.nav-end { display: flex; align-items: center; gap: 10px; position: relative; flex: none; }
.user-btn { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(15, 28, 48, .55); font-weight: 700; font-size: 14px; transition: border-color .2s; }
.user-btn:hover { border-color: var(--line-3); }
.user-btn .i { width: 16px; color: var(--muted); }
.user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 250px; background: rgba(13, 24, 41, .97); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; backdrop-filter: blur(20px); z-index: 60; animation: pop .18s var(--ease); }
.user-menu[hidden] { display: none; }
.um-head { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.um-head small { display: block; color: var(--muted); font-size: 12px; }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); text-align: start; }
.user-menu a:hover, .user-menu button:hover { background: rgba(170, 197, 222, .08); color: var(--text); }
.user-menu .danger { color: var(--bad); }

.page { max-width: var(--max); margin: 0 auto; padding: 18px 24px 80px; min-height: calc(100vh - var(--top-h) - 120px); }
.footer { border-top: 1px solid var(--line); background: rgba(6, 11, 20, .6); }
.footer-in { max-width: var(--max); margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 13.5px; flex: 1; }
.footer-links { display: flex; gap: 18px; align-items: center; font-weight: 700; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.icon-link { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); }
.icon-link:hover { background: #5865f2; border-color: #5865f2; color: #fff; }
.bottom-nav { display: none; }

/* admin */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--top-h)); }
.admin-side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); padding: 22px 14px; border-inline-end: 1px solid var(--line); background: rgba(8, 15, 27, .55); display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.side-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13px; color: var(--muted); padding: 0 12px 14px; letter-spacing: .02em; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 700; color: var(--text-2); transition: background .2s, color .2s; width: 100%; text-align: start; position: relative; }
.side-link .i { width: 20px; height: 20px; color: var(--muted); }
.side-link:hover { background: rgba(170, 197, 222, .06); color: var(--text); }
.side-link.on { background: linear-gradient(90deg, rgba(170, 197, 222, .04), rgba(170, 197, 222, .14)); color: var(--text); box-shadow: inset -3px 0 0 var(--steel); }
.side-link.on .i { color: var(--steel-2); }
.side-count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--live); color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; font-family: var(--display); }
.side-sep { height: 1px; background: var(--line); margin: 12px 8px; }
.side-cta { color: var(--steel-2); }
.admin-main { padding: 26px 30px 90px; min-width: 0; max-width: 1400px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.admin-head p { margin-top: 4px; }

/* ------------------------------------------------------------------ buttons */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 14.5px; border: 1px solid var(--b); transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, opacity .2s; white-space: nowrap; user-select: none; position: relative; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.is-busy { pointer-events: none; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-primary.is-busy::after { border-color: rgba(10, 20, 36, .25); border-top-color: #0a1424; }
.btn-primary { background: var(--silver-btn); color: #0a1424; border-color: rgba(255, 255, 255, .6); box-shadow: 0 10px 30px -10px rgba(190, 212, 235, .55), inset 0 1px 0 #fff; }
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(190, 212, 235, .75), inset 0 1px 0 #fff; transform: translateY(-1px); }
.btn-glass { background: rgba(170, 197, 222, .07); backdrop-filter: blur(10px); color: var(--text); }
.btn-glass:hover { background: rgba(170, 197, 222, .13); border-color: var(--line-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(170, 197, 222, .07); color: var(--text); }
.btn-danger { background: var(--bad-bg); color: var(--bad); --b: rgba(242, 120, 140, .3); }
.btn-danger:hover { background: rgba(242, 120, 140, .2); }
.btn-success { background: var(--good-bg); color: var(--good); --b: rgba(95, 211, 160, .32); }
.btn-success:hover { background: rgba(95, 211, 160, .2); }
.btn-discord { background: #5865f2; color: #fff; --b: #6d78f5; box-shadow: 0 10px 30px -10px rgba(88, 101, 242, .7); }
.btn-discord:hover { background: #4752e0; transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s; flex: none; }
.icon-btn:hover { background: rgba(170, 197, 222, .08); color: var(--text); }
.icon-btn.danger:hover { color: var(--bad); background: var(--bad-bg); }
.icon-btn.tiny { width: 20px; height: 20px; border-radius: 6px; }
.icon-btn.tiny .i { width: 12px; height: 12px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--steel); font-weight: 700; font-size: 13.5px; }
.link-btn:hover { color: var(--steel-2); text-decoration: underline; }
.link-btn.danger { color: var(--bad); }
.link-btn.tiny { font-size: 12px; font-weight: 600; color: var(--muted); font-family: var(--display); }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--steel); font-weight: 700; font-size: 14px; }
.link-more:hover { color: var(--steel-2); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; margin: 6px 0 16px; padding: 6px 12px 6px 4px; border-radius: 10px; }
.back-link:hover { color: var(--text); }

/* ------------------------------------------------------------------ chips, badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(10, 19, 34, .72); border: 1px solid var(--line-2); color: var(--text-2); backdrop-filter: blur(8px); white-space: nowrap; }
.chip .i { width: 14px; height: 14px; }
.chip .dot, .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.chip-open { color: var(--good); border-color: rgba(95, 211, 160, .35); }
.chip-open .dot, .chip-live .dot, .dot.live, .mt-state.live .dot { animation: pulse 1.6s infinite; }
.chip-live { color: #fff; background: rgba(255, 93, 115, .85); border-color: rgba(255, 140, 155, .7); }
.chip-done { color: var(--steel-2); }
.chip-draft { color: var(--warn); border-color: rgba(242, 198, 109, .35); }
.chip-closed { color: var(--muted); }
.chip-me { color: #0a1424; background: var(--silver-btn); border-color: transparent; }
.badge { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(170, 197, 222, .12); color: var(--steel-2); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(170, 197, 222, .12); color: var(--steel-2); font-size: 12.5px; font-family: var(--display); font-weight: 700; margin-inline-start: 4px; }
.count.warn { background: var(--warn-bg); color: var(--warn); }
.tag { display: inline-flex; padding: 1px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; background: rgba(170, 197, 222, .1); color: var(--text-2); }

/* ------------------------------------------------------------------ cards & surfaces */
.card { position: relative; background: linear-gradient(180deg, rgba(21, 38, 61, .7), rgba(14, 26, 44, .7)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px); margin-bottom: 18px; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(220, 235, 250, .2), transparent 40%, transparent 70%, rgba(91, 143, 214, .18)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card > h3, .card-head h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.card > h3 { margin-bottom: 14px; }
.card > h3 .i, .card-head h3 .i { color: var(--steel); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head.pad { padding: 20px 22px 0; }
.card-flush { padding: 0; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.link-card { display: flex; align-items: center; gap: 16px; transition: transform .2s var(--ease), border-color .2s; margin: 0; }
.link-card > .i:first-child { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: rgba(170, 197, 222, .1); color: var(--steel-2); }
.link-card div { flex: 1; }
.link-card b { display: block; font-size: 16px; }
.link-card small { color: var(--muted); }
.link-card:hover { transform: translateY(-2px); border-color: var(--line-3); }

.section { margin: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); display: flex; align-items: center; gap: 10px; }
.section-head.center { justify-content: center; text-align: center; }

/* ------------------------------------------------------------------ form controls */
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 800; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 7px; padding: 0; }
.field > span .i, .field > legend .i { color: var(--steel); }
.field em { font-style: normal; color: var(--dim); font-weight: 600; font-size: 12.5px; }
.hint { color: var(--dim); font-size: 12.5px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  width: 100%; background: rgba(6, 12, 22, .65); border: 1px solid var(--line-2); border-radius: 13px; padding: 12px 15px; color: var(--text); font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; outline: none; min-height: 48px;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { border-color: var(--steel); box-shadow: 0 0 0 4px rgba(170, 197, 222, .12); background: rgba(6, 12, 22, .85); }
input[type=date], input[type=time] { color-scheme: dark; }
input[type=number] { font-family: var(--display); font-weight: 700; font-size: 16px; }
select { appearance: none; padding-inline-end: 40px; cursor: pointer; }
.select-wrap { position: relative; display: block; }
.select-wrap .i { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select-wrap select { min-width: 150px; }
.search { position: relative; display: flex; align-items: center; min-width: 220px; flex: 1; max-width: 380px; }
.search .i { position: absolute; inset-inline-start: 14px; color: var(--muted); pointer-events: none; }
.search input { padding-inline-start: 42px !important; border-radius: 999px !important; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shake { animation: shake .35s; border-color: var(--bad) !important; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(6, 12, 22, .5); font-weight: 700; font-size: 14px; color: var(--text-2); transition: all .18s var(--ease); }
.choice span .i { color: var(--muted); }
.choice:hover span { border-color: var(--line-3); color: var(--text); }
.choice input:checked + span { background: linear-gradient(180deg, rgba(170, 197, 222, .22), rgba(170, 197, 222, .1)); border-color: var(--steel); color: var(--text); box-shadow: 0 0 0 3px rgba(170, 197, 222, .1); }
.choice input:checked + span .i { color: var(--steel-2); }
.choice input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.cats .choice span { padding: 10px 14px; }

.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(6, 12, 22, .4); }
.switch-row.inline { padding: 0; border: 0; background: none; }
.switch-row input { position: absolute; opacity: 0; }
.switch { width: 50px; height: 28px; border-radius: 999px; background: #233650; position: relative; flex: none; transition: background .25s; border: 1px solid var(--line-2); }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #9db2c9; transition: transform .25s var(--ease), background .25s; }
.switch-row input:checked + .switch { background: var(--good); border-color: transparent; }
.switch-row input:checked + .switch::after { transform: translateX(-22px); background: #fff; }
.switch-row input:disabled + .switch { opacity: .4; }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--steel); outline-offset: 3px; }
.switch-row b { display: block; }
.switch-row small { color: var(--muted); font-size: 13px; }

.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 130px; border: 1.5px dashed var(--line-3); border-radius: var(--r); background: rgba(6, 12, 22, .4); cursor: pointer; transition: border-color .2s, background .2s; overflow: hidden; color: var(--muted); padding: 16px; }
.dropzone .i { width: 34px; height: 34px; color: var(--steel); margin-bottom: 4px; }
.dropzone b { color: var(--text-2); }
.dropzone small { font-size: 12.5px; }
.dropzone:hover { border-color: var(--steel); background: rgba(170, 197, 222, .05); }
.dropzone.has { padding: 0; border-style: solid; }
.dropzone.has img { width: 100%; max-height: 240px; object-fit: cover; }
.dropzone.wide.has img { aspect-ratio: 16/7; }

/* segmented control & tabs */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 22px; flex-wrap: wrap; }
.toolbar.compact { margin-bottom: 14px; }
.toolbar-end { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 16px; background: rgba(10, 19, 34, .7); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--muted); transition: all .2s; white-space: nowrap; }
.seg-btn span { font-family: var(--display); font-size: 13px; padding: 0 7px; border-radius: 999px; background: rgba(170, 197, 222, .1); }
.seg-btn:hover { color: var(--text); }
.seg-btn.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px -8px rgba(0, 0, 0, .6); }
.seg-btn.on span { background: var(--silver-btn); color: #0a1424; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 800; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-color: var(--steel-2); }
.tab.on .i { color: var(--steel-2); }

/* ------------------------------------------------------------------ avatars & progress */
.av { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #2c4669, #172a44); color: var(--steel-2); font-weight: 800; font-size: calc(var(--s) * .42); border: 1.5px solid rgba(170, 197, 222, .25); position: relative; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { --s: 24px; border-width: 1px; }
.av-sm { --s: 32px; }
.av-md { --s: 42px; }
.av-lg { --s: 58px; }
.av-xl { --s: 76px; border-width: 2px; }
.av-xxl { --s: 112px; border-width: 3px; }
.av.ring { box-shadow: 0 0 0 4px rgba(6, 11, 20, 1), 0 0 0 6px rgba(170, 197, 222, .5), 0 20px 50px -10px rgba(60, 109, 180, .6); }
.progress { height: 7px; border-radius: 99px; background: rgba(170, 197, 222, .1); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--royal-2), var(--steel-2)); box-shadow: 0 0 12px rgba(170, 197, 222, .5); transition: width .6s var(--ease); }
.progress-label { font-family: var(--display); font-size: 14px; color: var(--muted); }
.progress-label b { color: var(--text); font-size: 15px; }

/* ------------------------------------------------------------------ empty / states */
.empty { text-align: center; padding: 56px 22px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: rgba(10, 19, 34, .4); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-ico { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(170, 197, 222, .25), rgba(60, 109, 180, .08)); border: 1px solid var(--line-2); margin-bottom: 6px; }
.empty-ico .i { width: 32px; height: 32px; color: var(--steel-2); }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); max-width: 420px; margin-bottom: 8px; }
.center-card { max-width: 460px; margin: 60px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21, 38, 61, .7), rgba(14, 26, 44, .7)); }
.center-card h2 { font-size: 24px; }
.state-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: rgba(170, 197, 222, .07); border: 1px solid var(--line-2); }
.state-box b { display: block; font-size: 15px; }
.state-box p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.state-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(170, 197, 222, .12); color: var(--steel-2); flex: none; }
.state-box.good { background: var(--good-bg); border-color: rgba(95, 211, 160, .28); }
.state-box.good .state-ico { background: rgba(95, 211, 160, .18); color: var(--good); }
.state-box.warn { background: var(--warn-bg); border-color: rgba(242, 198, 109, .28); }
.state-box.warn .state-ico { background: rgba(242, 198, 109, .18); color: var(--warn); }
.state-box.bad { background: var(--bad-bg); border-color: rgba(242, 120, 140, .3); }
.state-box.bad .state-ico { background: rgba(242, 120, 140, .18); color: var(--bad); }
.callout { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: rgba(60, 109, 180, .12); border: 1px solid rgba(91, 143, 214, .3); margin-bottom: 18px; flex-wrap: wrap; }
.callout > .i { width: 28px; height: 28px; color: var(--steel-2); }
.callout > div { flex: 1; min-width: 200px; }
.callout p { color: var(--text-2); font-size: 14px; }
.warn-note { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.fine { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); justify-content: center; }
.skeleton-list { display: flex; flex-direction: column; gap: 10px; }
.skeleton-list i { height: 46px; border-radius: 12px; background: linear-gradient(90deg, rgba(170, 197, 222, .05), rgba(170, 197, 222, .12), rgba(170, 197, 222, .05)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }

/* ------------------------------------------------------------------ toast */
#toasts { position: fixed; z-index: 400; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: min(92vw, 460px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: rgba(16, 29, 49, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-weight: 700; font-size: 14.5px; backdrop-filter: blur(16px); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .25s, transform .3s var(--ease); pointer-events: auto; max-width: 100%; }
.toast.in { opacity: 1; transform: none; }
.toast .i { width: 20px; height: 20px; color: var(--good); }
.toast-err { border-color: rgba(242, 120, 140, .4); }
.toast-err .i { color: var(--bad); }
.toast-info .i { color: var(--steel-2); }
#offline { position: fixed; z-index: 300; top: calc(var(--top-h) + 10px); inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: rgba(242, 198, 109, .14); border: 1px solid rgba(242, 198, 109, .4); color: var(--warn); font-size: 13px; font-weight: 700; backdrop-filter: blur(10px); }
#offline .i { animation: spin 1.4s linear infinite; }

/* ------------------------------------------------------------------ modal */
#modals { position: relative; z-index: 200; }
.modal-wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.modal-wrap.in { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 7, 14, .72); backdrop-filter: blur(6px); }
.modal { position: relative; width: 100%; max-height: calc(100vh - 40px); overflow: auto; background: linear-gradient(180deg, #13243b, #0d1a2d); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .03) inset; transform: translateY(18px) scale(.98); transition: transform .3s var(--ease); outline: none; }
.modal-wrap.in .modal { transform: none; }
.modal-sm { max-width: 440px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 1120px; }
.modal-body { padding: 28px; }
.modal-x { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); z-index: 3; background: rgba(6, 12, 22, .5); }
.modal-x:hover { color: var(--text); background: rgba(170, 197, 222, .1); }
.modal-title-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding-inline-end: 40px; }
.modal-title-row > .i { width: 48px; height: 48px; padding: 12px; border-radius: 16px; background: radial-gradient(circle at 30% 20%, rgba(170, 197, 222, .3), rgba(60, 109, 180, .12)); border: 1px solid var(--line-2); color: var(--steel-2); }
.modal-title-row h2 { font-size: 21px; }
.modal-title-row p { font-size: 13.5px; }
.dialog .modal-body { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.dialog-ico { width: 62px; height: 62px; border-radius: 20px; margin: 4px auto 4px; display: grid; place-items: center; background: rgba(170, 197, 222, .12); color: var(--steel-2); border: 1px solid var(--line-2); }
.dialog-ico .i { width: 28px; height: 28px; }
.dialog-ico.danger { background: var(--bad-bg); color: var(--bad); border-color: rgba(242, 120, 140, .3); }
.dialog-title { font-size: 20px; }
.dialog-text { color: var(--muted); font-size: 14.5px; }
.dialog .field { text-align: start; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
#viewer { position: fixed; inset: 0; z-index: 500; background: rgba(2, 5, 10, .93); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .2s; cursor: zoom-out; }
#viewer.in { opacity: 1; }
#viewer img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); cursor: default; }
.viewer-x { position: absolute; top: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }

/* ------------------------------------------------------------------ HOME */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--top-h) - 40px); max-height: 820px; padding: 20px 0 30px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.display { font-size: clamp(42px, 6.4vw, 84px); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
.display-sm { font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1.12; }
.lead { font-size: 17.5px; color: var(--text-2); max-width: 540px; line-height: 1.9; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(10, 19, 34, .55); backdrop-filter: blur(10px); width: max-content; max-width: 100%; }
.hero-stats div { padding: 14px 24px; display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); }
.hero-stats div:first-child { border: 0; }
.hero-stats b { font-family: var(--display); font-size: 30px; line-height: 1; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 4px; }
.hero-art { position: relative; aspect-ratio: 1 / .92; }
.portal { position: absolute; inset: 4% 2%; border-radius: 42px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), 0 0 120px -30px rgba(91, 143, 214, .6); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease); }
.hero-art:hover .portal { transform: perspective(1200px) rotateY(0) rotateX(0); }
.portal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: breathe 14s ease-in-out infinite; }
.portal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 11, 20, .65)), radial-gradient(circle at 50% 30%, transparent 40%, rgba(6, 11, 20, .35)); }
.rings { position: absolute; inset: -8%; width: 116%; height: 116%; z-index: 2; fill: none; stroke: rgba(220, 235, 250, .18); stroke-width: 1.2; animation: rotate 60s linear infinite; pointer-events: none; }
.rings path { stroke: rgba(220, 235, 250, .55); stroke-width: 2.5; stroke-linecap: round; }
.beam { position: absolute; top: -10%; width: 22%; height: 120%; background: linear-gradient(180deg, rgba(220, 235, 255, .22), transparent 70%); filter: blur(8px); transform-origin: top center; z-index: 1; mix-blend-mode: screen; animation: sweep 9s ease-in-out infinite; }
.beam.b1 { inset-inline-start: 12%; transform: rotate(18deg); }
.beam.b2 { inset-inline-start: 42%; animation-delay: -3s; }
.beam.b3 { inset-inline-start: 70%; transform: rotate(-18deg); animation-delay: -6s; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; background: rgba(13, 24, 41, .86); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-weight: 700; font-size: 13.5px; animation: float 6s ease-in-out infinite; }
.float-chip b { font-family: var(--display); font-size: 17px; }
.float-chip .dot { color: var(--live); }
.fc-1 { bottom: 9%; inset-inline-end: -2%; }
.fc-2 { top: 10%; inset-inline-start: -3%; animation-delay: -3s; }
.fc-2 span { color: var(--muted); font-size: 12px; }

.ticker { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 19, 34, .7); overflow: hidden; margin: 10px 0 0; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--live); color: #fff; font-family: var(--display); font-weight: 700; letter-spacing: .15em; }
.ticker-tag .dot { animation: pulse 1.4s infinite; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-run { display: flex; gap: 22px; align-items: center; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; padding: 10px 0; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-run a { font-weight: 800; }
.ticker-run a em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 13px; margin-inline-start: 6px; }
.ticker-run .sep { color: var(--steel); font-style: normal; font-size: 9px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(21, 38, 61, .55), rgba(14, 26, 44, .35)); overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--line-3); }
.step > .i { width: 52px; height: 52px; padding: 13px; border-radius: 18px; background: radial-gradient(circle at 30% 20%, rgba(170, 197, 222, .35), rgba(60, 109, 180, .14)); color: var(--steel-2); border: 1px solid var(--line-2); margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); }
.step-n { position: absolute; top: 10px; inset-inline-end: 18px; font-family: var(--display); font-size: 64px; font-weight: 700; line-height: 1; background: linear-gradient(180deg, rgba(170, 197, 222, .22), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* leaderboard */
.lb-wrap { max-width: 920px; margin: 0 auto; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 56px 0 26px; }
.pod { display: flex; flex-direction: column; align-items: center; width: 210px; }
.pod-person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 14px; position: relative; }
.pod-person b { font-size: 16px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-person > span { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--steel-2); }
.pod-person small { font-family: var(--font); font-size: 12px; color: var(--muted); }
.pod-crown { position: absolute; top: -34px; color: #ffd76a; filter: drop-shadow(0 4px 12px rgba(255, 200, 80, .6)); animation: float 4s ease-in-out infinite; }
.pod-crown .i { width: 34px; height: 34px; }
.pod-stand { width: 100%; border-radius: 18px 18px 6px 6px; display: grid; place-items: start center; padding-top: 14px; font-family: var(--display); font-size: 40px; font-weight: 700; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(170, 197, 222, .2), rgba(170, 197, 222, .03)); position: relative; overflow: hidden; }
.pod-stand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); background-size: 200% 100%; animation: shine 5s infinite; }
.pod-1 .pod-stand { height: 150px; background: linear-gradient(180deg, rgba(255, 215, 120, .3), rgba(255, 215, 120, .04)); border-color: rgba(255, 215, 120, .45); color: #ffe39a; }
.pod-1 .av { box-shadow: 0 0 0 3px rgba(255, 215, 120, .7), 0 12px 40px -6px rgba(255, 200, 80, .6); }
.pod-2 .pod-stand { height: 110px; color: var(--steel-2); }
.pod-3 .pod-stand { height: 82px; background: linear-gradient(180deg, rgba(214, 150, 100, .25), rgba(214, 150, 100, .03)); border-color: rgba(214, 150, 100, .4); color: #f0c09a; }
.pod.is-me .pod-person b::after { content: ' (أنت)'; color: var(--steel); font-size: 12px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.lb-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(10, 19, 34, .55); border: 1px solid var(--line); }
.lb-list li.is-me { border-color: var(--steel); background: rgba(170, 197, 222, .08); }
.lb-list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rank { font-family: var(--display); font-weight: 700; width: 26px; color: var(--muted); text-align: center; }
.lb-pts { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--steel-2); }
.lb-wins { font-size: 12px; color: var(--dim); }
.lb-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.lb-rules span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); background: rgba(10, 19, 34, .5); }
.lb-rules b { color: var(--steel-2); font-family: var(--display); }
.lb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.lb-empty .i { width: 40px; height: 40px; color: #ffd76a; }
.lb-empty b { color: var(--text); font-size: 17px; }

.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; margin: 70px 0 20px; min-height: 260px; display: flex; align-items: center; border: 1px solid var(--line-2); }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(6, 11, 20, .95) 25%, rgba(6, 11, 20, .5) 70%, rgba(6, 11, 20, .2)); }
.cta-band-in { position: relative; z-index: 1; padding: 40px; max-width: 560px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: var(--text-2); }

/* ------------------------------------------------------------------ tournament cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.tcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, rgba(21, 38, 61, .85), rgba(12, 23, 40, .9)); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; isolation: isolate; }
.tcard:hover { transform: translateY(-6px); border-color: var(--line-3); box-shadow: var(--glow), var(--shadow-lg); }
.tcard-media { position: relative; aspect-ratio: 16 / 8.6; overflow: hidden; }
.tcard-media .cover { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.tcard:hover .tcard-media .cover { transform: scale(1.06); }
.tcard-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 20, .35), transparent 35%, transparent 55%, rgba(12, 23, 40, .95)); }
.tcard-chips { position: absolute; top: 12px; inset-inline-start: 12px; inset-inline-end: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.tcard-mode { position: absolute; bottom: 10px; inset-inline-end: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; color: var(--text-2); background: rgba(6, 11, 20, .6); padding: 3px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.tcard-mode .i { width: 14px; height: 14px; }
.tcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard-body h3 { font-size: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tcard-meta span { display: inline-flex; gap: 6px; align-items: center; }
.tcard-meta em { font-style: normal; color: var(--steel); }
.tcard-prize { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 215, 120, .07); border: 1px solid rgba(255, 215, 120, .18); }
.tcard-prize .i { color: #ffd76a; }
.tcard-prize b { color: #ffe7a8; }
.tcard-prize small { color: var(--muted); margin-inline-start: auto; font-size: 12px; }
.tcard-progress { margin-top: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.tcard-progress .progress { grid-column: 1 / -1; }
.tcard-progress .muted { font-size: 12.5px; text-align: end; }
.tcard-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); transform: translateX(100%); transition: transform .9s var(--ease); z-index: 3; }
.tcard:hover .tcard-shine { transform: translateX(-100%); }
.tcard.is-done { filter: saturate(.75); }
.tcard.is-done:hover { filter: none; }

.cover { position: relative; width: 100%; height: 100%; background: #0d1a2d; overflow: hidden; }
.cover > img:not(.cover-logo) { width: 100%; height: 100%; object-fit: cover; }
.cover-gen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-gen.g1 { background: radial-gradient(circle at 75% 30%, #5b8fd6, transparent 55%), linear-gradient(135deg, #1b335a, #0b1628); }
.cover-gen.g2 { background: radial-gradient(circle at 25% 70%, #8fb3db, transparent 50%), linear-gradient(135deg, #22375a, #0a1424); }
.cover-gen.g3 { background: radial-gradient(circle at 60% 20%, #3c6db4, transparent 50%), linear-gradient(160deg, #132744, #070f1d); }
.cover-gen.g4 { background: radial-gradient(circle at 80% 80%, #aac5de, transparent 45%), linear-gradient(135deg, #1a2e4c, #0b1526); }
.cover-logo { position: absolute; width: 34%; max-width: 120px; aspect-ratio: 1; inset-inline-end: 8%; top: 50%; transform: translateY(-50%); opacity: .9; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.cover-thumb { width: 54px; height: 40px; border-radius: 10px; flex: none; }
.cover-thumb .cover-logo { width: 60%; }
.cover-sq { width: 92px; height: 92px; border-radius: 22px; flex: none; border: 1px solid var(--line-2); }

/* page hero */
.page-hero { padding: 26px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.page-hero.slim { padding-top: 14px; }

/* ------------------------------------------------------------------ tournament page */
.t-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 26px; background: #0b1628; }
.t-hero-bg { position: absolute; inset: 0; }
.t-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(130%); opacity: .5; transform: scale(1.2); }
.t-hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 400px at 80% 0%, rgba(91, 143, 214, .35), transparent 60%), linear-gradient(180deg, rgba(6, 11, 20, .25), rgba(6, 11, 20, .88)); }
.t-hero-in { position: relative; display: grid; grid-template-columns: minmax(280px, 1fr) 1.35fr; gap: 30px; padding: 30px; align-items: center; }
.t-hero-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); }
.t-hero-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.t-hero-copy h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 900; }
.t-sub { color: var(--text-2); font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; width: 100%; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: rgba(6, 11, 20, .55); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.fact > .i { width: 22px; height: 22px; color: var(--steel); margin-top: 3px; }
.fact > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fact small { color: var(--muted); font-size: 12px; font-weight: 700; }
.fact b { font-size: 14.5px; }
.fact em { font-style: normal; color: var(--steel); font-size: 12px; }
.t-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.t-side { position: sticky; top: calc(var(--top-h) + 14px); }
.reg-panel { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(25, 45, 72, .88), rgba(14, 26, 44, .92)); border: 1px solid var(--line-2); box-shadow: var(--glow), var(--shadow-lg); position: relative; overflow: hidden; }
.reg-panel::before { content: ''; position: absolute; top: -60px; inset-inline-end: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(170, 197, 222, .18), transparent 70%); pointer-events: none; }
.panel-head h3 { font-size: 20px; }
.panel-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.progress-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--dim); padding: 8px 4px; border-radius: 12px; background: rgba(6, 11, 20, .4); border: 1px solid var(--line); }
.progress-steps li .i { width: 18px; height: 18px; }
.progress-steps li.done { color: var(--good); border-color: rgba(95, 211, 160, .3); }
.progress-steps li.cur { color: var(--warn); border-color: rgba(242, 198, 109, .3); }
.mini-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.mini-dl div { padding: 10px 12px; border-radius: 12px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); min-width: 0; }
.mini-dl dt { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.mini-dl dd { margin: 2px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.live-match { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, rgba(255, 93, 115, .14), rgba(60, 109, 180, .12)); border: 1px solid rgba(255, 93, 115, .35); align-items: flex-start; }
.lm-vs { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; }
.lm-vs b { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-vs em { font-family: var(--display); font-style: normal; font-weight: 700; color: var(--live); font-size: 18px; }
.team-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.team-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); }
.team-list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-state { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 700; color: var(--warn); }
.tm-state.ok { color: var(--good); }
.picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; align-items: center; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(170, 197, 222, .14); border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; }
.pick-chip .i { width: 14px; height: 14px; color: var(--muted); }
.pick-list { max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; background: rgba(6, 11, 20, .4); }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; text-align: start; transition: background .15s; }
.pick-row:hover { background: rgba(170, 197, 222, .07); }
.pick-row > span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.pick-row small { color: var(--dim); font-size: 12px; }
.pick-row i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); }
.pick-row.on { background: rgba(170, 197, 222, .12); }
.pick-row.on i { background: var(--silver-btn); color: #0a1424; border-color: transparent; }
.mobile-cta { display: none; }

.prose-card p { color: var(--text-2); line-height: 1.95; }
.prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.prize { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(6, 11, 20, .45); position: relative; overflow: hidden; }
.prize b { font-size: 18px; }
.prize small { color: var(--muted); font-weight: 700; }
.prize-medal { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(170, 197, 222, .12); color: var(--steel-2); font-family: var(--display); font-weight: 700; margin-bottom: 6px; }
.prize-1 { border-color: rgba(255, 215, 120, .45); background: linear-gradient(160deg, rgba(255, 215, 120, .14), rgba(6, 11, 20, .45)); }
.prize-1 .prize-medal { background: rgba(255, 215, 120, .2); color: #ffd76a; }
.prize-1 b { color: #ffe7a8; }
.prize-3 .prize-medal { color: #f0c09a; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 8px; }
.rules li { counter-increment: r; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(6, 11, 20, .35); color: var(--text-2); }
.rules li::before { content: counter(r); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(170, 197, 222, .12); color: var(--steel-2); font-family: var(--display); font-weight: 700; }
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.player-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); min-width: 0; }
.player-card div { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.player-card b, .player-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card small { color: var(--dim); font-size: 12px; }
.player-card.is-me { border-color: var(--steel); background: rgba(170, 197, 222, .08); }
.places { display: flex; flex-direction: column; gap: 10px; }
.place { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); position: relative; }
.place-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 22px; font-weight: 700; background: rgba(170, 197, 222, .12); color: var(--steel-2); flex: none; }
.place-1 { border-color: rgba(255, 215, 120, .45); background: linear-gradient(90deg, rgba(255, 215, 120, .14), rgba(6, 11, 20, .45)); }
.place-1 .place-n { background: rgba(255, 215, 120, .22); color: #ffd76a; }
.place-3 .place-n { color: #f0c09a; }
.place-avs { display: flex; }
.place-avs .av + .av { margin-inline-start: -10px; }
.place small { display: block; color: var(--muted); }
.place-crown { width: 26px; height: 26px; color: #ffd76a; margin-inline-start: auto; }

/* ------------------------------------------------------------------ bracket */
.bracket-scroll { overflow-x: auto; padding: 22px 22px 26px; scroll-snap-type: x proximity; }
.bracket { --gap: 46px; --w: 230px; display: flex; gap: var(--gap); width: max-content; min-width: 100%; }
.br-col { display: flex; flex-direction: column; width: var(--w); flex: none; scroll-snap-align: start; }
.br-title { text-align: center; font-weight: 800; font-size: 14px; padding: 8px 10px; margin-bottom: 14px; border-radius: 12px; background: rgba(170, 197, 222, .08); border: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.35; }
.br-title small { font-weight: 600; color: var(--dim); font-size: 11.5px; }
.br-body { flex: 1; display: flex; flex-direction: column; }
.br-pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.br-slot { flex: 1; display: flex; align-items: center; position: relative; padding: 8px 0; }
.br-col:not(.br-final):not(.br-champ) .br-slot::after { content: ''; position: absolute; top: 50%; inset-inline-end: calc(var(--gap) / -2); width: calc(var(--gap) / 2); border-top: 1.5px solid var(--line-3); }
.br-col:not(.br-final):not(.br-champ) .br-pair::after { content: ''; position: absolute; top: 25%; bottom: 25%; inset-inline-end: calc(var(--gap) / -2); border-inline-end: 1.5px solid var(--line-3); }
.br-col:not(.br-final):not(.br-champ) .br-pair::before { content: ''; position: absolute; top: 50%; inset-inline-end: calc(var(--gap) * -1); width: calc(var(--gap) / 2); border-top: 1.5px solid var(--line-3); }
.br-final .br-slot::after { content: ''; position: absolute; top: 50%; inset-inline-end: calc(var(--gap) / -1); width: var(--gap); border-top: 1.5px dashed rgba(255, 215, 120, .4); }
.bracket:not(:has(.br-champ)) .br-final .br-slot::after { display: none; }
.mt { width: 100%; display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #152740, #0f1d31); overflow: hidden; text-align: start; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .8); position: relative; z-index: 1; }
button.mt:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: var(--glow); }
.mt.ready { border-color: rgba(255, 93, 115, .5); }
.mt.mine { border-color: var(--steel); box-shadow: 0 0 0 2px rgba(170, 197, 222, .25), 0 12px 30px -10px rgba(91, 143, 214, .5); }
.ms { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 42px; font-size: 13.5px; font-weight: 700; }
.ms + .ms { border-top: 1px solid var(--line); }
.ms-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-empty { color: var(--dim); font-weight: 600; font-size: 12.5px; }
.ms-stack { display: flex; }
.ms-stack .av + .av { margin-inline-start: -8px; }
.ms.won { background: linear-gradient(90deg, rgba(95, 211, 160, .16), transparent); color: #d6ffef; }
.ms.lost { opacity: .45; }
.ms.lost .ms-name { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.ms.me .ms-name { color: var(--steel-2); }
.ms-win { color: var(--good); display: grid; }
.ms-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: var(--bad-bg); color: var(--bad); }
.mt-foot { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 5px 10px; font-size: 11px; color: var(--dim); background: rgba(6, 11, 20, .45); border-top: 1px solid var(--line); }
.mt-code { font-family: var(--display); letter-spacing: .05em; }
.mt-state { font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.mt-state.live { color: var(--live); }
.mt-state.done { color: var(--good); }
.mt-chat { display: inline-flex; gap: 4px; align-items: center; color: var(--steel-2); font-weight: 800; }
.is-preview .mt { opacity: .7; border-style: dashed; }
.champ-card { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px; border-radius: 20px; text-align: center; border: 1px solid rgba(255, 215, 120, .5); background: radial-gradient(circle at 50% 0%, rgba(255, 215, 120, .25), rgba(13, 24, 41, .9) 70%); box-shadow: 0 20px 50px -18px rgba(255, 200, 80, .45); }
.champ-card > .i { width: 40px; height: 40px; color: #ffd76a; filter: drop-shadow(0 4px 14px rgba(255, 200, 80, .6)); }
.champ-card b { font-size: 17px; color: #ffe7a8; }
.champ-avs { display: flex; }
.champ-avs .av + .av { margin-inline-start: -10px; }

/* ------------------------------------------------------------------ chat & inbox */
.inbox { display: grid; grid-template-columns: 330px 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; background: rgba(10, 19, 34, .7); height: calc(100vh - var(--top-h) - 240px); min-height: 520px; box-shadow: var(--shadow-lg); }
.inbox.staff { height: calc(100vh - var(--top-h) - 220px); }
.inbox.staff.has-thread { grid-template-columns: 320px 1fr 260px; }
.inbox-list { border-inline-end: 1px solid var(--line); overflow-y: auto; background: rgba(6, 11, 20, .35); }
.inbox-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10, 19, 34, .95); z-index: 1; }
.inbox-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background .15s; position: relative; }
.inbox-item:hover { background: rgba(170, 197, 222, .05); }
.inbox-item.on { background: rgba(170, 197, 222, .1); box-shadow: inset -3px 0 0 var(--steel); }
.inbox-item b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snippet { display: block; color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.inbox-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.inbox-side time { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.unread { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255, 93, 115, .2); display: block; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; }
.st-dot.waiting { background: var(--warn); }
.st-dot.working { background: var(--good); }
.st-dot.closed { background: var(--dim); }
.st-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-chip.sm { padding: 1px 8px; font-size: 11px; }
.st-chip.waiting { background: var(--warn-bg); color: var(--warn); }
.st-chip.working { background: var(--good-bg); color: var(--good); }
.st-chip.closed { background: rgba(170, 197, 222, .1); color: var(--muted); }
.inbox-thread { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.inbox-placeholder { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px; }
.inbox-info { border-inline-start: 1px solid var(--line); overflow-y: auto; padding: 18px; background: rgba(6, 11, 20, .3); }
.info-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.info-card .mini-dl { width: 100%; }
.info-card h4 { align-self: flex-start; font-size: 13px; color: var(--muted); margin-top: 8px; }
.mini-list { list-style: none; padding: 0; margin: 0; width: 100%; text-align: start; display: flex; flex-direction: column; gap: 4px; }
.mini-list a { display: block; padding: 7px 10px; border-radius: 10px; background: rgba(6, 11, 20, .45); font-size: 13.5px; font-weight: 700; }
.mini-list a:hover { background: rgba(170, 197, 222, .08); }
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.chat.drag::after { content: 'أفلت الصورة لإرفاقها'; position: absolute; inset: 10px; border: 2px dashed var(--steel); border-radius: 20px; display: grid; place-items: center; background: rgba(10, 19, 34, .85); font-weight: 800; z-index: 5; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(10, 19, 34, .85); flex-wrap: wrap; }
.thread-head b { display: block; font-size: 15.5px; }
.thread-head small { color: var(--muted); font-size: 12.5px; }
.thread-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(170, 197, 222, .1); color: var(--steel-2); flex: none; }
.back-mobile { display: none; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: radial-gradient(600px 300px at 50% 100%, rgba(60, 109, 180, .08), transparent); min-height: 0; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-align: center; padding: 30px; }
.chat-empty .i { width: 40px; height: 40px; color: var(--steel); opacity: .7; }
.chat-empty b { color: var(--text); }
.chat-day { display: flex; justify-content: center; margin: 12px 0 6px; }
.chat-day span { font-size: 11.5px; font-weight: 700; color: var(--muted); background: rgba(170, 197, 222, .08); padding: 2px 12px; border-radius: 999px; }
.chat-sys { align-self: center; display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--text-2); background: rgba(91, 143, 214, .12); border: 1px solid rgba(91, 143, 214, .25); padding: 5px 14px; border-radius: 999px; margin: 8px 0; text-align: center; }
.chat-sys .i { width: 14px; color: var(--steel); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; margin-top: 8px; animation: msgIn .25s var(--ease); }
.msg.cont { margin-top: 2px; }
.msg-av-gap { width: 32px; flex: none; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.mine .msg-col { align-items: flex-end; }
.msg-name { font-size: 12px; font-weight: 800; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; padding: 0 4px; }
.staff-badge { color: var(--steel); display: inline-grid; }
.staff-badge .i { width: 13px; height: 13px; }
.bubble { position: relative; padding: 9px 14px 7px; border-radius: 18px; background: #182c47; border: 1px solid var(--line); max-width: 100%; overflow-wrap: anywhere; }
.msg:not(.cont):not(.mine) .bubble { border-start-start-radius: 6px; }
.msg.mine .bubble { background: linear-gradient(180deg, #2e5288, #234372); border-color: rgba(120, 160, 220, .35); }
.msg.mine:not(.cont) .bubble { border-start-end-radius: 6px; }
.msg.staff:not(.mine) .bubble { background: linear-gradient(180deg, #1f3550, #172a43); border-color: rgba(170, 197, 222, .35); }
.msg-text { white-space: normal; line-height: 1.75; }
.msg-text a { color: var(--steel-2); text-decoration: underline; }
.msg-img { margin-top: 6px; max-width: min(280px, 100%); max-height: 300px; border-radius: 12px; cursor: zoom-in; object-fit: cover; }
.bubble time { display: block; font-size: 10.5px; color: rgba(220, 232, 245, .55); margin-top: 2px; text-align: end; direction: ltr; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; background: rgba(10, 19, 34, .9); display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { min-height: 46px; max-height: 160px; resize: none; border-radius: 16px; padding: 11px 15px; line-height: 1.55; }
.composer .attach { cursor: pointer; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 14px; }
.send-btn { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--silver-btn); color: #0a1424; flex: none; transition: transform .15s, opacity .2s; box-shadow: 0 8px 20px -8px rgba(190, 212, 235, .6); }
.send-btn:hover { transform: scale(1.05); }
.send-btn:disabled { opacity: .5; }
.send-btn .i { transform: scaleX(-1); }
.composer-preview { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 14px; background: rgba(170, 197, 222, .08); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; }
.composer-preview img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.composer-preview span { flex: 1; }
.composer-note { font-size: 12px; color: var(--dim); }
.composer-off { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); background: rgba(6, 11, 20, .5); }
.quick-replies { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); background: rgba(10, 19, 34, .9); }
.quick-replies::-webkit-scrollbar { display: none; }
.qr { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); background: rgba(6, 11, 20, .5); }
.qr:hover { border-color: var(--steel); color: var(--text); }
.quick-replies + .composer { border-top: 0; }

/* match chat modal */
.modal-chat .modal-body { padding: 0; height: min(760px, calc(100vh - 40px)); }
.chat-modal { height: 100%; }
.chat-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(25, 45, 72, .9), rgba(16, 29, 49, .9)); display: flex; flex-direction: column; gap: 10px; }
.vs { display: flex; align-items: center; justify-content: center; gap: 16px; padding-inline-end: 34px; }
.vs-side { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; justify-content: flex-end; }
.vs-side + .vs-x + .vs-side { justify-content: flex-start; }
.vs-side .av + .av { margin-inline-start: -12px; }
.vs-side b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-x { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--live); padding: 4px 10px; border-radius: 10px; background: rgba(255, 93, 115, .12); flex: none; }
.chat-meta { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.chat-people { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 999px; background: rgba(6, 11, 20, .5); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; }
.person.add { padding: 3px 12px; color: var(--steel); border-style: dashed; }
.chat-admin { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 215, 120, .06); border-top: 1px solid rgba(255, 215, 120, .2); flex-wrap: wrap; font-weight: 800; font-size: 13.5px; }
.chat-admin > span { display: inline-flex; gap: 6px; align-items: center; color: #ffd76a; }

/* ------------------------------------------------------------------ account */
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 30px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(700px 300px at 90% 0%, rgba(91, 143, 214, .3), transparent 60%), linear-gradient(180deg, rgba(21, 38, 61, .8), rgba(12, 23, 40, .8)); margin: 10px 0 30px; }
.profile-hero h1 { font-size: 32px; margin: 4px 0; }
.profile-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.profile-stats div { padding: 12px 18px; border-radius: 16px; background: rgba(6, 11, 20, .5); border: 1px solid var(--line); text-align: center; }
.profile-stats b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.profile-stats span { color: var(--muted); font-size: 12px; font-weight: 700; }
.list { display: flex; flex-direction: column; gap: 10px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(10, 19, 34, .55); transition: border-color .2s, transform .2s var(--ease); }
.list-row:hover { border-color: var(--line-3); transform: translateX(-3px); }
.list-row > div:not(.cover) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-row small { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ admin pages */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpis.small { grid-template-columns: repeat(5, 1fr); }
.kpi { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(25, 45, 72, .7), rgba(12, 23, 40, .7)); overflow: hidden; transition: transform .25s var(--ease), border-color .25s; }
a.kpi:hover { transform: translateY(-3px); border-color: var(--line-3); }
.kpi b { font-family: var(--display); font-size: 36px; line-height: 1.05; }
.kpi b small { font-size: .5em; color: var(--muted); }
.kpi > span:not(.kpi-ico) { font-weight: 800; color: var(--text-2); font-size: 14px; }
.kpi > small { color: var(--dim); font-size: 12.5px; }
.kpi-ico { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(170, 197, 222, .1); color: var(--steel-2); }
.kpi.hot { border-color: rgba(242, 198, 109, .45); background: linear-gradient(160deg, rgba(242, 198, 109, .16), rgba(12, 23, 40, .7)); }
.kpi.hot .kpi-ico { background: rgba(242, 198, 109, .18); color: var(--warn); }
.kpis.small .kpi { padding: 14px 16px; }
.kpis.small .kpi b { font-size: 28px; }
.dash-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); }
.todo li > div { flex: 1; min-width: 0; }
.todo b { display: block; font-size: 14.5px; }
.todo small { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(170, 197, 222, .1); color: var(--steel-2); flex: none; }
.todo-warn .todo-ico { background: var(--warn-bg); color: var(--warn); }
.todo-live .todo-ico { background: rgba(255, 93, 115, .15); color: var(--live); }
.todo-good .todo-ico { background: var(--good-bg); color: var(--good); }
.all-clear { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px; text-align: center; color: var(--muted); }
.all-clear .i { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--good-bg); color: var(--good); }
.all-clear b { color: var(--text); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 430px; overflow-y: auto; }
.feed li { display: flex; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li:last-child { border: 0; }
.feed-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(170, 197, 222, .08); color: var(--steel); flex: none; }
.feed-ico .i { width: 15px; height: 15px; }
.feed li > div { flex: 1; display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.feed a { color: var(--steel-2); font-weight: 700; }
.feed time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.sys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.sys div { padding: 12px 14px; border-radius: 14px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); }
.sys dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.sys dd { margin: 2px 0 0; font-weight: 800; }
.sys small { color: var(--dim); font-weight: 600; font-size: 11.5px; display: block; }
.sys .ok { color: var(--good); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(6, 11, 20, .3); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(170, 197, 222, .03); }
.t-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.t-cell b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; display: block; }
.t-cell small { display: block; font-size: 11.5px; font-family: var(--display); }
.num-in { width: 100px !important; min-height: 38px !important; padding: 6px 10px !important; text-align: center; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.bullets { margin: 0; padding-inline-start: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

.m-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 16px; background: #0c182b; }
.m-hero-bg { position: absolute; inset: 0; }
.m-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(14px); transform: scale(1.15); }
.m-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 11, 20, .6), rgba(6, 11, 20, .92)); }
.m-hero-in { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px; flex-wrap: wrap; }
.m-hero-in h1 { font-size: 28px; margin: 8px 0 10px; }
.m-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lifecycle { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.lifecycle li { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--dim); padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); }
.lifecycle li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(170, 197, 222, .08); }
.lifecycle li span .i { width: 13px; height: 13px; }
.lifecycle li.done { color: var(--good); }
.lifecycle li.done span { background: var(--good-bg); }
.lifecycle li.cur { color: var(--text); border-color: var(--steel); background: rgba(170, 197, 222, .1); }
.lifecycle li.cur span { background: var(--silver-btn); color: #0a1424; }
.m-body { min-width: 0; }
.plist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); }
.prow.pending { border-color: rgba(242, 198, 109, .28); background: linear-gradient(90deg, rgba(242, 198, 109, .07), rgba(6, 11, 20, .45)); }
.prow.banned { border-color: rgba(242, 120, 140, .25); }
.prow-main { min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.prow-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-tag { display: inline-flex !important; gap: 5px; align-items: center; color: var(--steel) !important; }
.team-tag.pending { color: var(--warn) !important; }
.prow-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--muted); min-width: 0; }
.prow-meta .note { display: inline-flex; gap: 5px; align-items: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-meta time { color: var(--dim); }
.prow-actions { display: flex; gap: 6px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 4px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0; }
.setting > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.setting > div:first-child > .i { width: 26px; height: 26px; color: var(--steel); margin-bottom: 6px; }
.setting b { font-size: 15.5px; }
.setting small { color: var(--muted); font-size: 13px; }
.danger-zone { border-color: rgba(242, 120, 140, .3); margin-top: 18px; }
.danger-zone .card-head h3 .i { color: var(--bad); }
.danger-zone .setting { padding: 12px 0; border-top: 1px solid var(--line); }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 10px; }
.br-player { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); text-align: start; transition: all .2s; }
.br-player span { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-player i { color: var(--muted); display: grid; }
.br-player:hover:not(:disabled) { border-color: var(--bad); }
.br-player.out { opacity: .45; filter: grayscale(1); }
.br-player.out span { text-decoration: line-through; }
.br-player.out:hover { opacity: .8; border-color: var(--good); }
.places-form { display: flex; flex-direction: column; gap: 10px; }
.place-pick { display: flex; align-items: center; gap: 12px; }
.place-pick select { flex: 1; }
.chat-items { display: flex; flex-direction: column; gap: 8px; }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); text-align: start; width: 100%; transition: border-color .2s; }
.chat-item:hover { border-color: var(--line-3); }
.chat-item > div { flex: 1; min-width: 0; }
.chat-item b { display: block; }
.chat-item small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(170, 197, 222, .1); color: var(--steel); flex: none; }
.chat-item-ico.live { background: rgba(255, 93, 115, .14); color: var(--live); }

/* tournament form */
.modal-form .modal-body { padding: 0; }
.form-layout { display: grid; grid-template-columns: 1fr 340px; }
.tform { padding: 28px; gap: 18px; }
.form-sec { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(6, 11, 20, .3); }
.form-sec h4 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.form-sec h4 span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--silver-btn); color: #0a1424; font-family: var(--display); font-size: 15px; }
.prize-rows { display: flex; flex-direction: column; gap: 8px; }
.prize-row { display: grid; grid-template-columns: 30px 1fr 1.4fr 38px; gap: 8px; align-items: center; }
.prize-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(170, 197, 222, .1); font-family: var(--display); font-weight: 700; color: var(--steel-2); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: -28px; padding: 16px 0 4px; background: linear-gradient(180deg, transparent, #0f1e33 30%); margin-top: 4px; }
.form-preview { border-inline-start: 1px solid var(--line); padding: 28px 22px; background: rgba(6, 11, 20, .35); display: flex; flex-direction: column; gap: 16px; position: sticky; top: 0; align-self: start; }
.form-preview .tcard { pointer-events: none; }
.preview-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 13.5px; }
.preview-facts li { display: flex; gap: 8px; align-items: center; }
.preview-facts .i { color: var(--steel); }

/* match panel */
.mp { display: flex; flex-direction: column; gap: 16px; }
.mp-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mp-side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 20px; background: rgba(6, 11, 20, .45); border: 1px solid var(--line); text-align: center; min-height: 140px; justify-content: center; }
.mp-side b { font-size: 16px; }
.mp-side small { color: var(--muted); font-size: 12px; }
.mp-side.won { border-color: rgba(95, 211, 160, .5); background: linear-gradient(180deg, rgba(95, 211, 160, .15), rgba(6, 11, 20, .45)); }
.mp-side.lost { opacity: .5; }
.mp-avs { display: flex; }
.mp-avs .av + .av { margin-inline-start: -14px; }
.mp-actions { display: flex; flex-direction: column; gap: 10px; }
.mp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(6, 11, 20, .3); }
.mp-row > span { display: inline-flex; gap: 7px; align-items: center; font-weight: 800; min-width: 140px; color: var(--text-2); }
.mp-row > span .i { color: var(--steel); }
.mp-row .btn { flex: 1; min-width: 130px; }
.mp-row small { width: 100%; }
.mp-swap { padding: 12px; border-radius: 16px; border: 1px dashed var(--line-2); }
.mp-swap summary { cursor: pointer; font-weight: 800; display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.mp-swap[open] summary { margin-bottom: 10px; }
.mp-swap .btn { margin-top: 10px; }

/* ------------------------------------------------------------------ misc pages */
.plain-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.plain-card { max-width: 480px; text-align: center; padding: 40px 30px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, #13243b, #0d1a2d); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.plain-card a { color: var(--steel-2); text-decoration: underline; font-weight: 700; }
.boot-error { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; }

/* splash */
#splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(600px 400px at 50% 40%, rgba(60, 109, 180, .3), transparent 70%), #060b14; transition: opacity .45s, visibility .45s; }
#splash.hide { opacity: 0; visibility: hidden; }
.splash-logo { position: relative; width: 96px; height: 96px; }
.splash-logo img { width: 96px; height: 96px; animation: splashSpin 2.4s var(--ease) infinite; filter: drop-shadow(0 12px 30px rgba(91, 143, 214, .6)); }
.splash-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--steel-2); border-right-color: rgba(170, 197, 222, .3); animation: spin 1.1s linear infinite; }
.splash-word { font-weight: 900; font-size: 24px; direction: ltr; }
.splash-word span { color: var(--steel); font-weight: 600; }
.splash-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(170, 197, 222, .15); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--silver); border-radius: inherit; animation: load 1.1s ease-in-out infinite; }

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

/* ------------------------------------------------------------------ animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { transform: scale(1.06); } 50% { transform: scale(1.12); } }
@keyframes sweep { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(33.333%); } }
@keyframes shine { 0% { background-position: 200% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes load { 0% { transform: translateX(160%); } 100% { transform: translateX(-260%); } }
@keyframes splashSpin { 0% { transform: rotate(0) scale(.95); } 50% { transform: rotate(-180deg) scale(1.03); } 100% { transform: rotate(-360deg) scale(.95); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .inbox.staff.has-thread { grid-template-columns: 300px 1fr; }
  .inbox-info { display: none; }
  .form-layout { grid-template-columns: 1fr; }
  .form-preview { display: none; }
  .kpis.small { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; gap: 20px; text-align: center; }
  .hero-copy { align-items: center; order: 2; }
  .hero-art { order: 1; max-width: 560px; width: 100%; margin: 0 auto; aspect-ratio: 16 / 11; }
  .lead { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .t-layout { grid-template-columns: 1fr; }
  .t-side { position: static; order: -1; }
  .t-hero-in { grid-template-columns: 1fr; }
  .t-hero-cover { max-height: 260px; aspect-ratio: 16/8; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-main { padding: 20px 18px 110px; }
  .dash-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  :root { --top-h: 62px; }
  body { font-size: 14.5px; }
  .nav-links, .user-name, .user-btn > .i { display: none; }
  .user-btn { padding: 3px; }
  .topbar-in { padding: 0 16px; justify-content: space-between; }
  .page { padding: 12px 16px 120px; }
  .footer { padding-bottom: 76px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 60; background: rgba(8, 15, 27, .94); backdrop-filter: blur(18px); border-top: 1px solid var(--line-2); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bn-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 14px; font-size: 11px; font-weight: 800; color: var(--muted); min-width: 64px; }
  .bn-item .i { width: 22px; height: 22px; }
  .bn-item.on { color: var(--text); background: rgba(170, 197, 222, .1); }
  .bn-item.on .i { color: var(--steel-2); }
  .bn-count { position: absolute; top: 2px; inset-inline-end: 12px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--live); color: #fff; font-size: 10.5px; display: grid; place-items: center; font-style: normal; padding: 0 5px; }
  #toasts { bottom: 86px; }
  .section { margin: 44px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .lb-list { grid-template-columns: 1fr; }
  .pod { width: 31%; }
  .pod-person b { font-size: 13.5px; max-width: 100%; }
  .pod-1 .pod-stand { height: 110px; } .pod-2 .pod-stand { height: 80px; } .pod-3 .pod-stand { height: 60px; }
  .pod-stand { font-size: 30px; }
  .grid-2, .settings-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-end { justify-content: stretch; }
  .search { max-width: none; }
  .inbox, .inbox.staff { grid-template-columns: 1fr !important; height: calc(100vh - var(--top-h) - 150px); min-height: 460px; border-radius: var(--r-lg); }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .inbox-thread { display: none; }
  .back-mobile { display: grid; }
  .msg { max-width: 88%; }
  .mobile-cta { display: flex; position: fixed; bottom: calc(66px + env(safe-area-inset-bottom)); inset-inline: 10px; z-index: 55; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px; background: rgba(16, 29, 49, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
  .mobile-cta div { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .mobile-cta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .mobile-cta small { color: var(--muted); font-size: 12px; }
  .prow { grid-template-columns: auto 1fr auto; }
  .prow-meta { grid-column: 2 / -1; grid-row: 2; }
  .modal-wrap { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 26px 26px 0 0; transform: translateY(40px); }
  .modal-body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .modal-chat .modal-body { height: 92vh; padding: 0; }
  .tform { padding: 22px 16px; }
  .form-actions { bottom: -22px; }
  .kpis.small { grid-template-columns: repeat(2, 1fr); }
  .kpis.small .kpi:last-child { display: none; }
  .m-hero-in h1 { font-size: 22px; }
  .cover-sq { width: 64px; height: 64px; border-radius: 16px; }
  .cta-band-in { padding: 28px 22px; }
  .bracket { --w: 200px; --gap: 34px; }
  .bracket-scroll { padding: 16px; }
  .profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 16px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
}
@media (max-width: 520px) {
  .display { font-size: 40px; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1; padding: 12px 10px; }
  .hero-stats b { font-size: 24px; }
  .fc-2 { display: none; }
  .fc-1 { inset-inline-end: 4%; bottom: 4%; }
  .grid-cards { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 28px; }
  .kpi-ico { display: none; }
  .t-hero-in { padding: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 10px; }
  .prize-row { grid-template-columns: 1fr 1fr 34px; }
  .prize-i { display: none; }
  .mp-vs { grid-template-columns: 1fr; }
  .mp-vs .vs-x { justify-self: center; }
  .dialog-actions { grid-template-columns: 1fr; }
  .dialog-actions .btn-ghost { order: 2; }
  .ticker-tag { padding: 10px 12px; }
}

/* =====================================================================
   v3.1 — simpler layouts + decoration
   ===================================================================== */
/* ---------- ambient decoration (fixed, behind everything) */
#decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#decor .swirl { position: absolute; stroke: rgba(190, 212, 235, .10); }
#decor .sw1 { width: 760px; height: 760px; top: -260px; inset-inline-start: -240px; animation: rotate 140s linear infinite; }
#decor .sw2 { width: 560px; height: 560px; bottom: -220px; inset-inline-end: -180px; animation: rotate 110s linear infinite reverse; stroke: rgba(91, 143, 214, .14); }
#decor .glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 26s ease-in-out infinite; }
#decor .g1 { width: 420px; height: 420px; background: rgba(60, 109, 180, .35); top: 30%; inset-inline-end: -120px; }
#decor .g2 { width: 360px; height: 360px; background: rgba(170, 197, 222, .16); bottom: 5%; inset-inline-start: 10%; animation-delay: -12s; }
#decor .stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.55), transparent 60%),
  radial-gradient(1.5px 1.5px at 47% 33%, rgba(200,220,245,.6), transparent 60%), radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.6), transparent 60%),
  radial-gradient(1.5px 1.5px at 82% 58%, rgba(200,220,245,.7), transparent 60%), radial-gradient(1px 1px at 91% 86%, rgba(255,255,255,.5), transparent 60%),
  radial-gradient(1px 1px at 7% 92%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1.5px 1.5px at 58% 88%, rgba(200,220,245,.5), transparent 60%);
  animation: twinkle 6s ease-in-out infinite; }
#decor .stars.s2 { transform: translate(7%, 11%) scale(1.1); animation-delay: -3s; opacity: .7; }
#decor .grid-fade { position: absolute; inset: 0 0 auto 0; height: 520px; background-image: linear-gradient(rgba(170,197,222,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(170,197,222,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }

/* ---------- ornament title */
.orn-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.orn-title.center { align-items: center; text-align: center; }
.orn-title h2 { font-size: clamp(24px, 3vw, 32px); }
.orn { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; }
.orn i { width: 70px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--steel)); display: block; }
.orn i:last-child { background: linear-gradient(270deg, transparent, var(--steel)); }
.orn img { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(170, 197, 222, .6)); animation: rotate 18s linear infinite; }
.orn-title:not(.center) .orn i:first-child { display: none; }
.eyebrow i.r { background: linear-gradient(270deg, transparent, var(--steel)); }
.more-row { margin-top: 22px; }

/* ---------- simpler cinematic hero */
.hero2 { position: relative; margin: 0 -24px; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); isolation: isolate; }
.hero2-bg { position: absolute; inset: 0; z-index: -1; }
.hero2-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .55; animation: breathe 18s ease-in-out infinite; }
.hero2-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(6, 11, 20, .25), rgba(6, 11, 20, .85) 70%), linear-gradient(180deg, rgba(6, 11, 20, .2) 0%, rgba(6, 11, 20, .1) 50%, var(--bg) 100%); }
.hero2 .beam { z-index: 0; }
.hero2-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 60px 20px 90px; max-width: 760px; }
.hero2 .lead { margin: 0 auto; max-width: 560px; }
.hero2 .hero-cta { justify-content: center; }
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.hero-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(10, 19, 34, .62); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.hero-pills b { font-family: var(--display); font-size: 19px; color: var(--text); }
.hero-pills .is-live { border-color: rgba(255, 93, 115, .5); }
.hero-pills .dot { color: var(--live); animation: pulse 1.6s infinite; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--steel); background: rgba(10, 19, 34, .5); animation: float 3s ease-in-out infinite; }

/* ---------- card decoration: HUD corner accents */
.tcard::after { content: ''; position: absolute; inset: 8px; border-radius: calc(var(--r-lg) - 6px); pointer-events: none; z-index: 4; opacity: 0; transition: opacity .35s;
  background:
    linear-gradient(var(--steel-2), var(--steel-2)) top right / 18px 1.5px no-repeat, linear-gradient(var(--steel-2), var(--steel-2)) top right / 1.5px 18px no-repeat,
    linear-gradient(var(--steel-2), var(--steel-2)) bottom left / 18px 1.5px no-repeat, linear-gradient(var(--steel-2), var(--steel-2)) bottom left / 1.5px 18px no-repeat; }
.tcard:hover::after { opacity: .8; }
.card::after { content: ''; position: absolute; top: 0; inset-inline: 22%; height: 1px; background: linear-gradient(90deg, transparent, rgba(220, 235, 250, .45), transparent); pointer-events: none; }
.footer { position: relative; }
.footer::before { content: ''; position: absolute; top: -1px; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--steel), transparent); opacity: .5; }
.server-chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 16px; background: rgba(10, 19, 34, .7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.server-chip img, .server-chip > .i { width: 40px; height: 40px; border-radius: 12px; }
.server-chip b { display: block; font-size: 14.5px; }
.server-chip span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dot.on { color: var(--good); background: var(--good); }

/* ---------- login page */
.page-bare { max-width: 1240px; padding-top: 10px; }
.login { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: stretch; min-height: calc(100vh - var(--top-h) - 60px); padding-bottom: 30px; }
.login-art { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), 0 0 120px -40px rgba(91, 143, 214, .6); min-height: 520px; }
.login-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: breathe 16s ease-in-out infinite; }
.login-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 20, .1) 30%, rgba(6, 11, 20, .92)); }
.login-art-copy { position: absolute; z-index: 2; bottom: 0; inset-inline: 0; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.login-art-copy h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; line-height: 1.15; }
.hud { position: absolute; z-index: 3; width: 34px; height: 34px; border: 2px solid rgba(220, 235, 250, .7); }
.hud.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.hud.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.hud.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.hud.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .av { margin-inline-end: -12px; box-shadow: 0 0 0 3px var(--bg); }
.avatar-stack span { margin-inline-start: 22px; font-size: 13.5px; color: var(--text-2); font-weight: 700; }
.login-card { display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 38px 36px; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(25, 45, 72, .82), rgba(12, 23, 40, .9)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: -120px; inset-inline-end: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(88, 101, 242, .28), transparent 65%); pointer-events: none; }
.login-logo { width: 84px; height: 84px; filter: drop-shadow(0 12px 30px rgba(91, 143, 214, .55)); animation: float 5s ease-in-out infinite; }
.login-card h1 { font-size: 30px; }
.btn-xl { min-height: 60px; font-size: 17px; border-radius: 18px; }
.btn-xl .i { width: 26px; height: 26px; }
.check-row { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(6, 11, 20, .4); }
.check-row input { position: absolute; opacity: 0; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-3); flex: none; display: grid; place-items: center; margin-top: 2px; transition: all .2s; }
.check-row input:checked + .check { background: #5865f2; border-color: #5865f2; }
.check-row input:checked + .check::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-row input:focus-visible + .check { outline: 2px solid var(--steel); outline-offset: 2px; }
.check-row > span:last-child { font-weight: 700; display: flex; flex-direction: column; }
.check-row small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks li > .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(170, 197, 222, .1); color: var(--steel-2); }
.perks b { display: block; font-size: 14.5px; }
.perks span { color: var(--muted); font-size: 13px; }
.login-server:empty { display: none; }

/* ---------- Discord-style profile */
.dprofile { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 38, 61, .9), rgba(12, 23, 40, .9)); box-shadow: var(--shadow-lg); margin: 10px 0 34px; --accent: #3c6db4; }
.dprofile-banner { position: relative; height: 170px; background: radial-gradient(500px 200px at 80% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--accent), #0d1a2d 85%); overflow: hidden; }
.dprofile-banner img { width: 100%; height: 100%; object-fit: cover; }
.orn-swirl { position: absolute; width: 340px; height: 340px; inset-inline-start: -60px; top: -120px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 30px rgba(255, 255, 255, .04), 0 0 0 70px rgba(255, 255, 255, .03); }
.dprofile-body { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px; margin-top: -56px; flex-wrap: wrap; position: relative; }
.dprofile-body > .av { box-shadow: 0 0 0 6px #111f33, 0 18px 40px -10px rgba(0, 0, 0, .7); }
.dprofile-id { flex: 1; min-width: 200px; padding-bottom: 6px; }
.dprofile-id h1 { font-size: 30px; }
.dprofile-id .chips { margin-top: 8px; }
.dprofile-actions { display: flex; gap: 8px; padding-bottom: 10px; flex-wrap: wrap; }
.badge { gap: 6px; padding: 4px 11px; }
.badge .i { width: 14px; height: 14px; }
.badge.discord { background: rgba(88, 101, 242, .18); color: #aab3ff; }
.badge.ok { background: var(--good-bg); color: var(--good); }
a.badge.warn:hover { background: rgba(242, 198, 109, .22); }
.dprofile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 28px 6px; }
.dprofile-stats div { text-align: center; padding: 14px; border-radius: 18px; background: rgba(6, 11, 20, .5); border: 1px solid var(--line); }
.dprofile-stats b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dprofile-stats span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.dprofile-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 14px 28px 24px; }
.dprofile-meta dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.dprofile-meta dd { margin: 2px 0 0; font-weight: 800; font-size: 14px; }

/* ---------- admin simplifications */
.kpis.small.three { grid-template-columns: repeat(3, 1fr); }
.sys-strip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(10, 19, 34, .55); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.sys-strip > .i { color: var(--steel); }
.sys-strip span { flex: 1; min-width: 220px; }
.sys-strip b { color: var(--text-2); }

@media (max-width: 1024px) {
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 260px; order: 2; }
  .login-art-copy h2 { font-size: 26px; }
}
@media (max-width: 860px) {
  .hero2 { margin: 0 -16px; min-height: 76vh; border-radius: 0 0 28px 28px; }
  .hero2-in { padding: 40px 16px 80px; }
  .login-card { padding: 28px 20px; }
  .dprofile-banner { height: 120px; }
  .dprofile-body { padding: 0 18px; justify-content: center; text-align: center; }
  .dprofile-id .chips { justify-content: center; }
  .dprofile-actions { width: 100%; justify-content: center; }
  .dprofile-stats { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .dprofile-meta { padding: 12px 18px 20px; justify-content: center; text-align: center; }
  #decor .sw1 { width: 480px; height: 480px; }
  .kpis.small.three .kpi:last-child { display: flex; }
  .kpis.small.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

.dprofile-id { padding-top: 62px; }
.dprofile-actions { padding-top: 62px; }
.hero2-bg img { opacity: .42; }
.hero2-bg::after { background: radial-gradient(ellipse 55% 45% at 50% 42%, rgba(6, 11, 20, .72), rgba(6, 11, 20, .35) 70%, rgba(6, 11, 20, .8)), linear-gradient(180deg, rgba(6, 11, 20, .2) 0%, transparent 50%, var(--bg) 100%); }
@media (max-width: 860px) { .dprofile-id, .dprofile-actions { padding-top: 0; } .dprofile-body { margin-top: -50px; } }
@media (max-width: 860px) { .login-art { display: none; } .login { min-height: 0; } }

/* tournament page: full-page dark backdrop from the tournament image */
.t-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.t-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(4px) saturate(1.2) brightness(.8); transform: scale(1.06); opacity: .85; animation: breathe 22s ease-in-out infinite; }
.t-backdrop::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 70% at 50% 40%, rgba(6, 11, 20, .25), rgba(6, 11, 20, .7) 80%),
  linear-gradient(180deg, rgba(6, 11, 20, .45) 0%, rgba(10, 22, 40, .35) 45%, rgba(6, 11, 20, .85) 100%),
  linear-gradient(135deg, rgba(60, 109, 180, .22), transparent 60%); }
.t-backdrop + .t-page .t-hero-bg img { opacity: .35; }

/* support (headset) button next to the account menu */
.support-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(15, 28, 48, .55); color: var(--text-2); transition: border-color .2s, color .2s, background .2s, transform .2s; flex: none; }
.support-btn .i { width: 20px; height: 20px; }
.support-btn:hover { border-color: var(--line-3); color: var(--text); transform: translateY(-1px); }
.support-btn.on { background: var(--silver-btn); color: #0a1424; border-color: transparent; }
.support-btn .nav-dot { position: absolute; top: 4px; inset-inline-end: 4px; width: 9px; height: 9px; }
@media (max-width: 860px) { .support-btn { width: 38px; height: 38px; } }

/* tournament card hover fix: clean clipping, no seams, no corner artifacts */
.tcard { background: linear-gradient(180deg, #13243b 0%, #0e1b2f 100%); -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); will-change: transform; }
.tcard::after { display: none; }
.tcard-media { margin: -1px -1px 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #13243b; }
.tcard-media .cover { inset: 0; transform: none !important; }
.tcard-media .cover > img { transition: transform .7s var(--ease); transform-origin: center; }
.tcard:hover .tcard-media .cover > img { transform: scale(1.06); }
.tcard-media::after { inset: -1px; background: linear-gradient(180deg, rgba(6, 11, 20, .35) 0%, transparent 32%, transparent 55%, #13243b 100%); z-index: 1; }
.tcard-chips, .tcard-mode { z-index: 2; }
.tcard-shine { border-radius: inherit; }
