/* =============================================================================
   Shaiya Devoted — site shell
   -----------------------------------------------------------------------------
   The frame of the redesigned site, loaded by layouts/site after components.css:
     1. Shell measures     5. Masthead            9. Footer
     2. The HUD kit        6. Windows and decks  10. Shared parts kept from the kit
     3. Slots and twinkle  7. Phone menu         11. The signed-in hero
     4. Buttons and lamps  8. Search dialog
   Rules the shell keeps:
   - It is built from the game client's own interface (img/client/hud, made by
     tools/classic_art.py): the bottom menu bar's steel rail, the notice window,
     the inventory slot and its twinkle, the gold buttons, the ping lamps. No
     site-made chrome stands in for something the client already draws.
   - One navigation. The masthead's five menus are the map of the site; the
     footer's bar is the same five, for the page's end and for no JavaScript.
   - One next action on screen, in gold. The masthead's join button stands
     down while the page's own scene is showing that action.
   ========================================================================== */

/* 1. Shell measures ---------------------------------------------------------- */
html:has(> body.site) { --header-h: 72px; }
.site {
  --page-max: 1320px;                 /* widest content line */
  --measure: 66ch;                    /* longest reading line */
  --ui: 500 15px/1.2 var(--font-body);
  --label-ui: 600 12.5px/1.25 var(--font-body);
  --label-ui-track: .08em;
  /* The factions in the colours the client gives them on its faction-select screen. */
  --aol: #8fd4ff;  --c-aol: 143 212 255;   /* Alliance of Light: azure */
  --uof: #ff6b5e;  --c-uof: 255 107 94;    /* Union of Fury: crimson */
  /* The launcher's metalwork, so the site and the launcher read as one game. */
  --edge-gold: linear-gradient(90deg, transparent, rgb(var(--c-teal) / .55) 14%, rgb(var(--c-gold) / .75) 34%, rgb(var(--c-ink) / .9) 50%, rgb(var(--c-gold) / .75) 66%, rgb(var(--c-teal) / .55) 86%, transparent);
  --metal-gold: linear-gradient(180deg, #fff2c6 0%, #ecd398 20%, #c9a45c 50%, #9b7836 80%, #cfae6b 100%);
  --metal-face: linear-gradient(180deg, #f6e2ab 0%, #d9b869 46%, #b9944a 54%, #dcbd78 100%);
  --metal-text: linear-gradient(180deg, #ffffff 10%, #f1f0ea 36%, #c4ece5 58%, #e9d3ad 82%, #c9a45c 100%);
  --hex: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  /* The client's window stone: the body colour of its notice window (sampled by classic_art.py). */
  --hud-ground: #181616;  --c-hud-ground: 24 22 22;
  --hud-text: #f3e6c4;                 /* the client's light lettering on its gold and steel */
}
.site .wrap { max-width: var(--page-max); }

/* 2. The HUD kit ---------------------------------------------------------------
   The bottom menu bar's rail: a steel line between two capped ends with the
   jewelled boss at its centre. Lies along an edge; never takes pointer input. */
.hud-rail { position: absolute; left: 0; right: 0; z-index: 2; display: flex; height: 33px; pointer-events: none; }
.hud-rail::before, .hud-rail::after { content: ""; flex: none; width: 30px; background: url("../img/client/hud/rail-cap-l.webp") center / 30px 33px no-repeat; }
.hud-rail::after { background-image: url("../img/client/hud/rail-cap-r.webp"); }
.hud-rail i { flex: 1; margin-inline: -1px; background: url("../img/client/hud/rail-boss.webp") center / 44px 33px no-repeat, url("../img/client/hud/rail-body.webp") 0 50% / 320px 33px repeat-x; }

/* The client's light capitals, for every label on the bar and every window title. */
.hud-label { font: 700 12px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* 3. Slots and twinkle -----------------------------------------------------------
   Every emblem sits in the client's inventory slot. Pointing at one plays the
   slot's own twinkle once (28 frames); an open or current one holds its brightest. */
.slot { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; background: url("../img/client/hud/slot.webp") center / 100% 100% no-repeat; box-shadow: none; color: var(--gold); }
.slot::after { content: ""; position: absolute; inset: -3px; background: url("../img/client/hud/twinkle.webp") 0 0 / 2800% 100% no-repeat; opacity: 0; pointer-events: none; }
.slot > img:not(.site-head__gather, .site-drawer__sigil) { width: 20px; height: 20px; filter: brightness(2.1) contrast(1.15) drop-shadow(0 0 3px rgb(0 0 0 / .8)); }
:is(a, button):is(:hover, :focus-visible) > .slot > img:not(.site-head__gather, .site-drawer__sigil) { filter: brightness(2.6) sepia(.6) saturate(2) drop-shadow(0 0 4px rgb(var(--c-gold) / .7)); }
:is(a, button, summary):is(:hover, :focus-visible) > .slot::after { opacity: 1; animation: hud-twinkle 1.1s steps(28, jump-none) both; }
:is(a, button, summary):focus-visible > .slot::after { animation-iteration-count: infinite; }
:is([aria-expanded="true"], .is-current, [aria-current]) > .slot::after, details[open] > summary > .slot::after { opacity: .9; animation: none; background-position: 48.148% 0; }
.slot.is-lit .emblem__lit { opacity: 1; }
@keyframes hud-twinkle { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) {
  :is(a, button, summary):is(:hover, :focus-visible) > .slot::after { animation: none; background-position: 48.148% 0; }
}

/* 4. Buttons and lamps -----------------------------------------------------------
   The client's gold button (four states: rest, lit, pressed, spent) and its
   ping lamps. A realm reading is told by the lamp and by its words beside it. */
.hud-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 40px; min-width: 0; padding: 0 6px;
  border-style: solid; border-width: 0 22px; border-image: url("../img/client/hud/btn-0.webp") 0 22 fill / 0 22px stretch;
  background: none; color: var(--hud-text); font: 700 12.5px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  text-shadow: 0 1px 1px #000, 0 0 8px rgb(0 0 0 / .7); cursor: pointer;
}
.hud-btn:hover { color: #fff; border-image-source: url("../img/client/hud/btn-1.webp"); }
.hud-btn:active { border-image-source: url("../img/client/hud/btn-2.webp"); }
.hud-btn--quiet { color: var(--soft); border-image-source: url("../img/client/hud/btn-3.webp"); }
.hud-btn--quiet:hover { color: var(--ink); border-image-source: url("../img/client/hud/btn-3.webp"); filter: brightness(1.25); }
.hud-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
:is(.site-head, .site-drawer, .site-foot) .status-mark { width: 18px; height: 18px; border: 0; border-radius: 0; rotate: none; background: url("../img/client/hud/lamp-amber.webp") center / contain no-repeat; box-shadow: none; filter: grayscale(.9) brightness(.62); }
/* The site's plain status marks are told by shape and colour; in the shell the lamp's art and the words beside it tell it. */
:is(.site-head, .site-drawer, .site-foot) .status-mark:is([data-state="up"], [data-state="partial"], [data-state="down"]) { width: 18px; height: 18px; border: 0; border-radius: 0; rotate: none; box-shadow: none; filter: none; background: url("../img/client/hud/lamp-amber.webp") center / contain no-repeat; }
:is(.site-head, .site-drawer, .site-foot) .status-mark[data-state="up"] { animation: hud-lamp 2.4s ease-in-out infinite; }
:is(.site-head, .site-drawer, .site-foot) .status-mark[data-state="down"] { background-image: url("../img/client/hud/lamp-red.webp"); }
@keyframes hud-lamp { 50% { filter: brightness(1.18) drop-shadow(0 0 5px rgb(255 160 40 / .75)); } }
@media (prefers-reduced-motion: reduce) { :is(.site-head, .site-drawer, .site-foot) .status-mark[data-state="up"] { animation: none; } }
/* A field, as the auction window draws its search: a sunken box with the client's lens. */
.hud-field { display: flex; align-items: center; border-style: solid; border-width: 3px; border-image: url("../img/client/hud/field.webp") 3 fill / 3px stretch; background: none; }
.hud-field img { filter: brightness(2.1) contrast(1.15); }
.hud-field:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

/* 5. Masthead ----------------------------------------------------------------
   The client's bar along the top of the page: the wordmark, five destinations
   as emblems in slots with their names, the realm's lamp, search and the account,
   on the window stone, the rail and its jewel along the lower edge. */
.site-head {
  position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h);
  background: linear-gradient(180deg, rgb(var(--c-hud-ground) / .97), rgb(14 13 13 / .95));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-head > .hud-rail { bottom: -17px; transition: opacity var(--dur-2); }
/* At the page's end the footer's bar takes over and the masthead steps away, unless it is in use. */
.site-head { transition: background var(--dur-2) var(--ease), translate var(--dur-3) var(--ease); }
.site-head.is-away:not(:focus-within):not(:has([aria-expanded="true"])) { translate: 0 calc(-100% - 20px); }
@media (prefers-reduced-motion: reduce) { .site-head { transition: none; } }
/* Over a page's own scene the masthead is part of the picture until the page moves. */
.site-head.is-over-scene:not(.is-scrolled):not(:has([aria-expanded="true"])) { background: linear-gradient(180deg, rgb(var(--c-ground) / .78), transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-head.is-over-scene:not(.is-scrolled):not(:has([aria-expanded="true"])) > .hud-rail { opacity: 0; }
.site-head__bar { display: flex; align-items: center; gap: clamp(10px, 1.1vw, 18px); height: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter-l) var(--gutter-r); }
.site-head__brand { position: relative; flex: none; display: block; width: 124px; }
.site-head__word { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .6)); transition: opacity var(--dur-2) var(--ease); }
/* While the page's own scene shows the wordmark, the masthead does not show it twice. */
.site-head.is-held .site-head__word { opacity: 0; }
.site-head__nav { height: 100%; }
.site-head__menus { display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; }
.site-head__menu { position: relative; }
.site-head__trigger {
  display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 8px;
  border: 0; background: none; color: var(--soft); cursor: pointer; white-space: nowrap; flex: none; transition: color var(--dur-1);
}
.site-head__trigger .emblem { --emblem: 32px; }
.site-head__trigger:is(:hover, [aria-expanded="true"]) { color: var(--hud-text); }
.site-head__trigger.is-current { color: var(--gold-hi); }
.site-head__trigger:focus-visible { outline-offset: -6px; }
.site-head__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* The signed-in hero's button: the bust, the name and the level, on the bar's stone. */
.site-head__account > .site-head__link { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border: 0; background: none; color: var(--soft); font: inherit; cursor: pointer; white-space: nowrap; flex: none; }
.site-head__account > .site-head__link:is(:hover, [aria-expanded="true"]) .site-hero__id b { color: var(--hud-text); }
.site-head__icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--soft); cursor: pointer; }
.site-head__unread { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; rotate: 45deg; background: var(--gold-hi); box-shadow: 0 0 0 2px var(--hud-ground), 0 0 8px var(--gold-hi); }
.site-head__initial { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--metal-face); color: var(--on-accent); font: 700 13px/1 var(--font-label); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
/* Joining arrives in the masthead as the scene's own play plate leaves the screen. */
.site-head__join { display: block; max-width: 240px; overflow: hidden; transition: max-width var(--dur-3) var(--ease), opacity var(--dur-2) var(--ease), visibility var(--dur-2); }
.site-head.is-held .site-head__join { max-width: 0; opacity: 0; visibility: hidden; }
.site-head__burger { display: none; }
.slot > img:is(.site-head__gather, .site-drawer__sigil) { width: 30px; height: 30px; }
/* The realm's lamp and its reading, in the masthead on every page; its report opens from it. */
.site-head__realm { position: relative; }
.site-realm { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 8px; border: 0; background: none; color: var(--soft); font: 700 12px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; flex: none; cursor: pointer; transition: color var(--dur-1); }
.site-realm b { font-weight: 700; color: var(--hud-text); font-variant-numeric: tabular-nums; }
.site-realm__unit { font-style: normal; }
.site-realm:is(:hover, [aria-expanded="true"]) { color: var(--hud-text); }
.site-head .site-report { position: absolute; right: -6px; top: calc(100% + 14px); z-index: var(--z-menu); width: 340px; }
.site-report dl { margin: 0 0 12px; }
.site-report dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 2px; border-top: 1px solid rgb(var(--c-ink) / .07); font-size: 14px; }
.site-report dt { color: var(--mute); }
.site-report dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.site-report .war-bar { width: 120px; }
.site-report .hud-btn { width: 100%; }
/* On a phone the report opens across the screen, not off its left edge. */
@media (max-width: 560px) { .site-head .site-report { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 14px); width: auto; } }

/* 6. Windows and decks ------------------------------------------------------------
   A window is the client's notice window, cut as a nine-slice: its frame and the
   glow its title sits in. The tooltip's caret points back at what opened it
   (--caret-x, set by site-head.js and foot-hud.js; the frame's middle otherwise). */
.site .hud-window {
  box-sizing: border-box; padding: 0 6px 2px; border-style: solid; border-width: 48px 14px 26px; border-image: url("../img/client/hud/win.webp") 48 14 26 14 fill / 48px 14px 26px 14px stretch;
  background: linear-gradient(rgb(var(--c-hud-ground)), rgb(var(--c-hud-ground))) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat border-box;
  box-shadow: 0 30px 70px -18px #000, 0 0 0 1px rgb(0 0 0 / .4); color: var(--soft);
}
.site .hud-window::before { content: ""; position: absolute; top: -53px; left: calc(var(--caret-x, 50%) - 14px); width: 12px; height: 5px; translate: -50% 0; rotate: 180deg; background: url("../img/client/hud/caret.webp") center / 100% 100%; }
.hud-window__title { margin: -36px 0 18px; text-align: center; font: 700 14px/24px var(--font-label); letter-spacing: .18em; text-transform: uppercase; }
/* A row of a window's list: the client marks the choice with a gold diamond and a warm wash. */
.hud-row { position: relative; display: flex; align-items: center; min-height: 38px; padding: 0 14px 0 24px; color: var(--soft); font: 500 15px/1.25 var(--font-body); text-decoration: none; white-space: nowrap; transition: color var(--dur-1), background-color var(--dur-1); }
.hud-row::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; translate: 0 -50%; rotate: 45deg; background: var(--gold-hi); box-shadow: 0 0 6px rgb(var(--c-gold) / .8); opacity: 0; transition: opacity var(--dur-1), left var(--dur-2) var(--ease); }
.hud-row:is(:hover, :focus-visible) { color: var(--hud-text); background: linear-gradient(90deg, rgb(var(--c-gold) / .13), transparent 85%); }
.hud-row:is(:hover, :focus-visible, [aria-current="page"])::before { opacity: 1; left: 9px; }
.hud-row[aria-current="page"] { color: var(--gold-hi); }
.hud-row:focus-visible { outline-offset: -2px; }

/* Each destination's window opens under its slot: its pages, and beside them a reading of that part of the realm. */
.site-deck { position: absolute; left: -10px; top: calc(100% + 8px); z-index: var(--z-menu); width: max-content; max-width: min(940px, calc(100vw - 32px)); }
.site-deck--rankings, .site-deck--community, .site-deck--market { left: 50%; translate: -50% 0; }
.site-deck:not([hidden]) { animation: deck-in var(--dur-2) var(--ease); }
@keyframes deck-in { from { opacity: 0; transform: translateY(-6px); } }
.site-deck__inner { display: flex; align-items: flex-start; gap: 26px; padding: 0 4px 4px; }
.site-deck__links { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(170px, auto)); gap: 2px 10px; }
.site-deck--world .site-deck__links { --cols: 3; }
.site-deck--community .site-deck__links, .site-deck--market .site-deck__links { --cols: 2; }
.site-deck__feature { display: grid; align-content: start; gap: 14px; width: 300px; padding-left: 24px; border-left: 1px solid rgb(var(--c-ink) / .08); }
.site-deck__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.site-deck__side { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.site-deck__side img { width: 100%; height: 92px; object-fit: cover; object-position: 70% 50%; margin-bottom: 8px; transition: filter var(--dur-2); }
.site-deck__side--fury img { object-position: 22% 50%; }
.site-deck__side b { font: 700 13px/1.2 var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.site-deck__side small { font-size: 13px; color: var(--mute); }
.site-deck__side:hover img { filter: brightness(1.12) saturate(1.1); }
.site-deck__find .hud-field { margin-top: 8px; height: 44px; }
.site-deck__find input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: none; }
.site-deck__find button { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: none; cursor: pointer; }
.site-deck__find button img { width: 18px; height: 18px; }
.site-deck__find button:hover img { filter: brightness(1.5) drop-shadow(0 0 4px rgb(var(--c-gold) / .8)); }
.site-deck__reading { display: grid; gap: 3px; padding: 10px 0; color: inherit; text-decoration: none; }
.site-deck__reading b { font: 600 16px/1.3 var(--font-body); color: var(--ink); }
.site-deck__reading small { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.site-deck__reading:hover b { color: var(--hud-text); }
/* The homeland on the client's minimap: the painted map seen through the frame's window, its compass on top. */
.site-deck__map { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.site-deck__radar { position: relative; display: block; width: 112px; aspect-ratio: 202 / 226; }
.site-deck__radar img { position: absolute; width: 100%; height: 100%; }
.site-deck__radar img:first-child { left: 3.96%; top: 5.31%; width: 92.08%; height: 83.19%; object-fit: cover; filter: saturate(.9) brightness(.92); transition: filter var(--dur-2); }
.site-deck__map > span:last-child { display: grid; gap: 3px; }
.site-deck__map b { font: 700 17px/1.2 var(--font-label); letter-spacing: .06em; color: var(--hud-text); }
.site-deck__map small { font-size: 13px; color: var(--mute); }
.site-deck__map:is(:hover, :focus-visible) .site-deck__radar img:first-child { filter: saturate(1.1) brightness(1.08); }
.site-deck__map:is(:hover, :focus-visible) small { color: var(--gold-hi); }
/* The realm's first, standing as its own model beside the front line (figure.js; its 2D render until then). */
.site-deck--rankings .site-deck__feature { width: 440px; grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; }
.site-deck--rankings .site-deck__feature > .label-ui { grid-column: 1 / -1; }
.site-deck__champion { position: relative; display: block; width: 128px; height: 210px; background: radial-gradient(60% 40% at 50% 92%, rgb(var(--c-aol) / .22), transparent 70%); }
.site-deck__champion--fury { background: radial-gradient(60% 40% at 50% 92%, rgb(var(--c-uof) / .22), transparent 70%); }
.site-deck__champion > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--ease); }
.site-deck__champion .figure__still { position: absolute; left: 50%; bottom: 0; width: auto; height: 96%; translate: -50% 0; transition: opacity 600ms var(--ease); }
.site-deck__champion.is-live > canvas { opacity: 1; }
.site-deck__champion.is-live .figure__still { opacity: 0; }
.site-deck__champion.is-loading .figure__still { filter: brightness(0) drop-shadow(0 0 1px rgb(255 255 255 / .3)); }
.site-deck__champion:focus-visible { outline-offset: 2px; }
.site-deck__leaders { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-deck__leaders a { display: grid; grid-template-columns: 44px 22px minmax(0, 1fr); align-items: center; gap: 10px; padding: 2px 8px 2px 0; color: inherit; text-decoration: none; }
.site-deck__leaders img { width: 44px; height: auto; filter: drop-shadow(0 0 1px rgb(var(--c-aol) / .6)); }
.site-deck__leader--fury img { filter: drop-shadow(0 0 1px rgb(var(--c-uof) / .6)); }
/* The rank in the season screen's gold numerals, as on the homepage's front line. */
.site-deck__rank { display: grid; place-items: center; }
.site-deck__rank img { width: 15px; height: auto; filter: drop-shadow(0 2px 2px #000); }
.site-deck__leaders b { display: block; font: 600 15px/1.2 var(--font-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-deck__leaders small { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.site-deck__leaders a:hover b { color: var(--hud-text); }
@media (prefers-reduced-motion: no-preference) {
  .site-deck:not([hidden]) :is(.hud-row, .site-deck__feature) { animation: deck-item 380ms var(--ease) both; }
  .site-deck:not([hidden]) .hud-row:nth-child(n+3) { animation-delay: 40ms; }
  .site-deck:not([hidden]) .hud-row:nth-child(n+5) { animation-delay: 80ms; }
  .site-deck:not([hidden]) .hud-row:nth-child(n+7) { animation-delay: 120ms; }
  .site-deck:not([hidden]) .site-deck__feature { animation-delay: 100ms; }
}
@media (prefers-reduced-motion: reduce) { .site-deck:not([hidden]) { animation: none; } }
@keyframes deck-item { from { opacity: 0; translate: 0 5px; } }
/* The account window, under the hero. */
.site-head .site-head__panel { left: auto; right: -6px; top: calc(100% + 14px); width: 300px; padding: 0 4px 2px; }
.site-head__panel :is(a, button) { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--soft); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.site-head__panel b { font: 500 15px/1.3 var(--font-body); color: var(--ink); }
.site-head__panel :is(a, button):is(:hover, :focus-visible) { background: linear-gradient(90deg, rgb(var(--c-gold) / .13), transparent 85%); }
.site-head__panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid rgb(var(--c-ink) / .07); }

/* The bar keeps every destination on one line: tighter below 1600, smaller slots below 1440, names alone below 1380. */
@media (max-width: 1599px) {
  .site-head__bar { gap: 10px; }
  .site-head__trigger { gap: 7px; padding: 0 5px; }
  .site-head__actions { gap: 4px; }
  .hud-label { letter-spacing: .09em; }
  .site-realm__unit { display: none; }
}
@media (max-width: 1439px) {
  .site-head__brand { width: 108px; }
  .site-head__trigger .slot { width: 36px; height: 36px; }
  .site-head__trigger .emblem { --emblem: 32px; }
  .site-head .hud-btn { padding: 0 2px; border-width: 0 18px; border-image-width: 0 18px; }
}
@media (max-width: 1379px) { .site-head__trigger .slot { display: none; } .site-head__trigger { padding: 0 7px; } }

/* 7. Phone menu -------------------------------------------------------------- */
@media (max-width: 1279px) {
  html:has(> body.site) { --header-h: 60px; }
  .site-head__nav, .site-head__join, .site-head__account, .site-head__link { display: none; }
  .site-head__burger { display: inline-grid; margin-right: -4px; }
  .site-head__brand { width: 104px; }
}
@media (max-width: 420px) { .site-realm span { display: none; } .site-realm { padding: 0 4px; } }
.site-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0 0 0 auto;
  padding: 0; border: 0; background: radial-gradient(120% 50% at 50% 0, rgb(255 170 80 / .06), transparent 60%), var(--hud-ground); color: var(--ink); overflow-y: auto;
  box-shadow: -1px 0 0 rgb(var(--c-ink) / .12), -30px 0 60px -10px #000;
}
.site-drawer::backdrop { background: rgb(0 0 0 / .66); }
.site-drawer[open] { animation: site-drawer-in var(--dur-3) var(--ease); }
@keyframes site-drawer-in { from { transform: translateX(28px); opacity: 0; } }
.site-drawer__top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 8px 0 18px; background: rgb(var(--c-hud-ground) / .96); }
.site-drawer__top > .hud-rail { bottom: -17px; }
.site-drawer__top h2 { margin: 0 auto 0 0; line-height: 0; }
.site-drawer__top h2 img { width: 104px; height: auto; }
.site-drawer__body { display: grid; gap: 14px; padding: 30px 18px calc(32px + env(safe-area-inset-bottom, 0px)); }
.site-drawer__realm { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: linear-gradient(90deg, rgb(var(--c-gold) / .07), transparent); box-shadow: inset 2px 0 0 rgb(var(--c-gold) / .5); color: inherit; text-decoration: none; }
.site-drawer__realm span { display: grid; gap: 2px; margin-right: auto; }
.site-drawer__realm b { font: 600 15px/1.2 var(--font-body); }
.site-drawer__realm small { font-size: 13px; color: var(--mute); }
.site-drawer__search { justify-content: space-between; width: 100%; height: 48px; padding: 0 12px; color: var(--mute); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.site-drawer__search img { width: 18px; height: 18px; }
.site-drawer__join { display: grid; gap: 8px; }
.site-drawer__join .hud-btn { height: 44px; }
.site-drawer__me { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.site-drawer__me a { display: grid; justify-items: center; gap: 6px; padding: 8px 6px; color: var(--soft); font-size: 13px; text-decoration: none; }
.site-drawer nav { display: grid; }
.site-drawer__home, .site-drawer summary { display: flex; align-items: center; gap: 14px; min-height: 58px; border-bottom: 1px solid rgb(var(--c-ink) / .07); color: var(--soft); text-decoration: none; cursor: pointer; list-style: none; }
.site-drawer__home { font: 700 12px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.site-drawer summary::-webkit-details-marker { display: none; }
.site-drawer details[open] summary, .site-drawer__home[aria-current] { color: var(--hud-text); }
.site-drawer__group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; padding: 8px 0 14px; }
.site-drawer__group .hud-row { white-space: normal; min-height: 44px; font-size: 14px; }
.site-drawer form .hud-btn { width: 100%; }
@media (max-width: 360px) { .site-drawer__group { grid-template-columns: minmax(0, 1fr); } }

/* 8. Search dialog (partials.palette) ---------------------------------------- */
.site .dev-search__top { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 18px; border-bottom: 1px solid var(--line); }
.site .dev-search__top h2 { margin: 0; font: var(--label-ui); letter-spacing: var(--label-ui-track); text-transform: uppercase; color: var(--mute); }
.site .dev-search .dev-nav__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--soft); cursor: pointer; }
.site .dev-search .dev-nav__icon .icon { width: 18px; height: 18px; }
.site .palette__item small { font: var(--label-ui); letter-spacing: .06em; }
/* The search window, framed as the launcher frames its panels. */
.site .palette {
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 16px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 100% 100% / 16px 1px no-repeat, linear-gradient(var(--teal), var(--teal)) 100% 100% / 1px 16px no-repeat,
    linear-gradient(180deg, rgb(var(--c-surface-2)), var(--surface));
  box-shadow: 0 40px 120px -20px #000;
}
.site .dev-search__top { border-bottom: 1px solid transparent; border-image: var(--edge-gold) 1; }
.site .dev-search__top h2 { font: 600 13px/1 var(--font-label); letter-spacing: .16em; color: var(--gold); }
.site .palette__input input { font-size: 18px; }
.site .palette__item { position: relative; padding-left: 26px; }
.site .palette__item::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; translate: 0 -50%; rotate: 45deg; background: var(--gold-hi); opacity: 0; transition: opacity var(--dur-1); }
.site .palette__item[aria-selected="true"] { background: linear-gradient(90deg, rgb(var(--c-gold) / .14), transparent); box-shadow: inset 2px 0 0 var(--gold); }
.site .palette__item[aria-selected="true"]::before { opacity: 1; }
.site .palette__item small { font: 600 11px/1 var(--font-label); letter-spacing: .14em; color: var(--gold-lo); }

/* 9. Footer: the gate, then the client's menu bar ---------------------------------
   The client's faction-select screen as the last scene: the dragon sigil on the
   slash between the two faces, each side asking the question the client asks.
   Under it the bottom menu bar: the rail, the five destinations in slots (each
   opens its pages in a window above the bar), the realm's lamp and the clock. */
.site-foot { position: relative; background: var(--ground); }
.site-foot__gate {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(18px, 4vw, 72px);
  min-height: clamp(230px, 24vw, 330px); padding: 44px max(var(--gutter-l), calc((100vw - var(--page-max)) / 2 + var(--gutter-l)));
}
.site-foot__faces { position: absolute; z-index: -2; top: 0; left: 50%; width: min(100%, 1191px); height: 100%; max-width: none; translate: -50% 0; object-fit: cover; object-position: 50% 50%; filter: brightness(1.6) contrast(1.12) saturate(1.1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.site-foot__gate::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(48% 120% at 50% 50%, rgb(var(--c-ground) / .15), rgb(var(--c-ground) / .55) 62%, var(--ground) 100%), linear-gradient(180deg, var(--ground) 0, transparent 26%, transparent 70%, var(--ground) 100%); }
.site-foot__sigil { display: block; border-radius: 50%; }
.site-foot__sigil img { display: block; width: clamp(76px, 7vw, 104px); height: auto; filter: drop-shadow(0 0 26px rgb(var(--c-teal) / .55)) drop-shadow(0 12px 22px #000); transition: filter var(--dur-2), transform var(--dur-3) var(--ease); }
.site-foot__sigil:hover img { filter: drop-shadow(0 0 34px rgb(var(--c-teal-hi) / .7)) drop-shadow(0 12px 22px #000); transform: scale(1.04); }
.site-foot__side { --side-colour: var(--aol); display: grid; justify-items: start; gap: 8px; max-width: 320px; color: inherit; text-decoration: none; }
.site-foot__side--fury { --side-colour: var(--uof); justify-self: end; justify-items: end; text-align: right; }
.site-foot__crest { display: inline-grid; place-items: center; width: 40px; height: 40px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(180deg, rgb(var(--c-ink) / .12), rgb(var(--c-ink) / .02)); color: var(--side-colour); }
.site-foot__crest .icon { width: 20px; height: 20px; filter: drop-shadow(0 0 6px var(--side-colour)); }
.site-foot__side b { font: 700 clamp(1.05rem, .85rem + .8vw, 1.55rem)/1.1 var(--font-label); letter-spacing: .08em; text-transform: uppercase; filter: drop-shadow(0 3px 12px rgb(0 0 0 / .9)); }
.site-foot__side q { font: italic 500 clamp(1rem, .92rem + .35vw, 1.22rem)/1.4 var(--font-display); color: var(--soft); quotes: none; text-shadow: 0 2px 10px #000; transition: color var(--dur-1); }
.site-foot__side:is(:hover, :focus-visible) q { color: var(--ink); }
.site-foot__side:focus-visible, .site-foot__sigil:focus-visible { outline-offset: 6px; }

.foot-hud { position: relative; background: linear-gradient(180deg, rgb(var(--c-hud-ground)), #0c0b0b); }
.foot-hud > .hud-rail { top: -17px; }
.foot-hud__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; max-width: var(--page-max); margin-inline: auto; padding: 26px var(--gutter-r) 14px var(--gutter-l); }
.foot-hud__tray { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-hud__group { position: relative; }
.foot-hud__group summary { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 6px; color: var(--soft); cursor: pointer; list-style: none; transition: color var(--dur-1); }
.foot-hud__group summary::-webkit-details-marker { display: none; }
.foot-hud__group summary:hover, .foot-hud__group[open] summary { color: var(--hud-text); }
.foot-hud__group summary:focus-visible { outline-offset: -2px; }
.foot-hud__window { position: absolute; left: -8px; bottom: calc(100% + 12px); z-index: 5; width: max-content; min-width: 240px; }
/* Above the bar the caret hangs from the window's foot, pointing down at the slot. */
.site .foot-hud__window::before { top: auto; bottom: -31px; rotate: none; }
.foot-hud__window ul { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(160px, auto)); gap: 2px 10px; margin: 0; padding: 0; list-style: none; }
.foot-hud__window ul.is-wide { --cols: 2; }
.foot-hud__group[open] .foot-hud__window { animation: deck-in var(--dur-2) var(--ease); }
.foot-hud__realm { display: flex; align-items: center; gap: 18px; color: var(--soft); font: 700 12px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; }
.foot-hud__lamp { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.foot-hud__lamp:hover { color: var(--hud-text); }
.foot-hud__clock { display: inline-flex; align-items: baseline; gap: 6px; padding-left: 18px; border-left: 1px solid rgb(var(--c-ink) / .1); color: var(--mute); }
.foot-hud__clock b { font-size: 15px; color: var(--hud-text); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.foot-hud__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; max-width: var(--page-max); margin: 0 auto; padding: 12px var(--gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); border-top: 1px solid rgb(var(--c-ink) / .06); font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.foot-hud__base a { color: var(--mute); }
.foot-hud__base a:hover { color: var(--hud-text); }
@media (max-width: 760px) {
  .foot-hud__bar { justify-content: center; }
  /* The five slots share the width, their names under them, as the client's bar sets its buttons. */
  .foot-hud__tray { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 0; }
  .foot-hud__group { position: static; }
  .foot-hud__group summary { display: grid; justify-items: center; gap: 6px; width: 100%; height: auto; padding: 6px 0; }
  .foot-hud__group .hud-label { font-size: 10px; letter-spacing: .08em; }
  .foot-hud__window { left: 0; right: 0; width: auto; min-width: 0; }
  .foot-hud__window ul.is-wide { --cols: 2; }
  .foot-hud__window ul { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
  .foot-hud__window .hud-row { white-space: normal; }
  .foot-hud__base { justify-content: center; text-align: center; }
}
@media (max-width: 680px) {
  .site-foot__gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; min-height: 0; padding: 36px var(--gutter-r) 40px var(--gutter-l); }
  .site-foot__sigil { grid-column: 1 / -1; justify-self: center; order: -1; }
  .site-foot__side { gap: 6px; }
  .site-foot__side--fury, .site-foot__side--light { justify-self: stretch; }
}
@media (max-width: 360px) { .foot-hud__realm { flex-direction: column; gap: 4px; } .foot-hud__clock { padding-left: 0; border-left: 0; } }

/* 10. Shared parts kept from the kit -------------------------------------------- */
/* A realm reading is told by shape as well as colour: a lit ring when a service answers, a square when
   it does not, a diamond when the reading is partial, a hollow ring when there is no reading at all. */
.status-mark { flex: none; display: inline-block; width: 9px; height: 9px; border: 1.5px solid var(--mute); border-radius: 50%; }
.status-mark[data-state="up"] { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 3px rgb(var(--c-ok) / .2); }
.status-mark[data-state="down"] { border-color: var(--bad); background: var(--bad); border-radius: 0; }
.status-mark[data-state="partial"] { border-color: var(--warn); background: var(--warn); border-radius: 0; rotate: 45deg; width: 8px; height: 8px; }
/* The two factions' share, Light from the left: the meridian at the size of a reading. */
.war-bar { position: relative; display: flex; height: 6px; background: linear-gradient(90deg, rgb(var(--c-uof) / .7), var(--uof)); }
.war-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgb(var(--c-aol) / .55), var(--aol)); box-shadow: 2px 0 0 var(--ground); transition: width var(--dur-3) var(--ease); }
/* An arrow says where a link goes: → stays on this site, ↗ leaves it. */
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--soft); font: var(--ui); text-decoration: none; transition: color var(--dur-1); }
.go .icon { width: 15px; height: 15px; color: var(--gold); transition: translate var(--dur-2) var(--ease); }
.go:hover { color: var(--ink); }
.go:hover .icon { translate: 3px 0; }
/* The emblem screen's arrowhead (img/client/hud/arrow), gilded under the pointer, stands for the web arrow. */
.go > .icon:has(use[href="#i-arrow"]) { display: none; }
.go:has(> .icon use[href="#i-arrow"])::after { content: ""; flex: none; width: 14px; height: 12px; background: url("../img/client/hud/arrow.webp") center / contain no-repeat; transition: translate var(--dur-2) var(--ease); }
.go:has(> .icon use[href="#i-arrow"]):is(:hover, :focus-visible)::after { background-image: url("../img/client/hud/arrow-lit.webp"); translate: 3px 0; }

/* The gold plate keeps its metal; its label is set to be read at a glance, not engraved. */
.site .btn { height: 48px; padding: 0 26px; font: 600 15.5px/1 var(--font-body); letter-spacing: .01em; text-transform: none; }
/* The one great action on a screen wears the launcher's play plate: a chamfered gold hexagon with a
   struck face and a slow sheen. Used once per screen, for the thing the player came to do. */
.plate {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 248px; height: 58px; padding: 0 40px; clip-path: var(--hex); background: var(--metal-gold);
  color: var(--on-accent); font: 700 15px/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 0 rgb(255 255 255 / .45);
  transition: filter var(--dur-1), transform var(--dur-2) var(--ease);
}
.plate::before { content: ""; position: absolute; z-index: -1; inset: 2px 3px; clip-path: var(--hex); background: var(--metal-face); }
.plate::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 38%, rgb(255 251 232 / .7) 50%, transparent 62%); translate: -120% 0; animation: plate-sheen 7s var(--ease) 2.4s infinite; }
@keyframes plate-sheen { 0%, 64% { translate: -120% 0; } 100% { translate: 120% 0; } }
.plate:hover { color: var(--on-accent); filter: brightness(1.08) drop-shadow(0 0 18px rgb(var(--c-gold) / .55)); transform: translateY(-1px); }
.plate:active { transform: none; filter: brightness(.95); }
.plate:focus-visible { outline: none; filter: drop-shadow(0 0 0 var(--focus-ring)) drop-shadow(0 0 2px var(--focus-ring)) drop-shadow(0 0 6px var(--focus-ring)); }
/* Metal lettering, as the launcher sets its headings: pearl over sea-glass into gold, like the logo. */
.metal { background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The launcher's corner brackets: gold where a panel begins, sea-glass where it ends. */
.brackets { position: relative; }
.brackets::before, .brackets::after { content: ""; position: absolute; z-index: 2; width: 14px; height: 14px; border: 1px solid var(--gold); opacity: .85; pointer-events: none; }
.brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.brackets::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-color: var(--teal); }

/* Section heads and labels */
.label-ui { margin: 0; font: var(--label-ui); letter-spacing: var(--label-ui-track); text-transform: uppercase; color: var(--mute); }
.sx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.sx-head :is(h2, h3) { margin: 0; font: 600 clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem)/1.1 var(--font-display); letter-spacing: 0; color: var(--ink); }

/* Design reference (/design-system) */
.ds-shell h3 { margin: 28px 0 10px; font: var(--label-ui); letter-spacing: var(--label-ui-track); text-transform: uppercase; color: var(--mute); }
.ds-shell__rules { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ds-shell__rules > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ds-shell__rules dt { font-weight: 600; color: var(--ink); }
.ds-shell__rules dd { margin: 0; max-width: var(--measure); color: var(--soft); }
.ds-shell__specimens { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 36px; padding: 28px; border: 1px solid var(--line); background: rgb(var(--c-surface) / .5); }
.ds-shell__metal { font: 700 2.2rem/1 var(--font-label); letter-spacing: .05em; text-transform: uppercase; }
.ds-shell__panel { display: grid; gap: 6px; max-width: 260px; padding: 16px 18px; background: rgb(var(--c-surface) / .8); border: 1px solid rgb(var(--c-line) / .1); font-size: 14px; color: var(--soft); }
.ds-shell__panel .label-ui { color: var(--uof); }
.ds-shell__marks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ds-shell__marks li { display: flex; align-items: center; gap: 10px; }
.ds-shell__bar { display: grid; gap: 8px; width: 220px; }
.ds-shell__states { display: flex; gap: 6px; }
.ds-shell__states figure { margin: 0; display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--mute); }
.ds-shell__states img { width: 88px; height: auto; filter: drop-shadow(0 0 1px rgb(var(--c-uof) / .6)); }
@media (max-width: 560px) { .ds-shell__rules > div { grid-template-columns: minmax(0, 1fr); } .ds-shell__specimens { padding: 16px; gap: 20px; } .ds-shell .plate { min-width: 0; width: 100%; padding: 0 20px; } }
.ds-shell { min-width: 0; }
/* Section heads: the launcher's gold diamond, the title in the game's capitals, a gold-to-sea-glass rule. */
/* Section heads: the menu bar's jewel before the title, the window-title glow under it, as the client heads a list. */
.sx-head { position: relative; align-items: center; padding-bottom: 16px; }
.sx-head::after { content: ""; position: absolute; left: -2%; right: 18%; bottom: -4px; height: 12px; background: url("../img/client/hud/title-glow.webp") 0 50% / 100% 100% no-repeat; opacity: .55; pointer-events: none; }
.sx-head :is(h2, h3) { display: inline-flex; align-items: center; gap: 14px; font: 700 clamp(1.2rem, 1rem + .7vw, 1.55rem)/1.1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.sx-head :is(h2, h3)::before { content: ""; flex: none; width: 20px; height: 20px; background: url("../img/client/hud/rail-boss.webp") center / auto 100% no-repeat; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }  /* the jewel alone, not the rail behind it */
/* Commands read like the client's buttons, not web links. */
.go { font: 600 12.5px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.ds-shell__head { flex: 1 1 100%; margin: 0; }
.ds-shell__head h2 { margin: 0; }
.ds-shell__slots { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-shell__window { position: relative; width: min(260px, 100%); }
.ds-shell__slot { display: inline-grid; }
.emblem { position: relative; display: inline-grid; flex: none; width: var(--emblem, 30px); height: var(--emblem, 30px); }
.emblem img { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity var(--dur-2) var(--ease); }
.emblem__lit { opacity: 0; }
:is(a, button, summary):is(:hover, :focus-visible) .emblem__lit,
:is([aria-expanded="true"], [aria-current], .is-current) .emblem__lit, details[open] > summary .emblem__lit { opacity: 1; }
.slot .emblem { --emblem: 32px; }  /* the client's 32px buttons at their own size */
.slot--large { width: 58px; height: 58px; }
.slot--large .emblem { --emblem: 46px; }

/* 11. The signed-in hero ---------------------------------------------------------
   The account's strongest character stands in the masthead, as the launcher shows the selected hero:
   the client's render of its class, its bust in a diamond of its faction's colour. */
.site-hero { gap: 10px; padding: 0 6px 0 2px; letter-spacing: 0; text-transform: none; }
.site-hero__bust { --side: var(--c-aol); position: relative; display: block; flex: none; width: 38px; height: 38px; overflow: hidden; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: radial-gradient(circle at 50% 40%, rgb(var(--side) / .35), rgb(var(--c-ground)) 75%); }
.site-hero__bust--fury { --side: var(--c-uof); }
.site-hero__bust img { position: absolute; left: 50%; top: -2px; width: 92px; height: auto; max-width: none; translate: -46% 0; }
.site-hero__id { display: grid; gap: 2px; text-align: left; }
.site-hero__id b { max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1.1 var(--font-body); color: var(--ink); }
.site-hero__id small { font: 600 10.5px/1.1 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.site-hero__panel { width: 300px; padding-top: 0; }
.site-hero__card { --side: var(--c-aol); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px; margin: 0 -6px 6px; padding: 14px 14px 12px; background: radial-gradient(70% 90% at 20% 30%, rgb(var(--side) / .18), transparent 70%), var(--surface-2); border-bottom: 1px solid transparent; border-image: var(--edge-gold) 1; }
.site-hero__card--fury { --side: var(--c-uof); }
.site-hero__figure { width: 76px; height: auto; margin: -6px 0 -12px; filter: drop-shadow(0 0 1px rgb(var(--side) / .7)) drop-shadow(0 10px 10px #000); }
.site-hero__card span { display: grid; gap: 4px; min-width: 0; }
.site-hero__card b { font: 700 17px/1.15 var(--font-label); letter-spacing: .05em; overflow-wrap: anywhere; }
.site-hero__card small { font-size: 12.5px; color: var(--soft); }
.site-hero__card em { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: 700 13px/1 var(--font-label); font-style: normal; letter-spacing: .06em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.site-hero__card em .slot { width: 30px; height: 30px; }
.site-hero__card em .slot .emblem { --emblem: 20px; }
@media (max-width: 1439px) { .site-hero__id small { display: none; } }
/* The account's pages read as a game list under the hero, like the decks: no stock glyphs, a diamond marks the choice. */
.site-hero__panel :is(a, button) > .icon { display: none; }
.site-hero__panel :is(a, button) { position: relative; padding-left: 22px; }
.site-hero__panel :is(a, button)::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; translate: 0 -50%; rotate: 45deg; background: var(--gold-hi); opacity: 0; transition: opacity var(--dur-1); }
.site-hero__panel :is(a, button):is(:hover, :focus-visible)::before { opacity: 1; }
