/* Mu-Reimagined web design tokens — the final kit, "Relic Wings" (her pick 2026-11-26: "it will be a good starter").
   The look: a dark hall lit by one white beam; forged steel with gold only as hairline edges, like the wings of the
   main picture (art/palette-r11.py on opt04_wings_s2042: black 86 %, steel 8.8 % #8c8b88, white light 3.2 % #eaebec,
   gold 1.35 % on the feather edges). States are glowing gems, after the online indicator she picked out.
   A name kept from round 1 whose meaning changed says so.
   Contrast = WCAG 2.x ratio on the panel #0f0f11 unless said otherwise.
   The server name is NOT here: it is the site's one name setting (design.md "The name"). One dark look, like the game. */

:root {
  color-scheme: dark;

  /* Surfaces: black stone */
  --c-bg: #070708;            /* the hall's floor: the page */
  --c-well: #0a0a0c;          /* recessed: inputs, sunken wells, table body */
  --c-panel: #0f0f11;         /* stone plates, cards */

  /* Steel (the names say "iron": the round-1 names, kept) */
  --c-iron-dark: #111113;     /* a dark plate's face */
  --c-iron: #2e2e32;          /* a plate's visible edge */
  --c-iron-edge: #5a5a5f;     /* the bevel catch */
  --c-line: #232326;          /* a recessed well's edge */
  --c-hairline: #1c1c1f;      /* dividers */
  --c-control-edge: #6e6e72;  /* inputs and checks: 3.8:1 on the panel (WCAG 1.4.11 asks 3:1) */

  /* Text */
  --c-text: #dcdbd6;          /* 13.8:1 */
  --c-text-2: #b0afa9;        /* 8.7:1 */
  --c-text-3: #97968f;        /* 6.5:1 */
  --c-text-warm: #ecebe6;     /* EMPHASIS text: names, titles, sums (was gold; the look keeps gold for edges) 16.0:1 */
  --c-text-disabled: #4a4a4e; /* inactive controls only (2.2:1; WCAG exempts them) */
  --c-on-light: #0c0c0e;      /* label on the lit steel plate: 14.9:1 on #e2e1dc, 9.6:1 on its darkest band #b7b6b1 */

  /* Accents: steel = chrome; light = the ONE primary action (the lit plate) and the focus; gold = hairline edges, the
     champion, the rare emphasis */
  --c-light: #eef0f2;         /* the beam */
  --c-steel: #8c8b88;         /* measured from the picture: borders and icons (5.6:1) */
  --c-steel-hi: #c4c3be;      /* 10.9:1 */
  --c-link: #ecebe6;          /* links: bright steel with a steel underline that lights up */
  --c-gold: #c49a3c;          /* gold edge, 7.3:1 */
  --c-gold-hi: #e2c16d;       /* 11.0:1 */
  --c-gold-edge: #c9a24a;     /* the 1 px rim of steel things */

  /* Gems (states): the online indicator's diamond */
  --c-gem-ok: #8eb06b;
  --c-gem-live: #eef0f2;
  --c-gem-boss: #ff5a36;

  /* Semantic (state, never decoration) */
  --c-success: #8eb06b;       /* 7.8:1 */
  --c-warning: #c99a3e;       /* 7.5:1 */
  --c-error: #ff7a7a;         /* 7.6:1 */
  --c-info: #7fa6d9;          /* 7.6:1 */

  /* Item quality and the game's tooltip lines: the game's own values (MuMain modern tooltip.rcss:47-63, the
     TEXT_COLOR_* of _define.h:220-233; tokens.ini item-excellent / item-ancient / item-ancient-band). Semantic, kept
     exactly as the game draws them; gray is the game's #666666 (3.5:1 on the tooltip's #070708, as in the game).
     Contrast measured by C:\MU-S6\work\site-design\contrast-relic.py. */
  --c-item-excellent: #1aff80;
  --c-item-ancient: #00ff00;
  --c-item-ancient-band: rgb(60, 60, 200);
  --c-tip-white: #ffffff;
  --c-tip-blue: #80b3ff;
  --c-tip-red: #ff331a;
  --c-tip-yellow: #ffcc1a;
  --c-tip-green: #1aff80;
  --c-tip-purple: #ff1aff;
  --c-tip-gray: #666666;
  --c-tip-redpurple: #cc80cc;
  --c-tip-violet: #b366ff;
  --c-tip-enchanted: #5adcff;
  --c-tip-hl-darkred: rgb(160, 0, 0);

  /* Type: Gloock = the monuments (the name, titles, big numbers; they get the forged steel of the filters);
     Syncopate = engraved labels (wide capitals); Spectral = the reading text and the player's names */
  --font-display: "Gloock", "Bodoni Moda", Didot, Georgia, serif;
  --font-label: "Syncopate", "Michroma", "Arial Black", Arial, sans-serif;
  --font-body: "Spectral", Georgia, "Times New Roman", serif;

  /* Type scale: fluid from 360 px to 1440 px wide, no text under 13 px except the engraved labels (10 px wide caps,
     tracked 0.3 em, read like 13 px) */
  --fs-label: 0.625rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.3rem, 1.18rem + 0.5vw, 1.65rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  --fs-3xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);
  --fs-hero: clamp(5rem, 3.2rem + 6.4vw, 8.4rem); /* the name's first word ("MU"), the monument */
  --lh-title: 1.12;
  --lh-body: 1.6;
  --ls-label: 0.32em;
  --ls-display: 0.02em;

  /* Space: 4 px steps */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Corners: sharp. Plates are cut, not rounded: --cut is the 45° corner cut of buttons, plates, chips */
  --r-1: 0px;
  --cut: 10px;
  --cut-sm: 6px;

  /* Depth: a stone plate lit from above = a bright top edge, a dark lower edge, a soft drop */
  --sh-plate: inset 0 1px 0 rgba(238, 240, 242, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  --sh-lift: inset 0 1px 0 rgba(238, 240, 242, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 26px 50px -20px rgba(0, 0, 0, 0.95);
  --sh-well: inset 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  --sh-gem-live: 0 0 10px rgba(238, 240, 242, 0.85);
  --focus-ring: 0 0 0 2px var(--c-bg), 0 0 0 3px var(--c-light), 0 0 14px 2px rgba(238, 240, 242, 0.35);

  /* Gradients */
  --g-toplight: radial-gradient(120% 70% at 50% 0%, rgba(238, 240, 242, 0.07), transparent 62%); /* the beam on a plate */
  --g-button: linear-gradient(to bottom, #1f1f22, #0c0c0e);            /* a dark steel plate's face */
  --g-button-edge: linear-gradient(to bottom, #9b9a96, #2a2a2d);       /* its 1 px edge, lit from above */
  --g-lit: linear-gradient(to bottom, #ffffff 0%, #e2e1dc 44%, #b7b6b1 56%, #d4d3ce 100%); /* the lit plate */
  --g-lit-edge: linear-gradient(to bottom, #e6c876, #8a6a24);          /* its gold hairline */
  --g-title-band: linear-gradient(to bottom, rgba(40, 40, 44, 0.85), rgba(18, 18, 20, 0.85));
  --g-seam: linear-gradient(90deg, transparent, rgba(140, 139, 136, 0.6) 18%, rgba(238, 240, 242, 0.95) 50%, rgba(140, 139, 136, 0.6) 82%, transparent); /* the beam line (was the ember seam) */

  /* Ornaments: steel blades with a gold hairline edge, lit from above (light top, dark lower half) */
  --orn-corner-tl: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f1f1ee'/><stop offset='.5' stop-color='%238c8b88'/><stop offset='.53' stop-color='%23353538'/><stop offset='1' stop-color='%2377777a'/></linearGradient></defs><g fill='url(%23s)' stroke='%23c9a24a' stroke-width='.6'><path d='M10 5 Q31 1.4 71 5 Q31 8.6 10 5 Z'/><path d='M5 10 Q1.4 31 5 71 Q8.6 31 5 10 Z'/></g><path d='M5 .5 L9.5 5 L5 9.5 L.5 5 Z' fill='%23eef0f2' stroke='%23c9a24a' stroke-width='.6'/></svg>");
  --orn-corner-tr: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f1f1ee'/><stop offset='.5' stop-color='%238c8b88'/><stop offset='.53' stop-color='%23353538'/><stop offset='1' stop-color='%2377777a'/></linearGradient></defs><g transform='translate(72 0) scale(-1 1)'><g fill='url(%23s)' stroke='%23c9a24a' stroke-width='.6'><path d='M10 5 Q31 1.4 71 5 Q31 8.6 10 5 Z'/><path d='M5 10 Q1.4 31 5 71 Q8.6 31 5 10 Z'/></g><path d='M5 .5 L9.5 5 L5 9.5 L.5 5 Z' fill='%23eef0f2' stroke='%23c9a24a' stroke-width='.6'/></g></svg>");
  --orn-corner-bl: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f1f1ee'/><stop offset='.5' stop-color='%238c8b88'/><stop offset='.53' stop-color='%23353538'/><stop offset='1' stop-color='%2377777a'/></linearGradient></defs><g transform='translate(0 72) scale(1 -1)'><g fill='url(%23s)' stroke='%23c9a24a' stroke-width='.6'><path d='M10 5 Q31 1.4 71 5 Q31 8.6 10 5 Z'/><path d='M5 10 Q1.4 31 5 71 Q8.6 31 5 10 Z'/></g><path d='M5 .5 L9.5 5 L5 9.5 L.5 5 Z' fill='%23eef0f2' stroke='%23c9a24a' stroke-width='.6'/></g></svg>");
  --orn-corner-br: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f1f1ee'/><stop offset='.5' stop-color='%238c8b88'/><stop offset='.53' stop-color='%23353538'/><stop offset='1' stop-color='%2377777a'/></linearGradient></defs><g transform='translate(72 72) scale(-1 -1)'><g fill='url(%23s)' stroke='%23c9a24a' stroke-width='.6'><path d='M10 5 Q31 1.4 71 5 Q31 8.6 10 5 Z'/><path d='M5 10 Q1.4 31 5 71 Q8.6 31 5 10 Z'/></g><path d='M5 .5 L9.5 5 L5 9.5 L.5 5 Z' fill='%23eef0f2' stroke='%23c9a24a' stroke-width='.6'/></g></svg>");
  --orn-blades: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='16' viewBox='0 0 150 16'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f4f4f1'/><stop offset='.48' stop-color='%239a9995'/><stop offset='.52' stop-color='%23353538'/><stop offset='1' stop-color='%236f6f72'/></linearGradient></defs><g fill='url(%23s)' stroke='%23c9a24a' stroke-width='.5'><path d='M66 8 Q38 3.8 1 8 Q38 12.2 66 8 Z'/><path d='M84 8 Q112 3.8 149 8 Q112 12.2 84 8 Z'/></g><path d='M75 2.6 L80.4 8 L75 13.4 L69.6 8 Z' fill='%23eef0f2' stroke='%23c9a24a' stroke-width='.6'/></svg>");
  --orn-blade-l: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='14' viewBox='0 0 64 14'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f4f4f1'/><stop offset='.48' stop-color='%239a9995'/><stop offset='.52' stop-color='%23353538'/><stop offset='1' stop-color='%236f6f72'/></linearGradient></defs><path d='M62 7 Q36 3.4 1 7 Q36 10.6 62 7 Z' fill='url(%23s)' stroke='%23c9a24a' stroke-width='.5'/></svg>");
  --orn-blade-r: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='14' viewBox='0 0 64 14'><defs><linearGradient id='s' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f4f4f1'/><stop offset='.48' stop-color='%239a9995'/><stop offset='.52' stop-color='%23353538'/><stop offset='1' stop-color='%236f6f72'/></linearGradient></defs><path d='M2 7 Q28 3.4 63 7 Q28 10.6 2 7 Z' fill='url(%23s)' stroke='%23c9a24a' stroke-width='.5'/></svg>");

  /* Motion: transform and opacity only */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 120ms;   /* press */
  --dur-2: 180ms;   /* hover, focus */
  --dur-3: 420ms;   /* reveal, open */
  --dur-4: 900ms;   /* count-up, the beam line drawing in */
  --dur-seam: 7s;   /* the beam line's flow loop */
  --dur-breathe: 8s; /* the beam and the steel's highlight */

  /* Layout */
  --container: 1200px;
  --header-h: 68px;
  --strip-h: 40px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-4: 0ms;
  }
}
