/* ut-X.net archive – UT2004 design language, worn but noble metal
   Background: one calm sheet of dark steel (tex-steel). Titles on metal are slightly embossed. Surfaces: brushed steel with grime and scratches (tex-brushed, tex-grime).
   Menu windows: steel frames with a bevel, rivets and a header strip (.panel, .dlbox, .vault, …).
   HUD: slanted glossy panels, skewed digits, team blue (.hud, buttons, chips, badges).
   Lists: server browser (files) and scoreboard (most downloaded). Bronze of the logo is the primary colour. */

@font-face { font-family: "Saira Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/saira-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/saira-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/saira-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/barlow-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #06080c;
  --bg-2: #0a0e15;
  --panel: #0e141d;
  --panel-2: #141c28;
  --panel-3: #1b2533;
  --line: rgba(150, 175, 205, .12);
  --line-2: rgba(150, 175, 205, .22);
  --frame: rgba(125, 155, 195, .26);    /* steel frame */
  --frame-hi: rgba(190, 210, 238, .42); /* bevel light, top edge */
  --frame-lo: rgba(0, 0, 0, .78);       /* bevel shadow, bottom edge */
  --text: #d8e0ea;
  --text-dim: #93a1b2;
  --text-faint: #5f6c7c;
  --gold: #d49943;      /* bronze of the UT2004 logo (mid tone) */
  --gold-hi: #fbd5a0;   /* logo highlight */
  --gold-lo: #905605;   /* logo shadow */
  --shock: #4cc3ff;
  --skaarj: #8fd14f;
  --red: #ff4d3d;
  --blue: #3d8bff;
  --team-blue: #2f7bff;
  --team-red: #e8402f;
  --g-ut99: #6fb7ff;
  --g-ut2004: #d49943;
  --g-ut3: #ff6a3d;
  --g-engine: #a98bff;
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  /* wordmark font ("ut-X.net" only): "UT Title" when web/static/fonts/ut-title.* exists (see /title-font.css) */
  --title: var(--display);
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --cut: 14px;
  --slant: 10px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* menu window: rivets in the corners, light bevel on top, fine diagonal plate texture */
  --rv: radial-gradient(circle, #c9d4e4 0 .8px, #5d6a80 1.5px, rgba(0, 0, 0, .8) 2.3px, transparent 3px);
  --rivets: var(--rv) left 5px top 5px / 7px 7px no-repeat, var(--rv) right 5px top 5px / 7px 7px no-repeat,
            var(--rv) left 5px bottom 5px / 7px 7px no-repeat, var(--rv) right 5px bottom 5px / 7px 7px no-repeat;
  --win-bg: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 46px),
            linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, .035) 36%, transparent 54%),
            linear-gradient(180deg, rgba(24, 33, 48, .95), rgba(11, 16, 24, .95));
  /* metal surfaces (procedural textures, see tools/gen-textures.js) */
  --brushed: url(/static/img/tex-brushed.webp) 0 0 / 384px 384px;
  --grime: url(/static/img/tex-grime.webp) 0 0 / 512px 512px;
  /* glossy header strip and glossy bronze (2004-style hard highlight at 50 %) */
  --strip: var(--brushed), linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 50%, rgba(0, 0, 0, .24) 51%, rgba(0, 0, 0, .1));
  --bronze-flat: linear-gradient(180deg, #ffe4b8 0%, #f0bb69 46%, #cc8d35 51%, #a96d1b 100%);
  --bronze: var(--brushed), var(--bronze-flat);
  --steel-btn: var(--brushed), linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05) 49%, rgba(0, 0, 0, .2) 51%, rgba(255, 255, 255, .04));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16.5px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* one continuous sheet of dark steel, lit warm from the top right and cold from the left, dark towards the edges */
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 30%, transparent 45%, rgba(0, 0, 0, .55) 100%),
    radial-gradient(1200px 600px at 85% -10%, rgba(212, 153, 67, .08), transparent 60%),
    radial-gradient(1000px 600px at -10% 40%, rgba(47, 123, 255, .06), transparent 60%),
    url(/static/img/tex-steel.webp);
  background-size: auto, auto, auto, 960px 960px;
  background-attachment: fixed, fixed, fixed, scroll;
}
img { max-width: 100%; height: auto; }
a { color: var(--shock); text-decoration: none; }
a:hover { color: #9be0ff; }
:focus-visible { outline: 2px solid var(--shock); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: #120c02; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .86em; word-break: break-all; }
svg { width: 1em; height: 1em; flex: none; }

/* a supplied title font usually has one weight: never fake bold or italics */
.brand-word, .hero-word { font-synthesis: none; }

/* ---------- shapes ----------
   menu windows are rectangular steel frames; small HUD elements are slanted parallelograms */
.panel, .dlbox, .vault, .feature, .game-card, .lead-news, .subpage, .article-nav a, .nodesc, .loadscreen, .browser {
  /* textures start at a different spot per sibling, so neighbouring windows don't look stamped */
  --metal: url(/static/img/tex-grime.webp) var(--to, 0 0) / 512px 512px, url(/static/img/tex-brushed.webp) var(--to, 0 0) / 384px 384px;
  position: relative; border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-bottom-color: var(--frame-lo); border-radius: 2px;
  background: var(--rivets), var(--metal), var(--win-bg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 32px rgba(0, 0, 0, .5), 0 22px 46px -28px rgba(0, 0, 0, .95);
}
:nth-child(3n+2 of .panel, .dlbox, .vault, .feature, .game-card, .lead-news, .subpage, .browser) { --to: -173px -97px; }
:nth-child(3n+3 of .panel, .dlbox, .vault, .feature, .game-card, .lead-news, .subpage, .browser) { --to: -311px -251px; }
.article-nav a:last-child { --to: -217px -143px; }
.notice { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

/* ---------- masthead: steel menu bar ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--brushed), var(--grime), linear-gradient(180deg, rgba(31, 42, 60, .92), rgba(13, 18, 27, .92) 58%, rgba(7, 10, 15, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.masthead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(144, 86, 5, .8) 12%, var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, rgba(144, 86, 5, .8) 88%, transparent);
}
.masthead-bar { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-emblem { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(70, 110, 255, .45)) drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); transition: transform .4s var(--ease); }
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.06); }
.brand-word { font: 800 27px/1 var(--title); letter-spacing: .01em; }
.brand-ut { background: linear-gradient(180deg, #fff 0%, #c9d3df 48%, #7d8a9b 52%, #e9eef4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-dash, .brand-net { color: var(--text-faint); }
.brand-x { color: var(--gold); text-shadow: 0 0 18px rgba(212, 153, 67, .55); }
.brand-small .brand-word { font-size: 22px; }
.brand-small .brand-emblem { width: 38px; height: 38px; }

/* main navigation: menu tabs, the active one lit from below */
.mainnav { flex: 1; align-self: stretch; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; height: 100%; }
.mainnav a {
  position: relative; isolation: isolate; display: flex; align-items: center; height: 100%; padding: 0 16px;
  font: 700 15.5px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim);
  transition: color .2s;
}
.mainnav a::before {
  content: ""; position: absolute; inset: 12px 0 0; z-index: -1; opacity: 0; transition: opacity .25s;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(212, 153, 67, 0), rgba(212, 153, 67, .24)), var(--strip);
}
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bronze);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.mainnav a:hover, .mainnav a[aria-current] { color: var(--text); }
.mainnav a:hover::before, .mainnav a[aria-current]::before { opacity: 1; }
.mainnav a[aria-current]::after { transform: scaleX(1); }
.mainnav a[aria-current] { color: var(--gold-hi); }

.masthead-tools { display: flex; align-items: center; gap: 10px; }
/* input fields are sunk into the steel: the bevel is inverted */
.quicksearch { position: relative; display: flex; }
.quicksearch input {
  width: 210px; height: 36px; padding: 0 38px 0 12px; border: 1px solid var(--frame); border-top-color: rgba(0, 0, 0, .8); border-bottom-color: var(--frame-hi); border-radius: 2px;
  background: rgba(0, 0, 0, .38); color: var(--text); font: 500 14px var(--body);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); transition: width .3s var(--ease), border-color .2s, background .2s;
}
.quicksearch input::placeholder { color: var(--text-faint); }
.quicksearch input:focus { outline: none; width: 260px; border-color: var(--gold); background: rgba(212, 153, 67, .06); }
.quicksearch button { position: absolute; right: 3px; top: 3px; width: 30px; height: 30px; border: 0; background: none; color: var(--text-dim); cursor: pointer; font-size: 17px; display: grid; place-items: center; }
.quicksearch button:hover { color: var(--gold); }
.langswitch {
  display: grid; place-items: center; height: 36px; min-width: 46px; padding: 0 12px;
  font: 800 14px var(--display); letter-spacing: .12em; color: var(--text);
  background: var(--steel-btn), var(--panel-2); border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-bottom-color: var(--frame-lo); border-radius: 2px;
}
.langswitch:hover { color: #1b1003; background: var(--bronze); border-color: var(--gold-hi); }
.navtoggle { display: none; width: 42px; height: 36px; border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-radius: 2px; background: var(--steel-btn); cursor: pointer; position: relative; }
.navtoggle span:first-child, .navtoggle span:first-child::before, .navtoggle span:first-child::after {
  position: absolute; left: 11px; width: 19px; height: 2px; background: var(--text); content: ""; transition: transform .25s;
}
.navtoggle span:first-child { top: 17px; }
.navtoggle span:first-child::before { left: 0; top: -6px; }
.navtoggle span:first-child::after { left: 0; top: 6px; }
.navtoggle[aria-expanded="true"] span:first-child { background: transparent; }
.navtoggle[aria-expanded="true"] span:first-child::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:first-child::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: flex-end; margin-top: -70px; padding: 140px 0 56px; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0; z-index: -3;
  background: url(../img/hero-1920.webp) right 20% center / cover no-repeat;
  animation: heroDrift 26s ease-in-out infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, .96) 0%, rgba(6, 8, 12, .9) 26%, rgba(6, 8, 12, .58) 46%, rgba(6, 8, 12, .1) 68%, rgba(6, 8, 12, .35) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, .9) 0%, transparent 22%);
}
/* the hero art fades into the metal plates at the bottom: no edge */
.hero-art, .hero::before, .hero-scan { -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
/* HUD frame: corner brackets like the in-game display */
.hero-hud { position: absolute; inset: 92px 24px 22px; z-index: -1; pointer-events: none; max-width: calc(var(--wrap) + 120px); margin: 0 auto; }
.hero-hud i { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(212, 153, 67, .55); filter: drop-shadow(0 0 6px rgba(212, 153, 67, .6)); }
.hero-hud i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.hero-hud i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.hero-hud i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.hero-hud i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.hero-inner { position: relative; }
.hero-title { margin: 0 0 18px; line-height: .9; }
.hero-title-sub { display: block; margin-bottom: 14px; font: 700 clamp(18px, 2.2vw, 26px)/1.1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.hero-word {
  position: relative; display: inline-block; font: 800 clamp(72px, 13vw, 168px)/.84 var(--title); letter-spacing: -.01em;
  background: linear-gradient(180deg, #ffffff 0%, #dfe6ee 38%, #8693a4 49%, #3c4655 51%, #c6d0db 64%, #f4f7fa 82%, #8e9aab 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .6)) drop-shadow(0 18px 40px rgba(0, 0, 0, .65));
}
.hero-word em {
  font-style: normal;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 46%, var(--gold-lo) 54%, #f3b766 78%, #8a5208 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(212, 153, 67, .45));
}
.hero-lead { max-width: 560px; margin: 0 0 28px; font-size: 18.5px; color: #c3ceda; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

/* HUD readouts: slanted glossy team-blue panels, icon + skewed digits */
.hud { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 0; padding: 0 0 0 8px; }
.hud > div { position: relative; isolation: isolate; min-width: 150px; padding: 10px 28px 11px 22px; }
.hud > div::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(-16deg); border-radius: 3px;
  background: linear-gradient(180deg, rgba(130, 178, 255, .34) 0%, rgba(50, 105, 225, .26) 48%, rgba(10, 34, 100, .55) 52%, rgba(24, 58, 150, .38) 100%);
  border: 1px solid rgba(150, 190, 255, .55); border-bottom-color: rgba(20, 40, 110, .9);
  box-shadow: 0 0 24px rgba(47, 123, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -10px 18px -10px rgba(0, 10, 50, .8);
}
.hud dt { display: flex; align-items: center; gap: 7px; font: 700 12px var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(210, 226, 255, .82); }
.hud dt svg { font-size: 16px; color: #fff; filter: drop-shadow(0 0 5px rgba(120, 170, 255, .95)); }
.hud dd { margin: 3px 0 0; font: 800 38px/1 var(--display); color: #fff; transform: skewX(-8deg); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(120, 170, 255, .85), 0 2px 0 rgba(0, 0, 0, .55); }

@keyframes heroDrift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.09) translateX(-1.5%); } }

/* ---------- page band (inner pages) ---------- */
/* the band fades into the page at the bottom, the artwork fades out towards the text on its left:
   no hard edge at any viewport width */
.band { position: absolute; top: 0; left: 0; right: 0; height: 420px; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.band-art {
  position: absolute; top: -3.5%; right: -40px; height: 135%; aspect-ratio: 620 / 465;
  background: url(../img/band-skaarj.webp) center / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.band-files .band-art { top: -9%; right: -60px; height: 150%; aspect-ratio: 1100 / 1022; background-image: url(../img/band-files.webp); opacity: .5; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, .9) 0%, rgba(6, 8, 12, .8) 38%, rgba(6, 8, 12, .45) 70%, rgba(6, 8, 12, .25) 100%),
    linear-gradient(0deg, transparent 0%, rgba(6, 8, 12, .2) 60%, rgba(6, 8, 12, .6) 100%);
}
.band-scan { position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); }
.main { position: relative; z-index: 1; flex: 1; padding-bottom: 72px; }

/* ---------- headings ---------- */
.pagehead { padding-top: 44px; padding-bottom: 26px; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; font: 700 13.5px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.kicker a { color: inherit; }
.kicker-line { width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.pagetitle { margin: 0 0 14px; font: 800 clamp(34px, 5.2vw, 62px)/1.02 var(--display); letter-spacing: -.005em; color: #f3f6fa; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.pagelead { max-width: 720px; margin: 0; font-size: 18.5px; color: var(--text-dim); }
.pagelead.prose p { margin: 0; }

/* section headings: a bronze menu tab on a ruler line */
.section-title {
  display: flex; align-items: flex-end; gap: 0; margin: 0 0 22px; font: 800 19px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(212, 153, 67, .75); filter: drop-shadow(0 0 10px rgba(212, 153, 67, .18));
}
.section-title span {
  position: relative; padding: 11px 36px 10px 16px; color: #1b1003; background: var(--bronze);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0 100%); text-shadow: 0 -1px 0 rgba(70, 35, 0, .45), 0 1px 0 rgba(255, 238, 205, .6);
}
.section-title::after {
  content: ""; flex: 1; align-self: stretch; order: 1; margin-left: 6px;
  background: repeating-linear-gradient(90deg, rgba(212, 153, 67, .5) 0 2px, transparent 2px 10px) left bottom 2px / 100% 7px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%); mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.section-more { order: 2; align-self: center; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 4px; font: 700 13.5px var(--display); letter-spacing: .12em; color: var(--text-dim); white-space: nowrap; text-transform: uppercase; }
.section-more:hover { color: var(--gold); }

/* window header strip (first child of a menu window) */
.panel-title {
  display: block; margin: -22px -22px 16px; padding: 11px 24px 10px;
  font: 800 14.5px/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi);
  background: var(--rv) left 7px center / 7px 7px no-repeat, var(--rv) right 7px center / 7px 7px no-repeat,
    var(--strip), linear-gradient(90deg, rgba(212, 153, 67, .26), rgba(212, 153, 67, .05) 65%, transparent);
  border-bottom: 1px solid rgba(212, 153, 67, .5); box-shadow: 0 1px 0 rgba(0, 0, 0, .6);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 225, 180, .2), 0 0 12px rgba(212, 153, 67, .25);
}
.panel-title a { color: inherit; }

/* ---------- buttons, chips, badges ---------- */
.btn {
  --slant: 12px; position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border: 0; cursor: pointer;
  background: none; font: 800 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  transition: transform .35s var(--ease), filter .35s var(--ease), color .25s;
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.btn::before { z-index: -1; transition: background .3s, box-shadow .3s; }
.btn::after { background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%) no-repeat; background-size: 250% 100%; background-position: 130% 0;
  transition: background-position .85s var(--ease); mix-blend-mode: soft-light; }
.btn:hover::after { background-position: -30% 0; }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn svg { font-size: 18px; }
.btn-gold { color: #1c1004; text-shadow: 0 1px 0 rgba(255, 238, 205, .45); filter: drop-shadow(0 0 0 rgba(212, 153, 67, 0)); }
.btn-gold::before { background: var(--bronze); box-shadow: inset 0 0 0 1px rgba(255, 236, 205, .55), inset 0 -8px 14px -8px rgba(90, 40, 0, .65); }
.btn-gold:hover { color: #1c1004; transform: translateY(-2px); filter: drop-shadow(0 0 18px rgba(212, 153, 67, .6)) drop-shadow(0 0 3px rgba(251, 213, 160, .9)); }
.btn-ghost { color: var(--text); }
.btn-ghost::before { background: var(--steel-btn), rgba(20, 28, 40, .7); box-shadow: inset 0 0 0 1px rgba(170, 195, 230, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { color: var(--gold-hi); transform: translateY(-2px); filter: drop-shadow(0 0 14px rgba(212, 153, 67, .38)); }
.btn-ghost:hover::before { background: var(--steel-btn), rgba(212, 153, 67, .14); box-shadow: inset 0 0 0 1px rgba(212, 153, 67, .7), inset 0 0 22px -6px rgba(212, 153, 67, .5); }
.game {
  display: inline-block; padding: 4px 9px 3px; font: 800 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  transform: skewX(-14deg); color: var(--gc, var(--gold)); background: color-mix(in srgb, var(--gc, var(--gold)) 16%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc, var(--gold)) 50%, transparent) inset, inset 0 1px 0 rgba(255, 255, 255, .12);
}
.game-ut99 { --gc: var(--g-ut99); }
.game-ut2004 { --gc: var(--g-ut2004); }
.game-ut3 { --gc: var(--g-ut3); }
.game-engine { --gc: var(--g-engine); }
.gt {
  display: inline-grid; place-items: center; min-width: 46px; padding: 4px 7px 3px; font: 800 12px/1 var(--display); letter-spacing: .08em;
  color: var(--gtc, var(--text-dim)); background: color-mix(in srgb, var(--gtc, #8f9cad) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gtc, #8f9cad) 45%, transparent) inset, inset 0 1px 0 rgba(255, 255, 255, .1); transform: skewX(-14deg);
}
.gt-dm { --gtc: #ff5b4a; } .gt-ctf { --gtc: #4d95ff; } .gt-vctf { --gtc: #4cc3ff; } .gt-ons { --gtc: #8fd14f; }
.gt-as { --gtc: #d49943; } .gt-war { --gtc: #c27bff; } .gt-br { --gtc: #ff9b3d; } .gt-dom { --gtc: #ffd23d; }
.gt-tdm { --gtc: #ff7b6b; } .gt-inv { --gtc: #63e0b0; } .gt-jb { --gtc: #ffa0d0; }
.gt-big { margin-right: 14px; font-size: .42em; vertical-align: .35em; padding: 6px 10px 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; font: 700 15px var(--display); letter-spacing: .06em; color: var(--text);
  background: var(--steel-btn), var(--panel-2); box-shadow: inset 0 0 0 1px var(--frame);
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.chip:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212, 153, 67, .6); }
.count { font: 600 12.5px var(--display); color: var(--text-faint); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tag-de { margin-left: 8px; padding: 1px 5px; font: 700 10.5px var(--display); letter-spacing: .1em; color: var(--text-faint); box-shadow: 0 0 0 1px var(--line-2) inset; }

/* killing-spree tiers (downloads) and the announcer line on the file page */
.spree {
  display: inline-block; flex: none; margin-left: 10px; padding: 3px 8px 2px; font: 800 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: #ffd29a; background: linear-gradient(180deg, rgba(255, 140, 50, .32), rgba(150, 45, 10, .38)); box-shadow: inset 0 0 0 1px rgba(255, 150, 80, .55);
  transform: skewX(-14deg); text-shadow: 0 0 8px rgba(255, 120, 40, .8);
}
.spree-dominating, .spree-unstoppable { color: #ffc0b0; background: linear-gradient(180deg, rgba(255, 70, 50, .36), rgba(130, 15, 10, .45)); box-shadow: inset 0 0 0 1px rgba(255, 100, 80, .6); text-shadow: 0 0 8px rgba(255, 60, 40, .85); }
.spree-godlike, .spree-wicked-sick { color: #1b1003; background: var(--bronze); box-shadow: inset 0 0 0 1px rgba(255, 236, 205, .6), 0 0 12px rgba(212, 153, 67, .55); text-shadow: 0 1px 0 rgba(255, 238, 205, .5); }
.announce {
  margin: 0 0 14px; text-align: center; font: 800 30px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6dc 0%, #ffcf7a 45%, #ff8a2a 55%, #e0481a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: skewX(-8deg); filter: drop-shadow(0 0 12px rgba(255, 120, 40, .55)) drop-shadow(0 2px 0 rgba(0, 0, 0, .6));
}
.announce-godlike, .announce-wicked-sick { font-size: 36px; background-image: linear-gradient(180deg, #ffffff 0%, var(--gold-hi) 40%, var(--gold) 55%, var(--gold-lo) 100%); filter: drop-shadow(0 0 16px rgba(212, 153, 67, .8)) drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }

/* ---------- panels ---------- */
.panel { padding: 22px 22px 20px; }
.side, .home-side { display: flex; flex-direction: column; gap: 22px; }
.side .panel + .panel { margin: 0; }

/* ---------- layout helpers ---------- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.with-side-wide { grid-template-columns: minmax(0, 1fr) 380px; }
.with-side-left .side { position: sticky; top: 96px; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; margin-top: 64px; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; padding: 0; font: 600 13.5px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; color: var(--text-faint); }
.crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--text-faint); }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text-faint); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- game cards ---------- */
.games { margin-top: 56px; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
  isolation: isolate; display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: 24px 22px 22px; overflow: hidden; color: var(--text);
  background: var(--rivets), var(--metal), linear-gradient(160deg, color-mix(in srgb, var(--gc) 14%, transparent), transparent 65%), var(--win-bg);
}
.game-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gc), transparent); box-shadow: 0 0 12px var(--gc); }
.game-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: transform .6s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.game-card:hover { --lift: -5px; color: var(--text); transition: transform .15s linear, box-shadow .4s var(--ease), border-color .4s;
  border-color: color-mix(in srgb, var(--gc) 70%, transparent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 34px -6px color-mix(in srgb, var(--gc) 50%, transparent), inset 0 0 50px -14px color-mix(in srgb, var(--gc) 50%, transparent); }
.game-card-year { position: absolute; right: -6px; top: -14px; z-index: -1; font: 800 118px/1 var(--display); color: color-mix(in srgb, var(--gc) 10%, transparent); letter-spacing: -.04em; transform: skewX(-8deg);
  transition: color .5s var(--ease), translate .6s var(--ease); }
.game-card:hover .game-card-year { color: color-mix(in srgb, var(--gc) 18%, transparent); translate: -8px 4px; }
.game-card .game { align-self: flex-start; }
.game-card-title { font: 800 26px/1.05 var(--display); letter-spacing: .01em; }
.game-card-text { color: var(--text-dim); font-size: 15px; line-height: 1.45; }
.game-card-go { margin-top: auto; color: var(--gc); font-size: 22px; transition: transform .3s var(--ease); }
.game-card:hover .game-card-go { transform: translateX(6px); }

/* ---------- news ---------- */
.lead-news {
  padding: 30px 30px 26px; margin-bottom: 18px; overflow: hidden;
  background: var(--rivets), var(--metal), radial-gradient(600px 220px at 100% 0%, color-mix(in srgb, var(--gc, var(--gold)) 18%, transparent), transparent 70%), var(--win-bg);
}
.lead-news::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gc, var(--gold)), transparent); box-shadow: 0 0 12px var(--gc, var(--gold)); }
.lead-news.game-ut99, .newsrow.game-ut99 { --gc: var(--g-ut99); } .lead-news.game-ut2004, .newsrow.game-ut2004 { --gc: var(--g-ut2004); }
.lead-news.game-ut3, .newsrow.game-ut3 { --gc: var(--g-ut3); } .lead-news.game-engine, .newsrow.game-engine { --gc: var(--g-engine); }
.lead-news h3 { margin: 6px 0 12px; font: 800 clamp(26px, 3vw, 36px)/1.08 var(--display); text-wrap: balance; }
.lead-news h3 a, .newsrow h3 a { color: var(--text); }
.lead-news h3 a:hover, .newsrow h3 a:hover { color: var(--gold-hi); }
.lead-news .excerpt { margin: 0 0 16px; color: var(--text-dim); font-size: 17px; }
.readmore { display: inline-flex; align-items: center; gap: 7px; font: 800 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.readmore:hover { color: var(--gold-hi); gap: 11px; }
.meta { margin: 0; font: 600 13.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.meta .cat { color: var(--gc, var(--gold)); }
.newslist { display: flex; flex-direction: column; }
.newslist-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.newsrow {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 18px 12px 18px 0;
  border-bottom: 1px solid var(--line); transition: background .25s;
}
.newsrow::before { content: ""; position: absolute; left: -12px; top: 18px; bottom: 18px; width: 2px; background: var(--gc, var(--gold)); opacity: 0; transition: opacity .25s; }
.newsrow:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent); }
.newsrow:hover::before { opacity: 1; }
.newsrow h3 { margin: 4px 0 6px; font: 700 21px/1.18 var(--display); letter-spacing: .005em; }
.newsrow .excerpt { margin: 0; color: var(--text-dim); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* date as a small HUD counter */
.datechip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 70px; font-family: var(--display);
  background: var(--strip), var(--panel-2); border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-bottom-color: var(--frame-lo); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}
.datechip .d { font-weight: 800; font-size: 27px; line-height: 1; color: var(--gc, var(--gold)); transform: skewX(-8deg); }
.datechip .m { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
.datechip .y { font-weight: 600; font-size: 11.5px; letter-spacing: .1em; color: var(--text-faint); }
.empty { padding: 30px 0; color: var(--text-dim); list-style: none; }

.catlist, .yearlist, .minilist, .toc ul { list-style: none; margin: 0; padding: 0; }
.catlist a, .minilist a, .toc a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 500; }
.catlist li:last-child a, .minilist li:last-child a, .toc li:last-child a { border-bottom: 0; }
.catlist a:hover, .minilist a:hover, .toc a:hover, .catlist a[aria-current], .toc a[aria-current] { color: var(--gold-hi); }
.toc a[aria-current] { padding-left: 10px; box-shadow: inset 2px 0 var(--gold); }
.minilist a { flex-direction: column; gap: 2px; font-size: 15px; }
.minilist time { color: var(--text-faint); font-size: 13px; }
.yearlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.yearlist a { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; font: 800 18px var(--display); color: var(--text);
  background: var(--steel-btn), var(--panel-2); border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-bottom-color: var(--frame-lo); border-radius: 2px; }
.yearlist a:hover, .yearlist a[aria-current] { color: #1c1004; background: var(--bronze); border-color: var(--gold-hi); }
.yearlist a:hover .count, .yearlist a[aria-current] .count { color: rgba(26, 16, 2, .7); }

/* most downloaded: scoreboard */
.scoreboard { margin: 0 0 14px; }
.score-head, .score-row a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.score-head { padding: 0 8px 7px; font: 700 11.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid rgba(212, 153, 67, .35); }
.score-head span:last-child { text-align: right; }
.score-rows { list-style: none; margin: 0; padding: 0; }
.score-row a { min-height: 38px; padding: 7px 8px; color: var(--text); border-bottom: 1px solid rgba(255, 255, 255, .04); transition: background .2s, box-shadow .2s; }
.score-row:nth-child(even) a { background: rgba(255, 255, 255, .022); }
.score-rank { font: 800 18px/1 var(--display); color: var(--text-faint); text-align: center; transform: skewX(-8deg); }
.score-row:nth-child(-n+3) .score-rank { color: var(--gold); }
.score-name { display: flex; align-items: center; min-width: 0; }
.score-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.score-num { font: 800 16px var(--display); color: var(--skaarj); font-variant-numeric: tabular-nums; text-align: right; }
.score-row.is-lead a { padding-block: 10px; background: linear-gradient(90deg, rgba(212, 153, 67, .3), rgba(212, 153, 67, .06)); box-shadow: inset 3px 0 var(--gold), inset 0 1px rgba(251, 213, 160, .25); }
.score-row.is-lead .score-name { flex-direction: column; align-items: flex-start; gap: 5px; }
.score-row.is-lead .score-title { white-space: normal; font-weight: 600; }
.score-row.is-lead .spree { margin-left: 4px; }
.score-row.is-lead .score-rank { font-size: 22px; color: var(--gold-hi); text-shadow: 0 0 12px rgba(212, 153, 67, .85); }
.score-row a:hover { color: #fff; background: linear-gradient(90deg, rgba(212, 153, 67, .24), rgba(212, 153, 67, .05)); box-shadow: inset 3px 0 var(--gold); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 34px 0 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 14px; font: 700 16px var(--display); color: var(--text-dim);
  background: var(--steel-btn), var(--panel-2); box-shadow: inset 0 0 0 1px var(--frame); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pager a:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212, 153, 67, .6); }
.pager .cur { color: #1c1004; background: var(--bronze); box-shadow: none; }
.pager .gap { background: none; box-shadow: none; }

/* ---------- article ---------- */
.article { padding-top: 44px; }
.article.wrap { max-width: 920px; }
.article-head { margin-bottom: 26px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.article-meta time { color: var(--text-dim); }
.cover { margin: 0 0 28px; }
.cover img { display: block; width: 100%; border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.prose { font-size: 17.5px; line-height: 1.72; color: #cfd8e3; overflow-wrap: anywhere; }
.prose > * { max-width: 74ch; }
.prose .lead { font-size: 19.5px; line-height: 1.6; color: var(--text); padding-left: 18px; margin-bottom: 26px; box-shadow: inset 3px 0 var(--gold); }
.prose .lead > * { max-width: none; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.7em 0 .55em; font-family: var(--display); line-height: 1.15; color: var(--text); letter-spacing: .01em; }
.prose h2 { font-size: 30px; font-weight: 800; }
.prose h3 { font-size: 24px; font-weight: 700; }
.prose h4 { font-size: 19px; font-weight: 700; color: var(--gold-hi); text-transform: uppercase; letter-spacing: .08em; }
.prose strong { color: #f1f4f8; font-weight: 600; }
.prose a { color: var(--shock); text-decoration: underline; text-decoration-color: rgba(76, 195, 255, .35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #a7e5ff; text-decoration-color: currentColor; }
.prose a.ext::after { content: "↗"; display: inline-block; margin-left: 2px; font-size: .78em; color: var(--text-faint); text-decoration: none; }
.prose a.yt::before { content: "▶"; display: inline-block; margin-right: 6px; font-size: .78em; color: var(--red); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose ul > li::marker { content: "›  "; color: var(--gold); font-weight: 700; }
.prose ol > li::marker { color: var(--gold); font-family: var(--display); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: rgba(76, 195, 255, .05); box-shadow: inset 3px 0 var(--shock); color: var(--text-dim); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { height: 1px; margin: 2.2em 0; border: 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, rgba(212, 153, 67, .5) 50%, var(--line-2) 80%, transparent); }
.prose code { padding: .1em .35em; font-family: var(--mono); font-size: .86em; background: rgba(255, 255, 255, .06); color: var(--gold-hi); }
.prose pre { max-width: 100%; margin: 0 0 1.3em; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; background: #05070a; border: 1px solid var(--frame); border-top-color: var(--frame-lo); border-bottom-color: var(--frame-hi); }
.prose pre code { padding: 0; background: none; color: #c9d4e0; }
/* tables look like the server browser */
.prose table { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 1.4em; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; border: 1px solid var(--frame); background: rgba(10, 15, 23, .6); }
.prose th, .prose td { padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); text-align: left; vertical-align: top; }
.prose th { font: 700 13.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); background: var(--strip), rgba(212, 153, 67, .1); border-bottom: 1px solid rgba(212, 153, 67, .45); }
.prose tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.prose tr:hover td { background: rgba(212, 153, 67, .1); }
.prose img { display: block; margin: 1.2em 0; border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-radius: 2px; }
.prose del { color: var(--text-faint); }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.article-nav a { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; color: var(--text); }
.article-nav-next { text-align: right; }
.article-nav .label { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.article-nav .title { font: 700 18px/1.2 var(--display); }
.related { margin-top: 64px; }

/* ---------- video (two-click YouTube) ---------- */
.video { margin: 1.6em 0; max-width: 820px !important; }
.video-frame {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(255, 77, 61, .16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--panel-3), #05070a);
  border: 1px solid var(--frame); border-top-color: var(--frame-hi); border-bottom-color: var(--frame-lo); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; border: 0; background: none; cursor: pointer;
  color: var(--text); font: 800 16px var(--display); letter-spacing: .16em; text-transform: uppercase; }
.video-icon { position: relative; width: 88px; height: 62px; background: linear-gradient(180deg, #ff7565 0%, #ff4a3a 48%, #c9200f 52%, #e0301e 100%);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; transition: transform .25s var(--ease), filter .25s; }
.video-icon::after { content: ""; position: absolute; left: 36px; top: 18px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.video-play { transition: filter .35s var(--ease); }
.video-play:hover, .video-play:focus-visible { filter: drop-shadow(0 0 24px rgba(255, 77, 61, .6)); }
.video-play:hover .video-icon, .video-play:focus-visible .video-icon { transform: scale(1.08); }
.video-play:hover { color: #fff; }
.video-note { position: absolute; left: 18px; right: 18px; bottom: 12px; margin: 0 !important; color: var(--text-faint); font-size: 12.5px !important; line-height: 1.45 !important; text-align: center; }
.video-note a { color: var(--text-dim) !important; }

/* ---------- pages (features) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: flex; flex-direction: column; background: var(--rivets), var(--metal), linear-gradient(180deg, color-mix(in srgb, var(--gc, var(--gold)) 11%, transparent), transparent 55%), var(--win-bg); }
.feature.game-ut2004 { --gc: var(--g-ut2004); } .feature.game-ut3 { --gc: var(--g-ut3); } .feature.game-engine { --gc: var(--g-engine); } .feature.game-ut99 { --gc: var(--g-ut99); }
.feature-head { display: block; padding: 26px 24px 18px; color: var(--text); }
.feature-head:hover { color: var(--text); }
.feature-head h2 { margin: 12px 0 8px; font: 800 30px/1.05 var(--display); }
.feature-head:hover h2 { color: var(--gold-hi); }
.feature-head p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.feature-list { list-style: none; margin: 0; padding: 0 24px 20px; }
.feature-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); font-weight: 500; }
.feature-list a svg { color: var(--text-faint); transition: transform .25s var(--ease), color .25s; }
.feature-list a:hover { color: var(--gold-hi); }
.feature-list a:hover svg { color: var(--gc, var(--gold)); transform: translateX(4px); }
.subpages { margin-top: 48px; }
.subpage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.subpage { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; color: var(--text); }
.subpage strong { font: 700 20px var(--display); }
.subpage span { color: var(--text-dim); font-size: 14.5px; }
.subpage:hover { color: var(--text); }
.subpage:hover strong { color: var(--gold-hi); }
.promo { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.promo strong { font: 800 22px/1.1 var(--display); }
.promo span:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--skaarj); font: 700 14px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.promo:hover { color: var(--text); border-color: rgba(143, 209, 79, .55); }

/* ---------- filebase ---------- */
.bigsearch { display: flex; gap: 12px; max-width: 640px; margin-top: 26px; }
.bigsearch input { flex: 1; height: 52px; padding: 0 18px; color: var(--text); font: 500 17px var(--body);
  background: rgba(0, 0, 0, .4); border: 1px solid var(--frame); border-top-color: rgba(0, 0, 0, .85); border-bottom-color: var(--frame-hi); border-radius: 2px;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65); }
.bigsearch input:focus { outline: none; border-color: var(--gold); background: rgba(212, 153, 67, .06); }
.bigsearch .btn { height: 52px; }
.vault-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.vault { display: flex; flex-direction: column; background: var(--rivets), var(--metal), linear-gradient(170deg, color-mix(in srgb, var(--gc, var(--gold)) 12%, transparent), transparent 60%), var(--win-bg); }
.vault.game-ut2004 { --gc: var(--g-ut2004); } .vault.game-ut3 { --gc: var(--g-ut3); } .vault.game-ut99 { --gc: var(--g-ut99); } .vault.game-engine { --gc: var(--g-engine); }
.vault::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gc, var(--gold)), transparent 70%); box-shadow: 0 0 12px var(--gc, var(--gold)); }
.vault-head { position: relative; display: block; padding: 26px 26px 18px; color: var(--text); }
.vault-head:hover { color: var(--text); }
.vault-head h2 { margin: 12px 0 6px; font: 800 32px/1.05 var(--display); }
.vault-head:hover h2 { color: var(--gold-hi); }
.vault-head p { margin: 0; max-width: 46ch; color: var(--text-dim); font-size: 15.5px; }
.vault-count { position: absolute; right: 26px; top: 26px; font: 800 15px var(--display); letter-spacing: .08em; color: var(--gc, var(--gold)); }
.vault-cats { display: grid; gap: 7px; list-style: none; margin: 0; padding: 6px 20px 22px; }
/* each category is a slot sunk into the metal: dark inset, light lip at the bottom edge */
.vault-cats > li {
  position: relative; border: 1px solid rgba(0, 0, 0, .7); border-bottom-color: rgba(255, 255, 255, .09); border-radius: 2px;
  background: linear-gradient(180deg, rgba(3, 5, 9, .72), rgba(8, 12, 19, .58));
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .65), 0 1px 0 rgba(255, 255, 255, .03);
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.vault-cats > li > a { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; color: var(--text); font: 700 18px/1.2 var(--display); letter-spacing: .02em; }
.vault-cats > li > a > span:first-child { flex: 1; min-width: 0; }
/* game-colour marker in front of the name */
.vault-cats > li > a::before { content: ""; flex: none; width: 4px; height: 18px; transform: skewX(-14deg); background: var(--gc, var(--gold)); box-shadow: 0 0 8px color-mix(in srgb, var(--gc, var(--gold)) 70%, transparent); }
/* file count as a small HUD counter */
.vault-cats .count {
  flex: none; min-width: 46px; padding: 4px 9px 3px; text-align: center; font: 800 14px/1 var(--display); letter-spacing: .04em; color: var(--gc, var(--gold));
  background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc, var(--gold)) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: skewX(-14deg);
}
.vault-cats > li:has(> a:hover) {
  border-color: color-mix(in srgb, var(--gc, var(--gold)) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc, var(--gold)) 26%, transparent), color-mix(in srgb, var(--gc, var(--gold)) 6%, transparent) 70%), rgba(5, 8, 13, .7);
  box-shadow: inset 3px 0 var(--gc, var(--gold)), 0 0 18px -6px color-mix(in srgb, var(--gc, var(--gold)) 60%, transparent);
}
.vault-cats > li > a:hover { color: #fff; }
.vault-cats > li > a:hover .count { color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc, var(--gold)) 80%, transparent); }
.vault-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 11px 32px; margin-top: -2px; }
.vault-sub .gt { min-width: 0; padding: 5px 9px 4px; }
.vault-sub .gt:hover { filter: brightness(1.35); }

/* list toolbar with sort tabs */
.listbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 8px; }
.listbar-label { padding-bottom: 8px; font: 700 14px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.sorter { display: flex; gap: 2px; }
.sorter a { padding: 9px 20px 8px; font: 700 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  background: var(--steel-btn), var(--panel-2); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 100%, 0 100%); }
.sorter a:hover { color: var(--text); }
.sorter a[aria-current] { color: #1c1004; background: var(--bronze); }

/* file lists: UT2004 server browser */
.filelist { list-style: none; margin: 0; padding: 0; }
.browser { background: var(--metal), linear-gradient(180deg, rgba(14, 20, 31, .94), rgba(9, 13, 20, .94)); }
.filehead, .filerow { display: grid; grid-template-columns: 58px minmax(0, 1fr) 84px 96px 92px; align-items: center; gap: 14px; padding: 0 16px; }
.filehead { height: 34px; font: 700 11.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
  background: var(--strip), rgba(212, 153, 67, .08); border-bottom: 1px solid rgba(212, 153, 67, .5); box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.filehead .fr-size, .filehead .fr-dl, .filehead .fr-date { text-align: right; }
.filerow { position: relative; min-height: 44px; padding-block: 7px; border-bottom: 1px solid rgba(255, 255, 255, .045); transition: background .2s, box-shadow .2s; }
.filerow:nth-child(even) { background: rgba(255, 255, 255, .02); }
.filerow:last-child { border-bottom: 0; }
.filerow .gt { justify-self: start; }
.filerow-main { display: flex; align-items: center; min-width: 0; color: var(--text); }
.filerow-main::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole row is the link */
.filerow-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 17px var(--display); letter-spacing: .01em; }
.fr-size, .fr-dl, .fr-date { font: 600 13.5px var(--display); letter-spacing: .04em; color: var(--text-faint); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.dl-count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--skaarj); }
.filerow:hover { background: linear-gradient(90deg, rgba(212, 153, 67, .32), rgba(212, 153, 67, .1) 60%, rgba(212, 153, 67, .04));
  box-shadow: inset 3px 0 var(--gold), inset 0 1px rgba(251, 213, 160, .3), inset 0 -1px rgba(251, 213, 160, .16); }
.filerow:hover .filerow-title { color: #fff; }
.filerow:hover .fr-size, .filerow:hover .fr-date { color: var(--text-dim); }
/* compact rows in a side window */
.filelist-compact .filerow { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; padding: 6px 4px; }
.filelist-compact .fr-size, .filelist-compact .fr-date, .filelist-compact .spree { display: none; }
.filelist-compact .filerow-title { font-size: 16px; }

/* download window */
.dlbox { padding: 24px; background: var(--rivets), var(--metal), radial-gradient(400px 200px at 100% 0, rgba(212, 153, 67, .14), transparent 70%), var(--win-bg);
  border-color: rgba(212, 153, 67, .45); border-top-color: rgba(251, 213, 160, .55); }
.dlbox .panel-title { margin: -24px -24px 18px; }
.dlbox-off { border-color: var(--frame); border-top-color: var(--frame-hi); background: var(--rivets), var(--metal), var(--win-bg); }
.btn-download { width: 100%; justify-content: center; padding: 19px 20px; font-size: 19px; animation: pulse 3.2s ease-in-out infinite; }
.btn-download:hover { animation-play-state: paused; }
.btn-download.is-busy { pointer-events: none; filter: saturate(.4) brightness(.8); animation: none; }
.dlbox-file { margin: 10px 0 18px; color: var(--text-faint); text-align: center; font-size: 14px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--frame); border-top-color: var(--frame-lo); border-bottom-color: var(--frame-hi); }
.specs > div { padding: 10px 13px; background: rgba(6, 9, 14, .85); }
.specs-wide, .specs > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.specs dt { font: 700 11.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.specs dd { margin: 2px 0 0; font: 700 17px var(--display); color: var(--text); }
.specs dd.mono { font: 500 13px var(--mono); color: var(--text-dim); }
.extlink { display: inline-block; margin-bottom: 10px; font: 700 14px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.nodesc { display: grid; place-items: center; min-height: 280px; padding: 40px 28px; overflow: hidden; text-align: center;
  background: var(--rivets), var(--metal), radial-gradient(420px 200px at 50% 0%, rgba(212, 153, 67, .08), transparent 70%), var(--win-bg); }
.nodesc p { position: relative; max-width: 46ch; margin: 0; color: var(--text-dim); font-size: 16px; }
.nodesc-gt { position: absolute; inset: 0; display: grid; place-items: center; font: 800 190px/1 var(--display); letter-spacing: -.02em; color: rgba(255, 255, 255, .035); transform: skewX(-8deg); }
.pagetitle-file { display: flex; align-items: center; flex-wrap: wrap; }
@keyframes pulse { 0%, 100% { filter: drop-shadow(0 0 4px rgba(212, 153, 67, .25)); } 50% { filter: drop-shadow(0 0 22px rgba(212, 153, 67, .65)) drop-shadow(0 0 2px rgba(251, 213, 160, .9)); } }

.notice { --cut: 10px; margin: 0 0 16px; padding: 12px 16px; background: rgba(212, 153, 67, .09); box-shadow: inset 3px 0 var(--gold); color: var(--gold-hi); font-size: 15px; }
.notice-dim { background: rgba(255, 255, 255, .04); box-shadow: inset 3px 0 var(--text-faint); color: var(--text-dim); }
.notice-lang { margin-top: 24px; }

/* ---------- legal notice ---------- */
.legal .prose h2 { margin-top: 1.6em; font-size: 21px; }
.imprint-card { padding: 22px 30px 24px; margin-bottom: 26px; }
.imprint-card .panel-title { margin: -22px -30px 20px; padding-inline: 30px; }
.imprint-card address { display: flex; flex-direction: column; gap: 2px; margin: 0 0 20px; font-style: normal; font-size: 18px; line-height: 1.5; color: var(--text); }
.imprint-card address strong { margin-bottom: 4px; font: 800 26px/1.15 var(--display); letter-spacing: .01em; color: #f3f6fa; }
.imprint-contact { display: grid; gap: 10px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.imprint-contact > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.imprint-contact dt { min-width: 86px; font: 700 12.5px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.imprint-contact dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
/* spam-protected address: only a button until the visitor asks for it */
.pmail-btn { padding: 7px 18px 6px; border: 0; cursor: pointer; font: 700 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  background: var(--steel-btn), var(--panel-2); box-shadow: inset 0 0 0 1px var(--frame); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pmail-btn:hover, .pmail-btn:focus-visible { color: #1c1004; background: var(--bronze); }
.pmail noscript { color: var(--text-faint); font-size: 14px; }
.pmail a { color: var(--shock); text-decoration: underline; text-decoration-color: rgba(76, 195, 255, .35); text-underline-offset: 3px; }
.pmail a:hover { color: #a7e5ff; text-decoration-color: currentColor; }

/* ---------- search ---------- */
.hits { list-style: none; margin: 10px 0 0; padding: 0; max-width: 900px; }
.hit { position: relative; padding: 18px 0 18px 112px; border-bottom: 1px solid var(--line); }
.hit-kind { position: absolute; left: 0; top: 22px; width: 92px; padding: 4px 0 3px; text-align: center; font: 800 12px var(--display); letter-spacing: .12em; text-transform: uppercase; transform: skewX(-14deg); color: var(--gold); box-shadow: 0 0 0 1px rgba(212, 153, 67, .45) inset; background: rgba(212, 153, 67, .1); }
.hit-file .hit-kind { color: var(--skaarj); box-shadow: 0 0 0 1px rgba(143, 209, 79, .45) inset; background: rgba(143, 209, 79, .1); }
.hit-page .hit-kind { color: var(--shock); box-shadow: 0 0 0 1px rgba(76, 195, 255, .45) inset; background: rgba(76, 195, 255, .1); }
.hit-title { font: 700 22px/1.2 var(--display); color: var(--text); }
.hit-title:hover { color: var(--gold-hi); }
.hit-snippet { margin: 6px 0; color: var(--text-dim); font-size: 15.5px; }
.hit-snippet mark { background: rgba(212, 153, 67, .2); color: var(--gold-hi); padding: 0 2px; }
.hit time { font: 600 13px var(--display); letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; }

/* ---------- error: map loading screen ---------- */
.errorpage { padding-top: 60px; text-align: center; }
.errorpage .bigsearch { margin: 30px auto; }
.errorpage .pagelead { margin: 0 auto; }
.loadscreen { max-width: 560px; margin: 0 auto 36px; padding: 26px 30px 28px; text-align: left; }
.load-label { margin: 0 0 6px; font: 700 13px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
.load-label::after { content: " …"; animation: blink 1.2s steps(1) infinite; }
.errorcode { margin: 0 0 20px; font: 800 clamp(64px, 12vw, 118px)/.9 var(--display); letter-spacing: .01em; transform: skewX(-8deg); transform-origin: left;
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-hi) 38%, var(--gold) 52%, var(--gold-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(212, 153, 67, .45)) drop-shadow(0 3px 0 rgba(0, 0, 0, .6)); }
.load-bar { height: 16px; padding: 2px; background: rgba(0, 0, 0, .55); border: 1px solid var(--frame); border-top-color: var(--frame-lo); border-bottom-color: var(--frame-hi); }
.load-bar span { display: block; width: 97%; height: 100%; background: var(--bronze); box-shadow: 0 0 12px rgba(212, 153, 67, .6); animation: loadStall 3s var(--ease) both; }
@keyframes loadStall { 0% { width: 0; } 70% { width: 97%; } 76% { opacity: .55; } 82% { opacity: 1; } 100% { width: 97%; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; padding: 46px 0 30px; background: linear-gradient(180deg, rgba(20, 28, 41, .55), rgba(0, 0, 0, .6)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(144, 86, 5, .7) 15%, var(--gold) 50%, rgba(144, 86, 5, .7) 85%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px 60px; }
.footer-about p { max-width: 520px; margin: 14px 0 0; color: var(--text-dim); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 22px; }
.footer-nav a { font: 700 14.5px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.footer-nav a:hover { color: var(--gold); }
/* loading-screen style hint */
.footer-hint { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; margin: 4px 0 0; color: var(--text-dim); font-size: 15px; }
.footer-hint-label { flex: none; padding: 4px 14px 3px; font: 800 12px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #1b1003; background: var(--bronze);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.footer-legal { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 13px; }
.totop { position: absolute; right: 24px; bottom: 30px; font: 700 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- embossing: lettering stamped into the metal ---------- */
.game-card-title, .vault-head h2, .feature-head h2, .lead-news h3, .imprint-card address strong, .subpage strong, .article-nav .title {
  color: #e8edf3; text-shadow: 0 -1px 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .14), 0 2px 8px rgba(0, 0, 0, .35);
}
/* big watermark numbers and game types: pressed into the plate, only their edges catch the light */
.game-card-year, .nodesc-gt {
  text-shadow: -1px -1px 0 rgba(0, 0, 0, .65), 1px 1px 0 rgba(255, 255, 255, .09);
}
.game-card-year { color: color-mix(in srgb, var(--gc) 7%, rgba(8, 12, 18, .35)); }
.game-card:hover .game-card-year { color: color-mix(in srgb, var(--gc) 16%, rgba(8, 12, 18, .35)); }
.nodesc-gt { color: rgba(8, 12, 18, .45); }

/* =====================================================================
   effects: glow, blur, transitions
   ===================================================================== */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

::selection { background: rgba(212, 153, 67, .35); color: #fff; }
html { scrollbar-color: #2c3442 var(--bg); scrollbar-width: thin; }

/* masthead: darker once the page scrolls */
.masthead { transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.masthead.is-scrolled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(0, 0, 0, .9), 0 14px 40px -18px rgba(0, 0, 0, .95); }
.masthead::after { background-size: 200% 100%; animation: lineflow 9s linear infinite; }
@keyframes lineflow { to { background-position: -200% 0; } }
.brand-emblem { animation: logoGlow 5s ease-in-out infinite; }
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(70, 110, 255, .35)) drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
  50% { filter: drop-shadow(0 0 16px rgba(90, 130, 255, .7)) drop-shadow(0 0 4px rgba(212, 153, 67, .5)) drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
}
.brand-x { transition: text-shadow .4s var(--ease); }
.brand:hover .brand-x { text-shadow: 0 0 14px rgba(212, 153, 67, .9), 0 0 32px rgba(212, 153, 67, .5); }
.mainnav a { transition: color .25s, text-shadow .35s var(--ease); }
.mainnav a:hover, .mainnav a[aria-current] { text-shadow: 0 0 18px rgba(251, 213, 160, .45); }
.mainnav a::after { box-shadow: 0 0 12px rgba(212, 153, 67, .85), 0 0 2px rgba(251, 213, 160, .9); }
.langswitch { transition: color .25s, background .25s, box-shadow .3s; }
.langswitch:hover { box-shadow: 0 0 18px rgba(212, 153, 67, .6); }

/* hero: staged intro */
.hero-art { translate: 0 var(--py, 0px); }
.hero-inner > * { animation: riseIn 1s var(--ease) backwards; }
.hero-inner > :nth-child(2) { animation-delay: .12s; } .hero-inner > :nth-child(3) { animation-delay: .3s; }
.hero-inner > :nth-child(4) { animation-delay: .42s; } .hero-inner > :nth-child(5) { animation-delay: .56s; }
.hero-word { animation: flickerIn 1.8s steps(1) .2s backwards; }
.hero-word em { display: inline-block; animation: xGlow 4s ease-in-out 2s infinite; }
.hero-hud i { animation: hudIn .9s var(--ease) .5s backwards; }
@keyframes hudIn { from { opacity: 0; scale: 1.6; } }
@keyframes xGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(212, 153, 67, .4)); }
  50% { filter: drop-shadow(0 0 30px rgba(212, 153, 67, .85)) drop-shadow(0 0 6px rgba(251, 213, 160, .9)); }
}
@keyframes flickerIn { 0% { opacity: 0; } 8% { opacity: .9; } 11% { opacity: .15; } 18% { opacity: 1; } 21% { opacity: .35; } 26%, 100% { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; translate: 0 24px; filter: blur(10px); } }
.hud > div { animation: hudSlide .7s var(--ease) backwards; }
.hud > div:nth-child(2) { animation-delay: .1s; } .hud > div:nth-child(3) { animation-delay: .2s; } .hud > div:nth-child(4) { animation-delay: .3s; }
@keyframes hudSlide { from { opacity: 0; translate: -30px 0; } }
.announce { animation: announceIn .9s var(--ease) .2s backwards; }
@keyframes announceIn { from { opacity: 0; scale: 1.8; filter: blur(8px); } }

/* inner pages: header art blurs into focus, title block rises in */
.band-art { animation: bandIn 1.6s var(--ease) backwards, bandDrift 32s ease-in-out 1.6s infinite alternate; }
@keyframes bandIn { from { opacity: 0; filter: blur(18px); scale: 1.08; } }
@keyframes bandDrift { to { translate: -24px 10px; } }
.pagehead > *, .article-head > * { animation: riseIn .9s var(--ease) backwards; }
.pagehead > :nth-child(2), .article-head > :nth-child(2) { animation-delay: .08s; }
.pagehead > :nth-child(3), .article-head > :nth-child(3) { animation-delay: .16s; }
.pagehead > :nth-child(4), .article-head > :nth-child(4) { animation-delay: .24s; }
.pagehead > :nth-child(5) { animation-delay: .32s; }
.pagetitle { text-shadow: 0 2px 24px rgba(0, 0, 0, .6), 0 0 42px rgba(212, 153, 67, .12); }

/* windows: slight glass behind the steel */
.panel, .dlbox, .lead-news, .vault, .feature, .subpage, .article-nav a, .notice, .browser {
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* light running around the frame (span.fx-edge) */
.fx-edge { position: absolute; inset: -1px; z-index: 1; pointer-events: none; padding: 1px; opacity: 0; border-radius: 2px;
  background: conic-gradient(from var(--angle), transparent 0 58%, color-mix(in srgb, var(--gc, var(--gold)) 80%, transparent) 72%, #fff 78%, color-mix(in srgb, var(--gc, var(--gold)) 80%, transparent) 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .5s var(--ease); animation: spin 3.6s linear infinite paused; }
:hover > .fx-edge { opacity: .9; animation-play-state: running; }
.dlbox:not(.dlbox-off) > .fx-edge { opacity: .75; animation-play-state: running; animation-duration: 5s; }
@keyframes spin { to { --angle: 360deg; } }

/* hover glows: windows can glow outwards (no clip-path on them) */
.vault, .feature, .lead-news, .subpage, .article-nav a, .panel { transition: box-shadow .45s var(--ease), translate .45s var(--ease), border-color .45s; }
.vault:hover, .feature:hover, .lead-news:hover {
  border-color: color-mix(in srgb, var(--gc, var(--gold)) 60%, transparent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 32px -6px color-mix(in srgb, var(--gc, var(--gold)) 45%, transparent), inset 0 0 60px -20px color-mix(in srgb, var(--gc, var(--gold)) 40%, transparent);
}
.feature:hover, .lead-news:hover { translate: 0 -3px; }
.subpage:hover, .article-nav a:hover { translate: 0 -2px; border-color: rgba(212, 153, 67, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 26px -6px rgba(212, 153, 67, .45), inset 0 0 40px -14px rgba(212, 153, 67, .35); }
.vault-head h2, .feature-head h2, .lead-news h3 a, .newsrow h3 a, .subpage strong, .filerow-title, .score-title, .catlist a, .hit-title { transition: color .25s, text-shadow .35s var(--ease); }
.vault-head:hover h2, .feature-head:hover h2, .lead-news h3 a:hover, .subpage:hover strong { text-shadow: 0 -1px 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .14), 0 0 18px rgba(251, 213, 160, .45); }
.newsrow h3 a:hover, .filerow:hover .filerow-title, .hit-title:hover { text-shadow: 0 0 18px rgba(251, 213, 160, .4); }
.datechip { transition: box-shadow .35s var(--ease), border-color .35s; }
.datechip .d { transition: text-shadow .35s var(--ease); }
.newsrow:hover .datechip { border-color: color-mix(in srgb, var(--gc, var(--gold)) 60%, transparent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 18px -4px color-mix(in srgb, var(--gc, var(--gold)) 60%, transparent); }
.newsrow:hover .datechip .d { text-shadow: 0 0 14px color-mix(in srgb, var(--gc, var(--gold)) 80%, transparent); }
.gt, .game { transition: filter .3s var(--ease); }
.filerow:hover .gt, .vault-sub .gt:hover, .game-card:hover .game, .vault-head:hover .game, .feature-head:hover .game { filter: drop-shadow(0 0 7px var(--gtc, var(--gc, var(--gold)))) brightness(1.25); }
.dl-count svg { transition: translate .3s var(--ease); }
.filerow:hover .dl-count { text-shadow: 0 0 10px rgba(143, 209, 79, .7); }
.filerow:hover .dl-count svg { translate: 0 2px; }
.score-row a:hover .score-num { text-shadow: 0 0 10px rgba(143, 209, 79, .7); }
.spree-godlike, .spree-wicked-sick { animation: spreeGlow 2.6s ease-in-out infinite; }
@keyframes spreeGlow { 50% { box-shadow: inset 0 0 0 1px rgba(255, 236, 205, .8), 0 0 20px rgba(212, 153, 67, .9); } }
.chip, .yearlist a, .sorter a, .pager a, .pmail-btn { transition: color .25s, background .25s, box-shadow .3s var(--ease), filter .3s; }
.chip:hover, .pager a:hover, .sorter a:hover { filter: drop-shadow(0 0 8px rgba(212, 153, 67, .45)); }
.readmore, .section-more, .feature-list a svg, .catlist a { transition: color .25s, gap .3s var(--ease), translate .3s var(--ease); }
.readmore:hover, .section-more:hover { text-shadow: 0 0 14px rgba(212, 153, 67, .6); }
.prose a { transition: color .2s, text-shadow .3s, text-decoration-color .3s; }
.prose a:hover { text-shadow: 0 0 12px rgba(76, 195, 255, .55); }
.prose img { transition: filter .4s var(--ease), scale .5s var(--ease); }
.prose img:hover { filter: brightness(1.06) saturate(1.1); scale: 1.01; }
.bigsearch input, .quicksearch input { transition: box-shadow .35s var(--ease), background .35s, border-color .25s, width .3s var(--ease); }
.bigsearch input:focus, .quicksearch input:focus { box-shadow: inset 0 3px 8px rgba(0, 0, 0, .65), 0 0 22px -4px rgba(212, 153, 67, .5); }
.video-icon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) no-repeat; background-size: 250% 100%; background-position: 130% 0; transition: background-position .85s var(--ease); }
.video-play:hover .video-icon::before { background-position: -30% 0; }
.video.is-playing .video-frame { animation: riseIn .5s var(--ease); }
.footer::before { background-size: 200% 100%; animation: lineflow 12s linear infinite; }

/* reveal on scroll (classes set by site.js; without JS everything stays visible) */
.fx .reveal:not(.is-in) { opacity: 0; }
.fx .reveal.is-in { animation: revealIn .85s var(--ease) var(--d, 0ms) backwards; }
@keyframes revealIn { from { opacity: 0; translate: 0 22px; filter: blur(8px); } }

/* page to page: cross-fade through blur (browsers with view transitions) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  ::view-transition-old(root) { animation: vtOut .3s var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
}
@keyframes vtOut { to { opacity: 0; filter: blur(10px); scale: .99; } }
@keyframes vtIn { from { opacity: 0; filter: blur(12px); scale: 1.01; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quicksearch input { width: 160px; }
  .quicksearch input:focus { width: 200px; }
  .mainnav a { padding: 0 11px; }
}
@media (max-width: 980px) {
  .masthead-bar { gap: 14px; }
  .navtoggle { display: block; }
  .mainnav { position: absolute; top: 70px; left: 0; right: 0; align-self: auto; background: rgba(9, 13, 20, .94); border-bottom: 2px solid rgba(212, 153, 67, .6);
    backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
    opacity: 0; visibility: hidden; translate: 0 -10px; transition: opacity .3s var(--ease), translate .4s var(--ease), visibility 0s .4s; }
  .mainnav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s var(--ease), translate .4s var(--ease), visibility 0s; }
  .mainnav.is-open li { animation: riseIn .5s var(--ease) backwards; }
  .mainnav.is-open li:nth-child(2) { animation-delay: .04s; } .mainnav.is-open li:nth-child(3) { animation-delay: .08s; }
  .mainnav.is-open li:nth-child(4) { animation-delay: .12s; } .mainnav.is-open li:nth-child(5) { animation-delay: .16s; } .mainnav.is-open li:nth-child(6) { animation-delay: .2s; }
  .mainnav ul { flex-direction: column; height: auto; padding: 10px 16px 18px; }
  .mainnav a { height: auto; padding: 14px 12px; font-size: 18px; }
  .mainnav a::before { inset: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
  .mainnav a::after { right: auto; width: 40px; }
  .masthead-tools { margin-left: auto; }
  .with-side, .with-side-wide, .home-cols { grid-template-columns: minmax(0, 1fr); }
  .with-side-left .side { position: static; }
  .vault-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-hud { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .masthead-bar { padding: 0 16px; }
  .quicksearch { display: none; }
  .hero { min-height: 0; padding-top: 300px; align-items: flex-end; }
  .hero-art { background-image: url(../img/hero-mobile.webp); background-position: center top; background-size: 100% auto; animation: none; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 38%, rgba(6, 8, 12, .4) 62%, rgba(6, 8, 12, .2) 80%, rgba(6, 8, 12, .7) 100%); }
  .hud { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-left: 6px; }
  .hud > div { min-width: 0; padding: 9px 16px 10px 16px; }
  .hud dd { font-size: 30px; }
  .game-grid, .feature-grid, .subpage-grid, .newslist-2, .article-nav { grid-template-columns: minmax(0, 1fr); }
  .newsrow { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .datechip { height: 58px; }
  .datechip .d { font-size: 22px; }
  .filehead, .filerow { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; padding-inline: 10px; }
  .fr-size, .fr-date { display: none; }
  .filerow .spree { display: none; }
  .bigsearch { flex-direction: column; }
  .band { height: 300px; }
  .band-art, .band-files .band-art { top: 0; right: -120px; height: 100%; opacity: .35; }
  .hit { padding-left: 0; padding-top: 46px; }
  .hit-kind { top: 16px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-hint { flex-direction: column; gap: 8px; }
  .totop { position: static; display: block; text-align: center; margin-top: 20px; }
  .listbar { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 17px; }
  .section-title span { padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fx-edge { display: none; }
}
@media print {
  .masthead, .band, .footer, .side, .hero-art, .hero-scan, .hero-hud, .article-nav, .related { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; }
}
