/* CS Teams Manager - the website's one stylesheet (2026-09-27).
   "Match-day broadcast": the game's own tokens (src/styles.css :root), its display
   face (Rajdhani 600/700, self-hosted, fonts/OFL.txt), its 44 px tactical grid, its
   squared radii and its rarity ladder. No inline style anywhere: the CSP is
   style-src 'self'. Motion is CSS only and stops under prefers-reduced-motion. */

@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/rajdhani-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/rajdhani-latin-700.woff2") format("woff2");
}

:root {
  --bg: #0d1015;
  --bg-deep: #090c10;
  --panel: #151b26;
  --panel-2: #1b2230;
  --inset: #0c1017;
  --track: #1f2733;
  --line: rgba(151, 170, 197, 0.16);
  --line-2: rgba(151, 170, 197, 0.3);
  --text: #e9edf4;
  --text-2: #c6cdd9;
  --dim: #8d96a9;
  --gold: #e8b13d;
  --gold-2: #f2c25a;
  --gold-wash: rgba(232, 177, 61, 0.1);
  --green: #4caf6d;
  --red: #d95050;
  --attack: #f0a83c;
  --defence: #3d8bd4;
  --rar-common: #9aa4b2;
  --rar-rare: #4a7de0;
  --rar-rare-text: #86a8ee;
  --rar-epic: #8a55dd;
  --rar-epic-text: #b596ee;
  --rar-legendary: #e8b13d;
  --r-lg: 7px;
  --r-md: 4px;
  --r-sm: 2px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Rajdhani", "Roboto Condensed", "Arial Narrow", var(--font);
  --mono: "Roboto Mono", "SF Mono", Consolas, "Liberation Mono", ui-monospace, monospace;
  --wrap: 1160px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(232, 177, 61, 0.12), transparent 62%),
    radial-gradient(700px 480px at 100% 12%, rgba(61, 139, 212, 0.07), transparent 60%),
    linear-gradient(rgba(151, 170, 197, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 170, 197, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: scroll;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
a:focus-visible, video:focus-visible, .shots-rail:focus-visible, .roster-rail:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; }
b, strong { font-weight: 700; color: var(--text); }
code { font-family: var(--mono); font-size: 0.86em; color: var(--gold); }
.gold { color: var(--gold); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 24px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--gold); color: #0b0d12; font-weight: 700; border-radius: var(--r-md);
}
.skip:focus { top: 12px; }

/* ---- the kicker: the film's small gold line with a rule before it */
.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
@media (max-width: 480px) { .kicker { font-size: 13px; letter-spacing: 0.16em; gap: 10px; } .kicker::before { width: 20px; } }

/* ---- the top bar */
.top {
  position: relative; z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.72);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; line-height: 1; white-space: nowrap; }
.brand-word span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; padding: 8px 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .wide { display: none; }
@media (max-width: 430px) { .nav .mid { display: none; } }
@media (min-width: 860px) { .nav .wide { display: inline-block; } }
@media (max-width: 380px) { .brand-word { font-size: 15px; letter-spacing: 0.1em; } .nav a { padding: 8px 6px; } }

/* ---- the reticle (the app icon's mark) and its draw-on */
.ret-arc, .ret-tick { stroke-dasharray: 130; stroke-dashoffset: 0; }
.ret-dot { transform-box: fill-box; transform-origin: center; }
.hero-ret .ret-arc { animation: ret-draw 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-ret .ret-arc:nth-child(2) { animation-delay: .12s; }
.hero-ret .ret-arc:nth-child(3) { animation-delay: .24s; }
.hero-ret .ret-arc:nth-child(4) { animation-delay: .36s; }
.hero-ret .ret-tick { animation: ret-draw .7s ease-out .55s both; }
.hero-ret .ret-dot { animation: ret-pop .45s cubic-bezier(.3, 1.6, .5, 1) .9s both; }
@keyframes ret-draw { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
@keyframes ret-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ================================================================ the showcase */

/* ---- hero */
.hero { position: relative; padding: 34px 0 0; overflow: hidden; }
.hero-media { position: relative; }
.hero-ret {
  position: absolute; z-index: 0; pointer-events: none;
  width: 150%; height: auto; left: -25%; top: 50%; transform: translateY(-50%); opacity: 0.1;
}
.hero-media .monitor { z-index: 1; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 22px; align-items: center; }
.hero-grid { grid-template-areas: "title" "media" "body"; }
.hero-title { grid-area: title; }
.hero-media { grid-area: media; }
.hero-body { grid-area: body; }
@media (min-width: 980px) {
  .hero { padding-top: 54px; }
  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); grid-template-rows: auto 1fr;
    grid-template-areas: "title media" "body media"; column-gap: 44px; row-gap: 0;
  }
  .hero-title { align-self: end; }
  .hero-body { align-self: start; }
}
.hud {
  position: relative; display: inline-block; padding: 16px 20px 18px;
  font-size: clamp(42px, 11.5vw, 76px); letter-spacing: 0.01em; text-transform: uppercase;
}
.hud span { display: block; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--gold);
}
.hud::before { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.hud::after { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 36em; margin: 6px 0 24px; }
@media (min-width: 700px) { .lede { font-size: 19px; margin-top: 18px; } }
.lede b { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 14px; min-height: 58px;
  background: var(--gold); color: #0b0d12; text-decoration: none;
  border-radius: var(--r-md);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color .15s ease;
}
.btn-play:hover { background: var(--gold-2); color: #0b0d12; }
.btn-play svg { width: 26px; height: 26px; flex: none; }
.btn-play .bp-txt { display: flex; flex-direction: column; line-height: 1.05; }
.bp-small { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.bp-big { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: 0.04em; }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 58px; padding: 0 18px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border: 1px solid rgba(232, 177, 61, 0.55); border-radius: var(--r-md);
  background: var(--gold-wash);
}
.btn-ghost:hover { background: rgba(232, 177, 61, 0.18); }
.tagline {
  margin: 22px 0 0; font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
@media (min-width: 700px) { .tagline { font-size: 15px; letter-spacing: 0.2em; } }
@media (max-width: 400px) { .btn-ghost { min-height: 48px; padding: 0 14px; font-size: 14px; } }

/* ---- the broadcast monitor */
.monitor {
  margin: 0; position: relative;
  background: linear-gradient(180deg, #1a2130, #111620);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}
.monitor-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 8px 10px; font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 9px 2px; background: #b83434; color: #fff; border-radius: var(--r-sm);
  letter-spacing: 0.2em;
}
.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.mb-score { margin-left: auto; color: var(--text); white-space: nowrap; }
.mb-score b { color: var(--gold); padding: 0 6px; }
.mb-score .side-t { color: var(--attack); }
.mb-score .side-ct { color: var(--defence); }
@media (max-width: 460px) { .mb-title { display: none; } }
.screen-wrap { position: relative; }
.screen { position: relative; border-radius: var(--r-md); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.screen video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); pointer-events: none; opacity: 0.9; }
.corner.tl { left: -5px; top: -5px; border-left-width: 2px; border-top-width: 2px; }
.corner.tr { right: -5px; top: -5px; border-right-width: 2px; border-top-width: 2px; }
.corner.bl { left: -5px; bottom: -5px; border-left-width: 2px; border-bottom-width: 2px; }
.corner.br { right: -5px; bottom: -5px; border-right-width: 2px; border-bottom-width: 2px; }
.monitor-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px;
  padding: 10px 8px 4px; font-size: 14px; color: var(--dim);
}
.monitor-foot a { color: var(--text-2); }

/* ---- the ticker: the match feed, crawling */
.ticker {
  position: relative; z-index: 1; margin-top: 38px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 16, 0.8); overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 0; animation: crawl 48s linear infinite; }
.ticker-track span {
  display: inline-block; padding: 12px 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.ticker-track span b { color: var(--gold); font-weight: 700; }
.ticker-track span i { font-style: normal; color: var(--attack); }
.ticker-track span u { text-decoration: none; color: var(--defence); }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- sections */
.sec { position: relative; padding: 70px 0 10px; }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(34px, 7.6vw, 54px); text-transform: uppercase; letter-spacing: 0.01em; }
.sec-head .sub { margin: 14px 0 0; color: var(--text-2); font-size: 18px; }
.num { font-family: var(--mono); color: var(--dim); letter-spacing: 0.06em; }

/* ---- the week */
.weekpanel {
  background: rgba(21, 27, 38, 0.92); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px 12px 14px;
}
@media (min-width: 700px) { .weekpanel { padding: 22px 24px 20px; } }
.weektable { width: 100%; border-collapse: separate; border-spacing: 4px 6px; table-layout: fixed; }
.weektable caption { text-align: left; padding: 0 4px 10px; color: var(--dim); font-size: 14px; }
.weektable th, .weektable td { padding: 0; text-align: center; vertical-align: middle; }
.weektable thead th {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--dim);
}
.weektable thead th.sun { color: var(--gold); }
.weektable th.tier {
  width: 25%; text-align: left; padding-left: 4px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
  line-height: 1.1;
}
@media (min-width: 700px) { .weektable th.tier { width: 16%; font-size: 16px; } .weektable thead th { font-size: 15px; } }
.day {
  height: 46px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--inset); display: flex; align-items: center; justify-content: center; gap: 3px;
}
.day.job { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(151, 170, 197, 0.07) 5px 7px), var(--inset); }
.day.job .vh { position: absolute; }
.pip { width: 7px; height: 16px; border-radius: 1px; background: var(--defence); }
@media (min-width: 700px) { .pip { width: 10px; height: 20px; } .day { height: 54px; gap: 5px; } }
.day.sunday { border-color: rgba(232, 177, 61, 0.7); background: var(--gold-wash); }
.day.sunday svg { width: 22px; height: 22px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}
.weeklegend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 4px 0; font-size: 14px; color: var(--dim); }
.weeklegend span { display: inline-flex; align-items: center; gap: 8px; }
.weeklegend .k-pip { width: 8px; height: 16px; border-radius: 1px; background: var(--defence); }
.weeklegend .k-job { width: 16px; height: 16px; border-radius: 2px; border: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(151, 170, 197, 0.2) 4px 6px); }
.weeklegend .k-sun { width: 16px; height: 16px; border-radius: 2px; border: 1px solid var(--gold); background: var(--gold-wash); }
.slots { display: grid; gap: 10px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (min-width: 1100px) { .slots { grid-template-columns: repeat(7, 1fr); } }
.slots .slot { margin: 0; }
.slot {
  padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--defence);
  border-radius: var(--r-md); background: rgba(12, 16, 23, 0.9);
}
.slot b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: 0.03em; }
.slot span { display: block; font-size: 14px; color: var(--dim); line-height: 1.4; }
.slot.rest { border-left-color: var(--green); }
.slot.money { border-left-color: var(--gold); }
.weather { margin-top: 22px; display: grid; gap: 10px; }
@media (min-width: 760px) { .weather { grid-template-columns: repeat(3, 1fr); } }
.weather p {
  margin: 0; padding: 12px 14px; border: 1px solid rgba(232, 177, 61, 0.45); border-radius: var(--r-md);
  color: var(--gold); font-size: 15px; line-height: 1.45; background: rgba(232, 177, 61, 0.05);
}
.weather p b { color: var(--gold); font-family: var(--display); letter-spacing: 0.08em; font-size: 16px; }

/* ---- the origin band: the net cafe */
.origin { padding-top: 74px; }
.origin-card {
  margin-bottom: 64px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-deep); display: grid;
}
@media (min-width: 900px) { .origin-card { grid-template-columns: 1.15fr 1fr; } }
.origin-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.origin-copy { padding: 24px 20px 26px; align-self: center; }
@media (min-width: 900px) { .origin-copy { padding: 34px 36px; } }
.origin-copy blockquote { margin: 0 0 16px; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--text); }
.origin-copy blockquote::before { content: ""; display: block; width: 40px; height: 3px; background: var(--gold); margin-bottom: 14px; }
.origin-copy p { color: var(--text-2); }

/* ---- the roster */
.roster-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 72%); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px;
  scrollbar-color: var(--gold) var(--track); scrollbar-width: thin;
}
@media (min-width: 1100px) { .roster-rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.player {
  scroll-snap-align: start; position: relative; margin: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 14px 16px;
}
.player-top { display: flex; gap: 12px; align-items: center; }
.player-top > div { min-width: 0; flex: 1; }
.player img { width: 60px; height: 60px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--inset); flex: none; }
.player h3 { font-size: 25px; letter-spacing: 0.02em; }
.player-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.player-mid .chip { margin-top: 0; }
.role { display: block; margin-top: 3px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.chip {
  display: inline-block; margin-top: 12px; padding: 2px 8px 1px; font-family: var(--mono); font-size: 13px;
  border: 1px solid var(--attack); color: var(--attack); border-radius: var(--r-sm);
}
.chip.calm { border-color: var(--defence); color: #7fb2e6; }
.chip.good { border-color: var(--green); color: #7ccb94; }
.stats { list-style: none; margin: 12px 0 0; padding: 0; }
.stats li { display: grid; grid-template-columns: 6.6em 1fr 1.9em; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); padding: 3px 0; }
.stats li b { font-family: var(--mono); font-weight: 700; font-size: 14px; text-align: right; color: var(--text); }
.bar { display: block; height: 7px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; background: #728096; border-radius: 3px; }
.bar i.hi { background: var(--gold); }
/* the week-one skills of the cafe five (STARTER in src/js/025_team.js), as bar widths */
.w19 { width: 19%; } .w21 { width: 21%; } .w22 { width: 22%; } .w24 { width: 24%; } .w25 { width: 25%; } .w26 { width: 26%; } .w27 { width: 27%; } .w28 { width: 28%; }
.w29 { width: 29%; } .w31 { width: 31%; } .w33 { width: 33%; } .w44 { width: 44%; } .w45 { width: 45%; } .w46 { width: 46%; } .w47 { width: 47%; } .w49 { width: 49%; }
.ovr { margin: 0; flex: none; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--dim); text-align: right; line-height: 1; }
.ovr b { display: block; font-size: 30px; color: var(--gold); letter-spacing: 0; }
.rail-hint { margin: 4px 0 0; font-size: 14px; color: var(--dim); }
@media (min-width: 1100px) { .rail-hint.roster-only { display: none; } }
.roster-note { margin-top: 18px; color: var(--text-2); max-width: 760px; }

/* ---- the screenshot strip: real captures in phone frames */
.shots-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin: 0 -4px;
  scrollbar-color: var(--gold) var(--track); scrollbar-width: thin;
}
@media (min-width: 700px) { .shots-rail { grid-auto-columns: 256px; gap: 22px; } }
.phone { scroll-snap-align: start; margin: 0; }
.phone-frame {
  position: relative; padding: 10px; border-radius: 26px;
  background: linear-gradient(160deg, #262f3f, #121720 55%, #1b2230);
  border: 1px solid rgba(151, 170, 197, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.phone-frame::before {
  content: ""; position: absolute; left: 50%; top: 4px; width: 46px; height: 4px; margin-left: -23px;
  border-radius: 3px; background: rgba(0, 0, 0, 0.55);
}
.phone-frame img { width: 100%; height: auto; border-radius: 17px; background: var(--inset); }
.phone figcaption { padding: 12px 4px 0; }
.phone figcaption b {
  display: block; font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.phone figcaption span { display: block; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.15; margin-top: 2px; }

/* ---- loadout: the feature cards, rarity-framed and chamfered */
.loadout { overflow: hidden; }
.bp {
  position: absolute; z-index: 0; pointer-events: none; opacity: 0.3; width: 560px; height: auto;
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
.bp-a { right: -140px; top: 20px; }
.bp-b { left: -180px; bottom: -120px; }
.loadout .wrap { position: relative; z-index: 1; }
.cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  --rar: var(--rar-common); --rar-text: var(--rar-common);
  position: relative; padding: 18px 18px 18px;
  background: linear-gradient(180deg, rgba(27, 34, 48, 0.96), rgba(18, 23, 33, 0.96));
  border-top: 3px solid var(--rar);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--rar), transparent 55%); opacity: 0.08;
}
.card.rare { --rar: var(--rar-rare); --rar-text: var(--rar-rare-text); }
.card.epic { --rar: var(--rar-epic); --rar-text: var(--rar-epic-text); }
.card.legendary { --rar: var(--rar-legendary); --rar-text: var(--rar-legendary); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card svg { width: 38px; height: 38px; color: var(--rar-text); flex: none; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tag {
  padding: 1px 8px 0; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; border: 1px solid var(--rar); color: var(--rar-text); border-radius: var(--r-sm);
}
.tag.bonus { border-color: var(--gold); color: var(--gold); }
.card h3 { margin: 14px 0 8px; font-size: 27px; text-transform: uppercase; letter-spacing: 0.02em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.5; }

/* ---- the scoreboard: the facts, in the game's own table */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 14px 8px; }
@media (min-width: 700px) { .board { padding: 22px 24px 12px; } }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.board-head h3 { font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
.board-head span { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.teamrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-left: 3px solid var(--gold); background: rgba(232, 177, 61, 0.13);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase;
}
.teamrow span { color: var(--gold); }
.facts { width: 100%; border-collapse: collapse; margin-top: 4px; }
.facts th, .facts td { padding: 11px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.facts td { font-size: 16px; color: var(--text-2); }
.facts td b { font-family: var(--display); font-size: 24px; color: var(--text); margin-right: 8px; letter-spacing: 0.02em; }
@media (min-width: 700px) { .facts th { width: 28%; } }
.board-body { display: grid; gap: 8px; }
@media (min-width: 980px) { .board-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; } .board-body .maps { margin-top: 10px; grid-template-columns: repeat(4, 1fr); } }
.maps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) and (max-width: 979px) { .maps { grid-template-columns: repeat(7, 1fr); } }
.maps li { margin: 0; }
.maps img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--inset); }
.maps span { display: block; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); text-align: center; }
.fine {
  margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--defence);
  border-radius: var(--r-md); background: rgba(12, 16, 23, 0.9);
}
.fine h3 { font-size: 16px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.fine ul { margin: 0; padding: 0 0 0 18px; color: var(--text-2); font-size: 16px; }
.fine li { margin: 4px 0; }
.fine a { color: var(--text); }

/* ---- the call to action */
.final { padding: 80px 0 30px; }
.final-card {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgba(232, 177, 61, 0.5); border-radius: var(--r-lg);
  background: radial-gradient(600px 300px at 50% 0%, rgba(232, 177, 61, 0.16), transparent 70%), var(--bg-deep);
  padding: 44px 18px 40px;
}
.final-card > * { position: relative; }
.final-card > .final-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.final-card svg.final-ret { width: 84px; height: 84px; margin: 0 auto 18px; }
.final-card h2 { font-size: clamp(38px, 9vw, 66px); text-transform: uppercase; }
.final-card p { margin: 14px auto 24px; max-width: 34em; color: var(--text-2); }
.final-card .cta-row { justify-content: center; }

/* ---- the footer */
.foot { margin-top: 56px; border-top: 1px solid var(--line); background: rgba(9, 12, 16, 0.85); padding: 30px 0 38px; font-size: 15px; color: var(--dim); }
.foot .wrap { display: grid; gap: 20px; }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: 1fr 2fr; } }
.foot-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--text-2); }
.foot p { margin: 0 0 8px; }
.foot .mail { overflow-wrap: anywhere; }

/* ================================================================ the legal pages */
.doc { padding: 36px 0 20px; }
.doc .wrap { max-width: 820px; }
.doc-head {
  position: relative; padding: 22px 20px 20px; margin-bottom: 26px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(21, 27, 38, 0.92);
}
.doc-head::before, .doc-head::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); }
.doc-head::before { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.doc-head::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.doc h1 { font-size: clamp(36px, 8vw, 52px); text-transform: uppercase; letter-spacing: 0.01em; }
.upd { margin: 12px 0 0; font-family: var(--mono); font-size: 14px; color: var(--dim); }
.doc h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 38px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-size: 25px; text-transform: uppercase; letter-spacing: 0.04em;
}
.doc h2 .n {
  flex: none; display: inline-block; min-width: 34px; padding: 2px 6px 0; text-align: center;
  font-size: 16px; color: #0b0d12; background: var(--gold); border-radius: var(--r-sm); letter-spacing: 0.04em;
}
.doc p, .doc li { color: var(--text-2); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin: 8px 0; }
.doc li strong, .doc p strong { color: var(--text); }
.short { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-md); background: rgba(12, 16, 23, 0.9); padding: 16px 18px 6px; }
.short h2 { margin: 0 0 10px; border: 0; padding: 0; font-size: 20px; letter-spacing: 0.14em; }
.toc { margin: 22px 0 0; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px 10px; background: rgba(21, 27, 38, 0.7); }
.toc h2 { margin: 0 0 8px; border: 0; padding: 0; font-size: 17px; letter-spacing: 0.18em; color: var(--dim); }
.toc ol { margin: 0; padding-left: 22px; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--text-2); }
.note { border-left: 3px solid var(--defence); padding: 4px 0 4px 14px; }
.doc .route, .route {
  display: grid; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; counter-reset: step;
}
.route li {
  counter-increment: step; position: relative; margin: 0; padding: 12px 14px 12px 52px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(21, 27, 38, 0.8); color: var(--text);
}
.route li::before {
  content: counter(step); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: #0b0d12; background: var(--gold); border-radius: var(--r-sm);
}
.mailbtn {
  display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 18px; padding: 12px 18px;
  border: 1px solid var(--gold); border-radius: var(--r-md); background: var(--gold-wash); color: var(--text); text-decoration: none;
  max-width: 100%;
}
.mailbtn:hover { background: rgba(232, 177, 61, 0.18); color: var(--text); }
.mailbtn svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.mb-txt { display: flex; flex-direction: column; min-width: 0; }
.mb-small { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.mb-big { font-size: 17px; overflow-wrap: anywhere; }
.solo { padding: 54px 0 20px; }
.solo .wrap { max-width: 720px; }
.solo-ret { width: 96px; height: 96px; margin-bottom: 20px; }
.solo h1 { font-size: clamp(38px, 9vw, 58px); text-transform: uppercase; margin-bottom: 16px; }
.solo p { color: var(--text-2); }
.small { font-size: 15px; color: var(--dim); }
.backlinks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.backlinks a {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none;
}
.backlinks a:hover { color: var(--gold); border-color: var(--gold); }
.solo .big404 { font-family: var(--display); font-weight: 700; font-size: 110px; line-height: 0.9; color: var(--gold); letter-spacing: 0.02em; margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker { white-space: normal; }
  .ticker-track { flex-wrap: wrap; }
  .ticker-track .dup { display: none; }
}
