/* Mu-Reimagined web components — the final kit, "Relic Wings" (needs tokens.css first, and the kit's SVG filters
   inline in every page, Pages/Shared/_KitFilters.cshtml: the rules with filter: url(#...) point at them; CSS can't
   reach an outside SVG file's filters in every browser).
   The look, in one line: a dark hall lit from above; forged steel letters, steel plates with cut corners, frames made of
   steel blades at the corners only, states as glowing gems, gold only as hairline edges.
   Phone first: the base rules are the 360 px phone; @media (min-width: 640 / 760 / 960 / 1200 px) add the wider layouts.
   Motion is transform and opacity only; :root[data-motion="reduce"] or prefers-reduced-motion stops every loop. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--c-bg); }
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; } /* the width / height attributes reserve the space; CSS sizes the picture */
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-title); text-wrap: balance; }
a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(140, 139, 136, 0.6); transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), text-shadow var(--dur-2) var(--ease-out); }
a:hover { color: #fff; text-decoration-color: var(--c-light); text-shadow: 0 0 14px rgba(238, 240, 242, 0.45); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* A control cut by clip-path can't show that ring: the clip cuts everything outside its polygon, a shadow or a filter
   too. Its focus is the same light drawn inside, an outline with a negative offset (an outline paints over the face),
   dark on a lit face; where the clip is off (the bare icon button, the field's icon button) the ring above shows. */
.ui-btn:focus-visible, .ui-icon-btn:focus-visible, .ui-seg:focus-visible, .ui-chip:focus-visible, .slot:focus-visible,
.ui-check input:focus-visible + .ui-check-box { outline: 2px solid var(--c-light); outline-offset: -4px; }
.ui-check input:focus-visible + .ui-check-box { outline-offset: -3px; }
.ui-btn--primary:focus-visible, .ui-seg[aria-current="page"]:focus-visible, .ui-chip[aria-current="page"]:focus-visible,
.ui-check input:checked:focus-visible + .ui-check-box { outline-color: var(--c-on-light); }
.ui-icon-btn--bare:focus-visible, .ui-input-wrap .ui-icon-btn:focus-visible { outline: none; }
::selection { background: rgba(238, 240, 242, 0.25); color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--c-panel); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-light); transition: top var(--dur-2) var(--ease-out); }
.skip-link:focus-visible { top: calc(8px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 960px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* ---------- Type and material ---------- */
/* engraved label: wide capitals cut into steel */
.t-eyebrow { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; line-height: 1.35; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-steel-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95), 0 -1px 0 rgba(255, 255, 255, 0.06); }
.t-lead { font-size: var(--fs-lg); font-style: italic; font-weight: 300; color: var(--c-text-2); max-width: 60ch; }
.t-muted { color: var(--c-text-3); }
.t-small { font-size: var(--fs-sm); }
.t-num { font-variant-numeric: tabular-nums; }
.prose { display: grid; gap: var(--sp-3); max-width: 66ch; color: var(--c-text-2); }
.prose strong { color: var(--c-text); }

/* ---------- Ornaments ---------- */
/* The beam line (the site's signature line, round 1's "seam"): white light running along a steel hairline */
.seam { display: block; height: 1px; border: 0; background: var(--g-seam); background-size: 200% 100%; animation: seam-flow var(--dur-seam) linear infinite; }
.seam--draw { transform-origin: center; transform: scaleX(0); transition: transform var(--dur-4) var(--ease-out); }
.is-in .seam--draw, .seam--draw.is-in { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: rgba(7, 7, 8, 0.9);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--g-seam); background-size: 200% 100%; animation: seam-flow var(--dur-seam) linear infinite; opacity: 0.55; }
.site-header__bar { display: flex; align-items: center; gap: var(--sp-3); height: var(--header-h); }
/* The brand: the name as a lockup (its first word forged big, the rest engraved; the template splits the one name
   setting at its first "-"; a name without "-" is its first word alone) */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-text); text-decoration: none; flex: none; }
.brand:hover { text-shadow: none; color: var(--c-text); }
.brand__mark { width: 36px; height: 36px; flex: none; }
.site-header .brand__mark { display: none; } /* the lockup is the mark in the header; the emblem serves the favicon and app icons */
.brand__mu { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; letter-spacing: 0.03em; filter: url(#steel-small); color: var(--c-steel-hi); padding-inline: 0.06em; }
.brand__line { padding-left: 12px; box-shadow: -1px 0 0 rgba(196, 195, 190, 0.3); font-family: var(--font-label); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; color: var(--c-steel-hi); }
.nav { display: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--c-text);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95);
  transition: color var(--dur-2) var(--ease-out), text-shadow var(--dur-2) var(--ease-out);
}
.nav__link::after { content: ""; position: absolute; left: 12px; right: calc(12px + 0.32em); bottom: 6px; height: 1px; background: var(--c-light); box-shadow: 0 0 8px var(--c-light); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.nav__link:hover { color: #fff; text-shadow: 0 0 14px rgba(238, 240, 242, 0.6); }
.nav__link:hover::after { transform: scaleX(0.6); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
/* The Features menu (design.md §3.1: the 10 feature pages): a disclosure, no script needed */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::before { content: ""; position: absolute; right: 2px; top: 50%; width: 5px; height: 5px; margin-top: -4px; transform: rotate(45deg); box-shadow: inset -1px -1px 0 var(--c-steel-hi); }
.nav-menu__panel { position: absolute; left: 50%; top: calc(100% + 10px); z-index: 31; width: min(640px, 92vw); translate: -50% 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 26px 22px 22px; background: rgba(9, 9, 11, 0.97); box-shadow: var(--sh-lift); }
.nav-menu__panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--orn-corner-tl) left top / 56px 56px no-repeat, var(--orn-corner-tr) right top / 56px 56px no-repeat, var(--orn-corner-bl) left bottom / 56px 56px no-repeat, var(--orn-corner-br) right bottom / 56px 56px no-repeat; }
.nav-menu__item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; color: var(--c-text); text-decoration: none; transition: background var(--dur-2) var(--ease-out); }
.nav-menu__item:hover { background: radial-gradient(80% 120% at 30% 0%, rgba(238, 240, 242, 0.08), transparent 70%); text-shadow: none; color: #fff; }
.nav-menu__thumb { width: 52px; height: 52px; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.nav-menu__name { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; }
.nav-menu__line { display: block; font-size: var(--fs-xs); font-style: italic; color: var(--c-text-3); }
.nav-menu__item[aria-current="page"] .nav-menu__name { filter: url(#steel-small); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.header-actions .ui-btn--quiet { display: none; }
/* a phone keeps the monument and the one action in the bar: the engraved line goes, the button tightens */
@media (max-width: 479px) {
  .site-header .brand__line { display: none; }
  .header-actions .ui-btn--primary { padding: 0 12px; letter-spacing: 0.2em; }
}
@media (min-width: 640px) { .header-actions .ui-btn--quiet { display: inline-flex; } }
.site-header__bar .nav-toggle { display: inline-grid; }
@media (min-width: 1040px) {
  .nav { display: flex; gap: 2px; margin-inline: auto; }
  .header-actions { margin-left: 0; }
  .site-header__bar .nav-toggle { display: none; }
}
.nav-drawer { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 29; padding: var(--sp-4) max(16px, env(safe-area-inset-right, 0px)) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(7, 7, 8, 0.97); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2); }
.nav-drawer[data-open] { opacity: 1; transform: none; visibility: visible; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.nav-drawer__list { display: grid; gap: 0; }
.nav-drawer__list a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--sp-2); color: var(--c-text); font-family: var(--font-display); font-size: 1.45rem; text-decoration: none; background: linear-gradient(90deg, rgba(238, 240, 242, 0.14), transparent 85%) left bottom / 100% 1px no-repeat; }
.nav-drawer__list a .icon { color: var(--c-steel); }
.nav-drawer__list a[aria-current="page"] { color: #fff; text-shadow: 0 0 16px rgba(238, 240, 242, 0.45); }
.nav-drawer__actions { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ---------- Live strip (the server's pulse under the header) ---------- */
.live-strip { background: linear-gradient(to bottom, #0c0c0e, #08080a); box-shadow: inset 0 -1px 0 var(--c-hairline); font-size: var(--fs-xs); }
body[data-page="home"] .live-strip { display: none; } /* the home hero shows the same live numbers, larger */
.live-strip__row { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--strip-h); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.live-strip__row::-webkit-scrollbar { display: none; }
.live-item { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text-3); }
.live-item b { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-item a { color: var(--c-text); text-decoration: none; }
.live-item a:hover { color: #fff; }
.live-item__icon { width: 16px; height: 16px; } /* round 1's inline style (brief HUB ANSWERS 4) */
/* .dot = a gem (round 1's round dot, now the diamond she picked) */
.dot { position: relative; width: 8px; height: 8px; flex: none; transform: rotate(45deg); background: #1c1c1f; box-shadow: inset 0 0 0 1px var(--c-steel); }
.dot::after { content: ""; position: absolute; inset: -5px; opacity: 0; }
.dot--on { background: var(--c-gem-ok); box-shadow: 0 0 10px rgba(142, 176, 107, 0.8); }
.dot--on::after { box-shadow: 0 0 0 1px var(--c-gem-ok); animation: gem-ping 2s ease-out infinite; }
.dot--soon { background: var(--c-gem-live); box-shadow: var(--sh-gem-live); }
.dot--soon::after { box-shadow: 0 0 0 1px var(--c-gem-live); animation: gem-ping 1.4s ease-out infinite; }
.dot--off { background: var(--c-gem-boss); box-shadow: 0 0 10px rgba(255, 90, 54, 0.7); }

/* ---------- Buttons: steel plates with cut corners (the outer 1 px is the plate's edge) ---------- */
.ui-btn {
  --btn-h: 46px;
  --c: var(--cut);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 0;
  background: var(--g-button-edge);
  color: var(--c-text);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.ui-btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--g-button);
  clip-path: polygon(calc(var(--c) - 0.5px) 0, calc(100% - var(--c) + 0.5px) 0, 100% calc(var(--c) - 0.5px), 100% calc(100% - var(--c) + 0.5px), calc(100% - var(--c) + 0.5px) 100%, calc(var(--c) - 0.5px) 100%, 0 calc(100% - var(--c) + 0.5px), 0 calc(var(--c) - 0.5px)); }
.ui-btn:hover { color: #fff; background: var(--g-lit-edge); text-decoration: none; text-shadow: none; }
.ui-btn:active { transform: translateY(1px); }
.ui-btn .icon { width: 18px; height: 18px; flex: none; }
/* the primary action: the plate in the beam, with a gold hairline edge, and a sweep of light on hover */
.ui-btn--primary { color: var(--c-on-light); background: var(--g-lit-edge); overflow: hidden; }
.ui-btn--primary::before { background: var(--g-lit); }
.ui-btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%); transform: translateX(-130%); transition: transform 850ms var(--ease-out); }
.ui-btn--primary:hover { color: var(--c-on-light); background: var(--g-lit-edge); }
.ui-btn--primary:hover::after { transform: translateX(130%); }
.ui-btn--quiet { background: transparent; color: var(--c-text); }
.ui-btn--quiet::before { background: transparent; }
.ui-btn--quiet:hover { background: transparent; color: #fff; text-shadow: 0 0 14px rgba(238, 240, 242, 0.6); }
.ui-btn--small { --btn-h: 38px; --c: var(--cut-sm); padding: 0 16px; }
.ui-btn--large { --btn-h: 54px; padding: 0 32px; }
.ui-btn--block { width: 100%; }
.ui-btn[disabled], .ui-btn[aria-disabled="true"] { cursor: not-allowed; background: linear-gradient(to bottom, #3a3a3e, #1c1c1f); color: var(--c-text-disabled); transform: none; }
.ui-btn[disabled]::before, .ui-btn[aria-disabled="true"]::before { background: var(--c-iron-dark); }
.ui-btn[disabled]::after, .ui-btn[aria-disabled="true"]::after { display: none; }
.ui-btn[aria-busy="true"] { color: transparent; pointer-events: none; }
.ui-btn[aria-busy="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(140, 139, 136, 0.4); border-top-color: var(--c-light); transform: none; background: none; animation: spin 0.8s linear infinite; }
.ui-btn--primary[aria-busy="true"]::after { border-color: rgba(12, 12, 14, 0.25); border-top-color: var(--c-on-light); }
.ui-icon-btn { --c: var(--cut-sm); position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: var(--g-button-edge); color: var(--c-text-2); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); transition: color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
.ui-icon-btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--g-button); clip-path: inherit; }
.ui-icon-btn:hover { color: #fff; background: var(--g-lit-edge); }
.ui-icon-btn[disabled] { color: var(--c-text-disabled); background: linear-gradient(to bottom, #3a3a3e, #1c1c1f); cursor: not-allowed; }
.ui-icon-btn .icon { width: 20px; height: 20px; }
.ui-icon-btn--bare { background: transparent; clip-path: none; }
.ui-icon-btn--bare::before { background: transparent; }
.ui-icon-btn--bare:hover { background: transparent; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Hero: the relic under its light (the stage), then the plaque with the name ---------- */
/* Markup (round 1's, kept): .hero > .hero__art (picture) + .hero__shade + .hero__glow + canvas.hero__embers (+ the
   optional .hero__glint) + .wrap > .hero__content. The art and its layers share the "stage" area; the content is the
   plaque below it, lifted onto the stage's floor. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-areas: "stage" "plaque"; background: var(--c-bg); margin-top: calc(-1 * var(--header-h)); }
.hero__art, .hero__shade, .hero__glow, .hero__embers, .hero__glint { grid-area: stage; }
.hero__art { position: relative; z-index: -3; width: 100%; height: min(160vw, 78vh); overflow: hidden; }
/* the pointer parallax of the Relic Wings demo (relic/index.html:126, :139): the picture and its glint drift against the
   pointer, the dust with it; site.js sets --px / --py (-1..1) on .hero, fine pointers only, never under reduced motion */
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px), 0) scale(1.03); will-change: transform; }
.hero__shade { z-index: -2; pointer-events: none; background: linear-gradient(90deg, var(--c-bg), transparent 7%, transparent 93%, var(--c-bg)), linear-gradient(to bottom, rgba(7, 7, 8, 0.5), transparent 16%, transparent 66%, var(--c-bg) 100%); }
/* the beam over the picture's own beam (the tall picture: a column x .393-.603; the wide: .457-.538 under the window,
   .433-.566 at the floor; measured with art/shaft-r11.py), soft-edged by a mask */
.hero__glow { z-index: -1; justify-self: center; align-self: start; width: 21%; height: 72%; pointer-events: none; mix-blend-mode: screen; opacity: 0.55; background: linear-gradient(to bottom, rgba(234, 235, 236, 0.5), rgba(234, 235, 236, 0.16) 70%, rgba(234, 235, 236, 0)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); animation: breathe var(--dur-breathe) ease-in-out infinite; }
.hero__embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 10px), 0); }
/* the glint along the gold feather edges, masked by the picture's own gold: the page sets mask-image to the gold mask
   of the picture it shows (art/gold-tall.webp, from 761 px art/gold-wide.webp); without it the glint draws nothing */
.hero__glint { z-index: -1; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(110deg, transparent 0 40%, rgba(255, 244, 214, 0) 43%, rgba(255, 240, 200, 0.95) 50%, rgba(255, 244, 214, 0) 57%, transparent 60% 100%) 100% 0 / 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 50% 40%; mask-position: 50% 40%; -webkit-mask-size: cover; mask-size: cover; -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px), 0) scale(1.03); animation: glint 7s ease-in-out 2.8s infinite; }
.hero > .wrap { grid-area: plaque; position: relative; z-index: 2; margin-top: calc(-0.24 * min(160vw, 78vh)); }
.hero__content { position: relative; display: grid; justify-items: center; text-align: center; gap: var(--sp-5); padding-block: 0 72px; }
.hero__content::before { content: ""; position: absolute; inset: -60px -10% auto; height: 320px; z-index: -1; pointer-events: none; background: radial-gradient(30% 60% at 50% 0%, rgba(234, 235, 236, 0.08), transparent 72%); }
.hero__content .t-eyebrow { color: var(--c-text-3); }
/* the lockup: the name's first word as the monument, the rest engraved between two blades */
.lockup { display: grid; justify-items: center; gap: 0.9rem; margin: 0; }
.lockup__mu { font-family: var(--font-display); font-size: var(--fs-hero); line-height: 0.82; letter-spacing: 0.04em; filter: url(#steel-hero); color: var(--c-steel-hi); padding-inline: 0.06em; }
.lockup__line { display: flex; align-items: center; gap: 1em; font-family: var(--font-label); font-size: clamp(0.78rem, 0.62rem + 0.5vw, 1.05rem); font-weight: 700; letter-spacing: 0.5em; text-transform: uppercase; color: var(--c-steel-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95); }
.lockup__line::before, .lockup__line::after { content: ""; width: 4.4em; height: 1em; background: var(--orn-blade-l) center / contain no-repeat; }
.lockup__line::after { background-image: var(--orn-blade-r); margin-left: -0.5em; }
.hero__tagline { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-style: italic; font-weight: 300; line-height: 1.45; color: var(--c-text-2); max-width: 32em; }
.hero__ctas { display: grid; gap: var(--sp-3); width: 100%; }
@media (min-width: 480px) { .hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; width: auto; } }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 640px; padding: 26px 14px 22px; }
.hero-facts::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--orn-corner-tl) left top / 56px 56px no-repeat, var(--orn-corner-tr) right top / 56px 56px no-repeat, var(--orn-corner-bl) left bottom / 56px 56px no-repeat, var(--orn-corner-br) right bottom / 56px 56px no-repeat, linear-gradient(90deg, rgba(196, 195, 190, 0.4), rgba(196, 195, 190, 0) 22%, rgba(196, 195, 190, 0) 78%, rgba(196, 195, 190, 0.4)) left 0 top 3.5px / 100% 1px no-repeat, linear-gradient(90deg, rgba(196, 195, 190, 0.4), rgba(196, 195, 190, 0) 22%, rgba(196, 195, 190, 0) 78%, rgba(196, 195, 190, 0.4)) left 0 bottom 3.5px / 100% 1px no-repeat; }
.hero-fact { position: relative; display: grid; gap: 10px; justify-items: center; padding: 2px 8px; min-width: 0; }
.hero-fact + .hero-fact::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, rgba(238, 240, 242, 0.4), transparent); }
.hero-fact__value { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1; white-space: nowrap; filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; }
.hero-fact__value .dot { filter: none; }
.hero-fact__label { font-family: var(--font-label); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-3); text-align: center; }
@media (min-width: 761px) {
  .hero__art { height: auto; aspect-ratio: 1536 / 676; max-width: 1760px; margin-inline: auto; }
  .hero__art img { object-position: 50% 18%; }
  .hero__glow { width: 12%; height: 98.5%; }
  .hero > .wrap { margin-top: -4vw; }
  .hero__glint { -webkit-mask-position: 50% 18%; mask-position: 50% 18%; }
  .hero-fact__label { font-size: 0.55rem; letter-spacing: 0.32em; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-6); }
@media (min-width: 960px) { .section { padding-block: var(--sp-9); } }
.section-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-7); max-width: 760px; }
.section-head__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); letter-spacing: var(--ls-display); filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; }
.section-head .seam { width: 150px; height: 16px; margin-top: var(--sp-1); background: var(--orn-blades) center / contain no-repeat; animation: none; }
.page-head { position: relative; isolation: isolate; overflow: hidden; padding-block: 64px 44px; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-bg), rgba(7, 7, 8, 0.3) 30%, rgba(7, 7, 8, 0.3) 70%, var(--c-bg)), linear-gradient(to bottom, rgba(7, 7, 8, 0.3), rgba(7, 7, 8, 0.75) 70%, var(--c-bg)); }
.page-head__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); letter-spacing: var(--ls-display); filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; }
.page-head .t-lead { margin-top: var(--sp-3); }
@media (min-width: 960px) { .page-head { padding-block: 96px 60px; } }

/* ---------- Plates: stone slabs lit from above (no outline: the light and the edge catch define them) ---------- */
/* one track that can't grow past the card (a long nowrap line inside would otherwise widen it) */
.ui-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5); background: var(--g-toplight), var(--c-panel); box-shadow: var(--sh-plate); min-width: 0; }
.ui-card--flush { padding: 0; gap: 0; overflow: hidden; }
.ui-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 52px; padding: 0 var(--sp-5); background: linear-gradient(90deg, rgba(238, 240, 242, 0.14), transparent 80%) left bottom / 100% 1px no-repeat; }
.ui-card__title { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-warm); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95); }
/* a head with a title and a badge under it: the same two lines in every card, however long the title */
.ui-card__head--stack { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-2); padding-block: var(--sp-4); }
.ui-card__body { padding: var(--sp-5); display: grid; gap: var(--sp-4); min-width: 0; }
.ui-card--link { color: inherit; text-decoration: none; transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out); }
.ui-card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); text-shadow: none; color: inherit; }
.ui-card--link:focus-visible { box-shadow: var(--focus-ring), var(--sh-lift); }
.ui-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--sp-4); font-size: var(--fs-sm); }
.ui-kv dt { color: var(--c-text-3); }
.ui-kv dd { color: var(--c-text); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Badges: engraved tags, a gem in the state's colour ---------- */
.ui-badge { --gem: var(--c-steel); display: inline-flex; align-items: center; gap: 8px; min-height: 24px; padding: 0 10px 0 9px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--c-iron); color: var(--c-steel-hi); font-family: var(--font-label); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.ui-badge::before { content: ""; width: 5px; height: 5px; flex: none; transform: rotate(45deg); background: var(--gem); }
.ui-badge--ok { --gem: var(--c-success); color: var(--c-success); }
.ui-badge--bad { --gem: var(--c-error); color: var(--c-error); }
.ui-badge--info { --gem: var(--c-info); color: var(--c-info); }
.ui-badge--gold { --gem: var(--c-gold-hi); color: var(--c-gold-hi); }
.ui-badge--live { --gem: var(--c-gem-live); color: #fff; }
.ui-badge--live::before { box-shadow: var(--sh-gem-live); animation: dot-pulse 1.2s var(--ease-in-out) infinite; }

/* ---------- Alerts and the server's answer ---------- */
.ui-alert { --edge: var(--c-steel); display: grid; grid-template-columns: auto 1fr; gap: 4px var(--sp-3); align-items: start; padding: var(--sp-4) var(--sp-4) var(--sp-4) 18px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 60%), var(--c-well); box-shadow: inset 1px 0 0 var(--edge), inset 0 0 0 1px var(--c-hairline); font-size: var(--fs-sm); color: var(--c-text-2); }
.ui-alert .icon { grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; color: var(--edge); }
.ui-alert__title { color: var(--c-text); font-weight: 600; }
.ui-alert--ok { --edge: var(--c-success); }
.ui-alert--error { --edge: var(--c-error); }
.ui-alert--warn { --edge: var(--c-warning); }
.ui-alert--info { --edge: var(--c-info); }

/* ---------- Forms ---------- */
.ui-form { display: grid; gap: var(--sp-5); }
.ui-field { display: grid; gap: 9px; min-width: 0; }
.ui-label { display: flex; justify-content: space-between; gap: var(--sp-3); font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-text); }
.ui-input-wrap { position: relative; display: flex; }
/* a recessed steel well; its bottom edge lights up white when it has the focus (the beam) */
.ui-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(var(--c-control-edge), var(--c-control-edge)) left bottom / 100% 1px no-repeat, var(--c-well);
  color: var(--c-text);
  font-size: var(--fs-md);
  box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-line);
  transition: background-size var(--dur-3) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.ui-input::placeholder { color: var(--c-text-3); font-style: italic; opacity: 1; }
.ui-input:hover { box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-iron-edge); }
.ui-input:focus-visible { background: linear-gradient(var(--c-light), var(--c-light)) left bottom / 100% 2px no-repeat, var(--c-well); box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-iron-edge), 0 10px 24px -14px rgba(238, 240, 242, 0.5); }
.ui-input[aria-invalid="true"] { background: linear-gradient(var(--c-error), var(--c-error)) left bottom / 100% 2px no-repeat, #120a0a; box-shadow: var(--sh-well), inset 0 0 0 1px rgba(255, 122, 122, 0.35); }
.ui-input:disabled { color: var(--c-text-disabled); background: var(--c-iron-dark); box-shadow: inset 0 0 0 1px var(--c-hairline); cursor: not-allowed; }
select.ui-input { appearance: none; padding-right: 40px; background: linear-gradient(var(--c-control-edge), var(--c-control-edge)) left bottom / 100% 1px no-repeat, linear-gradient(45deg, transparent 50%, var(--c-steel-hi) 50%) right 20px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--c-steel-hi) 50%) right 14px center / 6px 6px no-repeat, var(--c-well); }
.ui-input-wrap .ui-input { padding-right: 52px; }
.ui-input-wrap .ui-icon-btn { position: absolute; right: 3px; top: 3px; height: 44px; background: transparent; clip-path: none; }
.ui-input-wrap .ui-icon-btn::before { background: transparent; }
.ui-hint { font-size: var(--fs-xs); font-style: italic; color: var(--c-text-3); }
.ui-error { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--c-error); }
.ui-error::before { content: ""; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--c-error); box-shadow: 0 0 8px rgba(255, 122, 122, 0.6); }
.ui-error .icon { display: none; }
.ui-error[hidden] { display: none; }
.ui-check { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: var(--fs-sm); color: var(--c-text-2); }
.ui-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ui-check-box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; margin-top: 2px; background: var(--c-well); box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-control-edge); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); transition: background var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.ui-check-box svg { width: 13px; height: 13px; stroke: var(--c-on-light); stroke-width: 3; fill: none; opacity: 0; transform: scale(0.6); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.ui-check input:checked + .ui-check-box { background: var(--g-lit); box-shadow: inset 0 0 0 1px var(--c-gold-edge); }
.ui-check input:checked + .ui-check-box svg { opacity: 1; transform: none; }
.ui-check:hover .ui-check-box { box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-steel-hi); }
.form-card { width: 100%; max-width: 480px; margin-inline: auto; }
.form-card.ui-card { background: transparent; box-shadow: none; padding: 34px 30px 30px; }
.form-card.ui-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--orn-corner-tl) left top / 72px 72px no-repeat, var(--orn-corner-tr) right top / 72px 72px no-repeat, var(--orn-corner-bl) left bottom / 72px 72px no-repeat, var(--orn-corner-br) right bottom / 72px 72px no-repeat, linear-gradient(90deg, rgba(196, 195, 190, 0.45), rgba(196, 195, 190, 0) 26%, rgba(196, 195, 190, 0) 74%, rgba(196, 195, 190, 0.45)) left 0 top 4.5px / 100% 1px no-repeat, linear-gradient(90deg, rgba(196, 195, 190, 0.45), rgba(196, 195, 190, 0) 26%, rgba(196, 195, 190, 0) 74%, rgba(196, 195, 190, 0.45)) left 0 bottom 4.5px / 100% 1px no-repeat, linear-gradient(180deg, rgba(196, 195, 190, 0.45), rgba(196, 195, 190, 0) 26%, rgba(196, 195, 190, 0) 74%, rgba(196, 195, 190, 0.45)) left 4.5px top 0 / 1px 100% no-repeat, linear-gradient(180deg, rgba(196, 195, 190, 0.45), rgba(196, 195, 190, 0) 26%, rgba(196, 195, 190, 0) 74%, rgba(196, 195, 190, 0.45)) right 4.5px top 0 / 1px 100% no-repeat; }
@media (max-width: 639px) { .form-card.ui-card { padding: 30px 18px 24px; } }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text-3); }

/* ---------- Tabs, segments, chips (the game's .ui-tabs / .ui-segment / .ui-chips); links among them mark the
   current one with aria-current="page" (brief HUB ANSWERS 6) ---------- */
.ui-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: linear-gradient(90deg, transparent, rgba(238, 240, 242, 0.16) 20%, rgba(238, 240, 242, 0.16) 80%, transparent) left bottom / 100% 1px no-repeat; }
.ui-tabs::-webkit-scrollbar { display: none; }
.ui-tab { position: relative; flex: none; min-height: 50px; padding: 0 18px; border: 0; background: transparent; color: var(--c-text-2); font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.95); transition: color var(--dur-2) var(--ease-out), text-shadow var(--dur-2) var(--ease-out); }
.ui-tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--c-light); box-shadow: 0 0 10px var(--c-light); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.ui-tab:hover { color: #fff; }
.ui-tab[aria-current="page"] { color: #fff; text-shadow: 0 0 14px rgba(238, 240, 242, 0.5); }
.ui-tab[aria-current="page"]::after { transform: scaleX(1); }
.ui-segment { display: inline-flex; padding: 3px; gap: 3px; background: var(--c-well); box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ui-seg { flex: none; min-height: 36px; padding: 0 14px; border: 0; background: transparent; color: var(--c-text-2); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); transition: color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
.ui-seg:hover { color: #fff; }
.ui-seg[aria-current="page"] { background: var(--g-lit); color: var(--c-on-light); }
.ui-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-chip { min-height: 36px; padding: 0 14px; border: 0; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--c-iron); color: var(--c-text-2); font-size: var(--fs-sm); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); transition: color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
.ui-chip:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--c-steel); }
.ui-chip[aria-current="page"] { color: var(--c-on-light); background: var(--g-lit); box-shadow: inset 0 0 0 1px var(--c-gold-edge); font-weight: 600; }
a.ui-tab, a.ui-seg, a.ui-chip { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.ui-tab:hover, a.ui-seg:hover, a.ui-chip:hover { text-shadow: none; }

/* ---------- Tables (rankings): no box, rows separated by light ---------- */
.ui-table-wrap { position: relative; background: transparent; overflow: clip; } /* clip, not hidden: hidden would make it the sticky heading's scroller */
.ui-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ui-table thead th { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 1; height: 46px; padding: 0 12px; background: linear-gradient(90deg, transparent, rgba(238, 240, 242, 0.22) 20%, rgba(238, 240, 242, 0.22) 80%, transparent) left bottom / 100% 1px no-repeat, rgba(7, 7, 8, 0.95); color: var(--c-text-3); font-family: var(--font-label); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.ui-table td { height: 58px; padding: 8px 12px; background: linear-gradient(90deg, transparent, rgba(238, 240, 242, 0.08) 15%, rgba(238, 240, 242, 0.08) 85%, transparent) left bottom / 100% 1px no-repeat; color: var(--c-text); vertical-align: middle; }
.ui-table tbody tr { transition: background var(--dur-2) var(--ease-out); }
.ui-table tbody tr:hover { background: radial-gradient(60% 140% at 50% 50%, rgba(238, 240, 242, 0.06), transparent 75%); }
.ui-table tbody tr:last-child td { background: none; }
.ui-table .num { text-align: right; }
.ui-table .col-wide { display: none; }
@media (min-width: 760px) { .ui-table .col-wide { display: table-cell; } .ui-table .cell-sub-wide { display: none; } }
.ui-table a { color: var(--c-text-warm); text-decoration: none; font-weight: 600; }
.ui-table a:hover { color: #fff; }
.cell-name { display: grid; gap: 2px; min-width: 0; }
.cell-sub { font-size: var(--fs-xs); font-style: italic; color: var(--c-text-3); font-weight: 400; }
/* ranks: metal plates with cut corners; 1-3 are gold, silver, bronze, lit from above */
.rank { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--g-button); box-shadow: inset 0 0 0 1px var(--c-iron), inset 0 1px 0 rgba(238, 240, 242, 0.1); color: var(--c-text-2); font-family: var(--font-display); font-size: 1.05rem; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.rank--1 { color: #2a1d05; background: linear-gradient(to bottom, #fbe7a8, #e2c16d 45%, #a07a2c); box-shadow: none; }
.rank--2 { color: #1c1c1f; background: linear-gradient(to bottom, #ffffff, #cfcec9 45%, #8d8d88); box-shadow: none; }
.rank--3 { color: #2a1406; background: linear-gradient(to bottom, #f0c49b, #c08452 50%, #7f4d27); box-shadow: none; }
.class-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-2); white-space: nowrap; }
.class-tag .icon { width: 16px; height: 16px; color: var(--c-steel-hi); }
.class-tag img { width: 28px; height: 28px; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }

/* ---------- Pager, money, empty ---------- */
.ui-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--sp-5); }
.ui-pager .ui-icon-btn { width: 40px; height: 40px; }
.ui-pager__page { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; color: var(--c-text-2); text-decoration: none; font-variant-numeric: tabular-nums; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.ui-pager__page:hover { color: #fff; background: rgba(255, 255, 255, 0.04); text-shadow: none; }
.ui-pager__page[aria-current="page"] { color: var(--c-on-light); background: var(--g-lit); font-weight: 600; }
.ui-money { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-text-warm); white-space: nowrap; }
.ui-money__unit { font-family: var(--font-label); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-3); }
.ui-empty { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-5); text-align: center; color: var(--c-text-3); }
.ui-empty .icon { width: 40px; height: 40px; color: var(--c-steel); stroke-width: 1.2; }
.ui-empty__title { font-family: var(--font-display); font-size: var(--fs-xl); filter: url(#steel-small); color: var(--c-steel-hi); padding-inline: 0.06em; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-7); } .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Feature cards (home "Never seen in MU"): a relic in its light ---------- */
.feature-card { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 0; background: none; box-shadow: none; text-align: center; }
.feature-card.ui-card--link:hover { transform: none; box-shadow: none; }
.feature-card__art { position: relative; aspect-ratio: 1; overflow: visible; -webkit-mask-image: radial-gradient(70% 58% at 50% 52%, #000 45%, transparent 100%); mask-image: radial-gradient(70% 58% at 50% 52%, #000 45%, transparent 100%); }
.feature-card__art img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(30% 70% at 50% 0%, rgba(234, 235, 236, 0.3), transparent 72%); }
.feature-card__body { display: grid; justify-items: center; align-content: start; gap: 10px; padding: 0 6px; margin-top: -44px; position: relative; }
.feature-card__icon { display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; padding: 0; background: none; box-shadow: none; color: var(--c-steel-hi); }
.feature-card__icon .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.feature-card__title { font-family: var(--font-display); font-size: var(--fs-xl); letter-spacing: var(--ls-display); filter: url(#steel-small); color: var(--c-steel-hi); padding-inline: 0.06em; transition: filter var(--dur-3) var(--ease-out); }
.feature-card__text { font-size: var(--fs-sm); font-style: italic; color: var(--c-text-2); }
/* the facts under a relic are engraved lines, each led by its gem (no tag box: the hall has no boxes) */
.feature-card__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; min-width: 0; }
.feature-card__facts .ui-badge { min-height: 0; padding: 0; background: none; box-shadow: none; clip-path: none; white-space: normal; max-width: 100%; text-align: left; line-height: 1.5; }

/* ---------- Feature showcase (feature pages) ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: center; padding-block: var(--sp-8); background: linear-gradient(90deg, transparent, rgba(238, 240, 242, 0.12), transparent) left bottom / 100% 1px no-repeat; }
.showcase:last-child { background: none; }
.showcase__text { display: grid; gap: var(--sp-4); align-content: start; min-width: 0; }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.where > .t-eyebrow { flex-basis: 100%; }
@media (min-width: 960px) { .showcase { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-7); } }
.showcase__media { display: grid; gap: var(--sp-4); min-width: 0; }

/* The game's own window, drawn in the web kit (one product: the same plate, title band and rows) */
.game-window { background: linear-gradient(to bottom, #141416, #0b0b0d); box-shadow: var(--sh-plate), inset 0 0 0 1px var(--c-iron); font-size: var(--fs-xs); overflow: hidden; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.game-window__title { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 36px; padding: 0 14px; background: var(--g-title-band); box-shadow: inset 0 -1px 0 var(--c-iron); }
.game-window__title b { color: var(--c-text-warm); font-family: var(--font-label); font-size: 0.55rem; letter-spacing: 0.24em; text-transform: uppercase; }
.game-window__title span { color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.game-window__rows { display: grid; }
.game-window__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 42px; padding: 4px 12px; box-shadow: inset 0 -1px 0 var(--c-hairline); color: var(--c-text); }
.game-window__row:last-child { box-shadow: none; }
.game-window__row .icon { width: 18px; height: 18px; color: var(--c-steel-hi); }
.game-window__row small { display: block; color: var(--c-text-3); font-size: 0.75rem; font-style: italic; }
.game-window__row .ui-money { font-size: 0.8125rem; }
.game-window__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 12px; box-shadow: inset 0 1px 0 var(--c-hairline); background: rgba(0, 0, 0, 0.25); }

/* ---------- Events: a light timeline ---------- */
.event-list { position: relative; display: grid; gap: 0; padding-left: 30px; }
.event-list::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(to bottom, rgba(238, 240, 242, 0.85), rgba(238, 240, 242, 0.06)); box-shadow: 0 0 10px rgba(238, 240, 242, 0.3); }
.event-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--sp-3) var(--sp-4); align-items: center; padding: 14px 4px 14px 0; background: linear-gradient(90deg, rgba(238, 240, 242, 0.12), transparent 80%) left bottom / 100% 1px no-repeat; transition: transform var(--dur-2) var(--ease-out); }
.event-row::before { content: ""; position: absolute; left: -28px; top: 50%; width: 9px; height: 9px; margin-top: -5px; transform: rotate(45deg); background: #1c1c1f; box-shadow: inset 0 0 0 1px var(--c-steel); }
.event-row:hover { transform: translateX(2px); }
.event-row__art { width: 44px; height: 44px; display: grid; place-items: center; color: var(--c-steel-hi); background: radial-gradient(closest-side, rgba(238, 240, 242, 0.08), transparent); }
.event-row__art img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.event-row__art .icon { width: 22px; height: 22px; stroke-width: 1.5; }
.event-row__name { font-family: var(--font-label); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--c-text); line-height: 1.5; }
.event-row__when { font-size: var(--fs-xs); font-style: italic; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.event-row__count { justify-self: end; display: grid; justify-items: end; gap: 5px; text-align: right; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; white-space: nowrap; filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; }
.event-row__count small { display: block; font-family: var(--font-label); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-3); }
.event-row.is-soon::before { background: var(--c-gem-live); box-shadow: 0 0 0 5px rgba(238, 240, 242, 0.1), var(--sh-gem-live); animation: node-glow 2.4s ease-in-out infinite; }
.event-row.is-soon .event-row__count { font-size: 2.3rem; filter: url(#steel-hero); }
.event-row.is-live::before { background: var(--c-gem-ok); box-shadow: 0 0 10px rgba(142, 176, 107, 0.8); }

/* ---------- Characters ---------- */
.char-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: center; }
/* the sigil: the class's relic (art/class-*.webp) in a pool of light, or its icon */
.char-card__sigil { width: 64px; height: 64px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(238, 240, 242, 0.1), transparent); color: var(--c-steel-hi); }
.char-card__sigil img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.char-card__sigil .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.char-card__name { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xl); color: var(--c-text-warm); line-height: 1.15; overflow-wrap: anywhere; }
/* A player's name (character, login) keeps its exact letters: the reading face, never the display or label face */
.t-name { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; color: var(--c-text-warm); overflow-wrap: anywhere; }
.char-card__class { font-size: var(--fs-sm); font-style: italic; color: var(--c-text-2); }
.char-card .ui-kv { grid-column: 1 / -1; }
.stat-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-row > div { position: relative; display: grid; gap: 8px; justify-items: center; padding: 12px 10px; text-align: center; }
.stat-row > div + div::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, transparent, rgba(238, 240, 242, 0.35), transparent); }
.stat-row b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1; filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; }
.stat-row span { font-family: var(--font-label); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-3); }

/* Equipment: the item's picture (OpenMU's, or ours for our own items) in a recessed slot, its name in the game's
   quality colour */
.paperdoll { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .paperdoll { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .paperdoll { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 68px; padding: 10px 12px; background: var(--c-well); box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-line); text-align: left; color: inherit; width: 100%; border: 0; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); transition: box-shadow var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out); }
summary.slot:hover { box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-steel); background: #0d0d10; }
.slot__icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--c-steel); background: radial-gradient(closest-side, rgba(238, 240, 242, 0.07), transparent); }
.slot__icon .icon { width: 24px; height: 24px; stroke-width: 1.4; }
.slot__icon .item-picture, .item-picture { width: 100%; height: 100%; object-fit: contain; }
.slot__label { display: block; font-family: var(--font-label); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-3); }
.slot__item { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); line-height: 1.3; overflow-wrap: anywhere; }
.slot--empty .slot__item { font-weight: 400; font-style: italic; color: var(--c-text-disabled); }
.slot.q-excellent { box-shadow: var(--sh-well), inset 0 0 0 1px rgba(26, 255, 128, 0.28); }
.slot.q-excellent .slot__item { color: var(--c-item-excellent); }
.slot.q-excellent .slot__icon { color: var(--c-item-excellent); }
.slot.q-ancient { box-shadow: var(--sh-well), inset 0 0 0 1px rgba(60, 60, 200, 0.6); background: linear-gradient(to right, rgba(60, 60, 200, 0.18), var(--c-well) 60%); }
.slot.q-ancient .slot__item { color: var(--c-item-ancient); }
.slot.q-ancient .slot__icon { color: var(--c-item-ancient); }
/* an item's slot opens its tooltip in place (details / summary): the open one has the light edge */
.slot-item[open] > .slot { box-shadow: var(--sh-well), inset 0 0 0 1px var(--c-light); }
/* The item tooltip: the game's own black box and line colours (tooltip.rcss), framed by small steel corners */
.item-tip { position: relative; display: grid; gap: 5px; padding: 16px 18px; background: rgba(7, 7, 8, 0.97); box-shadow: var(--sh-lift); font-size: var(--fs-sm); text-align: center; color: var(--c-tip-white); }
.item-tip::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--orn-corner-tl) left top / 34px 34px no-repeat, var(--orn-corner-tr) right top / 34px 34px no-repeat, var(--orn-corner-bl) left bottom / 34px 34px no-repeat, var(--orn-corner-br) right bottom / 34px 34px no-repeat; }
.item-tip__name { font-weight: 600; font-size: var(--fs-md); }
.item-tip__name.q-excellent { color: var(--c-item-excellent); }
.item-tip__name.q-ancient { color: var(--c-item-ancient); background: var(--c-item-ancient-band); padding: 2px 8px; justify-self: center; }
.item-tip__name.q-violet { color: var(--c-tip-violet); }
.item-tip__name.q-yellow { color: var(--c-tip-yellow); }
.item-tip__name.q-blue { color: var(--c-tip-blue); }
.item-tip__line { color: var(--c-tip-white); }
/* a blank row above the line, where the game writes one (a section's start: TooltipLine.StartsGroup) */
.item-tip__line--group { margin-top: 1lh; }
.item-tip__line--exc { color: var(--c-tip-green); }
.item-tip__line--blue { color: var(--c-tip-blue); }
.item-tip__line--red { color: var(--c-tip-red); }
.item-tip__line--yellow { color: var(--c-tip-yellow); }
.item-tip__line--gray { color: var(--c-tip-gray); }
.item-tip__line--purple { color: var(--c-tip-purple); }
.item-tip__line--redpurple { color: var(--c-tip-redpurple); }
.item-tip__line--violet { color: var(--c-tip-violet); }
.item-tip__line--enchanted { color: var(--c-tip-enchanted); }
.item-tip__line--darkred { color: #fff; background: var(--c-tip-hl-darkred); padding: 1px 6px; justify-self: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-block: var(--sp-7) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); background: var(--c-bg); color: var(--c-text-3); font-size: var(--fs-sm); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--g-seam); background-size: 200% 100%; animation: seam-flow var(--dur-seam) linear infinite; opacity: 0.5; }
.site-footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.site-footer h3 { font-family: var(--font-label); font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-2); margin-bottom: var(--sp-4); }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: var(--c-text-3); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__mark { display: none; }
.site-footer__tagline { margin-top: 12px; max-width: 36ch; font-style: italic; } /* round 1's inline style (HUB ANSWERS 4) */
.site-footer__legal { margin-top: var(--sp-6); padding-top: var(--sp-4); background: linear-gradient(90deg, transparent, rgba(238, 240, 242, 0.12), transparent) left top / 100% 1px no-repeat; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); }

/* ---------- Account pages (register, log in, account): the form in a case, the hall behind ---------- */
.auth { position: relative; isolation: isolate; overflow: hidden; }
.auth__art { position: absolute; inset: 0; z-index: -2; }
.auth__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0.45; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(7, 7, 8, 0.4), rgba(7, 7, 8, 0.88) 55%, var(--c-bg)); }
.auth__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-7) var(--sp-8); align-items: start; }
.auth__intro { display: grid; gap: var(--sp-4); }
.auth__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); letter-spacing: var(--ls-display); filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; justify-self: start; }
.auth__perks { display: grid; gap: var(--sp-3); }
.auth__perks li { display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-3); align-items: center; color: var(--c-text-2); font-size: var(--fs-sm); }
.auth__perks .feature-card__icon { justify-content: center; width: 40px; height: 40px; }
@media (max-width: 959px) { .auth__perks { display: none; } }
@media (min-width: 960px) {
  .auth::before { background: linear-gradient(90deg, rgba(7, 7, 8, 0.6), rgba(7, 7, 8, 0.86) 55%, rgba(7, 7, 8, 0.94)), linear-gradient(to bottom, transparent 70%, var(--c-bg)); }
  .auth__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-8); padding-block: 88px 120px; align-items: center; }
}
.form-card .ui-card__head { margin: -10px -6px 0; padding: 0 6px 10px; min-height: 0; background: none; }
.form-card .ui-card__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 400; letter-spacing: var(--ls-display); text-transform: none; filter: url(#steel-small); color: var(--c-steel-hi); text-shadow: none; padding-inline: 0.06em; }

/* ---------- CTA band: the closing invitation in the beam ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: var(--sp-8) var(--sp-5); text-align: center; display: grid; justify-items: center; gap: var(--sp-4); }
.cta-band__art { position: absolute; inset: 0; z-index: -2; }
.cta-band__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0.5; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 35%, rgba(7, 7, 8, 0.25), rgba(7, 7, 8, 0.92) 72%); }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--orn-corner-tl) left top / 72px 72px no-repeat, var(--orn-corner-tr) right top / 72px 72px no-repeat, var(--orn-corner-bl) left bottom / 72px 72px no-repeat, var(--orn-corner-br) right bottom / 72px 72px no-repeat; }
.cta-band__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-3xl); letter-spacing: var(--ls-display); filter: url(#steel-title); color: var(--c-steel-hi); padding-inline: 0.06em; }

/* ---------- Motion ---------- */
.reveal { transition: transform var(--dur-3) var(--ease-out); }
.reveal.is-pre { transform: translateY(18px); }
@keyframes seam-flow { from { background-position: 200% 0; } to { background-position: 0% 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }
@keyframes glint { 0%, 52% { background-position: 100% 0; } 82%, 100% { background-position: 0 0; } }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes gem-ping { 0% { opacity: 0.8; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes node-glow { 0%, 100% { box-shadow: 0 0 0 5px rgba(238, 240, 242, 0.1), 0 0 18px rgba(238, 240, 242, 0.75); } 50% { box-shadow: 0 0 0 8px rgba(238, 240, 242, 0.04), 0 0 26px rgba(238, 240, 242, 0.95); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick-in { from { opacity: 0.35; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.tick { display: inline-block; animation: tick-in var(--dur-2) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal.is-pre { transform: none; }
}
:root[data-motion="reduce"] { scroll-behavior: auto; }
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
:root[data-motion="reduce"] .reveal.is-pre { transform: none; }
