/* Dwarf Builds website. The look follows the game's menus and the mod's window:
   translucent black panels with an orange rule on top, orange accents, white-on-dark text,
   buttons with side bars like the game's CLOSE button. Colours of game items come from
   game.json (set as variables on :root by js/game.js). */

:root {
  --orange: #FF9C00;
  --orange-l: #FFD200;
  --orange-press: #E78200;
  --brown: #5B412D;
  --brown-hover: #6F4F39;
  --brown-vd: #31261F;
  --bar-dim: #7C5D42;
  --ink: #17140D;
  --dim: #A3977A;
  --light: #F4EBD0;
  --light-text: #EDE2C3;
  --panel: rgba(0, 0, 0, 0.55);
  --panel-solid: #15110d;
  --sel: rgba(89, 63, 44, 0.8);
  --good: #54E200;
  --bad: #EC0000;
  --clean: #379C5D;
  --balanced: #E9CA37;
  --unstable: #D33600;
  --passive: #B92E4E;
  --active: #4BBFA5;
  --prof: #FF9C00;
  --text-h: #FFF390;
  --c-driller: #FFDA00;
  --c-engineer: #FF2A1A;
  --c-gunner: #55AB00;
  --c-scout: #0077FF;

  --cw: 44px;  /* upgrade hexagon cell */
  --ch: 29px;
  --cgx: 5px;
  --cgy: 4px;

  --f-title: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --f-num: "Chakra Petch", "Consolas", monospace;
}

* { box-sizing: border-box; }
/* the scrollbar's place is kept, so pages do not move sideways when their height changes */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--light);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.35;
  /* warm brown light like the game's loadout room */
  background-color: #231c14;
  background-image:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(150, 122, 78, 0.42), rgba(0, 0, 0, 0) 70%),
    radial-gradient(ellipse 120% 95% at 50% 38%, #55462d 0%, #3a2f20 50%, #1c1610 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--ink); }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 8, 6, 0.92);
  border-bottom: 3px solid var(--orange);
}
.topbar-in {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex: none; }
/* the logo: an orange hexagon with a hammer cut out (the same file is the favicon) */
.logo-hex { width: 32px; height: 32px; flex: none; background: url("/favicon.svg") center / contain no-repeat; }
.logo-text { font-family: var(--f-title); font-weight: 700; font-size: 25px; letter-spacing: 0.02em; line-height: 1; }
.logo-text b { color: var(--orange); font-weight: 700; margin-left: 4px; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav-link {
  font-family: var(--f-title); font-weight: 600; font-size: 19px; letter-spacing: 0.03em;
  color: var(--light-text); padding: 6px 12px; text-decoration: none !important; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-link:hover { color: #fff; }
.nav-link.on { color: var(--orange); border-bottom-color: var(--orange); }
.account { flex: none; display: flex; align-items: center; position: relative; }

.user-btn {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: #fff; max-width: 240px;
}
.user-btn:hover .user-name { color: var(--orange); }
.user-name { font-family: var(--f-title); font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 32px; height: 32px; flex: none; background: var(--brown); object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-title); font-weight: 700; color: var(--light-text); font-size: 16px;
}
.avatar.big { width: 72px; height: 72px; font-size: 32px; }
.caret { width: 10px; height: 6px; background: var(--dim); clip-path: polygon(0 0, 100% 0, 50% 100%); flex: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; z-index: 40;
  background: rgba(8, 6, 5, 0.97); border-top: 3px solid var(--orange); padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.menu a, .menu button {
  display: block; width: 100%; text-align: left; padding: 9px 16px; background: none; border: 0; cursor: pointer;
  font-family: var(--f-title); font-weight: 600; font-size: 18px; color: var(--light-text); text-decoration: none;
}
.menu a:hover, .menu button:hover { background: var(--sel); color: var(--orange); text-decoration: none; }

/* feedback in place (ui.js feedback()): a message line next to the control it answers, no pop-ups. A new
   line is made for every attempt, so the highlight runs each time; it changes colour only and moves nothing. */
@keyframes fb-flash { from { background-color: rgba(236, 0, 0, 0.55); } }
@keyframes fb-flash-ok { from { background-color: rgba(84, 226, 0, 0.32); } }
@keyframes fb-flash-note { from { background-color: rgba(255, 156, 0, 0.4); } }
@keyframes field-flash { from { box-shadow: 0 0 0 2px var(--bad); background-color: rgba(236, 0, 0, 0.22); } }
.fb { min-width: 0; }
.fb-line {
  padding: 2px 8px; border-left: 3px solid var(--bad); background: rgba(0, 0, 0, 0.5); color: #ffd9d0;
  font-size: 13px; line-height: 1.3; text-align: left; overflow-wrap: anywhere; animation: fb-flash 600ms ease-out;
}
.fb-line.ok { border-left-color: var(--good); color: var(--light); animation-name: fb-flash-ok; }
.fb-line .link-btn { font-size: inherit; }
.flash { animation: field-flash 600ms ease-out; }
.msg.flash-msg { animation: fb-flash-note 600ms ease-out; }
.msg.ok.flash-msg { animation-name: fb-flash-ok; }
.msg.err.flash-msg { animation-name: fb-flash; }
.app > .msg { margin-bottom: 12px; }
/* one reserved line inside a row (title head, description head): the row keeps its height and width */
.fb.one { position: relative; flex: 1 1 0; align-self: stretch; min-height: 16px; }
.fb.one .fb-line {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); max-width: 100%; padding: 0 6px;
  font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* a reserved line under a field in a dialog */
.fb.line { min-height: 22px; }
/* pinned to a button group: above it (the editor's main button) or under it (top bar buttons) */
.fb.above, .fb.under { position: absolute; right: 0; z-index: 5; width: max-content; max-width: min(340px, calc(100vw - 24px)); }
.fb.above { bottom: calc(100% + 6px); }
.fb.under { top: calc(100% + 2px); }
.account .fb.under { top: calc(100% + 16px); } /* under the top bar's edge */
.fb.above .fb-line, .fb.under .fb-line { background: rgba(8, 6, 5, 0.97); }
.fb.above .fb-line { padding: 6px 10px; }

/* ---------------------------------------------------------------- page */
.app { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 20px 40px; outline: none; }
.foot { border-top: 1px solid rgba(255, 156, 0, 0.18); background: rgba(0, 0, 0, 0.35); }
.foot-in {
  max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13px;
}
#data-version { font-family: var(--f-num); }
/* left: the notice, the game data under it; right: the source link, the credit under it */
.foot-l, .foot-r { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.foot-r { align-items: flex-end; }
.gh { display: inline-flex; align-items: center; gap: 7px; color: var(--light-text); font-weight: 600; text-decoration: none; }
.gh svg { display: block; flex: none; }
/* both footer links: bright, and underlined on hover like any link */
.gh:hover, .credit:hover { color: #fff; }
.gh:hover span, .credit:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* "by rodi.": the author's mark (frontend-design brand kit, avatar-mark.svg) and the signature, period in brand pink */
.credit { display: inline-flex; align-items: center; gap: 7px; color: var(--light-text); font-weight: 600; text-decoration: none; }
.credit img { display: block; border-radius: 3px; }
.credit b { color: #d78494; font-weight: 700; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.page-title {
  font-family: var(--f-title); font-weight: 700; font-size: 40px; line-height: 1; margin: 0; color: #fff;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.page-sub { font-family: var(--f-num); font-size: 14px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }

.panel { background: var(--panel); border-top: 3px solid var(--orange); padding: 14px 16px; }
.panel + .panel { margin-top: 12px; }
.panel-title {
  font-family: var(--f-title); font-weight: 700; font-size: 22px; color: #fff; margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1;
}
.label {
  font-family: var(--f-num); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--dim);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- buttons (the game's CLOSE button) */
.btn {
  --bar: var(--orange); --fill: var(--orange); --hover: var(--orange-l); --press: var(--orange-press); --ink: #050403;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 8px; border: 0; cursor: pointer; user-select: none; -webkit-user-select: none;
  font-family: var(--f-title); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; line-height: 1;
  color: var(--ink); background: none; text-transform: uppercase; white-space: nowrap;
  text-decoration: none !important;
}
.btn > span {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%;
  padding: 2px 18px 0; background: var(--fill);
}
.btn::before, .btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--bar);
}
.btn::before { left: 0; }
.btn::after { right: 0; }
.btn:hover > span { background: var(--hover); }
.btn:active > span { background: var(--press); }
.btn.sec { --bar: var(--bar-dim); --fill: var(--brown); --hover: var(--brown-hover); --press: var(--orange); --ink: var(--light-text); }
.btn.sec:active { --bar: var(--orange); --ink: #050403; }
.btn.sec.on { --bar: var(--orange); --fill: var(--orange); --hover: var(--orange-l); --ink: #050403; }
.btn.danger { --bar: #7a1d10; --fill: #4a1a12; --hover: #64231a; --press: var(--bad); --ink: #ffd9d0; }
.btn.small { height: 34px; font-size: 18px; }
.btn.small > span { padding: 1px 12px 0; }
.btn.big { height: 60px; font-size: 32px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.btn.copied { --bar: var(--good); --fill: var(--good); --hover: var(--good); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--orange);
  font-family: var(--f-num); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.dim { color: var(--dim); }
.link-btn:disabled { cursor: default; text-decoration: none; color: var(--good); }

/* tabs (class tabs) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); border: 0; border-bottom: 3px solid var(--brown);
  font-family: var(--f-title); font-weight: 700; font-size: 20px; letter-spacing: 0.03em; color: var(--light-text);
  text-decoration: none !important; white-space: nowrap;
}
.tab:hover { background: var(--sel); color: #fff; }
.tab.on { background: var(--orange); color: #050403; border-bottom-color: var(--orange-l); }
.tab.on .cls-icon { background: #050403 !important; }

/* inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.count { font-family: var(--f-num); font-size: 12px; color: var(--dim); }
.count.over { color: var(--bad); }
.input, .select, .textarea {
  width: 100%; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--brown); border-bottom: 2px solid var(--bar-dim);
  color: #fff; padding: 9px 12px; font-size: 17px; border-radius: 0; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.4; }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.select option, .select optgroup { background: #1b1510; color: #fff; }
.code-input { font-family: var(--f-num); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------------------------------------------------------------- states */
.state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 60px 20px; color: var(--dim); font-family: var(--f-title); font-size: 22px; font-weight: 600; letter-spacing: 0.04em;
}
/* LOADING shows only when the wait is long enough to notice. */
.state-loading { flex-direction: row; animation: state-late 200ms 250ms backwards; }
@keyframes state-late { from { opacity: 0; } }
/* Old results stay under a new search (dimmed when it takes long), so the page does not jump. */
.stale { opacity: 0.45; pointer-events: none; transition: opacity 150ms 200ms; }
.state h2 { margin: 0; font-family: var(--f-title); font-size: 34px; color: #fff; font-weight: 700; text-transform: uppercase; }
.state p { margin: 0; font-family: var(--f-body); font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--light); max-width: 520px; }
.state .big-code { font-family: var(--f-num); font-size: 80px; line-height: 1; color: var(--orange); font-weight: 700; }
.spinner {
  width: 26px; height: 26px; background: var(--orange); flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: spin 1.1s linear infinite;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.msg { padding: 10px 14px; background: rgba(0, 0, 0, 0.5); border-left: 4px solid var(--orange); color: var(--light); font-size: 15px; }
.msg.err { border-left-color: var(--bad); }
.msg.ok { border-left-color: var(--good); }
.msg ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------------------------------------------------------------- icons (white PNGs tinted with a mask) */
.mask {
  display: block; background-color: var(--c, #fff);
  -webkit-mask-image: var(--m); mask-image: var(--m);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.cls-icon { width: 24px; height: 24px; flex: none; }
.cls-icon.lg { width: 40px; height: 40px; }
.sil { width: 100%; height: 100%; }

/* upgrade hexagon: background + outline + glyph */
.hex { position: relative; width: var(--cw); height: var(--ch); flex: none; }
.hex > .bg, .hex > .ol, .hex > .gl { position: absolute; }
.hex > .bg { inset: 0; --m: var(--f-upg-bg); --c: rgba(0, 0, 0, 0.72); }
.hex > .ol { inset: 0; --m: var(--f-upg-ol); --c: var(--brown); }
.hex > .gl { top: 15%; bottom: 15%; left: 0; right: 0; --c: #8f8166; }
.hex.on > .bg { --c: var(--orange); }
.hex.on > .ol { --c: var(--orange-l); }
.hex.on > .gl { --c: #050403; }
.hex.void > .bg { --c: rgba(0, 0, 0, 0.35); }
.hex.void > .ol { --c: rgba(91, 65, 45, 0.45); }

/* tier grid: rows of up to 3 hexagons joined by a thin line */
.grid { display: flex; flex-direction: column; gap: var(--cgy); flex: none; }
.grid-row { position: relative; display: flex; gap: var(--cgx); }
.grid-row::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--brown-vd);
}
.grid-row.n2::before { right: calc(var(--cw) + var(--cgx) + 8px); }
.grid-row.n1::before, .grid-row.n0::before { display: none; }
.grid-row > .hex { z-index: 1; }
.grid-row > .hex.pad { visibility: hidden; }

/* overclock icon: dark fill, frame in the type colour, white glyph */
.oc { position: relative; display: block; width: 44px; height: 44px; flex: none; }
.oc > .bg, .oc > .ol { position: absolute; inset: 0; }
.oc > .bg { --c: rgba(0, 0, 0, 0.85); }
.oc > .gl { position: absolute; inset: 27%; --c: #fff; }
.oc.none > .bg { --c: rgba(91, 65, 45, 0.45); -webkit-mask-image: none; mask-image: none; }
.oc.none { width: 44px; height: 44px; }
.oc.sm { width: 30px; height: 30px; }
.oc.lg { width: 60px; height: 60px; }

/* perk tiles: passive square, active cut corners, proficiency frame */
.perk { position: relative; width: 40px; height: 40px; flex: none; }
.perk > .bg { position: absolute; inset: 0; }
.perk > .gl { position: absolute; inset: 15%; --c: #050403; }
.perk.passive > .bg { --c: var(--passive); -webkit-mask-image: none; mask-image: none; }
.perk.active > .bg { --c: var(--active); --m: var(--f-perk-active); }
.perk.proficiency > .bg { --c: var(--prof); --m: var(--f-prof); }
.perk.proficiency > .gl { inset: 20%; }
.perk.empty > .bg { background: rgba(0, 0, 0, 0.7); box-shadow: inset 0 0 0 1px var(--brown); -webkit-mask-image: none; mask-image: none; }
.perk.lg { width: 56px; height: 56px; }

/* ---------------------------------------------------------------- tooltip (the game's DB_Tip) */
.tip {
  position: fixed; z-index: 100; left: 0; top: 0; width: 440px; max-width: calc(100vw - 16px);
  background: rgba(0, 0, 0, 0.92); border-top: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  padding: 12px 16px 14px; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.tip.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; pointer-events: auto; }
.tip-head { display: flex; gap: 14px; align-items: center; }
.tip-tile { width: 64px; height: 64px; flex: none; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.tip-tile.plain { background: none; }
.tip-tile.hex-tile { width: 84px; height: 56px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.tip-tile.hex-tile > .mask { width: 38px; height: 38px; }
.tip-type { letter-spacing: 0.14em; }
.tip-tile > .mask { width: 44px; height: 44px; --c: var(--ink); }
.tip-tile > .item-pic { width: 64px; height: 32px; --c: var(--ink); }
.tip-tile > .oc { width: 64px; height: 64px; }
.tip-tile > .perk { width: 56px; height: 56px; }
.tip-title { font-family: var(--f-title); font-weight: 700; font-size: 26px; line-height: 1.05; color: var(--orange); }
.tip-type { font-family: var(--f-num); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: #fff; text-transform: uppercase; margin-top: 3px; }
.tip-body { margin-top: 10px; font-size: 16px; line-height: 1.38; color: var(--light); white-space: pre-line; }
.tip-stats { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.stat { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #fff; }
.stat .arrow { width: 14px; height: 7px; --m: var(--f-arrow); --c: var(--good); flex: none; }
.stat.bad .arrow { --c: var(--bad); transform: rotate(180deg); }
.tip-extra { margin-top: 10px; padding: 8px 10px; background: rgba(91, 65, 45, 0.5); font-family: var(--f-num); font-size: 13px; color: var(--light-text); letter-spacing: 0.03em; }

/* rich text of perk descriptions */
.rt-h { color: var(--text-h); }
.rt-hi { font-style: italic; color: #fff; }
.rt-active { color: var(--active); font-weight: 700; }
.rt-passive { color: var(--passive); font-weight: 700; }

/* hover targets */
[data-tip] { cursor: help; }
button[data-tip], a[data-tip] { cursor: pointer; }

/* ---------------------------------------------------------------- browse */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 16px; }
.filters .search { flex: 1; min-width: 200px; }
/* weapon filter: a fixed-width button (the row does not move when the class changes) and a panel of pictures */
.filters { position: relative; }
.wpick { flex: none; width: 310px; max-width: 100%; }
.wpick-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 34px 0 10px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid var(--brown); border-bottom: 2px solid var(--bar-dim);
  color: #fff; font: inherit; font-size: 17px; text-align: left; cursor: pointer; position: relative;
}
.wpick-btn:hover, .wpick-btn[aria-expanded="true"] { border-color: var(--orange); }
.wpick-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.wpick-btn > .sil { --c: var(--orange); flex: none; width: 64px; height: 30px; }
.wpick-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpick-caret {
  position: absolute; right: 13px; top: 50%; width: 0; height: 0; margin-top: -2px;
  border: 6px solid transparent; border-top-color: var(--orange); border-bottom: 0;
}
.wpick-btn[aria-expanded="true"] .wpick-caret { transform: rotate(180deg); }
.wpick-none { flex: none; width: 64px; height: 30px; display: block;
  background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 14px) center / 100% 3px no-repeat; opacity: 0.55; }
.wpick-panel {
  /* under the filter row, from its left edge (.filters is the positioned parent) */
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 40; width: min(980px, 100%);
  max-height: min(70vh, 640px); overflow: auto; padding: 10px 12px 12px;
  background: rgba(14, 10, 7, 0.97); border-top: 3px solid var(--orange); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.wpick-group { margin-top: 10px; }
.wpick-class {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-bottom: 4px;
  font-family: var(--f-title); font-weight: 700; font-size: 18px; text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wpick-class .cls-icon { width: 22px; height: 22px; }
.wpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.wpick-grid.all { grid-template-columns: minmax(150px, 220px); }
.wpick-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 6px; min-width: 0;
  background: var(--ls-panel); border: 0; border-top: 2px solid transparent; color: #fff; font: inherit; cursor: pointer;
}
.wpick-tile:hover { background: rgba(89, 63, 44, 0.9); }
.wpick-tile:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.wpick-tile.on { border-top-color: var(--orange); background: rgba(255, 156, 0, 0.16); }
.wpick-pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; }
.wpick-pic > .sil { --c: var(--orange); width: 100%; height: 100%; }
.wpick-tile:hover .wpick-pic > .sil, .wpick-tile.on .wpick-pic > .sil { --c: var(--orange-l); }
.wpick-pic > .wpick-none { width: 70%; }
.wpick-btn > .oc { flex: none; width: 34px; height: 34px; margin: 0 15px; }
/* overclock panel: per class, per weapon (a small line art and the name), then the overclock frames */
.wpick-sub { margin-top: 8px; }
.wpick-weapon { display: flex; align-items: center; gap: 8px; margin: 0 0 4px 2px; color: var(--light); font-family: var(--f-title); font-weight: 600; font-size: 15px; }
.wpick-weapon > .sil { --c: var(--orange); flex: none; width: 46px; height: 20px; }
.wpick-grid.ocs { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.oc-tile .wpick-pic { height: 54px; }
.oc-tile .wpick-pic > .oc { width: 50px; height: 50px; }
.oc-tile .wpick-label { font-size: 13px; white-space: normal; height: 2.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wpick-label {
  width: 100%; font-family: var(--f-title); font-weight: 600; font-size: 15px; line-height: 1.15; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sortbox { display: flex; gap: 0; align-items: center; }
.sortbox .period { width: 148px; margin-left: 8px; }
.sortbox .period:disabled { opacity: 0.45; cursor: default; }
.sortbox .btn { padding-left: 4px; padding-right: 4px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border-top: 3px solid var(--cls, var(--orange));
  color: var(--light); text-decoration: none !important; min-width: 0; transition: background 0.12s;
}
.card:hover { background: var(--sel); }
.card:hover .card-title { color: var(--orange); }
.card-top { display: flex; gap: 10px; align-items: center; padding: 10px 12px 6px; min-width: 0; }
.card-top .cls-icon { width: 34px; height: 34px; }
.card-titles { min-width: 0; flex: 1; }
.card-title { font-family: var(--f-title); font-weight: 700; font-size: 22px; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-by { font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-by b { color: var(--light-text); font-weight: 600; }
.card-weps { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 8px; }
.cw { display: flex; align-items: center; gap: 10px; min-width: 0; height: 52px; }
.cw-pic { width: 104px; height: 46px; flex: none; }
.cw-pic .sil { --c: var(--light); }
.cw-text { flex: 1; min-width: 0; }
.cw-name { font-family: var(--f-title); font-weight: 600; font-size: 17px; color: #fff; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-oc { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto;
  padding: 7px 12px; background: rgba(0, 0, 0, 0.35); font-family: var(--f-num); font-size: 13px; color: var(--dim); letter-spacing: 0.04em;
}
.likes { display: inline-flex; align-items: center; gap: 6px; color: var(--light-text); font-weight: 600; }
.likes .arrow { width: 14px; height: 7px; --m: var(--f-arrow); --c: var(--orange); }
.hidden-tag { color: #fff; background: var(--bad); padding: 0 6px; font-weight: 700; }

/* admin reports: the build card, then its reports and actions */
.rep-list { display: flex; flex-direction: column; gap: 14px; }
.rep-row { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 14px; align-items: start; }
.rep-row.done { opacity: 0.5; }
.rep-body { background: rgba(0, 0, 0, 0.55); border-top: 2px solid var(--bad); padding: 10px 14px 12px; min-width: 0; }
.rep-head { display: flex; gap: 10px; align-items: baseline; }
.rep-reasons { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep-reasons li { border-left: 3px solid var(--brown); padding: 2px 10px; }
.rep-reason { color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep-meta { font-size: 13px; color: var(--dim); margin-top: 2px; }
.rep-meta a { color: var(--light-text); }
.rep-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; position: relative; }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.pager-num { font-family: var(--f-num); color: var(--dim); font-size: 15px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- build page */
.codebox {
  font-family: var(--f-num); font-weight: 600; font-size: 17px; color: #fff; background: rgba(0, 0, 0, 0.6);
  padding: 10px 12px; border-left: 3px solid var(--orange); word-break: break-all; letter-spacing: 0.03em; user-select: all; -webkit-user-select: all;
}
.howto ol { margin: 0; padding-left: 22px; }
.howto li { margin: 4px 0; }
.howto b { color: var(--orange); font-family: var(--f-title); font-size: 18px; letter-spacing: 0.02em; }
.howto .modlink { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.howto .modlink:hover { color: #fff; }
.kbd {
  display: inline-block; min-width: 22px; padding: 0 6px; background: #fff; color: #050403; text-align: center;
  font-family: var(--f-num); font-weight: 700; font-size: 14px; line-height: 20px;
}
.desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 17px; line-height: 1.45; color: var(--light); }
.desc.empty { color: var(--dim); font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.like-btn .arrow { width: 14px; height: 7px; --m: var(--f-arrow); --c: currentColor; }

/* ---------------------------------------------------------------- editor: class chooser, perk and OC lists */
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.cls-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; border: 0;
  padding: 0 0 12px; background: rgba(0, 0, 0, 0.6); border-top: 2px solid var(--orange); color: #fff; overflow: hidden;
}
.cls-card:hover { background: var(--sel); border-top-color: var(--cls); }
.cls-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block; opacity: 0.92; }
.cls-card .cls-row { display: flex; align-items: center; gap: 8px; }
.cls-card .cls-name { font-family: var(--f-title); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.cls-chooser .md-name { text-align: left; }

.opt-text { min-width: 0; display: block; }
.opt-text > span { display: block; }
.opt-name { font-family: var(--f-title); font-weight: 600; font-size: 16px; line-height: 1.1; color: #fff; }
.opt-cat { font-family: var(--f-num); font-size: 11px; color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 1px; }



/* ---------------------------------------------------------------- user page */
.uhead { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.uhead .avatar.big { border-top: 3px solid var(--orange); }

/* ---------------------------------------------------------------- modal */
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 480px; background: rgba(12, 9, 7, 0.98); border-top: 3px solid var(--orange); border-bottom: 3px solid var(--orange); padding: 18px 20px; }
.modal h3 { margin: 0 0 10px; font-family: var(--f-title); font-size: 28px; color: var(--orange); text-transform: uppercase; line-height: 1.1; }
.modal p { margin: 0 0 12px; }
.modal .actions { justify-content: flex-end; margin-top: 14px; }

/* ---------------------------------------------------------------- loadout screens (editor and build page)
   Like the game's loadout overview and gear modification screens. */
:root {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5 4.5 12l7.5 7.5M20 4.5 12.5 12l7.5 7.5' fill='none' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E");
  --ls-panel: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.52));
}
.oc-type { font-family: var(--f-num); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.oc-type.clean { color: var(--clean); }
.oc-type.balanced { color: var(--balanced); }
.oc-type.unstable { color: var(--unstable); }
.oc.xl { width: 84px; height: 84px; }

/* top bar: the game's resource strip, here title, code and buttons */
.ls-top {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 8px; padding: 8px 12px;
  background: rgba(0, 0, 0, 0.62); border-top: 2px solid var(--orange);
}
.ls-clsicon {
  width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; background: #0b0906;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ls-clsicon .cls-icon { width: 28px; height: 28px; }
.ls-titlebox { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ls-titlehead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ls-titlehead .count { margin-left: auto; }
.ls-titlein {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid var(--bar-dim); border-radius: 0; outline: none;
  color: #fff; font-family: var(--f-title); font-weight: 700; font-size: 26px; line-height: 1.15; padding: 0 0 1px; text-transform: uppercase;
}
.ls-titlein:focus { border-bottom-color: var(--orange); }
.ls-titlein::placeholder { color: rgba(255, 255, 255, 0.32); }
.ls-codebox { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ls-code { font-family: var(--f-num); font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--orange-l); letter-spacing: 0.03em; word-break: break-all; user-select: all; -webkit-user-select: all; }
.ls-code.bad { color: var(--dim); user-select: none; -webkit-user-select: none; }
.ls-topbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; }
.ls-top .btitle { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: 30px; line-height: 1.05; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.bmeta { margin-top: 3px; font-size: 14px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: center; }
.bmeta a { color: var(--light-text); font-weight: 600; }
.bmeta .avatar { width: 20px; height: 20px; font-size: 11px; vertical-align: middle; margin-right: 6px; }
.ls-msgs > div:not(:empty) { margin-bottom: 8px; }
.ls-msgs > div > .msg { margin: 0; }
.ls { --ovh: clamp(460px, calc(100vh - 258px), 640px); }
/* a message line under the top bar: the screen gets shorter so it still fits */
.ls-msgs:has(.msg) ~ .ls-host .ls { --ovh: clamp(420px, calc(100vh - 306px), 640px); }

/* overview */
.ov {
  display: grid; gap: 8px 14px;
  grid-template-columns: minmax(0, 340px) 54px minmax(0, 1fr) minmax(0, 340px);
  grid-template-rows: var(--ovh) auto;
  grid-template-areas: "left perks mid right" ". . sw act";
}
.ov-left, .ov-right { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 0; min-width: 0; }
.ov-left { grid-area: left; }
.ov-right { grid-area: right; }
.ov-perks { grid-area: perks; align-self: center; }
.ov-mid { grid-area: mid; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.ov-switch { grid-area: sw; display: flex; justify-content: center; min-width: 0; }
.ov-action { grid-area: act; display: flex; justify-content: flex-end; min-width: 0; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; justify-content: flex-end; position: relative; }
.ls-hint { color: var(--dim); font-size: 13px; line-height: 1.25; max-width: 200px; text-align: right; }
.ls-hint.wide { max-width: 360px; font-size: 12px; }

/* gear card */
.gc {
  position: relative; display: block; min-width: 0; min-height: 0; padding: 0;
  border: 0; border-top: 2px solid var(--orange); background: var(--ls-panel);
  color: #fff; font: inherit; text-align: left; cursor: pointer;
}
/* the card's layout: an inner box over the whole card (see gearCard in buildview.js) */
.gc-in {
  position: absolute; inset: 0; display: grid; container-type: size;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 5px 0 8px 10px;
}
.gc-in::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 46px; background: rgba(0, 0, 0, 0.24); pointer-events: none; }
button.gc:hover { background: linear-gradient(180deg, rgba(89, 63, 44, 0.9), rgba(60, 42, 28, 0.72)); }
button.gc:hover .gc-name { color: var(--orange-l); }
.gc:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.gc-name {
  grid-column: 1; grid-row: 1; font-family: var(--f-title); font-weight: 700; font-size: 17px; line-height: 22px;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}
.gc-name.none { color: var(--dim); }
.gc-pic { grid-column: 1; grid-row: 2; position: relative; min-height: 0; }
/* the line art has transparent margins: a mask a bit larger than the box makes the drawing fill
   the card like in the game; the box stays inside its row, so the drawing never reaches the title
   or the pills (the mask is cut at the box edge) */
.gc-pic .sil {
  --c: var(--orange); position: absolute; inset: 3px 0 1px; width: auto; height: auto;
  -webkit-mask-size: auto 112%; mask-size: auto 112%;
}
.gc-oc { position: absolute; right: 2px; bottom: 0; z-index: 1; }
.gc-oc .oc { width: 30px; height: 30px; }
.gc-hexes { grid-column: 2; grid-row: 1 / 3; position: relative; z-index: 1; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 2px; }
.hex.mini { --ch: clamp(12px, calc((100cqh - 38px) / 5.6), 21px); --cw: calc(var(--ch) * 1.5); }
.hex.mini > .bg { --c: #fff; }
.hex.mini > .ol { display: none; }
.hex.mini > .gl { --c: #050403; top: 15%; bottom: 15%; }
/* like the game: a tier with no choice shows nothing in the column (the place is kept) */
.hex.mini.void { visibility: hidden; }
.pills { grid-column: 1 / 3; grid-row: 3; position: relative; z-index: 1; display: flex; gap: 3px; margin-top: 5px; padding-right: 8px; }
.pill { flex: 1 1 0; min-width: 0; height: 9px; border-radius: 5px; background: var(--orange); }
.pill.on { background: #FFF6D8; }

/* flare card: not part of a build, not clickable */
.gc.flare { cursor: default; }
.gc.flare .gc-in { grid-template-rows: auto minmax(0, 1fr); padding-bottom: 6px; }

/* description under the screen (editor) and description + code (build page) */
.ls-desc { margin-top: 8px; padding: 8px 12px 12px; background: var(--ls-panel); border-top: 2px solid var(--orange); min-width: 0; }
.ls-deschead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ls-desctitle { font-family: var(--f-title); font-weight: 700; font-size: 20px; line-height: 1.1; text-transform: uppercase; color: #fff; }
.notes-text {
  display: block; width: 100%; min-height: 130px; resize: vertical; outline: none; border-radius: 0;
  background: rgba(0, 0, 0, 0.42); border: 1px solid var(--brown); color: #fff; padding: 8px 10px; font-size: 16px; line-height: 1.4;
}
.notes-text:focus { border-color: var(--orange); }
.notes-sub { font-family: var(--f-num); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; margin-top: 10px; }
.bp-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 8px 14px; margin-top: 8px; align-items: start; }
.bp-info .ls-desc { margin-top: 0; }
.ls-deschead { flex-wrap: wrap; }
.ls-deshead-l, .ls-deshead-r { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ls-deshead-l { flex: 1 1 auto; }
.ls-deshead-r { align-items: center; }
.ls-deshint { font-family: var(--f-num); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; white-space: nowrap; }
.ls-deschead .btn.small { height: 28px; font-size: 16px; }
.ls-deschead .btn.small > span { padding: 1px 10px 0; }
/* editor PREVIEW: at least the textarea's height, grows with the text up to 70vh, then scrolls inside */
.notes-preview {
  min-height: 130px; max-height: 70vh; overflow: auto; padding: 8px 10px;
  background: rgba(0, 0, 0, 0.42); border: 1px solid var(--brown); outline: none;
}
.notes-preview:focus-visible { border-color: var(--orange); }

/* Markdown description (js/markdown.js) */
.mdown { max-width: 78ch; font-size: 17px; line-height: 1.45; color: var(--light); overflow-wrap: anywhere; }
.mdown > :first-child { margin-top: 0; }
.mdown > :last-child { margin-bottom: 0; }
.mdown p { margin: 0 0 0.7em; }
.mdown h1, .mdown h2, .mdown h3 {
  margin: 0.9em 0 0.35em; font-family: var(--f-title); font-weight: 700; line-height: 1.1; text-transform: uppercase; color: #fff;
}
.mdown h1 { font-size: 28px; color: var(--orange); }
.mdown h2 { font-size: 23px; padding-bottom: 3px; border-bottom: 2px solid rgba(255, 156, 0, 0.45); }
.mdown h3 { font-size: 19px; color: var(--orange-l); }
.mdown strong { color: #fff; font-weight: 700; }
.mdown em { font-style: italic; }
.mdown del { color: var(--dim); }
.mdown a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(255, 156, 0, 0.45); text-underline-offset: 2px; }
.mdown a:hover { color: var(--orange-l); text-decoration-color: currentColor; }
.mdown code {
  font-family: var(--f-num); font-size: 0.86em; color: var(--orange-l);
  background: rgba(0, 0, 0, 0.5); padding: 1px 5px; border: 1px solid rgba(91, 65, 45, 0.8);
}
.mdown pre {
  margin: 0 0 0.8em; padding: 8px 10px; overflow-x: auto; max-width: 100%;
  background: rgba(0, 0, 0, 0.6); border-left: 3px solid var(--orange);
}
.mdown pre code { display: block; padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.4; color: var(--light-text); white-space: pre; overflow-wrap: normal; tab-size: 4; }
.mdown blockquote {
  margin: 0 0 0.8em; padding: 4px 0 4px 12px; border-left: 3px solid var(--orange);
  background: rgba(255, 156, 0, 0.06); color: var(--light-text);
}
.mdown blockquote p { margin-bottom: 0.4em; }
.mdown ul, .mdown ol { margin: 0 0 0.8em; padding-left: 22px; }
.mdown li { margin: 0.15em 0; }
.mdown ol.wide { padding-left: 0; list-style-position: inside; }
.mdown li::marker { color: var(--orange); font-family: var(--f-num); font-weight: 600; }
.mdown li > ul, .mdown li > ol { margin: 0.15em 0 0.2em; }
.mdown hr { height: 0; margin: 0.9em 0; border: 0; border-top: 2px solid rgba(255, 156, 0, 0.5); }
.bp-use .codebox { font-size: 14px; padding: 7px 9px; }
.bp-use .howto ol { padding-left: 18px; font-size: 15px; }

/* white corner brackets around the selected thing, like the game's selection box */
.pslot.sel::before, .pp-cell.on::before, .ocg-opt.on::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 2;
  --b: #fff;
  background:
    linear-gradient(var(--b), var(--b)) left top / 11px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) left top / 2px 11px no-repeat,
    linear-gradient(var(--b), var(--b)) right top / 11px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) right top / 2px 11px no-repeat,
    linear-gradient(var(--b), var(--b)) left bottom / 11px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) left bottom / 2px 11px no-repeat,
    linear-gradient(var(--b), var(--b)) right bottom / 11px 2px no-repeat,
    linear-gradient(var(--b), var(--b)) right bottom / 2px 11px no-repeat;
}

/* perk column: star, 3 passive slots, 2 active, 1 proficiency */
.pcol {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 8px 7px 10px;
  background: rgba(0, 0, 0, 0.62); border-top: 2px solid var(--orange);
}
.pcol-star {
  display: block; width: 22px; height: 22px; flex: none; background: var(--orange);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.pslot { position: relative; display: block; width: 42px; height: 42px; flex: none; padding: 0; border: 0; background: none; }
button.pslot { cursor: pointer; }
.ps-bg { position: absolute; inset: 0; }
.ps-gl { position: absolute; inset: 13%; z-index: 1; }
.pslot.passive .ps-bg { background: rgba(0, 0, 0, 0.8); box-shadow: inset 0 0 0 2px var(--passive); }
.pslot.passive .ps-gl { --c: var(--passive); }
.pslot.active .ps-bg { background: rgba(0, 0, 0, 0.8); -webkit-mask: var(--f-perk-active) center / 100% 100% no-repeat; mask: var(--f-perk-active) center / 100% 100% no-repeat; }
.pslot.active::after {
  content: ""; position: absolute; inset: 0; background: var(--active);
  -webkit-mask: var(--f-perk-active-ol) center / 100% 100% no-repeat; mask: var(--f-perk-active-ol) center / 100% 100% no-repeat;
}
.pslot.active .ps-gl { --c: var(--active); }
.pslot.proficiency .ps-bg { background: #6a4a32; }
.pslot.proficiency .ps-gl { --c: var(--prof); }
/* equipped: a tile in the perk colour with a dark glyph, like the game */
.pslot.full .ps-gl { --c: #050403; }
.pslot.passive.full .ps-bg { background: var(--passive); box-shadow: none; }
.pslot.active.full .ps-bg { background: var(--active); }
.pslot.active.full::after { display: none; }
.pslot.proficiency.full .ps-bg { background: var(--prof); box-shadow: none; -webkit-mask: var(--f-prof) center / 100% 100% no-repeat; mask: var(--f-prof) center / 100% 100% no-repeat; }
.pslot.proficiency.full .ps-gl { inset: 20%; }
button.pslot:hover .ps-bg { filter: brightness(1.6); }
button.pslot.full:hover .ps-bg { filter: brightness(1.15); }
button.pslot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* perk panel: next to the column, over the portrait */
.ov-pp { grid-area: mid; z-index: 4; align-self: center; justify-self: start; min-width: 0; }
.pp { width: 286px; max-width: 100%; background: rgba(8, 6, 4, 0.9); border-top: 2px solid var(--orange); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.pp-head {
  padding: 9px 10px; text-align: center; background: rgba(0, 0, 0, 0.5);
  font-family: var(--f-title); font-weight: 700; font-size: 24px; line-height: 1.1; text-transform: uppercase; color: #fff;
}
.pp-grid { display: grid; grid-template-columns: repeat(4, 58px); gap: 6px; padding: 10px; justify-content: center; }
.pp-cell { position: relative; width: 58px; height: 58px; padding: 0; border: 0; background: rgba(255, 255, 255, 0.05); cursor: pointer; }
.pp-cell:hover { background: rgba(89, 63, 44, 0.95); }
.pp-cell.on { background: rgba(89, 63, 44, 0.95); }
.pp-cell.used { opacity: 0.4; }
.pp-cell.used:hover { opacity: 0.8; }
.pp-cell:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pp-gl { position: absolute; inset: 12%; }
.pp-cell.passive .pp-gl { --c: var(--passive); }
.pp-cell.active .pp-gl { --c: var(--active); }
.pp-cell.proficiency .pp-gl { --c: var(--prof); }

/* centre: the class portrait */
.portrait { position: relative; width: min(100%, calc(var(--ovh) - 40px), 460px); aspect-ratio: 1 / 1; }
.portrait::before {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -2%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.portrait img {
  position: relative; display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(closest-side, #000 60%, rgba(0, 0, 0, 0) 100%);
}
.ov.pp-open .portrait { opacity: 0.55; }

/* class switcher  << SCOUT >> */
.switch {
  display: flex; align-items: stretch; width: min(100%, 470px); height: 44px;
  background: rgba(0, 0, 0, 0.78); border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
}
.sw-name {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-title); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff;
}
.sw-name .cls-icon { width: 26px; height: 26px; }
.sw-arrow { position: relative; width: 52px; flex: none; border: 0; padding: 0; background: transparent; cursor: pointer; }
.sw-arrow::before {
  content: ""; position: absolute; inset: 6px 12px; background: var(--orange);
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.sw-arrow.next::before { transform: scaleX(-1); }
.sw-arrow:hover::before { background: var(--orange-l); }
.sw-arrow:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* gear modification screen */
.md {
  --rowh: 48px;
  display: grid; gap: 8px 16px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
  grid-template-rows: var(--ovh) auto;
  grid-template-areas: "left panel" ". bottom";
}
.md-left { grid-area: left; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.md-tabs { display: flex; justify-content: flex-start; min-height: 52px; padding-left: 8px; background: rgba(0, 0, 0, 0.55); border-top: 2px solid var(--orange); }
.md-tab {
  flex: 0 1 128px; min-width: 0; height: 52px; padding: 7px 16px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center;
}
button.md-tab { cursor: pointer; }
.md-tab .sil { --c: #7a6247; }
button.md-tab:hover { background: rgba(89, 63, 44, 0.6); }
button.md-tab:hover .sil { --c: var(--light-text); }
.md-tab.on { background: var(--orange); }
.md-tab.on .sil { --c: #1d1409; }
button.md-tab:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.md-name { align-self: flex-start; max-width: 100%; margin: 10px 0 0 4%; text-align: center; min-width: 0; }
.md-name h2 {
  margin: 0; font-family: var(--f-title); font-weight: 700; font-size: 46px; line-height: 1; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: anywhere;
}
.md-cat { margin-top: 3px; font-family: var(--f-num); font-weight: 600; font-size: 18px; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; }
.md-stage { position: relative; flex: 1; min-height: 0; }
/* the line art, centred in the upper part of the stage (the stats box sits bottom right, over the
   rest, like the game's), with a soft orange glow (on the parent: a mask would cut it) */
.md-pic {
  position: absolute; inset: 0 0 30% 0; display: flex; align-items: center; justify-content: center; container-type: size;
  filter: drop-shadow(0 0 1px rgba(255, 156, 0, 0.9)) drop-shadow(0 0 12px rgba(255, 156, 0, 0.3));
}
.md-pic .big-line { --c: var(--orange); width: 56%; height: 70%; }
.md-pic .big-line.fit { width: min(82cqw, 84cqh * var(--ar)); height: auto; aspect-ratio: var(--ar); }
/* stats box, bottom right like the game's: more rows make it grow upwards over the picture */
.md-stats {
  position: absolute; right: 0; bottom: 0; z-index: 1; width: min(100%, 470px); max-height: 100%; overflow: auto; scrollbar-width: thin;
  padding: 8px 14px 10px; background: rgba(0, 0, 0, 0.62); border-bottom: 3px solid var(--orange);
}
.md-stats:empty { display: none; }
.st-row { display: flex; align-items: baseline; gap: 12px; padding: 0 4px; font-size: 18px; line-height: 1.5; }
.st-row.changed { background: rgba(0, 0, 0, 0.5); }
.st-label { flex: 1; min-width: 0; color: #fff; }
.st-delta, .st-val { font-family: var(--f-num); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; }
.st-delta.good { color: var(--good); }
.st-delta.bad { color: #FF3B2B; }
.st-val { min-width: 3.6em; text-align: right; color: var(--orange-l); }
.st-desc { font-size: 15px; line-height: 1.36; color: var(--light); white-space: pre-line; }
.st-lines { margin-top: 6px; }
.st-line { font-family: var(--f-title); font-weight: 600; font-size: 19px; line-height: 1.32; padding: 0 4px; }
.st-line.t-upgrade { color: var(--orange-l); }
.st-line.t-oc { color: var(--good); }
.st-line.t-bad { color: #FF3B2B; }

/* right panel: GEAR MODIFICATIONS */
.md-panel { grid-area: panel; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: rgba(0, 0, 0, 0.3); border-top: 2px solid var(--orange); }
.md-head { display: flex; align-items: center; gap: 8px; height: 46px; flex: none; padding: 0 8px; background: rgba(0, 0, 0, 0.6); }
.md-title { flex: 1; text-align: center; padding-right: 44px; font-family: var(--f-title); font-weight: 700; font-size: 24px; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-title.solo { padding-right: 0; font-size: 30px; }
.md-more { position: relative; width: 40px; height: 32px; flex: none; background: #0b0906; }
.md-more::before {
  content: ""; position: absolute; inset: 4px 8px; background: var(--orange); transform: scaleX(-1);
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}
.md-mid { position: relative; flex: 1; min-height: 0; display: flex; }
.md-body { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 108px minmax(0, 1fr); }
.md-strip { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 0 10px; background: rgba(0, 0, 0, 0.42); }
.md-rows { display: flex; flex-direction: column; gap: 9px; padding: 12px 12px 10px 16px; min-width: 0; background: rgba(74, 60, 40, 0.28); }
.md-bigcell, .md-row { height: var(--rowh); flex: none; display: flex; align-items: center; min-width: 0; }
.hex.big { --cw: 74px; --ch: 48px; }
.hex.big > .bg { --c: #fff; }
.hex.big > .ol { display: none; }
.hex.big > .gl { --c: #050403; top: 16%; bottom: 16%; }
/* a tier with no choice: a black hexagon with a full orange outline, like the game (drawn with clip-path: the
   upgrade mask has margins, so an inset copy of it left only the side edges orange) */
.hex.big.void > .bg { display: none; }
.hex.big.void::before, .hex.big.void::after {
  content: ""; position: absolute; clip-path: polygon(18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%, 0 50%);
}
.hex.big.void::before { inset: 0; background: var(--orange); }
.hex.big.void::after { inset: 3px 4px; background: #000; }
.md-opts { position: relative; display: inline-flex; align-items: center; gap: 24px; }
.md-opts::before { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; height: 7px; margin-top: -3.5px; background: #1a1410; }
.md-opts.n1::before { display: none; }
.mopt { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: #fff; text-align: left; font: inherit; }
button.mopt { cursor: pointer; }
.hex.opt { --cw: 60px; --ch: 40px; }
.hex.opt > .bg { --c: var(--orange); }
.hex.opt > .ol { --c: transparent; }
.hex.opt > .gl { --c: #1d1409; top: 17%; bottom: 17%; }
.hex.opt.on > .bg { --c: var(--orange-l); }
.hex.opt.on > .ol { --c: transparent; }
/* chosen: a thin white rim (about 2px) around the yellow hexagon, so the yellow dominates */
.hex.opt.on::before {
  content: ""; position: absolute; inset: -2px -3px; background: #fff;
  -webkit-mask: var(--f-upg-bg) center / contain no-repeat; mask: var(--f-upg-bg) center / contain no-repeat;
}
button.mopt:hover .hex.opt > .bg { --c: #FFB53B; }
button.mopt.on:hover .hex.opt > .bg { --c: #FFE04A; }
button.mopt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mopt.on .opt-name { color: var(--orange-l); }
.md-none { color: var(--dim); padding: 6px 0; }
/* overclock slot: fixed at the bottom of the strip; the tier rows keep room for it */
.md-ocslot {
  position: absolute; left: 0; bottom: 0; z-index: 1; width: 108px; padding: 10px 0; border: 0;
  background: rgba(0, 0, 0, 0.42); display: flex; justify-content: center; cursor: pointer;
}
.md-mid.has-oc .md-strip, .md-mid.has-oc .md-rows { padding-bottom: 108px; }
/* hover: the block opens around the slot (above it, the slot stays on top) and the slot's own icon grows
   into the block's icon place, like the game */
.md-ocslot > * { transition: transform 0.12s ease-out; }
.md-ocslot:hover { z-index: 3; background: transparent; }
.md-ocslot:hover > * { transform: scale(1.16); }
.md-ocslot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.ocb-hover { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }
.ocb-icon.slot-place { width: 80px; height: 80px; flex: none; }
/* the game's empty overclock slot: an upright hexagon, orange rim, dark fill a bit lighter in the middle */
.oc-empty {
  position: relative; display: block; width: 72px; height: 82px; background: var(--orange);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.oc-empty-in {
  position: absolute; inset: 3px; background: radial-gradient(circle at 50% 45%, #2e2e2e 0%, #1b1b1b 60%, #151515 100%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* overclock mode: the tiers blur, the item's overclocks on top */
.md-panel.ocmode .md-body { filter: blur(4px) brightness(0.55); pointer-events: none; }
.md-panel.ocmode .ocb-host { cursor: pointer; }
/* three columns from the strip on, last row full at the bottom, like the game */
.md-ocgrid { position: absolute; inset: 0; z-index: 1; overflow: hidden auto; scrollbar-width: none; padding: 8px 8px 8px 6px; }
.ocg-list { display: grid; grid-template-columns: repeat(3, 96px); gap: 10px 0; justify-items: center; justify-content: start; align-content: end; min-height: 100%; }
.ocg-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border: 0; background: none; color: #fff; cursor: pointer; min-width: 0; }
.ocg-opt:hover .oc { filter: brightness(1.25); }
.ocg-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ocg-opt.on::before { inset: -2px; }

/* overclock block under the tiers: coloured head, icon, stat lines */
.ocb-host { flex: none; }
/* fixed frame: the same size for every overclock, so hovering never moves the grid above */
.ocb { display: flex; flex-direction: column; width: 100%; height: 196px; padding: 0; border: 0; text-align: left; color: #fff; background: none; font: inherit; }
.ocb-head { flex: none; height: 58px; padding: 6px 12px 5px; background: var(--balanced); color: #120c06; overflow: hidden; }
.ocb.clean .ocb-head { background: var(--clean); }
.ocb.unstable .ocb-head { background: var(--unstable); }
.ocb-name { font-family: var(--f-title); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocb-type { font-family: var(--f-num); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.ocb-body { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(60, 48, 34, 0.6); }
.ocb-icon .oc.xl { width: 80px; height: 80px; }
.ocb-stats { flex: 1; min-width: 0; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.ocb-stat { display: flex; align-items: center; gap: 10px; padding: 2px 8px; background: rgba(255, 255, 255, 0.05); font-size: 14px; line-height: 1.2; color: var(--light); }
.tri { width: 10px; height: 8px; flex: none; }
.ocb-stat.good .tri { background: var(--good); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ocb-stat.bad .tri { background: #FF3B2B; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ocb-head.none { background: #C9C9C9; color: #121212; display: flex; align-items: center; }
.md-panel > .pills { flex: none; margin: 0; padding: 10px; gap: 4px; background: rgba(0, 0, 0, 0.6); }
.md-panel .pill { position: relative; height: 16px; border-radius: 8px; }
.md-panel .pill .gl { position: absolute; inset: 2px 0; --c: #1d1409; }
.md-bottom { grid-area: bottom; display: flex; justify-content: flex-end; }

/* GRENADE SELECTION: big upright hexagons in a column */
.md.gren .md-tabs { visibility: hidden; }
.md-panel.gren { --gs: clamp(70px, calc((var(--ovh) - 120px) / 4 - 14px), 126px); }
.gs-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 10px; padding: 12px; }
.gs-opt { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: #fff; font: inherit; }
button.gs-opt { cursor: pointer; }
.gs-hex {
  position: relative; display: block; width: calc(var(--gs) * 0.88); height: var(--gs); flex: none; background: #6b3f00;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.gs-bg { position: absolute; inset: 4px; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.gs-gl { position: absolute; inset: 24% 20%; --c: #1d1409; }
.gs-gl.detail { inset: 16% 10%; }
.gs-hex.on { background: #fff; }
.gs-hex.on .gs-bg { background: var(--orange-l); }
button.gs-opt:hover .gs-bg { background: #FFB53B; }
button.gs-opt.on:hover .gs-bg { background: #FFE04A; }
button.gs-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov { grid-template-columns: minmax(0, 300px) 54px minmax(0, 1fr) minmax(0, 300px); }
  .md-title { font-size: 21px; }
  .bp-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ls { --ovh: auto; }
  /* overview: one column in the order of the game's cards */
  .ov { display: flex; flex-direction: column; gap: 8px; }
  .ov-left, .ov-right { display: contents; }
  .ov-mid { order: 1; }
  .ov-switch { order: 2; }
  .gc { height: 134px; }
  .gc.s-primary { order: 3; }
  .gc.s-secondary { order: 4; }
  .gc.s-tool { order: 5; }
  .gc.s-traversal { order: 6; }
  .gc.s-grenade { order: 7; }
  .gc.s-armor { order: 8; }
  .gc.s-pickaxe { order: 9; }
  .gc.flare { order: 10; }
  .ov-perks { order: 11; align-self: stretch; }
  .ov-pp { order: 12; align-self: stretch; }
  .pp { width: 100%; }
  .pp-grid { grid-template-columns: repeat(auto-fill, 54px); }
  .pp-cell { width: 54px; height: 54px; }
  .ov.pp-open .portrait { opacity: 1; }
  .ov-action { order: 13; }
  .pcol { flex-direction: row; justify-content: center; flex-wrap: wrap; width: 100%; }
  .portrait { width: 160px; }
  .switch { width: 100%; }
  .ls-actions { justify-content: stretch; width: 100%; }
  .ls-actions .btn { flex: 1; }
  .ls-hint { max-width: none; text-align: left; flex-basis: 100%; }
  /* modification screen: stacked */
  .md { display: flex; flex-direction: column; gap: 8px; }
  .md-left, .md-stage { display: contents; }
  .md-tabs { order: 1; }
  .md.gren .md-tabs { display: none; }
  .md-name { order: 2; margin: 2px auto 0; }
  .md-pic { order: 3; position: relative; inset: auto; flex: none; height: 180px; }
  .md-panel { order: 5; }
  .md-stats { order: 6; position: static; width: auto; max-height: none; }
  .md-bottom { order: 7; }
  .md-body, .md-mid { overflow: visible; }
  .md-panel.ocmode .md-body { display: none; }
  .md-ocgrid { position: static; }
  .md-name h2 { font-size: 36px; }
  .md-cat { font-size: 15px; }
  .md-tab { flex: 1 1 0; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .topbar-in { height: auto; flex-wrap: wrap; gap: 0 12px; padding: 8px 12px 0; }
  .logo { height: 40px; }
  .account { margin-left: auto; height: 40px; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .nav-link { font-size: 17px; padding: 6px 6px 8px; }
  .user-name { display: none; }
  .wide-text { display: none; }
  .account .btn.small { height: 32px; font-size: 16px; }
  .app { padding: 12px 12px 30px; }
  .foot-in { padding: 12px; }
  .foot-r { align-items: flex-start; }
  .page-title { font-size: 32px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .rep-row { grid-template-columns: minmax(0, 1fr); }
  .tab { padding: 0 10px; font-size: 17px; height: 38px; gap: 6px; }
  .tab .cls-icon { width: 20px; height: 20px; }
  .tabs { gap: 4px; }
  .filters .wpick, .filters .search { flex: 1 1 100%; width: auto; min-width: 0; }
  .wpick-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .sortbox { flex: 1 1 100%; }
  .sortbox .btn { flex: 1; }
  .btn.big { height: 54px; font-size: 28px; }
  .ls-top { padding: 8px 10px; }
  .ls-top .btitle { font-size: 26px; }
  .ls-codebox { flex-basis: 100%; }
  .ls-titlebox { flex: 1 1 0; }
  .ls-clsicon { width: 36px; height: 36px; }
  .ls-topbtns { flex-basis: 100%; }
  .ls-topbtns .btn { flex: 1 1 auto; }
  /* hexagon rows: smaller, names under the hexagons in the ">>" mode */
  .md { --rowh: 46px; }
  .md-body { grid-template-columns: 74px minmax(0, 1fr); }
  .md-strip { gap: 8px; padding-top: 10px; }
  .md-rows { gap: 8px; padding: 10px 8px 10px 10px; }
  .hex.big { --cw: 62px; --ch: 41px; }
  .hex.opt { --cw: 54px; --ch: 36px; }
  .md-opts { gap: 16px; }
  .md-opts::before { left: 24px; right: 24px; }
  .oc.xl { width: 70px; height: 70px; }
  .ocb-name { font-size: 24px; }
  .md-panel .pill { height: 12px; }
}
@media (max-width: 420px) {
  .gc-name { font-size: 18px; }
  .sw-name { font-size: 22px; }
  .classes { gap: 8px; }
  .cls-card .cls-name { font-size: 21px; }
}
