/* ============================================================
   WIZARD ACADEMY — ARCANE NAVIGATION SHELL
   One design system for every menu on every page: the carved
   obsidian rail, the rune drawer, the top bar and the footer.
   Plain CSS on purpose — the 15,000 generated landing pages do
   not all load Tailwind, and the shell has to look identical on
   every one of them.
   ============================================================ */

:root {
  --wan-void: #05060a;
  --wan-obsidian: #0b0e15;
  --wan-stone: #12161f;
  --wan-stone-2: #1a1f2b;
  --wan-overlay: #212836;
  --wan-gold: #f5c451;
  --wan-gold-soft: #ffe6a3;
  --wan-gold-deep: #a9761f;
  --wan-cyan: #35e6ff;
  --wan-violet: #a855f7;
  --wan-magenta: #ff4d9d;
  --wan-ember: #ff7a35;
  --wan-success: #34d399;
  --wan-warning: #fbbf24;
  --wan-danger: #fb5872;
  --wan-info: #4aa8ff;
  --wan-parchment: #f4ebd6;
  --wan-ash: #98a3b8;
  --wan-ash-dim: #6b7689;
  --wan-scrim: rgba(3, 4, 8, .78);
  --wan-edge: rgba(245, 196, 81, .22);
  --wan-edge-cool: rgba(154, 163, 184, .16);
  /* 60px and 56px are load-bearing: site-chrome.js reserves exactly one header
     height on <body> and one rail width on the content box, on both sides of
     the mount. Widening either here re-opens the CLS 1.51 regression. */
  --wan-rail-w: 60px;
  --wan-bar-h: 56px;
  --wan-font-ui: 'Outfit', 'Plus Jakarta Sans', 'Tajawal', system-ui, sans-serif;
  --wan-font-rune: 'Cinzel', 'Cairo', Georgia, serif;
  --wan-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wan-ease: cubic-bezier(.16, 1, .3, 1);
}

html[lang="ar"] {
  --wan-font-ui: 'Tajawal', 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --wan-font-rune: 'Cairo', 'Cinzel', Georgia, serif;
}

/* ---------- carved surfaces ---------- */

.wan-stone {
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(168, 85, 247, .10), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(53, 230, 255, .07), transparent 65%),
    linear-gradient(168deg, var(--wan-stone-2) 0%, var(--wan-obsidian) 58%, var(--wan-void) 100%);
}

/* Gold hairline that reads as inlaid metal rather than a flat border. */
.wan-gilded {
  border: 1px solid var(--wan-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 163, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .55),
    0 10px 34px rgba(0, 0, 0, .55);
}

.wan-rune-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    transparent, var(--wan-gold-deep) 12%, var(--wan-gold) 50%, var(--wan-gold-deep) 88%, transparent);
  opacity: .5;
}

/* ---------- utilities ---------- */

.wan-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wan-burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5px; }
.wan-burger i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--wan-gold-deep), var(--wan-gold-soft), var(--wan-gold-deep));
  transition: width .22s var(--wan-ease);
}
.wan-burger i:nth-child(1) { width: 17px; }
.wan-burger i:nth-child(2) { width: 11px; }
.wan-burger i:nth-child(3) { width: 17px; }
.wan-icon-btn--burger:hover .wan-burger i:nth-child(2),
.wan-icon-btn--burger[aria-expanded="true"] .wan-burger i:nth-child(2) { width: 17px; }
.wan-icon-btn--burger[aria-expanded="true"] {
  color: var(--wan-gold-soft);
  border-color: rgba(245, 196, 81, .5);
  box-shadow: 0 0 16px rgba(245, 196, 81, .22);
}

/* The theme toggle ships two icons and shows one. obsidian-theme.css owns
   this on the homepage; these are the same defaults for any other page that
   happens to load theme-switcher.js without that sheet. */
.site-chrome-header .theme-icon-obsidian, .clean-rail .theme-icon-obsidian { display: none; }
.site-chrome-header .theme-icon-cyber, .clean-rail .theme-icon-cyber { display: inline; }
html[data-theme="obsidian"] .site-chrome-header .theme-icon-obsidian,
html[data-theme="obsidian"] .clean-rail .theme-icon-obsidian { display: inline; }
html[data-theme="obsidian"] .site-chrome-header .theme-icon-cyber,
html[data-theme="obsidian"] .clean-rail .theme-icon-cyber { display: none; }

/* Reserve the scrollbar gutter from first paint so locking the background
   while the drawer is open cannot shift the page sideways. */
html.wan-pre { scrollbar-gutter: stable; }
body.wan-drawer-open { overflow: hidden; }

/* ---------- scrollbars, drawn in the shell's own metal ---------- */

.wan-scroll { scrollbar-width: thin; scrollbar-color: var(--wan-gold-deep) rgba(255, 255, 255, .04); }
.wan-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.wan-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .035);
  border-left: 1px solid rgba(0, 0, 0, .5);
}
.wan-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--wan-gold) 0%, var(--wan-gold-deep) 100%);
  border-radius: 99px;
  border: 2px solid var(--wan-obsidian);
}
.wan-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--wan-gold-soft) 0%, var(--wan-gold) 100%);
}

/* ============================================================
   RAIL — the obsidian dock
   ============================================================ */

.clean-rail {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  width: var(--wan-rail-w);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px 18px;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, rgba(18, 22, 31, .97) 0%, rgba(8, 10, 16, .97) 100%);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 8px 0 40px rgba(0, 0, 0, .7);
}
.clean-rail::-webkit-scrollbar { display: none; }

/* The inlaid gold seam down the inner edge, with a slow travelling glint. */
.clean-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%, var(--wan-gold-deep) 8%, var(--wan-gold) 22%,
    rgba(53, 230, 255, .55) 48%, var(--wan-gold) 74%, var(--wan-gold-deep) 92%, transparent 100%);
  opacity: .55;
  pointer-events: none;
}
html[dir="ltr"] .clean-rail { left: 0; right: auto; }
html[dir="ltr"] .clean-rail::after { right: 0; }
html[dir="rtl"] .clean-rail { right: 0; left: auto; }
html[dir="rtl"] .clean-rail::after { left: 0; }

/* The dock starts below the top bar in shell modes, but index.html keeps its
   own sticky in-flow header and its rail has always run the full height. */
html.wan-reserve .clean-rail { padding-top: calc(var(--wan-bar-h) + 10px); }

/* ---------- content reservation ----------
   html.wan-reserve is written by site-chrome.js while <head> is still parsing,
   before <body> exists, and is never removed. The header height and the rail
   width are therefore reserved from the very first layout: there is no
   "before" state left to shift from. An earlier build wrote the reservation on
   a body class at mount time and /all-games.html scored CLS 1.51 while <main>
   ran 56 -> 112 -> 56 across the swap.

   The rail width is a transparent body border, not a margin on <main>. A
   margin pins a `max-width; margin:0 auto` container to the rail and dumps the
   whole leftover space into the far auto margin, so wide screens read badly
   off-centre. A border shrinks the body content box instead, and every
   existing centred container keeps centring in the space the rail leaves.
   Inner padding is untouched because the border sits outside it. */

html.wan-reserve body { padding-top: var(--wan-bar-h) !important; overflow-x: clip; }

/* Contain only the all-games corner glows, not the page's useful content. */
.wa-ag-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Generated landing pages ship their own sticky header.site. It is in flow,
   so leaving it visible under the reservation would stack 60px + 56px before
   the mount and then collapse to 56px — the exact shift the reservation is
   meant to prevent. wan-reserve is on <html> before <body> parses, so the
   legacy header never paints at all. site-chrome.js drops the class again if
   its mount throws, which brings the native header back. */
html.wan-reserve header.site { display: none !important; }

@media (min-width: 1024px) {
  html.wan-reserve body { border-left: var(--wan-rail-w) solid transparent !important; }
  html.wan-reserve[dir="rtl"] body {
    border-left: 0 !important;
    border-right: var(--wan-rail-w) solid transparent !important;
  }
}

.rail-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(245, 196, 81, .14);
}
.rail-group:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

.rail-btn {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  cursor: pointer;
  color: var(--wan-parchment);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .45);
  transition: transform .22s var(--wan-ease), border-color .22s ease, box-shadow .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.rail-btn img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .6)); }
.rail-btn .wan-glyph { font-size: 19px; line-height: 1; filter: drop-shadow(0 0 7px currentColor); }

.rail-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: linear-gradient(150deg, var(--wan-hue, var(--wan-gold)), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.rail-btn:hover, .rail-btn:focus-visible {
  transform: translateY(-2px);
  border-color: transparent;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 32%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .12);
  outline: none;
}
.rail-btn:hover::before, .rail-btn:focus-visible::before { opacity: 1; }
.rail-btn:active { transform: translateY(0) scale(.94); }

.rail-btn[aria-current="page"], .rail-btn.is-active {
  background: linear-gradient(160deg, rgba(245, 196, 81, .22), rgba(245, 196, 81, .05));
  border-color: rgba(245, 196, 81, .5);
}
.rail-btn[aria-current="page"]::after, .rail-btn.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 20px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--wan-gold-soft), var(--wan-gold-deep));
  box-shadow: 0 0 10px var(--wan-gold);
}
html[dir="ltr"] .rail-btn[aria-current="page"]::after,
html[dir="ltr"] .rail-btn.is-active::after { left: -7px; }
html[dir="rtl"] .rail-btn[aria-current="page"]::after,
html[dir="rtl"] .rail-btn.is-active::after { right: -7px; }

.rail-tooltip {
  position: absolute;
  top: 50%;
  z-index: 62;
  padding: 6px 12px;
  transform: translateY(-50%) scale(.92);
  transform-origin: center;
  white-space: nowrap;
  font-family: var(--wan-font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--wan-gold-soft);
  background: linear-gradient(160deg, #1c2130, #0a0d14);
  border: 1px solid var(--wan-edge);
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 230, 163, .12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s var(--wan-ease);
}
html[dir="ltr"] .rail-tooltip { left: calc(100% + 12px); }
html[dir="rtl"] .rail-tooltip { right: calc(100% + 12px); }
.rail-btn:hover .rail-tooltip, .rail-btn:focus-visible .rail-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.rail-burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5px; }
.rail-burger i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--wan-gold-deep), var(--wan-gold-soft), var(--wan-gold-deep));
  transition: width .22s var(--wan-ease);
}
.rail-burger i:nth-child(1) { width: 17px; }
.rail-burger i:nth-child(2) { width: 11px; }
.rail-burger i:nth-child(3) { width: 17px; }
.rail-btn:hover .rail-burger i:nth-child(2) { width: 17px; }

@media (max-width: 1023px) {
  aside.clean-rail, #side-rail, .clean-rail { display: none !important; }
}

/* ============================================================
   TOP BAR
   ============================================================ */

.site-chrome-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 46;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  height: var(--wan-bar-h);
  min-height: var(--wan-bar-h) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  font-family: var(--wan-font-ui);
  background:
    linear-gradient(180deg, rgba(20, 25, 35, .96) 0%, rgba(8, 10, 16, .94) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--wan-edge);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .6), inset 0 -1px 0 rgba(0, 0, 0, .6);
}
.site-chrome-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(53, 230, 255, .5) 22%, var(--wan-gold) 50%, rgba(168, 85, 247, .5) 78%, transparent);
  opacity: .7;
  pointer-events: none;
}
@media (min-width: 640px) { .site-chrome-header { padding: 0 20px; } }
@media (min-width: 1024px) {
  html.wan-reserve[dir="ltr"] .site-chrome-header { padding-left: calc(var(--wan-rail-w) + 16px); }
  html.wan-reserve[dir="rtl"] .site-chrome-header { padding-right: calc(var(--wan-rail-w) + 16px); }
}

.wan-bar-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wan-bar-side:last-child { flex-shrink: 0; }

.wan-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.wan-crest {
  position: relative;
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(155deg, #2a2113, #0d0f16 70%);
  border: 1px solid rgba(245, 196, 81, .45);
  box-shadow: 0 0 16px rgba(245, 196, 81, .22), inset 0 1px 0 rgba(255, 230, 163, .25);
}
.wan-crest img { width: 26px; height: 26px; object-fit: contain; }
.wan-crest span { font-size: 17px; line-height: 1; filter: drop-shadow(0 0 6px rgba(245, 196, 81, .7)); }
.wan-brand-copy { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.wan-brand-name {
  font-family: var(--wan-font-rune);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--wan-parchment);
  text-shadow: 0 0 14px rgba(245, 196, 81, .3);
  white-space: nowrap;
}
.wan-brand-name b { color: var(--wan-gold); font-weight: 700; }
.wan-brand-sub {
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wan-ash-dim);
  white-space: nowrap;
}
@media (max-width: 479px) { .wan-brand-sub { display: none; } }
@media (max-width: 359px) { .wan-brand-copy { display: none; } }

.wan-topnav { display: none; align-items: center; gap: 2px; }
@media (min-width: 900px) { .wan-topnav { display: flex; } }
.wan-topnav a {
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--wan-ash);
  border: 1px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.wan-topnav a:hover { color: var(--wan-parchment); background: rgba(255, 255, 255, .06); border-color: var(--wan-edge-cool); }
.wan-topnav a[aria-current="page"] {
  color: var(--wan-gold-soft);
  background: linear-gradient(180deg, rgba(245, 196, 81, .16), rgba(245, 196, 81, .04));
  border-color: rgba(245, 196, 81, .38);
}
.wan-topnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 3px;
  height: 1.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--wan-gold), transparent);
}

.wan-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  box-sizing: border-box;
  border-radius: 11px;
  cursor: pointer;
  font-family: var(--wan-font-ui);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--wan-parchment);
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border: 1px solid var(--wan-edge-cool);
  transition: transform .18s var(--wan-ease), border-color .18s ease, box-shadow .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wan-icon-btn:hover {
  transform: translateY(-1px);
  color: var(--wan-gold-soft);
  border-color: rgba(245, 196, 81, .45);
  box-shadow: 0 5px 18px rgba(245, 196, 81, .18);
}
.wan-icon-btn:active { transform: scale(.95); }
.wan-icon-btn:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }
.wan-icon-btn .wan-glyph { font-size: 15px; line-height: 1; }
.wan-icon-btn--gold {
  color: #1a1206;
  background: linear-gradient(160deg, var(--wan-gold-soft), var(--wan-gold) 45%, var(--wan-gold-deep));
  border-color: rgba(255, 230, 163, .6);
  box-shadow: 0 4px 16px rgba(245, 196, 81, .3);
}
.wan-icon-btn--gold:hover { color: #120c02; box-shadow: 0 6px 24px rgba(245, 196, 81, .45); }
/* The burger stays at every width. The rail carries tools and halls but no
   genre list, so hiding this on desktop would leave the 18 genres unreachable. */
.wan-icon-btn--burger { display: inline-flex; }
@media (max-width: 639px) {
  .site-chrome-header { padding: 0 10px; gap: 6px; }
  .wan-icon-btn { padding: 0 9px; min-width: 36px; height: 36px; }
  .wan-hide-sm { display: none !important; }
  .wan-crest { width: 30px; height: 30px; }
  .wan-brand-name { font-size: 12.5px; letter-spacing: .04em; }
}

.wan-lang {
  height: 38px;
  box-sizing: border-box;
  padding: 0 8px;
  border-radius: 11px;
  cursor: pointer;
  font-family: var(--wan-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--wan-gold-soft);
  background: linear-gradient(160deg, #1b2130, #0a0d14);
  border: 1px solid var(--wan-edge);
}
.wan-lang:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }
.wan-lang option { background: #0b0e15; color: var(--wan-parchment); }

/* ============================================================
   DRAWER — the rune-inlaid menu
   ============================================================ */

.site-chrome-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 54;
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(168, 85, 247, .16), transparent 70%),
    var(--wan-scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.site-chrome-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.site-chrome-drawer {
  position: fixed;
  top: 0; bottom: 0;
  z-index: 55;
  box-sizing: border-box;
  width: 25rem;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  font-family: var(--wan-font-ui);
  color: var(--wan-parchment);
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(168, 85, 247, .14), transparent 62%),
    radial-gradient(90% 40% at 0% 100%, rgba(53, 230, 255, .09), transparent 70%),
    linear-gradient(170deg, #161b26 0%, #0a0d14 62%, #05060a 100%);
  border: 1px solid var(--wan-edge);
  box-shadow: 0 30px 70px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 230, 163, .12);
  transition: transform .34s var(--wan-ease), visibility .34s;
  visibility: hidden;
}
html[dir="ltr"] .site-chrome-drawer { left: 0; transform: translateX(-102%); border-right-color: rgba(245, 196, 81, .34); }
html[dir="rtl"] .site-chrome-drawer { right: 0; transform: translateX(102%); border-left-color: rgba(245, 196, 81, .34); }
.site-chrome-drawer.open { transform: translateX(0) !important; visibility: visible; transition-delay: 0s; }
/* The rAF focus target must not inherit hidden visibility from the opening
   transition (including reduced-motion transitions on its ancestors). */
.site-chrome-drawer.open .wan-dclose { visibility: visible; }

/* Volumetric fog drifting inside the panel — decorative, never interactive. */
.site-chrome-drawer::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 26% at 30% 22%, rgba(53, 230, 255, .10), transparent 70%),
    radial-gradient(34% 22% at 74% 62%, rgba(168, 85, 247, .12), transparent 70%),
    radial-gradient(30% 20% at 46% 88%, rgba(245, 196, 81, .07), transparent 70%);
  filter: blur(14px);
  animation: wanFog 26s ease-in-out infinite alternate;
}
@keyframes wanFog {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.03); }
}
.site-chrome-drawer > * { position: relative; z-index: 1; }

.wan-dhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(245, 196, 81, .09), transparent);
  border-bottom: 1px solid var(--wan-edge);
}
.wan-dhead-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wan-dhead h2 {
  margin: 0;
  font-family: var(--wan-font-rune);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--wan-gold-soft);
  text-shadow: 0 0 16px rgba(245, 196, 81, .35);
}
.wan-dhead p {
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--wan-ash-dim);
}
.wan-dclose {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  cursor: pointer;
  font-size: 15px;
  color: var(--wan-ash);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--wan-edge-cool);
  transition: color .18s, border-color .18s, transform .18s var(--wan-ease), background .18s;
}
.wan-dclose:hover { color: var(--wan-danger); border-color: rgba(251, 88, 114, .5); background: rgba(251, 88, 114, .1); transform: rotate(90deg); }
.wan-dclose:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }

.wan-dbody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wan-dsec { display: flex; flex-direction: column; gap: 8px; }
.wan-dsec-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--wan-font-rune);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wan-gold);
}
.wan-dsec-label::after {
  content: "";
  order: 1;
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 196, 81, .45), transparent);
}
html[dir="rtl"] .wan-dsec-label::after { background: linear-gradient(270deg, rgba(245, 196, 81, .45), transparent); }
.wan-dsec-label .wan-rune { font-size: 12px; opacity: .85; letter-spacing: 0; }
/* Sits past the growing hairline: "❖ GAME GENRES ─────── 18 genres". */
.wan-dsec-note {
  order: 2;
  flex: 0 0 auto;
  font-family: var(--wan-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--wan-ash-dim);
}

/* Crystal tool tiles */
.wan-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.wan-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 70px;
  padding: 9px 4px;
  box-sizing: border-box;
  border-radius: 13px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: var(--wan-font-ui);
  background: linear-gradient(165deg, color-mix(in srgb, var(--wan-hue) 16%, transparent), rgba(255, 255, 255, .02));
  border: 1px solid color-mix(in srgb, var(--wan-hue) 34%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .2s var(--wan-ease), box-shadow .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wan-tool img { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.wan-tool .wan-glyph { font-size: 23px; line-height: 1; filter: drop-shadow(0 0 9px var(--wan-hue)); }
.wan-tool span:last-child {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: color-mix(in srgb, var(--wan-hue) 72%, var(--wan-parchment));
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wan-tool:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wan-hue) 70%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--wan-hue) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.wan-tool:active { transform: translateY(0) scale(.96); }
.wan-tool:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }

/* Primary destinations */
.wan-dest { display: flex; flex-direction: column; gap: 6px; }
.wan-dest-row {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: 13px;
  cursor: pointer;
  text-decoration: none;
  text-align: start;
  font-family: var(--wan-font-ui);
  color: var(--wan-parchment);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--wan-edge-cool);
  transition: transform .18s var(--wan-ease), border-color .18s ease, background .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wan-dest-row:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 14%, transparent), rgba(255, 255, 255, .02));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 20%, transparent);
}
html[dir="rtl"] .wan-dest-row:hover { transform: translateX(-3px); }
.wan-dest-row:active { transform: scale(.985); }
.wan-dest-row:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }
.wan-dest-row[aria-current="page"] {
  border-color: rgba(245, 196, 81, .55);
  background: linear-gradient(160deg, rgba(245, 196, 81, .18), rgba(245, 196, 81, .04));
}
.wan-dest-row--hero {
  color: #1a1206;
  background: linear-gradient(140deg, var(--wan-gold-soft) 0%, var(--wan-gold) 42%, var(--wan-gold-deep) 100%);
  border-color: rgba(255, 230, 163, .65);
  box-shadow: 0 6px 22px rgba(245, 196, 81, .28);
}
.wan-dest-row--hero:hover {
  background: linear-gradient(140deg, #fff3d0 0%, var(--wan-gold-soft) 42%, var(--wan-gold) 100%);
  box-shadow: 0 9px 30px rgba(245, 196, 81, .42);
}
.wan-dest-row--hero .wan-dest-sub { color: rgba(26, 18, 6, .72); }
.wan-dest-row--hero .wan-chev { color: rgba(26, 18, 6, .6); }

.wan-dest-ico {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1;
  background: color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 16%, rgba(0, 0, 0, .3));
  border: 1px solid color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 32%, transparent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--wan-hue, var(--wan-gold)) 40%, transparent));
}
.wan-dest-row--hero .wan-dest-ico { background: rgba(0, 0, 0, .16); border-color: rgba(0, 0, 0, .2); filter: none; }
.wan-dest-ico img { width: 22px; height: 22px; object-fit: contain; }
.wan-dest-row--hero .wan-dest-ico img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.wan-dest-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.wan-dest-name { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.25; }
.wan-dest-sub { font-size: 9.5px; color: var(--wan-ash-dim); line-height: 1.3; }
.wan-chev { flex-shrink: 0; font-size: 13px; color: var(--wan-ash-dim); transition: transform .18s var(--wan-ease), color .18s; }
.wan-dest-row:hover .wan-chev { color: var(--wan-hue, var(--wan-gold)); transform: translateX(3px); }
html[dir="rtl"] .wan-chev { transform: scaleX(-1); }
html[dir="rtl"] .wan-dest-row:hover .wan-chev { transform: scaleX(-1) translateX(3px); }

/* Category grid */
.wan-catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 359px) { .wan-catgrid { grid-template-columns: minmax(0, 1fr); } }
.wan-cat {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 9px;
  box-sizing: border-box;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-align: start;
  font-family: var(--wan-font-ui);
  color: var(--wan-parchment);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .18s var(--wan-ease), border-color .18s ease, box-shadow .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.wan-cat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wan-hue) 62%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--wan-hue) 16%, transparent), rgba(255, 255, 255, .02));
  box-shadow: 0 7px 20px color-mix(in srgb, var(--wan-hue) 24%, transparent);
}
.wan-cat:active { transform: scale(.97); }
.wan-cat:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }
.wan-cat[aria-current="page"] {
  border-color: color-mix(in srgb, var(--wan-hue) 75%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--wan-hue) 22%, transparent), rgba(255, 255, 255, .03));
}
.wan-cat-glyph {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1;
  background: color-mix(in srgb, var(--wan-hue) 15%, rgba(0, 0, 0, .35));
  border: 1px solid color-mix(in srgb, var(--wan-hue) 30%, transparent);
}
.wan-cat-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wan-cat-dot {
  width: 5px; height: 5px;
  flex-shrink: 0;
  border-radius: 99px;
  background: var(--wan-hue);
  box-shadow: 0 0 8px var(--wan-hue);
  opacity: .55;
  transition: opacity .18s;
}
.wan-cat:hover .wan-cat-dot, .wan-cat[aria-current="page"] .wan-cat-dot { opacity: 1; }

.wan-dfoot {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--wan-edge);
  background: linear-gradient(0deg, rgba(245, 196, 81, .06), transparent);
}
.wan-dfoot a {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--wan-ash);
  text-decoration: none;
  padding: 5px 2px;
  transition: color .16s;
}
.wan-dfoot a:hover { color: var(--wan-gold-soft); }

/* Compact-mode entry points: the rune tile lives inside the player's own
   toolbars instead of floating over the stage. Both are always reachable —
   body.wa-player-active only strips backdrop-filter from these bars, never
   display — so the menu survives every player state. */
.wan-mb-tile { color: var(--wan-gold-soft); }
.wan-mb-tile .wa-mb-ico { filter: drop-shadow(0 0 7px rgba(245, 196, 81, .65)); }

/* Raised to 0,3,0 so wa-ui.css's .wa-ctrl-btn:hover cannot win the tie. */
.wa-ctrl-btn.wan-ctrl-menu {
  color: var(--wan-gold-soft);
  padding: 8px 12px;
  background: linear-gradient(160deg, rgba(38, 32, 20, .9), rgba(12, 14, 20, .9));
  border-color: rgba(245, 196, 81, .34);
  box-shadow: inset 0 1px 0 rgba(255, 230, 163, .12);
}
.wa-ctrl-btn.wan-ctrl-menu > span { font-size: 13px; line-height: 1; text-shadow: 0 0 10px rgba(245, 196, 81, .6); }
.wa-ctrl-btn.wan-ctrl-menu:hover,
.wa-ctrl-btn.wan-ctrl-menu[aria-expanded="true"] {
  color: var(--wan-void);
  background: linear-gradient(140deg, var(--wan-gold-soft), var(--wan-gold));
  border-color: var(--wan-gold);
  box-shadow: 0 0 18px rgba(245, 196, 81, .3);
}
.wa-ctrl-btn.wan-ctrl-menu:hover > span,
.wa-ctrl-btn.wan-ctrl-menu[aria-expanded="true"] > span { text-shadow: none; }
.wa-ctrl-btn.wan-ctrl-menu:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.wan-crumbs, nav.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--wan-font-ui);
  font-size: 11.5px;
  color: var(--wan-ash-dim);
}
.wan-crumbs a, nav.crumbs a {
  color: var(--wan-ash);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: color .16s, border-color .16s, background .16s;
}
.wan-crumbs a:hover, nav.crumbs a:hover {
  color: var(--wan-gold-soft);
  background: rgba(245, 196, 81, .09);
  border-color: var(--wan-edge);
}
.wan-crumbs span[aria-current], nav.crumbs > span {
  color: var(--wan-gold);
  font-weight: 600;
  padding: 3px 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wan-crumbs .wan-sep, nav.crumbs .wan-sep { color: var(--wan-gold-deep); opacity: .7; }

/* ============================================================
   FOOTER — the academy gate
   ============================================================ */

.wan-foot {
  width: 100%;
  align-self: stretch;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  margin-top: 44px;
  padding: 0 0 22px;
  font-family: var(--wan-font-ui);
  color: var(--wan-ash);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(168, 85, 247, .10), transparent 62%),
    linear-gradient(180deg, #0a0d14 0%, #05060a 100%);
  border-top: 1px solid var(--wan-edge);
  overflow: hidden;
}
.wan-foot::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent, rgba(53, 230, 255, .55) 18%, var(--wan-gold) 50%, rgba(168, 85, 247, .55) 82%, transparent);
  opacity: .75;
}
.wan-foot-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 30px 20px 0;
}
.wan-foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}
@media (max-width: 899px) { .wan-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; } }
@media (max-width: 479px) { .wan-foot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.wan-foot-brand { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wan-foot-brand .wan-brand { cursor: default; }
.wan-foot-tag {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--wan-ash-dim);
  max-width: 34ch;
}
.wan-foot-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.wan-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--wan-edge-cool);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wan-ash-dim);
}
.wan-stat b {
  font-family: var(--wan-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--wan-gold);
  text-transform: none;
}

.wan-foot-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wan-foot-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  font-family: var(--wan-font-rune);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wan-gold);
}
.wan-foot-col h3::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 196, 81, .4), transparent);
}
html[dir="rtl"] .wan-foot-col h3::after { background: linear-gradient(270deg, rgba(245, 196, 81, .4), transparent); }
.wan-foot-col a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--wan-ash);
  text-decoration: none;
  border-radius: 7px;
  padding: 2px 6px;
  margin-inline-start: -6px;
  transition: color .16s, background .16s, transform .16s var(--wan-ease);
}
.wan-foot-col a:hover {
  color: var(--wan-gold-soft);
  background: rgba(245, 196, 81, .08);
  transform: translateX(3px);
}
html[dir="rtl"] .wan-foot-col a:hover { transform: translateX(-3px); }
.wan-foot-col a .wan-glyph { font-size: 12px; opacity: .8; }

/* The internal-link cloud. Every genre page stays one hop from every other
   page, which is the whole point of the shared footer: the crawler and the
   visitor both walk the same map. */
.wan-foot-seo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.wan-foot-seo a {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--wan-ash);
  text-decoration: none;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--wan-edge-cool);
  transition: color .16s, border-color .16s, background .16s, box-shadow .16s;
}
.wan-foot-seo a:hover {
  color: var(--wan-gold-soft);
  background: rgba(245, 196, 81, .1);
  border-color: rgba(245, 196, 81, .45);
  box-shadow: 0 0 14px rgba(245, 196, 81, .18);
}
.wan-foot-seo a[aria-current="page"] {
  color: var(--wan-void);
  background: linear-gradient(140deg, var(--wan-gold-soft), var(--wan-gold));
  border-color: var(--wan-gold);
  font-weight: 800;
}
.wan-foot-seo .wan-glyph { font-size: 11px; line-height: 1; }

.wan-foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 16px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.wan-foot-legal a {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--wan-ash-dim);
  text-decoration: none;
  padding: 5px 2px;
  transition: color .16s;
}
.wan-foot-legal a:hover { color: var(--wan-cyan); }
.wan-foot-copy {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.7;
  color: var(--wan-ash-dim);
}
.wan-foot-copy b { color: var(--wan-ash); font-weight: 600; }
.wan-foot-dot { display: inline-block; margin: 0 8px; font-size: 8px; color: var(--wan-gold); opacity: .7; vertical-align: 1px; }
.wan-foot-copy--dim {
  max-width: 46rem;
  margin: 8px auto 0;
  font-size: 9.5px;
  line-height: 1.6;
  color: #566074;
}

/* wa-legal-footer.js injects its own .wa-legal-link/.wa-legal-consent sheet
   late into <head>; 0,2,0 keeps the footer on the academy palette. */
.wan-foot-legal .wa-legal-link {
  font: 600 10.5px/1.4 var(--wan-font-ui);
  color: var(--wan-ash-dim);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 5px 2px;
  cursor: pointer;
  text-decoration: none;
  transition: color .16s, border-color .16s;
}
.wan-foot-legal .wa-legal-link:hover { color: var(--wan-gold-soft); border-bottom-color: rgba(245, 196, 81, .45); }
.wan-foot-legal .wa-legal-consent { color: var(--wan-cyan); }
.wan-foot-legal .wa-legal-consent:hover { color: #9ff3ff; border-bottom-color: rgba(53, 230, 255, .45); }
.wan-foot-legal .wa-legal-link + .wa-legal-link::before,
.wan-foot-legal .wa-legal-consent + .wa-legal-link::before,
.wan-foot-legal .wa-legal-link + .wa-legal-consent::before { content: none; }
.wan-foot-legal .wa-legal-link:focus-visible { outline: 2px solid var(--wan-cyan); outline-offset: 2px; }

/* The player keeps only the link cloud, legal row and credit line. */
.wan-foot--compact { margin-top: 24px; }
.wan-foot--compact .wan-foot-inner { padding-top: 18px; }
.wan-foot--compact .wan-foot-seo { margin-top: 0; }
/* Clear the player's fixed mobile toolbar so the last row stays tappable. */
@media (max-width: 640px) { .wan-foot--compact { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }

/* The legacy footer on generated pages is replaced wholesale; hide it only
   once the shell has actually mounted so a JS failure never leaves a page
   with no footer at all. */
body.wan-mounted footer.site { display: none !important; }

/* ============================================================
   MOTION SAFETY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .site-chrome-drawer,
  .site-chrome-drawer-overlay,
  .rail-btn, .rail-tooltip, .wan-tool, .wan-cat, .wan-dest-row,
  .wan-icon-btn, .wan-dclose, .wa-ctrl-btn.wan-ctrl-menu, .wan-foot-col a, .wan-chev {
    transition-duration: .01ms !important;
    animation: none !important;
  }
  .site-chrome-drawer::before { animation: none !important; }
  .rail-btn:hover, .wan-tool:hover, .wan-cat:hover, .wan-dest-row:hover,
  .wan-icon-btn:hover { transform: none !important; }
}

/* color-mix() is unsupported on older engines; fall back to a plain gold
   tint so tiles never render with a transparent background. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .wan-tool, .wan-cat, .wan-dest-row { background: rgba(255, 255, 255, .05); border-color: rgba(245, 196, 81, .25); }
  .wan-tool:hover, .wan-cat:hover, .wan-dest-row:hover { background: rgba(245, 196, 81, .12); border-color: rgba(245, 196, 81, .5); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
  .wan-cat-glyph, .wan-dest-ico { background: rgba(245, 196, 81, .12); border-color: rgba(245, 196, 81, .3); }
  .rail-btn:hover, .rail-btn:focus-visible { box-shadow: 0 6px 20px rgba(245, 196, 81, .25); }
}