/* Paradox — HUD theme.
   One place to retheme: the tokens below. Primary buttons / active tab use --primary-*;
   swap those four values to recolor every call-to-action at once. */
:root {
  --bg: #04070d;
  --panel: rgba(7, 13, 26, .86);
  --panel-2: rgba(14, 24, 46, .9);
  --row: rgba(10, 18, 36, .92);
  --border: rgba(88, 120, 176, .36);
  --line: rgba(92, 132, 204, .3);
  --text: #e9eef8;
  --text-2: #c3cee4;
  --muted: #8e9bb5;
  --accent: #ff3547;
  --accent-dim: #7a1a24;
  --cyan: #22d3f0;
  --blue: #7cc7ff;
  --amber: #ffc247;
  --good: #5be38a;

  --primary-from: #d9303d;
  --primary-to: #8f1824;
  --primary-edge: #ff5563;
  --primary-glow: rgba(255, 60, 80, .5);

  --cut: 14px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: #050912;
}
#bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("bg.webp") center top / cover no-repeat,
    radial-gradient(55% 55% at 0% 52%, rgba(255, 40, 62, .34), transparent 72%),
    radial-gradient(55% 55% at 100% 48%, rgba(24, 140, 255, .34), transparent 72%),
    radial-gradient(38% 16% at 10% 100%, rgba(255, 40, 62, .3), transparent 72%),
    radial-gradient(38% 16% at 90% 100%, rgba(24, 150, 255, .3), transparent 72%),
    linear-gradient(180deg, #050912 0%, #060a15 55%, #04060c 100%);
}
/* angular circuit lines down both edges (hidden automatically once a real bg.webp loads) */
body::before, body::after {
  content: ""; position: fixed; top: 0; bottom: 0; width: min(26vw, 420px);
  background-repeat: no-repeat; background-size: auto 100%;
  pointer-events: none; z-index: 0; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent); mask-image: linear-gradient(90deg, #000 55%, transparent);
}
body::before { left: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 1000'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='none' stroke='%23ff3b4d' stroke-linecap='square'%3E%3Cg filter='url%28%23b%29' stroke-width='5' opacity='.55'%3E%3Cpath d='M0 150 L150 300 L150 700 L0 850'/%3E%3Cpath d='M0 230 L96 326 L96 674 L0 770'/%3E%3Cpath d='M150 420 H250 L290 380 H360'/%3E%3Cpath d='M96 560 H200 L236 596 H300'/%3E%3Cpath d='M0 520 H60 L96 484'/%3E%3Cpath d='M0 60 L60 120 H200'/%3E%3Cpath d='M0 940 L70 880 H210'/%3E%3C/g%3E%3Cg stroke-width='1.4' opacity='.9'%3E%3Cpath d='M0 150 L150 300 L150 700 L0 850'/%3E%3Cpath d='M0 230 L96 326 L96 674 L0 770'/%3E%3Cpath d='M150 420 H250 L290 380 H360'/%3E%3Cpath d='M96 560 H200 L236 596 H300'/%3E%3Cpath d='M0 520 H60 L96 484'/%3E%3Cpath d='M0 60 L60 120 H200'/%3E%3Cpath d='M0 940 L70 880 H210'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ff3b4d'%3E%3Ccircle cx='360' cy='380' r='3'/%3E%3Ccircle cx='300' cy='596' r='3'/%3E%3Ccircle cx='200' cy='120' r='2.5'/%3E%3Ccircle cx='210' cy='880' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); background-position: left center; }
body::after { right: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 1000'%3E%3Cg transform='translate%28420 0%29 scale%28-1 1%29'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='none' stroke='%232aa8ff' stroke-linecap='square'%3E%3Cg filter='url%28%23b%29' stroke-width='5' opacity='.55'%3E%3Cpath d='M0 150 L150 300 L150 700 L0 850'/%3E%3Cpath d='M0 230 L96 326 L96 674 L0 770'/%3E%3Cpath d='M150 420 H250 L290 380 H360'/%3E%3Cpath d='M96 560 H200 L236 596 H300'/%3E%3Cpath d='M0 520 H60 L96 484'/%3E%3Cpath d='M0 60 L60 120 H200'/%3E%3Cpath d='M0 940 L70 880 H210'/%3E%3C/g%3E%3Cg stroke-width='1.4' opacity='.9'%3E%3Cpath d='M0 150 L150 300 L150 700 L0 850'/%3E%3Cpath d='M0 230 L96 326 L96 674 L0 770'/%3E%3Cpath d='M150 420 H250 L290 380 H360'/%3E%3Cpath d='M96 560 H200 L236 596 H300'/%3E%3Cpath d='M0 520 H60 L96 484'/%3E%3Cpath d='M0 60 L60 120 H200'/%3E%3Cpath d='M0 940 L70 880 H210'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%232aa8ff'%3E%3Ccircle cx='360' cy='380' r='3'/%3E%3Ccircle cx='300' cy='596' r='3'/%3E%3Ccircle cx='200' cy='120' r='2.5'/%3E%3Ccircle cx='210' cy='880' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-position: right center;
  -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent); mask-image: linear-gradient(270deg, #000 55%, transparent); }
html.has-bg body::before, html.has-bg body::after { display: none; }
@media (max-width: 900px) { body::before, body::after { display: none; } }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ------------------------------------------------------------ header */
#top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 26px;
  min-height: 78px; padding: 8px 28px;
  background: linear-gradient(180deg, rgba(5, 9, 18, .95), rgba(5, 9, 18, .86));
}
#top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 53, 71, .95) 0, rgba(255, 53, 71, .45) 16%, rgba(80, 100, 160, .22) 38%, rgba(80, 100, 160, .22) 62%, rgba(26, 160, 255, .65) 84%, rgba(34, 211, 240, .95) 100%);
  box-shadow: 0 0 14px rgba(255, 53, 71, .35), 0 0 14px rgba(26, 160, 255, .3);
}
.brand { display: flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; opacity: .88; }
.brandlogo { height: 34px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(255, 53, 71, .35)); }

#nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
#nav .pill {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 22px 0 18px;
  color: var(--text-2); font-weight: 600; white-space: nowrap;
  filter: drop-shadow(0 0 0 transparent); transition: filter .15s, color .15s;
}
#nav .pill:hover { text-decoration: none; color: #fff; filter: drop-shadow(0 0 7px rgba(34, 211, 240, .45)); }
#nav .pill::before, #nav .pill::after { content: ""; position: absolute; z-index: -1; }
/* chamfered tab: top-left + bottom-right corners cut */
#nav .pill::before {
  inset: 0; background: linear-gradient(180deg, rgba(120, 170, 240, .6), rgba(70, 105, 170, .3));
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
#nav .pill::after {
  inset: 1px; background: linear-gradient(180deg, rgba(15, 24, 46, .97), rgba(8, 13, 26, .97));
  clip-path: polygon(12.6px 0, 100% 0, 100% calc(100% - 12.6px), calc(100% - 12.6px) 100%, 0 100%, 0 12.6px);
}
#nav .pill.on { color: #fff; filter: drop-shadow(0 0 9px var(--primary-glow)); }
#nav .pill.on::before { background: linear-gradient(180deg, var(--primary-edge), var(--primary-to)); }
#nav .pill.on::after { background: linear-gradient(180deg, var(--primary-from), var(--primary-to)); }
.ico { width: 19px; height: 19px; flex: none; }

#who { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.avatar {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--cyan); border: 2px solid var(--cyan);
  background: radial-gradient(circle at 50% 35%, rgba(34, 211, 240, .22), rgba(8, 14, 30, .9) 70%);
  box-shadow: 0 0 14px rgba(34, 211, 240, .45), inset 0 0 10px rgba(34, 211, 240, .2);
}
.avatar:hover { text-decoration: none; box-shadow: 0 0 20px rgba(34, 211, 240, .7), inset 0 0 12px rgba(34, 211, 240, .3); }
.avatar svg { width: 28px; height: 28px; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; border: 2px solid #050912; box-shadow: 0 0 8px rgba(61, 220, 132, .8); }

/* ------------------------------------------------------------ page */
#app { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 30px 24px 60px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
#foot { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 12px 24px 34px; color: var(--muted); font-size: 13px; }
#foot .sep { margin: 0 8px; opacity: .5; }

h1 { font-size: 29px; font-weight: 700; margin: 0 0 6px; letter-spacing: .2px; text-shadow: 0 0 22px rgba(90, 140, 255, .28); }
.sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
h1 + .sub { position: relative; padding-bottom: 14px; }
h1 + .sub::after {
  content: ""; position: absolute; left: 2px; bottom: 0; width: 118px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 20px); transform: skewX(-30deg);
  filter: drop-shadow(0 0 4px rgba(255, 53, 71, .7));
}
h2 {
  display: flex; align-items: center; gap: 11px;
  font-size: 19px; font-weight: 700; margin: 28px 0 12px; color: var(--text);
}
h2::before {
  content: ""; flex: none; width: 9px; height: 19px; transform: skewX(-26deg);
  background: linear-gradient(180deg, #ff6372, #c01927); box-shadow: 0 0 10px rgba(255, 53, 71, .75);
}
h3 { font-size: 15px; }

/* ------------------------------------------------------------ framed panels */
.panel, .match-card, details.panel {
  --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --shape-in: polygon(calc(var(--cut) - .41px) 0, calc(100% - var(--cut) + .41px) 0, 100% calc(var(--cut) - .41px), 100% calc(100% - var(--cut) + .41px), calc(100% - var(--cut) + .41px) 100%, calc(var(--cut) - .41px) 100%, 0 calc(100% - var(--cut) + .41px), 0 calc(var(--cut) - .41px));
  position: relative; isolation: isolate;
  margin-bottom: 18px; padding: 18px 22px;
  background: none; border: 0; border-radius: 0;
  filter: drop-shadow(0 0 6px rgba(255, 53, 71, .2)) drop-shadow(0 0 8px rgba(26, 150, 255, .18));
}
.panel::before, .match-card::before, details.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--shape);
  background:
    linear-gradient(90deg, transparent calc(100% - 84px), #36dcff calc(100% - 84px)) top / 100% 3px no-repeat,
    linear-gradient(90deg, #ff3547 84px, transparent 84px) bottom / 100% 3px no-repeat,
    linear-gradient(90deg, #ff3547 0%, #ff3547 4%, rgba(104, 112, 214, .8) 38%, rgba(60, 150, 255, .92) 94%, #36dcff 100%);
}
.panel::after, .match-card::after, details.panel::after {
  content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--shape-in);
  background: linear-gradient(180deg, rgba(11, 19, 38, .93), rgba(6, 11, 22, .92));
}
/* a match card / panel nested in another panel is just a flat boxed row */
.panel .match-card, .panel .panel {
  filter: none; margin-bottom: 10px; padding: 12px 14px;
  background: var(--row); border: 1px solid var(--border); border-left: 3px solid rgba(255, 53, 71, .75);
}
.panel .match-card::before, .panel .match-card::after, .panel .panel::before, .panel .panel::after { display: none; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.match-card .vs { font-size: 17px; margin-bottom: 8px; }
.match-card .vs b { font-weight: 700; }

/* a heading directly above a panel sits inside its frame, with a divider under it */
@supports selector(:has(+ *)) {
  h2:has(+ .panel), h2:has(+ .match-card), h2:has(+ details.panel) {
    position: relative; z-index: 3; height: 50px; margin: 28px 0 -50px; padding: 0 24px 0 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  h2 + .panel, h2 + .match-card, h2 + details.panel { padding-top: 64px; }
  h2 + .panel::after, h2 + .match-card::after, h2 + details.panel::after {
    background:
      linear-gradient(var(--line), var(--line)) 16px 49px / calc(100% - 32px) 1px no-repeat,
      linear-gradient(180deg, rgba(11, 19, 38, .93), rgba(6, 11, 22, .92));
  }
  h2 + details.panel { padding-top: 64px; }
}

/* ------------------------------------------------------------ tables: boxed rows */
table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border: 0; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding-top: 2px; padding-bottom: 2px; }
td { background: var(--row); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td:first-child { border-left: 3px solid rgba(255, 53, 71, .7); }
td:last-child { border-right: 1px solid var(--line); }
tbody tr:hover > td { background: rgba(20, 36, 70, .95); border-color: rgba(34, 211, 240, .4); }
tbody tr:hover > td:first-child { border-left-color: var(--cyan); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 52px; }
.me-row > td { background: rgba(40, 14, 22, .95) !important; }
td > a { font-weight: 600; }

.tag {
  display: inline-block; font-size: 12px; line-height: 1.5; padding: 1px 10px; border-radius: 999px; vertical-align: middle;
  border: 1px solid rgba(124, 152, 204, .5); background: rgba(40, 62, 104, .4); color: var(--text-2);
}
.tag.amber { color: var(--amber); border-color: rgba(190, 130, 30, .8); background: rgba(120, 80, 10, .3); }
.tag.blue  { color: var(--blue);  border-color: rgba(60, 150, 230, .7); background: rgba(20, 70, 130, .32); }
.tag.red   { color: #ff7280; border-color: rgba(200, 50, 64, .8); background: rgba(120, 20, 32, .32); }
.tag.good  { color: var(--good); border-color: rgba(43, 150, 88, .8); background: rgba(20, 90, 50, .32); }
.streak-up { color: var(--good); font-weight: 600; }
.streak-dn { color: #ff6b78; font-weight: 600; }

/* ------------------------------------------------------------ forms */
label { display: block; font-size: 14px; color: var(--text-2); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; color: var(--text); font: inherit; padding: 11px 14px; border-radius: 4px;
  background: rgba(9, 16, 32, .92); border: 1px solid rgba(88, 120, 176, .38);
}
input::placeholder, textarea::placeholder { color: #6f7c97; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34, 211, 240, .45), 0 0 14px rgba(34, 211, 240, .22);
}
select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c5d3ee' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
input[type=checkbox] { accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-narrow { max-width: 520px; }

/* ------------------------------------------------------------ buttons */
button, .btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
  background: linear-gradient(180deg, var(--primary-from), var(--primary-to));
  border: 1px solid var(--primary-edge); border-radius: 6px;
  padding: 11px 22px; margin-top: 14px;
  box-shadow: 0 0 14px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: filter .12s, box-shadow .12s;
}
button:hover, .btn:hover { filter: brightness(1.12); text-decoration: none; box-shadow: 0 0 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
a.btn { color: #fff; }
/* double-chevron on the main call-to-action buttons (not in table cells, not secondary ones) */
button:not(.ghost):not(.btn)::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l6 6-6 6M8 2l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l6 6-6 6M8 2l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}
td button::before, summary button::before { display: none; }
button.ghost, .btn.ghost, a.btn.ghost {
  color: #dbe7ff; text-shadow: none; background: rgba(10, 24, 50, .7);
  border: 1px solid rgba(70, 150, 232, .6); box-shadow: 0 0 10px rgba(30, 140, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
}
button.ghost:hover, .btn.ghost:hover { background: rgba(16, 40, 84, .85); border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 240, .3); }
button.small { padding: 6px 14px; margin: 0; font-size: 14px; }
button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ messages / toast */
.msg { padding: 11px 14px; border-radius: 4px; font-size: 14.5px; margin: 12px 0; border: 1px solid; border-left-width: 3px; }
.msg.err  { background: rgba(60, 14, 22, .85); border-color: rgba(200, 50, 64, .7); color: #ffb9bf; }
.msg.ok   { background: rgba(14, 50, 30, .85); border-color: rgba(43, 150, 88, .7); color: #b8f0cf; }
.msg.info { background: rgba(14, 38, 66, .85); border-color: rgba(60, 150, 230, .7); color: #c4e4ff; }
.ico-info, .ico-warn { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM7 7h2v5H7zM8 3.3a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' fill-rule='evenodd' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zM7 7h2v5H7zM8 3.3a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ico-warn { background: var(--amber); }
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 560px);
  padding: 12px 22px; font-size: 14.5px; color: var(--text);
  background: rgba(8, 14, 28, .97); border: 1px solid var(--line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 24px rgba(0, 0, 0, .6);
}
#toast.ok { border-color: rgba(43, 150, 88, .9); color: #c8f5db; }
#toast.err { border-color: rgba(220, 60, 76, .9); color: #ffc2c8; }
#toast[hidden] { display: none; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--cyan); }
.linkbox { word-break: break-all; background: var(--row); padding: 12px; border-radius: 4px; border: 1px solid var(--border); }
.hint { color: var(--muted); font-size: 13.5px; }
summary { cursor: pointer; }

/* ------------------------------------------------------------ cards (home, servers) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  --cut: 11px; --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  --shape-in: polygon(calc(var(--cut) - .41px) 0, calc(100% - var(--cut) + .41px) 0, 100% calc(var(--cut) - .41px), 100% calc(100% - var(--cut) + .41px), calc(100% - var(--cut) + .41px) 100%, calc(var(--cut) - .41px) 100%, 0 calc(100% - var(--cut) + .41px), 0 calc(var(--cut) - .41px));
  position: relative; isolation: isolate; display: block; padding: 16px 18px; color: var(--text);
  filter: drop-shadow(0 0 5px rgba(255, 53, 71, .16)) drop-shadow(0 0 6px rgba(26, 150, 255, .14));
  transition: filter .15s, transform .15s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -2; clip-path: var(--shape);
  background: linear-gradient(90deg, #ff3547 0%, rgba(104, 112, 214, .75) 45%, #36b8ff 100%); }
.card::after { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--shape-in);
  background: linear-gradient(180deg, rgba(12, 21, 42, .94), rgba(7, 12, 24, .93)); }
a.card:hover { text-decoration: none; transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(34, 211, 240, .45)); }
.card .t { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.card .m { color: var(--muted); font-size: 13.5px; }
/* player-count bar on server cards: cyan instead of the old red */
.card div[style*="height:5px"] { border-radius: 2px; background: rgba(60, 90, 140, .35) !important; }
.card div[style*="height:5px"] > div { background: linear-gradient(90deg, #1a9bff, var(--cyan)) !important; box-shadow: 0 0 8px rgba(34, 211, 240, .5); }

/* ------------------------------------------------------------ bracket */
.rounds { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 10px; }
.round { min-width: 220px; display: flex; flex-direction: column; gap: 12px; justify-content: space-around; }
.round h3 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 2px; }
.match { background: var(--row); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.match .side { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 13.5px; }
.match .side + .side { border-top: 1px solid var(--line); }
.match .side.win { color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--cyan); }
.match .side.lose { color: var(--muted); }
.match .side .s { font-variant-numeric: tabular-nums; color: var(--muted); }
.match .foot { padding: 4px 12px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(14, 24, 46, .9); }

/* ------------------------------------------------------------ small screens */
@media (max-width: 860px) {
  #top { flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; min-height: 0; }
  #nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
  #nav::-webkit-scrollbar { display: none; }
  #nav .pill { height: 38px; padding: 0 16px 0 14px; font-size: 14px; flex: none; }
  .brandlogo { height: 28px; }
  #who { margin-left: auto; }
  .avatar { width: 40px; height: 40px; }
  h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .row2, .row3 { grid-template-columns: 1fr; }
  #app { padding: 20px 14px 50px; }
  .panel, .match-card, details.panel { padding: 14px 14px; --cut: 11px; }
  @supports selector(:has(+ *)) { h2:has(+ .panel), h2:has(+ .match-card), h2:has(+ details.panel) { padding: 0 16px; } }
  td, th { padding: 9px 9px; }
}
