/* Axion Forge Card Explorer
   Layout concept: the forge. Near-black steel with faint grid lines, brushed-metal panels, molten ember accents and
   glow taken from the official logo, and the card as the brightest object on screen. Each faction lends its colour
   (--fac) to what it touches. One dark visual world on purpose (no light theme), like playaxionforge.com.
   Type: Cinzel (display: the website's carved capitals), IBM Plex Sans (reading), IBM Plex Mono (labels, numbers). */
:root {
  --void: #050506;          /* page */
  --abyss: rgb(13 13 16 / 0.72);   /* panels: slightly see-through */
  --plate: rgb(24 24 30 / 0.62);   /* raised surfaces */
  --plate-2: #1f1f26;
  --line: #2a2a33;          /* hairlines */
  --line-2: #3a3a46;
  --ink: #ece8e2;           /* text: warm white */
  --muted: #a39d95;
  --dim: #6f6a63;
  --ember: #ff7a1a;         /* molten orange: links, focus, live state */
  --ember-2: #ffb15c;
  --ember-soft: rgb(255 122 26 / 0.12);
  --steel: linear-gradient(165deg, #23232b 0%, #121216 55%, #1b1b21 100%);
  --melee: #4fd16f; --ranged: #ff9a2e; --guard: #4ea8ff;   /* Battle Map arrows: Melee green, Ranged orange, Guard blue */
  --pos-i: #4fd16f; --pos-n: #8d8a86; --pos-x: #e04848;     /* positions: Initial green, Neutral grey, Restricted red */
  --ultra: #ff2b2b; --mythic: #ff9b3a;
  --warn: #f2b443;
  --fac: var(--ember);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  --shadow: 0 18px 40px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--void); scroll-padding-top: 80px; scrollbar-gutter: stable; }   /* v0.23.0: the page never shifts sideways when a scrollbar comes or goes */
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--void); font: 15px/1.55 var(--body);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgb(255 122 26 / 0.06), transparent 60%),
    linear-gradient(rgb(255 255 255 / 0.016) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.016) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px; background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--void); }
img { max-width: 100%; }
img.protected, .c3d img, .tile img, .rel img, .mq img, .var img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: 0.03em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); line-height: 1.1; }
.h3, h2.h3 { font-size: 1.15rem; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 0.86rem; } .fine { font: 0.72rem/1.4 var(--mono); color: var(--dim); }
.eyebrow { font: 500 0.7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.lede { color: #c9c2b8; max-width: 62ch; font-size: 1.02rem; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
[hidden] { display: none !important; }
/* the cursor changes only on things that do something; tooltip-only text keeps the normal cursor */
[data-tip], [data-gloss] { cursor: inherit; }
button, a, select, summary, label.tg, .lnk { cursor: pointer; }
button:disabled { cursor: default; }
/* v0.29.0 (user): a hover highlight never blinks on; it fades in. Zero-specificity fallback for every link and button
   whose own rule sets no transition (a rule that sets one keeps it). */
:where(a, button, summary, label, select, input, textarea, [role="button"], [tabindex]) {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease, text-shadow 0.35s ease;
}   /* transform, filter and opacity are left out: scripts move and fade some links frame by frame */

/* ---------- shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgb(5 5 6 / 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 122 26 / 0.45), transparent); }
/* a small bright glint races along the divider now and then, with a soft trail */
.glint-track { position: absolute; left: 0; right: 0; height: 6px; overflow: hidden; pointer-events: none; z-index: 2; }   /* clips the glint so the page never widens */
.glint-bottom { bottom: -3px; }
.glint-top { top: -3px; }
.glint { position: absolute; left: 0; top: 1px; height: 3px; width: 160px; pointer-events: none; opacity: 0; z-index: 2; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgb(255 190 120 / 0.25) 55%, rgb(255 245 225 / 1) 92%, transparent); filter: blur(0.6px) drop-shadow(0 0 6px rgb(255 170 80 / 0.9)); }
.glint.go { animation: glintRun 1.3s cubic-bezier(.55,.1,.35,1) forwards; }
.glint-rtl { background: linear-gradient(270deg, transparent, rgb(255 190 120 / 0.25) 55%, rgb(255 245 225 / 1) 92%, transparent); }
.glint-rtl.go { animation-name: glintRunRtl; }
@keyframes glintRunRtl { 0% { transform: translateX(100vw); opacity: 0; } 12% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(-180px); opacity: 0; } }
@keyframes glintRun { 0% { transform: translateX(-180px); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(100vw); opacity: 0; } }
.topbar-in { display: flex; align-items: center; gap: 14px 26px; padding-block: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1480px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-emblem-a { display: block; line-height: 0; }
.brand-emblem-a:hover .brand-emblem { filter: drop-shadow(0 0 14px rgb(255 120 30 / 0.7)); }
.brand-emblem { width: 54px; height: 54px; filter: drop-shadow(0 0 10px rgb(255 100 20 / 0.35)); }
.brand-t { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none !important; }
.brand-word { height: 48px; width: auto; }
.brand-b { font: 600 0.8rem/1.2 var(--mono); letter-spacing: 0.26em; text-transform: uppercase; color: var(--ember-2); padding-left: 0.6em; }
.topnav-wrap { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.topnav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; cursor: grab; }
.topnav::-webkit-scrollbar { display: none; }
/* when the links do not fit, an arrow shows there is more; the strip can be dragged sideways */
.nav-arrow { display: none; flex: 0 0 auto; width: 44px; height: 52px; border: 0; border-radius: 8px; padding: 0 0 6px; background: none; font: 700 2.8rem/1 var(--body); color: var(--ember-2); visibility: hidden; }
.nav-arrow:hover { color: #fff; text-shadow: 0 0 12px var(--ember); }
.nav-prev { margin-right: 10px; }
.nav-next { margin-left: 10px; }
.topnav-wrap.over .nav-arrow { display: grid; place-items: center; }
.topnav-wrap.more .nav-next, .topnav-wrap.less .nav-prev { visibility: visible; }
.topnav .ss { margin-left: 10px; flex: 0 0 auto; }
.topnav-a { color: var(--muted); font: 700 0.86rem/1 var(--display); letter-spacing: 0.08em; padding: 10px 12px; border-radius: 6px; white-space: nowrap; text-decoration: none !important; position: relative; }
.topnav-a:hover { color: var(--ink); }
.topnav-a.on { color: var(--ink); }
.topnav-a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.topbar-r { margin-left: auto; display: flex; align-items: stretch; gap: 10px; flex: 0 0 auto; }
/* PLAY NOW: large, slowly pulsing */
.play-now { display: grid; place-items: center; padding: 12px 24px; border-radius: 9px; font: 700 1rem/1 var(--display); letter-spacing: 0.14em; color: #160800 !important; text-decoration: none !important;
  background: linear-gradient(180deg, #ffb062, #ff6a0a); border: 1px solid #ffc488; animation: playPulse 3.2s ease-in-out infinite; }
.play-now:hover { filter: brightness(1.1); }
@keyframes playPulse { 0%, 100% { box-shadow: 0 0 10px rgb(255 106 10 / 0.35); } 50% { box-shadow: 0 0 26px 4px rgb(255 120 30 / 0.7); } }
@media (prefers-reduced-motion: reduce) { .play-now { animation: none; } }
.topbar-site { display: inline-flex; gap: 6px; align-items: center; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ember-2); white-space: nowrap; }
.topbar-site .ico { width: 13px; height: 13px; }
.comm-menu { position: relative; }
.comm-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 12px 20px; border: 1px solid var(--line-2); border-radius: 9px; font: 700 1rem/1 var(--display); letter-spacing: 0.12em; color: var(--ink); background: rgb(20 20 25 / 0.9); }
.comm-menu .caret { color: var(--muted); font-size: 0.7rem; }
/* traces (js/core/traces.js): now and then a thin highlight runs once around an outline, then fades; one at a time */
.trace { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px; opacity: 0; z-index: 3;
  background: conic-gradient(from var(--a, 0deg), transparent 0deg, transparent 290deg, var(--trace-c, rgb(255 200 140)) 340deg, transparent 360deg);
  -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 exclude, linear-gradient(#000 0 0); }
.ftile > .trace, .fhero > .trace { inset: 0; padding: 3px; z-index: 6; filter: drop-shadow(0 0 4px var(--trace-c)); }
.ftile > .trace.go, .fhero > .trace.go { animation-name: traceRunBright; }
@keyframes traceRunBright { 0% { --a: 0deg; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { --a: 360deg; opacity: 0; } }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.trace.go { animation: traceRun 1.8s ease-in-out forwards; }
@keyframes traceRun { 0% { --a: 0deg; opacity: 0; } 12% { opacity: 0.85; } 85% { opacity: 0.85; } 100% { --a: 360deg; opacity: 0; } }
/* the bottom bar's trace: a short light running right to left along its top edge */
.trace-line-rtl { inset: -2px 0 auto 0; height: 3px; padding: 0; border-radius: 0; -webkit-mask: none; mask: none; filter: blur(0.6px) drop-shadow(0 0 6px rgb(255 170 80 / 0.9));
  background: linear-gradient(270deg, transparent, rgb(255 190 120 / 0.25) 55%, rgb(255 245 225 / 1) 92%, transparent); background-size: 160px 100%; background-repeat: no-repeat; background-position: calc(100% + 160px) 0; }
.trace-line-rtl.go { animation: traceRtl 1.3s cubic-bezier(.55,.1,.35,1) forwards; }
@keyframes traceRtl { 0% { background-position: calc(100% + 160px) 0; opacity: 0; } 12% { opacity: 1; } 92% { opacity: 1; } 100% { background-position: -160px 0; opacity: 0; } }
.comm-menu .comm-drop { position: absolute; right: 0; top: 100%; z-index: 70; display: grid; grid-template-columns: repeat(5, 40px); gap: 12px; padding: 14px; margin-top: 8px; border-radius: 12px; background: #0e0e12; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.comm-menu .comm-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
/* round 11: a mouse click no longer keeps it open; the keyboard (focus-visible) and touch screens (a tap) still open it */
.comm-menu:hover .comm-drop, .comm-menu:has(:focus-visible) .comm-drop { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
.comm-menu:hover .comm-btn, .comm-menu:has(:focus-visible) .comm-btn { border-color: var(--ember); }
@media (hover: none) { .comm-menu:focus-within .comm-drop { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; } }
.comm { display: flex; flex-wrap: wrap; gap: 10px; }
.comm-a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform 0.3s, filter 0.3s; text-decoration: none !important; }
.comm-a img { width: 100%; height: 100%; object-fit: contain; }
.comm-a:hover, .comm-a:focus-visible { transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 2px #ffd08a, 0 0 18px 4px rgb(255 122 26 / 0.65); }
.comm-lg .comm-a { width: 52px; height: 52px; }
.main { flex: 1 0 auto; width: 100%; max-width: 1480px; margin: 0 auto; padding-block: 24px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); outline: none; }
.foot { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgb(11 11 14 / 0.75), rgb(5 5 6 / 0.85)); }
.foot-in { max-width: 1480px; margin: 0 auto; padding-block: 32px 30px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 620px) minmax(max-content, 1fr); gap: 18px 30px; align-items: center; }
.foot-l { display: flex; flex-direction: column; align-items: center; gap: 8px; justify-self: center; }
.foot-logo-a { line-height: 0; }
.foot-logo { height: 104px; width: auto; }
.foot-site { font: 700 1.15rem/1.2 var(--display); letter-spacing: 0.08em; color: var(--ember-2); }
.foot-r { display: flex; flex-direction: column; align-items: center; gap: 10px; justify-self: center; }
.comm-foot { justify-content: center; }
.comm-foot .comm-a { width: clamp(18px, 2vw, 28px); height: clamp(18px, 2vw, 28px); }   /* shrinks to about half on narrow windows */
.foot-join { font: 700 1.2rem/1.2 var(--display); letter-spacing: 0.14em; color: var(--ink); }
.foot-b { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; justify-self: center; width: 100%; }
.foot-b > * { margin-inline: auto; text-align: center; }
.foot-about { font-size: 0.9rem; color: #d4cec5; }
.foot-copy { font: 600 0.74rem/1.5 var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; font-size: 0.88rem; }
.foot-links .dot { color: var(--dim); }

/* ---------- site search ---------- */
.ss { position: relative; }
.ss-box { display: flex; align-items: center; gap: 8px; width: clamp(120px, 12vw, 180px); padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--void); }
.ss-box:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.ss-box .ico { width: 16px; height: 16px; color: var(--muted); }
.ss-box input { flex: 1 1 auto; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 0.9rem var(--body); padding: 10px 0; }
.ss-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: min(440px, 92vw); margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: #0e0e12; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.ss-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.ss-item.on, .ss-item:hover { background: var(--ember-soft); }
.ss-thumb { width: 34px; height: 34px; object-fit: contain; display: grid; place-items: center; }
.ss-thumb.ss-card { height: 46px; object-fit: cover; border-radius: 3px; }
.ss-ico { color: var(--ember-2); } .ss-ico .ico { width: 18px; height: 18px; }
.ss-txt { display: flex; flex-direction: column; min-width: 0; }
.ss-txt strong { font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-txt span { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-kind { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.ss-empty { padding: 10px; color: var(--muted); font-size: 0.86rem; }

/* ---------- background corner glows ---------- */
.corner-glow { position: fixed; z-index: 0; width: 46vmax; height: 46vmax; pointer-events: none; transition: opacity 1.2s ease; }
.corner-glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 110 20 / 0.12), transparent 70%); animation: cornerPulse 9s ease-in-out infinite; }
body.mq-on .corner-glow { opacity: 0; transition: opacity 0s; }
.corner-tr { right: -18vmax; top: -18vmax; }
.corner-bl { left: -18vmax; bottom: -18vmax; }
.corner-bl::before { animation-delay: -4.5s; }
@keyframes cornerPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .corner-glow { animation: none; } }

/* ---------- always-visible bar ---------- */
.devbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: block; padding: 7px max(16px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); text-align: center; font: 600 0.82rem/1.3 var(--body); color: var(--ember) !important; background: rgb(8 8 10 / 0.92); border-top: 1px solid rgb(255 122 26 / 0.3); backdrop-filter: blur(6px); }
.devbar:hover { color: var(--ember-2) !important; text-decoration: underline; }


/* brief fade when a faction or card page opens */
.fade-in { animation: fadeIn 0.42s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* ---------- embers ---------- */
.embers { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; }
.app { position: relative; z-index: 1; }

/* ---------- icons ---------- */
.ico { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; flex: 0 0 auto; vertical-align: -0.16em; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico-shard { color: #7fd8ff; } .ico-core { color: #ffb347; } .ico-prism { color: #e48bff; } .ico-axion { color: #9b8cff; }
.ico-dominance { color: #e3c27f; } .ico-resonance { color: #ff7a9a; } .ico-atk { color: var(--melee); } .ico-def { color: #8fb3ff; }

/* ---------- controls ---------- */
button { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--steel); color: var(--ink); font: 600 0.86rem/1 var(--body); letter-spacing: 0.02em; text-decoration: none !important; }
.btn:hover:not(:disabled) { border-color: var(--ember); box-shadow: 0 0 16px rgb(255 122 26 / 0.15); }
.btn .ico { width: 15px; height: 15px; }
.btn-ghost { background: transparent; }
.btn.small { padding: 6px 10px; font-size: 0.78rem; }
.btn-clear { flex: 0 0 auto; margin-left: auto; padding: 14px 26px; font: 700 0.96rem/1 var(--mono); letter-spacing: 0.14em; color: #160800; background: linear-gradient(180deg, #ff9a42, #ff6a0a); border: 1px solid #ffb15c; cursor: pointer; }
.btn-clear:hover { filter: brightness(1.1); box-shadow: 0 0 18px 3px rgb(255 106 10 / 0.65), 0 0 40px rgb(255 120 30 / 0.35); }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--plate); color: var(--ink); font-size: 1rem; }
.icon-btn:disabled { opacity: 0.35; }
.icon-btn:hover:not(:disabled) { border-color: var(--ember); }
.icon-btn .ico { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--plate); color: #d4cec5; font: 500 0.8rem/1.1 var(--body); text-decoration: none !important; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip[aria-pressed="true"], .chip.open { border-color: var(--ember); color: var(--ink); background: var(--ember-soft); }
.chip-sm { padding: 3px 9px; font-size: 0.76rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font: 500 0.72rem/1.3 var(--mono); border: 1px solid var(--line-2); color: #d4cec5; background: var(--plate); white-space: nowrap; }
.pill-preview { color: #1a1205; background: var(--warn); border-color: transparent; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pill-cost { color: #ffd59a; border-color: rgb(242 180 67 / 0.35); background: rgb(242 180 67 / 0.08); }
.lnk { all: unset; cursor: pointer; color: var(--ember-2); border-bottom: 1px solid rgb(255 177 92 / 0.3); display: inline-flex; align-items: center; gap: 5px; }
.lnk:hover { border-bottom-color: var(--ember-2); text-decoration: none; }
.lnk:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.lnk .ico { width: 12px; height: 12px; }
.notice { border-left: 3px solid var(--warn); background: rgb(242 180 67 / 0.07); padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 0.88rem; color: #f4dcb0; }
.panel { background: var(--abyss); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
select, input[type=number] { font: 0.86rem var(--body); color: var(--ink); background: var(--plate); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; max-width: 100%; }
select:hover { border-color: var(--muted); }
select option { background: #121620; color: var(--ink); }   /* dropdown lists match the panels */

/* ---------- tooltip ---------- */
.tx-word.has-gloss, .tx-trait, .tx-head, .tx-token, .tx-vp, .tx-stat { border-bottom: 1px dotted rgb(163 157 149 / 0.6); }
.tip { position: fixed; z-index: 90; max-width: 320px; padding: 10px 12px; border-radius: 9px; background: #101014; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.84rem; line-height: 1.45; color: #e2ddd5; pointer-events: none; display: flex; flex-direction: column; gap: 3px; }
.tip-cat { font: 500 0.64rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-2); }
.tip-term { font: 700 0.95rem/1.2 var(--display); color: var(--ink); }
.tip-card { position: fixed; z-index: 89; width: 170px; height: 238px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 28px rgb(0 0 0 / 0.6)); }
.tip-card.tip-card-lg { width: 220px; height: 308px; }

/* ---------- the 3D card ---------- */
.c3d { --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%; --on: 0; --dx: 0; --dy: 0; --c3d-accent: var(--ember);
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; max-width: 100%; perspective: 1100px; border: 0; padding: 0; background: none; -webkit-tap-highlight-color: transparent; }
.c3d-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(calc(var(--on) * -4px)); will-change: transform; }
.c3d-face { position: absolute; inset: 0; border-radius: 4.6% / 3.3%; overflow: hidden; background: #111; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c3d-accent) 80%, transparent); transition: box-shadow 0.25s ease; }
/* faction colour: a thin stroke always, and a glow behind the card on hover */
.c3d:hover .c3d-face { box-shadow: 0 0 16px 1px color-mix(in srgb, var(--c3d-accent) 32%, transparent), 0 0 40px color-mix(in srgb, var(--c3d-accent) 14%, transparent); }   /* glow only, no stroke */
.c3d-face { transition: box-shadow 0.25s ease, opacity 0.2s ease; }
.c3d-face.c3d-out { opacity: 0; }
/* the art drifts slightly against the tilt for depth, scaling up just enough that its edge is never exposed */
.c3d-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
  transform: translate3d(calc(var(--dx) * -5px), calc(var(--dy) * -5px), 0) scale(calc(1 + var(--on) * 0.02)); }
/* a soft, wide glare, like light on a matte card */
.c3d-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: calc(0.10 + var(--on) * 0.6);
  background: radial-gradient(ellipse 90% 75% at var(--px) var(--py), rgb(255 255 255 / 0.65) 0%, rgb(255 255 255 / 0.16) 40%, transparent 72%); }
.c3d-edge { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), inset 0 0 24px rgb(0 0 0 / 0.35); }
/* Foil. Real holofoil shows a narrow band of spectral colour where the light catches it, shifting as the card turns:
   a colour band that moves with the angle, masked to the light. The band never repeats, so no seam can show. */
.c3d-foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at var(--px) var(--py), #000 0%, rgb(0 0 0 / 0.6) 45%, rgb(0 0 0 / 0.18) 85%);
          mask-image: radial-gradient(ellipse 85% 75% at var(--px) var(--py), #000 0%, rgb(0 0 0 / 0.6) 45%, rgb(0 0 0 / 0.18) 85%);
  background-image: linear-gradient(calc(118deg + var(--dx) * 60deg),
    transparent 30%, rgb(255 70 110 / 0.6) 38%, rgb(255 205 80 / 0.6) 43%, rgb(90 255 170 / 0.6) 48%, rgb(80 170 255 / 0.6) 53%, rgb(190 110 255 / 0.6) 58%, transparent 66%);
  background-repeat: no-repeat; background-size: 300% 300%; background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 80%); }
.c3d-foil-holo { opacity: calc(0.24 + var(--on) * 0.66); }
.c3d-shadow { position: absolute; left: 8%; right: 8%; bottom: -4%; height: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.75), transparent); filter: blur(10px);
  transform: translate(calc(var(--dx) * -20px), calc(var(--on) * 6px)); opacity: calc(0.7 + var(--on) * 0.15); }
.c3d-empty .c3d-face::after { content: "Image coming soon"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 0.8rem var(--mono); color: var(--dim); }
.c3d-empty .c3d-art { visibility: hidden; }
.c3d-lg { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .c3d-tilt { transform: none !important; } .c3d-art { transform: none; } .c3d-shadow { transform: none; } }

/* ---------- endless card scroll ---------- */
.mq { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq.mq-grab { cursor: grabbing; }
.mq-track { display: flex; gap: 14px; width: max-content; padding: 28px 0; will-change: transform; }
.mq-item { position: relative; flex: 0 0 auto; width: 150px; aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: var(--plate); cursor: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mq-sm .mq-item { width: 96px; border-radius: 5px; }
.mq-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
/* the hovered card grows where it is */
.mq-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--mq-fac, var(--ember)); opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.mq:not(.mq-grab) .mq-item:hover, .mq-item:focus-visible { transform: scale(1.2); z-index: 2; box-shadow: 0 14px 28px rgb(0 0 0 / 0.7); }
.mq:not(.mq-grab) .mq-item:hover::after, .mq-item:focus-visible::after { opacity: 1; }

/* ---------- home hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; gap: 18px; justify-content: flex-end; min-height: 640px; margin: -24px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 28px; padding: 84px max(16px, env(safe-area-inset-left, 0px)) 18px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: heroIn 2.6s ease-out; }
@keyframes heroIn { from { opacity: 0; } to { opacity: 1; } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 5 6 / 0.94) 0%, rgb(5 5 6 / 0.62) 45%, rgb(5 5 6 / 0.2) 100%), linear-gradient(0deg, var(--void) 0%, transparent 45%); }
/* the faction characters crossfade in turn: 8 frames, 6 seconds each */
/* artwork from the faction pages: 12 frames, 6 seconds each, edges feathered to transparent */
.hero-frame { position: absolute; inset: -2% -2% -2% 18%; background-size: cover; background-position: center 30%; opacity: 0; filter: saturate(1.05);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 58% 46%, #000 35%, rgb(0 0 0 / 0.55) 60%, transparent 92%);
          mask-image: radial-gradient(ellipse 62% 70% at 58% 46%, #000 35%, rgb(0 0 0 / 0.55) 60%, transparent 92%);
  animation: heroFade 72s linear infinite; animation-delay: calc(var(--i) * 6s - 1s); }
@media (prefers-reduced-motion: reduce) { .hero-frame { animation: none; } .hero-frame:first-child { opacity: 1; } }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.hero-tag { width: min(440px, 90%); height: auto; opacity: 0.9; }
.hero-h { font: 700 clamp(2.4rem, 1.4rem + 4.4vw, 4.8rem)/1 var(--display); letter-spacing: 0.02em; text-shadow: 0 4px 30px rgb(0 0 0 / 0.8); }
.hero-h span { background: linear-gradient(180deg, #ffe0b0 0%, #ff9a42 55%, #e05a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-facs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hero-fac { position: relative; width: 82px; height: 82px; border: 0; padding: 0; background: none; display: grid; place-items: center; transition: transform 0.3s ease; }
.hero-fac img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.6)); transition: filter 0.3s; }
.hero-fac:hover, .hero-fac:focus-visible { transform: scale(1.16); z-index: 2; }
.hero-fac:hover img, .hero-fac:focus-visible img { filter: drop-shadow(0 0 14px var(--fac)) brightness(1.15); }
/* one line under the icons, faded in quickly for the hovered faction */
.hero-fac-line { min-height: 1.7em; padding-left: 14px; font-size: 1.5rem; color: #ece6dc; opacity: 0; transform: translateY(-4px); transition: opacity 0.45s ease, transform 0.45s ease; text-shadow: 0 2px 12px rgb(0 0 0 / 0.95); }
.hero-fac-line strong { font: 700 1.6rem/1.2 var(--display); letter-spacing: 0.06em; filter: brightness(1.25) drop-shadow(0 0 10px currentColor); }
.hero-fac-line.on { opacity: 1; transform: none; }
.hero-fac-sub { margin-left: 0.9em; font-size: 1.05rem; }
.hero .mq { position: relative; z-index: 1; margin-top: 64px; }

/* ---------- filters ---------- */
.browser { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.browser-h { margin-top: 30px; font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--display); letter-spacing: 0.08em; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 28px; align-items: start; padding: 16px; background: var(--abyss); border: 1px solid var(--line); border-radius: var(--r); }
.fleft { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fright { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--void); max-width: 100%; }
.search:focus-within { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.search .ico { color: var(--muted); width: 16px; height: 16px; }
.search input { flex: 1 1 auto; min-width: 0; background: none; border: 0; color: var(--ink); font: 0.92rem var(--body); padding: 10px 0; outline: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tg { display: inline-flex; align-items: center; gap: 7px; color: #d4cec5; font-size: 0.86rem; }
.tg input { accent-color: var(--ember); width: 16px; height: 16px; margin: 0; }
.fac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--plate); color: #d4cec5; font: 500 0.82rem/1 var(--body); }
.fchip img { width: 22px; height: 22px; object-fit: contain; }
.fchip:hover { border-color: var(--fac); }
.fchip[aria-pressed="true"] { border-color: var(--fac); color: var(--ink); background: color-mix(in srgb, var(--fac) 16%, var(--plate)); }
.frow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.frow-top { align-items: flex-start; flex-wrap: nowrap; }
.frow-top .fac-chips { flex: 1 1 auto; }
select.has-sel { border-color: var(--ember); color: var(--ink); box-shadow: 0 0 0 1px var(--ember), 0 0 14px rgb(255 122 26 / 0.45); }
.fsort { display: inline-flex; align-items: center; gap: 8px; }
.flabel { font: 600 0.64rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); }
.range-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.range-wrap { position: relative; }
/* hovering a range button shows its slider; it hides when the pointer leaves */
.range-pop { position: absolute; left: 0; top: 100%; z-index: 30; display: none; align-items: center; gap: 10px; width: 280px; padding: 14px 12px 12px; margin-top: 6px; border: 1px solid var(--ember); border-radius: 10px; background: #120c08; box-shadow: var(--shadow); }
.range-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.range-wrap:hover .range-pop { display: flex; }   /* hover only, even after clicking or dragging */
.dual { position: relative; flex: 1 1 auto; min-width: 0; height: 24px; }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input[type=range]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.dual input[type=range]::-moz-range-track { height: 4px; background: transparent; }
.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--ember); border: 2px solid #160800; margin-top: -7px; cursor: grab; box-shadow: 0 0 10px rgb(255 122 26 / 0.6); }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--ember); border: 2px solid #160800; cursor: grab; }
.dual-track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--line-2); }
.dual-fill { position: absolute; top: 10px; height: 4px; border-radius: 2px; background: var(--ember); }
.dual-min { font: 0.74rem var(--mono); color: var(--dim); }
.dual-val { font: 600 0.86rem var(--mono); color: var(--ink); min-width: 4.5em; }
.fbottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.fbottom > .search { flex: 0 1 320px; min-width: 220px; order: 0; }
.fbottom > .fsort { order: 0; }
.fbottom .viewsw { margin-left: auto; align-self: flex-end; order: 9; }
.fdrawer { flex: 1 1 100%; order: 3; }
.fdrawer > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); font: 600 0.74rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-2); }
.fdrawer > summary::-webkit-details-marker { display: none; }
.fdrawer > summary .ico { width: 15px; height: 15px; }
.fdrawer[open] > summary { background: var(--ember-soft); border-color: var(--ember); }
.fcount:not(:empty) { background: var(--ember); color: #160800; border-radius: 999px; padding: 2px 7px; font-size: 0.7rem; }
.fdrawer-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; padding: 16px 2px 4px; }
.fgroup { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pins { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; align-items: center; order: 1; }
.pin { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px; border-radius: 999px; border: 1px solid var(--ember); background: var(--ember-soft); color: var(--ink); font: 0.8rem var(--body); }
.pin span { color: var(--muted); }
#fclear { order: 2; }
.rbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rcount { font: 500 0.8rem var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.viewsw { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.viewsw button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--plate); color: var(--muted); padding: 8px 13px; font: 600 0.82rem/1 var(--body); }
.viewsw button + button { border-left: 1px solid var(--line-2); }
.viewsw button[aria-pressed="true"] { background: var(--ember); color: #160800; }
.viewsw .ico { width: 15px; height: 15px; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 26px 20px; padding-top: 4px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-card { display: block; width: 100%; aspect-ratio: 5 / 7; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--plate); box-shadow: 0 6px 16px rgb(0 0 0 / 0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tile-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-card:hover, .tile-card:focus-visible { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 28px rgb(0 0 0 / 0.6), 0 0 0 2px color-mix(in srgb, var(--fac) 70%, #fff), 0 0 22px color-mix(in srgb, var(--fac) 35%, transparent); }
.tile-noimg { display: grid; place-items: center; height: 100%; font: 0.76rem var(--mono); color: var(--dim); }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 7px; background: var(--plate); border: 1px solid var(--line); }
.tile-name { font: 700 0.78rem/1.25 var(--display); letter-spacing: 0.01em; overflow-wrap: break-word; word-break: normal; min-width: 0; flex: 1 1 auto; }
.tile-meta { flex-direction: column; align-items: stretch; gap: 6px; }
.tile-name { text-align: center; }
.tile-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tile-num { font: 500 0.7rem/1 var(--mono); color: var(--muted); letter-spacing: 0.06em; margin-right: 2px; }
.tile-row img { object-fit: contain; }
.ti-fac, .ti-rar { width: 32px; height: 32px; }
.ti-type { width: 24px; height: 24px; }
.grid-more { height: 1px; grid-column: 1 / -1; }
.empty { padding: 48px 16px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty-t { font: 700 1.1rem var(--display); }

/* ---------- pages of results ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 26px 0 6px; }
.pager-n { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--plate); color: var(--ink); font: 600 0.9rem/1 var(--mono); cursor: pointer; }
.pager-n:hover { border-color: var(--ember); }
.pager-n[aria-current="page"] { background: var(--ember); color: #160800; border-color: var(--ember); }
.pager-arrow { width: 42px; height: 42px; font-size: 1.5rem; }
.pager-info { margin-left: 10px; font: 0.8rem var(--mono); color: var(--muted); }

/* ---------- list ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--abyss); }
.cards-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.cards-table th { position: sticky; top: 0; background: var(--plate); font: 600 0.66rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); text-align: left; padding: 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.th-btn { all: unset; cursor: pointer; } .th-btn:hover { color: var(--ink); } .th-btn:focus-visible { outline: 2px solid var(--ember); }
.cards-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cards-table tbody tr { cursor: pointer; } .cards-table tbody tr:hover td, .cards-table tbody tr:focus-visible td { background: rgb(255 122 26 / 0.06); }
.cards-table .ctr, .cards-table th.ctr { text-align: center; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.cards-table .num { font-family: var(--mono); color: var(--muted); }
.td-ico { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.td-ico img { width: 28px; height: 28px; object-fit: contain; }
.cards-table .name { width: 1%; white-space: nowrap; padding-right: 22px; }
.cards-table .mark { width: 1%; padding: 8px 2px; color: #6cb8ff; font-size: 1.05rem; text-align: center; }
.arrows { display: inline-flex; gap: 4px; font: 700 1.3rem/1 var(--body); }
.ar-melee { color: var(--melee); } .ar-ranged { color: var(--ranged); } .ar-guard { color: var(--guard); }

/* ---------- card page ---------- */
.detail { display: flex; flex-direction: column; gap: 18px; }
.dv-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h, 80px) + 6px); z-index: 30; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px; margin: -8px -10px 0; border-radius: 12px; background: rgb(5 5 6 / 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.dv-step { display: inline-flex; align-items: center; gap: 8px; margin-left: 26px; }
.dv-step-l { font: 600 0.6rem/1.15 var(--mono); letter-spacing: 0.12em; color: var(--muted); text-align: center; }
.dv-all { font-family: var(--mono); letter-spacing: 0.12em; }
.dv-count { font: 500 0.78rem var(--mono); color: var(--muted); min-width: 5.5em; text-align: center; font-variant-numeric: tabular-nums; }
.dv-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
.dv-nav::-webkit-scrollbar { display: none; }
.dv-tab { padding: 9px 14px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--ink); font: 700 0.86rem/1 var(--display); letter-spacing: 0.08em; white-space: nowrap; text-decoration: none !important; background: rgb(255 255 255 / 0.03); }
.dv-tab:hover { border-color: var(--ember); }
.dv-tab:hover { color: var(--ink); } .dv-tab.on { color: var(--ink); background: color-mix(in srgb, var(--fac) 18%, transparent); }
.dv-body { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
.dv-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h, 80px) + 76px); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 6px 0; }
.dv-halo { position: absolute; inset: -6% -16% 18%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--fac) 26%, transparent), transparent 75%); filter: blur(8px); }
.dv-stage .c3d { max-width: 350px; }
.variants { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; position: relative; }
.var { width: 46px; height: 64px; padding: 0; border-radius: 5px; border: 1px solid var(--line-2); background: var(--plate); overflow: hidden; cursor: pointer; }
.var img { width: 100%; height: 100%; object-fit: cover; }
.var[aria-pressed="true"] { border-color: var(--fac); box-shadow: 0 0 0 2px var(--fac); }
.dv-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.dv-head { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; margin-bottom: 20px; }
.dv-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dv-title .pill-preview { margin-top: 10px; flex: 0 0 auto; }
.dv-id { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 500 0.76rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dv-id .dot { color: var(--dim); }
.dv-name { font: 700 clamp(2rem, 1.5rem + 2.4vw, 3.1rem)/1.05 var(--display); }
.dv-lore { font: italic 1.04rem/1.55 var(--body); color: #e3d3b4; max-width: 62ch; margin-bottom: 14px; }
.dv-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--plate); font: 600 0.84rem/1 var(--body); color: var(--ink); }
.badge img { width: 22px; height: 22px; object-fit: contain; }
button.badge:hover { border-color: var(--ember); }
.badge-fac { border-color: color-mix(in srgb, var(--fac) 70%, transparent); background: color-mix(in srgb, var(--fac) 14%, var(--plate)); }
.badge-rar { color: #e3c27f; }
.dv-sec { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--abyss); border: 1px solid var(--line); position: relative; scroll-margin-top: calc(var(--topbar-h, 80px) + 76px); }
.dv-sec::before { content: ""; position: absolute; left: 20px; top: -1px; width: 48px; height: 2px; background: var(--fac); box-shadow: 0 0 10px var(--fac); }
.dv-sec-h { font: 700 1.05rem/1.2 var(--display); letter-spacing: 0.06em; }
.dv-sec h3.eyebrow { font-family: var(--mono); }

/* card details: one clean list, two columns on wide screens */
.cd { display: flex; flex-direction: column; gap: 16px; }
.cd-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 28px; }
.cd-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cd-row dt { font: 600 0.66rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.cd-row dd { margin: 0; font-size: 0.92rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.cd-v { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cd-ico { width: 20px; height: 20px; object-fit: contain; }
.cd-pos { flex-direction: column; align-items: flex-start; gap: 2px; }
.cd-pos-k { display: inline-block; min-width: 7.4em; font: 600 0.64rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.cd-sub { display: flex; align-items: center; gap: 8px; font: 600 0.7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.cd-sub .ico { width: 15px; height: 15px; color: var(--ember-2); }
/* stats: one compact strip */
.statline { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--steel); border: 1px solid var(--line-2); }
.sv { display: inline-flex; align-items: baseline; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.sv .ico { width: 17px; height: 17px; align-self: center; }
.sv b { font: 700 1.3rem/1 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; }
.sv-cost b { font: 600 0.9rem var(--body); color: #ffd59a; }

.stats-wrap { display: flex; flex-direction: column; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--steel); border: 1px solid var(--line-2); }
.stat-ico { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: rgb(255 255 255 / 0.04); }
.stat-ico .ico { width: 21px; height: 21px; }
.stat-v { font: 700 1.55rem/1 var(--body); font-variant-numeric: tabular-nums; }
.stat-k { font: 500 0.62rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stats-extra { display: flex; flex-wrap: wrap; gap: 8px; }

/* abilities */
.abilities { display: flex; flex-direction: column; gap: 10px; }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kw { padding: 6px 12px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--fac) 60%, var(--line-2)); background: color-mix(in srgb, var(--fac) 10%, var(--plate)); color: var(--ink); font: 700 0.78rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.ab { padding: 12px 14px; border-radius: 9px; background: var(--plate); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ab-ability { border-left: 3px solid var(--fac); }
.ab-ultimate { border-left-color: #e3c27f; background: linear-gradient(90deg, rgb(227 194 127 / 0.08), var(--plate) 40%); }
.ab-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ab-type { display: inline-flex; align-items: center; gap: 6px; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-2); }
.ab-type .ico { width: 16px; height: 16px; }
.ab-name { font: 700 1rem/1.2 var(--display); letter-spacing: 0.03em; }
.ab-body { font-size: 0.95rem; line-height: 1.6; color: #e2ddd5; }
.tx-sym { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; vertical-align: -0.3em; border-radius: 5px; background: rgb(255 255 255 / 0.06); margin: 0 1px; color: var(--ink); }
.tx-sym .ico { width: 0.95em; height: 0.95em; }
.tx-res { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.tx-res b, .tx-stat b, .tx-vp b, .tx-pt b { font-weight: 700; color: var(--ink); }
.tx-shard .tx-sym { color: #7fd8ff; } .tx-core .tx-sym { color: #ffb347; } .tx-prism .tx-sym { color: #e48bff; } .tx-axion .tx-sym { color: #9b8cff; }
.tx-abname { font: 700 0.95em var(--display); color: var(--ink); letter-spacing: 0.03em; }
.tx-reminder { font-style: italic; color: var(--muted); font-size: 0.92em; }
.tx-trait { font-weight: 600; color: var(--ink); }
.tx-head { font: 600 0.76em var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: #ffd59a; }
.tx-vp.tx-resonance { color: #ffb0c2; } .tx-vp.tx-dominance { color: #e9cf9e; }
.tx-pt { font-family: var(--mono); }
.tx-caps { font-weight: 700; }
.tx-retired { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 5px; border: 1px dashed var(--warn); color: var(--warn); font: 0.8em var(--mono); }
.tx-fac img { width: 1.2em; height: 1.2em; vertical-align: -0.25em; object-fit: contain; }
.tx-bullet { color: var(--fac); margin: 0 6px 0 10px; }
.tx-lead { margin-right: 4px; }

/* fact lists */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0; font-size: 0.9rem; }
.facts dt { font: 600 0.66rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts-inline { padding-top: 4px; border-top: 1px solid var(--line); }

/* gameplay: small labelled tiles */
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.gp-tile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 9px; background: var(--plate); border: 1px solid var(--line); min-width: 0; }
.gp-wide { grid-column: 1 / -1; }
.gp-k { display: inline-flex; align-items: center; gap: 8px; font: 600 0.66rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.gp-k .ico { width: 16px; height: 16px; }
.gp-v { display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; color: #e8e2d8; }

/* targeting range */
.bm { display: flex; flex-direction: column; gap: 14px; }
.bm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.bm-body { display: grid; grid-template-columns: minmax(0, 420px) minmax(200px, 1fr); gap: 20px; align-items: start; }
.bm-side-col { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.bm-side-col .bm-explain { width: 100%; }
.bm-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bf-pos rect { stroke-width: 1.5; }
.bm-I rect { fill: rgb(79 209 111 / 0.16); stroke: var(--pos-i); }
.bm-N rect { fill: rgb(141 138 134 / 0.16); stroke: var(--pos-n); }
.bm-X rect { fill: rgb(224 72 72 / 0.12); stroke: var(--pos-x); }
.bm-code { fill: var(--ink); font: 600 13px var(--body); pointer-events: none; }
.bm-X .bm-code { fill: #e88a8a; }
.bm-side { fill: var(--ember); font: 600 10px var(--mono); letter-spacing: 0.2em; }
/* arrow lines drift slowly while shown */
.bf-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 5; animation: lineFlow 1.6s linear infinite; }
@keyframes lineFlow { to { stroke-dashoffset: -19; } }
@media (prefers-reduced-motion: reduce) { .bf-line, .bf-from-glow { animation: none; } }
.bf-line.bm-melee { stroke: var(--melee); }
.bf-line.bm-ranged { stroke: var(--ranged); }
.bf-line.bm-guard { stroke: var(--guard); stroke-dasharray: 8 4; animation-duration: 1.2s; }
.bm-head.bm-melee path { fill: var(--melee); } .bm-head.bm-ranged path { fill: var(--ranged); } .bm-head.bm-guard path { fill: var(--guard); }
.bf-pos { cursor: pointer; }
.bf-pos:focus { outline: none; }
.bf-pos:focus rect:first-child { stroke: #fff; stroke-width: 2.5; }
.bf-opp rect { fill: rgb(255 255 255 / 0.03); stroke: var(--line-2); }
.bf-opp .bm-code { fill: var(--dim); }
.bf-hit rect { stroke-width: 2.5; }
.bf-hit-melee rect { fill: rgb(79 209 111 / 0.22); stroke: var(--melee); }
.bf-hit-ranged rect { fill: rgb(255 154 46 / 0.22); stroke: var(--ranged); }
.bf-hit-guard rect { fill: rgb(78 168 255 / 0.2); stroke: var(--guard); }
/* the card's own position: amber, with a soft glow pulsing around the inner edge */
.bf-from rect:first-child { fill: rgb(255 176 40 / 0.28); stroke: #ffb328; stroke-width: 2.5; }
.bf-from-glow { fill: none; stroke: #ffd27a; stroke-width: 3; filter: blur(2px); animation: innerGlow 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes innerGlow { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.85; } }
.bf-from .bm-code { fill: #fff; font-weight: 700; }
.bf-pick:hover rect:first-child { stroke: #fff; }
.bm-divide { stroke: var(--line-2); stroke-dasharray: 2 5; }
.bm-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-kinds .chip { padding: 9px 15px; font: 600 0.88rem/1 var(--mono); gap: 8px; }
.bm-kinds .chip:disabled { opacity: 0.35; filter: grayscale(1); }
.bm-swatch { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.bm-swatch.bm-melee { background: var(--melee); } .bm-swatch.bm-ranged { background: var(--ranged); } .bm-swatch.bm-guard { background: var(--guard); }
.chip-melee[aria-pressed="true"] { border-color: var(--melee); background: rgb(79 209 111 / 0.14); }
.chip-ranged[aria-pressed="true"] { border-color: var(--ranged); background: rgb(255 154 46 / 0.14); }
.chip-guard[aria-pressed="true"] { border-color: var(--guard); background: rgb(78 168 255 / 0.12); }
.bm-explain { display: flex; flex-direction: column; gap: 4px; min-height: 6em; font-size: 0.92rem; color: #e2ddd5; padding: 12px 14px; border-radius: 9px; background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); }
.bm-ex-h { font-weight: 600; color: var(--ink); }
.bm-ex-no { color: #ff6b6b; }
.bm-ex-x { color: #ff6b6b; font-weight: 600; }
.bm-k-special { color: #c58cff; }
/* a clicked Restricted position flashes bright red, then stays marked; an unreached opponent position flashes grey */
.bf-marked rect:first-child { stroke: #ff4545; stroke-width: 2.5; fill: rgb(255 69 69 / 0.22); }
.flash-red rect:first-child { animation: flashRed 0.6s ease-out; }
@keyframes flashRed { 0%, 40% { fill: rgb(255 70 70 / 0.75); stroke: #ff9a9a; } 100% { fill: rgb(255 69 69 / 0.22); stroke: #ff4545; } }
.flash-grey rect:first-child { animation: flashGrey 0.6s ease-out; }
@keyframes flashGrey { 0%, 35% { fill: rgb(200 200 200 / 0.45); stroke: #e0e0e0; } 100% { } }
/* special targeting: positions an ability can target directly, in purple with a pulsing border */
.bf-special rect:first-child { fill: rgb(170 90 255 / 0.22); stroke: #b77bff; stroke-width: 2.5; animation: specialPulse 1.6s ease-in-out infinite; }
@keyframes specialPulse { 0%, 100% { stroke-opacity: 0.55; filter: drop-shadow(0 0 0 rgb(183 123 255 / 0)); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgb(183 123 255 / 0.9)); } }
.bf-special-ico { pointer-events: none; opacity: 0.95; }
.bm-special { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bm-special-h { font: 700 0.7rem/1.3 var(--mono); letter-spacing: 0.14em; color: #c58cff; }
.chip-special { text-align: left; white-space: normal; }
.chip-special[aria-pressed="true"] { border-color: #b77bff; background: rgb(170 90 255 / 0.16); color: var(--ink); }
.bm-ex-k { margin-top: 6px; font: 700 0.72rem/1.3 var(--mono); letter-spacing: 0.14em; }
.bm-k-melee { color: var(--melee); } .bm-k-ranged { color: var(--ranged); } .bm-k-guard { color: var(--guard); }
.bm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--muted); }
.bm-leg { display: inline-flex; align-items: center; gap: 6px; }
.bm-leg i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.bm-leg.bm-I i { background: rgb(79 209 111 / 0.3); border: 1px solid var(--pos-i); }
.bm-leg.bm-N i { background: rgb(141 138 134 / 0.3); border: 1px solid var(--pos-n); }
.bm-leg.bm-X i { background: rgb(224 72 72 / 0.25); border: 1px solid var(--pos-x); }
.bm-none { padding: 18px; border-radius: 10px; border: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.bm-none-title { font: 700 1rem var(--display); }

/* lore */
.lore { display: flex; flex-direction: column; gap: 14px; }
.lore-fac { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--fac) 40%, var(--line)); background: var(--plate); }
.lore-fac::before { content: ""; position: absolute; inset: 0; background: var(--art) center 25% / cover no-repeat; opacity: 0.35; }
.lore-fac::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 13 16 / 0.96) 35%, rgb(13 13 16 / 0.6)); }
.lore-fac-txt { position: relative; z-index: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 70ch; }
.lore-fac-name { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1.2 var(--display); letter-spacing: 0.04em; }
.lore-fac-name img { width: 34px; height: 34px; object-fit: contain; }
.lore-items { display: flex; flex-wrap: wrap; gap: 6px; }
.lore-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--plate); color: #e3d3b4; font: 500 0.84rem var(--body); text-decoration: none !important; }
.lore-chip:hover { border-color: #e3c27f; }
.lore-kind { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* related */
.related { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.related .mq { width: 100%; }
.btn-fac { padding: 12px 22px; font: 700 0.88rem/1 var(--mono); letter-spacing: 0.12em; color: #0b0b0e; background: var(--fac); border: 1px solid color-mix(in srgb, var(--fac) 70%, #fff); }
.btn-fac:hover { filter: brightness(1.12); box-shadow: 0 0 22px color-mix(in srgb, var(--fac) 60%, transparent); }
.rel-sugg-h { font: 700 1.15rem/1.2 var(--display); letter-spacing: 0.06em; }
.rel-group { width: 100%; }
.rel-group { display: flex; flex-direction: column; gap: 8px; }
.rel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.rel { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
.rel-img { display: block; width: 100%; aspect-ratio: 5 / 7; border-radius: 5px; overflow: hidden; background: var(--plate); transition: transform 0.3s, box-shadow 0.3s; }
.rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel:hover .rel-img, .rel:focus-visible .rel-img { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 18px rgb(0 0 0 / 0.55), 0 0 0 1px var(--ember); }
.rel-name { font: 600 0.8rem/1.2 var(--body); overflow-wrap: anywhere; }
.rel-id { font: 0.7rem var(--mono); color: var(--muted); }

/* resources */
.res-cols { columns: 2 260px; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.res-cols li { break-inside: avoid; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.res-cols a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.res-cols a:hover { color: var(--ember-2); text-decoration: none; }
.res-cols .ico { width: 12px; height: 12px; color: var(--dim); }
.soon { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.res-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 36px; }
.res-groups section, .page-read > section { display: flex; flex-direction: column; gap: 10px; }

/* pages */
.page { display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.page-head .search { max-width: 420px; }
.page-read { max-width: 980px; }
.back { align-self: flex-start; }
.glossary { margin: 0; display: flex; flex-direction: column; }
.gl-row { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gl-row dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 700 0.98rem/1.3 var(--display); letter-spacing: 0.03em; }
.gl-row dt .ico { width: 18px; height: 18px; color: var(--ember-2); }
.gl-row dd { margin: 0; color: #d9d3ca; font-size: 0.94rem; }
.gl-cat { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.gl-n { margin-left: 10px; font-size: 0.82rem; }
.gl-fac { width: 24px; height: 24px; object-fit: contain; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cat-tab { padding: 7px 12px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--muted); font: 700 0.8rem/1 var(--display); letter-spacing: 0.06em; }
.cat-tab:hover { color: var(--ink); }
.cat-tab[aria-selected="true"] { color: var(--ink); border-color: var(--ember); background: var(--ember-soft); }

/* factions */
.ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ftile { position: relative; overflow: hidden; display: flex; flex-direction: row; gap: 14px; align-items: flex-end; justify-content: flex-start; text-align: left; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: #0c0c0f; color: var(--ink); text-decoration: none !important; min-height: 250px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; isolation: isolate; }
.ftile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art, none) center 22% / cover no-repeat; transition: transform 0.4s ease; }
.ftile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(8 8 10 / 0.96) 8%, rgb(8 8 10 / 0.55) 48%, rgb(8 8 10 / 0.12) 100%); }
.ftile:hover { transform: translateY(-3px); border-color: var(--fac); box-shadow: 0 16px 34px rgb(0 0 0 / 0.5), 0 0 24px color-mix(in srgb, var(--fac) 25%, transparent); }
.ftile:hover::before { transform: scale(1.05); }
.ftile-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-bottom: 4px; }
.ftile-ico { flex: 0 0 auto; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.8)); }
.ftile-name { font: 700 1.4rem/1.1 var(--display); letter-spacing: 0.04em; text-shadow: 0 2px 10px rgb(0 0 0 / 0.9); }
.ftile-q { color: #dcd4c8; font-size: 0.9rem; text-shadow: 0 1px 6px rgb(0 0 0 / 0.9); }
.ftile-n { font: 500 0.72rem var(--mono); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ftile-n .ico { width: 12px; height: 12px; }
.unknown { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.unknown-h { font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1.1 var(--display); letter-spacing: 0.06em; }
.unknown-p { font-size: 1.05rem; color: #d4cec5; }
.ftiles-unknown .ftile { min-height: 210px; }
.ftiles-unknown .ftile::before { filter: saturate(0.85); }
.fhero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; padding: 26px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--fac) 45%, var(--line)); overflow: hidden; isolation: isolate; background: #0b0b0e; }
.fhero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* the faction's artwork crossfades slowly with a gentle zoom */
.fhero-frame { position: absolute; inset: 0; background-size: cover; background-position: center 25%; opacity: 0; animation: fheroFade calc(var(--n) * 8s) linear infinite; animation-delay: calc(var(--i) * 8s - 1s); }
.fhero-frame.fhero-still { opacity: 0.6; animation: fheroZoom 24s ease-in-out infinite alternate; }
@keyframes fheroFade { 0% { opacity: 0; transform: scale(1); } 6% { opacity: 0.6; } 25% { opacity: 0.6; } 33% { opacity: 0; transform: scale(1.07); } 100% { opacity: 0; } }
@keyframes fheroZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .fhero-frame { animation: none; } .fhero-frame:first-child { opacity: 0.6; } }
.fhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 8 10 / 0.95) 25%, rgb(8 8 10 / 0.55) 70%, rgb(8 8 10 / 0.35)); }
.fhero-txt { display: flex; flex-direction: column; gap: 10px; min-width: 0; align-items: flex-start; }
.fhero-ico { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--fac) 60%, transparent)); }
.fhero-name { font: 700 clamp(2.3rem, 1.6rem + 3vw, 3.6rem)/1 var(--display); color: color-mix(in srgb, var(--fac) 30%, #fff); }
.fhero-q { font: italic 1.08rem/1.4 var(--body); color: #efe8dc; }
.fhero-sum { color: #d9d3ca; max-width: 60ch; }
.fhero-cards { min-width: 0; display: flex; flex-direction: column; align-items: stretch; margin: 6px -26px -26px; }
.fhero-cards .mq { width: 100%; }
.fhero-solo { grid-template-columns: minmax(0, 1fr); min-height: 420px; }
.notices { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-left: 2px solid var(--fac); background: rgb(0 0 0 / 0.35); border-radius: 0 8px 8px 0; }
.notice-line { font-size: 0.9rem; color: #d9d3ca; font-style: italic; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; align-items: stretch; }
.pillars { font: 700 0.9rem/1.5 var(--display); letter-spacing: 0.06em; color: color-mix(in srgb, var(--fac) 50%, #fff); }
.pillar { white-space: nowrap; }   /* a pillar never breaks across lines ("The unexpected" stays together) */
.pillar-dot { color: var(--dim); }
.fstat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; align-content: start; }
.fstat { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 8px 7px 10px; border-radius: 7px; background: var(--plate); border: 1px solid var(--line); text-align: left; min-width: 0; }
button.fstat:hover:not(:disabled) { border-color: var(--fac); }
button.fstat:disabled { opacity: 0.45; }
button.fstat[aria-pressed="true"] { border-color: var(--fac); box-shadow: 0 0 0 1px var(--fac) inset; }
.fstat-txt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; text-align: right; }
.fstat b { font: 700 1.15rem/1 var(--body); font-variant-numeric: tabular-nums; }
.fstat-txt span { font: 600 0.58rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fstat-ico { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; }
.fstat-total { border-color: color-mix(in srgb, var(--fac) 50%, var(--line)); }
.btn-open { padding: 12px 22px; font: 700 0.9rem/1 var(--mono); letter-spacing: 0.14em; color: #160800; background: linear-gradient(180deg, #ff9a42, #ff6a0a); border: 1px solid #ffb15c; }
.btn-open:hover { filter: brightness(1.08); box-shadow: 0 0 24px rgb(255 106 10 / 0.6); }
.fcards { display: flex; flex-direction: column; gap: 14px; }
.fcards-h { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.fcards-title { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--display); letter-spacing: 0.06em; color: var(--fac); }

/* boot */
.boot, .boot-error { min-height: 60vh; display: grid; place-content: center; gap: 14px; text-align: center; color: var(--muted); font: 0.9rem var(--mono); padding: 24px; }
.boot-mark { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ember); animation: spin 1s linear infinite; }
.boot-error h1 { font-size: 1.4rem; color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-mark { animation: none; } }

/* narrower screens */
.tapbar { display: none; }
@media (max-width: 1100px) { .topbar-site { display: none; } }
@media (max-width: 980px) {
  .dv-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dv-stage { position: relative; top: 0; }
  .dv-stage .c3d { max-width: 260px; }
  .fhero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .topbar-in { gap: 10px; }
  .brand-t { display: none; }
  .topnav-a { padding: 10px 8px; font-size: 0.8rem; }
  .comm-btn { font-size: 0; gap: 0; padding: 9px; }
  .comm-btn::before { content: "☰"; font-size: 0.95rem; }
  .comm-menu .caret { display: none; }
  .hero { padding-top: 40px; min-height: 0; }
  .ss-box { width: 130px; }
  .play-now { padding: 9px 12px; font-size: 0.78rem; }
  .comm-btn { padding: 9px 10px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .foot-r { align-items: center; justify-self: center; }
  .fstat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bm-body { grid-template-columns: minmax(0, 1fr); }
  .frow-top { flex-wrap: wrap; }
  .hero-fac { width: 58px; height: 58px; } .hero-fac img { width: 48px; height: 48px; }
  .mq-item { width: 112px; }
  .filters { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .fsort { margin-left: 0; }
  .btn-clear { width: 100%; justify-content: center; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .cards-table .m-hide { display: none; }
  .dv-bar { margin: -8px 0 0; }
  .dv-nav { margin-left: 0; width: 100%; }
  .dv-sec { padding: 14px; }
  .gp-row, .gl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dd { margin-bottom: 8px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  body.card-open .main { padding-bottom: 60px; }
  body.card-open .tapbar { display: grid; place-items: center; position: fixed; z-index: 45; border: 0; margin: 0; padding: 0; color: var(--ember-2); background: rgb(13 13 16 / 0.88); backdrop-filter: blur(6px); font: 600 0.75rem/1 var(--mono); letter-spacing: 0.1em; -webkit-tap-highlight-color: transparent; }
  body.card-open .tapbar:disabled { opacity: 0.25; }
  body.card-open .tapbar:not(.tap-b) { background: rgb(13 13 16 / 0.42) !important; }
  body.card-open .tapbar:not(.tap-b):not(:disabled) { opacity: 0.72; }   /* v0.23.0 (user): the edge arrows are semi-transparent */
  .tap-l { left: 0; top: 40%; height: 120px; width: calc(18px + env(safe-area-inset-left, 0px)); padding-left: env(safe-area-inset-left, 0px) !important; border-radius: 0 10px 10px 0; font-size: 1.3rem !important; }
  .tap-r { right: 0; top: 40%; height: 120px; width: calc(18px + env(safe-area-inset-right, 0px)); padding-right: env(safe-area-inset-right, 0px) !important; border-radius: 10px 0 0 10px; font-size: 1.3rem !important; }
  .tap-b { left: 0; right: 0; bottom: 0; height: calc(44px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px) !important; border-top: 1px solid var(--line) !important; }
}

/* v0.7.0 filters: toggles on the left of the ranges row, ranges pushed right; Sort By sits under the search */
.frow-checks { justify-content: flex-start; align-items: center; gap: 10px 28px; }
.franges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fleft .fsort { align-self: flex-start; }
.ti-rar { width: 36px; height: 36px; }

/* v0.7.0 card page */
.variants-h { margin: 8px 0 0; text-align: center; font: 700 0.78rem/1 var(--mono); letter-spacing: 0.22em; color: var(--fac); text-shadow: 0 0 10px color-mix(in srgb, var(--fac) 50%, transparent); }
.cd-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 22px; }
.cd-row { display: flex; flex-direction: column; gap: 4px; padding: 0; border-bottom: 0; }
.cd-row:last-child { grid-column: span 2; }
.cd-lnk { color: var(--ink); border-bottom-color: rgb(255 255 255 / 0.18); }
.cd-lnk:hover { color: var(--ember-2); border-bottom-color: var(--ember-2); }
.cd-sub { margin-top: 18px; }
.kw-sys { border-color: var(--line-2); background: rgb(255 255 255 / 0.06); color: #f1ebe2; }
.related { align-items: center; }
.btn-fac { color: var(--muted); background: var(--plate); border: 1px solid var(--line-2); transition: background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s; }
.btn-fac:hover, .btn-fac:focus-visible { color: #0b0b0e; background: var(--fac); border-color: color-mix(in srgb, var(--fac) 70%, #fff); filter: none; box-shadow: 0 0 26px color-mix(in srgb, var(--fac) 70%, transparent); }

/* v0.7.0 special targeting: name and phrase on separate lines, no heading */
.chip-special { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 9px 13px; }
.sp-name { font: 700 0.74rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #c58cff; }
.sp-text { font: 500 0.86rem/1.3 var(--body); color: var(--ink); }
.bm-ex-ask { color: #c58cff; font-weight: 600; margin-top: 4px; }
.chip-special { border-radius: 10px; }

/* ---------- v0.8.0 (review round 7) ---------- */
/* rarity icons read larger everywhere, except Ultra (its art already fills the frame) */
/* round 10: the official rarity images are trimmed to their edges (tools/convert_icons.py), so they need no enlarging */
.tile-row .ti-rar { width: 38px; height: 38px; margin-top: -5px; }

/* List view: coloured numbers, steady columns, the positions shape */
.cards-table td.c-shards { color: #ffb877; }
.cards-table td.c-atk { color: #ff8f8f; }
.cards-table td.c-def { color: #8fc6ff; }
.cards-table td.c-dom { color: #cfd3da; }
.td-rar img { width: 36px; height: 36px; }
.th-ar { display: inline-block; width: 1em; margin-left: 3px; text-align: center; }
.th-ar.off { visibility: hidden; }
.mini-pos { width: 58px; height: auto; display: block; margin: 0 auto; }
.mini-pos rect { stroke-width: 3; }
.mini-pos .mp-I { fill: rgb(79 209 111 / 0.55); stroke: var(--pos-i); }
.mini-pos .mp-N { fill: rgb(141 138 134 / 0.45); stroke: #a9a6a2; }
.mini-pos .mp-X { fill: rgb(224 72 72 / 0.45); stroke: var(--pos-x); }
@media (min-width: 761px) {
  .cards-table { table-layout: fixed; min-width: 1240px; }
  .cards-table td.name { overflow: hidden; text-overflow: ellipsis; }
  .cards-table .name { width: auto; }
  .col-num { width: 64px; } .col-mark { width: 30px; } .col-name { width: auto; } .col-faction { width: 150px; } .col-cardtype { width: 132px; }
  .col-rarity { width: 118px; } .col-dominance { width: 116px; } .col-shards { width: 92px; } .col-atk { width: 64px; } .col-def { width: 64px; }
  .col-melee, .col-ranged, .col-guard { width: 74px; } .col-positions { width: 92px; }
}

/* home: the tagline sits under the faction name; the artwork fades out towards the right */
.hero-fac-line strong, .hero-fac-sub { display: block; }
.hero-fac-sub { margin: 2px 0 0; }
.hero-frame {
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 58% 46%, #000 35%, rgb(0 0 0 / 0.55) 60%, transparent 92%), linear-gradient(90deg, #000 62%, transparent 98%);
  -webkit-mask-composite: source-in;
          mask-image: radial-gradient(ellipse 62% 70% at 58% 46%, #000 35%, rgb(0 0 0 / 0.55) 60%, transparent 92%), linear-gradient(90deg, #000 62%, transparent 98%);
          mask-composite: intersect; }

/* faction pages: one image at a time (FactionExplorer heroArt); the first fades in slowly */
.fhero-frame, .fhero-frame.fhero-still { opacity: 0; animation: none; transition: opacity 1.8s ease; }
.fhero-frame.on { opacity: 0.6; animation: fheroZoom 12s ease-out forwards; }
.fhero-frame.on.first { transition-duration: 3.2s; }
.fhero-frame.fhero-still.on { animation: fheroZoom 24s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .fhero-frame.on { animation: none; } }
.fstat-txt { align-items: flex-start; text-align: left; }

/* footer */
.foot-logo-a { position: relative; isolation: isolate; }
.foot-logo-a::before { content: ""; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 122 26 / 0.5), rgb(255 90 10 / 0.18) 60%, transparent); filter: blur(18px); }
.foot-join { color: var(--ember); text-shadow: 0 0 12px rgb(255 122 26 / 0.45); }
.foot-about a { color: #d4cec5; }
.foot-about a:hover { color: var(--ember-2); }

/* card page */
.dv-sec-card { margin-top: 48px; }
.cd-icons { position: absolute; right: 6px; bottom: calc(100% + 6px); display: flex; align-items: flex-end; gap: 10px; }
.cdi { height: 40px; width: auto; max-width: 48px; object-fit: contain; }
.cdi-fac { height: 46px; }
.dv-tab.on { border-color: var(--fac); background: color-mix(in srgb, var(--fac) 22%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--fac) 35%, transparent); }
.trace-once { inset: 0; padding: 2px; z-index: 5; filter: drop-shadow(0 0 5px var(--trace-c)); }
.trace-once.go { animation-name: traceRunBright; }
.kw-prime { border-color: #e7b93a; background: rgb(231 185 58 / 0.16); color: #ffd978; }
.kw-impulse { border-color: #c9ced8; background: rgb(201 206 216 / 0.14); color: #eef1f6; }
.kw-cost { border-color: #ff6a3a; background: rgb(255 106 58 / 0.15); color: #ffb08e; }
.kw-upkeep { border-color: #f2a516; background: rgb(242 165 22 / 0.15); color: #ffcb6b; }
.related { align-items: stretch; }
.related-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.related .btn-fac { border-color: var(--fac); color: var(--ink); }
.related .btn-fac:hover, .related .btn-fac:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--fac) 22%, var(--plate)); border-color: var(--fac); box-shadow: 0 0 0 1px var(--fac), 0 0 18px color-mix(in srgb, var(--fac) 55%, transparent); }

/* Battle Map */
.bm-side-col .bm-top { flex-direction: column; justify-content: center; gap: 10px; }
.bm-kinds { justify-content: center; }
.bm-legend { justify-content: center; }
.chip-melee { border-color: var(--melee); background: rgb(79 209 111 / 0.14); }
.chip-ranged { border-color: var(--ranged); background: rgb(255 154 46 / 0.14); }
.chip-guard { border-color: var(--guard); background: rgb(78 168 255 / 0.12); }
.bf-free rect { fill: rgb(255 255 255 / 0.03); stroke: var(--line-2); }
.bf-free .bm-code { fill: var(--dim); }
.bf-at rect:first-child { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 5 3; }
.bf-player { fill: rgb(170 90 255 / 0.08); stroke: #b77bff; stroke-width: 1.5; stroke-dasharray: 6 4; pointer-events: none; }
.bm-side-lit { fill: #c58cff; }
.bm-noplace .bm-none { margin-bottom: 14px; }

/* ---------- v0.9.0 (review round 8) ---------- */
/* carousel: the hovered card and its neighbours grow like a dock */
.mq-item { transition: transform 0.25s ease-out, box-shadow 0.25s ease-out; }
.mq:not(.mq-grab) .mq-item.mq-n2 { transform: scale(1.05); z-index: 1; }
.mq:not(.mq-grab) .mq-item.mq-n1 { transform: scale(1.1); z-index: 2; }
.mq:not(.mq-grab) .mq-item.mq-h, .mq:not(.mq-grab) .mq-item:hover { transform: scale(1.2); z-index: 3; }

/* results fade in one after another (CardGrid sets --d) */
.stagger .tile, .stagger tbody tr { animation: fadeIn 0.38s ease-out backwards; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .stagger .tile, .stagger tbody tr { animation: none; } }

/* header: the search box always shows, beside COMMUNITY */
.topbar-r .ss { display: flex; align-items: center; }
.topbar-r .ss-box { height: 100%; }

/* the bottom bar: sticky while scrolling, then it rests just above the footer */
.devbar { position: sticky; bottom: 0; white-space: pre-wrap; }

/* footer */
.foot-logo-a::before { animation: logoGlow 4.5s ease-in-out infinite; transition: opacity 0.3s; }
@keyframes logoGlow { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
.foot-logo-a:hover::before { animation: none; opacity: 1; filter: blur(14px) brightness(1.5); }
.foot-logo { transition: filter 0.25s; }
.foot-logo-a:hover .foot-logo { filter: brightness(1.15) drop-shadow(0 0 10px rgb(255 140 50 / 0.6)); }
.foot-site { transition: color 0.2s, text-shadow 0.2s; }
.foot-site:hover, .foot-logo-a:hover + .foot-site { color: #ffd2a0; text-shadow: 0 0 12px rgb(255 122 26 / 0.7); text-decoration: none; }
.foot-join { animation: joinGlow 3.8s ease-in-out infinite; }
@keyframes joinGlow { 0%, 100% { text-shadow: 0 0 10px rgb(255 122 26 / 0.35); } 50% { text-shadow: 0 0 16px rgb(255 122 26 / 0.6), 0 0 2px rgb(255 220 180 / 0.6); } }
.foot-about a, .foot-about a em { color: var(--ember); }
.foot-about a:hover { color: var(--ember-2); }
@media (prefers-reduced-motion: reduce) { .foot-logo-a::before, .foot-join { animation: none; } }

/* Unknown faction icons flicker (FactionExplorer flicker) */
.flick { transform: translate(var(--jx, 0), var(--jy, 0)); filter: brightness(1.3) contrast(1.2); }

/* home: room for the two-line faction text, so nothing below it moves; a narrower, stronger feather on the right */
.hero-fac-line { min-height: 3.4em; }
.hero-frame {
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 58% 46%, #000 35%, rgb(0 0 0 / 0.55) 60%, transparent 92%), linear-gradient(90deg, #000 80%, transparent 96%);
          mask-image: radial-gradient(ellipse 62% 70% at 58% 46%, #000 35%, rgb(0 0 0 / 0.55) 60%, transparent 92%), linear-gradient(90deg, #000 80%, transparent 96%); }

/* Factions page */
.unknown { padding-top: 36px; margin-top: 14px; }
.unknown-h { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.ftiles-unknown .ftile { min-height: 250px; }
.ftile-ico { transition: filter 0.35s ease; }
.ftile:hover .ftile-ico, .ftile:focus-visible .ftile-ico { filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.8)) drop-shadow(0 0 16px var(--fac)); }

/* faction pages: the zoom changes by transition, so a frame fading out keeps its size (no jump before the change) */
.fhero-frame, .fhero-frame.fhero-still { transform: scale(1); transition: opacity 1.8s ease, transform 0s linear 1.8s; }
.fhero-frame.on { animation: none; transform: scale(1.07); transition: opacity 1.8s ease, transform 10s ease-out; }
.fhero-frame.on.first { transition: opacity 3.2s ease, transform 10s ease-out; }
/* one image only: fade in, then zoom in, hold, zoom back out, hold, again */
.fhero-frame.fhero-still.on { transform: none; transition: opacity 3.2s ease; animation: fheroBreathe 22s ease-in-out 3.2s infinite; }
@keyframes fheroBreathe { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 55% { transform: scale(1.07); } 92% { transform: scale(1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fhero-frame.on, .fhero-frame.fhero-still.on { animation: none; transform: none; transition: opacity 0.4s; } }
.fpage-unknown .notices { margin-top: 14px; }
.fhero-ico { animation: icoGlow 4s ease-in-out infinite; }
@keyframes icoGlow { 0%, 100% { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--fac) 40%, transparent)); } 50% { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--fac) 80%, transparent)); } }
@media (prefers-reduced-motion: reduce) { .fhero-ico { animation: none; } }

/* Card view */
.tile-row .ti-rar { margin-top: 0; }
.tile-meta { transition: box-shadow 0.35s ease, border-color 0.35s ease; }
.tile:hover .tile-meta, .tile:focus-within .tile-meta { border-color: color-mix(in srgb, var(--fac) 45%, var(--line)); box-shadow: 0 0 16px color-mix(in srgb, var(--fac) 28%, transparent); }
.pager-info { flex: 1 0 100%; margin: 8px 0 0; text-align: center; }

/* List view */
.ar-guard { -webkit-text-stroke: 1.4px currentColor; }
.cards-table th.ctr .th-btn::before { content: ""; display: inline-block; width: calc(1em + 3px); }   /* balances the arrow space, so the label is centred */

/* card page */
.dv-title { align-items: flex-start; }
.dv-title .cd-icons { position: static; flex: 0 0 auto; gap: 12px; margin-top: 4px; }
.dv-title .cdi { height: 52px; max-width: 60px; }
.dv-title .cdi-fac { height: 60px; }
.dv-sec-card { margin-top: 0; }
/* the strip between the header and the section bar: the page under it is blurred and dimmed */
.dv-bar::before { content: ""; position: absolute; left: -40px; right: -40px; bottom: 100%; height: 22px; pointer-events: none; backdrop-filter: blur(16px) brightness(0.35); -webkit-backdrop-filter: blur(16px) brightness(0.35); background: rgb(5 5 6 / 0.55); }
.kw { display: inline-flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.kw-trait { border-color: #b9bec8; background: rgb(185 190 200 / 0.12); color: #eef1f6; }
.kw-upkeep { border-color: #d9560f; background: rgb(217 86 15 / 0.16); color: #ff9a5c; }
/* a light sweeps once across the tags */
.kw-row.sweep .kw::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.28) 50%, transparent 70%); transform: translateX(-120%); animation: tagSweep 1.3s ease-out forwards; }
.kw-row.sweep .kw:nth-child(2)::after { animation-delay: 0.08s; } .kw-row.sweep .kw:nth-child(3)::after { animation-delay: 0.16s; }
.kw-row.sweep .kw:nth-child(4)::after { animation-delay: 0.24s; } .kw-row.sweep .kw:nth-child(n+5)::after { animation-delay: 0.32s; }
@keyframes tagSweep { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .kw-row.sweep .kw::after { display: none; } }
/* all of the card's text in one box */
.ab-box { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--plate); border: 1px solid var(--line); }
.ab-box .ab { padding: 0; background: none; border: 0; border-radius: 0; }
.ab-box .ab + .ab { padding-top: 12px; border-top: 1px solid var(--line); }
.ab-box .ab-ability { border-left: 0; }
.ab-costs { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.92rem; }
.ab-cost b { font: 700 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.ab-cost-add b { color: #ff8a5c; } .ab-cost-up b { color: #ff9a5c; }

/* Range */
.bm-leg i { width: 10px; height: 14px; border-radius: 2px; }   /* card-shaped */
.chip-off { border-color: var(--line-2); background: var(--plate); opacity: 0.4; filter: grayscale(1); }
.bm-explain.asking { border-color: #b77bff; animation: askGlow 1.4s ease-in-out infinite; }
@keyframes askGlow { 0%, 100% { box-shadow: 0 0 0 1px rgb(183 123 255 / 0.4); } 50% { box-shadow: 0 0 0 2px #b77bff, 0 0 22px rgb(183 123 255 / 0.55); } }
.bm-explain.asking .bm-ex-ask { font-size: 1rem; }
.bm-ex-can { color: #6fe08a; font-weight: 600; }
.chip-special.avail { animation: availPulse 1.4s ease-in-out infinite; }
@keyframes availPulse { 0%, 100% { box-shadow: 0 0 0 1px rgb(183 123 255 / 0.35); } 50% { box-shadow: 0 0 0 2px #b77bff, 0 0 14px rgb(183 123 255 / 0.6); } }
/* the placed card: a gold pulsing border, the inside keeps its own colour */
.bf-from rect:first-child { stroke: #ffc233; stroke-width: 3; animation: goldPulse 1.5s ease-in-out infinite; }
.bm-I.bf-from rect:first-child { fill: rgb(79 209 111 / 0.16); }
.bm-N.bf-from rect:first-child { fill: rgb(141 138 134 / 0.16); }
@keyframes goldPulse { 0%, 100% { stroke-opacity: 0.6; filter: drop-shadow(0 0 0 rgb(255 194 51 / 0)); } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgb(255 194 51 / 0.95)); } }
/* positions a Guard arrow reaches: a blue pulsing border */
.bf-hit-guard rect:first-child { animation: guardPulse 1.5s ease-in-out infinite; }
@keyframes guardPulse { 0%, 100% { stroke-opacity: 0.6; filter: none; } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgb(78 168 255 / 0.95)); } }
/* a selected Restricted position keeps pulsing red */
.bf-marked rect:first-child { animation: redPulse 1.3s ease-in-out infinite; }
@keyframes redPulse { 0%, 100% { stroke-opacity: 0.6; filter: none; } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgb(255 69 69 / 0.95)); } }
.flash-green rect:first-child { animation: flashGreen 0.6s ease-out; }
@keyframes flashGreen { 0%, 40% { fill: rgb(80 220 120 / 0.6); stroke: #8ff0a8; } 100% { } }
.bf-line.bm-special-line { stroke: #b77bff; stroke-dasharray: 6 4; }
.bm-head.bm-special path { fill: #b77bff; }
@media (prefers-reduced-motion: reduce) { .bf-from rect:first-child, .bf-hit-guard rect:first-child, .bf-marked rect:first-child, .chip-special.avail, .bm-explain.asking { animation: none; } }

/* ---------- v0.10.0 (review round 9) ---------- */
html, body { overflow-x: clip; }   /* the page never scrolls sideways */

/* parts of the Factions, Mechanics, Lore and Resources pages fade in one after another (dom.js staggerIn sets --d) */
.stagger-in { animation: fadeIn 0.45s ease-out backwards; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .stagger-in { animation: none; } }

/* home: the card scroll sits a little closer to the faction text */
.hero .mq { margin-top: 36px; }

/* carousel dock (CardMarquee): with a mouse, each card is scaled by the script; the box reaches up over the content
   above it so a magnified card has room, and lets clicks through to that content */
@media (hover: hover) and (pointer: fine) {
  .mq { --dock-pad: 90px; padding-top: var(--dock-pad); margin-top: calc(-1 * var(--dock-pad)); pointer-events: none; }
  .mq-sm { --dock-pad: 60px; }
  .hero .mq { margin-top: calc(36px - var(--dock-pad)); }
  .mq-item { pointer-events: auto; transform-origin: 50% 100%; transition: box-shadow 0.25s ease-out; }
  .mq:not(.mq-grab) .mq-item:hover, .mq:not(.mq-grab) .mq-item.mq-h, .mq:not(.mq-grab) .mq-item.mq-n1, .mq:not(.mq-grab) .mq-item.mq-n2 { transform: none; }
  .mq-docking .mq-item:hover { box-shadow: 0 18px 34px rgb(0 0 0 / 0.75); }
}

/* Card view: the box under a card opens it too */
.tile-meta { cursor: pointer; }

/* header: MENU (phones only) and the Community link icon */
.menu { position: relative; display: none; }
.menu-btn { display: flex; align-items: center; gap: 6px; height: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: rgb(20 20 25 / 0.9); color: var(--ink); font: 700 0.8rem/1 var(--display); letter-spacing: 0.12em; }
.menu-btn[aria-expanded="true"], .menu-btn:hover { border-color: var(--ember); }
.menu-drop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; min-width: 190px; display: flex; flex-direction: column; padding: 6px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(10 10 13 / 0.97); box-shadow: 0 16px 34px rgb(0 0 0 / 0.6); }
.menu-drop[hidden] { display: none; }
.menu-a { padding: 12px 14px; border-radius: 7px; color: var(--ink); font: 700 0.9rem/1 var(--display); letter-spacing: 0.08em; text-decoration: none !important; }
.menu-a:hover, .menu-a.on { background: var(--ember-soft); color: var(--ink); }
.menu-a.on { box-shadow: inset 3px 0 0 var(--ember); }
.comm-btn .comm-ico { display: none; }

/* faction pages: Gameplay and Collection outlined in the faction's colour */
.fpage .panel-fac { border-color: color-mix(in srgb, var(--fac) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--fac) 14%, transparent); }

/* card page: the bar's buttons light in the faction's colour; on wide screens ALL CARDS is in the header menu instead */
.detail .dv-bar .btn:hover:not(:disabled), .detail .dv-bar .icon-btn:hover:not(:disabled), .detail .dv-tab:hover { border-color: var(--fac); box-shadow: 0 0 14px color-mix(in srgb, var(--fac) 40%, transparent); }
@media (min-width: 761px) { .dv-all { display: none; } .dv-step { margin-left: 0; } }
.dv-nav-wrap { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.dv-nav-wrap .dv-nav { margin-left: 0; }
.dv-nav-arrow { display: grid; place-items: center; width: 22px; height: 36px; padding: 0 0 4px; font-size: 1.9rem; visibility: hidden; }
.dv-nav-wrap:not(.more):not(.less) .dv-nav-arrow { display: none; }
.dv-nav-wrap .nav-prev { margin-right: 4px; } .dv-nav-wrap .nav-next { margin-left: 4px; }
.dv-nav-wrap.more .nav-next, .dv-nav-wrap.less .nav-prev { visibility: visible; }

/* every section has a faction-coloured outline; the short bright bar on top stays */
.dv-sec { border-color: color-mix(in srgb, var(--fac) 42%, var(--line)); }
.dv-sec::before { height: 3px; top: -2px; border-radius: 2px; }

/* the name, its lore and the larger rarity, type and faction icons */
.dv-head { gap: 4px; }
.dv-title .cd-icons { gap: 8px; }
.dv-title .cdi { height: 64px; max-width: 74px; padding: 5px; border-radius: 10px; box-sizing: content-box; transition: background 0.2s, box-shadow 0.2s; }
.dv-title .cdi-fac { height: 72px; }
.dv-title .cdi-rar { transform: translateY(-6px); }
.dv-title .cdi:hover, .dv-title .cdi:focus-visible { background: color-mix(in srgb, var(--fac) 18%, rgb(255 255 255 / 0.05)); box-shadow: 0 0 14px color-mix(in srgb, var(--fac) 35%, transparent); }

/* Card Details: Positions is one heading over three values that line up with the columns */
.cd-pos-group { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 4px; }
.cd-pos-group .cd-row { grid-column: auto; }
.cd-pos-group .cd-pos-k { color: #b9b3aa; }
@supports not (grid-template-columns: subgrid) { .cd-pos-group { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; } }

/* Card Text: room under the tags, larger symbols, key terms in colour */
.abilities .kw-row { margin-bottom: 8px; }
.ab-body .tx-sym { width: 1.6em; height: 1.6em; vertical-align: -0.42em; }
.ab-body .tx-sym .ico { width: 1.15em; height: 1.15em; }
.ab-body .tx-fac img { height: 1.5em; }
.tx-atk, .tx-pt-a { color: #ffa3a3; }
.tx-def, .tx-pt-d { color: #a9d4ff; }
.tx-dmg { color: #ffb37f; }
.tx-plus { color: #7fe29b; }
.tx-minus { color: #ff7f7f; }

/* the card's foil and glare show only while it is pointed at, touched or tilted */
.c3d-glare { opacity: calc(var(--on) * 0.7); }
.c3d-foil-holo { opacity: calc(var(--on) * 0.9); }

/* alternate arts light up when pointed at; character buttons under the card */
.var { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.var:hover, .var:focus-visible { border-color: var(--fac); box-shadow: 0 0 0 1px var(--fac), 0 0 14px color-mix(in srgb, var(--fac) 55%, transparent); transform: translateY(-2px); }
.dv-chars { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

/* Lore: the card's own lore first; the faction box has no faction colour; lore buttons glow */
.lore-card { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--plate); border: 1px solid var(--line); }
.lore-card-k { margin: 0 0 6px; font: 700 0.7rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lore-card-t { margin: 0; font: italic 1rem/1.55 var(--body); color: #e3d3b4; }
.lore-fac { border-color: var(--line); }
.lore-chip { cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, color 0.2s; }
.lore-chip:hover, .lore-chip:focus-visible { border-color: #e3c27f; color: #fff1d2; box-shadow: 0 0 0 1px rgb(227 194 127 / 0.5), 0 0 18px rgb(227 194 127 / 0.45); }

/* Range: icon tags, the Special tag, the key under the map, the Foundry boxes */
.bm-map-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bm-map-col .bm-legend { justify-content: center; padding-bottom: 4px; }
.bm-kico { width: 17px; height: 17px; }
.bm-kico.bm-melee { color: var(--melee); } .bm-kico.bm-ranged { color: var(--ranged); } .bm-kico.bm-guard { color: var(--guard); } .bm-kico.bm-special { color: #c89bff; }
.chip-sp { border-color: #b77bff; background: rgb(170 90 255 / 0.14); padding: 9px 15px; font: 600 0.88rem/1 var(--mono); gap: 8px; }
.bm-ex-note { font-size: 0.8rem; color: var(--muted); }
.bf-foundry rect { fill: rgb(255 255 255 / 0.02); stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.bf-foundry-t { font: 600 7.5px/1 var(--mono); letter-spacing: 0.06em; fill: var(--dim); }
.bf-foundry-lit rect { fill: rgb(170 90 255 / 0.2); stroke: #b77bff; stroke-dasharray: none; animation: spPulse 1.4s ease-in-out infinite; }
.bf-foundry-lit .bf-foundry-t { fill: #e2cbff; }
@keyframes spPulse { 0%, 100% { stroke-opacity: 0.6; } 50% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgb(183 123 255 / 0.95)); } }
@media (prefers-reduced-motion: reduce) { .bf-foundry-lit rect { animation: none; } }

/* List view: a larger card on hover; the Variant column sorts from its blank header */
.tip-card.tip-card-lg { width: 330px; height: 462px; }
.cards-table th.mark .th-btn { min-width: 100%; justify-content: center; }
.name-mark { display: none; color: var(--muted); font-family: var(--mono); }

/* ---------- v0.10.0 phones ---------- */
@media (max-width: 760px) {
  .topnav-wrap { display: none; }
  .menu { display: block; }
  .topbar-in { gap: 8px; }
  .comm-btn::before { content: none; }
  .comm-btn .comm-ico { display: inline-grid; width: 18px; height: 18px; color: var(--ink); }
  .comm-btn .comm-t { display: none; }
  /* the header fits a 360px phone: the search box takes whatever room is left */
  .topbar-r { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; }
  .topbar-r .ss { flex: 1 1 60px; min-width: 44px; }
  .topbar-r .ss-box { width: 100%; min-width: 0; }
  .menu-btn { padding: 8px 10px; }
  .menu-btn .caret { display: none; }

  /* home: the tagline image as wide as the words Every card */
  .hero-tag { width: min(260px, 72%); }
  .hero-fac-line { min-height: 2.8em; font-size: 1.15rem; }
  .hero-fac-line strong { font-size: 1.25rem; }
  .hero-fac-line.armed { cursor: pointer; }

  /* card page: previous and next beside ALL CARDS; the rarity, type and faction icons under the lore, on the left */
  .dv-bar { column-gap: 8px; }
  .dv-step { margin-left: auto; gap: 6px; }
  .dv-step-l { display: none; }   /* no room beside ALL CARDS; the arrows and the count remain */
  .dv-all { padding: 8px 10px; font-size: 0.74rem; letter-spacing: 0.08em; }
  .dv-nav-wrap { width: 100%; margin-left: 0; }
  .dv-nav-wrap .dv-nav { flex: 1 1 auto; width: auto; }
  .dv-head { display: flex; flex-direction: column; }
  .dv-title { display: contents; }
  .dv-name { order: 1; }
  .dv-lore { order: 2; margin-bottom: 6px; }
  .dv-title .cd-icons { order: 3; justify-content: flex-start; margin: 0 0 14px; }
  .dv-title .cdi { height: 46px; max-width: 54px; } .dv-title .cdi-fac { height: 52px; }

  /* List view: Card #, the name with its variant mark, and the type, rarity and faction icons only */
  .cards-table .mark { display: none; }
  .name-mark { display: inline; }
  .cards-table .td-t { display: none; }
  .cards-table td.td-fac, .cards-table td.td-rarity, .cards-table td.type, .cards-table th.td-fac, .cards-table th.td-rarity, .cards-table th.type { text-align: center; }
  .cards-table .td-ico { justify-content: center; }
  .cards-table { table-layout: auto; min-width: 0; }
  .cards-table th, .cards-table td { padding: 8px 4px; }
  .cards-table th.num, .cards-table td.num { padding-left: 10px; width: 1%; white-space: nowrap; }
  .cards-table th.td-fac, .cards-table th.type, .cards-table th.td-rarity { width: 40px; }
  .cards-table .name { width: auto; padding-right: 6px; }
  .cards-table td.name { white-space: normal; overflow-wrap: break-word; }
  .cards-table .td-ico img { width: 24px; height: 24px; }
  /* the icon columns get short headers */
  .cards-table th.td-fac .th-btn, .cards-table th.type .th-btn, .cards-table th.td-rarity .th-btn { font-size: 0; letter-spacing: 0; gap: 0; justify-content: center; width: 100%; }
  .cards-table th.td-fac .th-btn::before { content: "Fac"; } .cards-table th.type .th-btn::before { content: "Type"; } .cards-table th.td-rarity .th-btn::before { content: "Rar"; }
  .cards-table th.td-fac .th-btn::before, .cards-table th.type .th-btn::before, .cards-table th.td-rarity .th-btn::before { font-size: 0.6rem; letter-spacing: 0.06em; }
  .cards-table th .th-ar { font-size: 0.6rem; }
  .cards-table th .th-ar.off { display: none; }

  /* four page numbers around the current page */
  .pager-far { display: none; }

  /* the bottom bar on two lines */
  .devbar-s { display: block; } .devbar-gap { display: none; }

  /* footer: community first, then the logo and link, then the text */
  .foot-r { order: 1; } .foot-l { order: 2; } .foot-b { order: 3; }
}

/* the bottom bar text: a box, so it can be nudged to line up with the footer (CardExplorer alignBar) */
.devbar-in { display: inline-block; }

/* ---------- v0.11.0 (round 10) ---------- */
/* official symbol images (icons.js IMG) fill their box; the background chip behind card-text symbols goes */
.ico-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tx-sym:has(.ico-img) { background: none; }

/* the bottom bar's trace runs once per header glint, 2 s after it (CardExplorer) */
.trace-line-rtl.trace-once { inset: -2px 0 auto 0; padding: 0; z-index: 3; filter: blur(0.6px) drop-shadow(0 0 6px rgb(255 170 80 / 0.9)); }
.trace-line-rtl.trace-once.go { animation-name: traceRtl; animation-duration: 1.3s; }

/* the bottom bar: a soft glow fades in behind it on hover */
.devbar { transition: background-color 0.35s ease, box-shadow 0.35s ease; }
.devbar:hover { text-decoration: none; background-color: rgb(255 120 30 / 0.12); box-shadow: inset 0 0 26px rgb(255 130 40 / 0.28), 0 0 22px rgb(255 120 30 / 0.22); }

/* COMMUNITY: the icons fade in one after another when the menu opens */
.comm-menu:hover .comm-drop > *, .comm-menu:has(:focus-visible) .comm-drop > * { animation: commIn 0.28s ease-out backwards; }
.comm-menu .comm-drop > :nth-child(2) { animation-delay: 0.03s; } .comm-menu .comm-drop > :nth-child(3) { animation-delay: 0.06s; }
.comm-menu .comm-drop > :nth-child(4) { animation-delay: 0.09s; } .comm-menu .comm-drop > :nth-child(5) { animation-delay: 0.12s; }
.comm-menu .comm-drop > :nth-child(6) { animation-delay: 0.15s; } .comm-menu .comm-drop > :nth-child(7) { animation-delay: 0.18s; }
.comm-menu .comm-drop > :nth-child(8) { animation-delay: 0.21s; } .comm-menu .comm-drop > :nth-child(9) { animation-delay: 0.24s; }
.comm-menu .comm-drop > :nth-child(n+10) { animation-delay: 0.27s; }
@keyframes commIn { from { opacity: 0; transform: translateY(-6px) scale(0.85); } to { opacity: 1; transform: none; } }

/* CLEAR FILTERS glows on hover (round 11: a large orange glow) */
.btn-clear { transition: box-shadow 0.25s ease, filter 0.25s ease; }
.btn-clear:hover, .btn-clear:focus-visible { filter: brightness(1.15); box-shadow: 0 0 0 1px #ffd08a, 0 0 26px 8px rgb(255 106 10 / 0.85), 0 0 70px 22px rgb(255 120 30 / 0.55), 0 0 130px 40px rgb(255 110 20 / 0.28); }

/* List view: a smaller card on hover (tooltip.js atCursor uses the same size) */
.tip-card.tip-card-lg { width: 240px; height: 336px; }

/* card page: a smaller name (two lines at most, such as 0001), the lore closer under it */
.dv-name { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); line-height: 1.08; }
.dv-head { gap: 2px; padding-top: 0; }
.dv-lore { margin-top: 0; }
/* the rarity, type and faction icons in one row, centred on the name; on hover a soft blurred glow, not a box */
.dv-title { align-items: center; }
.dv-title .cd-icons { align-items: center; }
.dv-title .cdi, .dv-title .cdi-fac { height: 60px; max-width: 70px; padding: 0; background: none !important; box-shadow: none !important; transform: none; transition: filter 0.2s; }
.dv-title .cdi:hover, .dv-title .cdi:focus-visible { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--fac) 75%, white)) drop-shadow(0 0 18px color-mix(in srgb, var(--fac) 45%, transparent)); outline: none; }

/* the card bar: starts as a thin strip with a small arrow on the left; the arrow opens it */
.dv-fold { flex: 0 0 auto; width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-2); background: var(--plate); color: var(--fac); font-size: 0.9rem; cursor: pointer; }
.dv-fold:hover { border-color: var(--fac); box-shadow: 0 0 12px color-mix(in srgb, var(--fac) 40%, transparent); }
.dv-bar-closed { padding-top: 4px; padding-bottom: 4px; }
.dv-bar-closed > :not(.dv-fold):not(.dv-expand) { display: none !important; }
.dv-step { transition: transform 0.2s ease; }

/* Card Details: Positions sit on the same row as Guard and Traits (five columns on wide screens) */
@media (min-width: 1100px) {
  .cd-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cd-pos-group { grid-column: span 3; grid-template-columns: subgrid; }
}

/* Card Text: space under the costs; each Ability Type in its symbol's colour */
.ab-costs { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ab-type .ico { width: 20px; height: 20px; }
.ab-type-cast { color: #ef5cff; } .ab-type-counter { color: #ff4a4a; } .ab-type-focus { color: #3d95ff; } .ab-type-latent { color: #ecebe8; }
.ab-type-power { color: #ffd21f; } .ab-type-special { color: #45e3ff; } .ab-type-strike { color: #45f05a; } .ab-type-tactic { color: #ff8a1f; }
.ab-type-ultimate { color: #9c6bff; }
.ab-type[class*="ab-type-"] { text-shadow: 0 0 10px currentColor; }

/* Range: the tags start level with the top of the map; the zone strips; a selected opponent position stays outlined */
.bm-side-col { justify-content: flex-start; }
.bm-side-col .bm-top { justify-content: flex-start; }
.bm-map-col .bm-legend { padding: 0; }
.bf-zone .bf-foundry-t { font-size: 6.5px; }
.bf-picked rect:first-child { stroke-width: 2.5; }
.bf-picked-can rect:first-child { stroke: var(--pos-i); fill: rgb(79 209 111 / 0.2); }
.bf-picked-no rect:first-child { stroke: #ff4545; fill: rgb(255 69 69 / 0.16); }

/* faction pages, Collection: the selected box lit inside; number and label right-aligned, icon on the right */
button.fstat[aria-pressed="true"] { background: color-mix(in srgb, var(--fac) 22%, var(--plate)); }
.fstat { justify-content: space-between; }
.fstat-txt { flex: 1 1 auto; align-items: flex-end; text-align: right; }

@media (max-width: 760px) {
  /* List view: the Faction, Type and Rarity headers written out; the Name column gives up the room */
  .cards-table th.td-fac .th-btn::before { content: "Faction"; } .cards-table th.type .th-btn::before { content: "Type"; } .cards-table th.td-rarity .th-btn::before { content: "Rarity"; }
  .cards-table th.td-fac, .cards-table th.type, .cards-table th.td-rarity { width: 54px; }
  .cards-table th.td-fac .th-btn::before, .cards-table th.type .th-btn::before, .cards-table th.td-rarity .th-btn::before { font-size: 0.56rem; letter-spacing: 0.02em; }
  .dv-title .cdi, .dv-title .cdi-fac { height: 46px; max-width: 54px; }
}

/* ---------- round 11 ---------- */
/* rarity, type and faction icons shown together: one square size each, so they read the same size and height */
.tile-row .ti-rar, .tile-row .ti-type, .tile-row .ti-fac { width: 30px; height: 30px; margin: 0; object-fit: contain; }
.cards-table .td-ico img, .cards-table .td-rar img { width: 30px; height: 30px; }
.dv-title .cdi, .dv-title .cdi-fac { width: 60px; height: 60px; max-width: none; object-fit: contain; }
.cd-icons .cdi { width: 44px; height: 44px; max-width: none; }
/* v0.29.0 (user): the hover glow on the card page icons fades in like every other hover highlight */
.dv-title .cdi { transition: filter 0.3s ease-out; }

/* card page: less room between the lore line and Details */
.dv-head { margin-bottom: 8px; }
.dv-lore { margin-bottom: 4px; }

/* card bar: always open on wide screens (no arrow); on phones the collapsed strip reads TAP TO EXPAND */
.dv-bar-fixed .dv-fold, .dv-bar-fixed .dv-expand { display: none; }
.dv-expand { display: none; }
.dv-bar-closed .dv-expand { display: block; flex: 1 1 auto; text-align: center; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.dv-bar-closed:not(.dv-bar-fixed) { cursor: pointer; }

/* phones: the card opened large over a dimmed page */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 0.86); opacity: 0; transition: opacity 0.22s ease; cursor: zoom-out; touch-action: none; }
.lightbox.on { opacity: 1; }
.lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 14px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.8); transform: scale(0.94); transition: transform 0.22s ease; -webkit-user-select: none; user-select: none; }
.lightbox.on .lightbox-img { transform: none; }

/* Lore: the lore line and the character paragraphs in one box */
.lore-card-more .lore-card-t { margin-bottom: 12px; }
.lore-char { padding-top: 12px; border-top: 1px solid var(--line); }
.lore-char + .lore-char { margin-top: 12px; }
.lore-char-k { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 0.92rem/1.2 var(--display); letter-spacing: 0.04em; color: var(--ink); }
.lore-char-t { margin: 0 0 6px; font-size: 0.94rem; line-height: 1.55; color: #d4cec5; }

/* Range map: faint arrows to a selected opponent position from the card's other positions; an arrow that points
   where no position exists gets a faint line and a dotted outline */
.bf-line-faint { opacity: 0.32; }
.bf-line-ghost { opacity: 0.28; }
.bf-ghost { fill: none; stroke: rgb(255 255 255 / 0.35); stroke-width: 1.5; stroke-dasharray: 4 4; pointer-events: none; }

/* phones */
.btn-clear-m { display: none; }
@media (max-width: 760px) {
  .comm-foot { gap: 7px; flex-wrap: nowrap; }
  .comm-foot .comm-a { width: 27px; height: 27px; }
  .foot-about-l { display: block; }
  .foot-links .dot { display: none; }
  .foot-links { gap: 6px 18px; }
  .foot-r { margin-bottom: 18px; }
  .foot-l { margin-bottom: 18px; }
  /* filters: Sort By at the right above the search; a smaller CLEAR FILTERS left of Card view / List view */
  .frow-top .btn-clear { display: none; }
  .fbottom > .fsort { order: -1; margin-left: auto; }
  .fbottom > .search { flex: 1 1 100%; }
  .fbottom .btn-clear-m { display: inline-flex; order: 8; margin-left: 0; width: auto; padding: 8px 12px; font-size: 0.74rem; letter-spacing: 0.1em; align-self: flex-end; }
  .fbottom .viewsw { margin-left: auto; }
  .fbottom > .pins { order: 7; flex: 1 1 100%; }
  .fbottom > .pins:empty { display: none; }
  /* Range: the Melee, Ranged, Guard and Special tags on one line */
  .bm-kinds { flex-wrap: nowrap; gap: 5px; justify-content: space-between; }
  .bm-kinds .chip { padding: 7px 8px; font-size: 0.72rem; gap: 4px; flex: 0 1 auto; min-width: 0; }
  .bm-kinds .bm-kico { width: 13px; height: 13px; }
  .dv-title .cdi, .dv-title .cdi-fac { width: 46px; height: 46px; }
  .tile-row .ti-rar, .tile-row .ti-type, .tile-row .ti-fac { width: 26px; height: 26px; }
  .cards-table .td-ico img, .cards-table .td-rar img { width: 24px; height: 24px; }
}

/* ---------- round 12 ---------- */
/* CLEAR FILTERS: an even larger glow outside the button on hover */
.btn-clear:hover, .btn-clear:focus-visible { box-shadow: 0 0 0 1px #ffd08a, 0 0 30px 10px rgb(255 106 10 / 0.9), 0 0 90px 34px rgb(255 120 30 / 0.6), 0 0 170px 64px rgb(255 110 20 / 0.32); }

/* card text: larger symbols (Activate, Shard and the others) */
.ab-body .tx-sym { width: 1.9em; height: 1.9em; vertical-align: -0.55em; }
.ab-body .tx-sym .ico { width: 1.4em; height: 1.4em; }

/* card page icons: slightly larger; the glow fades in quickly on hover and fades out on leaving */
.dv-title .cdi, .dv-title .cdi-fac { width: 68px; height: 68px; }
.dv-title .cdi { transition: filter 0.3s ease-out; }

/* header: only the links themselves can be grabbed, and only when they do not all fit */
.topnav { flex: 0 1 auto; cursor: default; }
.topnav-wrap.over .topnav { cursor: grab; }
.topnav-a { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* faction Collection boxes: the number and type stay right-aligned, and the gap before the icon sits in the middle */
.fstat { justify-content: center; gap: 12px; }
.fstat-txt { flex: 1 1 0; align-items: flex-end; text-align: right; }
.fstat-ico { flex: 1 1 0; width: 0; min-width: 30px; object-position: left center; }

/* lightbox: the card itself, sized to the screen, tilts when dragged */
.lightbox-card { width: min(92vw, calc(88vh * 5 / 7)); }
.lightbox-card .c3d { width: 100%; max-width: none; }

@media (max-width: 760px) {
  /* filters: the search and Sort By on one line ("Sort By" on two lines), CLEAR FILTERS level with Card view / List view */
  .fbottom { align-items: center; }
  .fbottom > .search { order: 1; flex: 1 1 0; min-width: 0; }
  .fbottom > .fsort { order: 2; margin-left: 0; gap: 6px; }
  .fbottom > .fsort .flabel { width: 3.2em; white-space: normal; line-height: 1.15; text-align: right; }
  .fbottom > .pins { order: 3; }
  .fbottom { column-gap: 10px; }
  .fbottom .btn-clear-m { order: 4; align-self: center; padding: 8px 9px; font-size: 0.66rem; letter-spacing: 0.06em; }
  .fbottom .viewsw button { padding: 8px 10px; font-size: 0.76rem; gap: 5px; }
  .fbottom .viewsw { order: 5; align-self: center; margin-left: auto; }
  /* card page: the rarity, type and faction icons centred, with room between them */
  .dv-title .cd-icons { justify-content: center; gap: 26px; width: 100%; }
  .dv-title .cdi, .dv-title .cdi-fac { width: 50px; height: 50px; }
  /* the collapsed bar: TAP FOR NAVIGATION centred over the card below it */
  .dv-bar-closed { position: sticky; }
  .dv-bar-closed .dv-expand { position: absolute; left: 0; right: 0; pointer-events: none; }
}

/* ---------- round 13 ---------- */
/* CLEAR FILTERS: a light sweeps across the button on hover (the glow above stays outside it) */
.btn-clear { position: relative; overflow: hidden; isolation: isolate; }
.btn-clear::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%); transform: translateX(-120%); }
.btn-clear:hover::after, .btn-clear:focus-visible::after { animation: clearSweep 0.75s ease-out; }
@keyframes clearSweep { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .btn-clear::after { display: none; } }

/* Card view: the box under a card lights the card above it too */
@media (hover: hover) {
  .tile:has(.tile-meta:hover) .tile-card { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 28px rgb(0 0 0 / 0.6), 0 0 0 2px color-mix(in srgb, var(--fac) 70%, #fff), 0 0 22px color-mix(in srgb, var(--fac) 35%, transparent); }
}

/* List view: rows fade in without moving, so the table never shows a scrollbar while they arrive */
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
.stagger tbody tr { animation-name: fadeOnly; }
.table-wrap { overflow-y: hidden; }

@media (max-width: 760px) {
  /* card page: room between the lore and the rarity, type and faction icons */
  .dv-title .cd-icons { margin-top: 16px; }
}

/* ---------- round 14 ---------- */
/* a light sweeps across PLAY, Card view and List view on hover, as on CLEAR FILTERS */
.play-now, .viewsw button { position: relative; overflow: hidden; isolation: isolate; }
.play-now::after, .viewsw button::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.5) 50%, transparent 70%); transform: translateX(-120%); }
.viewsw button::after { background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.16) 50%, transparent 70%); }
.play-now:hover::after, .play-now:focus-visible::after, .viewsw button:hover::after, .viewsw button:focus-visible::after { animation: clearSweep 0.75s ease-out; }
/* v0.18.0: a brighter, wider light on Card view and List view */
.viewsw button::after { background: linear-gradient(100deg, transparent 18%, rgb(255 236 210 / 0.35) 38%, rgb(255 255 255 / 0.9) 50%, rgb(255 236 210 / 0.35) 62%, transparent 82%); }
.viewsw button:hover::after, .viewsw button:focus-visible::after { animation-duration: 0.85s; }
@media (prefers-reduced-motion: reduce) { .play-now::after, .viewsw button::after { display: none; } }

/* Card view: the box under a card lights the card above it, without making it larger (replaces round 13) */
@media (hover: hover) {
  .tile:has(.tile-meta:hover) .tile-card { transform: none; box-shadow: 0 6px 16px rgb(0 0 0 / 0.5), 0 0 0 2px color-mix(in srgb, var(--fac) 70%, #fff), 0 0 22px color-mix(in srgb, var(--fac) 35%, transparent); }
}

/* List view: never a sideways scrollbar. Between phone width and 1280 px the Melee, Ranged, Guard and Positions
   columns are left out so the table fits (phones already leave them out); 1400 px and wider: every column */
.table-wrap { overflow-x: hidden; }
/* the Positions header with its sort arrow was 13 px wider than its column, which made the table scroll sideways */
@media (min-width: 761px) { .col-positions { width: 108px; } }
@media (min-width: 761px) and (max-width: 1399px) {
  .cards-table { min-width: 0; }
  .cards-table .t-hide { display: none; }
  .col-faction { width: 130px; } .col-cardtype { width: 120px; } .col-rarity { width: 104px; } .col-dominance { width: 100px; } .col-shards { width: 80px; }
}
@media (min-width: 761px) and (max-width: 999px) {
  /* icons only for Faction, Card Type and Rarity */
  .cards-table .td-t { display: none; }
  .col-faction, .col-cardtype, .col-rarity { width: 62px; }
  .cards-table th.td-fac, .cards-table th.type, .cards-table th.td-rarity { font-size: 0.7rem; }
}

/* carousel: the card under the pointer gets a soft glow in its faction's colour, fading in and out */
.mq-item { box-shadow: 0 0 0 rgb(0 0 0 / 0), 0 0 0 0 transparent; }
.mq:not(.mq-grab) .mq-item:hover, .mq-item:focus-visible { box-shadow: 0 14px 28px rgb(0 0 0 / 0.7), 0 0 26px 6px color-mix(in srgb, var(--mq-fac, var(--ember)) 55%, transparent); }

/* card page details: "—" in a subtle grey */
.cd-row dd.cd-none { color: var(--dim); }

/* card page icons: the glow starts the moment the pointer arrives (the resting state already holds a clear glow) */
.dv-title .cdi { filter: drop-shadow(0 0 8px transparent) drop-shadow(0 0 18px transparent); will-change: filter; transition: filter 0.08s linear; }
.dv-title .cdi:hover, .dv-title .cdi:focus-visible { transition: filter 0.08s linear; }

/* Range: a slight light sweeps now and then across the chips that are available (not greyed out) */
.bm-kinds .chip:not(.chip-off), .chip-special { position: relative; overflow: hidden; }
.bm-kinds .chip:not(.chip-off)::after, .chip-special::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.13) 50%, transparent 65%); transform: translateX(-120%); animation: chipSweep 6s ease-in-out infinite; }
.bm-kinds .chip:nth-child(2)::after, .chip-special:nth-child(2)::after { animation-delay: 0.15s; }
.bm-kinds .chip:nth-child(3)::after, .chip-special:nth-child(3)::after { animation-delay: 0.3s; }
.bm-kinds .chip:nth-child(4)::after, .chip-special:nth-child(n+4)::after { animation-delay: 0.45s; }
@keyframes chipSweep { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .bm-kinds .chip::after, .chip-special::after { display: none; } }

/* ---------- round 15 ---------- */
/* Exhaust: two Activate symbols side by side */
.ico.ico-pair, .tx-sym .ico.ico-pair, .ab-body .tx-sym .ico.ico-pair { width: auto; display: inline-flex; gap: 0.06em; }
.ico-img.ico-pair img { width: auto; height: 100%; aspect-ratio: 1; flex: 0 0 auto; }
.tx-sym:has(.ico-pair) { width: auto; padding: 0 0.12em; }

/* Range: the ability toggles no longer have the passing light (the Melee, Ranged, Guard and Special tags keep it) */
.chip-special::after { content: none; animation: none; }
.sp-name { display: inline-flex; align-items: center; gap: 6px; }
.sp-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.bm-ex-ab { display: flex; align-items: center; gap: 7px; }
.bm-ex-ico { width: 20px; height: 20px; flex: 0 0 auto; }

/* Card Details: the values are links without an underline */
.cd-lnk, .cd-lnk:hover { border-bottom: none; }

/* card page: the lore line under the name in a very light tint of the faction's colour */
.dv-lore { color: color-mix(in srgb, var(--fac) 22%, #fff); }

/* card page icons: slightly larger on hover, and a glow behind them that fades in at once (opacity, not a filter) */
.dv-title .cdi, .dv-title .cdi:hover, .dv-title .cdi:focus-visible { filter: none; will-change: auto; }
.cdi-w { position: relative; display: inline-grid; place-items: center; }
.cdi-w::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--fac) 60%, transparent), color-mix(in srgb, var(--fac) 18%, transparent) 70%, transparent); opacity: 0; transition: opacity 0.3s ease-out; }
.cdi-w:hover::before, .cdi-w:focus-within::before { opacity: 1; transition-duration: 0.3s; }
.cdi-w .cdi { position: relative; transition: transform 0.3s ease-out; }
.cdi-w:hover .cdi, .cdi-w .cdi:focus-visible { transform: scale(1.1); outline: none; }
@media (prefers-reduced-motion: reduce) { .cdi-w::before, .cdi-w .cdi { transition: none; } }

/* List view: when columns are left out, the space is shared by every column instead of all given to Name */
@media (min-width: 1000px) and (max-width: 1399px) { .col-name { width: 240px; } }
@media (min-width: 761px) and (max-width: 999px) {
  .col-name { width: 190px; }
  .col-faction, .col-cardtype, .col-rarity { width: 76px; }
  .cards-table th.td-fac, .cards-table th.type, .cards-table th.td-rarity { padding: 10px 4px; text-align: center; }
  .cards-table th.td-fac .th-btn, .cards-table th.type .th-btn, .cards-table th.td-rarity .th-btn { font-size: 0.6rem; letter-spacing: 0.04em; justify-content: center; }
  .cards-table td.td-fac, .cards-table td.type, .cards-table td.td-rarity { text-align: center; }
  .cards-table .td-ico { justify-content: center; }
}
/* phones (#, Name and the three icons): the icon columns widen with the screen, so Name does not take all the room.
   The hidden Variant column comes second, so the visible cells take the first five column widths in order */
@media (max-width: 760px) {
  .cards-table { table-layout: fixed; }
  .cards-table col { width: 0; }
  .cards-table col:nth-child(1) { width: 50px; }
  .cards-table col:nth-child(2) { width: auto; }   /* Name: what is left */
  .cards-table col:nth-child(3), .cards-table col:nth-child(4), .cards-table col:nth-child(5) { width: 13%; }
  .cards-table th.td-fac, .cards-table th.type, .cards-table th.td-rarity { width: auto; }
}

/* v0.17.0 card page: the rarity and type icons a little smaller than the faction icon; each glow takes its icon's
   colour (rarity gem colour; white behind a type, gold behind the gold Prime type icon; faction colour) */
.dv-title .cdi-rar, .dv-title .cdi-type { width: 58px; height: 58px; }
@media (max-width: 760px) { .dv-title .cdi-rar, .dv-title .cdi-type { width: 42px; height: 42px; } }
.cdi-w::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, var(--fac)) 60%, transparent), color-mix(in srgb, var(--glow, var(--fac)) 18%, transparent) 70%, transparent); }

/* v0.17.0: now and then a light sweeps across the lit section tab */
.dv-tab { position: relative; overflow: hidden; }
.dv-tab.on.sweep::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.32) 50%, transparent 70%); transform: translateX(-120%); animation: tagSweep 1.2s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .dv-tab.on.sweep::after { display: none; } }

/* v0.17.0 List view, 761 to 1399 px: every column is a share of the table's width, so the fixed widths can no
   longer add up to more than the screen and push ATK and DEF out of sight */
@media (min-width: 1000px) and (max-width: 1399px) {
  .cards-table { width: 100%; }
  .col-num { width: 6%; } .col-mark { width: 3%; } .col-name { width: 25%; } .col-faction { width: 13%; } .col-cardtype { width: 12%; }
  .col-rarity { width: 11%; } .col-dominance { width: 10%; } .col-shards { width: 8%; } .col-atk { width: 6%; } .col-def { width: 6%; }
}
@media (min-width: 761px) and (max-width: 999px) {
  .cards-table { width: 100%; }
  .col-num { width: 7%; } .col-mark { width: 3%; } .col-name { width: 28%; } .col-faction, .col-cardtype, .col-rarity { width: 9%; }
  .col-dominance { width: 13%; } .col-shards { width: 10%; } .col-atk { width: 6%; } .col-def { width: 6%; }
}

/* v0.18.0 faction page: the play style as one slim bar at the end of the Gameplay panel (replaces the v0.17.0 radar) */
.pstyle { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pstyle-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 500 0.7rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.pstyle-of { letter-spacing: 0.04em; text-transform: none; color: var(--dim); }
.pstyle-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.pstyle-seg { flex: 1 1 0; min-width: 4px; padding: 0; border: 0; background: var(--k); opacity: 0.85; transition: opacity 0.3s, filter 0.3s; }
.pstyle-seg:hover { opacity: 1; filter: brightness(1.2); }
.pstyle-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pstyle-key { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--ink); font: 500 0.8rem/1.2 var(--body); }
.pstyle-key b { color: var(--muted); font: 500 0.74rem/1 var(--mono); }
.pstyle-key:hover { color: var(--k); }
.pstyle-sw { width: 8px; height: 8px; border-radius: 2px; background: var(--k); }

/* ===== v0.17.0: the full site (Site Plan Brief 01, Phase 1 round 1) =====
   Sleek geometry (SP-17, 12.10): thin straight rules, small square markers beside section titles, plenty of empty
   space, one accent colour per page. v0.18.0: panels and buttons take the Card Database's rounded corners (the cut
   corners did not fit, user 2026-11-06). */
:root { --gold: #e8b44a; --gold-2: #ffd98a; }

/* header: the section menu, its floating page list, Shop (outlined gold) and Play Now (filled) */
/* v0.18.0: the section panel spans the header's width; titled columns start under the hovered link */
.tn-drop { position: absolute; left: 0; right: 0; z-index: 80; background: rgb(6 6 8 / 0.97); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgb(0 0 0 / 0.65); backdrop-filter: blur(6px); animation: fadeOnly 0.14s ease-out; }
.tn-drop[hidden] { display: none; }
.tn-drop-in { display: flex; gap: clamp(36px, 5vw, 84px); width: max-content; max-width: calc(100% - 32px); padding: 26px 0 30px; }
.tn-col { display: flex; flex-direction: column; min-width: 150px; }
.tn-col-h { margin: 0 0 10px; font: 700 0.92rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember-2); }
.tn-drop-a { padding: 6px 0; color: var(--ink); font: 400 0.95rem/1.3 var(--body); text-decoration: none !important; white-space: nowrap; transition: color 0.3s, transform 0.3s; }
a.tn-drop-a:hover, a.tn-drop-a:focus-visible { color: var(--ember-2); transform: translateX(3px); outline: none; }
.tn-drop-a.on { color: var(--ember-2); }
.tn-drop-a.tn-all { margin-top: 2px; font-weight: 700; color: #fff; }
.tn-drop-a.is-soon { color: var(--dim); cursor: default; display: flex; align-items: center; gap: 8px; }
.tn-soon { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.14em; color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; }
/* the open section's link: a small notch under it, pointing at the panel */
.topnav-a.open { color: var(--ink); }
.tn-notch { position: absolute; top: -1px; width: 0; height: 0; border: 7px solid transparent; border-top-color: var(--ember); border-bottom: 0; transform: translateX(-50%); filter: drop-shadow(0 0 6px var(--ember)); }
/* v0.18.0: five sections, COMMUNITY, Shop and Play Now fit one line from about 1300 px */
@media (min-width: 761px) {
  .topbar-in { column-gap: 18px; }
  .topnav-a { padding-inline: 10px; }
  .ss-box { width: clamp(110px, 9vw, 170px); }
  .comm-btn { padding: 12px 16px; font-size: 0.9rem; }
}
.menu-col-h { margin: 6px 0 0; padding: 8px 14px 4px 22px; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember-2); }
.menu-head { color: var(--muted); }
.menu-sub.is-soon { display: flex; align-items: center; gap: 8px; color: var(--dim); }
/* COMMUNITY (v0.18.0): the channel icons, then the community pages */
.comm-menu .comm-drop.comm-panel { display: flex; flex-direction: column; gap: 14px; width: 268px; padding: 16px 18px; }
.comm-panel .comm-icons { display: grid; grid-template-columns: repeat(5, 40px); gap: 12px; justify-content: space-between; }
.comm-links { display: flex; flex-direction: column; padding-top: 10px; border-top: 1px solid var(--line); }
.comm-menu.on .comm-btn { border-color: var(--ember); }
.shop-btn { display: grid; place-items: center; padding: 12px 18px; border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 9px; color: var(--gold-2) !important; font: 700 0.9rem/1 var(--display); letter-spacing: 0.14em; text-decoration: none !important; background: rgb(20 20 25 / 0.9); transition: background 0.3s, box-shadow 0.3s; }
.shop-btn:hover, .shop-btn.on { background: rgb(232 180 74 / 0.12); box-shadow: 0 0 14px rgb(232 180 74 / 0.3); }
.menu-sub { padding: 9px 14px 9px 28px; font-size: 0.8rem; color: var(--muted); }
.menu-shop { color: var(--gold-2); }
@media (max-width: 760px) { .shop-btn { display: none; } }

/* page files (content/pages): a reading column, with the Learn pages listed beside it */
.cpage { display: grid; grid-template-columns: minmax(0, 860px); justify-content: center; gap: 34px; padding-bottom: 20px; }
.cpage.cp-has-side { grid-template-columns: 210px minmax(0, 820px); }
.cpage-home { grid-template-columns: minmax(0, 1fr); gap: 0; }
.cp-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cp-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.cp-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.cp-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember-2); }
.cp-h1 { margin: 0; font: 700 clamp(1.9rem, 1.3rem + 2.4vw, 3rem)/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-2); text-shadow: 0 2px 24px rgb(255 140 40 / 0.25); }
.cp-tag { margin: 0; font-size: 1.1rem; color: var(--muted); }
.md-mark { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; background: var(--ember); transform: rotate(45deg); box-shadow: 0 0 8px var(--ember); }
.cp-preview { margin: 0; padding: 12px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--warn); background: rgb(242 180 67 / 0.06); font-size: 0.9rem; color: var(--muted); }
.cp-preview b { color: var(--warn); font-weight: 600; }
.cp-body { display: flex; flex-direction: column; gap: 14px; line-height: 1.65; }
.cp-body > p, .md-list { margin: 0; max-width: 72ch; }
.md-list { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.md-list li::marker { color: var(--ember); }
.md-h2 { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 700 1.25rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2); }
.md-h3 { margin: 10px 0 0; font: 700 1.02rem/1.3 var(--display); letter-spacing: 0.05em; color: var(--ink); }
.md-quote { margin: 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--ember); font-style: italic; color: var(--ink); }
.md-hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.md-img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.md-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* v0.18.0: the same rounded shapes as PLAY NOW and COMMUNITY (no cut corners), with the hover light sweep */
.md-btn { position: relative; overflow: hidden; isolation: isolate; display: inline-grid; place-items: center; padding: 13px 22px; border-radius: 9px; font: 700 0.9rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: filter 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.md-btn-cta { color: #160800 !important; background: linear-gradient(180deg, #ffb062, #ff6a0a); border: 1px solid #ffc488; box-shadow: 0 0 12px rgb(255 106 10 / 0.3); }
.md-btn-cta:hover { filter: brightness(1.1); box-shadow: 0 0 22px rgb(255 120 30 / 0.55); }
.md-btn-line { color: var(--ink) !important; background: rgb(20 20 25 / 0.9); border: 1px solid var(--line-2); }
.md-btn-line:hover { border-color: var(--ember); box-shadow: 0 0 14px rgb(255 122 26 / 0.25); }
.md-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%); transform: translateX(-120%); }
.md-btn:hover::after, .md-btn:focus-visible::after { animation: clearSweep 0.75s ease-out; }
.md-tiles, .md-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.md-tile { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--abyss); border: 1px solid var(--line); border-radius: var(--r); }
.md-tile > * { margin: 0; }
.md-tile-h { margin: 0; font: 700 0.95rem/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2); }
.md-tile .md-list { padding-left: 1.1em; font-size: 0.92rem; }
.md-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.md-steps > li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.md-steps > li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin: 8px 0 0 4px; border: 1px solid var(--ember); color: var(--ember-2); font: 700 1rem/1 var(--display); }
.md-steps .md-tile { border-top-width: 1px; }
.md-box { padding: 18px 20px; background: var(--abyss); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.md-box > p { margin: 0; }
.md-box-h { font: 700 0.85rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-2); }
.md-video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid var(--line-2); }
.md-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-video-btn { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.md-video-ico { position: absolute; left: 50%; top: 50%; width: 78px; height: 54px; transform: translate(-50%, -50%); background: var(--ember); border-radius: 12px; box-shadow: 0 0 24px rgb(255 122 26 / 0.5); }
.md-video-ico::after { content: ""; position: absolute; left: 33px; top: 16px; border-left: 18px solid #160800; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.md-video-btn:hover .md-video-ico { filter: brightness(1.15); }
.md-form { display: flex; flex-direction: column; gap: 8px; }
.md-form iframe { width: 100%; min-height: 900px; border: 1px solid var(--line); background: #fff; }
.md-facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.md-fac { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px; background: var(--abyss); border: 1px solid var(--line); border-left: 3px solid var(--fac); text-decoration: none !important; color: var(--ink); transition: box-shadow 0.3s, border-color 0.3s; }
.md-fac img { grid-row: span 2; width: 48px; height: 48px; object-fit: contain; }
.md-fac-n { font: 700 0.95rem/1.2 var(--display); letter-spacing: 0.06em; color: var(--fac); }
.md-fac-t { font-size: 0.82rem; color: var(--muted); }
.md-fac:hover { box-shadow: 0 0 16px color-mix(in srgb, var(--fac) 35%, transparent); border-color: var(--fac); }
.md-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.md-card img { width: 150px; height: auto; display: block; border-radius: 8px; transition: transform 0.3s; }
.md-card:hover img { transform: translateY(-4px); }
.md-todo { margin: 0; padding: 8px 12px; border: 1px dashed #b77bff; color: #d9bfff; background: rgb(183 123 255 / 0.07); font-size: 0.85rem; }
.md-todo b { font-weight: 600; }
.cp-next { margin-top: 18px; padding: 20px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); background: linear-gradient(180deg, rgb(255 122 26 / 0.07), transparent 70%); display: flex; flex-direction: column; gap: 12px; }
.cp-next-h { margin: 0; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember-2); }
.cp-side { position: sticky; top: calc(var(--topbar-h, 70px) + 18px); align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.cp-side-h { margin: 0 0 8px; padding-left: 14px; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.24em; color: var(--ember-2); text-transform: uppercase; }
.cp-side-a { padding: 8px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 0.92rem; text-decoration: none !important; }
.cp-side-a:hover { color: var(--ink); border-left-color: var(--line-2); }
.cp-side-a.on { color: var(--ink); border-left-color: var(--ember); background: linear-gradient(90deg, var(--ember-soft), transparent); }
.page-loading { min-height: 60vh; }
@media (max-width: 900px) {
  .cpage.cp-has-side { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* narrow screens: the Learn pages as a strip at the top */
  .cp-side { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .cp-side-h { display: none; }
  .cp-side-a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; }
  .cp-side-a.on { border-bottom-color: var(--ember); background: none; }
}

/* home: the hero's pitch and buttons; the home page sections keep a reading width */
.hero-pitch { margin: 0; max-width: 60ch; font-size: 1.08rem; line-height: 1.6; color: var(--ink); text-shadow: 0 2px 12px rgb(0 0 0 / 0.9); }
.cpage-home .cp-body { gap: 22px; }
.cpage-home .cp-body > :not(.hero):not(.mq):not(.md-band) { width: min(100%, 1100px); margin-inline: auto; }

/* the newsletter box: in every footer, and larger inside a page */
.foot-signup { width: min(100% - 32px, 1100px); margin: 56px auto 34px; }
.signup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 20px; border: 1px solid var(--line-2); border-left: 3px solid var(--ember); background: rgb(13 13 16 / 0.8); }
.signup-t { display: flex; flex-direction: column; gap: 4px; }
.signup-h { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1rem/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); }
.signup-p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.signup-row { display: flex; gap: 10px; flex: 1 1 320px; max-width: 460px; }
.signup-row input { flex: 1; min-width: 0; padding: 12px 14px; background: #0a0a0d; border: 1px solid var(--line-2); color: var(--ink); font: 400 0.95rem var(--body); }
.signup-row input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.signup-big { padding: 26px; background: linear-gradient(120deg, rgb(255 122 26 / 0.1), rgb(13 13 16 / 0.85) 55%); }
@media (max-width: 760px) { .signup-row { flex-basis: 100%; max-width: none; } }

/* pages written before the site's prerendered text is replaced: the text a search engine reads, shown plainly */
.prerender { max-width: 860px; margin: 40px auto; padding: 0 16px; color: var(--muted); }
.md-table-w { overflow-x: auto; }
.md-table { border-collapse: collapse; min-width: 420px; font-size: 0.94rem; }
.md-table th, .md-table td { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.md-table th { font: 600 0.74rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-2); border-bottom-color: var(--line-2); }
/* the text a search engine reads is in each built page; people see the page the scripts draw (the text shows only when scripts are off) */
.app .prerender { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* v0.17.0: the phone menu lists every page, so it scrolls when it is taller than the screen */
.menu-drop { max-height: calc(100dvh - var(--topbar-h, 70px) - 24px); overflow-y: auto; overscroll-behavior: contain; }

/* ===== v0.18.0 home page: fewer boxes, more room, one strong image per section =====
   Section titles centred and larger; the mechanics as six numbered points (no boxes); the Card Database as a fanned
   hand of cards; the factions as the Factions page's art tiles; the story as a full-width band over artwork. */
.cpage-home .cp-body { gap: 26px; }
.cpage-home .md-h2 { justify-content: center; margin-top: 84px; padding-bottom: 0; border: 0; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); letter-spacing: 0.1em; text-align: center; }
.cpage-home .md-h2 .md-mark { display: none; }
.cpage-home .md-h2::after { content: none; }
.cpage-home .md-h2 { flex-direction: column; gap: 14px; }
.cpage-home .md-h2::before { content: ""; order: 2; width: 64px; height: 2px; background: var(--ember); box-shadow: 0 0 12px var(--ember); }
.cpage-home .cp-body > p { text-align: center; margin-inline: auto; color: #c9c2b8; }
.cpage-home .md-btns { justify-content: center; }
.cpage-home .md-video { width: min(100%, 960px); margin-inline: auto; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / 0.6), 0 0 40px rgb(255 122 26 / 0.12); }
.md-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; counter-reset: ft; }
.md-features .md-tile { counter-increment: ft; padding: 0 0 0 18px; background: none; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; transition: border-color 0.2s; }
.md-features .md-tile::before { content: counter(ft, decimal-leading-zero); font: 600 0.74rem/1 var(--mono); letter-spacing: 0.2em; color: var(--ember-2); }
.md-features .md-tile:hover { border-left-color: var(--ember); }
.md-features .md-tile-h { font-size: 1.02rem; color: var(--ink); }
.md-features .md-tile p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .md-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .md-features { grid-template-columns: minmax(0, 1fr); } }
.ftiles-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ftiles-home .ftile { min-height: 300px; }
@media (max-width: 1100px) { .ftiles-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ftiles-home { grid-template-columns: minmax(0, 1fr); } .ftiles-home .ftile { min-height: 220px; } }
/* the story band reaches the screen's edges */
.cpage-home .cp-body > .md-band { width: auto; margin: 84px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; }
.md-band { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 16px; background: var(--void); border-block: 1px solid var(--line); isolation: isolate; }
.md-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art) center 30% / cover no-repeat; animation: fheroBreathe 26s ease-in-out infinite; }
.md-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgb(5 5 6 / 0.55), rgb(5 5 6 / 0.92) 75%), linear-gradient(0deg, var(--void), transparent 30%, transparent 70%, var(--void)); }
.md-band-in { width: min(100%, 760px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.md-band-in > p { font-size: 1.08rem; color: var(--ink); text-shadow: 0 2px 12px rgb(0 0 0 / 0.9); }
.cpage-home .md-band .md-h2 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .md-band::before { animation: none; } }
.cpage-home .hero { min-height: min(92vh, 920px); }
.md-band::after { background: radial-gradient(ellipse at center, rgb(5 5 6 / 0.45), rgb(5 5 6 / 0.9) 78%), linear-gradient(0deg, var(--void), transparent 30%, transparent 70%, var(--void)); }
.cpage-home .cp-next { align-items: center; text-align: center; width: min(100%, 1100px); margin-inline: auto; }

/* ===== v0.18.0 card page ===== */
/* the name in a light tint of the faction's colour, the lore line under it in white (swapped from v0.16.0) */
.dv-name { color: color-mix(in srgb, var(--fac) 55%, #fff); }
.dv-lore { color: #fff; }
/* the icon glows: softer and wider (more blur) */
.cdi-w::before { inset: -34%; filter: blur(10px); }
/* the Common rarity icon is smaller than the others */
.dv-title .cdi-rar.cdi-common { width: 44px; height: 44px; }
@media (max-width: 760px) { .dv-title .cdi-rar.cdi-common { width: 32px; height: 32px; } }
/* ALL FACTION CARDS: now and then a light sweeps across it */
.btn-fac { position: relative; overflow: hidden; isolation: isolate; }
.btn-fac::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%); transform: translateX(-120%); animation: facSweep 7s ease-in-out 2s infinite; }
@keyframes facSweep { 0%, 82% { transform: translateX(-120%); } 96%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .btn-fac::after { animation: none; display: none; } }

/* ===== v0.19.0: review round of v0.18.0 ===== */
/* 2. a wider page body: less empty space left and right */
.main { max-width: 1720px; }
.cpage { grid-template-columns: minmax(0, 960px); }
.cpage.cp-has-side { grid-template-columns: 220px minmax(0, 960px); }
.cpage.cpage-home { grid-template-columns: minmax(0, 1fr); }
.cpage-home .cp-body > :not(.hero):not(.mq):not(.md-band):not(.cw) { width: min(100%, 1240px); }
.page-read { max-width: 1100px; }
/* 4. NEXT: left-aligned on every page, the home page too */
.cpage-home .cp-next { align-items: flex-start; text-align: left; width: min(100%, 1240px); }
.cp-next .md-btns, .cpage-home .cp-next .md-btns { justify-content: flex-start; }
/* 1. the newsletter box carries a trace when it scrolls into view */
.signup { position: relative; border-radius: var(--r); }
/* 37. the Axion "A" above the newsletter box */
/* v0.23.0: full width (in the page's flex column it shrank to nothing, so the A could vanish, as on Support Development);
   a little space between the A and the NEXT box under it */
.foot-mark { display: grid; place-items: center; width: 100%; margin: 56px auto 0; }
.foot-mark img { width: 92px; height: auto; opacity: 0.9; filter: drop-shadow(0 0 18px rgb(255 100 20 / 0.35)); }
/* 8. the corner glows fade out and back in */
body.mq-on .corner-glow { opacity: 0; transition: opacity 1.2s ease; }

/* header */
/* 5, 28. a column's first link in bold at the top; "indent" indents the links under it */
.tn-drop-a.tn-first { margin: 0 0 4px; }
.tn-indent .tn-drop-a:not(.tn-first) { padding-left: 14px; }
.menu-sub.tn-first { font-weight: 700; }
/* 16. a wider search box */
@media (min-width: 761px) { .ss-box { width: clamp(136px, 10.8vw, 230px); } }
@media (min-width: 761px) and (max-width: 1440px) { .topbar-in { column-gap: 12px; } .topnav-a { padding-inline: 7px; } }
/* 17. COMMUNITY: wide enough for every channel icon, its left edge under the button's left edge */
.comm-menu { position: relative; }
.comm-menu .comm-drop.comm-panel { left: 0; right: auto; width: max-content; }
.comm-panel .comm-icons { justify-content: start; }
/* 18. a light sweeps across SHOP on hover */
.shop-btn { position: relative; overflow: hidden; isolation: isolate; }
.shop-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 225 150 / 0.45) 50%, transparent 70%); transform: translateX(-120%); }
.shop-btn:hover::after, .shop-btn:focus-visible::after { transform: translateX(120%); transition: transform 0.7s ease-in-out; }
/* 19. a glow fades in behind the emblem and the wordmark on hover */
.brand { position: relative; isolation: isolate; }
.brand::before { content: ""; position: absolute; inset: -14px -26px; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 110 20 / 0.32), rgb(255 110 20 / 0.08) 60%, transparent); filter: blur(8px); opacity: 0; transition: opacity 0.45s ease; }
.brand:hover::before, .brand:focus-within::before { opacity: 1; }
/* 20. a header panel fades out when the pointer leaves it */
.tn-drop { transition: opacity 0.26s ease; }
.tn-drop.closing { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .shop-btn::after, .brand::before, .tn-drop { transition: none; } }

/* home page */
/* 9. 1-4 Players, 30-60+ Minutes, Ages 13+, Digital and physical (the old home page's images) */
.md-box.md-facts { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 48px); padding: 0; background: none; border: 0; margin-top: 18px; }
.md-box.md-facts .md-img { width: clamp(96px, 11vw, 150px); border: 0; filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.6)); }
/* 10. one small picture under each mechanic's heading, dimmed until pointed at */
.md-features .md-img { order: -1; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); opacity: 0.72; filter: saturate(0.85); transition: opacity 0.25s, filter 0.25s; }
.md-features .md-tile:hover .md-img { opacity: 1; filter: none; }
.md-features .md-tile::before { order: -2; }
/* 11. the moving card wall */
.cw, .cpage-home .cp-body > .cw { width: auto; margin: 6px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 10px; overflow: hidden; perspective: 1400px; padding: 26px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cw-tilt { display: flex; flex-direction: column; gap: 14px; transform: rotateX(14deg) rotateZ(-2deg); transform-style: preserve-3d; }
.cw-track { display: flex; gap: 14px; width: max-content; animation: cwDrift var(--dur, 90s) linear infinite; }
.cw-rev .cw-track { animation-direction: reverse; }
.cw-row:hover .cw-track, .cw-row:focus-within .cw-track { animation-play-state: paused; }
@keyframes cwDrift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.cw-c { position: relative; flex: 0 0 auto; width: clamp(96px, 9vw, 142px); aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 18px rgb(0 0 0 / 0.55); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.cw-c img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cw-c:hover, .cw-c:focus-visible { z-index: 5; transform: translateZ(60px) scale(1.32); box-shadow: 0 20px 40px rgb(0 0 0 / 0.7), 0 0 26px color-mix(in srgb, var(--fac) 70%, transparent); outline: none; }
@media (prefers-reduced-motion: reduce) { .cw-track { animation: none; } }
@media (max-width: 560px) { .cw-c { width: 84px; } .cw-tilt { gap: 10px; } }
/* the video's plain link (pages that block embedded videos) */
.md-video-link { display: block; margin-top: 10px; text-align: center; font-size: 0.86rem; }

/* page files: picture tiles */
.md-products .md-img, .md-projects .md-img { order: -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.md-products .md-tile { gap: 10px; }
.md-products .md-tile:has(> .md-img + .md-img) { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.md-products .md-tile:has(> .md-img + .md-img) > :not(.md-img) { grid-column: 1 / -1; }
.md-products .md-tile:has(> .md-img + .md-img) .md-img { aspect-ratio: 5 / 7; }
.md-products .md-img[src*="coming-soon"] { opacity: 0.55; }
.md-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .md-projects { grid-template-columns: minmax(0, 1fr); } }

/* 29. the Factions page: larger, wide tiles, then the Unknown factions */
.ftiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ftiles-wide .ftile { min-height: 0; aspect-ratio: 16 / 7; padding: 22px 24px; }
.ftiles-wide .ftile::before { background-position: center 25%; }
.ftiles-wide .ftile-ico { width: 96px; height: 96px; }
.ftiles-wide .ftile-name { font-size: 1.7rem; }
.ftiles-unknown.ftiles-wide .ftile { min-height: 0; }
@media (max-width: 760px) { .ftiles-wide { grid-template-columns: minmax(0, 1fr); } .ftiles-wide .ftile { aspect-ratio: 16 / 8; } .ftiles-wide .ftile-ico { width: 70px; height: 70px; } }

/* faction pages */
/* 12. the play style in its own row, from Gameplay's left edge to the view buttons */
.fcards-h { align-items: stretch; flex-wrap: nowrap; gap: 14px; }
.fcards-h .pstyle { flex: 1 1 auto; margin: 0; padding: 14px 18px; border-top: 1px solid color-mix(in srgb, var(--fac) 70%, transparent); }
.fcards-h .viewsw { align-self: flex-end; }
.pstyle.hl .pstyle-seg:not(.on) { opacity: 0.22; }
.pstyle-seg.on { opacity: 1; filter: brightness(1.25); }
@media (max-width: 760px) { .fcards-h { flex-wrap: wrap; } .fcards-h .viewsw { align-self: auto; margin-left: auto; } }
/* 13. Gameplay and Collection the same height */
.fcols { align-items: stretch; }
.fcols > .panel { height: 100%; }
/* 14. DISCOVER THE LORE */
.btn-lore { align-self: flex-start; display: inline-grid; place-items: center; margin-top: 6px; padding: 12px 22px; border-radius: 9px; background: var(--fac); color: #0b0b0e !important; font: 700 0.86rem/1 var(--display); letter-spacing: 0.14em; text-decoration: none !important; box-shadow: 0 0 18px color-mix(in srgb, var(--fac) 45%, transparent); transition: filter 0.3s, box-shadow 0.3s; }
.btn-lore:hover, .btn-lore:focus-visible { filter: brightness(1.12); box-shadow: 0 0 26px color-mix(in srgb, var(--fac) 70%, transparent); outline: none; }

/* card page */
/* 21. the name in the same light faction colour as the faction page's name */
.dv-name { color: color-mix(in srgb, var(--fac) 30%, #fff); }
/* 22. the lore line indented */
.dv-lore { padding-left: 1.25rem; }
/* 23. the type, faction and rarity icons fade in one after another */
.dv-title .cd-icons .cdi-w { animation: fadeOnly 0.5s ease-out backwards; }
.dv-title .cd-icons .cdi-w:nth-child(1) { animation-delay: 0.25s; }
.dv-title .cd-icons .cdi-w:nth-child(2) { animation-delay: 0.5s; }
.dv-title .cd-icons .cdi-w:nth-child(3) { animation-delay: 0.75s; }
/* 24. an icon's glow fades out when the pointer leaves, even after a click (only keyboard focus keeps it lit) */
.cdi-w:focus-within:not(:hover):not(:has(:focus-visible))::before { opacity: 0; }
/* 25. the lit section tab fades out as the next one fades in */
.dv-tab { transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, color 0.45s ease; }
@media (prefers-reduced-motion: reduce) { .dv-title .cd-icons .cdi-w { animation: none; } .dv-tab { transition: none; } }
/* 27. the card lightbox on every screen */
.detail .dv-stage .c3d { cursor: zoom-in; }
.lightbox .c3d { cursor: zoom-out; }

/* 31-34. the Glossary: GAMEPLAY and STORY, search and RANDOM */
.gl-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.gl-search .search { flex: 1 1 260px; }
.gl-random { padding-inline: 18px; letter-spacing: 0.14em; }
.gl-kinds { display: flex; gap: 8px; margin-bottom: 10px; }
.gl-kind { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 9px; background: rgb(255 255 255 / 0.03); color: var(--muted); font: 700 0.9rem/1 var(--display); letter-spacing: 0.16em; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.gl-kind:hover { color: var(--ink); border-color: var(--ember); }
.gl-kind[aria-selected="true"] { color: var(--ink); border-color: var(--ember); background: var(--ember-soft); }
.gl-picked { border-left: 2px solid var(--ember); padding-left: 12px; animation: fadeOnly 0.35s ease-out; }

/* ===== v0.20.0: review round of v0.19.0 ===== */
/* a light that sweeps across a button once on hover (Glossary GAMEPLAY, STORY and RANDOM; DISCOVER THE LORE; buttons below) */
.hsweep, .btn-lore, .md-band .md-btn, .cpage-home .cp-body > .md-btns .md-btn-cta { position: relative; overflow: hidden; isolation: isolate; }
.hsweep::after, .btn-lore::after, .md-band .md-btn::after, .cpage-home .cp-body > .md-btns .md-btn-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.32) 50%, transparent 70%); transform: translateX(-120%); }
.hsweep:hover::after, .hsweep:focus-visible::after, .btn-lore:hover::after, .btn-lore:focus-visible::after, .md-band .md-btn:hover::after, .cpage-home .cp-body > .md-btns .md-btn-cta:hover::after { transform: translateX(120%); transition: transform 0.7s ease-in-out; }

/* Glossary */
/* 1. RANDOM: the Shuffle icon, and a glow that fades in and out on each click */
.gl-random { display: inline-flex; align-items: center; gap: 8px; }
.gl-random-ico { width: 17px; height: 17px; }
.gl-random.glow { animation: rndGlow 1.1s ease-in-out; }
@keyframes rndGlow { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 122 26 / 0); border-color: var(--line-2); } 40% { box-shadow: 0 0 0 1px var(--ember), 0 0 24px 4px rgb(255 122 26 / 0.55); border-color: var(--ember); } }

/* header */
/* 5. the "A" icon and the text logo act as one: pointing at either lights both, with the glow behind them */
.brand-emblem-a:hover .brand-emblem { filter: drop-shadow(0 0 10px rgb(255 100 20 / 0.35)); }
.brand-emblem, .brand-word { transition: filter 0.45s ease; }
.brand:hover .brand-emblem, .brand:focus-within .brand-emblem, .brand:hover .brand-word, .brand:focus-within .brand-word { filter: drop-shadow(0 0 12px rgb(255 120 30 / 0.6)); }
/* 6. a little empty space between the text logo and LEARN */
@media (min-width: 761px) { .brand { margin-right: 18px; } }
/* 7. when the section links do not all fit, the MENU button replaces them (no cut-off words, no arrows) */
@media (min-width: 761px) {
  .topbar.use-menu .topnav-wrap { visibility: hidden; flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; }
  .topbar.use-menu .menu { display: block; }
  .topbar.use-menu .nav-arrow { display: none !important; }
}
/* 7. laptop widths: a narrower search box, so the section links still fit beside it */
@media (min-width: 761px) and (max-width: 1440px) { .ss-box { width: clamp(100px, 7.6vw, 150px); } }
/* v0.22.0 (user): the search box is a little wider, so all of "Search" shows */
@media (min-width: 761px) { .ss-box { min-width: 112px; } }
/* 4. phones (COMMUNITY is the link icon): a shorter search box, SHOP shown whole, the COMMUNITY panel inside the screen */
@media (max-width: 760px) {
  .brand-emblem { width: 44px; height: 44px; }
  .topbar-r .ss { flex: 0 1 44px; }
  .shop-btn { display: grid; flex: 0 0 auto; padding: 8px 8px; font-size: 0.74rem; letter-spacing: 0.1em; white-space: nowrap; }
  .play-now { flex: 0 0 auto; max-width: 66px; padding-inline: 8px; line-height: 1.1; text-align: center; white-space: normal; }
  .topbar-r { gap: 5px; }
  .comm-menu { position: static; }
  .comm-menu .comm-drop.comm-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h, 64px) - 4px); width: auto; max-width: none; }
  .comm-panel .comm-icons { grid-template-columns: repeat(auto-fill, 40px); justify-content: space-between; }
}
/* 8. the page body even wider */
.main { max-width: 1880px; }
.cpage { grid-template-columns: minmax(0, 1100px); }
.cpage.cp-has-side { grid-template-columns: 220px minmax(0, 1100px); }
@media (max-width: 900px) { .cpage.cp-has-side { grid-template-columns: minmax(0, 1fr); gap: 18px; } }   /* phones and tablets keep one column (the wider rules above had overridden it since v0.19.0) */
.cpage.cpage-home { grid-template-columns: minmax(0, 1fr); }
.cpage-home .cp-body > :not(.hero):not(.mq):not(.md-band):not(.cw) { width: min(100%, 1400px); }
.cpage-home .cp-next { width: min(100%, 1400px); }
/* 9. the footer: JOIN THE COMMUNITY is a link; Terms and Privacy Policy stay on one line */
.foot-join a { color: inherit; text-decoration: none !important; }
.foot-join a:hover, .foot-join a:focus-visible { color: #fff; }
.foot-pair { display: inline-flex; gap: 10px; white-space: nowrap; }
@media (max-width: 760px) { .foot-pair { gap: 18px; } }

/* home page */
/* 10. the full logo, with "Forge the future" under it */
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: min(460px, 78%); height: auto; filter: drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)); }
.hero-in-home .hero-tag { width: min(380px, 70%); margin-top: -6px; }
/* 11. PLAY NOW and LEARN THE RULES at the left */
.cpage-home .hero-btns { justify-content: flex-start; }
/* 13. the four facts in a column in the hero's top right corner, smaller, glowing on hover */
.cpage-home .cp-body { position: relative; }
.cpage-home .cp-body > .md-box.md-facts { position: absolute; z-index: 2; top: 20px; right: clamp(8px, 2vw, 36px); width: auto !important; margin: 0 !important; flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.cpage-home .md-box.md-facts .md-img { width: clamp(64px, 5.4vw, 92px); transition: filter 0.35s ease; }
.cpage-home .md-box.md-facts .md-img:hover { filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.6)) drop-shadow(0 0 14px rgb(255 130 40 / 0.75)); }
@media (max-width: 760px) { .cpage-home .cp-body > .md-box.md-facts { top: 10px; right: 6px; gap: 6px; } .cpage-home .md-box.md-facts .md-img { width: 50px; } .hero-in-home { padding-right: 52px; } }
/* 14. a mechanic's picture opens its page, as its title does */
.md-img-a { display: block; order: -1; line-height: 0; border-radius: 8px; overflow: hidden; }
.md-tile-h a { color: inherit; }
.md-tile-h a:hover { color: var(--ember-2); }
/* 16. more space above WHAT IS AXION FORGE?, filled, with an orange glow on hover and a light sweep */
.cpage-home .md-features + .md-btns { margin-top: 40px; }
.cpage-home .cp-body > .md-btns .md-btn-cta { transition: box-shadow 0.4s ease, filter 0.2s; }
.cpage-home .cp-body > .md-btns .md-btn-cta:hover, .cpage-home .cp-body > .md-btns .md-btn-cta:focus-visible { box-shadow: 0 0 26px 4px rgb(255 122 26 / 0.6); }
/* 17-20. the card wall: rows moved by script (drag and momentum), the lifted card above every row, larger and sharp */
.cw-track { animation: none; will-change: transform; }
.cw-row { position: relative; z-index: 1; cursor: grab; touch-action: pan-y; }
.cw-row.cw-dragging { cursor: grabbing; }
.cw-row.cw-dragging .cw-c { pointer-events: none; }
.cw-row:hover, .cw-row:focus-within { z-index: 3; }
.cw-c { -webkit-user-drag: none; user-select: none; }
.cw-c img { pointer-events: none; }
.cw-c:hover, .cw-c:focus-visible { z-index: 5; transform: translateZ(80px) scale(1.42); backface-visibility: hidden; }
.cpage-home .cp-body > .cw { width: auto !important; margin: 6px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 10px !important; padding: 46px 0 56px; }

/* 21. Discover the factions: wider, more rectangular tiles, three per row, then the Unknown tile */
.ftiles-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ftiles-home .ftile { min-height: 0; aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .ftiles-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ftiles-home { grid-template-columns: minmax(0, 1fr); } .ftiles-home .ftile { min-height: 0; } }
.ftile-cycle { padding: 0; }
.ftile-cycle::before { display: none; }
.ftile-u { position: absolute; inset: 0; isolation: isolate; display: flex; gap: 14px; align-items: flex-end; padding: 18px; opacity: 0; transition: opacity 0.9s ease; }
.ftile-u.on { opacity: 1; }
.ftile-u::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art) center 22% / cover no-repeat; filter: saturate(0.85); transition: transform 0.4s ease; }
.ftile-u::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(8 8 10 / 0.96) 8%, rgb(8 8 10 / 0.55) 48%, rgb(8 8 10 / 0.12) 100%); }
.ftile-cycle:hover .ftile-u::before { transform: scale(1.05); }
.ftile-cycle:hover .ftile-u .ftile-ico, .ftile-cycle:focus-visible .ftile-u .ftile-ico { filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.8)) drop-shadow(0 0 16px var(--fac)); }
/* 23. The story: one line per paragraph on wide screens; on phones each sentence on its own line */
.cpage-home .md-band-in { width: min(100%, 1100px); }
@media (min-width: 1000px) { .md-band-in > p:has(.md-s) { white-space: nowrap; } }
@media (max-width: 760px) { .md-band-in > p .md-s { display: block; } }

/* Factions page */
/* 24. four rectangular tiles per row, about 16:9 */
.ftiles-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ftiles-wide .ftile { aspect-ratio: 16 / 9; padding: 16px 18px; }
.ftiles-wide .ftile-ico { width: 72px; height: 72px; }
.ftiles-wide .ftile-name { font-size: clamp(1.05rem, 0.7rem + 0.6vw, 1.35rem); }
.ftiles-wide .ftile-ico { width: clamp(52px, 4.2vw, 72px); height: clamp(52px, 4.2vw, 72px); }
.cpage[data-path="factions"] { grid-template-columns: minmax(0, 1440px); }
@media (max-width: 1200px) { .ftiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ftiles-wide { grid-template-columns: minmax(0, 1fr); } .ftiles-wide .ftile { aspect-ratio: 16 / 9; } }

/* About page */
/* 26. a project's picture enlarges on hover and opens its link */
.md-projects .md-img-a .md-img { transition: transform 0.4s ease; }
.md-projects .md-tile:hover .md-img, .md-projects .md-img-a:focus-visible .md-img { transform: scale(1.06); }

/* Gameplay › Battle Maps: the working example (the card, then its map) */
.md-bm { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 20px; border: 1px solid var(--line); border-top: 1px solid color-mix(in srgb, var(--fac) 70%, transparent); border-radius: var(--r); background: rgb(255 255 255 / 0.02); }
.md-bm-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.md-bm-card .c3d { width: 100%; }
.md-bm-name { font-size: 0.86rem; text-align: center; }
@media (max-width: 760px) { .md-bm { grid-template-columns: minmax(0, 1fr); padding: 14px; } .md-bm-card .c3d { width: 150px; } }

/* card page */
/* 28. ALL FACTION CARDS filled with the faction's colour; a light sweeps across it on hover only */
.related .btn-fac, .detail .related .btn-fac { color: #0b0b0e; background: var(--fac); border-color: color-mix(in srgb, var(--fac) 70%, #fff); }
.related .btn-fac:hover, .related .btn-fac:focus-visible { color: #0b0b0e; background: var(--fac); filter: brightness(1.1); box-shadow: 0 0 22px color-mix(in srgb, var(--fac) 60%, transparent); }
.btn-fac::after { animation: none; }
.btn-fac:hover::after, .btn-fac:focus-visible::after { transform: translateX(120%); transition: transform 0.7s ease-in-out; }
/* 30. the Melee, Ranged, Guard and Special chips more square */
.bm-kinds .chip { border-radius: 6px; }
/* 31. EXPLORE <FACTION>: a button in the faction's colour */
.btn-explore { border: 0; cursor: pointer; margin-top: 0; }
/* 33. the Archetype tags under the type, faction and rarity icons, in the play style bar's colours */
.dv-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.cd-arch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cd-arch-t { padding: 5px 10px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--k) 70%, transparent); background: color-mix(in srgb, var(--k) 16%, transparent); color: color-mix(in srgb, var(--k) 45%, #fff); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s, box-shadow 0.2s; }
.cd-arch-t:hover, .cd-arch-t:focus-visible { background: color-mix(in srgb, var(--k) 30%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--k) 50%, transparent); outline: none; }
@media (max-width: 760px) { .dv-badges { display: contents; } .cd-arch { order: 4; width: 100%; justify-content: center; margin: -4px 0 14px; } }
/* 35. the icons are links (the pointing hand) */
.cdi-link { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .hsweep::after, .btn-lore::after, .btn-fac::after, .md-band .md-btn::after, .cpage-home .cp-body > .md-btns .md-btn-cta::after { display: none; } .gl-random.glow, .ftile-u { animation: none; transition: none; } }

/* ===== v0.21.0: review round of v0.20.0 (numbers are the items in TODO.md › Now) ===== */
/* header */
/* 27-28. the "A" icon and the wordmark light up separately, and each glow fades out when the pointer leaves (a click no
   longer keeps it lit: only keyboard focus does) */
.brand::before { display: none; }
.brand-emblem-a, .brand-t { position: relative; isolation: isolate; }
.brand-emblem-a::before, .brand-t::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 122 26 / 0.5), rgb(255 90 10 / 0.16) 60%, transparent); filter: blur(12px); opacity: 0; transition: opacity 0.45s ease; }
.brand-emblem-a::before { inset: -10px; }
.brand-t::after { inset: -6px -14px; }
.brand-emblem-a:hover::before, .brand-emblem-a:focus-visible::before, .brand-t:hover::after, .brand-t:focus-visible::after { opacity: 1; }
.brand:hover .brand-emblem, .brand:focus-within .brand-emblem, .brand:hover .brand-word, .brand:focus-within .brand-word { filter: none; }
.brand-emblem { filter: drop-shadow(0 0 10px rgb(255 100 20 / 0.35)); }
.brand-emblem-a:hover .brand-emblem, .brand-emblem-a:focus-visible .brand-emblem { filter: drop-shadow(0 0 14px rgb(255 120 30 / 0.7)); }
/* 30. the header wordmark copies the footer logo: a soft glow that breathes behind it, brighter on hover */
.brand-t::before { content: ""; position: absolute; inset: 0 -10px; z-index: -2; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 122 26 / 0.34), rgb(255 90 10 / 0.1) 60%, transparent); filter: blur(12px); animation: logoGlow 4.5s ease-in-out infinite; }
.brand-t:hover .brand-word, .brand-t:focus-visible .brand-word { filter: brightness(1.15) drop-shadow(0 0 10px rgb(255 140 50 / 0.6)); }
/* 29. narrow windows: COMMUNITY shrinks to its icon before the links give way to MENU */
@media (min-width: 761px) {
  .topbar.tight .comm-btn { padding: 9px 11px; gap: 0; }
  .topbar.tight .comm-btn .comm-t, .topbar.tight .comm-menu .caret { display: none; }
  .topbar.tight .comm-btn .comm-ico { display: inline-grid; width: 18px; height: 18px; color: var(--ink); }
  .topbar.tight .ss-box { width: clamp(96px, 8vw, 140px); }
}
/* 29, 21. the MENU panel: one sub-list per section. Side by side as columns when there is room (a sideways phone, a
   narrow window); on an upright phone each section opens under its name */
.menu-drop { position: fixed; left: auto; right: 12px; top: calc(var(--topbar-h, 70px) - 4px); min-width: 0; width: min(calc(100vw - 24px), 880px); padding: 10px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 10px; }
.menu-sec { display: flex; flex-direction: column; min-width: 0; padding-bottom: 6px; }
.menu-sec-h { display: flex; align-items: center; }
.menu-sec-h .menu-a { flex: 1 1 auto; }
.menu-sec-t { display: none; width: 44px; height: 40px; border: 0; border-radius: 7px; background: none; color: var(--muted); }
.menu-sec-t .caret { display: inline-block; transition: transform 0.25s ease; }
.menu-sec-b { display: flex; flex-direction: column; }
.menu-sec-b > .menu-a { display: block; }
.menu-sec-b > .menu-a.is-soon { display: flex; }
.menu-sec-b .menu-col-h { padding-left: 14px; }
.menu-sec-b .menu-sub { padding-left: 14px; }
.menu-shop { display: block; margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; }
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .menu-sec { padding-bottom: 0; border-bottom: 1px solid var(--line); }
  .menu-sec-t { display: grid; place-items: center; }
  .menu-sec.open .menu-sec-t .caret { transform: rotate(180deg); }
}
@media (max-width: 560px) { .menu-sec-b { display: block; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; } .menu-sec.open .menu-sec-b { max-height: 640px; } }
/* 3. MENU and COMMUNITY: the orange glow fades in on hover, and the open panels fade in with a soft glow */
.menu-btn, .comm-btn { transition: border-color 0.3s ease, box-shadow 0.4s ease; }
.menu-btn:hover, .menu-btn[aria-expanded="true"], .comm-menu:hover .comm-btn, .comm-menu:has(:focus-visible) .comm-btn { box-shadow: 0 0 18px 2px rgb(255 122 26 / 0.45); }
.comm-menu .comm-drop { box-shadow: var(--shadow), 0 0 0 rgb(255 122 26 / 0); transition: opacity 0.25s ease, visibility 0s 0.25s, box-shadow 0.25s ease; }
.comm-menu:hover .comm-drop, .comm-menu:has(:focus-visible) .comm-drop { box-shadow: var(--shadow), 0 0 30px 2px rgb(255 122 26 / 0.3); border-color: rgb(255 122 26 / 0.45); transition: opacity 0.25s ease, visibility 0s, box-shadow 0.6s ease 0.05s, border-color 0.6s ease; }
@media (hover: none) { .comm-menu:focus-within .comm-drop { box-shadow: var(--shadow), 0 0 30px 2px rgb(255 122 26 / 0.3); border-color: rgb(255 122 26 / 0.45); } }
.menu-drop:not([hidden]) { animation: menuIn 0.6s ease-out both; }
@keyframes menuIn { 0% { opacity: 0; transform: translateY(-4px); box-shadow: 0 16px 34px rgb(0 0 0 / 0.6); border-color: var(--line-2); } 35% { opacity: 1; transform: none; } 100% { opacity: 1; box-shadow: 0 16px 34px rgb(0 0 0 / 0.6), 0 0 30px 2px rgb(255 122 26 / 0.3); border-color: rgb(255 122 26 / 0.45); } }
/* footer */
/* 2. JOIN THE COMMUNITY: a stronger glow fades in on hover (and out again) */
.foot-join a { transition: color 0.35s ease, text-shadow 0.5s ease; }
.foot-join a:hover, .foot-join a:focus-visible { text-shadow: 0 0 18px rgb(255 122 26 / 0.95), 0 0 36px rgb(255 122 26 / 0.5), 0 0 3px rgb(255 230 200 / 0.8); }
@media (prefers-reduced-motion: reduce) { .brand-t::before { animation: none; } .menu-drop:not([hidden]) { animation: none; } }
/* home page */
/* 34. the card wall: each card is laid out at its lifted size and drawn smaller, so a lifted card is sharp; the pointer
   magnifies the cards near it (script), and the card under it glows */
.cw-c { --w: clamp(96px, 9vw, 142px); width: calc(var(--w) * 1.42); margin: calc(var(--w) * -0.294) calc(var(--w) * -0.21); transform: scale(0.7042); transition: box-shadow 0.25s ease; backface-visibility: hidden; }
.cw-c:hover, .cw-c:focus-visible { transform: scale(0.7042); }
.cw-c:focus-visible { transform: translateZ(80px) scale(1); z-index: 50; }
@media (hover: none) { .cw-c:active { transform: translateZ(60px) scale(0.9); z-index: 50; } }
@media (max-width: 560px) { .cw-c { --w: 84px; width: calc(var(--w) * 1.42); } }
/* 4. phones: the sticky bars without the costly background blur (a more solid background instead) */
@media (max-width: 760px), (pointer: coarse) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(5 5 6 / 0.97); }
  .devbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .dv-bar::before { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* 19. the Learn side list: Factions Overview set apart below the other pages, its factions in a list that opens under it */
.cp-side-group { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.cp-side-row { display: flex; align-items: center; }
.cp-side-row .cp-side-a { flex: 1 1 auto; }
.cp-side-tog { width: 32px; height: 32px; margin-right: 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.cp-side-tog:hover { color: var(--ember-2); background: var(--ember-soft); }
.cp-side-tog .caret { display: inline-block; transition: transform 0.25s ease; }
.cp-side-tog[aria-expanded="true"] .caret { transform: rotate(180deg); }
.cp-side-sub { display: flex; flex-direction: column; animation: fadeIn 0.3s ease-out; }
.cp-side-sub[hidden] { display: none; }
.cp-side-kid { padding: 6px 14px 6px 28px; font-size: 0.86rem; }
@media (max-width: 900px) {
  .cp-side { flex-wrap: wrap; }
  .cp-side-group { display: contents; }
  .cp-side-row { flex: 0 0 auto; }
  .cp-side-sub { order: 99; flex: 0 0 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
  .cp-side-kid { padding: 8px 12px; white-space: nowrap; }
}
/* 31-32. a larger logo, with "Forge the future" centred under it */
.hero-brand { display: flex; flex-direction: column; align-items: center; width: min(640px, 100%); }
.hero-logo { position: relative; isolation: isolate; width: 100%; text-align: center; }
.hero-logo img { position: relative; width: min(640px, 100%); }
.hero-in-home .hero-tag { width: min(440px, 72%); margin: -4px auto 0; }
@media (max-width: 760px) { .hero-brand { width: 100%; } .hero-logo img { width: min(420px, 100%); } .hero-in-home .hero-tag { width: min(300px, 72%); } }
/* 39. energy behind the logo: a slow breathing glow and now and then a burst of sparks (HeroEnergy) */
.hero-energy { position: absolute; z-index: -1; left: 50%; top: 42%; width: 130%; aspect-ratio: 1.6; transform: translate(-50%, -50%); pointer-events: none; }
.hero-energy::before { content: ""; position: absolute; inset: 18% 22%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 150 60 / 0.42), rgb(255 100 20 / 0.16) 55%, transparent); animation: energyBreathe 5.5s ease-in-out infinite; will-change: opacity, transform; }
.hero-energy::after { content: ""; position: absolute; inset: 34% 38%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 230 190 / 0.35), transparent); animation: energyBreathe 3.2s ease-in-out infinite reverse; }
@keyframes energyBreathe { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }
.hero-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .hero-energy::before, .hero-energy::after { animation: none; } }
/* v0.22.0 (user): the breathing glow sits behind the letters (lower half of the logo), not the symbol; the particle
   canvas is centred on the symbol */
.hero-energy { top: 27%; width: 100%; }
.hero-energy::before, .hero-energy::after { content: none; }
.hero-glow { position: absolute; z-index: -1; left: 50%; top: 74%; width: 92%; height: 52%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-glow::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 150 60 / 0.42), rgb(255 100 20 / 0.16) 55%, transparent); animation: energyBreathe 5.5s ease-in-out infinite; will-change: opacity, transform; }
.hero-glow::after { content: ""; position: absolute; inset: 22% 30%; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 230 190 / 0.3), transparent); animation: energyBreathe 3.2s ease-in-out infinite reverse; }
@media (prefers-reduced-motion: reduce) { .hero-glow::before, .hero-glow::after { animation: none; } }
/* v0.22.0 (user): a small space under "Forge the future", and above the buttons below the pitch */
.hero-in-home .hero-brand { margin-bottom: 10px; }
.hero-in-home .hero-btns { margin-top: 8px; }
/* 33. home page: the corner glows are hidden while the hero is on screen (fading out quickly), and fade in below it */
body.hero-home .corner-glow { opacity: 0; transition: opacity 0.35s ease; }
/* 37. the Unknown icon beside the faction icons: the Unknown factions' icons crossfade in one place */
.hero-fac-unk { display: grid; }
.hero-fac-unk .hero-unk { grid-area: 1 / 1; opacity: 0; transition: opacity 0.8s ease, filter 0.3s; }
.hero-fac-unk .hero-unk.on { opacity: 1; }
/* v0.22.0 (user): hovering the Unknown icon fades in a soft blur of the shown Unknown faction's colour behind it */
.hero-fac-unk::before { content: ""; position: absolute; inset: 4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--fac), transparent); filter: blur(10px); opacity: 0; transition: opacity 0.45s ease, background 0.8s ease; pointer-events: none; }
.hero-fac-unk:hover::before, .hero-fac-unk:focus-visible::before { opacity: 0.55; }
/* 10, 16. a brighter light sweeps across these buttons on hover, and always runs to the end: SEE THE CARDS, WHAT IS
   AXION FORGE?, EXPLORE THE STORY, ALL FACTION CARDS, EXPLORE <FACTION> */
.btn-fac, .btn-explore, .md-band .md-btn, .cpage-home .cp-body > .md-btns .md-btn-cta { position: relative; overflow: hidden; isolation: isolate; }
.btn-fac::after, .btn-explore::after, .md-band .md-btn::after, .cpage-home .cp-body > .md-btns .md-btn-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 28%, rgb(255 255 255 / 0.6) 50%, transparent 72%); transform: translateX(-120%); transition: none; animation: none; }
.btn-fac:hover::after, .btn-fac:focus-visible::after, .btn-explore:hover::after, .btn-explore:focus-visible::after, .md-band .md-btn:hover::after, .md-band .md-btn:focus-visible::after, .cpage-home .cp-body > .md-btns .md-btn-cta:hover::after, .cpage-home .cp-body > .md-btns .md-btn-cta:focus-visible::after { transform: translateX(-120%); transition: none; animation: sweepX 0.8s ease-in-out; }
@keyframes sweepX { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
/* 5. ALL FACTION CARDS in the same lettering as EXPLORE <FACTION> */
.related .btn-fac, .detail .related .btn-fac { font: 700 0.86rem/1 var(--display); letter-spacing: 0.14em; padding: 12px 22px; border-radius: 9px; }
/* 43. the buttons above and below the card wall and under THE STORY are larger; 10. EXPLORE THE STORY is filled
   orange and its glow fades in on hover */
.cpage-home .cp-body > .md-btns .md-btn, .cpage-home .md-band .md-btn { padding: 18px 34px; font-size: 1.05rem; letter-spacing: 0.16em; box-shadow: 0 0 18px rgb(255 106 10 / 0.35); transition: box-shadow 0.45s ease, filter 0.2s; }
.cpage-home .cp-body > .md-btns .md-btn:hover, .cpage-home .cp-body > .md-btns .md-btn:focus-visible, .cpage-home .md-band .md-btn:hover, .cpage-home .md-band .md-btn:focus-visible { box-shadow: 0 0 32px 6px rgb(255 122 26 / 0.65); filter: brightness(1.06); }
/* 40. more space between THE STORY's words and its button */
.cpage-home .md-band-in > .md-btns { margin-top: 22px; }
/* 44. THE STORY's background artwork crossfades from one picture to the next (ContentPage) */
.md-band.md-band-cycle::before { display: none; }
.md-band-bg { position: absolute; inset: 0; z-index: -2; }
.md-band-f { position: absolute; inset: 0; background: var(--art) center 30% / cover no-repeat; opacity: 0; transition: opacity 2s ease; }
.md-band-f.on { opacity: 1; animation: fheroBreathe 26s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .md-band-f.on { animation: none; } }
/* 35. the pictures under "A different kind of card game" glow on hover; 42. the titles in orange */
.md-features .md-tile:hover .md-img { box-shadow: 0 0 26px 2px rgb(255 122 26 / 0.45); border-color: rgb(255 122 26 / 0.6); }
.md-features .md-img { transition: opacity 0.35s, filter 0.35s, box-shadow 0.45s ease, border-color 0.45s ease; }
.cpage-home .md-features .md-tile-h, .cpage-home .md-features .md-tile-h a { color: var(--ember-2); }
.cpage-home .md-features .md-tile-h a:hover { color: #ffd2a0; }
/* 36. the NEXT box as wide as the newsletter box (home and Factions pages) */
.cpage-home .cp-next, .cpage[data-path="factions"] .cp-next { width: min(100% - 32px, 1100px); margin-inline: auto; }
.cpage[data-path="factions"] .cp-next { width: min(100%, 1100px); }
/* 20. phones: the four facts move out of the hero, small and side by side under the first card carousel */
@media (max-width: 760px) {
  .cpage-home .cp-body > .md-box.md-facts { position: static; flex-direction: row; justify-content: center; gap: 14px; margin: 14px auto 0 !important; }
  .cpage-home .md-box.md-facts .md-img { width: 64px; }
  .hero-in-home { padding-right: 0; }
}
/* card page */
/* 45. the Archetype tags hang under the icons without moving the name or the lore line (wide screens: the lore line
   leaves room for them); a light sweeps across each tag now and then */
@media (min-width: 761px) {
  .dv-badges { position: relative; }
  .dv-badges .cd-arch { position: absolute; top: calc(100% + 8px); right: 0; width: max-content; max-width: 300px; }
  .dv-head:has(.cd-arch) .dv-lore { max-width: min(62ch, calc(100% - 320px)); }
}
.cd-arch-t { position: relative; overflow: hidden; isolation: isolate; }
.cd-arch-t::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 25%, rgb(255 255 255 / 0.45) 50%, transparent 75%); transform: translateX(-130%); animation: archSweep 9s ease-in-out 2s infinite; }
.cd-arch-t:nth-child(2)::after { animation-delay: 2.5s; }
.cd-arch-t:nth-child(3)::after { animation-delay: 3s; }
@keyframes archSweep { 0% { transform: translateX(-130%); } 9% { transform: translateX(130%); } 100% { transform: translateX(130%); } }   /* v0.22.0: renamed; it had replaced tagSweep, so the card text and tab sweeps ran in about 0.1 s */
/* 46. the lore line fades in word by word */
.dv-lw { display: inline-block; animation: loreWord 0.5s ease-out backwards; animation-delay: var(--d, 0ms); }
@keyframes loreWord { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .cd-arch-t::after, .dv-lw { animation: none; } }
/* faction pages */
/* 6. a COLLECTION box's outline fades in on hover and out again; a light sweeps across it when it is selected */
button.fstat { position: relative; overflow: hidden; isolation: isolate; transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease; }
button.fstat::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--fac) 45%, rgb(255 255 255 / 0.35)) 50%, transparent 75%); transform: translateX(-130%); }
button.fstat[aria-pressed="true"]::after { animation: sweepX 0.85s ease-in-out; }
/* 23. phones: two boxes per row, the words allowed to wrap, so every label fits inside its box */
@media (max-width: 760px) {
  .fstat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fstat { gap: 8px; padding: 8px 10px; }
  .fstat-txt span { white-space: normal; overflow-wrap: anywhere; font-size: 0.56rem; letter-spacing: 0.04em; }
  .fstat-ico { flex: 0 0 26px; width: 26px; min-width: 0; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { button.fstat[aria-pressed="true"]::after { animation: none; } }
/* battle maps */
/* 24. the map never draws smaller than the card on the card page (about 320 px; it moves above the explanation box
   instead); the tags shrink with its squares and stay on one row until they must make two rows of two */
.bm-body { grid-template-columns: minmax(min(100%, 320px), 420px) minmax(200px, 1fr); }
.bm { container-type: inline-size; }
@container (max-width: 560px) { .bm-body { grid-template-columns: minmax(0, 1fr); } .bm-map-col { width: min(100%, 420px); margin-inline: auto; } }
.bm-kinds, .bm-side-col .bm-kinds { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: calc(8px * var(--bm-s, 1)); max-width: 100%; }
.bm-kinds .chip { flex: 0 0 auto; min-width: 0; padding: calc(9px * var(--bm-s, 1)) calc(15px * var(--bm-s, 1)); font-size: calc(0.88rem * var(--bm-s, 1)); gap: calc(8px * var(--bm-s, 1)); }
.bm-kinds .bm-kico { width: calc(16px * var(--bm-s, 1)); height: calc(16px * var(--bm-s, 1)); }
.bm-kinds.bm-kinds-2 { display: grid; grid-template-columns: repeat(2, max-content); }
/* 13. Glossary, Lore and the Card Database in the shared page frame (PageFrame) */
.cp-frame.page-read { max-width: none; }
.cp-frame .cp-body > .gl-search { max-width: 640px; }
.cp-frame .gl-search .search { max-width: none; }
.cp-frame .cp-body { display: flex; flex-direction: column; gap: 16px; }
.page-lore .cp-body section { display: flex; flex-direction: column; gap: 12px; }
.browser-head { margin-top: 34px; }
.browser-head .browser-h { margin-top: 0; }
.browser > .cp-next { margin-top: 40px; width: min(100%, 1100px); }
/* Glossary */
/* 47, 50. RANDOM filled orange, the Shuffle icon on its right */
.gl-random { flex-direction: row; padding: 10px 18px; border: 1px solid #ffc488; color: #160800 !important; background: linear-gradient(180deg, #ffb062, #ff6a0a); font: 700 0.9rem/1 var(--display); letter-spacing: 0.14em; transition: box-shadow 0.45s ease, filter 0.2s; }
.gl-random .gl-random-ico { color: #160800; }
/* 49. its glow fades in on hover and stays while the pointer is on it; a click only adds a pulse ring (no fade-out) */
.gl-random:hover, .gl-random:focus-visible { box-shadow: 0 0 24px 4px rgb(255 122 26 / 0.6); filter: brightness(1.06); }
.gl-random.glow { outline: 2px solid transparent; animation: rndRing 0.9s ease-out; }
@keyframes rndRing { 0% { outline-color: rgb(255 170 90 / 0.8); outline-offset: 0; } 100% { outline-color: rgb(255 170 90 / 0); outline-offset: 10px; } }
/* 51. entries fade in one after another */
.gl-row.gl-in { animation: fadeIn 0.4s ease-out backwards; animation-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .gl-row.gl-in, .gl-random.glow { animation: none; } }
/* Gameplay › Battle Maps */
/* 52. the longer explanations fold under their titles */
.md-fold { border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 0.02); transition: border-color 0.3s ease, background 0.3s ease; }
.md-fold + .md-fold { margin-top: -6px; }
.md-fold[open] { border-color: rgb(255 122 26 / 0.4); background: rgb(255 122 26 / 0.04); }
.md-fold-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font: 700 0.95rem/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.md-fold-h::-webkit-details-marker { display: none; }
.md-fold-h::after { content: "▾"; color: var(--ember-2); transition: transform 0.25s ease; }
.md-fold[open] > .md-fold-h::after { transform: rotate(180deg); }
.md-fold-h:hover { color: var(--ember-2); }
.md-fold-b { display: flex; flex-direction: column; gap: 12px; padding: 0 18px 18px; animation: fadeIn 0.3s ease-out; }
/* 53. the example card shows it can be opened */
.md-bm-card .c3d { cursor: zoom-in; }
/* Subscribe page and every newsletter box */
/* 22. the SUBSCRIBE button stays inside its box: on narrow screens the address and the button stack */
.signup { min-width: 0; }
.signup-row { min-width: 0; }
.signup-row .md-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) { .signup-row { flex-direction: column; } .signup-row .md-btn { width: 100%; } .signup-big { padding: 18px; } }
/* About page */
/* 15. "Interested in working together?" on the right, with "Let's talk" as a button; project pictures glow on hover */
.md-box.md-talk { float: right; width: min(300px, 40%); margin: 4px 0 18px 32px; padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); border-radius: 10px; background: linear-gradient(180deg, rgb(255 122 26 / 0.08), rgb(13 13 16 / 0.85)); }
.md-box.md-talk > p { margin: 0; font: 700 1.05rem/1.3 var(--display); letter-spacing: 0.06em; color: var(--ink); }
.cpage[data-path="about"] .cp-body > .md-h2 { clear: both; }
@media (max-width: 760px) { .md-box.md-talk { float: none; width: auto; margin: 0 0 6px; } }
.md-projects .md-img-a { transition: box-shadow 0.45s ease; }
.md-projects .md-tile:hover .md-img-a, .md-projects .md-img-a:focus-visible { box-shadow: 0 0 28px 3px rgb(255 122 26 / 0.5); }
/* Shop page */
/* 17. larger product tiles: two per row on wide screens, bigger pictures and text */
.md-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 22px; }
.md-products .md-tile { padding: 20px; gap: 14px; }
.md-products .md-tile-h { font-size: 1.15rem; }
.md-products .md-tile p { font-size: 1rem; line-height: 1.6; }
/* Contact and Feedback */
/* 7. the site's own form (ContentPage siteForm) */
.siteform { display: flex; flex-direction: column; gap: 14px; width: min(100%, 720px); padding: 22px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); border-radius: var(--r); background: linear-gradient(180deg, rgb(255 122 26 / 0.06), rgb(13 13 16 / 0.85) 60%); }
.sf-intro { margin: 0; color: var(--muted); }
.sf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .sf-row { grid-template-columns: minmax(0, 1fr); } }
.sf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sf-label { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-2); }
.siteform input, .siteform select, .siteform textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: #0a0a0d; color: var(--ink); font: 400 0.98rem/1.5 var(--body); transition: border-color 0.25s, box-shadow 0.25s; }
.siteform textarea { resize: vertical; min-height: 150px; }
.siteform input:focus, .siteform select:focus, .siteform textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 0 16px rgb(255 122 26 / 0.25); }
.sf-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* v0.22.0 (user): SEND and the spam check share one row (the check on the right, its top level with SEND's row);
   "Having trouble? Try here." sits under the check; the check moves under SEND only when the row is too narrow */
.sf-send { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 14px; }
/* v0.23.0 (user): SEND a little larger, the error line under it (level with "Having trouble?"), the spam check smaller */
.sf-send-l { display: grid; grid-template-rows: 56px auto; align-items: center; gap: 6px; max-width: 60%; }
.sf-send-l .sf-status { align-self: start; }
.sf-sendbtn { justify-self: start; padding: 14px 34px; font-size: 1rem; }
.sf-turnstile { transform: scale(0.85); transform-origin: right top; margin-bottom: -10px; }
.sf-send-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.sf-turnstile { min-height: 65px; }
.siteform .sf-bad, .siteform .sf-bad:focus { border-color: #ff5a4a; box-shadow: 0 0 0 1px #ff5a4a, 0 0 14px rgb(255 90 74 / 0.3); }
.sf-status:empty { display: none; }
.sf-status.sf-err { color: #ff9a8a; }
.siteform select:invalid { color: var(--muted); }
.siteform select option { color: var(--ink); background: #0a0a0d; }
/* v0.23.0 (user): the subject list's highlight is orange (browsers that let the list be styled; others keep their own) */
.siteform select option:checked, .siteform select option:hover, .siteform select option:focus { background: var(--ember); color: #120800; }
@supports (appearance: base-select) {
  .siteform select, .siteform select::picker(select) { appearance: base-select; }
  .siteform select::picker(select) { background: #0a0a0d; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; }
  .siteform select option { padding: 8px 10px; border-radius: 6px; }
  .siteform select option::checkmark { display: none; }
}
.sf-status { margin: 0; color: var(--muted); font-size: 0.92rem; }
.sf-off .sf-status { color: #ffcf9e; }
.siteform button:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }
.sf-alt { margin: 0; font-size: 0.9rem; color: var(--muted); text-align: right; }
.sf-done { margin: 0; font: 700 1.1rem/1.4 var(--display); color: var(--ember-2); }

/* ===== v0.22.0 (review round of v0.21.x, 2026-11-07) ===== */
/* header text links (Learn, Gameplay, …): a light sweeps across the letters on hover */
.topnav-a { --tc: var(--muted); -webkit-text-fill-color: transparent; background: linear-gradient(100deg, var(--tc) 0 38%, #fff7e8 50%, var(--tc) 62% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
.topnav-a:hover, .topnav-a.on, .topnav-a.open { --tc: var(--ink); }
.topnav-a:hover { animation: navSweep 0.9s ease-out; }
@keyframes navSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .topnav-a:hover { animation: none; } }
/* the page's NEXT box sits just above the newsletter box, at its width and left edge */
.foot-next { width: min(100% - 32px, 1100px); margin: 40px auto 0; }
.foot-next:empty { display: none; }
.foot-next .cp-next { width: auto !important; margin: 0 !important; }
.foot-next:not(:empty) + .foot-signup { margin-top: 44px; }   /* v0.23.0: more space between NEXT and the newsletter box (was 18 px) */
.foot-next { margin-top: 28px; }
.foot-signup { margin-bottom: 56px; }   /* v0.23.0: a little more space under the newsletter box (was 34 px) */
.foot { padding-bottom: 28px; }         /* v0.23.0: and under the footer */
/* Newsletter in the COMMUNITY menus: the sign-up in a box over the dimmed page */
.sbox { cursor: default; touch-action: auto; }
.sbox-in { position: relative; width: min(100% - 32px, 640px); }
.sbox-in .signup { width: 100%; margin: 0; background: linear-gradient(120deg, #2a1608, #0d0d10 55%); }   /* v0.23.0 (user): fully opaque */
.signup-p.signup-bad { color: #ff9a8a; }
.sbox-x { position: absolute; top: -14px; right: -14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #121216; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sbox-x:hover { border-color: var(--ember); color: var(--ember-2); }
@media (max-width: 560px) { .sbox-x { top: -40px; right: 0; } }
/* phones: the COMMUNITY panel shows 5 channel icons per row */
@media (max-width: 760px) { .comm-panel .comm-icons { grid-template-columns: repeat(5, 40px); justify-content: space-between; } }
/* Factions Overview (and the home page tiles): each faction's name in its light colour, as on its own faction page */
.ftile-name { color: color-mix(in srgb, var(--fac) 30%, #fff); }
/* Unknown Factions: tiles the size of the Factions Overview's, two by two */
.ftiles-unknown.ftiles-wide { grid-template-columns: repeat(2, calc((100% - 28px) / 3)); justify-content: center; gap: 14px; }
.ftiles-unknown.ftiles-wide .ftile { aspect-ratio: 16 / 9; padding: 18px; }
.ftiles-unknown.ftiles-wide .ftile-ico { width: 84px; height: 84px; }
.ftiles-unknown.ftiles-wide .ftile-name { font-size: 1.4rem; }
@media (max-width: 900px) { .ftiles-unknown.ftiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ftiles-unknown.ftiles-wide { grid-template-columns: minmax(0, 1fr); } }
.cp-main > .back { margin-bottom: -6px; }
.cpage[data-path="factions/unknown"] { grid-template-columns: minmax(0, 1440px); }   /* the Factions Overview's width, so the tiles match */
/* tooltips: the pointer stays the normal arrow over text with a tip (never the text cursor); links and buttons show the pointing hand */
[data-gloss], [data-tip], [data-card] { cursor: default; }
a[data-gloss], a[data-tip], a[data-card], button[data-gloss], button[data-tip], button[data-card], [role="button"][data-tip], tr[data-card], .lnk[data-gloss] { cursor: pointer; }
button:disabled[data-card] { cursor: default; }
/* card page: PREVIOUS / NEXT arrows fade in the faction's edge colour and glow on hover; the card preview fades in */
.dv-stepbtn { transition: border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease; }
.dv-stepbtn:hover:not(:disabled), .dv-stepbtn:focus-visible { border-color: var(--fac); color: color-mix(in srgb, var(--fac) 40%, #fff); box-shadow: 0 0 14px color-mix(in srgb, var(--fac) 55%, transparent); }
body.card-open .tapbar { transition: box-shadow 0.35s ease, color 0.35s ease; }
body.card-open .tapbar:hover:not(:disabled) { color: color-mix(in srgb, var(--fac, var(--ember)) 40%, #fff); box-shadow: 0 0 16px color-mix(in srgb, var(--fac, var(--ember)) 55%, transparent); }
.tip-card.tip-fade:not([hidden]) { animation: tipFade 0.35s ease-out; }
@keyframes tipFade { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
/* card page: RANDOM above the name, at its left edge */
.dv-head { position: relative; }
/* v0.23.0 (user): RANDOM lives in the card bar, at its left, styled like PREVIOUS / NEXT; phones: just the round button right of ALL */
.dv-bar .dv-rand { margin-left: 0 !important; }   /* v0.24.0: moved by CardDetailView alignStep (left of the card name) */
@media (max-width: 760px) { .dv-bar .dv-rand { gap: 0; margin-left: -4px !important; } }
/* card page: the Archetype tags fade in one after another after the icons above them; the pointing hand on hover */
.cd-arch-t { cursor: pointer; }
.dv-badges .cd-arch-t { animation: archIn 0.45s ease-out backwards; animation-delay: calc(1.4s + var(--n, 0) * 0.16s); }   /* v0.23.0 (user): a short pause after the rarity icon has shown (was 0.75 s, with it) */
.dv-badges .cd-arch-t:nth-child(2) { --n: 1; } .dv-badges .cd-arch-t:nth-child(3) { --n: 2; } .dv-badges .cd-arch-t:nth-child(4) { --n: 3; }
@keyframes archIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dv-badges .cd-arch-t, .tip-card.tip-fade:not([hidden]) { animation: none; } }
/* card page: the light sweeps on the card text tags and on a clicked section tab run at an easy pace (about 0.1 s before) */
.kw-row.sweep .kw::after { animation: tagSweep 1.5s ease-in-out forwards; }
.dv-tab.on.sweep::after { animation: tagSweep 1.4s ease-in-out forwards; }
/* Battle Map: a selected opponent position the card can target gets a moving green dotted outline (no green fill) */
.bf-picked-can rect:first-child { fill: rgb(95 224 138 / 0.05); stroke: #5fe08a; stroke-width: 2.5; stroke-dasharray: 6 4; animation: lineFlow 1.2s linear infinite; filter: drop-shadow(0 0 4px rgb(95 224 138 / 0.6)); }
@media (prefers-reduced-motion: reduce) { .bf-picked-can rect:first-child { animation: none; } }
/* Battle Maps page: the four Range tags are a little smaller, so they fit on one row (two rows of two only when they cannot) */
.md-bm .bm-kinds { gap: calc(5px * var(--bm-s, 1)); }
.md-bm .bm-kinds .chip { padding: calc(7px * var(--bm-s, 1)) calc(9px * var(--bm-s, 1)); font-size: calc(0.76rem * var(--bm-s, 1)); gap: calc(5px * var(--bm-s, 1)); }
.md-bm .bm-kinds .bm-kico { width: calc(13px * var(--bm-s, 1)); height: calc(13px * var(--bm-s, 1)); }
.bm-top-above { margin-bottom: 12px; }
.bm-top-above { margin-bottom: 12px; }
/* List view between phone and desktop width (a sideways phone, a tablet): the faction, type and rarity columns show
   their icons only, as on an upright phone, so DEF and the columns after it are no longer cut off */
@media (min-width: 761px) and (max-width: 1100px) {
  .cards-table { table-layout: auto; min-width: 0; }
  .col-faction, .col-cardtype, .col-rarity { width: 48px; } .col-dominance { width: 92px; } .col-shards { width: 72px; } .col-atk, .col-def { width: 52px; }
  .cards-table .td-t { display: none; }
  .cards-table td.td-fac, .cards-table td.td-rarity, .cards-table td.type, .cards-table th.td-fac, .cards-table th.td-rarity, .cards-table th.type { text-align: center; }
  .cards-table .td-ico { justify-content: center; }
  .cards-table th, .cards-table td { padding: 8px 6px; }
  .cards-table td.name { white-space: normal; overflow-wrap: break-word; }
  .cards-table th.td-fac .th-btn, .cards-table th.type .th-btn, .cards-table th.td-rarity .th-btn { font-size: 0; letter-spacing: 0; gap: 0; justify-content: center; width: 100%; }
  .cards-table th.td-fac .th-btn::before { content: "Fac"; } .cards-table th.type .th-btn::before { content: "Type"; } .cards-table th.td-rarity .th-btn::before { content: "Rar"; }
  .cards-table th.td-fac .th-btn::before, .cards-table th.type .th-btn::before, .cards-table th.td-rarity .th-btn::before { font-size: 0.62rem; letter-spacing: 0.06em; }
}
/* phones: tapping the search icon opens a full-width search bar just under the header, with its results under it,
   so what is typed and the matches are always on screen */
@media (max-width: 760px) {
  .topbar-r .ss:is(:focus-within, .ss-open) .ss-box { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h, 64px) + 8px); width: auto; height: 48px; z-index: 95; background: #0e0e12; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft), 0 12px 30px rgb(0 0 0 / 0.7); }
  .topbar-r .ss:is(:focus-within, .ss-open) .ss-box input { font-size: 16px; }   /* 16 px: iPhones do not zoom the page in */
  .topbar-r .ss .ss-list { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h, 64px) + 64px); width: auto; max-height: calc(100dvh - var(--topbar-h, 64px) - 140px); overflow-y: auto; z-index: 95; }
}
/* card page on phones: the section tabs keep their full width; the strip scrolls sideways (swipe, or drag with a
   mouse), with the arrows at either end showing there are more */
.dv-tab { flex: 0 0 auto; }
.dv-nav { cursor: grab; scroll-behavior: smooth; }
.dv-nav.dragging { cursor: grabbing; scroll-behavior: auto; }
/* phones: lighter effects (v0.22.0, "optimize page load for mobile").
   MENU opens at once: a short fade only (no 0.6 s glow animation, whose moving shadow is costly on a phone).
   The hero artwork only fades (no slow zoom of a large masked picture); the card page's side arrows, the card bar and
   the lightbox have no background blur; the corner glows and the logo glow stop pulsing (they stay, still);
   blurred glows behind the brand and the footer logo are not animated. */
@media (max-width: 760px), (pointer: coarse) {
  .menu-drop:not([hidden]) { animation: fadeOnly 0.12s ease-out both; box-shadow: 0 16px 34px rgb(0 0 0 / 0.6); border-color: rgb(255 122 26 / 0.45); }
  .menu-btn, .comm-btn { transition: none; }
  .hero-frame { animation-name: heroFadeLite; }
  body.card-open .tapbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(13 13 16 / 0.96); }
  .dv-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(5 5 6 / 0.97); }
  .tn-drop { backdrop-filter: none; }
  .corner-glow::before, .brand-t::before, .foot-logo-a::before { animation: none; }
  .hero-glow::after { animation: none; }
}
@keyframes heroFadeLite { 0% { opacity: 0; } 2.2% { opacity: 1; } 8.33% { opacity: 1; } 10.6% { opacity: 0; } 100% { opacity: 0; } }

/* ---------- v0.23.0 (review round of 2026-11-07) ---------- */
/* Home hero: the breathing glow spans the whole logo (symbol and letters); pointing at the logo fades in a stronger glow */
.hero-glow { z-index: -2; top: 50%; width: 112%; height: 108%; transition: filter 0.7s ease; }
.hero-glow::before { background: radial-gradient(closest-side, rgb(255 150 60 / 0.4), rgb(255 100 20 / 0.15) 58%, transparent); }
.hero-glow::after { inset: 20% 26%; }
.hero-logo:hover .hero-glow { filter: brightness(1.9) saturate(1.15); }
/* the particle vortex: centred on the whole logo, behind it and above the glow */
.hero-energy { z-index: -1; top: 50%; width: 112%; aspect-ratio: auto; height: 118%; }
/* the line under "Forge the future" glows and pulses */
.hero-tag-w { position: relative; display: block; width: min(440px, 72%); margin: -4px auto 0; line-height: 0; }
.hero-in-home .hero-tag-w .hero-tag { width: 100%; margin: 0; }
.hero-tag-w::after { content: ""; position: absolute; left: 12%; right: 9%; bottom: 7%; height: 4px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 225 170 / 0.95), rgb(255 140 40 / 0.55) 55%, transparent); filter: blur(2px); mix-blend-mode: screen; animation: linePulse 3.4s ease-in-out infinite; }
@keyframes linePulse { 0%, 100% { opacity: 0.25; transform: scaleX(0.9); } 50% { opacity: 1; transform: scaleX(1.02); box-shadow: 0 0 14px 2px rgb(255 140 40 / 0.45); } }
@media (max-width: 760px) { .hero-tag-w { width: min(300px, 72%); } }
@media (prefers-reduced-motion: reduce) { .hero-tag-w::after { animation: none; opacity: 0.6; } }
/* the faction's name, then its subtitle a moment later; the Unknown line's colour crossfades */
.hero-fac-line strong { transition: color 0.8s ease; }
.hero-fac-line.on .hero-fac-sub { animation: subIn 0.5s ease-out 0.22s backwards; }
@keyframes subIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-fac-line.on .hero-fac-sub { animation: none; } }
/* phones: the line keeps room for the name and two lines of subtitle, so a tap never changes the hero's height (the
   background no longer jumps); the Unknown icon's glow stays inside its square */
@media (max-width: 760px) {
  .hero-fac-line { min-height: 4.6em; }
  .hero-fac-unk::before { inset: 16%; filter: blur(5px); }
  .hero-fac:hover img, .hero-fac:focus-visible img { filter: drop-shadow(0 0 6px var(--fac)) brightness(1.15); }
}
/* the story band: every picture keeps its slow zoom running, so a fade never snaps it back (the stutter); stronger text shadow */
.md-band-f { animation: fheroBreathe 26s ease-in-out infinite; will-change: opacity, transform; }
.md-band-in > p, .md-band-in > .md-h2 { text-shadow: 0 1px 3px rgb(0 0 0 / 0.95), 0 0 22px rgb(0 0 0 / 0.85); }
@media (prefers-reduced-motion: reduce) { .md-band-f { animation: none; } }
/* Battle Maps page: the Melee, Ranged, Guard and Special tags centred over the map half of the box */
.bm-top-above { display: flex; justify-content: center; }
.bm-top-above .bm-kinds { justify-content: center; }
/* Glossary: the entry's place ("Story · Characters · Nethrys") on its own line under the name, every part a link */
.gl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0 0 6px; font: 600 0.68rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.gl-meta .dot { color: var(--dim); }
.gl-meta .gl-meta-a, .gl-meta .gl-n { font: inherit; letter-spacing: inherit; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.gl-meta .gl-meta-a:hover, .gl-meta .gl-n:hover { color: var(--ember-2); }
.gl-meta .gl-n { margin: 0; color: var(--ember-2); }
.gl-meta .ico { width: 11px; height: 11px; }
.page-gl .glossary dd { display: block; }
/* COMMUNITY closes after a tap on one of its links or on COMMUNITY itself */
.comm-menu.shut .comm-drop { opacity: 0 !important; visibility: hidden !important; transition: none !important; }
/* phones: the bottom bar is lit only while it is pressed (a tap no longer leaves it lit) */
@media (hover: none) {
  .devbar:hover { background-color: rgb(8 8 10 / 0.92); box-shadow: none; color: var(--ember) !important; text-decoration: none; }
  .devbar:active { background-color: rgb(255 120 30 / 0.12); box-shadow: inset 0 0 26px rgb(255 130 40 / 0.28); }
}
@media (hover: none) { .viewsw button:hover::after { animation: none; } }   /* phones: no hover sweep that could take the first tap */
/* What Is Axion Forge (v0.23.0): text beside its pictures, crossfading pictures with feathered edges, subtitles, chips */
.md-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); gap: 28px; align-items: center; margin: 8px 0; }
.md-split-t > :first-child { margin-top: 0; }
.md-split-m { display: grid; place-items: center; }
.md-split-m .md-img { width: 100%; max-width: 400px; margin: 0; -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at center, #000 55%, transparent 100%); }
@media (max-width: 760px) { .md-split { grid-template-columns: minmax(0, 1fr); gap: 14px; } .md-split-m .md-img { max-width: 320px; } }
.md-rot { position: relative; display: grid; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; }
.md-rot-i { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at center, #000 52%, transparent 100%); }
.md-rot-i.on { opacity: 1; }
.md-sub { margin: -6px 0 14px; font: 500 1.08rem/1.4 var(--body); font-style: italic; color: var(--ember-2); }
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.md-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgb(255 122 26 / 0.45); border-radius: 999px; background: rgb(255 122 26 / 0.07); color: var(--ink); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
.md-chip:hover, .md-chip:focus-visible { border-color: var(--ember); background: rgb(255 122 26 / 0.16); box-shadow: 0 0 14px rgb(255 122 26 / 0.35); outline: none; }
.md-chip-ar { color: var(--ember-2); font-size: 0.9rem; line-height: 0; }
@media (min-width: 761px) { .md-video-sm { width: min(100%, 560px); } }
.md-video-sm { margin: 10px 0; }
.md-split .md-facts, .md-facts-row { margin-top: 12px; }
.md-split-t > p { margin: 0 0 12px; }
.cp-body > .md-box.md-facts .md-img { width: clamp(64px, 7vw, 96px); }   /* What Is Axion Forge: smaller fact pictures than on the home page */
.cpage-home .cp-body > .md-box.md-facts .md-img { width: clamp(64px, 5.4vw, 92px); }

/* ===== v0.24.0 (review round of v0.23.0, 2026-11-07) ===== */
/* newsletter: a bad address outlines the email field in red (the line under the title turns red, as on the Contact form) */
.signup-row input.signup-badin, .signup-row input.signup-badin:focus { border-color: #ff5a4a; box-shadow: 0 0 0 1px #ff5a4a, 0 0 14px rgb(255 90 74 / 0.3); }
/* a sign-up lights the whole box orange and a strong light sweeps across it */
.signup::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 236 200 / 0.85) 48%, rgb(255 170 80 / 0.6) 52%, transparent 70%) -150% 0 / 60% 100% no-repeat; }
.signup.signup-won { animation: signupWon 2.2s ease-out; }
.signup.signup-won::after { animation: signupSweep 1.1s cubic-bezier(.3,.6,.3,1) 0.1s 2; }
@keyframes signupWon { 0% { border-color: var(--line-2); box-shadow: none; } 12%, 55% { border-color: #ff8a2a; box-shadow: 0 0 0 1px #ff8a2a, 0 0 34px rgb(255 122 26 / 0.55), inset 0 0 40px rgb(255 122 26 / 0.25); } 100% { box-shadow: none; } }
@keyframes signupSweep { 0% { opacity: 1; background-position: -150% 0; } 100% { opacity: 1; background-position: 250% 0; } }
@media (prefers-reduced-motion: reduce) { .signup.signup-won::after { animation: none; } }
/* header: a wider search box on desktop (user) */
@media (min-width: 1100px) { .ss-box { width: clamp(170px, 13vw, 260px); } }
@media (min-width: 1100px) and (max-width: 1440px) { .ss-box { width: clamp(160px, 12.5vw, 200px); } }
/* Card Database: the Random card button left of the Card view / List view switch */
.fbottom .vs-wrap { display: flex; align-items: stretch; gap: 8px; margin-left: auto; align-self: flex-end; order: 9; }
.fbottom .vs-wrap .viewsw { margin-left: 0; order: 0; align-self: auto; }
.f-rand { width: auto; height: auto; min-width: 36px; aspect-ratio: 1; color: var(--ember-2); }
.f-rand .ico { width: 17px; height: 17px; }
.f-rand:hover { border-color: var(--ember); box-shadow: 0 0 12px var(--ember-soft); }
@media (max-width: 760px) { .fbottom .vs-wrap { order: 5; align-self: center; } }
/* card page bar: RANDOM after NEXT CARD in the code; phones keep ALL, then RANDOM, then the arrows */
.dv-bar .dv-rand { transition: transform 0.2s ease; }
@media (max-width: 760px) {
  .dv-bar .dv-fold, .dv-bar .dv-expand { order: 0; }
  .dv-bar .dv-all { order: 1; } .dv-bar .dv-rand { order: 2; } .dv-bar .dv-step:not(.dv-rand) { order: 3; } .dv-bar .dv-nav-wrap { order: 4; }
}
/* sideways phones: the fold arrow at the left, ALL and RANDOM towards the middle, PREVIOUS / NEXT at the right */
@media (orientation: landscape) and (max-height: 500px) {
  .dv-bar .dv-fold, .dv-bar .dv-expand { order: 0; }
  .dv-bar .dv-all { order: 1; margin-left: auto; } .dv-bar .dv-rand { order: 2; }
  .dv-bar .dv-step:not(.dv-rand) { order: 3; margin-left: auto !important; transform: none !important; }
  .dv-bar .dv-nav-wrap { order: 4; }
  .devbar { padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px)); font-size: 0.74rem; }
  .devbar-s { display: inline; } .devbar-gap { display: inline; }   /* one line */
}
/* phones: the bottom bar lights while held and for two seconds after a tap, then fades */
@media (hover: none) {
  .devbar { transition: background-color 0.6s ease, box-shadow 0.6s ease; }
  .devbar.lit, .devbar.lit:hover { background-color: rgb(255 120 30 / 0.14); box-shadow: inset 0 0 26px rgb(255 130 40 / 0.3), 0 0 22px rgb(255 120 30 / 0.22); transition-duration: 0.12s; }
}
/* card page: Details, Card Text, Range and the other sections rise into place one after another */
.dv-main > .stagger-in { animation: dvSecIn 0.6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--d, 0ms) + 120ms); }
@keyframes dvSecIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dv-main > .stagger-in { animation: none; } }
/* card page: the type, faction and rarity icons are links, so they show the pointing hand */
img.cdi-link, img.cdi-link[data-tip] { cursor: pointer; }
/* Battle Map: OPPONENT and YOU in see-through chips at the left, read top to bottom */
.bm-chip rect { fill: rgb(255 255 255 / 0.06); stroke: rgb(255 122 26 / 0.35); stroke-width: 1; }
.bm-chip .bm-side { font-size: 9px; letter-spacing: 0.16em; }
.bm-chip-lit rect { fill: rgb(170 100 255 / 0.12); stroke: rgb(197 140 255 / 0.55); }
/* home hero: a much smaller, softer glow behind the logo (user: "too large and too intense") */
.hero-glow { top: 52%; width: 74%; height: 72%; }
.hero-glow::before { background: radial-gradient(closest-side, rgb(255 150 60 / 0.16), rgb(255 100 20 / 0.05) 60%, transparent); }
.hero-glow::after { inset: 28% 34%; background: radial-gradient(closest-side, rgb(255 230 190 / 0.1), transparent); }
.hero-logo:hover .hero-glow { filter: brightness(1.35); }
/* no grey line under the home hero; the artwork's bottom edge fades out over a short band instead */
.cpage-home .hero { border-bottom: 0; }
.cpage-home .hero-bg { -webkit-mask: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%); mask: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%); }
.cpage-home .hero-bg::after { background: linear-gradient(90deg, rgb(5 5 6 / 0.94) 0%, rgb(5 5 6 / 0.62) 45%, rgb(5 5 6 / 0.2) 100%), linear-gradient(0deg, var(--void) 0%, transparent 22%); }
/* the card wall sits higher, just under the hero */
.cpage-home .cp-body > .cw { position: relative; z-index: 1; margin-top: -96px !important; padding-top: 30px; pointer-events: none; }
.cpage-home .cp-body > .cw .cw-row { pointer-events: auto; }   /* the wall's empty top edge never covers the hero's links */
/* more room above EXPLORE THE FACTIONS and EXPLORE THE STORY */
.cpage-home .ftiles-home + .md-btns { margin-top: 56px; }
.cpage-home .md-band-in > .md-btns { margin-top: 44px; }
/* THE STORY: the artwork behind it fades out at the left and right edges */
.md-band-bg, .md-band::before { -webkit-mask: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); mask: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%); }
/* About: the LET'S TALK box sits right of the opening paragraphs; "Interested in working together?" on one line */
@media (min-width: 900px) {
  .cpage[data-path="about"] .cp-body { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: 40px; row-gap: 26px; align-items: start; }
  .cpage[data-path="about"] .cp-body > * { grid-column: 1 / -1; }
  .cpage[data-path="about"] .cp-body > .md-talk { grid-column: 2; grid-row: 1 / span 2; float: none; width: auto; margin: 0; align-self: start; }
  .cpage[data-path="about"] .cp-body > p:nth-of-type(1), .cpage[data-path="about"] .cp-body > p:nth-of-type(2) { grid-column: 1; margin: 0; }
  .cpage[data-path="about"] .md-talk > p { white-space: nowrap; }
}
/* Glossary: the symbol always stays in front of the name, also when a long name wraps */
.gl-row dt { flex-wrap: nowrap; align-items: flex-start; }
.gl-row dt > .ico, .gl-row dt > .gl-fac { flex: 0 0 auto; margin-top: 0.1em; }
.gl-row dt > .gl-term { min-width: 0; }
.gl-type { width: 22px; height: 22px; }
/* page text: the link chips sit in a small RELATED box, styled like the NEXT box */
.md-related { margin: 16px 0 6px; padding: 12px 14px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); background: linear-gradient(180deg, rgb(255 122 26 / 0.07), transparent 80%); display: flex; flex-direction: column; gap: 8px; width: fit-content; max-width: 100%; }
.md-related-h { margin: 0; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember-2); }
.md-related .md-chips { margin: 0; }
/* What Is Axion Forge: the four facts two by two at the top right; the video beside Core concepts; more room between sections */
.md-split-m > .md-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; justify-items: center; margin: 0; padding: 0; border: 0; background: none; }
.md-split-m > .md-facts .md-img { width: clamp(84px, 9vw, 120px); max-width: none; -webkit-mask-image: none; mask-image: none; }
.md-split-m > .md-video { width: 100%; margin: 0; }
.cpage[data-path="learn/what-is-axion-forge"] .cp-body > .md-h2 { margin-top: 56px; }
.cpage[data-path="learn/what-is-axion-forge"] .cp-body > .md-split + .md-h2, .cpage[data-path="learn/what-is-axion-forge"] .cp-body > .md-cards + .md-h2 { margin-top: 72px; }
/* Battle Maps page: the card and the four-step guide on top, the interactive map below */
.md-bmg { grid-template-columns: minmax(0, 1fr); }
.md-bmg-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.bmg { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bmg-h { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 1rem/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); }
.bmg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bmg-step { --k: var(--ember); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 14px; border: 1px solid var(--line-2); border-left: 3px solid var(--k); border-radius: 8px; background: rgb(255 255 255 / 0.02); transition: opacity 0.4s ease, filter 0.4s ease, background-color 0.4s ease; position: relative; overflow: hidden; }
.bmg-melee { --k: var(--melee); } .bmg-ranged { --k: var(--ranged); } .bmg-guard { --k: var(--guard); } .bmg-special { --k: #c58cff; }
.bmg-n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--k); color: var(--k); font: 700 0.82rem/1 var(--mono); }
.bmg-t > p { margin: 0; }
.bmg-title { display: flex; align-items: center; gap: 8px; font: 700 0.95rem/1.3 var(--display); letter-spacing: 0.06em; color: var(--ink); }
.bmg-title .bm-kico { width: 16px; height: 16px; color: var(--k); }
.bmg-tell { margin-top: 4px !important; font-size: 0.9rem; color: #d9d3ca; }
.bmg-ask { margin-top: 6px !important; font-size: 0.9rem; font-weight: 600; color: var(--k); }
.bmg-step.now { background: color-mix(in srgb, var(--k) 9%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--k) 22%, transparent); }
.bmg-step.done .bmg-n { background: var(--k); color: #0b0b0d; }
.bmg-step.locked { opacity: 0.38; filter: grayscale(1); border-left-color: var(--line-2); }
/* a step that has just opened slides in, glows, and a light sweeps across it */
.bmg-unlock { animation: bmgIn 0.7s cubic-bezier(.2,.7,.2,1); }
.bmg-unlock::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.28) 50%, transparent 70%); transform: translateX(-120%); animation: sweepX 0.9s ease-in-out 0.2s; }
@keyframes bmgIn { from { opacity: 0.38; transform: translateX(-10px); box-shadow: 0 0 0 transparent; } 50% { box-shadow: 0 0 28px color-mix(in srgb, var(--k) 55%, transparent); } to { opacity: 1; transform: none; } }
.bmg-end { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); border-radius: 8px; background: rgb(255 122 26 / 0.06); }
.bmg-end p { margin: 0; font-weight: 600; color: var(--ember-2); }
.bmg-end[hidden] { display: none; }
.md-bmg > .md-bm-map { padding-top: 4px; }
@media (max-width: 760px) { .md-bmg-top { grid-template-columns: minmax(0, 1fr); justify-items: center; } .md-bmg-top .bmg { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .bmg-unlock, .bmg-unlock::after { animation: none; } }
/* wide screens: the Melee / Ranged / Guard / Special tags line up with the explanation box beside the map */
.bm-top[hidden], .bm-top-above[hidden] { display: none !important; }
.md-bm .bm-side-col .bm-top { align-items: flex-start; justify-content: flex-start; }
/* phones: COMMUNITY opens and closes only by tapping it (no sticky hover or focus) */
@media (hover: none) {
  .comm-menu:not(.tap-open) .comm-drop { opacity: 0 !important; visibility: hidden !important; }
  .comm-menu.tap-open .comm-drop { opacity: 1; visibility: visible; }
  .comm-menu.tap-open .comm-btn { border-color: var(--ember); }
}
/* phones: while the search bar is open under the header, a lit search button keeps its place in the header */
.ss-ph { display: none; }
@media (max-width: 760px) {
  .topbar-r .ss:is(:focus-within, .ss-open) .ss-ph { display: grid; place-items: center; width: 100%; min-width: 44px; height: 100%; min-height: 40px; border: 1px solid var(--ember); border-radius: 9px; background: var(--ember-soft); color: var(--ember-2); padding: 0; }
  .ss-ph .ico { width: 18px; height: 18px; }
}
/* upright phones, List view: widths set on the visible header cells, not on the column list. (The column list relied on
   Chrome moving the visible cells into the first column widths; Safari keeps the hidden columns' widths, which left
   Name about 1 px wide with its letters stacked.) */
@media (max-width: 760px) {
  .cards-table { table-layout: auto; width: 100%; }
  .cards-table col, .cards-table col:nth-child(n) { width: auto !important; }
  .cards-table th.num { width: 50px; }
  .cards-table th.name { width: auto; }
  .cards-table th.td-fac, .cards-table th.type, .cards-table th.td-rarity { width: 13%; }
  .cards-table td.name { white-space: normal; overflow-wrap: break-word; word-break: normal; min-width: 7.5em; }
}
/* Story: the lore hub tiles */
.st-hub { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 10px 0 8px; }
.st-tile { border-top: 2px solid var(--ember); background: linear-gradient(180deg, rgb(255 122 26 / 0.07), var(--abyss) 60%); }
.st-tile .md-tile-h { font-size: 1.15rem; }
.st-tile .md-tile-h .lnk .ico { width: 13px; height: 13px; margin-left: 6px; }
.st-tile > p { margin: 0; color: #d9d3ca; font-size: 0.92rem; }
.st-tile .md-chips { margin: 6px 0 0; gap: 6px; }
.md-chip .ico { width: 11px; height: 11px; margin-left: 4px; }
.st-overview > p { max-width: 70ch; }

/* ===== v0.25.0 (review round of v0.24.0, 2026-11-07) ===== */
:root { --special: #c58cff; --vmark: #8fd0ff; }
/* variant and edition marks (✪ ☆ ✦ ✧ ✶ + P V) in light blue, in List view and Card Details */
.vmark, .cards-table .mark .vmark, .name-mark.vmark { color: var(--vmark); }
/* newsletter: one light sweep on a sign-up (was two) */
.signup.signup-won::after { animation-iteration-count: 1; }
/* Battle Map: OPPONENT and YOU as dim, see-through orange text at the left (no chip), read bottom to top; no text cursor */
.bm-chip .bm-side { font: 700 11.5px var(--mono); letter-spacing: 0.14em; fill: rgb(255 122 26 / 0.4); }
.bm-chip-lit .bm-side { fill: rgb(197 140 255 / 0.6); }
.bm-svg text { -webkit-user-select: none; user-select: none; cursor: inherit; }
.bm-chip { pointer-events: none; }
/* a selected opponent position: its dotted outline in the colour of each range that can reach it; with two or three,
   the outline crossfades between them */
.bf-picked-can[class*="bf-via-"] rect:first-child { stroke: var(--via1); fill: color-mix(in srgb, var(--via1) 6%, transparent); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--via1) 60%, transparent)); }
.bf-picked-can.bf-via-2 rect:first-child { animation: lineFlow 1.2s linear infinite, via2 2.6s ease-in-out infinite; }
.bf-picked-can.bf-via-3 rect:first-child { animation: lineFlow 1.2s linear infinite, via3 3.9s ease-in-out infinite; }
@keyframes via2 { 0%, 100% { stroke: var(--via1); } 50% { stroke: var(--via2); } }
@keyframes via3 { 0%, 100% { stroke: var(--via1); } 33% { stroke: var(--via2); } 66% { stroke: var(--via3); } }
.bm-k-special { color: var(--special); }
@media (prefers-reduced-motion: reduce) { .bf-picked-can[class*="bf-via-"] rect:first-child { animation: none; } }
/* Battle Maps page guide: a finished step waits for NEXT STEP */
.bmg-next { margin-top: 10px; padding: 10px 18px; font-size: 0.8rem; animation: bmgNext 2.4s ease-in-out infinite; }
@keyframes bmgNext { 0%, 100% { box-shadow: 0 0 10px rgb(255 106 10 / 0.3); } 50% { box-shadow: 0 0 24px 4px rgb(255 122 26 / 0.6); } }
@media (prefers-reduced-motion: reduce) { .bmg-next { animation: none; } }
/* Card Database filter lists: dark lists with orange highlights (browsers that allow it; others keep their own list) */
.filters select option { background: #0a0a0d; color: var(--ink); }
.filters select option:checked, .filters select option:hover, .filters select option:focus { background: var(--ember); color: #120800; }
@supports (appearance: base-select) {
  .filters select, .filters select::picker(select) { appearance: base-select; }
  .filters select::picker(select) { background: #0a0a0d; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.7); }
  .filters select option { padding: 7px 10px; border-radius: 6px; }
  .filters select option::checkmark { display: none; }
}
/* a paragraph kept on one line on wide screens ({nowrap}) */
@media (min-width: 900px) { .md-oneline, .cp-body > .md-oneline { white-space: nowrap; max-width: none; } }
/* COMMUNITY: Support Development at the end of the list with a soft pulsing glow */
.comm-links [data-route="support"], .menu-drop .menu-sub[data-route="support"] { animation: supportGlow 3s ease-in-out infinite; }
@keyframes supportGlow { 0%, 100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 0 10px rgb(255 140 50 / 0.85), 0 0 2px rgb(255 190 120 / 0.6); color: #ffd3a6; } }
@media (prefers-reduced-motion: reduce) { .comm-links [data-route="support"], .menu-drop .menu-sub[data-route="support"] { animation: none; } }
/* card page: the name slides in from the left; RANDOM CARD fades in where it belongs */
.dv-name { animation: dvNameIn 0.7s cubic-bezier(.2,.7,.2,1) 0.1s backwards; }
@keyframes dvNameIn { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.dv-bar .dv-rand { transition: opacity 0.5s ease; }
.dv-bar .dv-rand.dv-rand-wait { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .dv-name { animation: none; } }
/* wide screens without room for RANDOM between NEXT CARD and the tabs: ALL, then RANDOM, then PREVIOUS / NEXT */
@media (min-width: 761px) {
  .dv-bar.dv-bar-tight .dv-all { display: inline-flex; order: 1; }
  .dv-bar.dv-bar-tight .dv-rand { order: 2; transform: none !important; }
  .dv-bar.dv-bar-tight .dv-rand .dv-step-l { display: none; }
  .dv-bar.dv-bar-tight .dv-step:not(.dv-rand) { order: 3; }
  .dv-bar.dv-bar-tight .dv-nav-wrap { order: 4; }
}
/* sideways phones: the fold arrow, ALL and RANDOM show as on upright phones */
@media (orientation: landscape) and (max-height: 500px) {
  .dv-bar .dv-all { display: inline-flex; padding: 6px 10px; font-size: 0.74rem; letter-spacing: 0.08em; }
  .dv-bar:not(.dv-bar-fixed) .dv-fold { display: inline-grid; }
  .dv-bar .dv-step-l { display: none; }
  .dv-bar .dv-rand { gap: 0; }
}
/* Glossary: the entry name links to its full lore entry (no underline, a glow on hover); symbols centred on the name */
.gl-row dt { align-items: center; }
.gl-row dt > .ico, .gl-row dt > .gl-fac { margin-top: 0; }
a.gl-term-a { color: inherit; text-decoration: none; transition: text-shadow 0.25s ease, color 0.25s ease; }
a.gl-term-a:hover, a.gl-term-a:focus-visible { text-decoration: none; color: #ffe2c2; text-shadow: 0 0 12px rgb(255 140 50 / 0.85); outline: none; }
/* home: THE STORY band is see-through at its left and right edges, so the embers show as they pass */
.cpage-home .md-band { background: transparent; border-block: 0; }
.cpage-home .md-band::after, .cpage-home .md-band-bg, .cpage-home .md-band::before {
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%); }
/* home: the central orange buttons pulse softly */
.cpage-home .cp-body > .md-btns .md-btn-cta, .cpage-home .md-band .md-btn-cta { animation: ctaPulse 3.2s ease-in-out infinite; }
.cpage-home .cp-body > .md-btns .md-btn-cta:hover, .cpage-home .md-band .md-btn-cta:hover { animation: none; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 16px rgb(255 106 10 / 0.3); } 50% { box-shadow: 0 0 34px 6px rgb(255 122 26 / 0.6); } }
@media (prefers-reduced-motion: reduce) { .cpage-home .cp-body > .md-btns .md-btn-cta, .cpage-home .md-band .md-btn-cta { animation: none; } }
/* What Is Axion Forge: a glow fades in behind each of the four orange facts on hover */
.md-split-m > .md-facts .md-img { transition: filter 0.5s ease; filter: drop-shadow(0 0 0 rgb(255 130 40 / 0)); }
.md-split-m > .md-facts .md-img:hover { filter: drop-shadow(0 0 18px rgb(255 130 40 / 0.8)) drop-shadow(0 0 6px rgb(255 170 90 / 0.5)); }
/* the video a little larger, with an orange outline */
.md-split:has(> .md-split-m .md-video) { grid-template-columns: minmax(0, 1fr) minmax(260px, 48%); }
.md-split-m > .md-video-w { width: 100%; }
.md-split-m .md-video { border: 1px solid var(--ember); border-radius: 10px; overflow: hidden; box-shadow: 0 0 22px rgb(255 122 26 / 0.25); }
@media (max-width: 760px) { .md-split:has(> .md-split-m .md-video) { grid-template-columns: minmax(0, 1fr); } }
/* RELATED boxes: room above, centred in the text column, the heading on its own line, plain chips */
.md-related { margin: 30px auto 8px; width: fit-content; max-width: 100%; align-items: center; text-align: center; }
.md-related-h { display: block; margin: 0 0 6px; }
.md-related .md-chips { justify-content: center; }
.md-chip, .md-chip:hover, .md-chip:focus-visible { text-decoration: none; }
.md-chip-ar { display: none; }
/* Official Links */
.page-ol .cp-body { display: flex; flex-direction: column; gap: 22px; }
.ol-group { padding: 18px 20px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); border-radius: 10px; background: linear-gradient(180deg, rgb(255 122 26 / 0.06), rgb(13 13 16 / 0.6) 70%); }
.ol-h { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font: 700 1.1rem/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: #f0c27a; }
.ol-lede { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.ol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }   /* v0.32.0 (user): two panels side by side (was four) */
.ol-stack { display: flex; flex-direction: column; gap: 22px; }
.ol-pic { width: 24px; height: 24px; flex: 0 0 auto; object-fit: contain; }
.ol-has-pic { justify-content: flex-start; }
.ol-has-pic .ol-t { flex: 1 1 auto; }
.ol-grid .ol-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ol-list { display: flex; flex-direction: column; gap: 6px; }
.ol-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgb(255 255 255 / 0.02); color: var(--ink); text-decoration: none; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.ol-a:hover, .ol-a:focus-visible { border-color: var(--ember); background: rgb(255 122 26 / 0.1); box-shadow: 0 0 14px rgb(255 122 26 / 0.25); text-decoration: none; outline: none; }
.ol-t { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 0.92rem; }
.ol-sub { font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.ol-ico { width: 14px; height: 14px; flex: 0 0 auto; color: var(--ember-2); }
.ol-ar { color: var(--ember-2); font-size: 1.1rem; line-height: 1; }
.ol-tag { font: 600 0.6rem/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; }
.ol-soon { opacity: 0.6; }
.ol-chan { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.ol-c { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 0.02); color: var(--ink); text-decoration: none; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.ol-c img { width: 34px; height: 34px; object-fit: contain; }
.ol-c:hover, .ol-c:focus-visible { border-color: var(--ember); box-shadow: 0 0 16px rgb(255 122 26 / 0.3); transform: translateY(-2px); text-decoration: none; outline: none; }
.ol-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.ol-col { display: flex; flex-direction: column; gap: 6px; }
.ol-col-h { margin: 0 0 4px; font: 600 0.66rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember-2); }
.ol-col .ol-a { padding: 7px 10px; }
@media (max-width: 760px) { .ol-grid, .ol-grid .ol-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .ol-group { padding: 14px; } .ol-chan { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .ol-c { font-size: 0.62rem; letter-spacing: 0.06em; padding: 12px 4px 10px; } }

/* ===================== v0.26.0 review round ===================== */
/* opening screen: the burning emblem fills the window; "OPENING AXION FORGE…" in gold under it; a light sweeps across
   the words, then the screen fades out over the page (app.js endBoot) */
.boot { position: fixed; inset: 0; z-index: 1000; min-height: 0; display: block; padding: 0; background: #050506; transition: opacity 0.7s ease; }
.boot-fire { position: absolute; inset: 0; background-position: center 45%; background-size: contain; background-repeat: no-repeat; -webkit-mask: radial-gradient(ellipse 46% 50% at 50% 45%, #000 45%, transparent 100%); mask: radial-gradient(ellipse 46% 50% at 50% 45%, #000 45%, transparent 100%); animation: bootIn 0.9s ease-out both; }
.boot-t { position: absolute; left: 16px; right: 16px; bottom: max(12%, 56px); margin: 0; text-align: center; font: 700 clamp(1.15rem, 0.8rem + 1.8vw, 2rem)/1.2 var(--display); letter-spacing: 0.24em; text-transform: uppercase;
  color: #f0c27a; background: linear-gradient(100deg, #f0c27a 0 42%, #fff6e2 50%, #f0c27a 58% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px rgb(255 140 40 / 0.45)); animation: bootIn 0.9s ease-out 0.15s both; }
.boot-sweep .boot-t { animation: bootIn 0.9s ease-out 0.15s both, bootSweep 1.3s ease-in-out 0.25s both; }   /* v0.29.0 (user): the sweep plays at once, over the fade-in (one list, so nothing restarts: no blink) */
.boot-out { opacity: 0; pointer-events: none; }
@keyframes bootIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bootSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .boot-fire { animation: none; } .boot-t, .boot-sweep .boot-t { animation: none; } .boot { transition-duration: 0.25s; } }

/* gold page headings: a subtle light sweeps across the words now and then */
.cp-h1 { width: fit-content; max-width: 100%; color: var(--gold-2); text-shadow: none; filter: drop-shadow(0 2px 14px rgb(255 140 40 / 0.28));
  background: linear-gradient(100deg, var(--gold-2) 0 43%, #fff5de 50%, var(--gold-2) 57% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: h1Sweep 10s ease-in-out 1.2s infinite; }
@keyframes h1Sweep { 0% { background-position: 100% 0; } 14%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .cp-h1 { animation: none; } }

/* header links: an orange line grows under the link on hover (as RELATED design 3) */
.topnav-a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 10px var(--ember); transform: scaleX(0); transform-origin: left center; transition: transform 0.32s ease; }
.topnav-a:hover::after, .topnav-a:focus-visible::after, .topnav-a.open::after, .topnav-a.on::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .topnav-a::after { transition: none; } }

/* MENU on desktop: a compact list of section names, each opening its own list; Factions folds under its overview link */
.menu-kid-h { display: flex; align-items: center; }
.menu-kid-h > .menu-a { flex: 1 1 auto; }
.menu-kid-t { display: none; width: 36px; height: 34px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.menu-kid-t:hover { color: var(--ink); background: rgb(255 255 255 / 0.04); }
.menu-kid-t .caret { display: inline-block; transition: transform 0.25s ease; }
.menu-kids { display: flex; flex-direction: column; }
.menu-kids .menu-kid { padding-left: 28px; }
.menu-drop.menu-acc { width: min(calc(100vw - 24px), 320px); }
.menu-acc .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.menu-acc .menu-sec { padding-bottom: 0; border-bottom: 1px solid var(--line); }
.menu-acc .menu-sec-t { display: grid; place-items: center; cursor: pointer; }
.menu-acc .menu-sec-t:hover { color: var(--ink); background: rgb(255 255 255 / 0.04); }
.menu-acc .menu-sec.open .menu-sec-t .caret { transform: rotate(180deg); }
.menu-acc .menu-sec-b { display: block; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.menu-acc .menu-sec.open .menu-sec-b { max-height: 1000px; }
.menu-acc .menu-kid-t { display: grid; place-items: center; }
.menu-acc .menu-kids { display: block; overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.menu-acc .menu-kid-g.open .menu-kids { max-height: 600px; }
.menu-acc .menu-kid-g.open .menu-kid-t .caret { transform: rotate(180deg); }
.menu-acc .menu-kids > .menu-a { display: block; }
.menu-acc .menu-kids > .menu-a.is-soon { display: flex; }

/* forms (Contact, Let's Work Together, newsletter): the field with the error is outlined in red and glows red briefly */
.siteform .sf-bad, .signup-row input.signup-badin { background-color: rgb(255 90 74 / 0.07); }
.sf-glow, .siteform .sf-glow, .signup-row input.sf-glow { animation: errGlow 1.2s ease-out; }
@keyframes errGlow { 0% { box-shadow: 0 0 0 1px #ff5a4a, 0 0 0 0 rgb(255 90 74 / 0); } 22% { box-shadow: 0 0 0 1px #ff5a4a, 0 0 26px 6px rgb(255 90 74 / 0.75); } 100% { box-shadow: 0 0 0 1px #ff5a4a, 0 0 14px 0 rgb(255 90 74 / 0.3); } }
@media (prefers-reduced-motion: reduce) { .sf-glow, .siteform .sf-glow, .signup-row input.sf-glow { animation: none; } }

/* RELATED: small link cards, one line about each page, under a quiet label and a thin line; the whole card lights orange */
.md-related.md-rel3 { width: auto; margin: 28px 0 6px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; align-items: stretch; text-align: left; }
.md-rel3 .md-related-h { margin: 0 0 8px; }
.md-rel3 .md-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; justify-content: stretch; margin: 0; }
.md-chip.md-rel { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgb(255 255 255 / 0.015); font: 400 0.8rem/1.35 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); text-decoration: none; transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.md-rel-t { padding-bottom: 2px; font: 600 0.72rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 1px no-repeat; transition: background-size 0.3s ease, color 0.2s ease; }
.md-rel-l { color: var(--muted); font-size: 0.8rem; }
.md-rel-l:empty { display: none; }
.md-chip.md-rel:hover, .md-chip.md-rel:focus-visible { background: rgb(255 122 26 / 0.12); border-color: rgb(255 122 26 / 0.5); box-shadow: 0 0 14px rgb(255 122 26 / 0.16); outline: none; }
.md-chip.md-rel:hover .md-rel-t, .md-chip.md-rel:focus-visible .md-rel-t { background-size: 100% 1px; color: var(--ember-2); }

/* buttons that catch fire on hover (fire ideas 5): GO BACK / RETURN HOME, the Play header's buttons */
.md-btn.fire-btn { position: relative; overflow: hidden; isolation: isolate; color: var(--ink) !important; background: #120a05; border: 1px solid #ff8a2a; transition: color 0.3s ease, box-shadow 0.4s ease, text-shadow 0.3s ease; }
.md-btn.fire-btn.md-btn-cta { color: #160800 !important; background: linear-gradient(180deg, #ffb062, #ff6a0a); }
.md-btn.fire-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--fire) center / 150% auto no-repeat, #120a05; opacity: 0; transition: opacity 0.45s ease; filter: saturate(1.4) brightness(1.35); }
.md-btn.fire-btn:hover::before, .md-btn.fire-btn:focus-visible::before { opacity: 1; }
.md-btn.fire-btn:hover, .md-btn.fire-btn:focus-visible { color: #fff3e4 !important; text-shadow: 0 1px 6px #000, 0 0 2px #000; box-shadow: 0 0 28px rgb(255 110 20 / 0.55); filter: none; }

/* the A at the bottom of every page: the burning emblem behind it */
.foot-mark { position: relative; isolation: isolate; min-height: 150px; }
.foot-mark img { position: relative; z-index: 1; }
.foot-fire { position: absolute; left: 50%; top: 50%; z-index: 0; width: min(360px, 100vw); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); pointer-events: none; background: var(--fire) center / cover no-repeat; opacity: 0.75;
  -webkit-mask: radial-gradient(ellipse 48% 48% at center, #000 30%, transparent 100%); mask: radial-gradient(ellipse 48% 48% at center, #000 30%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .foot-fire { background-image: var(--fire-still); } }

/* Page not found and Coming soon (fire ideas 6): the text at the left, the burning emblem at the right */
.page.lost { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; width: min(100%, 1180px); min-height: min(72vh, 600px); margin: 0 auto; }
.lost-fire { position: absolute; inset: 0 0 0 34%; z-index: -1; background: var(--fire) center / cover no-repeat;
  -webkit-mask: radial-gradient(ellipse 52% 56% at 55% 50%, #000 40%, transparent 100%); mask: radial-gradient(ellipse 52% 56% at 55% 50%, #000 40%, transparent 100%); animation: bootIn 1.2s ease-out both; }
.lost-in { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px clamp(8px, 3vw, 40px); }
.lost-h { margin: 0; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.8rem); }
.lost .md-btns { gap: 12px; }
@media (max-width: 760px) { .page.lost { grid-template-columns: minmax(0, 1fr); min-height: 70vh; } .lost-fire { inset: 0; opacity: 0.45; -webkit-mask: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 100%); mask: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 100%); } .lost-in { align-items: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .lost-fire { background-image: var(--fire-still); animation: none; } }

/* Play page (hero: fire): a large header over the burning emblem, then the page laid out like the home page */
.cp-head.cp-firehead { position: relative; isolation: isolate; overflow: hidden; align-items: center; justify-content: center; text-align: center; gap: 14px; min-height: min(80vh, 700px);
  margin: -24px calc(-1 * max(16px, env(safe-area-inset-left, 0px))) 0; padding: clamp(80px, 10vw, 130px) 20px clamp(46px, 6vw, 80px); border-bottom: 0; }
.cp-firehead::after { display: none; }
.cp-fire { position: absolute; inset: 0; z-index: -2; background: var(--fire) center 42% / cover no-repeat; filter: brightness(1.45) saturate(1.15); animation: bootIn 1.4s ease-out both; }
.cp-firehead::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgb(5 5 6 / 0.05), rgb(5 5 6 / 0.7) 85%), linear-gradient(0deg, var(--void) 0%, transparent 26%); }
.cp-firehead .cp-eyebrow { justify-content: center; }
.cp-firehead .cp-h1 { font-size: clamp(2.8rem, 1.6rem + 5.4vw, 5.6rem); letter-spacing: 0.08em; filter: drop-shadow(0 4px 26px rgb(0 0 0 / 0.95)) drop-shadow(0 0 22px rgb(255 120 30 / 0.3)); }
.cp-firehead .cp-tag { color: var(--ink); font: 700 clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem)/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 2px 12px #000; }
.cp-lede { max-width: 58ch; margin: 0 auto; font-size: 1.05rem; color: #e9e3d9; text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.cp-fire-btns { justify-content: center; margin-top: 10px; }
.cp-fire-btns .md-btn { padding: 18px 30px; font-size: 1rem; }
.cpage-fire .cp-main { gap: 0; }
.cpage-fire .cp-body { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .cp-fire { background-image: var(--fire-still); animation: none; } }
/* the Play page's ways to play: large cards; the planned ones are quieter */
.cpage-fire .md-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.cpage-fire .md-tile { position: relative; overflow: hidden; isolation: isolate; padding: 24px 22px; gap: 12px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); border-radius: 12px; background: linear-gradient(180deg, rgb(255 122 26 / 0.08), rgb(11 11 14 / 0.92) 60%); text-align: left; transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.3s ease; }
.cpage-fire .md-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--fire) center 60% / cover no-repeat; opacity: 0; transition: opacity 0.5s ease; -webkit-mask: linear-gradient(0deg, #000, transparent 75%); mask: linear-gradient(0deg, #000, transparent 75%); }
.cpage-fire .md-tile:hover { transform: translateY(-4px); border-color: rgb(255 122 26 / 0.6); box-shadow: 0 16px 34px rgb(0 0 0 / 0.55), 0 0 24px rgb(255 122 26 / 0.22); }
.cpage-fire .md-tile:hover::before { opacity: 0.35; }
.cpage-fire .md-tile-h { font-size: 1.15rem; }
.cpage-fire .md-tile p { color: #d9d3ca; }
.cpage-fire .md-tile .md-btns { margin-top: auto; justify-content: flex-start; }
.cpage-fire .md-tile .md-btns .md-btn { padding: 13px 20px; font-size: 0.86rem; animation: none; }
.cpage-fire .md-planned .md-tile { border-top-color: var(--line-2); background: rgb(11 11 14 / 0.7); }
.cpage-fire .md-planned .md-tile-h { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cpage-fire .md-tile, .cpage-fire .md-tile::before { transition: none; } .cpage-fire .md-tile:hover { transform: none; } }

/* home: the large orange buttons keep their soft pulse; the hover glow fades in, and fades out when the pointer leaves */
@property --hov { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --pul { syntax: "<number>"; inherits: false; initial-value: 0; }
.cpage-home .cp-body > .md-btns .md-btn-cta, .cpage-home .md-band .md-btn-cta, .cpage-home .hero-btns .md-btn-cta,
.cpage-home .cp-body > .md-btns .md-btn-cta:hover, .cpage-home .md-band .md-btn-cta:hover, .cpage-home .hero-btns .md-btn-cta:hover,
.cpage-home .cp-body > .md-btns .md-btn-cta:focus-visible, .cpage-home .md-band .md-btn-cta:focus-visible, .cpage-home .hero-btns .md-btn-cta:focus-visible {
  box-shadow: 0 0 calc(16px + 20px * max(var(--pul), var(--hov))) calc(6px * max(var(--pul), var(--hov))) rgb(255 122 26 / calc(0.3 + 0.32 * max(var(--pul), var(--hov))));
  animation: ctaPulse2 3.2s ease-in-out infinite; transition: --hov 0.55s ease, filter 0.2s ease; }
.cpage-home .cp-body > .md-btns .md-btn-cta:hover, .cpage-home .md-band .md-btn-cta:hover, .cpage-home .hero-btns .md-btn-cta:hover,
.cpage-home .cp-body > .md-btns .md-btn-cta:focus-visible, .cpage-home .md-band .md-btn-cta:focus-visible, .cpage-home .hero-btns .md-btn-cta:focus-visible { --hov: 1; }
.cpage-home .hero-btns .md-btn-cta, .cpage-home .hero-btns .md-btn-cta:hover, .cpage-home .hero-btns .md-btn-cta:focus-visible { animation: none; }
@keyframes ctaPulse2 { 0%, 100% { --pul: 0; } 50% { --pul: 1; } }
@media (prefers-reduced-motion: reduce) { .cpage-home .cp-body > .md-btns .md-btn-cta, .cpage-home .md-band .md-btn-cta, .cpage-home .cp-body > .md-btns .md-btn-cta:hover, .cpage-home .md-band .md-btn-cta:hover { animation: none; } }

/* home hero mockups (?herobg=a or b; samples/home-top-loop.html): the story loop behind the hero */
.hero-loop { position: absolute; inset: 0; background: var(--story-loop) center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { .hero-loop { background-image: var(--story-still); } }
.hero-loop-a .hero-bg::after { background: linear-gradient(90deg, rgb(5 5 6 / 0.85), rgb(5 5 6 / 0.35) 55%, rgb(5 5 6 / 0.15)), linear-gradient(0deg, var(--void), transparent 35%); }
.hero-loop-b .hero-bg { -webkit-mask: radial-gradient(ellipse 62% 70% at 50% 45%, #000 40%, transparent 100%); mask: radial-gradient(ellipse 62% 70% at 50% 45%, #000 40%, transparent 100%); }
.hero-loop-b .hero-loop { background-position: 62% center; }
.hero-loop-b .hero-bg::after { background: radial-gradient(ellipse at 50% 45%, rgb(5 5 6 / 0.25), rgb(5 5 6 / 0.7)); }
.hero-loop-b .hero-in { align-items: center; text-align: center; margin-inline: auto; }
.hero-loop-b .hero-pitch { margin-inline: auto; }
.cpage-home .hero-loop-b .hero-btns, .hero-loop-b .hero-facs { justify-content: center; }

/* Glossary: larger symbols on the entry names, a little higher; no underlines on its links */
.gl-row dt > .ico { width: 24px; height: 24px; transform: translateY(-2px); }
.gl-row dt > .gl-fac { width: 30px; height: 30px; transform: translateY(-2px); }
.page-gl a, .page-gl a:hover, .page-gl a:focus-visible { text-decoration: none; }

/* card page: the name slides straight in from the left (its header only fades, no upward slide) */
.dv-main > .dv-head.stagger-in { animation: bootIn 0.5s ease-out backwards; animation-delay: var(--d, 0ms); }
/* card page bar on desktop: never folded, however narrow; the compact bar keeps one row while it fits and centres
   each row when it wraps, with no wide gap between the buttons */
@media (hover: hover) and (pointer: fine) { .dv-bar .dv-fold, .dv-bar .dv-expand { display: none !important; } }
.dv-bar.dv-bar-tight { justify-content: center; column-gap: 14px; }
.dv-bar.dv-bar-tight > * { margin-left: 0 !important; margin-right: 0 !important; }
.dv-bar.dv-bar-tight .dv-step:not(.dv-rand) { transform: none !important; }
.dv-bar.dv-bar-tight .dv-nav-wrap { width: auto; max-width: 100%; }
@media (max-width: 760px) and (hover: hover) and (pointer: fine) { .dv-bar .dv-all { display: inline-flex; order: 1; } .dv-bar .dv-rand { order: 2; } .dv-bar .dv-step:not(.dv-rand) { order: 3; } .dv-bar .dv-nav-wrap { order: 4; } }

/* Battle Map: OPPONENT and YOU centred on their own side, larger, bolder and dimmer */
.bm-chip .bm-side { font: 800 15px var(--mono); letter-spacing: 0.22em; fill: rgb(255 122 26 / 0.22); }
.bm-chip-lit .bm-side { fill: rgb(197 140 255 / 0.4); }

/* About, narrow windows: LET'S TALK under the first two paragraphs, its question beside the button */
@media (max-width: 899px) {
  .cpage[data-path="about"] .cp-body > * { order: 3; }
  .cpage[data-path="about"] .cp-body > p:nth-of-type(1), .cpage[data-path="about"] .cp-body > p:nth-of-type(2) { order: 1; }
  .cpage[data-path="about"] .cp-body > .md-talk { order: 2; float: none; width: auto; margin: 4px 0 6px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
}

/* sideways phones: the faction page's Collection boxes twice as wide (two per row), inside the Collection panel */
@media (orientation: landscape) and (max-height: 500px) {
  .fstat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fstat { min-width: 0; }
  .fstat-txt span { white-space: normal; overflow-wrap: anywhere; }
}

/* Community Hub: the channels as lively tiles (Discord first and larger), then the ways to take part as numbered cards */
.cpage[data-path="community"] .ol-chan { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.cpage[data-path="community"] .ol-c { position: relative; overflow: hidden; padding: 18px 8px 14px; animation: chanIn 0.6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
.cpage[data-path="community"] .ol-c img { width: 40px; height: 40px; transition: transform 0.35s cubic-bezier(.3,1.6,.5,1), filter 0.35s ease; }
.cpage[data-path="community"] .ol-c:hover img, .cpage[data-path="community"] .ol-c:focus-visible img { transform: translateY(-3px) scale(1.14) rotate(-4deg); filter: drop-shadow(0 0 10px rgb(255 140 50 / 0.7)); }
.cpage[data-path="community"] .ol-c:first-child { grid-column: span 2; flex-direction: row; justify-content: center; gap: 14px; font-size: 0.9rem; border-color: rgb(255 122 26 / 0.45); background: linear-gradient(180deg, rgb(255 122 26 / 0.12), rgb(255 255 255 / 0.02)); animation: chanIn 0.6s cubic-bezier(.2,.7,.2,1) 0.2s backwards, chanGlow 3.2s ease-in-out 1s infinite; }
.cpage[data-path="community"] .ol-c:first-child img { width: 48px; height: 48px; }
@keyframes chanIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes chanGlow { 0%, 100% { box-shadow: 0 0 0 rgb(255 122 26 / 0); } 50% { box-shadow: 0 0 22px rgb(255 122 26 / 0.35); } }
.cpage[data-path="community"] .md-tiles { counter-reset: quest; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cpage[data-path="community"] .md-tile-h { padding-right: 64px; }
.cpage[data-path="community"] .md-tile { counter-increment: quest; position: relative; overflow: hidden; isolation: isolate; padding: 22px 20px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(160deg, rgb(255 122 26 / 0.08), rgb(11 11 14 / 0.95) 55%); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease; }
.cpage[data-path="community"] .md-tile::before { content: counter(quest, decimal-leading-zero); position: absolute; right: 14px; top: 8px; z-index: -1; font: 700 3.4rem/1 var(--display); color: rgb(255 122 26 / 0.12); transition: color 0.4s ease, transform 0.4s ease; }
.cpage[data-path="community"] .md-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 190 120 / 0.14) 50%, transparent 70%); transform: translateX(-120%); }
.cpage[data-path="community"] .md-tile:hover { transform: translateY(-4px); border-color: rgb(255 122 26 / 0.6); box-shadow: 0 14px 30px rgb(0 0 0 / 0.5), 0 0 22px rgb(255 122 26 / 0.2); }
.cpage[data-path="community"] .md-tile:hover::before { color: rgb(255 122 26 / 0.3); transform: scale(1.08); }
.cpage[data-path="community"] .md-tile:hover::after { animation: sweepX 0.9s ease-in-out; }
.cpage[data-path="community"] .md-tile .md-btns { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .cpage[data-path="community"] .ol-c, .cpage[data-path="community"] .ol-c:first-child { animation: none; } .cpage[data-path="community"] .md-tile:hover { transform: none; } .cpage[data-path="community"] .md-tile:hover::after { animation: none; } }
@media (max-width: 480px) { .cpage[data-path="community"] .ol-chan { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cpage[data-path="community"] .ol-c:first-child { grid-column: 1 / -1; } }
/* the Play page: its card wall sits under its heading (on the home page it overlaps the hero) */
.cpage-fire .cp-body > .cw { margin-top: 0 !important; pointer-events: auto; }
/* touch screens: the card wall is drawn as one flat tilted picture (no 3D layer for each of its cards), which uses far
   less memory; phones have no hover magnification, which was the reason for the per-card 3D. (A sideways phone could
   not open the home page: most likely the browser ran out of memory.) */
@media (pointer: coarse) {
  .cw-tilt { transform-style: flat; }
  .cw-c { backface-visibility: visible; }
}

/* ===================== v0.27.0 review round ===================== */
/* opening screen: the fire covers the whole window; the A emblem burns in at the centre with the words under it
   (js/core/boot.js). .boot-skip: a later load of the same visit (index.html hides it before anything is drawn). */
.boot.boot-skip { display: none; }
.boot-fire { background-size: cover; background-position: center; -webkit-mask: none; mask: none; filter: brightness(1.15) saturate(1.1); }
.boot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgb(5 5 6 / 0.55), rgb(5 5 6 / 0.15) 70%, transparent); }
.boot-mid { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: clamp(14px, 3vh, 26px); padding: 16px; }
.boot-a { width: clamp(84px, 16vmin, 160px); height: auto; animation: bootA 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both, bootAGlow 2.6s ease-in-out 1.4s infinite; }
.boot .boot-t { position: static; margin: 0; }
.boot-pass { animation: bootIn 0.38s ease-out backwards; }
.boot-pass .boot-a { animation-duration: 0.9s, 2.6s; animation-delay: 0s, 0.9s; }
@keyframes bootA {
  0% { opacity: 0; transform: scale(0.55); filter: blur(14px) brightness(3) drop-shadow(0 0 0 rgb(255 140 40 / 0)); }
  55% { opacity: 1; filter: blur(0) brightness(1.8) drop-shadow(0 0 34px rgb(255 140 40 / 0.9)); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1) drop-shadow(0 0 18px rgb(255 120 30 / 0.55)); }
}
@keyframes bootAGlow { 0%, 100% { filter: drop-shadow(0 0 18px rgb(255 120 30 / 0.55)); } 50% { filter: drop-shadow(0 0 30px rgb(255 140 40 / 0.85)); } }
@media (prefers-reduced-motion: reduce) { .boot-a, .boot-pass, .boot-pass .boot-a { animation: none; } }

/* the A at the bottom of every page: a wider, softer fade around the fire, so its oval no longer shows */
.foot-fire { width: min(620px, 140vw); opacity: 0.8;
  -webkit-mask: radial-gradient(closest-side, #000 0%, rgb(0 0 0 / 0.85) 18%, rgb(0 0 0 / 0.5) 42%, rgb(0 0 0 / 0.2) 66%, rgb(0 0 0 / 0.06) 84%, transparent 100%);
  mask: radial-gradient(closest-side, #000 0%, rgb(0 0 0 / 0.85) 18%, rgb(0 0 0 / 0.5) 42%, rgb(0 0 0 / 0.2) 66%, rgb(0 0 0 / 0.06) 84%, transparent 100%); }

/* the header wordmark: the fire burns behind it, fading out hard toward the right */
.brand-fire { position: absolute; z-index: -3; top: -12px; bottom: -12px; left: -34px; right: -60px; pointer-events: none; background: var(--fire) 38% 45% / cover no-repeat; opacity: 0.85; filter: brightness(1.35) saturate(1.2);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 16%, #000 34%, rgb(0 0 0 / 0.45) 50%, rgb(0 0 0 / 0.1) 62%, transparent 72%), linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0, #000 16%, #000 34%, rgb(0 0 0 / 0.45) 50%, rgb(0 0 0 / 0.1) 62%, transparent 72%) intersect, linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent); }
@media (prefers-reduced-motion: reduce) { .brand-fire { background-image: var(--fire-still); } }

/* header links (v0.27.0, user): no moving line on hover. The word lights white with a white glow, then over a few
   seconds turns to burning orange (the fire loop inside the letters) with an orange glow behind it. The lit section
   keeps a still orange line. */
.topnav-a::after { transition: none; transform: scaleX(0); }
.topnav-a.on::after { transform: scaleX(1); }
.topnav-a:hover::after, .topnav-a:focus-visible::after, .topnav-a.open::after { transform: scaleX(0); }
.topnav-a.on:hover::after, .topnav-a.on:focus-visible::after, .topnav-a.on.open::after { transform: scaleX(1); opacity: 0.35; }
.topnav-a:hover, .topnav-a.open, .topnav-a:focus-visible { animation: none; --tc: #fff; }
.topnav-a::before { content: attr(data-t); position: absolute; inset: 0; padding: inherit; pointer-events: none; white-space: nowrap;
  background: var(--fire) center / 260% auto, linear-gradient(100deg, #ff7a1a, #ffb347 50%, #ff7a1a); background-blend-mode: screen;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; transition: opacity 0.35s ease; }
.topnav-a:hover::before, .topnav-a.open::before, .topnav-a:focus-visible::before { opacity: 1; transition: opacity 1.6s ease 0.55s; }
.topnav-a:hover, .topnav-a.open, .topnav-a:focus-visible { animation: navLight 2.4s ease forwards; }
@keyframes navLight {
  0% { filter: drop-shadow(0 0 0 rgb(255 255 255 / 0)); }
  20% { filter: drop-shadow(0 0 7px rgb(255 255 255 / 0.75)); }
  100% { filter: drop-shadow(0 0 9px rgb(255 120 30 / 0.85)) drop-shadow(0 0 18px rgb(255 90 10 / 0.35)); }
}
@media (prefers-reduced-motion: reduce) { .topnav-a:hover, .topnav-a.open, .topnav-a:focus-visible { animation: none; filter: drop-shadow(0 0 8px rgb(255 120 30 / 0.7)); } .topnav-a:hover::before { transition: none; } }

/* What Is Axion Forge: the pictures and the video sit level with the first paragraph (were centred beside the text) */
.cpage[data-path="learn/what-is-axion-forge"] .md-split { align-items: start; }
.cpage[data-path="learn/what-is-axion-forge"] .md-split-m { align-content: start; margin-top: -10px; }
.cpage[data-path="learn/what-is-axion-forge"] .md-split-m:has(> .md-video-w, > .md-video, > .md-facts) { margin-top: 4px; }
/* {eyebrow}: the small orange label above a heading; the heading follows close under it */
.md-eyebrow { margin: 72px 0 -6px; }
.md-eyebrow + .md-h2 { margin-top: 0 !important; }
.cpage[data-path="learn/what-is-axion-forge"] .md-tiles { margin-top: 10px; }

/* RELATED: the link cards stay on one line while they fit (each shares the width); two per row on narrow phones */
.md-rel3 .md-chips { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 270px); justify-content: start; }
@media (max-width: 520px) { .md-rel3 .md-chips { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-rel3 .md-chips > :only-child { grid-column: 1 / -1; } }

/* home: the four facts spread evenly between the top of the logo and the bottom of "Forge the future" (ContentPage alignFacts) */
.cpage-home .cp-body > .md-box.md-facts.md-facts-fit { justify-content: space-between; gap: 0; }
.cpage-home .md-facts-fit .md-img { width: auto; height: auto; max-height: calc((100% - 30px) / 4); max-width: clamp(64px, 5.4vw, 92px); }
/* phones (v0.27.0): the four facts sit higher, clear of the card carousel under them */
@media (max-width: 760px) { .cpage-home .cp-body > .md-box.md-facts { margin: 4px auto 0 !important; position: relative; z-index: 3; } .cpage-home .cp-body > .md-facts + .cw { margin-top: -8px !important; } }

/* home, touch screens: the faction's "Explore …" button under its name and tagline */
.hero-fac-go { display: inline-grid; place-items: center; margin-top: 10px; padding: 10px 18px; border-radius: 9px; background: var(--fac); color: #0b0b0e; font: 700 0.8rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: none; box-shadow: 0 0 16px color-mix(in srgb, var(--fac) 45%, transparent); cursor: pointer; }
.hero-fac-line.on .hero-fac-go { animation: subIn 0.5s ease-out 0.34s backwards; }
@media (prefers-reduced-motion: reduce) { .hero-fac-line.on .hero-fac-go { animation: none; } }

/* Learn to Play (::: tutorial): the chapter bar, a thin progress line, one step at a time, BACK / Step x / y / NEXT */
.md-tutorial { margin: 22px 0 10px; border: 1px solid var(--line-2); border-top: 2px solid var(--ember); border-radius: 12px; background: linear-gradient(180deg, rgb(255 122 26 / 0.06), transparent 30%), rgb(10 10 13 / 0.85); scroll-margin-top: 110px; overflow: hidden; }
.tut-chs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-bottom: 1px solid var(--line); }
.tut-ch { display: flex; align-items: center; gap: 10px; padding: 14px 14px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); text-align: left; cursor: pointer; transition: background 0.3s, color 0.3s; }
.tut-ch:last-child { border-right: 0; }
.tut-ch:hover { color: var(--ink); background: rgb(255 255 255 / 0.03); }
.tut-ch-n { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; font: 700 0.8rem/1 var(--display); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.tut-ch-t { font: 700 0.78rem/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.tut-ch.done .tut-ch-n { border-color: rgb(255 122 26 / 0.6); color: var(--ember-2); }
.tut-ch.on { color: var(--ink); background: rgb(255 122 26 / 0.08); }
.tut-ch.on .tut-ch-n { background: var(--ember); border-color: var(--ember); color: #120a05; box-shadow: 0 0 14px rgb(255 122 26 / 0.55); }
.tut-prog { display: block; height: 2px; background: rgb(255 255 255 / 0.05); }
.tut-prog-i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--gold-2)); box-shadow: 0 0 10px var(--ember); transition: width 0.5s ease; }
.tut-stage { padding: clamp(18px, 3vw, 30px); min-height: 340px; }
.tut-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 42%); gap: clamp(18px, 3vw, 36px); align-items: start; animation: tutIn 0.45s ease-out both; }
.tut-step.tut-step-text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@keyframes tutIn { from { opacity: 0; transform: translateX(14px); } }
.tut-kicker { margin: 0 0 6px; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember-2); }
.tut-intro { color: var(--muted); }
.tut-intro p { margin: 0 0 10px; }
.tut-h { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; font: 700 clamp(1.15rem, 0.9rem + 1vw, 1.6rem)/1.2 var(--display); letter-spacing: 0.05em; color: var(--gold-2); }
.tut-h-n { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--ember); border-radius: 8px; font-size: 1rem; color: var(--ember-2); }
.tut-step-t > p, .tut-step-t li { line-height: 1.65; }
.tut-step-m { display: grid; gap: 12px; justify-items: center; }
.tut-step-m .md-img { width: 100%; max-width: 420px; margin: 0; -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 72% at center, #000 55%, transparent 100%); }
.tut-step-m .md-cards { margin: 0; justify-content: center; }
.tut-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(18px, 3vw, 30px); border-top: 1px solid var(--line); }
.tut-count { font: 600 0.72rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tut-nav .md-btn:disabled { opacity: 0.35; pointer-events: none; }
@media (max-width: 760px) {
  .tut-chs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tut-ch { flex-direction: column; gap: 6px; padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--line); }
  .tut-ch-t { font-size: 0.62rem; letter-spacing: 0.04em; }
  .tut-step { grid-template-columns: minmax(0, 1fr); }
  .tut-step-m { order: -1; }
  .tut-step-m .md-img { max-width: 300px; }
  .tut-nav .md-btn { padding-inline: 12px; font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) { .tut-step { animation: none; } .tut-prog-i { transition: none; } }

/* ---------- v0.28.0 (review round of v0.27.0) ---------- */
/* The text cursor (I-beam) never shows except in fields where the visitor types (user). The cursor is inherited, so
   links and buttons keep their pointer and dragged rows their grab hand. */
html { cursor: default; }
input:not([type=button]):not([type=submit]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
textarea, [contenteditable=""], [contenteditable="true"] { cursor: text; }

/* Opening screen: "Welcome to / Axion Forge" on two lines, with the home hero's swirl of particles around the emblem */
.boot .boot-t { line-height: 1.35; font-size: clamp(1.6rem, 1rem + 2.8vw, 3rem); }   /* v0.29.0 (user): larger letters */
.boot-swirl { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(120vmin, 1100px); height: min(84vmin, 760px); transform: translate(-50%, -54%); pointer-events: none; animation: bootIn 0.35s ease-out both; }   /* v0.29.0: the swirl shows at once */
.boot-mid { z-index: 2; }

/* Filled buttons look like orange glass (user): a see-through tint, a bright top edge, light text, the page blurred behind */
.md-btn-cta, .md-btn.fire-btn.md-btn-cta, .play-now, .btn-clear, .btn-open, .gl-random, .viewsw button[aria-pressed="true"], .pager-n[aria-current="page"] {
  color: #fff4e8 !important; text-shadow: 0 1px 2px rgb(60 20 0 / 0.55), 0 0 10px rgb(255 140 40 / 0.45);
  background: linear-gradient(180deg, rgb(255 196 128 / 0.56), rgb(255 116 20 / 0.42) 55%, rgb(255 106 10 / 0.52)) !important;   /* v0.29.0 (user): brighter base orange */
  border: 1px solid rgb(255 196 136 / 0.6) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.38), inset 0 -10px 18px rgb(255 110 20 / 0.16), 0 0 14px rgb(255 106 10 / 0.25); }
.md-btn-cta:hover, .md-btn-cta:focus-visible, .play-now:hover, .btn-clear:hover, .btn-open:hover, .gl-random:hover, .viewsw button[aria-pressed="true"]:hover {
  background: linear-gradient(180deg, rgb(255 208 145 / 0.7), rgb(255 126 30 / 0.56) 55%, rgb(255 110 14 / 0.66)) !important; filter: none; }
.gl-random .gl-random-ico { color: #fff4e8 !important; }
.fcount:not(:empty) { color: #fff4e8; background: rgb(255 122 26 / 0.35); border: 1px solid rgb(255 196 136 / 0.6); }
/* the faction-coloured filled buttons: the same glass in the faction's colour */
.btn-fac:hover, .btn-fac:focus-visible, .related .btn-fac, .detail .related .btn-fac, .related .btn-fac:hover, .related .btn-fac:focus-visible, .hero-fac-go, .btn-lore.btn-explore {
  color: #fff !important; text-shadow: 0 1px 2px rgb(0 0 0 / 0.6), 0 0 10px color-mix(in srgb, var(--fac) 60%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fac) 38%, transparent), color-mix(in srgb, var(--fac) 20%, transparent) 55%, color-mix(in srgb, var(--fac) 30%, transparent)) !important;
  border: 1px solid color-mix(in srgb, var(--fac) 65%, #fff) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), inset 0 -10px 18px color-mix(in srgb, var(--fac) 18%, transparent), 0 0 14px color-mix(in srgb, var(--fac) 30%, transparent); }
.related .btn-fac:hover, .related .btn-fac:focus-visible, .btn-lore.btn-explore:hover, .btn-lore.btn-explore:focus-visible { background: linear-gradient(180deg, color-mix(in srgb, var(--fac) 55%, transparent), color-mix(in srgb, var(--fac) 34%, transparent)) !important; filter: none; }

/* smoother picture fades (user: jittery crossfades): the fading layers get their own GPU layer and fade by opacity,
   with the slow zoom on the composited transform only */
.hero-frame, .hero-loop, .c3d-art, .md-img, .cw-c img { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hero-frame { will-change: opacity, transform; transform: translateZ(0); }
@keyframes heroFade { 0% { opacity: 0; transform: translateZ(0) scale(1.03); } 2.2% { opacity: 1; } 8.33% { opacity: 1; } 10.6% { opacity: 0; transform: translateZ(0) scale(1.08); } 100% { opacity: 0; transform: translateZ(0) scale(1.08); } }

/* Card page: the lore line under the name is not indented */
.dv-lore { padding-left: 0; }
/* Card page: cards without foil get a wider, softer light (it read as a spotlight) */
.c3d-plain .c3d-glare { opacity: calc(0.12 + var(--on) * 0.56);   /* v0.29.0 (user): slightly more light, still wide and soft */
  background: radial-gradient(ellipse 150% 120% at var(--px) var(--py), rgb(255 255 255 / 0.5) 0%, rgb(255 255 255 / 0.2) 45%, rgb(255 255 255 / 0.06) 75%, transparent 100%); }

/* Battle Maps: a position's letters fade in only while it is selected or highlighted (and while pointed at), and fade
   out when it no longer is (BattleMap.js draw: .bf-show, .bf-kept, .bf-hide) */
.bf-pos .bm-code { opacity: 0; transition: opacity 0.35s ease; }
.bf-pos.bf-show .bm-code { opacity: 1; animation: codeIn 0.4s ease-out both; }
.bf-pos.bf-kept .bm-code { animation: none; }
.bf-pos.bf-hide .bm-code { animation: codeOut 0.45s ease-in both; }
.bf-pos:hover .bm-code, .bf-pos:focus-visible .bm-code { opacity: 1; }
@keyframes codeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes codeOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bf-pos.bf-show .bm-code, .bf-pos.bf-hide .bm-code { animation: none; } }

/* Home hero, layout B (user): the loop centred behind the logo, feathered out toward the bottom so it ends seamlessly */
.hero-loop-b .hero-bg { -webkit-mask: radial-gradient(ellipse 66% 74% at 50% 40%, #000 38%, transparent 100%), linear-gradient(180deg, #000 52%, transparent 94%); -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse 66% 74% at 50% 40%, #000 38%, transparent 100%) intersect, linear-gradient(180deg, #000 52%, transparent 94%); }
.hero-loop-b .hero-bg::after { background: radial-gradient(ellipse at 50% 42%, rgb(5 5 6 / 0.2), rgb(5 5 6 / 0.65)); }
/* reduced motion: the faction art crossfades (opacity only) behind the centred layout instead of the loop */
.hero-loop-art .hero-frame { inset: -2%; background-position: center 30%; -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: reduce) { .hero-loop-art .hero-frame { animation: heroFadeLite 72s linear infinite; animation-delay: calc(var(--i) * 6s - 1s); opacity: 0; } }
/* pointing at the logo: a few bright particles swirl on top of it, and the glow under "Forge the future" grows */
.hero-energy-top { position: absolute; z-index: 2; left: 50%; top: 46%; width: 86%; height: 92%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-tag-w::after { transition: filter 0.8s ease; }
.hero-brand.hot .hero-tag-w::after { filter: blur(2px) brightness(1.9); box-shadow: 0 0 22px 4px rgb(255 150 50 / 0.55); }
.hero-brand .hero-tag { transition: filter 0.8s ease; }
.hero-brand.hot .hero-tag { filter: drop-shadow(0 0 10px rgb(255 160 60 / 0.65)) brightness(1.12); }
/* the card wall sits a little lower (more room for the faction line) and bends over a rounded surface (ContentPage bend) */
.cpage-home:not(.cpage-fire) .cp-body > .cw { margin-top: -60px !important; }
.cw-row, .cw-track { transform-style: preserve-3d; }
.cw-c { backface-visibility: hidden; }
@media (max-width: 760px) { .cpage-home .cp-body > .md-facts + .cw { margin-top: 4px !important; } }

/* Header: the fire spans the whole header, very dim (was behind the wordmark only) */
.brand-fire { display: none; }
.topbar { isolation: isolate; }
.topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--fire) center 40% / cover no-repeat; opacity: 0.42; filter: saturate(1.1) contrast(0.82) brightness(0.92);
  -webkit-mask: linear-gradient(180deg, rgb(0 0 0 / 0.5), #000 55%, rgb(0 0 0 / 0.8)); mask: linear-gradient(180deg, rgb(0 0 0 / 0.5), #000 55%, rgb(0 0 0 / 0.8)); }
/* v0.29.0 (user: the fire could not be seen at all): brighter, with lowered contrast so the loop's bright flashes stay soft */
@media (prefers-reduced-motion: reduce) { .topbar::before { background-image: var(--fire-still); } }
/* Header links: a softer, feathered glow that fades in, and fades back to white when the pointer leaves (also after a
   click); no animation that stops abruptly */
.topnav-a, .topnav-a:hover, .topnav-a.open, .topnav-a:focus-visible { animation: none; }
.topnav-a { filter: drop-shadow(0 0 6px rgb(255 140 50 / 0)) drop-shadow(0 0 16px rgb(255 100 20 / 0)); transition: filter 1.3s ease, color 1.3s ease; }
.topnav-a:hover, .topnav-a.open, .topnav-a:focus-visible { filter: drop-shadow(0 0 6px rgb(255 140 50 / 0.42)) drop-shadow(0 0 16px rgb(255 100 20 / 0.22)); transition: filter 1.8s ease 0.2s, color 0.3s ease; }
.topnav-a::before { transition: opacity 1.3s ease; }
.topnav-a:hover::before, .topnav-a.open::before, .topnav-a:focus-visible::before { transition: opacity 1.6s ease 0.45s; }
@media (prefers-reduced-motion: reduce) { .topnav-a, .topnav-a:hover { transition: none; } }

/* Play Now: the header's fire is feathered out at the bottom; its buttons no longer catch fire on hover */
.cp-fire { -webkit-mask: linear-gradient(180deg, #000 55%, transparent 100%); mask: linear-gradient(180deg, #000 55%, transparent 100%); }
.cp-fire-btns .fire-btn::before { display: none; }
.cp-fire-btns .md-btn.fire-btn:hover, .cp-fire-btns .md-btn.fire-btn:focus-visible { text-shadow: 0 0 10px rgb(255 140 40 / 0.6); }

/* Phones, home: the EXPLORE button fades in a moment after the faction's text, a little smaller and see-through, and
   follows the Unknown icon's colour crossfade with the name */
.hero-fac-go { margin-top: 12px; padding: 8px 14px; font-size: 0.72rem; transition: background-color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease; }
.hero-fac-line.on .hero-fac-go { animation: goIn 0.6s ease-out 1.1s backwards; }
@keyframes goIn { from { opacity: 0; transform: translateY(4px); } }
.hero-fac-line strong { transition: color 0.8s ease; }

/* Phones, Contact: the spam check fits beside SEND (drawn smaller) */
@media (max-width: 520px) {
  .sf-send { flex-wrap: nowrap; align-items: flex-start; }
  .sf-send-l { max-width: none; flex: 0 0 auto; }
  .sf-sendbtn { padding: 13px 20px; }
  .sf-send-r { flex: 0 1 auto; min-width: 0; }
  .sf-turnstile { transform: none; margin: 0; width: 198px; height: 44px; min-height: 0; overflow: visible; }
  .sf-turnstile > * { transform: scale(0.66); transform-origin: left top; }
  .sf-alt { font-size: 0.78rem; }
}
@media (max-width: 370px) { .sf-turnstile { width: 180px; height: 40px; } .sf-turnstile > * { transform: scale(0.6); } }

/* Survey page: the embedded Google Form */
.cpage[data-path="survey"] .md-form iframe { min-height: 1400px; border-radius: 10px; border: 1px solid var(--line-2); }

/* Scenes (js/core/scenes.js): low-definition animated mockups. Everything is placed in scene units and sized with the
   stage's width (container units), so a scene looks the same at any size. */
.sc { display: grid; gap: 14px; width: 100%; }
.sc.sc-has-steps { grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); align-items: start; }
.sc-main { display: grid; gap: 10px; min-width: 0; }
.sc-stage { position: relative; width: 100%; container-type: inline-size; overflow: hidden; border-radius: 14px; border: 1px solid rgb(255 255 255 / 0.08);
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #2a2340, #17142a 60%, #0d0b18); outline: none;
  box-shadow: inset 0 0 40px rgb(0 0 0 / 0.5); }
.sc-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 80% 100%, rgb(160 70 200 / 0.18), transparent 70%); }
.sc-layer, .sc-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-svg { pointer-events: none; overflow: visible; z-index: 30; }
.sc-p { position: absolute; transform: translate(-50%, -50%) rotate(var(--scr, 0deg)) scale(var(--scs, 1)); --sct: 700ms;
  transition: left var(--sct) cubic-bezier(0.45, 0.05, 0.25, 1), top var(--sct) cubic-bezier(0.45, 0.05, 0.25, 1), width var(--sct) ease, height var(--sct) ease,
    transform var(--sct) cubic-bezier(0.45, 0.05, 0.25, 1), opacity calc(var(--sct) * 0.8) ease, background-color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, color 0.6s ease;
  font-size: calc(var(--scfs, 3) / var(--scW) * 100cqw); will-change: transform, opacity; }
.sc-snap .sc-p, .sc-snap .sc-arrow { transition: none !important; }
/* a card: coloured frame, a light top bar, the art box with a glyph, a pale text box */
.sc-card { --scc: #e0553a; aspect-ratio: 5 / 7; border-radius: 6%/4.3%; background: var(--scc); border: 0.35cqw solid #0b0a12; display: grid; grid-template-rows: 9% 52% 1fr; gap: 3%; padding: 5%;
  box-shadow: 0 0.6cqw 1.6cqw rgb(0 0 0 / 0.45); }
.sc-card-top { border-radius: 2px; background: color-mix(in srgb, var(--scc) 45%, #fff); }
.sc-card-art { display: grid; place-items: center; border-radius: 2px; background: color-mix(in srgb, var(--scc) 70%, #000); overflow: hidden; }
.sc-card-art svg { width: 62%; height: 62%; fill: color-mix(in srgb, var(--scc) 55%, #fff); stroke: none; opacity: 0.85; }
.sc-card-txt { display: grid; place-items: center; border-radius: 2px; background: color-mix(in srgb, var(--scc) 25%, #fff); }
.sc-card-txt b { font: 700 0.62em/1 var(--display, serif); letter-spacing: 0.04em; color: color-mix(in srgb, var(--scc) 70%, #000); text-transform: uppercase; text-align: center; padding: 0 4%; }
.sc-back { background: #5a3418; display: grid; place-items: center; padding: 10%; }
.sc-back-o { width: 80%; height: 82%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #c26a2c, #8a4517); border: 0.3cqw solid #45c4d8; }
/* states (frame cls) */
.sc-p.x-glow { box-shadow: 0 0 0 0.3cqw #fff6, 0 0 2.4cqw 0.6cqw color-mix(in srgb, var(--scc, #ff7a1a) 80%, transparent); }
.sc-p.x-dim { filter: brightness(0.45) saturate(0.6); }
.sc-p.x-err { animation: scShake 0.5s ease; }
@keyframes scShake { 0%, 100% { translate: 0; } 20% { translate: -1.2cqw; } 40% { translate: 1.2cqw; } 60% { translate: -0.8cqw; } 80% { translate: 0.6cqw; } }
/* an empty place: card-shaped or a rectangle (zones) */
.sc-slot { --scc: rgb(255 255 255 / 0.35); aspect-ratio: 5 / 7; border-radius: 6%/4.3%; border: 0.3cqw solid var(--scc); background: color-mix(in srgb, var(--scc) 14%, transparent); display: grid; place-items: center; color: #fff; }
.sc-slot.sc-rect { aspect-ratio: auto; border-radius: 1.2cqw; }
.sc-slot-t { font: 700 1em/1 var(--display, serif); letter-spacing: 0.08em; color: color-mix(in srgb, var(--scc) 40%, #fff); text-shadow: 0 0 1cqw rgb(0 0 0 / 0.8); opacity: var(--sclo, 1); transition: opacity 0.6s ease; text-align: center; }
.sc-slot.x-nocode .sc-slot-t { --sclo: 0; }
.sc-slot.x-hl { box-shadow: 0 0 2cqw 0.4cqw color-mix(in srgb, var(--scc) 70%, transparent), inset 0 0 1.6cqw color-mix(in srgb, var(--scc) 40%, transparent); background: color-mix(in srgb, var(--scc) 30%, transparent); }
.sc-slot.x-pulse { animation: scPulse 1.4s ease-in-out infinite; }
@keyframes scPulse { 50% { box-shadow: 0 0 2.6cqw 0.6cqw color-mix(in srgb, var(--scc) 75%, transparent); } }
/* tokens */
.sc-token { --scc: #4ec3ff; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--scc) 40%, #fff), var(--scc) 55%, color-mix(in srgb, var(--scc) 60%, #000)); border: 0.25cqw solid color-mix(in srgb, var(--scc) 50%, #fff); box-shadow: 0 0.4cqw 1cqw rgb(0 0 0 / 0.5); }
.sc-token.sc-diamond { border-radius: 14%; rotate: 45deg; }
.sc-token.sc-diamond .sc-token-t { rotate: -45deg; }
.sc-token.sc-hex { border-radius: 0; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); border: 0; }
.sc-token.sc-plain { background: none; border: 0; box-shadow: none; }
.sc-token img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 0 0.6cqw rgb(0 0 0 / 0.6)); }
.sc-token-t { font: 700 1em/1 var(--display, serif); color: #10101a; }
.sc-img img { display: block; width: 100%; height: auto; }
.sc-text { --scc: #f1ece4; color: var(--scc); font: 700 1em/1.15 var(--display, serif); letter-spacing: 0.06em; white-space: nowrap; text-shadow: 0 0.2cqw 1cqw rgb(0 0 0 / 0.85); text-transform: uppercase; }
.sc-text.sc-plain { font-family: var(--body, sans-serif); text-transform: none; letter-spacing: 0; font-weight: 600; }
.sc-box { --scc: #ff7a1a; border-radius: 1cqw; border: 0.3cqw solid color-mix(in srgb, var(--scc) 70%, transparent); background: color-mix(in srgb, var(--scc) 14%, transparent); display: grid; place-items: center; }
.sc-box-t { font: 700 1em/1 var(--display, serif); letter-spacing: 0.1em; color: color-mix(in srgb, var(--scc) 45%, #fff); text-transform: uppercase; }
.sc-pips { display: flex; gap: 0.35em; }
.sc-pips i { width: 1em; height: 1em; border-radius: 50%; background: #ffb347; box-shadow: 0 0 0.8em #ff7a1a; transition: background 0.5s, box-shadow 0.5s, opacity 0.5s; }
.sc-pips i.used { background: #3a3448; box-shadow: none; }
.sc-arrow { stroke: #ff7a1a; stroke-width: 0.9; stroke-linecap: round; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.7s ease, opacity 0.4s ease; filter: drop-shadow(0 0 1px currentColor); }
.sc-arrow.on { stroke-dashoffset: 0; opacity: 1; }
.sc-arrow.sc-dash.on { stroke-dasharray: 0.06 0.035; }
.sc-spark { position: absolute; z-index: 40; width: 0.9cqw; height: 0.9cqw; margin: -0.45cqw; border-radius: 50%; background: var(--scc); box-shadow: 0 0 1.2cqw 0.3cqw var(--scc); animation: scSpark 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) both; pointer-events: none; }
@keyframes scSpark { from { transform: translate(0, 0) scale(1.3); opacity: 1; } to { transform: translate(var(--scdx), var(--scdy)) scale(0.2); opacity: 0; } }
.sc-float { position: absolute; z-index: 40; transform: translate(-50%, -50%); font: 700 4cqw/1 var(--display, serif); color: var(--scc); text-shadow: 0 0 1.5cqw var(--scc), 0 0.3cqw 0.6cqw #000; animation: scFloat 1.8s ease-out both; pointer-events: none; }
@keyframes scFloat { 0% { opacity: 0; translate: 0 1cqw; scale: 0.6; } 15% { opacity: 1; scale: 1.15; } 30% { scale: 1; } 100% { opacity: 0; translate: 0 -6cqw; } }
/* the caption under the stage */
.sc-capbox { min-height: 3.6em; display: grid; align-items: start; }
.sc-cap { margin: 0; color: var(--ink, #f1ece4); font-size: 0.98rem; line-height: 1.5; opacity: 0; }
.sc-cap.in { animation: scCap 0.6s ease-out both; }
@keyframes scCap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* the step tracker beside the stage */
.sc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 520px; overflow: auto; scrollbar-width: thin; }
.sc-step { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted, #a59e94); text-align: left; font: 500 0.8rem/1.25 var(--body, sans-serif); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.sc-step:hover { color: var(--ink, #fff); background: rgb(255 255 255 / 0.04); }
.sc-step-n { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.18); font: 700 0.7rem/1 var(--mono, monospace); }
.sc-step.done .sc-step-n { border-color: rgb(255 122 26 / 0.6); color: #ffa14d; }
.sc-step.on { color: var(--ink, #fff); background: rgb(255 122 26 / 0.1); border-color: rgb(255 122 26 / 0.35); }
.sc-step.on .sc-step-n { background: rgb(255 122 26 / 0.45); border-color: #ffc488; color: #fff; }
@media (max-width: 760px) { .sc.sc-has-steps { grid-template-columns: minmax(0, 1fr); } .sc-steps { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-height: none; } .sc-step-t { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .sc-p { transition-duration: 0.01ms !important; } .sc-p.x-pulse, .sc-p.x-err { animation: none; } }

.sc-text.sc-left { transform: translate(0, -50%) rotate(var(--scr, 0deg)) scale(var(--scs, 1)); }
.sc-text.sc-right { transform: translate(-100%, -50%) rotate(var(--scr, 0deg)) scale(var(--scs, 1)); }

/* Learn to Play (v0.28.0): one box size for every step (ContentPage measures the tallest), chapter tabs that never
   overlap, the glass progress bar with one section per step, and the animated scenes beside the text */
.md-tutorial { position: relative; }
.tut-prog { display: none; }
.tut-stage { overflow: hidden; }
.tut-probe { position: absolute; left: 0; top: 0; height: auto !important; visibility: hidden; pointer-events: none; }
.tut-probe .tut-step { animation: none; }
.tut-chs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tut-ch { min-width: 0; align-items: flex-start; }
.tut-ch-t { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 1100px) { .tut-chs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tut-ch { border-bottom: 1px solid var(--line); } }
.tut-step { grid-template-columns: minmax(0, 1fr) minmax(260px, 50%); }
.tut-step-m .sc { max-width: 520px; width: 100%; }
.tut-step-m .sc-cap { font-size: 0.9rem; color: var(--muted); }
.tut-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.tut-bar { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 6px 10px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.12);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12); }
.tut-bar-ch { flex: 1 1 0; display: flex; gap: 3px; min-width: 0; }
.tut-seg { flex: 1 1 0; min-width: 4px; height: 10px; padding: 0; border: 1px solid rgb(255 196 136 / 0.22); border-radius: 3px; cursor: pointer;
  background: rgb(255 255 255 / 0.06); transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease; }
.tut-bar-ch .tut-seg:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.tut-bar-ch .tut-seg:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.tut-seg:hover { background: rgb(255 140 40 / 0.25); }
.tut-seg.fill { background: linear-gradient(180deg, rgb(255 190 120 / 0.75), rgb(255 106 10 / 0.6)); border-color: rgb(255 196 136 / 0.7); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4); }
.tut-seg.now { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 10px rgb(255 122 26 / 0.7); }
@media (max-width: 760px) {
  .tut-step { grid-template-columns: minmax(0, 1fr); }
  .tut-nav { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .tut-bar { gap: 5px; padding: 5px 7px; }
  .tut-bar-ch { gap: 2px; }
  .tut-seg { height: 8px; min-width: 3px; }
}
@media (prefers-reduced-motion: reduce) { .tut-seg { transition: none; } }
/* the walkthrough stacks its scene above the text when the box itself is narrow (beside the section list, or a phone) */
.md-tutorial { container-type: inline-size; }
@container (max-width: 760px) { .tut-step { grid-template-columns: minmax(0, 1fr); gap: 14px; } .tut-step-m { order: -1; } .tut-step-m .sc { max-width: 560px; } }
/* Learn to Play (v0.29.0, user): the progress bar under the chapter bar (equal sections, a small mark where each later
   chapter begins; it never changes size), the "#/#" counter between BACK and NEXT, chapter names one word per line
   (centred beside the number on wide screens, smaller on phones), a larger chapter label over each step */
.tut-prog-w { padding: 10px clamp(14px, 3vw, 30px) 0; }
.tut-bar { display: flex; gap: 3px; padding: 6px 10px; }
.tut-seg { position: relative; flex: 1 1 0; border-radius: 3px !important; }
.tut-bar .tut-seg:first-child { border-top-left-radius: 6px !important; border-bottom-left-radius: 6px !important; }
.tut-bar .tut-seg:last-child { border-top-right-radius: 6px !important; border-bottom-right-radius: 6px !important; }
.tut-seg-ch { margin-left: 3px; }
.tut-seg-ch::before { content: ""; position: absolute; left: -5px; top: 50%; width: 2px; height: 16px; translate: 0 -50%; border-radius: 1px; background: rgb(255 210 150 / 0.55); box-shadow: 0 0 6px rgb(255 140 40 / 0.6); pointer-events: none; }
.tut-seg { transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease; }
.tut-nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tut-nav .tut-back { justify-self: start; }
.tut-nav .tut-next { justify-self: end; }
.tut-count { font: 700 0.95rem/1 var(--mono); letter-spacing: 0.12em; color: var(--ember-2); text-shadow: 0 0 10px rgb(255 122 26 / 0.45); font-variant-numeric: tabular-nums; }
.tut-ch { align-items: center; }
.tut-ch-w { display: block; white-space: nowrap; }
.tut-kicker { font-size: 0.82rem; letter-spacing: 0.2em; }
.md-tutorial { scroll-margin-top: 16px; }
@media (max-width: 760px) {
  .tut-ch { gap: 4px; padding: 7px 4px; }
  .tut-ch-n { width: 22px; height: 22px; font-size: 0.7rem; }
  .tut-ch-t { font-size: 0.56rem; letter-spacing: 0.03em; }
  .tut-prog-w { padding: 8px 12px 0; }
  .tut-bar { gap: 2px; padding: 5px 7px; }
  .tut-seg-ch { margin-left: 2px; }
  .tut-seg-ch::before { left: -3.5px; height: 12px; }
  .tut-count { font-size: 0.82rem; }
  .tut-kicker { font-size: 0.74rem; }
}
/* the related pages under the walkthrough: as many per row as fit */
.cpage[data-path="learn/learn-to-play"] .md-rel3 .md-chips { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 520px) { .cpage[data-path="learn/learn-to-play"] .md-rel3 .md-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* scenes (v0.29.0): a horizontal scale for card flips (--scx), the 2026 card back, a die, a soft glow, looping motions
   (coin flip, die roll, jitter, hover), the travelling sparks, the loop crossfade and the small progress bar */
.sc { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* scene text scales with the stage like every other piece (its `font` shorthand had reset it to the page's size,
   so on phones the words overlapped); never below 8px */
.sc-p.sc-text { font-size: max(8px, calc(var(--scfs, 3) / var(--scW) * 100cqw)); }
.sc-p { transform: translate(-50%, -50%) rotate(var(--scr, 0deg)) scale(calc(var(--scs, 1) * var(--scx, 1)), var(--scs, 1)); }
.sc-text.sc-left { transform: translate(0, -50%) rotate(var(--scr, 0deg)) scale(calc(var(--scs, 1) * var(--scx, 1)), var(--scs, 1)); }
.sc-text.sc-right { transform: translate(-100%, -50%) rotate(var(--scr, 0deg)) scale(calc(var(--scs, 1) * var(--scx, 1)), var(--scs, 1)); }
.sc-back26 { background: radial-gradient(ellipse 70% 60% at 50% 45%, #2a1410, #110b0d 70%); }
.sc-back26-f { position: absolute; inset: 6% 7%; border: 0.18cqw solid #ffab6b; border-radius: 5%/3.6%; box-shadow: 0 0 0.8cqw rgb(255 140 60 / 0.45), inset 0 0 0.8cqw rgb(255 140 60 / 0.25); }
.sc-emblem { position: absolute; left: 50%; top: 50%; width: 52%; translate: -50% -52%; fill: #d9dce2; filter: drop-shadow(0 0 0.5cqw rgb(255 110 30 / 0.85)); }
.sc-die { aspect-ratio: 1; border-radius: 22%; background: linear-gradient(145deg, #fbf7ef, #d6cfc2); border: 0.2cqw solid #fff; box-shadow: 0 0.5cqw 1.2cqw rgb(0 0 0 / 0.5); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 1cqw; gap: 0.45cqw; }
.sc-die i { border-radius: 50%; background: #1b1620; opacity: 0; transition: opacity 0.12s; }
.sc-die i.on { opacity: 1; }
.sc-halo { --scc: #ffd27a; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--scc) 60%, transparent) 0%, color-mix(in srgb, var(--scc) 22%, transparent) 40%, transparent 70%); pointer-events: none; }
.sc-p.x-flip { animation: scFlip 0.5s linear infinite; }
@keyframes scFlip { from { rotate: x 0deg; } to { rotate: x 360deg; } }
.sc-p.x-roll { animation: scRoll 0.42s linear infinite; }
@keyframes scRoll { 0% { rotate: 0deg; translate: 0 0; } 25% { translate: 0 -1.2cqw; } 50% { rotate: 180deg; translate: 0 0; } 75% { translate: 0 -0.8cqw; } 100% { rotate: 360deg; translate: 0 0; } }
.sc-p.x-jitter { animation: scJitter 0.32s steps(2, jump-none) infinite; }
@keyframes scJitter { 0% { translate: 0 0; rotate: 0deg; } 25% { translate: -0.35cqw 0.2cqw; rotate: -1.2deg; } 50% { translate: 0.3cqw -0.25cqw; rotate: 1deg; } 75% { translate: 0.25cqw 0.3cqw; rotate: -0.6deg; } 100% { translate: 0 0; rotate: 0deg; } }
.sc-p.x-bob { animation: scBob 3.2s ease-in-out infinite; }
@keyframes scBob { 50% { translate: 0 -1cqw; } }
.sc-p.x-halo { filter: drop-shadow(0 0 1cqw rgb(255 220 140 / 0.9)) drop-shadow(0 0 2.2cqw rgb(255 160 60 / 0.5)); }
.sc-p.x-shine { animation: scShine 1.8s ease-in-out infinite; }
@keyframes scShine { 50% { opacity: 1; scale: 1.18; } }
.sc-p.x-deny { box-shadow: 0 0 0 0.35cqw #ff4a4a, 0 0 2.6cqw 0.8cqw rgb(255 60 60 / 0.75); animation: scShake 0.5s ease; }
.sc-p.x-gold { color: #ffd27a; text-shadow: 0 0 1.4cqw rgb(255 190 80 / 0.9), 0 0.2cqw 1cqw rgb(0 0 0 / 0.85); }
.sc-travel { animation: scTravel 0.85s cubic-bezier(0.5, 0, 0.6, 1) both; }
@keyframes scTravel { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 15% { opacity: 1; transform: translate(calc(var(--scdx) * 0.1), calc(var(--scdy) * 0.1)) scale(1.2); } 88% { opacity: 1; } 100% { transform: translate(var(--scdx), var(--scdy)) scale(0.3); opacity: 0; } }
.sc-float-down { animation-name: scFloatDown; }
@keyframes scFloatDown { 0% { opacity: 0; translate: 0 -1cqw; scale: 0.6; } 15% { opacity: 1; scale: 1.15; } 30% { scale: 1; } 100% { opacity: 0; translate: 0 6cqw; } }
.sc-ghost { z-index: 35; pointer-events: none; opacity: 1; transition: opacity 1s ease; }
.sc-ghost.out { opacity: 0; }
.sc-prog { position: absolute; z-index: 45; left: 3%; right: 3%; bottom: 0; display: flex; gap: 3px; }
.sc-prog-s { flex: 1 1 0; min-width: 6px; height: 14px; padding: 0 0 5px; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-end; }
.sc-prog-l { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; overflow: hidden; background: rgb(255 255 255 / 0.13); transition: height 0.3s ease, background 0.3s ease; }
.sc-prog-f { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: rgb(255 170 90 / 0.8); }
.sc-prog-s:hover .sc-prog-l, .sc-prog-s:focus-visible .sc-prog-l { height: 4px; background: rgb(255 255 255 / 0.25); }
@media (prefers-reduced-motion: reduce) { .sc-p.x-flip, .sc-p.x-roll, .sc-p.x-jitter, .sc-p.x-bob, .sc-p.x-shine { animation: none; } .sc-ghost { display: none; } }
/* scene cards: the parts are placed inside the card's box (a grid with percentage rows collapsed) */
.sc-card { display: block; padding: 0; }
.sc-card > i { position: absolute; left: 7%; right: 7%; }
.sc-card-top { top: 5%; height: 7%; }
.sc-card-art { top: 15%; height: 48%; }
.sc-card-txt { top: 66%; bottom: 6%; }
.sc-back { display: block; }
.sc-back-o { position: absolute; inset: 9% 10%; width: auto; height: auto; }
.sc-cam { position: absolute; inset: 0; transform-origin: 50% 50%; --sct: 1400ms; transition: transform var(--sct) cubic-bezier(0.45, 0.05, 0.25, 1); }
.sc-snap .sc-cam { transition: none !important; }
.sc-svg { pointer-events: none; }
@media (max-width: 760px) { .tut-ch { align-items: center; text-align: center; } }

/* v0.29.0: the background loops are muted videos (js/core/dom.js › loopVideo), smooth on phones */
video.loopv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; background: transparent; }
.hero-loop:has(> video) { background: none; }
.hero-loop-b .hero-loop video { object-position: 62% center; }
.cp-fire:has(> video) { background: none; }
.cp-fire video { object-position: center 42%; }
/* Play page (user): the fire header is feathered at the sides and bottom like the home hero's loop */
.cp-fire { -webkit-mask: radial-gradient(ellipse 60% 78% at 50% 34%, #000 42%, transparent 100%); mask: radial-gradient(ellipse 60% 78% at 50% 34%, #000 42%, transparent 100%); }
/* the header's fire: the video replaces the old background (same dimness, lower contrast so its flashes stay soft) */
.topbar:has(> .topbar-fire)::before { display: none; }
.topbar-fire { z-index: -1; object-position: center 40%; opacity: 0.42; filter: saturate(1.1) contrast(0.82) brightness(0.92);
  -webkit-mask: linear-gradient(180deg, rgb(0 0 0 / 0.5), #000 55%, rgb(0 0 0 / 0.8)); mask: linear-gradient(180deg, rgb(0 0 0 / 0.5), #000 55%, rgb(0 0 0 / 0.8)); }
.boot-fire.loopv { object-position: center; }

/* v0.29.0 Feedback page (user): the Google Form only as wide as its question boxes, as tall as the whole form (no inner
   scrollbar; height set by ContentPage.js), and dark: a colour filter turns Google's white form dark */
.md-form-fit { align-items: center; }
.md-form-fit iframe { width: min(100%, 660px); min-height: 0; border: 0; border-radius: 12px; display: block; }
.cpage[data-path="feedback"] .md-form iframe { min-height: 0; }
.md-form-dark iframe { background: #fff; filter: invert(0.92) hue-rotate(180deg) saturate(0.9); }
.md-form-fit .lnk { align-self: center; }
/* Contact: a larger GIVE FEEDBACK button */
.cpage[data-path="contact"] .md-btn[href="/feedback"], .cpage[data-path="contact"] a.md-btn[href$="feedback"] { padding: 18px 40px; font-size: 1.08rem; margin: 4px 0 10px; }
/* the Turnstile check sits at the right, above "Having trouble? Try here." (user) */
.sf-send-r { align-items: flex-end; }
.sf-turnstile { display: flex; justify-content: flex-end; align-self: flex-end; transform-origin: right top; }
@media (max-width: 600px) { .sf-turnstile > * { transform-origin: right top; } }
/* the rebuilt survey (test page /feedback-test): dark question cards at the Google Form's width */
.sv { width: min(100%, 660px); margin-inline: auto; }
.sv-form { display: flex; flex-direction: column; gap: 14px; }
.sv-intro { margin: 0 0 4px; color: var(--muted); }
.sv-q { margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line-2); border-left: 3px solid var(--ember); border-radius: 10px; background: var(--abyss); min-width: 0; }
.sv-title { display: flex; gap: 10px; padding: 0; margin-bottom: 14px; font: 600 1rem/1.4 var(--body); color: var(--ink); }
.sv-n { flex: none; font: 700 0.8rem/1.75 var(--mono); color: var(--ember-2); }
.sv-opts { display: flex; flex-direction: column; gap: 8px; }
.sv-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink); }
.sv-q input[type="radio"] { accent-color: var(--ember); width: 18px; height: 18px; margin: 0; }
.sv-scale { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sv-end { font-size: 0.82rem; color: var(--muted); flex: 1 1 90px; text-align: center; }
.sv-nums { display: flex; gap: 6px; }
.sv-num { display: grid; justify-items: center; gap: 4px; cursor: pointer; font: 600 0.85rem/1 var(--mono); color: var(--muted); padding: 4px 6px; }
.sv-rating .sv-num input { position: absolute; opacity: 0; pointer-events: none; }
.sv-rating .sv-num span { font-size: 2rem; line-height: 1; color: var(--line-2); transition: color 0.3s ease, text-shadow 0.3s ease; }
.sv-rating .sv-num:hover span, .sv-rating .sv-num.on span { color: var(--ember-2); text-shadow: 0 0 12px rgb(255 140 40 / 0.6); }
.sv-q textarea { width: 100%; resize: vertical; padding: 10px 12px; color: var(--ink); background: rgb(5 5 6 / 0.6); border: 1px solid var(--line-2); border-radius: 8px; font: inherit; }
.sv-q textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.sv-send { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sv-alt { display: inline-block; margin-top: 14px; font-size: 0.9rem; }
@media (max-width: 480px) { .sv-q { padding: 16px 14px; } .sv-end { flex-basis: 100%; } .sv-scale { gap: 6px; } .sv-nums { order: 0; } }

/* v0.29.0 (user): STANDARD / HOLOFOIL on the card page (Mythic, Ultra and holo-marked cards); the foil fades in */
.fin-sw { display: inline-flex; margin: 14px auto 0; padding: 3px; gap: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(13 13 16 / 0.6); }
.fin-sw[hidden] { display: none; }
.dv-stage > .fin-sw { align-self: center; }
.fin-b { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 0.72rem/1 var(--mono); letter-spacing: 0.16em; cursor: pointer; transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.fin-b:hover { color: var(--ink); }
.fin-b[aria-pressed="true"] { color: #0b0b0e; background: var(--fac, var(--ember)); box-shadow: 0 0 12px color-mix(in srgb, var(--fac, var(--ember)) 45%, transparent); }
.c3d-foil-in { animation: foilIn 0.5s ease-out backwards; }
@keyframes foilIn { from { opacity: 0; } }   /* to the foil's own opacity */

/* v0.29.0 home hero (user): "Forge the future" glows orange (not yellow) while the logo is pointed at */
.hero-brand.hot .hero-tag-w::after { background: radial-gradient(closest-side, rgb(255 170 90 / 0.95), rgb(255 106 10 / 0.7) 55%, transparent); filter: blur(2px) brightness(1.3) saturate(1.4); box-shadow: 0 0 22px 4px rgb(255 106 10 / 0.6); }
.hero-brand.hot .hero-tag { filter: drop-shadow(0 0 10px rgb(255 106 10 / 0.75)) brightness(1.06) saturate(1.15); }
/* the wordmark logo: a glow fades in along its outline on hover */
.hero-logo img { transition: filter 0.6s ease; }
.hero-logo:hover img { filter: drop-shadow(0 0 1.5px rgb(255 190 120 / 0.9)) drop-shadow(0 0 10px rgb(255 120 30 / 0.65)) drop-shadow(0 0 26px rgb(255 100 10 / 0.35)) drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)); }
@media (hover: none) { .hero-logo:hover img { filter: drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)); } }
/* "Factions that have not discovered the Nexus... yet" on one line on phones */
@media (max-width: 760px) { .hero-fac-sub-unk { white-space: nowrap; font-size: min(0.85rem, 3.35vw); letter-spacing: 0; } }

/* v0.29.0 card wall (user): cards 10% larger; more room above and below, so a lifted card in the top or bottom row is
   never cut off (the wall moves up and the next section up by the same amount, so nothing else shifts) */
.cw-c { --w: clamp(106px, 9.9vw, 156px); }
@media (max-width: 560px) { .cw-c { --w: 92px; } }
.cpage-home .cp-body > .cw { padding-top: 84px; padding-bottom: 96px; }
.cpage-home:not(.cpage-fire) .cp-body > .cw { margin-top: -114px !important; margin-bottom: -30px !important; }
@media (max-width: 760px) { .cpage-home .cp-body > .md-facts + .cw { margin-top: -50px !important; } }

/* v0.29.0 THE STORY band (user): a little taller above and below; no dark patch at the top centre (it was the heading's
   wide black text halo), the heading keeps a tight shadow for legibility */
.cpage-home .md-band { padding-block: clamp(84px, 12vw, 160px); }
.cpage-home .md-band-in > .md-h2 { text-shadow: 0 1px 3px rgb(0 0 0 / 0.95), 0 0 8px rgb(0 0 0 / 0.6); }

/* v0.29.0 "A different kind of card game" (user): on hover a soft orange glow fades in from the left bar towards the
   right; it starts at the bar's inner edge, so it never shows to the left of it */
.md-features .md-tile { position: relative; isolation: isolate; }
.md-features .md-tile::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: min(70%, 260px); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(255 122 26 / 0.2), rgb(255 122 26 / 0.07) 45%, transparent); opacity: 0; transition: opacity 0.5s ease; }
.md-features .md-tile:hover::after, .md-features .md-tile:focus-within::after { opacity: 1; }
.md-features .md-tile { transition: border-color 0.4s ease; }
@media (hover: none) { .md-features .md-tile:hover::after { opacity: 0; } }

/* ===== v0.30.0 (user, 2026-11-17): 3D cards: the card back, an edge with thickness, grab to turn, light ===== */
.c3d { --sx: 0deg; --sy: 0deg; --tl: 0; --ta: 0; --c3d-t: 3px; touch-action: pan-y; }
.c3d-lg { --c3d-t: 5px; }
.c3d-rock { position: absolute; inset: 0; transform-style: preserve-3d; }
.c3d-tilt { transform: rotateX(calc(var(--rx) + var(--sx))) rotateY(calc(var(--ry) + var(--sy))) translateY(calc(var(--on) * -4px)); }
.c3d-face { transform: translateZ(calc(var(--c3d-t) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.c3d-back { position: absolute; inset: 0; border-radius: 4.6% / 3.3%; overflow: hidden; background: #0b0806;
  transform: rotateY(180deg) translateZ(calc(var(--c3d-t) / 2)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* v0.41.0 (user, 2026-11-19): the back shows no faction colour (it had a thin outline in the faction's colour) */
.c3d-back-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.c3d-back-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: calc(var(--ta) * 0.6);   /* v0.31.0 (user): less sheen on the back */
  background: linear-gradient(105deg, transparent 32%, rgb(255 236 210 / 0.22) 50%, transparent 68%); background-size: 260% 100%; background-position: calc(50% + var(--tl) * 70%) 0; }
/* the edge: thin layers between the faces in the card's dark core, tinted by the faction colour */
.c3d-slice { position: absolute; inset: 0; border-radius: 4.6% / 3.3%; pointer-events: none;
  background: color-mix(in srgb, var(--c3d-accent) calc(34% * (1 - var(--fb, 0))), #15110d); transform: translateZ(calc(var(--z) * var(--c3d-t))); }
.c3d-slice:first-child, .c3d-slice:nth-child(7) { background: color-mix(in srgb, var(--c3d-accent) calc(55% * (1 - var(--fb, 0))), #2a2118); }
/* v0.41.0 (user): --fb (Interactive3DCard.js) runs from 0 with the face shown to 1 with the back shown, so the edge's
   faction colour fades out as the back comes round */
/* light that crosses the face as the card turns */
.c3d-edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; mix-blend-mode: screen; opacity: var(--ta);
  background: linear-gradient(105deg, transparent 25%, rgb(255 250 235 / 0.42) 50%, transparent 75%); background-size: 260% 100%; background-position: calc(50% - var(--tl) * 70%) 0; }
.c3d-lg { cursor: grab; }
.detail .dv-stage .c3d, .lightbox .c3d { cursor: grab; }
.c3d.c3d-held, .detail .dv-stage .c3d.c3d-held, .lightbox .c3d.c3d-held { cursor: grabbing; }
/* standard (no foil): a stronger light, easy to see as the card turns (user: still too weak) */
.c3d-plain .c3d-glare { mix-blend-mode: screen; opacity: calc(0.05 + var(--on) * 0.95);
  background: radial-gradient(ellipse 120% 100% at var(--px) var(--py), rgb(255 255 255 / 0.36) 0%, rgb(255 255 255 / 0.13) 45%, rgb(255 255 255 / 0.03) 75%, transparent 100%); }
/* holofoil: a subtle but visible foil on the card at rest, a slow shimmer that gives way to the full foil when pointed at */
.c3d-foil-holo { opacity: calc(0.3 + var(--on) * 0.62); }
.c3d-foil::after { content: ""; position: absolute; inset: 0; opacity: calc((1 - var(--on)) * 0.55);
  background: linear-gradient(125deg, transparent 20%, rgb(255 110 170 / 0.35) 32%, rgb(255 220 120 / 0.35) 40%, rgb(110 255 190 / 0.35) 48%, rgb(110 180 255 / 0.35) 56%, rgb(200 130 255 / 0.35) 64%, transparent 76%);
  background-size: 260% 260%; animation: c3dShimmer 7s ease-in-out infinite alternate; }
@keyframes c3dShimmer { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
/* the card page's card rocks slowly, with a diagonal light in step with it (as on the Codex's card pages) */
.c3d-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.c3d-sheen::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; mix-blend-mode: screen;
  background: linear-gradient(135deg, transparent 38%, rgb(255 248 230 / 0.10) 45%, rgb(255 255 255 / 0.22) 50%, rgb(255 248 230 / 0.08) 55%, transparent 62%);
  transform: translate(-45%, -45%); animation: c3dSheen 9s ease-in-out infinite; }
@keyframes c3dSheen { 0%, 100% { transform: translate(-45%, -45%); } 50% { transform: translate(45%, 45%); } }
.c3d:hover .c3d-rock.on, .c3d-held .c3d-rock.on, .c3d:hover .c3d-sheen::before, .c3d-held .c3d-sheen::before { animation-play-state: paused; }
/* a finish was chosen: one quick diagonal sweep, top left to bottom right */
.c3d-flash { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.c3d-flash::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(135deg, transparent 42%, rgb(255 250 240 / 0.6) 50%, transparent 58%); transform: translate(-60%, -60%); }
.c3d-flash.go::before { animation: c3dFlash 0.8s cubic-bezier(.3,.1,.3,1); }
@keyframes c3dFlash { 0% { opacity: 1; transform: translate(-60%, -60%); } 100% { opacity: 1; transform: translate(60%, 60%); } }
@media (prefers-reduced-motion: reduce) { .c3d-rock.on, .c3d-sheen::before, .c3d-foil::after { animation: none; } }
/* card page: a light sweeps across HOLOFOIL while it is pointed at */
.fin-b { position: relative; overflow: hidden; }
.fin-b + .fin-b::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%); transform: translateX(-120%); }
.fin-b + .fin-b:hover::after, .fin-b + .fin-b:focus-visible::after { animation: finSweep 0.8s ease; }
@keyframes finSweep { to { transform: translateX(120%); } }
.fin-b[hidden] { display: none; }

/* ===== v0.30.0 (user): header ===== */
/* no fire in the header */
.topbar::before { display: none; }
/* one logo at a time, in one place: the wordmark first, then every 15 s the emblem (CardExplorer.js) */
.brand.brand-swap { display: grid; gap: 0; align-items: center; justify-items: center; }
.brand-swap > .brand-emblem-a, .brand-swap > .brand-t { grid-area: 1 / 1; }
.brand-swap > .brand-emblem-a { opacity: 0; pointer-events: none; }
.brand-swap.em-on > .brand-emblem-a { opacity: 1; pointer-events: auto; }
.brand-swap.em-on > .brand-t { opacity: 0; pointer-events: none; }
.brand-swap.em-on .brand-emblem { animation: emGlow 3.2s ease-in-out infinite; }
@keyframes emGlow { 0%, 100% { filter: drop-shadow(0 0 8px rgb(255 100 20 / 0.35)); } 50% { filter: drop-shadow(0 0 16px rgb(255 120 30 / 0.7)); } }
.brand-swap.em-on .brand-emblem-a:hover .brand-emblem { animation: none; filter: drop-shadow(0 0 16px rgb(255 130 40 / 0.85)); }
@media (max-width: 760px) { .brand-swap > .brand-emblem-a { opacity: 1; pointer-events: auto; } }
@media (prefers-reduced-motion: reduce) { .brand-swap.em-on .brand-emblem { animation: none; } }
/* SIGN IN (Discord), the Codex's button: the hexagon-and-person icon and its word; only the icon when room is short */
.acct-menu { position: relative; flex: none; }
.acct-b { height: 38px; min-width: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgb(10 10 13 / 0.6); color: var(--muted); font: 600 0.62rem/1 var(--mono); letter-spacing: 0.18em;
  cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease, background-color 0.3s ease; }
.acct-b:hover, .acct-b:focus-visible, .acct-b[aria-expanded="true"] { color: var(--ember-2); border-color: rgb(255 122 26 / 0.6); background: rgb(255 122 26 / 0.08); box-shadow: 0 0 16px rgb(255 122 26 / 0.25); outline: none; }
.acct-i { width: 17px; height: 17px; flex: none; overflow: visible; }
.acct-i polygon, .acct-i path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.acct-i circle { fill: currentColor; }
.acct-b.in { padding: 0; width: 38px; border-color: rgb(255 122 26 / 0.45); }
.acct-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: rgb(255 122 26 / 0.15); color: var(--ember-2); font: 700 0.8rem/1 var(--display); }
.topbar.tight .acct-t { display: none; }
.topbar.tight .acct-b:not(.in) { padding: 0; width: 38px; }
@media (max-width: 1100px) { .acct-t { display: none; } .acct-b:not(.in) { padding: 0; width: 38px; } }
@media (max-width: 760px) { .acct-b, .acct-b.in { height: 34px; min-width: 34px; width: 34px; } .acct-av { width: 26px; height: 26px; } }
.acct-note { position: absolute; top: calc(100% + 8px); right: 0; width: max-content; max-width: 240px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgb(12 12 15 / 0.96); color: var(--ink); font: 400 0.78rem/1.4 var(--body); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; z-index: 5; }
.acct-note.on { opacity: 1; transform: none; }
.acct-pop { position: absolute; top: calc(100% + 10px); right: 0; width: 250px; padding: 14px 16px; border: 1px solid rgb(255 122 26 / 0.35); border-radius: 12px;
  background: rgb(12 12 15 / 0.97); box-shadow: 0 12px 30px rgb(0 0 0 / 0.5); z-index: 6; animation: acctIn 0.3s ease-out; }
.acct-pop[hidden] { display: none; }
@keyframes acctIn { from { opacity: 0; transform: translateY(-6px); } }
.acct-pop-h { margin: 0 0 4px; font: 700 0.95rem/1.3 var(--display); color: var(--ink); }
.acct-pop-p, .acct-pop-s { margin: 0 0 10px; font: 400 0.8rem/1.45 var(--body); color: var(--muted); }
.acct-pop-s { margin: 10px 0 0; font-size: 0.74rem; color: var(--dim); }
.acct-pop-a { display: inline-block; padding: 8px 14px; border: 1px solid rgb(255 122 26 / 0.6); border-radius: 999px; color: var(--ember-2); font: 600 0.66rem/1 var(--mono); letter-spacing: 0.16em; text-decoration: none; }
.acct-pop-a:hover, .acct-pop-a:focus-visible { background: rgb(255 122 26 / 0.12); box-shadow: 0 0 14px rgb(255 122 26 / 0.3); }

/* the Codex's scrollbar (codex.css, batch 12): a faint gold rail with tick marks and a glowing ember-to-gold thumb that
   brightens on hover; Firefox, which cannot draw it, keeps a slim bar in the same colours */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  ::-webkit-scrollbar-corner { background: transparent; }
  /* v0.31.0 (user): no ruler marks; the faint rail only */
  ::-webkit-scrollbar-track { margin: 14px; border-radius: 6px; background: linear-gradient(90deg, transparent 5.5px, rgb(240 194 122 / 0.16) 5.5px 6.5px, transparent 6.5px) no-repeat; }
  ::-webkit-scrollbar-track:horizontal { background: linear-gradient(180deg, transparent 5.5px, rgb(240 194 122 / 0.16) 5.5px 6.5px, transparent 6.5px) no-repeat; }
  ::-webkit-scrollbar-thumb { border: 3.5px solid transparent; border-radius: 6px; min-height: 40px;
    background: linear-gradient(180deg, color-mix(in srgb, #ff7a1a 70%, #000), color-mix(in srgb, #f0c27a 85%, #fff) 50%, color-mix(in srgb, #ff7a1a 70%, #000)) padding-box;
    box-shadow: inset 0 0 0 1px rgb(255 240 210 / 0.35), inset 0 0 6px rgb(240 194 122 / 0.6); }
  ::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(90deg, color-mix(in srgb, #ff7a1a 70%, #000), color-mix(in srgb, #f0c27a 85%, #fff) 50%, color-mix(in srgb, #ff7a1a 70%, #000)) padding-box; }
  ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { border-width: 2.5px; background: linear-gradient(180deg, color-mix(in srgb, #ff9a3a 85%, #fff), #fff4d8 50%, color-mix(in srgb, #ff9a3a 85%, #fff)) padding-box; }
}
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: #f3d6a0 rgb(240 194 122 / 0.06); } }

/* ===== v0.30.0 (user): the loading screen: the full logo where the hero logo will stand, a thin progress bar ===== */
.boot { background-color: #050506; transition: opacity 0.7s ease, background-color 0.6s ease; }
.boot-mid { place-content: center; }
.boot-logo { display: block; width: min(640px, calc(100vw - 32px)); height: auto; transform-origin: 50% 50%; filter: drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)); animation: bootLogoIn 1s ease-out both; will-change: transform; }
@keyframes bootLogoIn { from { opacity: 0; } }
@media (max-width: 760px) { .boot-logo { width: min(420px, calc(100vw - 32px)); } }
.boot::after, .boot-swirl, .boot-prog { transition: opacity 0.6s ease; }
.boot.boot-hand { background-color: transparent; }
.boot.boot-hand::after, .boot.boot-hand .boot-swirl, .boot.boot-hand .boot-prog { opacity: 0; }
.boot-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3; background: rgb(255 255 255 / 0.04); }
.boot-prog i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, rgb(255 122 26 / 0.3), #ffb15c); box-shadow: 0 0 8px rgb(255 154 58 / 0.6); transition: transform 2.6s cubic-bezier(.3,.6,.4,1); }
.boot-prog.go i { transform: scaleX(0.94); }
.boot-done .boot-prog i { transform: scaleX(1); transition-duration: 0.3s; }
.boot-msg { position: absolute; left: 16px; right: 16px; bottom: 12%; z-index: 3; margin: 0; text-align: center; color: var(--muted); font: 400 0.95rem/1.6 var(--body); }
.boot-msg[hidden] { display: none; }
.boot-reload { margin-top: 12px; padding: 9px 18px; border: 1px solid rgb(255 122 26 / 0.6); border-radius: 999px; background: rgb(255 122 26 / 0.1); color: var(--ember-2); font: 600 0.7rem/1 var(--mono); letter-spacing: 0.16em; cursor: pointer; }
.boot-reload:hover, .boot-reload:focus-visible { background: rgb(255 122 26 / 0.2); box-shadow: 0 0 14px rgb(255 122 26 / 0.35); }
@media (prefers-reduced-motion: reduce) { .boot-logo { animation: none; } }
/* first visit at this window size: an estimate of the hero logo's place (header 83 px + the hero's 84 px top padding) */
@media (min-width: 761px) { .boot-mid { place-content: start center; padding-top: 167px; } }

/* ===== v0.30.0 (user): home page ===== */
/* the hero logo's edge glow on hover, much softer */
.hero-logo:hover img { filter: drop-shadow(0 0 1px rgb(255 190 120 / 0.4)) drop-shadow(0 0 7px rgb(255 120 30 / 0.28)) drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)); }
/* "A different kind of card game": the hover glow fades out at its top and bottom too */
.md-features .md-tile::after { -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
/* THE STORY: the art fades out on all four sides (was left and right only), and the dark band at its top is gone (the
   top and bottom darkening was a solid gradient that read as a dark patch above THE STORY); a soft vignette keeps the
   words readable */
.cpage-home .md-band::after, .cpage-home .md-band-bg, .cpage-home .md-band::before {
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect; }
.cpage-home .md-band::after { background: radial-gradient(ellipse 75% 70% at 50% 55%, rgb(5 5 6 / 0.42), rgb(5 5 6 / 0.72) 80%); }
/* phones: SIGN IN moves from the header row into the MENU list (the header row had no room even before it) */
.acct-in-menu { display: none; }
@media (max-width: 760px) {
  .topbar-r > .acct-menu { display: none; }
  .menu-drop .acct-in-menu { display: block; margin-top: 10px; }
  .menu-drop .acct-in-menu .acct-b { width: auto; height: 38px; padding: 0 14px 0 12px; }
  .menu-drop .acct-in-menu .acct-b.in { width: 38px; padding: 0; }
  .menu-drop .acct-in-menu .acct-t { display: inline; }
  .menu-drop .acct-in-menu .acct-pop, .menu-drop .acct-in-menu .acct-note { left: 0; right: auto; }
}
@media (max-width: 760px) { .boot-mid { place-content: start center; padding-top: 124px; } }
/* ===== v0.30.0 Learn to Play (side session, 2026-11-17): scene player and walkthrough box. Start of block. ===== */
/* the scene's progress bar is one scrubber: the whole line can be clicked or dragged */
.sc-prog { cursor: pointer; touch-action: none; padding-top: 8px; outline: none; }
.sc-prog-s { cursor: inherit; height: 14px; }
.sc-prog:hover .sc-prog-l, .sc-prog.drag .sc-prog-l, .sc-prog:focus-visible .sc-prog-l { height: 4px; background: rgb(255 255 255 / 0.25); }
.sc-prog:focus-visible { box-shadow: 0 2px 0 -1px rgb(255 170 90 / 0.8); }
/* a click on the stage pauses it: PAUSED in the lower right corner, above the bar */
.sc-stage { cursor: pointer; }
.sc-paused { position: absolute; z-index: 46; right: 3%; bottom: 20px; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 999px;
  background: rgb(10 8 16 / 0.72); border: 1px solid rgb(255 196 136 / 0.35); color: #ffd9b0; font: 700 0.62rem/1 var(--mono, monospace); letter-spacing: 0.16em;
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease; pointer-events: none; }
.sc-paused-i { display: flex; gap: 2px; }
.sc-paused-i b { width: 3px; height: 9px; border-radius: 1px; background: currentColor; }
.sc-held .sc-paused { opacity: 1; transform: none; }
@media (max-width: 520px) { .sc-paused { bottom: 16px; padding: 3px 7px 3px 6px; font-size: 0.56rem; } }
/* dark icon artwork (the card type icons) drawn light on the dark stage */
.sc-p.x-light img { filter: invert(0.92) drop-shadow(0 0 0.7cqw rgb(255 190 120 / 0.45)); }
/* the loop's still copy fades out a little more slowly, so the return to the start reads as one dissolve */
.sc-ghost { transition: opacity 1.1s ease; }
/* the rules link where the counter was: in the middle column, or with its right edge on the scene's left edge */
.tut-nav { position: relative; }
.tut-nav .tut-back { grid-column: 1; }
.tut-nav .tut-next { grid-column: 3; }
.tut-more { justify-self: center; display: flex; min-width: 0; }
.tut-more-at { position: absolute; top: 50%; translate: 0 -50%; }
.tut-more .md-btn { padding: 9px 14px; font-size: 0.68rem; letter-spacing: 0.12em; white-space: nowrap; }
@container (max-width: 600px) { .tut-more { grid-column: 1 / -1; grid-row: 1; } .tut-nav .tut-back, .tut-nav .tut-next { grid-row: 2; } .tut-nav { row-gap: 12px; } }
@media (max-width: 520px) { .tut-more .md-btn { padding: 8px 10px; font-size: 0.6rem; letter-spacing: 0.06em; } }
/* NEXT slides the step in from the right, BACK from the left; the chapter heading stays still within a chapter */
.tut-step, .tut-step.tut-in-r, .tut-step.tut-in-l { animation: none; }
.tut-in-r > .tut-step-m, .tut-in-r > .tut-step-t > :not(.tut-kicker) { animation: tutInR 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.tut-in-l > .tut-step-m, .tut-in-l > .tut-step-t > :not(.tut-kicker) { animation: tutInL 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes tutInR { from { opacity: 0; transform: translateX(48px); } }
@keyframes tutInL { from { opacity: 0; transform: translateX(-48px); } }
/* a new chapter's heading fades in from the top down, once */
.tut-kicker-in { -webkit-mask: linear-gradient(180deg, #000 40%, transparent 60%) 0 0 / 100% 300% no-repeat; mask: linear-gradient(180deg, #000 40%, transparent 60%) 0 0 / 100% 300% no-repeat;
  animation: tutHead 0.8s ease-out both; }
@keyframes tutHead { from { opacity: 0.2; transform: translateY(-6px); -webkit-mask-position: 0 100%; mask-position: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .tut-in-r > *, .tut-in-l > *, .tut-in-r > .tut-step-t > *, .tut-in-l > .tut-step-t > *, .tut-kicker-in { animation: none !important; } }
/* ===== v0.30.0 Learn to Play: end of block. ===== */

/* ===== v0.31.0 (2026-11-18): the user's review round of 2026-11-18. ===== */
/* Loading screen: a background like the Codex's loading screen (a warm radial, soft glows breathing, faint rings) */
.boot::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.6s ease;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 calc(min(36vmin, 330px) - 1px), rgb(240 194 122 / 0.07) min(36vmin, 330px), transparent calc(min(36vmin, 330px) + 1px)),
    radial-gradient(circle at 50% 46%, transparent 0 calc(min(48vmin, 440px) - 1px), rgb(240 194 122 / 0.045) min(48vmin, 440px), transparent calc(min(48vmin, 440px) + 1px)),
    radial-gradient(ellipse 34% 30% at 50% 46%, rgb(255 122 26 / 0.16), transparent 70%),
    radial-gradient(ellipse 60% 55% at 50% 46%, rgb(120 50 10 / 0.22), transparent 72%),
    radial-gradient(ellipse at 50% 45%, #140b05 0%, #050506 62%);
  animation: bootBreathe 5.5s ease-in-out infinite; }
.boot-mid, .boot-swirl { z-index: 2; }
@keyframes bootBreathe { 50% { opacity: 0.82; } }
.boot.boot-hand::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .boot::before { animation: none; } }

/* Header: embers rising from the base, behind the links */
.topbar { position: sticky; }
.topbar-in { position: relative; z-index: 1; }
.hdr-embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9; }

/* Header: the search on the left, right after the page links; the links no longer stretch to push it right */
@media (min-width: 761px) {
  .topbar-in > .topnav-wrap { flex: 0 1 auto; width: max-content; }
  .topbar-in > .ss { display: flex; align-items: center; flex: 0 0 auto; align-self: stretch; }
  .topbar-in > .ss .ss-box { height: 100%; }
  .topbar-in > .ss .ss-list { right: auto; left: 0; }
  .topbar.use-menu .topbar-in > .topnav-wrap { flex: 0 0 0; }
}

/* Header: CODEX with the Codex's turning gold sigil */
.topnav-a.tn-codex { display: inline-flex; align-items: center; gap: 7px; }
.tn-sigil { width: 20px; height: 20px; flex: none; overflow: visible; filter: drop-shadow(0 0 4px rgb(240 194 122 / 0.45)); transition: filter 0.4s ease; }
.tn-sigil path, .tn-sigil polygon { fill: none; stroke: #f0c27a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tn-sigil .tn-sig-b path { stroke-width: 1.6; stroke-opacity: 0.75; }
.tn-sigil .tn-sig-c { fill: #ffd98a; }
.tn-sig-a, .tn-sig-b { transform-box: view-box; transform-origin: 0 0; }   /* the viewBox is centred on 0,0 */
.tn-sig-a { animation: spin 14s linear infinite; }
.tn-sig-b { animation: spin 9s linear infinite reverse; }
.tn-codex:hover .tn-sigil, .tn-codex:focus-visible .tn-sigil { filter: drop-shadow(0 0 8px rgb(255 190 110 / 0.85)); }
.menu-codex { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .tn-sig-a, .tn-sig-b { animation: none; } }

/* Header logo: pointing at the emblem brings the wordmark straight back, its glow fading in */
.brand-t.glow-in .brand-word { animation: brandGlowIn 1.1s ease-out both; }
@keyframes brandGlowIn { from { filter: brightness(1) drop-shadow(0 0 0 rgb(255 140 50 / 0)); } to { filter: brightness(1.15) drop-shadow(0 0 10px rgb(255 140 50 / 0.6)); } }

/* SIGN IN: square-cornered like the other header buttons and as tall as them; the word whenever there is room */
.topbar-r { align-items: stretch; }
@media (min-width: 761px) { .topbar-r > .acct-menu { display: flex; } }
.acct-b { height: auto; min-height: 38px; border-radius: 9px; padding: 0 16px 0 13px; font: 700 0.9rem/1 var(--display); letter-spacing: 0.12em; }
.acct-b.in { border-radius: 9px; }
.acct-i { width: 18px; height: 18px; }
.topbar:not(.tighter) .acct-t { display: inline; }
.topbar:not(.tighter) .acct-b:not(.in) { width: auto; padding: 0 16px 0 13px; }
.topbar.tighter .acct-t { display: none; }
.topbar.tighter .acct-b:not(.in) { width: 42px; padding: 0; }

/* Music toggle, left of SIGN IN: glows on hover */
.music-b { flex: none; min-width: 42px; min-height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: rgb(10 10 13 / 0.6); color: var(--muted); cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease, background-color 0.3s ease; }
.music-b:hover, .music-b:focus-visible { color: var(--ember-2); border-color: rgb(255 122 26 / 0.6); background: rgb(255 122 26 / 0.08); box-shadow: 0 0 16px rgb(255 122 26 / 0.3); outline: none; }
.music-b:hover .music-i, .music-b:focus-visible .music-i { filter: drop-shadow(0 0 5px rgb(255 150 60 / 0.8)); }
.music-i { width: 19px; height: 19px; overflow: visible; transition: filter 0.3s ease; }
.music-i path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.music-i .music-cone { fill: currentColor; fill-opacity: 0.25; }
.music-b.off { color: var(--dim); }
@media (max-width: 760px) { .music-b { min-width: 34px; min-height: 34px; padding: 0 7px; } }

/* Learn to Play, last step: the buttons sit lower, clear of the MORE: WAYS TO PLAY link */
.tut-step-t .md-btns { margin-top: 30px; }

/* Card page: the bar sits just under the header and, with the card, stays exactly where it is when the page scrolls
   (they start at their sticky places); the card rises and fades in on opening, as when a variant is chosen, and the
   glow behind it fades in with it */
@media (min-width: 761px) {
  body.card-open .main { padding-top: 10px; }
  .dv-bar { top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h, 80px) + 2px); }
  .dv-stage { top: calc(env(safe-area-inset-top, 0px) + var(--topbar-h, 80px) + 74px); }
}
.dv-stage > .c3d.stagger-in { animation: dvCardRise 0.5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--d, 0ms) + 60ms); }
@keyframes dvCardRise { from { opacity: 0; translate: 0 26px; } }
.dv-stage > .dv-halo { animation: fadeIn 0.8s ease-out 60ms backwards; }
@media (prefers-reduced-motion: reduce) { .dv-stage > .c3d.stagger-in, .dv-stage > .dv-halo { animation: none; } }

/* What Is Axion Forge?: sections that open on click ({folds} in the page file), closed at first; the heading row
   lights on hover */
.md-sec { border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 0.015); transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.4s ease; }
.md-sec + .md-sec { margin-top: 12px; }
.md-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 20px; border: 0; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.md-sec-h .md-h2 { margin: 0; padding: 0; border: 0; transition: color 0.35s ease, text-shadow 0.4s ease; }
.md-sec-c { flex: none; color: var(--ember-2); font-size: 1rem; transition: transform 0.3s ease; }
.md-sec:hover, .md-sec:has(> .md-sec-h:focus-visible) { border-color: rgb(255 122 26 / 0.55); background: rgb(255 122 26 / 0.05); box-shadow: 0 0 22px rgb(255 122 26 / 0.16); }
.md-sec-h:hover .md-h2, .md-sec-h:focus-visible .md-h2 { color: var(--ember-2); text-shadow: 0 0 14px rgb(255 122 26 / 0.45); }
.md-sec-h:focus-visible { outline: none; }
.md-sec.open { border-color: rgb(255 122 26 / 0.35); }
.md-sec.open .md-sec-c { transform: rotate(180deg); }
.md-sec-b { display: flex; flex-direction: column; gap: 18px; padding: 0 20px 22px; animation: fadeIn 0.35s ease-out; }
.md-sec-b[hidden] { display: none; }
@media (max-width: 760px) { .md-sec-h { padding: 14px 14px; } .md-sec-b { padding: 0 14px 18px; } }
@media (prefers-reduced-motion: reduce) { .md-sec, .md-sec-c, .md-sec-h .md-h2 { transition: none; } .md-sec-b { animation: none; } }

/* Story: the Codex band at the top of the page (the way into the lore companion) */
.st-codex { position: relative; overflow: hidden; display: grid; gap: 10px; justify-items: start; padding: clamp(22px, 4vw, 40px); border: 1px solid rgb(240 194 122 / 0.35); border-radius: 14px;
  background: radial-gradient(ellipse 70% 120% at 85% 50%, rgb(255 122 26 / 0.14), transparent 70%), radial-gradient(circle at 85% 50%, transparent 0 89px, rgb(240 194 122 / 0.12) 90px, transparent 91px), radial-gradient(circle at 85% 50%, transparent 0 139px, rgb(240 194 122 / 0.08) 140px, transparent 141px), rgb(12 9 7 / 0.8);
  box-shadow: 0 0 40px rgb(255 122 26 / 0.08) inset; }
.st-codex-k { margin: 0; font: 600 0.7rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember-2); }
.st-codex-h { margin: 0; font: 700 clamp(1.5rem, 1rem + 1.8vw, 2.3rem)/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2); }
.st-codex > p:not(.st-codex-k) { margin: 0; max-width: 62ch; color: var(--ink); }
.st-codex .md-btns { margin-top: 8px; }

/* Loading screen, second pass (user, 2026-11-18). The background flows toward the viewer while the logo stays still:
   the warm radial slowly grows, the swirl drifts nearer, and faint rings rise from the centre and pass the viewer. A
   flash of embers bursts from the lower left at once (drawn by index.html). On the first load the screen then waits
   for CLICK TO ENTER, which also starts the music. */
.boot::before { animation: bootNear 14s cubic-bezier(.25,.5,.35,1) both, bootBreathe 5.5s ease-in-out infinite; }
@keyframes bootNear { from { transform: scale(1); } to { transform: scale(1.35); } }
.boot-swirl { animation: bootIn 0.35s ease-out both, bootNearSwirl 14s cubic-bezier(.25,.5,.35,1) both; }
@keyframes bootNearSwirl { from { scale: 1; } to { scale: 1.3; } }
.boot-warp { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; transition: opacity 0.6s ease; }
.boot-warp i { position: absolute; left: 50%; top: 46%; width: min(60vmin, 560px); aspect-ratio: 1; margin: calc(min(60vmin, 560px) / -2) 0 0 calc(min(60vmin, 560px) / -2);
  border-radius: 50%; border: 1px solid rgb(240 194 122 / 0.5); box-shadow: 0 0 18px rgb(255 122 26 / 0.18), inset 0 0 18px rgb(255 122 26 / 0.12);
  opacity: 0; animation: bootWarp 6.4s cubic-bezier(.55,0,.9,.6) infinite; }
.boot-warp i:nth-child(2) { animation-delay: 1.6s; }
.boot-warp i:nth-child(3) { animation-delay: 3.2s; }
.boot-warp i:nth-child(4) { animation-delay: 4.8s; }
@keyframes bootWarp { 0% { transform: scale(0.12); opacity: 0; } 25% { opacity: 0.32; } 80% { opacity: 0.12; } 100% { transform: scale(3.4); opacity: 0; } }
.boot.boot-hand .boot-warp { opacity: 0; }
.boot-burst { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.boot-enter { margin-top: clamp(18px, 4vh, 40px); padding: 12px 26px; border: 1px solid rgb(255 154 58 / 0.55); border-radius: 999px; background: rgb(255 122 26 / 0.08);
  color: var(--ember-2); font: 600 0.8rem/1 var(--mono); letter-spacing: 0.32em; text-indent: 0.32em; cursor: pointer; backdrop-filter: blur(4px);
  animation: bootEnterIn 0.8s ease-out both, bootEnterGlow 2.6s ease-in-out 0.8s infinite; transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, opacity 0.4s ease; }
.boot-enter:hover, .boot-enter:focus-visible { outline: none; color: #fff4d8; border-color: rgb(255 190 110 / 0.9); background: rgb(255 122 26 / 0.18); }
@keyframes bootEnterIn { from { opacity: 0; translate: 0 8px; } }
@keyframes bootEnterGlow { 0%, 100% { box-shadow: 0 0 10px rgb(255 122 26 / 0.18); } 50% { box-shadow: 0 0 26px rgb(255 122 26 / 0.45); } }
.boot.boot-wait .boot-prog { opacity: 0; }
.boot.boot-hand .boot-enter { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .boot::before, .boot-swirl { animation: none; } .boot-warp { display: none; } .boot-enter { animation: none; } }

/* Music: pointing at the button shows a volume slider under it (glass panel, ember track); a click still mutes */
.music-w { position: relative; display: flex; flex: none; }
.music-vol { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgb(255 122 26 / 0.4); border-radius: 10px;
  background: rgb(12 10 9 / 0.92); backdrop-filter: blur(8px); box-shadow: 0 8px 26px rgb(0 0 0 / 0.55), 0 0 16px rgb(255 122 26 / 0.15);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s; }
.music-vol::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* a bridge, so the pointer can cross the gap */
.music-w.open .music-vol { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.music-vol-r { -webkit-appearance: none; appearance: none; width: 120px; height: 4px; margin: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, #ff7a1a, #f0c27a var(--v, 25%), rgb(255 255 255 / 0.12) var(--v, 25%)); }
.music-vol-r::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff4d8; box-shadow: 0 0 8px rgb(255 154 58 / 0.8); }
.music-vol-r::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff4d8; box-shadow: 0 0 8px rgb(255 154 58 / 0.8); }
.music-vol-r:focus-visible { outline: 1px solid rgb(255 190 110 / 0.8); outline-offset: 6px; }
.music-vol-n { min-width: 3.2em; text-align: right; color: var(--muted); font: 500 0.72rem/1 var(--mono); }
@media (pointer: coarse) { .music-vol { display: none; } }
@media (prefers-reduced-motion: reduce) { .music-vol { transition: none; } }

/* Scrollbar: the glow fades in on hover (js/app.js sets html.sb-hot; --sbh runs 0 to 1). Replaces the instant
   ::-webkit-scrollbar-thumb:hover change, which browsers cannot animate. */
@property --sbh { syntax: "<number>"; inherits: true; initial-value: 0; }
html { --sbh: 0; transition: --sbh 0.45s ease; }
html.sb-hot { --sbh: 1; }
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb:hover {
    border-width: calc(3.5px - var(--sbh) * 1px);
    background: linear-gradient(180deg, color-mix(in srgb, color-mix(in srgb, #ff7a1a 70%, #000), color-mix(in srgb, #ff9a3a 85%, #fff) calc(var(--sbh) * 100%)), color-mix(in srgb, color-mix(in srgb, #f0c27a 85%, #fff), #fff4d8 calc(var(--sbh) * 100%)) 50%, color-mix(in srgb, color-mix(in srgb, #ff7a1a 70%, #000), color-mix(in srgb, #ff9a3a 85%, #fff) calc(var(--sbh) * 100%))) padding-box;
    box-shadow: inset 0 0 0 1px rgb(255 240 210 / calc(0.35 + var(--sbh) * 0.4)), inset 0 0 calc(6px + var(--sbh) * 6px) rgb(255 190 110 / calc(0.6 + var(--sbh) * 0.4)); }
  ::-webkit-scrollbar-track { background: linear-gradient(90deg, transparent 5.5px, rgb(240 194 122 / calc(0.16 + var(--sbh) * 0.2)) 5.5px 6.5px, transparent 6.5px) no-repeat; }
}
@media (prefers-reduced-motion: reduce) { html { transition: none; } }

/* Home hero (user, 2026-11-18): a narrow feather on the loop's left and right edges, added to the existing round and
   bottom fades, so no hard edge shows on wide windows */
.hero-loop-b .hero-bg {
  -webkit-mask: radial-gradient(ellipse 66% 74% at 50% 40%, #000 38%, transparent 100%), linear-gradient(180deg, #000 52%, transparent 94%), linear-gradient(90deg, transparent, #000 min(7%, 110px), #000 calc(100% - min(7%, 110px)), transparent);
  -webkit-mask-composite: source-in, source-in;
  mask: radial-gradient(ellipse 66% 74% at 50% 40%, #000 38%, transparent 100%) intersect, linear-gradient(180deg, #000 52%, transparent 94%) intersect, linear-gradient(90deg, transparent, #000 min(7%, 110px), #000 calc(100% - min(7%, 110px)), transparent); }

/* Account window (signed in): the avatar and name, Linked since, then OPEN THE CODEX, GAME ACCOUNT and SIGN OUT */
.acct-pop { width: 280px; padding: 16px 18px 18px; border-color: rgb(240 194 122 / 0.4); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgb(255 122 26 / 0.1), transparent 70%), rgb(12 11 10 / 0.97); }
.acct-pop-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acct-pop-av { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgb(240 194 122 / 0.55); box-shadow: 0 0 12px rgb(255 122 26 / 0.25); object-fit: cover;
  display: grid; place-items: center; background: rgb(255 122 26 / 0.12); color: var(--gold-2); font: 700 1.1rem/1 var(--display); }
.acct-pop-top .acct-pop-h { margin: 0; }
.acct-pop-k { margin: 2px 0 0; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.acct-pop-dl { margin: 0 0 10px; padding: 10px 0; border-block: 1px solid var(--line); }
.acct-pop-dl > div { display: flex; justify-content: space-between; gap: 12px; }
.acct-pop-dl dt { color: var(--dim); font: 500 0.66rem/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.acct-pop-dl dd { margin: 0; color: var(--ink); font: 500 0.8rem/1.5 var(--body); }
.acct-pop-btns { display: grid; gap: 8px; }
.acct-pop-btns .acct-pop-a { display: block; width: 100%; text-align: center; padding: 10px 14px; background: none; cursor: pointer; transition: background-color 0.3s ease, box-shadow 0.35s ease, color 0.3s ease, border-color 0.3s ease; }
.acct-pop-main { background: rgb(255 122 26 / 0.14) !important; color: #fff4d8 !important; }
.acct-pop-out { border-color: var(--line-2) !important; color: var(--muted) !important; }
.acct-pop-out:hover, .acct-pop-out:focus-visible { border-color: rgb(255 122 26 / 0.6) !important; color: var(--ember-2) !important; }
.acct-pop-out:disabled { opacity: 0.6; cursor: default; }

/* ===== v0.31.1 (2026-11-18): the user's follow-up round on v0.31.0. ===== */
/* Loading screen: no scrollbars while it shows (the page underneath cannot scroll either) */
/* v0.32.0 (user: "the logo no longer seems to perfectly line up with the logo on the hero"): the scrollbar is hidden by
   overflow alone, so its space stays reserved (html's scrollbar-gutter); removing the bar made the page 12 px wider
   while the loading screen measured the hero logo, which then moved 6 px to the left when the bar came back */
html:has(.boot:not(.boot-skip):not(.boot-out)) { overflow: hidden; }
.boot { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* the swirl is centred on the logo (js/core/boot.js sets left and top) and no longer grows, so its particles keep
   circling behind the logo instead of drifting away */
.boot-swirl { transform: translate(-50%, -50%); width: min(96vmin, 900px); height: min(64vmin, 600px); animation: bootIn 0.35s ease-out both; }
@media (max-width: 760px) { .boot-swirl { width: min(110vw, 520px); height: min(70vw, 340px); } }
/* CLICK TO ENTER: slightly larger, with a shimmering glow fading in behind and around it */
.boot-enter-w { position: relative; display: inline-grid; place-items: center; margin-top: clamp(18px, 4vh, 40px); }
.boot-enter-w > * { grid-area: 1 / 1; }
.boot-enter { margin: 0; padding: 15px 34px; font-size: 0.92rem; }
.boot-enter-halo { position: relative; z-index: -1; width: calc(100% + 70px); height: calc(100% + 46px); border-radius: 999px; pointer-events: none; opacity: 0;
  background:
    linear-gradient(100deg, transparent 30%, rgb(255 236 200 / 0.55) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat,
    radial-gradient(ellipse 50% 50% at 50% 50%, rgb(255 150 50 / 0.42), rgb(255 110 20 / 0.16) 55%, transparent 75%);
  filter: blur(9px);
  animation: bootHaloIn 1.4s ease-out 0.2s forwards, bootHaloShim 2.8s ease-in-out 0.9s infinite, bootHaloPulse 3.4s ease-in-out 1.6s infinite; }
@keyframes bootHaloIn { to { opacity: 1; } }
@keyframes bootHaloShim { from { background-position: -150% 0, 0 0; } to { background-position: 250% 0, 0 0; } }
@keyframes bootHaloPulse { 50% { transform: scale(1.06); } }
.boot.boot-hand .boot-enter-halo { opacity: 0 !important; transition: opacity 0.4s ease; animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .boot-enter-halo { animation: bootHaloIn 0.4s ease-out forwards; } }

/* Header: CODEX glows bright gold on hover (fading in), with a larger sigil standing level with the word */
.topnav-a.tn-codex { gap: 8px; }
.tn-codex .tn-sigil { width: 26px; height: 26px; position: relative; top: -2px; }
.topnav-a.tn-codex:hover, .topnav-a.tn-codex:focus-visible { --tc: #ffe7b0;
  filter: drop-shadow(0 0 5px rgb(255 214 130 / 0.85)) drop-shadow(0 0 16px rgb(240 180 70 / 0.55)); transition: filter 0.9s ease, color 0.3s ease; }
.tn-codex:hover .tn-sigil, .tn-codex:focus-visible .tn-sigil { filter: drop-shadow(0 0 10px rgb(255 214 130 / 0.95)); }
/* leaving for the Codex: the page fades out (the music fades with it, js/components/Music.js) */
html.page-leave body { opacity: 0; transition: opacity var(--leave-ms, 650ms) ease; pointer-events: none; }
/* Header: the search box is no taller than the buttons beside it */
@media (min-width: 761px) {
  .topbar-in > .ss { align-self: center; }
  .topbar-in > .ss .ss-box, .topbar-r .ss-box { height: 38px; }
  .ss-box input { padding: 0; }
}

/* ===== v0.32.0 (user, 2026-11-18 round). Start of block. ===== */
/* loading screen: CLICK TO ENTER in Cinzel */
.boot-enter { font: 700 0.95rem/1 var(--display); letter-spacing: 0.24em; text-indent: 0.24em; }
/* header: the CODEX glow is no longer cut off above and below (the scrolling link row clipped it; it now has room) */
.topnav { padding-block: 16px; margin-block: -16px; }
/* header: now and then a soft glow rises from the bottom line, like light on a horizon */
.hdr-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 45% 100% at 50% 100%, rgb(255 140 50 / 0.2), rgb(255 110 30 / 0.07) 55%, transparent 80%);
  animation: hdrHorizon 14s ease-in-out 4s infinite; }
@keyframes hdrHorizon { 0%, 62%, 100% { opacity: 0; } 78% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hdr-horizon { animation: none; } }
/* mini footer: now and then "Axion Forge is in development." pulses with a soft glow */
.devbar-s:first-child { animation: devPulse 11s ease-in-out 3s infinite; }
@keyframes devPulse { 0%, 80%, 100% { text-shadow: none; } 88% { color: #ffd9a8; text-shadow: 0 0 8px rgb(255 150 60 / 0.75), 0 0 18px rgb(255 120 30 / 0.4); } }
@media (prefers-reduced-motion: reduce) { .devbar-s:first-child { animation: none; } }
/* music: the volume panel opens on a click (not on hover) and holds a mute button; it works on touch screens too */
@media (pointer: coarse) { .music-vol { display: flex; } }
.music-mute { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 7px; background: transparent; color: var(--ember-2); cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; }
.music-mute .music-i { width: 18px; height: 18px; }
.music-mute:hover, .music-mute:focus-visible { outline: none; border-color: rgb(255 122 26 / 0.6); background: rgb(255 122 26 / 0.1); }
.music-mute.off { color: var(--dim); }
.music-w.open .music-b { color: var(--ember-2); border-color: rgb(255 122 26 / 0.6); background: rgb(255 122 26 / 0.08); }
/* phones: the drill-in MENU. The first level lists only the section names (each with an arrow), then the Shop, the
   music volume and SIGN IN; a tap on a section slides in its pages alone, under BACK and the section's name */
.menu-back, .menu-music { display: none; }
.menu-drill .menu-sec-t .caret { transform: rotate(-90deg); }
.menu-drill .menu-sec-b { display: none; }
.menu-drill .menu-sec-h { cursor: pointer; }
.menu-drill.drilled .menu-sec:not(.open), .menu-drill.drilled .menu-shop, .menu-drill.drilled .menu-music, .menu-drill.drilled .acct-in-menu { display: none; }
.menu-drill.drilled .menu-sec.open { border-bottom: 0; animation: drillIn 0.28s ease-out both; }
.menu-drill.drilled .menu-sec.open .menu-sec-t { display: none; }
.menu-drill.drilled .menu-sec.open .menu-sec-h .menu-a { color: var(--gold-2); font-size: 1.05rem; border-bottom: 1px solid rgb(255 122 26 / 0.35); border-radius: 0; }
.menu-drill.drilled .menu-sec.open .menu-sec-b { display: block; max-height: none; overflow: visible; padding-top: 6px; }
.menu-drill.drilled .menu-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 6px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ember-2); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; cursor: pointer; animation: drillIn 0.28s ease-out both; }
.menu-drill.drilled .menu-back span { font-size: 1.1rem; line-height: 0.6; }
@keyframes drillIn { from { opacity: 0; transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) { .menu-drill.drilled .menu-sec.open, .menu-drill.drilled .menu-back { animation: none; } }
/* the music volume inside the phone MENU list (the header has no music button on phones) */
@media (max-width: 760px) {
  .topbar-r > .music-w { display: none; }
  .menu-drop .menu-music { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 6px 4px 6px 14px; border-top: 1px solid var(--line); }
  .menu-drill.drilled .menu-music { display: none; }
  .menu-music-h { color: var(--muted); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.16em; }
  .menu-music .music-b { display: none; }
  .menu-music .music-w { flex: 1 1 auto; }
  .menu-music .music-vol { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; flex: 1 1 auto; }
  .menu-music .music-vol::before { display: none; }
  .menu-music .music-vol-r { flex: 1 1 auto; width: auto; min-width: 0; }
  /* the header row fits on a 375 px phone without covering the logo */
  .topbar-r { gap: 4px; }
  .menu-btn { padding-inline: 10px; }
}
@media (max-width: 370px) { .topbar-r > .comm-menu { display: none; } }
/* TAP TO ENTER stays on one line */
.boot-enter { white-space: nowrap; }
.menu-sec-b .menu-sub.menu-ind { padding-left: 30px; }
/* the left side list: a divider between its blocks (one per menu column) */
.cp-side-block { display: flex; flex-direction: column; }
.cp-side-block + .cp-side-block { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cp-side-block.cp-side-group { margin-top: 10px; }
.cp-side-block:first-of-type.cp-side-group { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 900px) { .cp-side-block { flex-direction: row; } .cp-side-block + .cp-side-block { margin: 0 0 0 6px; padding: 0 0 0 6px; border-top: 0; border-left: 1px solid var(--line); } }
/* What Is Axion Forge?: one row of subject tabs over one panel (replaces the v0.31.0 folding bars) */
.md-subj { margin-top: 28px; }
.md-subj-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.md-subj-t { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(10 10 13 / 0.5); color: var(--muted); font: 700 0.78rem/1 var(--display); letter-spacing: 0.06em; cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.4s ease; }
.md-subj-t:hover, .md-subj-t:focus-visible { outline: none; color: var(--ink); border-color: rgb(255 122 26 / 0.55); box-shadow: 0 0 14px rgb(255 122 26 / 0.22); }
.md-subj-t[aria-selected="true"] { color: #fff4d8; border-color: rgb(255 154 58 / 0.8); background: rgb(255 122 26 / 0.16); box-shadow: 0 0 16px rgb(255 122 26 / 0.3); }
.md-subj-p { padding-top: 20px; min-height: 420px; }
.md-subj-b > .md-h2:first-child { margin-top: 0; }
.md-subj-in { animation: subjIn 0.45s ease-out both; }
@keyframes subjIn { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 760px) { .md-subj-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .md-subj-t { flex: none; } .md-subj-p { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .md-subj-in { animation: none; } }
/* the rulebook sections a page summarises: a quiet line at the end (replaces the "Preview rules" box) */
.cp-source { margin: 28px 0 0; color: var(--dim); font-size: 0.82rem; }
.cp-source a { color: var(--muted); }
/* Card Types: the Type icon before each type's name; an example card beside each type; the three tier icons */
.md-ico { display: inline-block; width: 1.5em; height: 1.5em; margin-right: 0.45em; vertical-align: -0.38em; object-fit: contain; }
.md-ico-type { filter: invert(0.92) drop-shadow(0 0 6px rgb(255 160 70 / 0.35)); }
.md-ico-rarity { width: 1.3em; height: 1.3em; vertical-align: -0.3em; }
.md-split-m > .md-cards { justify-content: center; }
.md-split-m > .md-cards .md-card { width: min(190px, 100%); }
.md-split + .md-split { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.md-tiers { display: flex; flex-wrap: wrap; gap: 22px; margin: 14px 0; }
.md-tier { margin: 0; display: grid; justify-items: center; gap: 6px; }
.md-tier img { width: 54px; height: 54px; object-fit: contain; }
.md-tier figcaption { color: var(--muted); font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.md-tier img { padding: 8px; border-radius: 50%; background: radial-gradient(circle, rgb(236 230 218 / 0.92), rgb(200 192 178 / 0.85)); box-shadow: 0 0 14px rgb(0 0 0 / 0.5); }
/* Lore Overview and Explore the Codex: a large turning gold sigil to the right of the Codex box, slowly pulsing with light */
.st-codex-sig { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(16px, 4vw, 48px); }
.st-codex-t { display: grid; gap: 10px; justify-items: start; }
.st-codex-t > p:not(.st-codex-k) { margin: 0; max-width: 62ch; color: var(--ink); }
.st-codex-sigil { display: grid; place-items: center; width: clamp(150px, 20vw, 230px); aspect-ratio: 1; margin-right: clamp(0px, 2vw, 20px); }
.st-sigil { width: 100%; height: 100%; overflow: visible; animation: stSigilPulse 5.5s ease-in-out infinite; }
.st-sigil path, .st-sigil polygon { fill: none; stroke: #f0c27a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.st-sigil .tn-sig-b path { stroke-width: 1.2; stroke-opacity: 0.75; }
.st-sigil .tn-sig-c { fill: #ffd98a; }
.st-sigil .tn-sig-a { animation-duration: 40s; }
.st-sigil .tn-sig-b { animation-duration: 26s; }
@keyframes stSigilPulse { 0%, 100% { filter: drop-shadow(0 0 4px rgb(240 194 122 / 0.35)); } 50% { filter: drop-shadow(0 0 12px rgb(255 214 130 / 0.85)) drop-shadow(0 0 30px rgb(240 170 60 / 0.45)); } }
@media (max-width: 700px) { .st-codex-sig { grid-template-columns: minmax(0, 1fr); } .st-codex-sigil { order: -1; justify-self: center; width: 130px; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .st-sigil { animation: none; } }
/* Shop: smaller product boxes; every picture in a 16:9 frame (the two Ignition Pack pictures share one 16:9 row) */
.md-products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.md-products .md-tile { padding: 14px; gap: 10px; }
.md-products .md-tile-h { font-size: 1rem; }
.md-products .md-tile > p { font-size: 0.9rem; }
.md-products .md-img { aspect-ratio: 16 / 9; object-fit: cover; }
.md-products .md-tile:has(> .md-img + .md-img) { column-gap: 6px; }
.md-products .md-tile:has(> .md-img + .md-img) .md-img { aspect-ratio: 8 / 9; object-fit: contain; background: rgb(255 255 255 / 0.03); }
section.st-codex.st-codex-sig { display: grid; }

/* ===== v0.33.0 (2026-11-18): the user's review round after v0.32.0. ===== */
/* Loading screen: CLICK TO ENTER takes 2 s. The background rushes toward the viewer (the warm glow, the rings and the
   swirl grow past the edges) while a light swells at the centre, then the logo glides onto the hero logo. */
.boot::before { scale: 1; transition: opacity 0.6s ease, scale 1.3s cubic-bezier(.42,.08,.78,.5); }
.boot.boot-zoom::before { scale: 3.6; }
.boot-warp { transition: opacity 0.6s ease, scale 1.3s cubic-bezier(.42,.08,.78,.5); }
.boot.boot-zoom .boot-warp { scale: 3.2; }
.boot.boot-zoom .boot-warp i { border-color: rgb(255 210 150 / 0.75); }
.boot-swirl { transition: opacity 0.6s ease, transform 1.3s cubic-bezier(.42,.08,.78,.5), filter 1.3s ease; }
.boot.boot-zoom .boot-swirl { transform: translate(-50%, -54%) scale(3); filter: brightness(1.6); }
.boot-logo { transition: filter 1s ease; }
.boot.boot-zoom .boot-logo { filter: drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)) drop-shadow(0 0 26px rgb(255 160 70 / 0.6)); }
.boot.boot-zoom .boot-enter-w { opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.boot-flash { position: absolute; left: 50%; top: 46%; z-index: 1; width: min(70vmin, 640px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0; scale: 0.2;
  background: radial-gradient(circle, rgb(255 238 205 / 0.9), rgb(255 160 70 / 0.45) 30%, rgb(255 110 30 / 0.12) 55%, transparent 70%); }
.boot.boot-zoom .boot-flash { animation: bootFlash 1.9s cubic-bezier(.5,0,.7,.4) forwards; }
@keyframes bootFlash { 0% { opacity: 0; scale: 0.2; } 55% { opacity: 0.85; } 100% { opacity: 0; scale: 4.5; } }

/* mini footer: the whole line pulses (both sentences), 40% less often (every 18 s instead of 11 s) */
.devbar-s:first-child { animation: none; }
.devbar-s { animation: devPulse 18.3s ease-in-out 3s infinite; }
@media (prefers-reduced-motion: reduce) { .devbar-s { animation: none; } }

/* header: the horizon glow every 10 s (was 14 s); the dropdown drops down from under the header when it opens */
.hdr-horizon { animation-duration: 10s; }
.tn-drop.dropping { animation: tnDropDown 0.34s cubic-bezier(.2,.7,.2,1); }
@keyframes tnDropDown { from { clip-path: inset(0 0 100% 0); opacity: 0.3; } to { clip-path: inset(0 0 -60px 0); opacity: 1; } }
.tn-notch { transition: left 0.25s ease; }
/* Explore › Factions: the faction links in two columns, under the column's title and its Overview link */
.tn-col.tn-split { display: grid; grid-template-columns: repeat(2, max-content); grid-template-rows: auto auto repeat(var(--rows, 5), auto); grid-auto-flow: column; column-gap: 34px; align-content: start; }
.tn-split > .tn-col-h { grid-row: 1; grid-column: 1 / -1; }
.tn-split > .tn-first { grid-row: 2; grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .tn-drop.dropping { animation: none; } }

/* What Is Axion Forge?: larger, squarer subject tabs in two balanced rows (4 and 3) with room between them */
.md-subj-tabs { justify-content: center; gap: 12px; padding-bottom: 20px; }
.md-subj-t { flex: 0 1 calc(25% - 12px); padding: 14px 16px; border-radius: 6px; font-size: 0.88rem; line-height: 1.15; text-align: center; }
@media (max-width: 760px) { .md-subj-tabs { justify-content: flex-start; } .md-subj-t { flex: none; } }
.md-sub { margin-bottom: 22px; }   /* a little more room under each subject's subtitle */
/* the four fact pictures beside the opening text stand in one row */
.cpage[data-path="learn/what-is-axion-forge"] .md-split-m > .md-facts { grid-template-columns: repeat(4, auto); gap: 10px 14px; justify-content: center; }
.cpage[data-path="learn/what-is-axion-forge"] .md-split-m > .md-facts .md-img { width: clamp(60px, 5.4vw, 84px); }
/* "::: tiles even": each tile's button sits at the bottom, all at one width */
.md-even > .md-tile { display: flex; flex-direction: column; }
.md-even > .md-tile > .md-btns { margin-top: auto; padding-top: 12px; }
.md-even > .md-tile > .md-btns > .md-btn { width: 100%; justify-content: center; text-align: center; }

/* Explore (Lore Overview) and Codex: the light rings sit round the turning sigil; more room above the buttons */
section.st-codex.st-codex-sig { background: radial-gradient(ellipse 60% 120% at 50% 50%, rgb(255 122 26 / 0.07), transparent 70%), rgb(12 9 7 / 0.8); }
.st-codex-sigil { position: relative; }
.st-codex-sigil::before { content: ""; position: absolute; inset: -38%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgb(255 122 26 / 0.16), transparent 72%),
    radial-gradient(circle closest-side, transparent 0 calc(65% - 1px), rgb(240 194 122 / 0.15) 65%, transparent calc(65% + 1.5px)),
    radial-gradient(circle closest-side, transparent 0 calc(96% - 1px), rgb(240 194 122 / 0.09) 96%, transparent calc(96% + 1.5px)); }
.st-codex-sigil > svg { position: relative; }
.st-codex .md-btns.st-codex-btns { margin-top: 22px; }
@media (min-width: 1000px) { .st-codex-t > p.st-codex-one { white-space: nowrap; max-width: none; } }

/* Play: no eyebrow, the fire's bottom edge feathered, sparks over the fire; Digital and Physical side by side */
.cp-firehead .cp-fire { -webkit-mask: radial-gradient(ellipse 60% 78% at 50% 34%, #000 42%, transparent 100%), linear-gradient(180deg, #000 55%, transparent 96%); -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse 60% 78% at 50% 34%, #000 42%, transparent 100%) intersect, linear-gradient(180deg, #000 55%, transparent 96%); }
.embers.embers-in { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.md-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0 8px; align-items: start; }
.md-pane { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line-2); border-radius: 14px; background: rgb(10 10 13 / 0.55); box-shadow: 0 0 30px rgb(255 122 26 / 0.05) inset; }
.md-pane > h2:first-child, .md-pane > .md-h2:first-child { margin-top: 0; }
.md-pane .md-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.md-pane .md-tile > .md-img { width: 64px; height: 64px; object-fit: contain; border: 0; border-radius: 0; background: none; margin-bottom: 2px; }
@media (max-width: 900px) { .md-panes { grid-template-columns: minmax(0, 1fr); } }
/* Need an opponent?: the art feathered on every edge */
.cpage[data-path="play"] .md-band-bg, .cpage[data-path="play"] .md-band::before {
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%) intersect, linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); }

/* Learn to Play: the game in five steps, one step at a time */
.md-stepper { margin: 14px 0 8px; padding: clamp(16px, 2.4vw, 26px); border: 1px solid var(--line-2); border-radius: 14px; background: rgb(10 10 13 / 0.55); }
.md-stp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.md-stp-t { flex: 1 1 0; min-width: 120px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: rgb(10 10 13 / 0.5); color: var(--muted);
  font: 700 0.8rem/1.15 var(--display); letter-spacing: 0.05em; text-align: left; cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.4s ease; }
.md-stp-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; font: 600 0.72rem/1 var(--mono); }
.md-stp-t:hover, .md-stp-t:focus-visible { outline: none; color: var(--ink); border-color: rgb(255 122 26 / 0.55); box-shadow: 0 0 14px rgb(255 122 26 / 0.2); }
.md-stp-t.done { color: var(--ember-2); }
.md-stp-t[aria-selected="true"] { color: #fff4d8; border-color: rgb(255 154 58 / 0.8); background: rgb(255 122 26 / 0.16); box-shadow: 0 0 16px rgb(255 122 26 / 0.3); }
.md-stp-bar { height: 2px; margin: 14px 0 0; background: rgb(255 255 255 / 0.06); border-radius: 2px; overflow: hidden; }
.md-stp-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--k, 0.2)); background: linear-gradient(90deg, rgb(255 122 26 / 0.4), #ffb15c); transition: transform 0.45s ease; }
.md-stp-body { min-height: 120px; padding: 18px 2px 4px; }
.md-stp-h { margin: 0 0 8px; font: 700 1.15rem/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-2); }
.md-stp-p > p { margin: 0; max-width: 70ch; }
.md-stp-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.md-stp-nav .md-btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
@media (max-width: 760px) { .md-stp-t { min-width: 0; flex: 1 1 calc(50% - 8px); } }

/* Card Types: the Types in rows of three (two, then one on narrower screens), each with its rocking 3D card */
.md-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 18px 0 10px; }
.md-types > .md-tile { flex: 0 1 calc((100% - 36px) / 3); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px 20px; text-align: center; }
.md-types > .md-tile > p { margin: 0; max-width: 34ch; }
.md-types .md-tile-h { display: flex; align-items: center; justify-content: center; gap: 2px; }
.md-types .md-ico { width: 1.9em; height: 1.9em; }
.md-c3d { display: grid; justify-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
@media (max-width: 1000px) { .md-types > .md-tile { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .md-types > .md-tile { flex-basis: 100%; } }
/* Elite & Prime: the tier icons larger and without the light disc behind them; the silver and gold icons in headings
   keep their own colours (the black Standard icons are lightened for the dark page) */
.md-tier img, .md-tier img:hover { width: 84px; height: 84px; padding: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 4px 14px rgb(0 0 0 / 0.6)); }
.md-tier:first-child img { filter: invert(0.92) drop-shadow(0 0 8px rgb(255 160 70 / 0.35)); }
.md-ico-type[src*="/elite-"], .md-ico-type[src*="/prime-"] { filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.6)); }
/* Deckbuilding: larger rarity icons; Victory: the Resonance, Dominance and Objective icons in the tile headings */
.md-ico-rarity { width: 1.9em; height: 1.9em; vertical-align: -0.55em; }
.md-tile-h .md-ico-sym { width: 1.9em; height: 1.9em; vertical-align: -0.55em; }
/* the Browse button's glow fades in (and out) instead of switching on */
.md-btn { transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.5s ease, filter 0.5s ease; }

/* Events: more room above the buttons */
.cpage[data-path="events"] .md-split-t > .md-btns { margin-top: 22px; }

/* Updates: one box per entry, the date (each its own colour) and the title on their own lines, buttons and pictures in
   a column to the right of the text */
:root { --news-0: #ffb15c; --news-1: #7fcfff; --news-2: #c9a2ff; --news-3: #7fe0a8; --news-4: #ff9a8a; --news-5: #f0d27a; }
.md-news { display: grid; gap: 24px; margin: 18px 0 10px; }
.md-news-e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, auto); gap: 14px 30px; padding: 22px clamp(16px, 2.6vw, 28px); border: 1px solid var(--line); border-left: 3px solid var(--nc); border-radius: 12px; background: rgb(10 10 13 / 0.5); }
.md-news-e.md-news-solo { grid-template-columns: minmax(0, 1fr); }
.md-news-d { margin: 0 0 6px; font: 600 0.78rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--nc); text-shadow: 0 0 12px color-mix(in srgb, var(--nc) 40%, transparent); }
.md-news-h { margin: 0 0 12px; font: 700 clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem)/1.25 var(--display); letter-spacing: 0.05em; color: var(--ink); }
.md-news-t > :last-child { margin-bottom: 0; }
.md-news-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.md-news-side .md-btns { flex-direction: column; align-items: stretch; margin: 0; }
.md-news-side .md-btn { justify-content: center; text-align: center; }
@media (max-width: 700px) { .md-news-e { grid-template-columns: minmax(0, 1fr); } }

/* Shop: the Ignition Packs pictures crossfade in the tile's 16:9 frame */
.md-products .md-rot { max-width: none; aspect-ratio: 16 / 9; background: rgb(255 255 255 / 0.03); border-radius: 8px; }

/* Gameplay Variants: Creature Clash's card beside its text */
.md-split-m > .md-c3d { margin: 0; padding: 0; }
.md-c3d .c3d { width: clamp(150px, 15vw, 210px); cursor: zoom-in; }
.md-split-m > .md-c3d .c3d { width: clamp(180px, 20vw, 250px); }

/* ===== v0.34.0 (user, 2026-11-18) ===== */
/* mini footer: the whole sentence "Axion Forge is in development. Join the community and help make it real!" pulses as
   one line (the glow is on the line itself, not on each sentence, so both halves and the gap between them glow together) */
.devbar-s, .devbar-s:first-child { animation: none; }
.devbar-in { animation: devPulse 18.3s ease-in-out 3s infinite; }
@media (prefers-reduced-motion: reduce) { .devbar-in { animation: none; } }
/* What Is Axion Forge?: more room between each subject's title and its subtitle */
.md-subj-b > .md-h2 + .md-sub { margin-top: 10px; }
/* What Is Axion Forge?: the orange fact icons at the top glow a little less on hover */
.cpage[data-path="learn/what-is-axion-forge"] .md-split-m > .md-facts .md-img:hover { filter: drop-shadow(0 0 12px rgb(255 130 40 / 0.6)) drop-shadow(0 0 5px rgb(255 170 90 / 0.4)); }
/* What Is Axion Forge?: the three READY TO PLAY boxes are a little wider (320 px instead of about 265 px) */
.cpage[data-path="learn/what-is-axion-forge"] .cp-body > .md-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 320px)); }
/* Play: less empty space under the header (it held the tagline "Now playtesting!", now removed) */
.cpage[data-path="play"] .cp-head.cp-firehead { min-height: min(62vh, 520px); justify-content: flex-end; padding-bottom: 34px; }   /* the title stays where it was; the space under the lines shrinks */
/* Play: the subtitles under DIGITAL and PHYSICAL sit a little lower */
.md-pane > .md-h2 + .md-sub { margin-top: 6px; }
/* Play: the Tabletop Simulator and Screentop icons sit at the right of their boxes, larger */
.md-pane .md-tile:has(> .md-img) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 12px; align-items: start; }
.md-pane .md-tile:has(> .md-img) > .md-tile-h { grid-column: 1; grid-row: 1; }
.md-pane .md-tile:has(> .md-img) > p { grid-column: 1; grid-row: 2; margin: 0; }
.md-pane .md-tile:has(> .md-img) > .md-img { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 96px; height: 96px; margin: 0; }
.md-pane .md-tile:has(> .md-img) > .md-btns { grid-column: 1 / -1; }
@media (max-width: 480px) { .md-pane .md-tile:has(> .md-img) > .md-img { width: 72px; height: 72px; } }
/* Play: the Browser and Print and play boxes under COMING SOON are narrower */
.cpage[data-path="play"] .md-planned { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 420px)); justify-content: center; }   /* centred under the centred COMING SOON */
/* "::: row": text with its buttons at the right (Card Types: Browse the Card Database beside the opening paragraph) */
.md-row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 18px 22px; border: 1px solid var(--line-2); border-radius: 10px; background: rgb(10 10 13 / 0.55); }
.md-row-t { flex: 1 1 auto; min-width: 0; }
.md-row-t > p:last-child { margin-bottom: 0; }
.md-row-b { flex: 0 0 auto; }
.md-row-b .md-btns { margin: 0; }
@media (max-width: 760px) { .md-row { flex-direction: column; align-items: flex-start; gap: 14px; } }
/* Card Types: the Tokens box shows an empty card place (dotted outline, faint grey ground): Tokens are not cards */
.md-cardslot { width: clamp(150px, 15vw, 210px); aspect-ratio: 5 / 7; border: 2px dashed rgb(255 255 255 / 0.22); border-radius: 4.6% / 3.3%; background: rgb(255 255 255 / 0.04); }
.md-cardslot-n { visibility: hidden; }
/* Deckbuilding: the rarity icons in the table and the Elite and Prime icons in the heading are much larger */
.cpage[data-path="gameplay/deckbuilding"] .md-table .md-ico-rarity { width: 48px; height: 48px; }
.cpage[data-path="gameplay/deckbuilding"] .md-table td { vertical-align: middle; }
.cpage[data-path="gameplay/deckbuilding"] .md-h2 .md-ico-type { width: 54px; height: 54px; vertical-align: middle; }
/* Updates: the date and title head the entry across both columns; the buttons and pictures start level with the text */
.md-news-head { grid-column: 1 / -1; }
.md-news-head .md-news-h { margin-bottom: 0; }
.md-news-side { align-self: start; }
/* Updates: a blank line's space before each bulleted list */
.md-news-t > * + .md-list { margin-top: 1em; }
/* menus: the first links of a column (Gameplay, Factions Overview) are not bold, in the header panel and the MENU list */
.tn-drop-a.tn-first, .menu-sub.tn-first { font-weight: 400; }
/* Shop: the Patreon, Ko-fi and Kickstarter logos inside their buttons */
.md-btn.md-btn-logo { display: inline-flex; align-items: center; gap: 10px; }
.md-btn-lg { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: contain; }
/* the finish switch: HOLOFOIL lights in rainbow, CHROME in silver */
.fin-b:last-child[aria-pressed="true"] { background: var(--fac, var(--ember)); }
.fin-b.fin-holo[aria-pressed="true"] { background: linear-gradient(100deg, #ff9ad5, #ffd36b 30%, #7cf0c8 60%, #8fb4ff); color: #0b0b0e; }

/* v0.35.0 (user, 2026-11-18): the build version, small and dim at the bottom centre of every page */
.foot-build { margin: 0 auto; padding: 0 16px 2px; text-align: center; font: 500 0.62rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); opacity: 0.55; user-select: none; }

/* v0.35.0 (user, 2026-11-18): Play page
   - half the empty space above PLAY NOW (the header was 520 px tall with the title at its foot) */
.cpage[data-path="play"] .cp-head.cp-firehead { min-height: min(46vh, 370px); }
/* - PLAY NOW pulses with a soft fire glow, from the moment the page loads (the fade-in keeps running first) */
.cpage[data-path="play"] .cp-firehead .cp-h1 { animation: fadeIn 0.45s ease-out backwards, playNowPulse 2.6s ease-in-out 0.45s infinite; }
@keyframes playNowPulse {
  0%, 100% { text-shadow: 0 0 14px rgb(255 140 40 / 0.25), 0 0 34px rgb(255 100 20 / 0.12); }
  50% { text-shadow: 0 0 22px rgb(255 160 60 / 0.75), 0 0 60px rgb(255 110 20 / 0.45), 0 0 4px rgb(255 220 160 / 0.6); }
}
@media (prefers-reduced-motion: reduce) { .cpage[data-path="play"] .cp-firehead .cp-h1 { animation: none; text-shadow: 0 0 18px rgb(255 140 40 / 0.45); } }
/* - the Tabletop Simulator logo larger and the Screentop logo a little smaller, so they look the same size */
.md-pane .md-tile:has(> .md-img) > .md-img[alt="Tabletop Simulator"] { width: 124px; height: 124px; margin: -14px -6px; max-width: none; }
.md-pane .md-tile:has(> .md-img) > .md-img[alt="Screentop"] { width: 84px; height: 84px; margin: 0 6px; }
@media (max-width: 480px) { .md-pane .md-tile:has(> .md-img) > .md-img[alt="Tabletop Simulator"] { width: 92px; height: 92px; margin: -10px -4px; max-width: none; } .md-pane .md-tile:has(> .md-img) > .md-img[alt="Screentop"] { width: 62px; height: 62px; margin: 0 5px; } }
/* - DIGITAL and PHYSICAL are the same height, their subtitles centred */
.md-panes { align-items: stretch; }
.md-pane > .md-sub { text-align: center; }
/* v0.35.0 (user, 2026-11-18): Codex page: the first paragraph fits on two lines on wide screens */
.cpage[data-path="story/codex"] .cp-body > p:first-of-type { max-width: 900px; }
/* v0.35.0 (user, 2026-11-18): Deckbuilding: each Supertype tier with its Type icon in the body, beside its rule */
.md-tierrule { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; margin: 12px 0; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgb(11 11 14 / 0.6); max-width: 760px; }
.md-tierrule img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.6)); }
.md-tierrule-standard img { filter: invert(0.92) drop-shadow(0 0 8px rgb(255 160 70 / 0.35)); }   /* the black icon, readable on the dark page (as on Card Types) */
.md-tierrule-t p { margin: 0; }
.md-tierrule-h { font: 700 1rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px !important; color: var(--ink); }
.md-tierrule-elite .md-tierrule-h { color: #d9dde3; }
.md-tierrule-prime .md-tierrule-h { color: var(--gold, #e8b64c); }
@media (max-width: 480px) { .md-tierrule { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 12px 14px; } .md-tierrule img { width: 48px; height: 48px; } }
/* v0.35.0 (user, 2026-11-18): Deckbuilding: rarity names centred beside their icons; the Common icon a little smaller;
   the tier boxes closer together; the Browse button lower, apart from the Recommendation text */
.cpage[data-path="gameplay/deckbuilding"] .md-table td .md-ico-rarity { vertical-align: middle; margin-right: 10px; }
.cpage[data-path="gameplay/deckbuilding"] .md-table td .md-ico-rarity[src$="rarity-common.png"] { width: 40px; height: 40px; margin-inline: 4px 14px; }
.cpage[data-path="gameplay/deckbuilding"] .md-tierrule { margin: 10px 0; }
.cpage[data-path="gameplay/deckbuilding"] .cp-body > .md-btns:last-child { margin-top: 34px; }
.cpage[data-path="gameplay/deckbuilding"] .md-tierrule { margin: 0; }
.cpage[data-path="gameplay/deckbuilding"] .md-tierrule + .md-tierrule { margin-top: -4px; }
/* v0.35.0 (user, 2026-11-18): Shop: a clear border around every product picture (the Ignition Packs crossfade included) */
/* v0.35.1 (user): drawn as an outline, so the pictures keep their v0.34.0 size (the border had shrunk the Ignition Packs
   pictures); the Ignition Packs pictures sit above the product name, as on every other product */
.cpage[data-path="shop"] .md-products .md-img, .cpage[data-path="shop"] .md-rot { outline: 1px solid rgb(232 182 76 / 0.38); outline-offset: -1px; box-shadow: 0 8px 22px rgb(0 0 0 / 0.45); }
.cpage[data-path="shop"] .md-products .md-img { border-color: transparent; }
.cpage[data-path="shop"] .md-products .md-rot { order: -1; }
/* v0.35.0 (user, 2026-11-18): the HOLOFOIL finish a little more colourful (a stronger, more saturated spectral band and a
   little more foil at rest and in the light); CHROME is unchanged */
.c3d-foil { background-image: linear-gradient(calc(118deg + var(--dx) * 60deg),
    transparent 30%, rgb(255 60 120 / 0.74) 38%, rgb(255 200 60 / 0.74) 43%, rgb(70 255 165 / 0.74) 48%, rgb(60 160 255 / 0.74) 53%, rgb(185 95 255 / 0.74) 58%, transparent 66%); }
.c3d-foil-holo { opacity: calc(0.36 + var(--on) * 0.62); }
.c3d-foil::after { background: linear-gradient(125deg, transparent 20%, rgb(255 100 165 / 0.44) 32%, rgb(255 215 105 / 0.44) 40%, rgb(95 255 185 / 0.44) 48%, rgb(95 170 255 / 0.44) 56%, rgb(195 115 255 / 0.44) 64%, transparent 76%); background-size: 260% 260%; }

/* v0.35.1 (user, 2026-11-18): finish layers are kept and hidden instead of removed (no one-frame artefact when the finish
   changes); the sweep's light keeps its own layer from the start */
.c3d-foil.c3d-fin-off { opacity: 0 !important; animation: none !important; }
.c3d-foil { will-change: opacity; }
.c3d-flash::before { will-change: transform, opacity; backface-visibility: hidden; }
.c3d-fin-off::after { animation: none !important; }

/* v0.35.1 (user, 2026-11-18): Play: the fire keeps its full height (520 px, as before v0.35.0) although the header is
   shorter: it runs on behind the top of the page under the header, its bottom feathered into the page */
.cpage[data-path="play"] .cp-head.cp-firehead { overflow: visible; }
.cpage[data-path="play"] .cp-firehead .cp-fire, .cpage[data-path="play"] .cp-firehead::before { bottom: auto; height: min(62vh, 520px); }
.cpage[data-path="play"] .cp-firehead::before { background: radial-gradient(ellipse at 50% 45%, rgb(5 5 6 / 0.05), rgb(5 5 6 / 0.7) 85%); }
.cpage[data-path="play"] .cp-firehead .cp-fire {
  -webkit-mask: radial-gradient(ellipse 60% 78% at 50% 34%, #000 42%, transparent 100%), linear-gradient(180deg, #000 38%, rgb(0 0 0 / 0.55) 62%, transparent 100%); -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse 60% 78% at 50% 34%, #000 42%, transparent 100%) intersect, linear-gradient(180deg, #000 38%, rgb(0 0 0 / 0.55) 62%, transparent 100%); }
/* v0.35.1 (user): Contact: a little more room above the form */
.cpage[data-path="contact"] .md-form, .cpage[data-path="contact"] .siteform { margin-top: 26px; }

/* v0.36.0 (user, 2026-11-18): PHONES ONLY (desktop unchanged). The header row: MENU is a three-line icon, SIGN IN is
   back in the row as its character icon only (beside the link button) and no longer in the MENU list, and the row is
   sized so it never reaches the logo on the left (narrower icon buttons, slightly smaller side margins). */
.menu-burger { display: none; }
@media (max-width: 760px) {
  .topbar-in { padding-inline: 12px; gap: 6px; }
  .brand { flex: none; position: relative; z-index: 1; }
  .topbar-r { gap: 3px; }
  .menu-btn { width: 38px; padding: 0; justify-content: center; }
  .menu-word, .menu-btn .caret { display: none; }
  .menu-burger { display: grid; gap: 4px; width: 18px; }
  .menu-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
  .menu-btn[aria-expanded="true"] .menu-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-burger i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar-r .ss { flex: 0 0 38px; min-width: 38px; }
  .comm-btn { padding: 0; width: 38px; }
  .topbar-r > .acct-menu { display: flex; }
  .topbar-r > .acct-menu .acct-t { display: none; }
  .topbar .topbar-r > .acct-menu .acct-b, .topbar .topbar-r > .acct-menu .acct-b.in, .topbar .topbar-r > .acct-menu .acct-b:not(.in) { width: 38px; min-width: 38px; height: 100%; min-height: 38px; padding: 0; }
  .topbar-r .shop-btn { padding-inline: 6px; }
  .topbar-r .play-now { max-width: 62px; padding-inline: 6px; }
  .menu-drop .acct-in-menu { display: none; }
  /* v0.37.0 (user, 2026-11-19): the icon buttons are 38 px (slightly wider); the lit search button while the search is
     open keeps the same 38 px (it had a 44 px minimum, which pushed the row over the logo) */
  .topbar-r .ss:is(:focus-within, .ss-open) .ss-ph { min-width: 0; width: 38px; }
}
@media (max-width: 370px) { .topbar-r > .comm-menu { display: block; } }
@media (max-width: 345px) { .topbar-r > .comm-menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-burger i { transition: none; } }

/* v0.36.0 (user, 2026-11-18): PHONES ONLY. The home hero loop keeps its size (covering the hero down to the faction
   icons); a smaller copy the phone's width plays in front of it, feathered at its edges, so the scene can be seen. */
.hero-loop-mini { display: none; }
@media (max-width: 760px) {
  .hero-loop-mini { display: block; position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
    -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
  .hero-loop-mini video.loopv { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: contain; }
}

/* v0.38.0 (user, 2026-11-19): PHONES ONLY. The four icon buttons (MENU, search, SIGN IN, the link button) are wider:
   each grows from 38 px to at most 52 px with the room the header row has, so they are as wide as the phone allows
   while a gap of at least 10 px is always left beside the logo on the left (6 px row gap + 4 px). */
@media (max-width: 760px) {
  .topbar-r { padding-left: 4px; }
  .topbar-r > .menu, .topbar-r > .ss, .topbar-r > .acct-menu, .topbar-r > .comm-menu { flex: 1 1 38px; min-width: 38px; max-width: 52px; }
  .topbar-r > .menu .menu-btn, .topbar-r .comm-btn { width: 100%; }
  .topbar .topbar-r > .acct-menu .acct-b, .topbar .topbar-r > .acct-menu .acct-b.in, .topbar .topbar-r > .acct-menu .acct-b:not(.in) { width: 100%; }
  .topbar-r .ss:is(:focus-within, .ss-open) .ss-ph { width: 100%; }
}

/* ===== v0.39.0 (user, 2026-11-19): card finishes by rarity =====
   STANDARD (as before), HOLOFOIL (holofoil 2, sparkles in depth), REVERSE (holofoil 1 on the border and lower half),
   PRISMATIC (prismatic 2, more colour; the old CHROME), CHROMA (look D, colour in the blacks, less colour, machined
   metal lit from the centre), POLARITY (polarity 3, black chrome negative inside a liquid-chrome oil-slick border).
   Each finish is one group (.c3d-fx) with its own copy of the art under its light layers (Interactive3DCard.js), so the
   group crossfades cleanly. Every finish has three layers of sparkles printed on the card: they never move on it; each
   layer is caught by its own band of light (wide and slow for the far layer, narrow and fast for the near one), so the
   layers light one after another as the card turns. Textures come from js/core/finishes.js; until one is drawn its
   variable is an empty picture, so the layer shows nothing. From samples/finish-lab.css. */
:root { --fx-none: linear-gradient(transparent, transparent); --fx-spk-far: var(--fx-none); --fx-spk-mid: var(--fx-none); --fx-spk-near: var(--fx-none);
  --fx-hair: var(--fx-none); --fx-rad: var(--fx-none); --fx-foil-a: var(--fx-none); --fx-foil-b: var(--fx-none);
  --fx-win: var(--fx-none); --fx-inner: var(--fx-none); --fx-border: var(--fx-none); }
.c3d-fx { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; isolation: isolate; transition: opacity 0.2s ease; }
.c3d-fx.c3d-fin-off { opacity: 0 !important; visibility: hidden; transition: none; }
.c3d-fx.c3d-fin-off *, .c3d-fx.c3d-fin-off ::after { animation: none !important; }
.c3d-fx > * { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
/* the art copies move with the card's own art (the slight drift against the tilt) */
.c3d-fx > .fx-art { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
  transform: translate3d(calc(var(--dx) * -5px), calc(var(--dy) * -5px), 0) scale(calc(1 + var(--on) * 0.02)); }
.c3d-fx > .fx-re { opacity: 0; transition: opacity 0.35s ease; }
.c3d-fx.fx-ready > .fx-re { opacity: 1; }
.c3d-metal .c3d-glare { opacity: 0; }
/* until the recoloured art is ready, the plain copy is greyed (as CHROME did) */
.c3d-fx-prismatic:not(.fx-ready) > .fx-base, .c3d-fx-chroma:not(.fx-ready) > .fx-base, .c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: grayscale(1) contrast(1.3) brightness(0.99); }

/* -- the sparkles (every finish): one texture per layer, and a band of light per layer as a second mask -- */
.fx-spk, .fx-hair, .fx-hair-glint, .fx-foil, .fx-rad, .fx-rad-glint { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.fx-spk { mix-blend-mode: screen; background: linear-gradient(calc(130deg + var(--dx) * 90deg), #ffa3cf, #ffe7a0 12%, #b0ffd9 24%, #a6d2ff 36%, #e0adff 48%, #ffa3cf 60%, #ffe7a0 72%, #b0ffd9 84%, #a6d2ff 100%) no-repeat;
  background-size: 300% 300%; -webkit-mask-composite: source-in; mask-composite: intersect; }
.fx-spk.fx-far { opacity: calc(0.45 + var(--on) * 0.25 + var(--ta, 0) * 0.15); background-position: calc(50% + var(--dx) * 40%) 50%;
  -webkit-mask-image: var(--fx-spk-far), linear-gradient(calc(75deg + var(--dx) * 20deg), rgb(0 0 0 / 0.4) calc(50% + var(--dx) * 40% - 55%), #000 calc(50% + var(--dx) * 40%), rgb(0 0 0 / 0.4) calc(50% + var(--dx) * 40% + 55%));
          mask-image: var(--fx-spk-far), linear-gradient(calc(75deg + var(--dx) * 20deg), rgb(0 0 0 / 0.4) calc(50% + var(--dx) * 40% - 55%), #000 calc(50% + var(--dx) * 40%), rgb(0 0 0 / 0.4) calc(50% + var(--dx) * 40% + 55%)); }
.fx-spk.fx-mid { opacity: calc(0.5 + var(--on) * 0.3 + var(--ta, 0) * 0.2); background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 100%);
  -webkit-mask-image: var(--fx-spk-mid), linear-gradient(calc(120deg + var(--dx) * 30deg), rgb(0 0 0 / 0.3) calc(50% + var(--dx) * 110% - 38%), #000 calc(50% + var(--dx) * 110%), rgb(0 0 0 / 0.3) calc(50% + var(--dx) * 110% + 38%));
          mask-image: var(--fx-spk-mid), linear-gradient(calc(120deg + var(--dx) * 30deg), rgb(0 0 0 / 0.3) calc(50% + var(--dx) * 110% - 38%), #000 calc(50% + var(--dx) * 110%), rgb(0 0 0 / 0.3) calc(50% + var(--dx) * 110% + 38%)); }
.fx-spk.fx-near { opacity: calc(0.55 + var(--on) * 0.3 + var(--ta, 0) * 0.15); background-position: calc(50% - var(--dx) * 100%) calc(50% - var(--dy) * 100%);
  -webkit-mask-image: var(--fx-spk-near), linear-gradient(calc(160deg - var(--dx) * 40deg), rgb(0 0 0 / 0.25) calc(50% - var(--dx) * 190% - 26%), #000 calc(50% - var(--dx) * 190%), rgb(0 0 0 / 0.25) calc(50% - var(--dx) * 190% + 26%));
          mask-image: var(--fx-spk-near), linear-gradient(calc(160deg - var(--dx) * 40deg), rgb(0 0 0 / 0.25) calc(50% - var(--dx) * 190% - 26%), #000 calc(50% - var(--dx) * 190%), rgb(0 0 0 / 0.25) calc(50% - var(--dx) * 190% + 26%)); }
/* paler sparkles for the metal finishes: mostly silver with a little colour */
.fx-spk.fx-silver { filter: saturate(0.35); }

/* -- HOLOFOIL: the site's holofoil band and shimmer (.c3d-foil-holo) and the sparkles -- */
/* -- REVERSE: a rainbow wash, the holofoil band at full strength, hairline scratches with an upright glint, and two
   sets of small rainbow starbursts; the art window is laid back on top as printed (.fx-win) -- */
.fx-revwash { mix-blend-mode: soft-light; opacity: calc(0.5 + var(--on) * 0.25 + var(--ta, 0) * 0.2);
  background: linear-gradient(calc(115deg + var(--dx) * 50deg), #ff7ab6, #ffd27a 12%, #8cffc9 24%, #7ab8ff 36%, #d17aff 48%, #ff7ab6 60%, #ffd27a 72%, #8cffc9 84%, #7ab8ff 100%) no-repeat;
  background-size: 300% 300%; background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 100%); }
.c3d-fx .c3d-foil-holo.fx-strong { opacity: calc(0.55 + var(--on) * 0.45); }
.fx-hair { mix-blend-mode: screen; opacity: 0.16; background: #f4f6fa; -webkit-mask-image: var(--fx-hair); mask-image: var(--fx-hair); }
.fx-hair-glint { mix-blend-mode: screen; opacity: calc(0.28 + var(--on) * 0.2 + var(--ta, 0) * 0.15); background: #fff;
  -webkit-mask-image: var(--fx-hair), linear-gradient(90deg, transparent calc(var(--px) - 44%), rgb(0 0 0 / 0.45) calc(var(--px) - 18%), #000 var(--px), rgb(0 0 0 / 0.45) calc(var(--px) + 18%), transparent calc(var(--px) + 44%));
          mask-image: var(--fx-hair), linear-gradient(90deg, transparent calc(var(--px) - 44%), rgb(0 0 0 / 0.45) calc(var(--px) - 18%), #000 var(--px), rgb(0 0 0 / 0.45) calc(var(--px) + 18%), transparent calc(var(--px) + 44%));
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.fx-foil { mix-blend-mode: screen; background: linear-gradient(calc(120deg + var(--dx) * 100deg + var(--tl, 0) * 60deg), #ff8fc4, #ffe08a 9%, #9dffcf 18%, #8fc8ff 27%, #d79bff 36%, #ff8fc4 45%, #ffe08a 54%, #9dffcf 63%, #8fc8ff 72%, #d79bff 81%, #ff8fc4 90%, #ffe08a 100%) no-repeat;
  background-size: 300% 300%; background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.fx-foil.fx-a { opacity: calc(0.55 + var(--on) * 0.3 + var(--ta, 0) * 0.15);
  -webkit-mask-image: var(--fx-foil-a), linear-gradient(calc(60deg + var(--dx) * 40deg), rgb(0 0 0 / 0.3) calc(var(--px) - 40%), #000 var(--px), rgb(0 0 0 / 0.3) calc(var(--px) + 40%));
          mask-image: var(--fx-foil-a), linear-gradient(calc(60deg + var(--dx) * 40deg), rgb(0 0 0 / 0.3) calc(var(--px) - 40%), #000 var(--px), rgb(0 0 0 / 0.3) calc(var(--px) + 40%)); }
.fx-foil.fx-b { opacity: calc(0.5 + var(--on) * 0.3 + var(--ta, 0) * 0.2); background-position: calc(50% - var(--dx) * 100%) calc(50% - var(--dy) * 100%);
  -webkit-mask-image: var(--fx-foil-b), linear-gradient(calc(140deg - var(--dx) * 40deg), rgb(0 0 0 / 0.25) calc(100% - var(--px) - 34%), #000 calc(100% - var(--px)), rgb(0 0 0 / 0.25) calc(100% - var(--px) + 34%));
          mask-image: var(--fx-foil-b), linear-gradient(calc(140deg - var(--dx) * 40deg), rgb(0 0 0 / 0.25) calc(100% - var(--px) - 34%), #000 calc(100% - var(--px)), rgb(0 0 0 / 0.25) calc(100% - var(--px) + 34%)); }
.c3d-fx > .fx-win { -webkit-mask: var(--fx-win) 0 0 / 100% 100% no-repeat; mask: var(--fx-win) 0 0 / 100% 100% no-repeat; }

/* -- the metal light (PRISMATIC, CHROMA): a wide, soft band of silver, and one wide soft lacquer reflection -- */
.fx-spec { mix-blend-mode: color-dodge; opacity: calc(0.46 + var(--on) * 0.3 + var(--ta, 0) * 0.2);
  background:
    linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 42%), rgb(175 185 200 / 0.42) calc(var(--px) - 16%), rgb(240 244 250 / 0.78) var(--px), rgb(175 185 200 / 0.42) calc(var(--px) + 16%), transparent calc(var(--px) + 42%)),
    linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), transparent calc(var(--px) + 22%), rgb(165 175 190 / 0.32) calc(var(--px) + 36%), transparent calc(var(--px) + 50%)); }
.fx-gloss { mix-blend-mode: screen; opacity: calc(0.2 + var(--on) * 0.14 + var(--ta, 0) * 0.08);
  background: radial-gradient(ellipse 72% 58% at var(--px) calc(var(--py) * 0.7), rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.12) 45%, transparent 75%),
    linear-gradient(180deg, rgb(255 255 255 / 0.16), transparent 22%); }
.fx-gloss.fx-soft { opacity: calc(0.14 + var(--on) * 0.1 + var(--ta, 0) * 0.06); }
/* CHROMA (user: most of the light from the centre, a very subtle, wide amount from elsewhere) */
.fx-spec.fx-faint { opacity: calc(0.12 + var(--on) * 0.1 + var(--ta, 0) * 0.08); }
.fx-gloss.fx-faint { opacity: calc(0.07 + var(--on) * 0.06 + var(--ta, 0) * 0.04); }
/* PRISMATIC: the oil slick in the whites (look H), a little stronger; masked to the art's whites by the script */
.fx-slick { mix-blend-mode: multiply; opacity: 0; transition: opacity 0.35s ease; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background:
    linear-gradient(calc(128deg + var(--dx) * 36deg + var(--tl, 0) * 40deg), #ff3fa4 0%, #ffb347 4.7%, #c8ff5a 8.7%, #31e0c8 12.7%, #3a7bff 17.3%, #a34bff 22%, #ff3fa4 26.7%, #ffb347 31.3%, #c8ff5a 35.3%, #31e0c8 39.3%, #3a7bff 44%, #a34bff 48.7%, #ff3fa4 53.3%, #ffb347 58%, #c8ff5a 62%, #31e0c8 66%, #3a7bff 70.7%, #a34bff 75.3%, #ff3fa4 80%, #ffb347 84.7%, #c8ff5a 88.7%, #31e0c8 92.7%, #3a7bff 96.7%, #a34bff 100%),
    radial-gradient(ellipse 60% 40% at 30% 70%, #31e0c8, transparent 70%),
    radial-gradient(ellipse 50% 45% at 75% 25%, #ff3fa4, transparent 70%);
  background-repeat: no-repeat; background-size: 300% 300%, 100% 100%, 100% 100%;
  background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 100%), 0 0, 0 0; }
.fx-ready > .fx-slick { opacity: calc(0.62 + var(--on) * 0.2 + var(--ta, 0) * 0.1); }

/* -- machined metal (CHROMA, POLARITY): scratches running out from the centre, a glint on them in two wide beams that
   swing round as the card tilts, and light radiating from the centre -- */
.fx-rad { mix-blend-mode: screen; opacity: 0.13; background: #f4f6fa; -webkit-mask-image: var(--fx-rad); mask-image: var(--fx-rad); }
.fx-rad-glint { mix-blend-mode: screen; opacity: calc(0.3 + var(--on) * 0.2 + var(--ta, 0) * 0.15); background: #fff;
  -webkit-mask-image: var(--fx-rad), conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 50%, rgb(0 0 0 / 0.15) 0deg, #000 30deg, rgb(0 0 0 / 0.15) 70deg, rgb(0 0 0 / 0.15) 180deg, #000 210deg, rgb(0 0 0 / 0.15) 250deg, rgb(0 0 0 / 0.15) 360deg);
          mask-image: var(--fx-rad), conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 50%, rgb(0 0 0 / 0.15) 0deg, #000 30deg, rgb(0 0 0 / 0.15) 70deg, rgb(0 0 0 / 0.15) 180deg, #000 210deg, rgb(0 0 0 / 0.15) 250deg, rgb(0 0 0 / 0.15) 360deg);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.fx-rad-light { mix-blend-mode: screen; opacity: calc(0.14 + var(--on) * 0.1 + var(--ta, 0) * 0.08);
  background: conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 50%,
    rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0.3) 18deg, rgb(255 255 255 / 0.45) 30deg, rgb(255 255 255 / 0.3) 42deg, rgb(255 255 255 / 0) 70deg,
    rgb(255 255 255 / 0) 180deg, rgb(255 255 255 / 0.3) 198deg, rgb(255 255 255 / 0.45) 210deg, rgb(255 255 255 / 0.3) 222deg, rgb(255 255 255 / 0) 250deg, rgb(255 255 255 / 0) 360deg),
    radial-gradient(ellipse 30% 22% at 50% 50%, rgb(255 250 240 / 0.35), transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 66% at 50% 50%, #000 0%, rgb(0 0 0 / 0.6) 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 66% at 50% 50%, #000 0%, rgb(0 0 0 / 0.6) 40%, transparent 100%); }
/* CHROMA: the radiating light is the main light (stronger beams, reaching further), its centre glow a little dimmer */
.c3d-fx-chroma .fx-rad-light { opacity: calc(0.26 + var(--on) * 0.16 + var(--ta, 0) * 0.12);
  background: conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 50%,
    rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0.32) 18deg, rgb(255 255 255 / 0.5) 30deg, rgb(255 255 255 / 0.32) 42deg, rgb(255 255 255 / 0) 70deg,
    rgb(255 255 255 / 0) 180deg, rgb(255 255 255 / 0.32) 198deg, rgb(255 255 255 / 0.5) 210deg, rgb(255 255 255 / 0.32) 222deg, rgb(255 255 255 / 0) 250deg, rgb(255 255 255 / 0) 360deg),
    radial-gradient(ellipse 30% 22% at 50% 50%, rgb(255 250 240 / 0.24), transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 50%, #000 0%, rgb(0 0 0 / 0.7) 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 80% at 50% 50%, #000 0%, rgb(0 0 0 / 0.7) 45%, transparent 100%); }
.c3d-fx-chroma .fx-rad-glint { opacity: calc(0.36 + var(--on) * 0.22 + var(--ta, 0) * 0.16); }

/* -- POLARITY: the negative (.fx-re) inside the border only, feathered in past the faction-colour line; the border is
   liquid chrome (the PRISMATIC art, .fx-base) with an oil slick; black chrome light on top -- */
.c3d-fx-polarity > .fx-re { -webkit-mask: var(--fx-inner) 0 0 / 100% 100% no-repeat; mask: var(--fx-inner) 0 0 / 100% 100% no-repeat; }
.fx-metal { mix-blend-mode: overlay; opacity: 0.6;
  background: linear-gradient(calc(110deg + var(--dx) * 30deg + var(--tl, 0) * 30deg), rgb(0 0 0 / 0.4) 0%, rgb(255 255 255 / 0) calc(var(--px) - 30%), rgb(255 255 255 / 0.7) var(--px), rgb(255 255 255 / 0) calc(var(--px) + 30%), rgb(0 0 0 / 0.42) 100%); }
/* v0.41.0: .fx-iri and .fx-iri2 (an oil slick inside the card) removed; POLARITY's slick is on the border only */
/* the border's oil slick: the liquid-chrome rainbow, only on the border band */
.fx-edge-slick { mix-blend-mode: screen; opacity: calc(0.42 + var(--on) * 0.22 + var(--ta, 0) * 0.14); filter: saturate(0.9);
  background: linear-gradient(calc(128deg + var(--dx) * 60deg + var(--tl, 0) * 40deg), #ff3fa4, #ffb347 8%, #c8ff5a 16%, #31e0c8 25%, #3a7bff 33%, #a34bff 41%, #ff3fa4 50%, #ffb347 58%, #c8ff5a 66%, #31e0c8 75%, #3a7bff 83%, #a34bff 91%, #ff3fa4 100%) no-repeat;
  background-size: 300% 300%; background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 100%);
  -webkit-mask: var(--fx-border) 0 0 / 100% 100% no-repeat; mask: var(--fx-border) 0 0 / 100% 100% no-repeat; }

/* the finish switch: six finishes, each lit in its own colours when chosen (user: each toggle distinct); with five or
   six on a phone they sit in two rows of three */
@media (max-width: 760px) {
  .fin-sw { flex-wrap: wrap; justify-content: center; max-width: min(100%, 360px); border-radius: 18px; }
  .fin-b { padding: 7px 11px; }
}

/* ===== v0.39.0 (user, 2026-11-19): PHONES ONLY (desktop unchanged) ===== */
@media (max-width: 760px) {
  /* the home hero's three buttons stacked, PLAY NOW at the top */
  .cpage-home .hero-btns { flex-direction: column; align-items: center; flex-wrap: nowrap; }
  .cpage-home .hero-btns > .md-btn { width: min(100%, 280px); justify-content: center; text-align: center; }
  .cpage-home .hero-btns > .md-btn-cta { order: -1; }
  /* the small hero loop 20% larger (still centred; the hero clips what spills past its sides) */
  .hero-loop-mini { left: -10%; right: -10%; }
  /* the faction whose line is showing in the automatic round is lit, as on hover */
  .hero-fac.cur img { filter: drop-shadow(0 0 6px var(--fac)) brightness(1.15); }
  .hero-fac-unk.cur::before { opacity: 0.55; }
  /* the strip above the header (the status bar beside the notch on iPhones, env(safe-area-inset-top)) belongs to the
     header: its background is drawn there instead of the page's plain strip, so the header's embers and the PLAY NOW
     glow can rise into it. Phones without that strip are unchanged. */
  body::before { display: none; }
  .topbar::before { display: block; content: ""; position: absolute; left: 0; right: 0; top: auto; bottom: 100%; height: env(safe-area-inset-top, 0px);
    z-index: -1; pointer-events: none; background: rgb(5 5 6 / 0.97); opacity: 1; filter: none; -webkit-mask: none; mask: none; animation: none; }
  .hdr-embers { inset: auto 0 0 0; top: calc(-1 * env(safe-area-inset-top, 0px)); height: calc(100% + env(safe-area-inset-top, 0px)); }
  /* SIGN IN: its icon and the words SIGN IN crossfade every 15 seconds (signed in, the picture stays) */
  .topbar .topbar-r > .acct-menu .acct-b:not(.in) { position: relative; }
  .topbar .topbar-r > .acct-menu .acct-b:not(.in) .acct-t { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 2px;
    font-size: 0.55rem; line-height: 1.05; letter-spacing: 0.08em; text-align: center; white-space: normal; word-spacing: 100vw; opacity: 0;
    animation: acctWord 30s ease-in-out infinite; }
  .topbar .topbar-r > .acct-menu .acct-b:not(.in) .acct-i { animation: acctIcon 30s ease-in-out infinite; }
}
/* ===== v0.40.0 (user, 2026-11-19): 3D card finishes in motion, CHROMA and POLARITY, the finish switch ===== */
/* the rock comes from Interactive3DCard.js (--rky, --rkx), so the finish light moves with it; replaces the CSS rock */
.c3d-rock.on { animation: none; transform: rotateY(var(--rky, 0deg)) rotateX(var(--rkx, 0deg)); }
/* held or pointed at, the diagonal light and the holofoil's own shimmer keep moving (were paused or faded out) */
.c3d:hover .c3d-sheen::before, .c3d-held .c3d-sheen::before { animation-play-state: running; }
.c3d-held .c3d-foil::after { opacity: 0.3; }
/* CHROMA: the light and the scratches centre on the top of the Battle Map arch (46.6% down, was the middle); the
   scratches about a quarter fainter */
.c3d-fx-chroma .fx-rad { opacity: 0.1; }
.c3d-fx-chroma .fx-rad-glint { opacity: calc(0.27 + var(--on) * 0.17 + var(--ta, 0) * 0.12);
  -webkit-mask-image: var(--fx-rad), conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 46.6%, rgb(0 0 0 / 0.15) 0deg, #000 30deg, rgb(0 0 0 / 0.15) 70deg, rgb(0 0 0 / 0.15) 180deg, #000 210deg, rgb(0 0 0 / 0.15) 250deg, rgb(0 0 0 / 0.15) 360deg);
          mask-image: var(--fx-rad), conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 46.6%, rgb(0 0 0 / 0.15) 0deg, #000 30deg, rgb(0 0 0 / 0.15) 70deg, rgb(0 0 0 / 0.15) 180deg, #000 210deg, rgb(0 0 0 / 0.15) 250deg, rgb(0 0 0 / 0.15) 360deg); }
.c3d-fx-chroma .fx-rad-light {
  background: conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 46.6%,
    rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / 0.32) 18deg, rgb(255 255 255 / 0.5) 30deg, rgb(255 255 255 / 0.32) 42deg, rgb(255 255 255 / 0) 70deg,
    rgb(255 255 255 / 0) 180deg, rgb(255 255 255 / 0.32) 198deg, rgb(255 255 255 / 0.5) 210deg, rgb(255 255 255 / 0.32) 222deg, rgb(255 255 255 / 0) 250deg, rgb(255 255 255 / 0) 360deg),
    radial-gradient(ellipse 30% 22% at 50% 46.6%, rgb(255 250 240 / 0.24), transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 46.6%, #000 0%, rgb(0 0 0 / 0.7) 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 80% at 50% 46.6%, #000 0%, rgb(0 0 0 / 0.7) 45%, transparent 100%); }

/* the finish switch: with four or more finishes the buttons sit in two centred rows inside the frame (they ran out of
   it); each finish's chosen look follows its finish */
.fin-sw[data-n="4"], .fin-sw[data-n="5"], .fin-sw[data-n="6"] { display: flex; flex-wrap: wrap; justify-content: center; box-sizing: border-box;
  width: min(100%, 400px); max-width: 100%; border-radius: 18px; padding: 4px; gap: 4px; }
.fin-sw[data-n="4"] > .fin-b { flex: 0 0 calc((100% - 4px) / 2); }
.fin-sw[data-n="5"] > .fin-b, .fin-sw[data-n="6"] > .fin-b { flex: 0 0 calc((100% - 8px) / 3); }
.fin-sw[data-n] > .fin-b { box-sizing: border-box; padding-left: 6px; padding-right: 6px; text-align: center; border-radius: 14px; }
.fin-b { isolation: isolate; }
.fin-b::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.fin-b[aria-pressed="true"]::before { opacity: 1; }
/* REVERSE: black, holographic letters and a thin holographic outline */
.fin-b.fin-reverse[aria-pressed="true"] { background: linear-gradient(100deg, #ff9ad5, #ffd36b 20%, #7cf0c8 40%, #8fb4ff 60%, #d79bff 80%, #ff9ad5) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; box-shadow: 0 0 12px rgb(200 170 255 / 0.25);
  animation: finHolo 6s linear infinite; }
.fin-b.fin-reverse::before { border: 1px solid transparent;
  background: linear-gradient(#060608, #060608) padding-box, linear-gradient(100deg, #ff9ad5, #ffd36b 25%, #7cf0c8 50%, #8fb4ff 75%, #d79bff) border-box; }
/* PRISMATIC: polished silver with an oil-slick rainbow drifting through its whites */
.fin-b.fin-prismatic[aria-pressed="true"] { background: none; color: #0b0b0e; box-shadow: 0 0 12px rgb(220 225 235 / 0.35); }
.fin-b.fin-prismatic::before { background:
    linear-gradient(115deg, transparent 20%, rgb(255 63 164 / 0.3) 32%, rgb(255 179 71 / 0.3) 40%, rgb(200 255 90 / 0.28) 48%, rgb(49 224 200 / 0.3) 56%, rgb(58 123 255 / 0.28) 64%, rgb(163 75 255 / 0.3) 72%, transparent 84%) 0 0 / 220% 100%,
    linear-gradient(180deg, #f6f8fb, #c3c9d2 48%, #8d939c 52%, #e4e8ee); }
.fin-b.fin-prismatic[aria-pressed="true"]::before { animation: finSlick 7s ease-in-out infinite alternate; }
/* CHROMA: machined metal, fine scratches running out from a light near the top, the faction's colour in the dark */
.fin-b.fin-chroma[aria-pressed="true"] { background: none; color: #0b0b0e; box-shadow: 0 0 12px color-mix(in srgb, var(--fac, #c8ccd4) 40%, transparent); }
.fin-b.fin-chroma::before { background:
    radial-gradient(ellipse 70% 120% at 50% 30%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.15) 55%, transparent 80%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgb(255 255 255 / 0.18) 0deg 1.5deg, rgb(0 0 0 / 0.08) 1.5deg 3deg),
    radial-gradient(ellipse 120% 160% at 50% 30%, #c9ced6 30%, color-mix(in srgb, var(--fac, #8a8f98) 60%, #23262c) 100%); }
/* POLARITY: glossy black chrome inside an oil-slick ring, white letters */
.fin-b.fin-polarity[aria-pressed="true"] { background: none; color: #f4f6fa; box-shadow: 0 0 12px rgb(140 120 255 / 0.35); text-shadow: 0 0 6px rgb(200 220 255 / 0.45); }
.fin-b.fin-polarity::before { border: 1.5px solid transparent;
  background: linear-gradient(170deg, #3a3e48 0%, #121318 45%, #050506 55%, #23262e 100%) padding-box,
    linear-gradient(100deg, #ff3fa4, #ffb347 17%, #c8ff5a 33%, #31e0c8 50%, #3a7bff 67%, #a34bff 83%, #ff3fa4) 0 0 / 200% 100% border-box; }
.fin-b.fin-polarity[aria-pressed="true"]::before { animation: finHolo 6s linear infinite; }
@keyframes finHolo { to { background-position: 200% 0, 200% 0; } }
@keyframes finSlick { from { background-position: 0% 0, 0 0; } to { background-position: 100% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .fin-b[aria-pressed="true"], .fin-b[aria-pressed="true"]::before { animation: none; } }
@media (max-width: 760px) { .fin-sw[data-n="4"], .fin-sw[data-n="5"], .fin-sw[data-n="6"] { width: min(100%, 360px); } }

@keyframes acctIcon { 0%, 48.75% { opacity: 1; } 51.25%, 97.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes acctWord { 0%, 48.75% { opacity: 0; } 51.25%, 97.5% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .topbar .topbar-r > .acct-menu .acct-b:not(.in) .acct-t, .topbar .topbar-r > .acct-menu .acct-b:not(.in) .acct-i { animation: none; }
}

/* ===== v0.41.0 (user, 2026-11-19): CHROMA, POLARITY and the finish switch ===== */
/* CHROMA: more of the faction's colour, strongest round the edges (the art's deep shade is stronger too, finishes.js);
   the machined scratches a little fainter again; no sparkles (no longer made) */
.fx-tint { mix-blend-mode: color; background: var(--c3d-accent, #8a8f98); opacity: calc(0.34 + var(--ta, 0) * 0.08);
  -webkit-mask-image: radial-gradient(ellipse 75% 68% at 50% 46.6%, transparent 55%, rgb(0 0 0 / 0.4) 80%, #000 100%);
          mask-image: radial-gradient(ellipse 75% 68% at 50% 46.6%, transparent 55%, rgb(0 0 0 / 0.4) 80%, #000 100%); }
.c3d-fx-chroma .fx-rad { opacity: 0.08; }
.c3d-fx-chroma .fx-rad-glint { opacity: calc(0.22 + var(--on) * 0.14 + var(--ta, 0) * 0.1); }
/* POLARITY: the negative reaches the black border with no feather, and the border's oil slick stays on the border; the
   slick a little stronger now that it is the only colour */
.c3d-fx-polarity .fx-edge-slick { opacity: calc(0.5 + var(--on) * 0.22 + var(--ta, 0) * 0.14); }

/* the finish switch: each label is its own span (.fin-t, CardDetailView.js), drawn above the button's box */
.fin-t { position: relative; }
/* REVERSE: the black box and holographic outline kept; the letters in the same moving rainbow as the outline (they
   showed black: the box was drawn over the button's rainbow fill) */
.fin-b.fin-reverse[aria-pressed="true"] { background: none; color: #f4f6fa; -webkit-text-fill-color: currentColor; animation: none; }
.fin-b.fin-reverse[aria-pressed="true"] .fin-t { background: linear-gradient(100deg, #ff9ad5, #ffd36b 20%, #7cf0c8 40%, #8fb4ff 60%, #d79bff 80%, #ff9ad5) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: finHolo 6s linear infinite; }
.fin-b.fin-reverse::before { background: linear-gradient(#060608, #060608) padding-box,
  linear-gradient(100deg, #ff9ad5, #ffd36b 20%, #7cf0c8 40%, #8fb4ff 60%, #d79bff 80%, #ff9ad5) 0 0 / 200% 100% border-box; }
.fin-b.fin-reverse[aria-pressed="true"]::before { animation: finHolo 6s linear infinite; }
/* PRISMATIC: now and then a light runs along the inside of the top edge, left to right
   v0.42.0 (user, 2026-11-19: more often and brighter): every 2.8 s instead of 5.5 s, a thicker white core with a wider glow */
.fin-b.fin-prismatic .fin-t::after { content: ""; position: absolute; top: 1px; left: 0; width: 42%; height: 2.5px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff 40%, #fff 52%, rgb(200 240 255) 60%, transparent);
  box-shadow: 0 0 6px #fff, 0 0 14px rgb(220 240 255 / 0.85), 0 1px 22px rgb(200 230 255 / 0.5); transform: translateX(-120%); }
.fin-b.fin-prismatic[aria-pressed="true"] .fin-t { position: static; }
.fin-b.fin-prismatic[aria-pressed="true"] .fin-t::after { animation: finTrace 2.8s ease-in-out 0.6s infinite; }
@keyframes finTrace { 0% { opacity: 0; transform: translateX(-120%); } 5% { opacity: 1; } 42% { opacity: 1; } 47%, 100% { opacity: 0; transform: translateX(260%); } }
/* CHROMA: more machined lines, strongest towards the edge, and a brighter glow in the faction's colour that pulses */
.fin-b.fin-chroma::before { background:
    radial-gradient(ellipse 70% 120% at 50% 30%, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.15) 55%, transparent 80%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgb(255 255 255 / 0.32) 0deg 1deg, rgb(0 0 0 / 0.16) 1deg 2deg),
    radial-gradient(ellipse 120% 160% at 50% 30%, #c9ced6 30%, color-mix(in srgb, var(--fac, #8a8f98) 60%, #23262c) 100%); }
.fin-b.fin-chroma .fin-t::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgb(255 255 255 / 0.55) 0deg 0.6deg, transparent 0.6deg 1.8deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 40%, transparent 45%, #000 100%); mask-image: radial-gradient(ellipse 60% 90% at 50% 40%, transparent 45%, #000 100%); }
.fin-b.fin-chroma[aria-pressed="true"] .fin-t { position: static; }
.fin-b.fin-chroma[aria-pressed="true"] .fin-t::before { opacity: 1; }
.fin-b.fin-chroma[aria-pressed="true"] { animation: finChromaGlow 2.4s ease-in-out infinite; }
@keyframes finChromaGlow {
  0%, 100% { box-shadow: 0 0 8px color-mix(in srgb, var(--fac, #c8ccd4) 45%, transparent), 0 0 0 1px rgb(255 255 255 / 0.25); }
  50% { box-shadow: 0 0 22px color-mix(in srgb, var(--fac, #c8ccd4) 85%, white 15%), 0 0 6px rgb(255 255 255 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.6); } }
/* POLARITY: the ring's colours turn faster, and a glow round the button turns through the same colours */
.fin-b.fin-polarity[aria-pressed="true"]::before { animation: finHolo 2.2s linear infinite; }
.fin-b.fin-polarity[aria-pressed="true"] { animation: finPolGlow 2.2s linear infinite; }
@keyframes finPolGlow {
  0%, 100% { box-shadow: 0 0 14px rgb(255 63 164 / 0.6); } 17% { box-shadow: 0 0 14px rgb(255 179 71 / 0.6); }
  33% { box-shadow: 0 0 14px rgb(200 255 90 / 0.55); } 50% { box-shadow: 0 0 14px rgb(49 224 200 / 0.6); }
  67% { box-shadow: 0 0 14px rgb(58 123 255 / 0.65); } 83% { box-shadow: 0 0 14px rgb(163 75 255 / 0.65); } }
@media (prefers-reduced-motion: reduce) { .fin-b[aria-pressed="true"] .fin-t, .fin-b[aria-pressed="true"] .fin-t::after { animation: none; } }

/* v0.41.0 (user, 2026-11-19): the MENU button is the three-line icon on every screen (was phones only); it turns into
   a cross while the menu is open, as on phones */
.menu-btn .menu-word, .menu-btn .caret { display: none; }
.menu-btn { justify-content: center; min-width: 38px; }
.menu-burger { display: grid; gap: 4px; width: 18px; }
.menu-burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] .menu-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-burger i { transition: none; } }

/* ===== v0.41.0 (user, 2026-11-19): PHONES ONLY (desktop unchanged) ===== */
@media (max-width: 760px) {
  /* the faction line: its name's glow fades out with the text before the next faction (a remnant of the glow stayed
     on screen: the glow is a filter, which phones keep in its own layer, so it now fades on its own as well) */
  .hero-fac-line { will-change: opacity, transform; }
  .hero-fac-line strong { transition: color 0.8s ease, filter 0.4s ease; }
  .hero-fac-line:not(.on) strong { filter: brightness(1.25) drop-shadow(0 0 0 transparent); }
  /* the Unknown icon while the automatic round shows it (a black box showed round the Hadria Combine's icon): no
     drop-shadow filter on its crossfading icons, and its colour glow drawn as a soft gradient with no blur filter */
  .hero-fac-unk.cur img, .hero-fac-unk .hero-unk { filter: none; }
  .hero-fac-unk::before { inset: 6%; filter: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--fac) 75%, transparent), color-mix(in srgb, var(--fac) 30%, transparent) 55%, color-mix(in srgb, var(--fac) 0%, transparent)); }
}
/* touch screens: holding a finger down no longer selects or highlights pictures, buttons and parts of the page, and no
   picture menu opens; text in reading pages, card text and typing fields can still be selected */
@media (hover: none) and (pointer: coarse) {
  body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  img, svg, video, canvas { -webkit-touch-callout: none; -webkit-user-drag: none; }
  input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
  .cp-body :is(p, li, td, th, blockquote, dd), .ab { -webkit-user-select: text; user-select: text; }
}

/* ===== v0.43.0 (user, 2026-11-19): the loading logo fades in at its place, never moving (replaces bootLogoIn and the glide) ===== */
.boot-logo { opacity: 0; animation: none; transition: opacity 0.9s ease, filter 1s ease; }
.boot-logo.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .boot-logo { transition: none; } }

/* ===== v0.43.0 (user, 2026-11-19): PRISMATIC, CHROMA, POLARITY =====
   PRISMATIC = samples/finish-prismatic-2.html A (the art in its own colours, rainbow holographic foil in the whites);
   POLARITY = its B (dark rainbow foil in the blacks), its foil and metal light a little more reflective. The masks
   (whites or blacks) are made with the recoloured art (finishes.js) and set on the .fx-mask layers. Until they are ready
   the plain art shows (no grey). */
.c3d-fx-prismatic:not(.fx-ready) > .fx-base, .c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: none; }
.c3d-fx-polarity > .fx-re { -webkit-mask: none; mask: none; }
.fx-spec.fx-soft { opacity: calc(0.3 + var(--on) * 0.2 + var(--ta, 0) * 0.14); }
.fx-mask { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.fx-pholo, .fx-pband { opacity: 0; transition: opacity 0.35s ease; background-repeat: no-repeat; }
.fx-pholo { background-image: linear-gradient(calc(128deg + var(--dx) * 40deg + var(--tl, 0) * 40deg), #ff5fae 0%, #ffc15a 6%, #d6ff6a 11%, #45f0d0 16%, #4f8dff 22%, #b05cff 28%, #ff5fae 34%, #ffc15a 40%, #d6ff6a 45%, #45f0d0 50%, #4f8dff 56%, #b05cff 62%, #ff5fae 68%, #ffc15a 74%, #d6ff6a 79%, #45f0d0 84%, #4f8dff 90%, #b05cff 95%, #ff5fae 100%);
  background-size: 300% 300%; background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 100%); }
.fx-pholo.fx-w { mix-blend-mode: multiply; }
.fx-ready > .fx-pholo.fx-w { opacity: 1; }
.fx-pholo.fx-b { mix-blend-mode: screen; filter: brightness(0.42) saturate(1.4); }
.fx-ready > .fx-pholo.fx-b { opacity: calc(0.5 + var(--on) * 0.25 + var(--ta, 0) * 0.2); }
.fx-pband { mix-blend-mode: color-dodge;
  background-image: linear-gradient(calc(118deg + var(--dx) * 60deg), transparent 30%, rgb(255 60 120 / 0.8) 38%, rgb(255 200 60 / 0.8) 43%, rgb(70 255 165 / 0.8) 48%, rgb(60 160 255 / 0.8) 53%, rgb(185 95 255 / 0.8) 58%, transparent 66%);
  background-size: 300% 300%; background-position: calc(50% + var(--dx) * 100%) calc(50% + var(--dy) * 80%); }
.fx-pband.fx-w { mix-blend-mode: multiply; filter: saturate(1.6); }
.fx-pband.fx-b { mix-blend-mode: screen; }
.fx-ready > .fx-pband { opacity: calc(0.25 + var(--on) * 0.55 + var(--ta, 0) * 0.35); }
/* POLARITY: slightly more reflective than the mockup (foil brighter, metal light and gloss stronger) */
.c3d-fx-polarity > .fx-pholo.fx-b { filter: brightness(0.52) saturate(1.45); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-b { opacity: calc(0.58 + var(--on) * 0.26 + var(--ta, 0) * 0.2); }
.c3d-fx-polarity.fx-ready > .fx-pband { opacity: calc(0.32 + var(--on) * 0.6 + var(--ta, 0) * 0.38); }
.c3d-fx-polarity > .fx-spec.fx-soft { opacity: calc(0.38 + var(--on) * 0.24 + var(--ta, 0) * 0.18); }
.c3d-fx-polarity > .fx-gloss.fx-soft { opacity: calc(0.19 + var(--on) * 0.12 + var(--ta, 0) * 0.08); }

/* CHROMA: the machined scratches only outside the art window (the border and the lower half, the Battle Map arch
   included); the art window's whites are silver (finishes.js) with a silver light moving over them, and the faction's
   colour laid over that silver */
:root { --fx-nowin: var(--fx-none); }
.c3d-fx-chroma > .fx-rad { -webkit-mask-image: var(--fx-rad), var(--fx-nowin); mask-image: var(--fx-rad), var(--fx-nowin);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-composite: source-in; mask-composite: intersect; }
.c3d-fx-chroma > .fx-rad-glint {
  -webkit-mask-image: var(--fx-rad), var(--fx-nowin), conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 46.6%, rgb(0 0 0 / 0.15) 0deg, #000 30deg, rgb(0 0 0 / 0.15) 70deg, rgb(0 0 0 / 0.15) 180deg, #000 210deg, rgb(0 0 0 / 0.15) 250deg, rgb(0 0 0 / 0.15) 360deg);
          mask-image: var(--fx-rad), var(--fx-nowin), conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 46.6%, rgb(0 0 0 / 0.15) 0deg, #000 30deg, rgb(0 0 0 / 0.15) 70deg, rgb(0 0 0 / 0.15) 180deg, #000 210deg, rgb(0 0 0 / 0.15) 250deg, rgb(0 0 0 / 0.15) 360deg);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-composite: source-in; mask-composite: intersect; }
.fx-csil, .fx-ctint { opacity: 0; transition: opacity 0.35s ease; }
.fx-csil { mix-blend-mode: color-dodge;
  background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 40%), rgb(170 180 196 / 0.45) calc(var(--px) - 14%), rgb(236 241 250 / 0.8) var(--px), rgb(170 180 196 / 0.45) calc(var(--px) + 14%), transparent calc(var(--px) + 40%)); }
.fx-ready > .fx-csil { opacity: calc(0.4 + var(--on) * 0.3 + var(--ta, 0) * 0.2); }
.fx-ctint { mix-blend-mode: color; background: var(--c3d-accent, #8a8f98); }
.fx-ready > .fx-ctint { opacity: 0.32; }

/* the POLARITY button: the colour loop runs across the black inside (was round its border); the glow kept */
.fin-b.fin-polarity::before { border: 1.5px solid rgb(255 255 255 / 0.16);
  background: linear-gradient(170deg, rgb(0 0 0 / 0.42) 0%, rgb(0 0 0 / 0.62) 50%, rgb(0 0 0 / 0.42) 100%),
    linear-gradient(100deg, #ff3fa4, #ffb347 17%, #c8ff5a 33%, #31e0c8 50%, #3a7bff 67%, #a34bff 83%, #ff3fa4) 0 0 / 200% 100%; }
.fin-b.fin-polarity[aria-pressed="true"] { text-shadow: 0 0 4px rgb(0 0 0 / 0.9), 0 0 8px rgb(200 220 255 / 0.5); }

/* ===== v0.43.0 (user, 2026-11-19): the side list in subsections (LEARN, EXPLORE, RESOURCES) =====
   The page's own subsection is open; the others show their title only and slide open while pointed at (closing with
   the same slide when the pointer leaves), or when their title is clicked. Phones: the titles in a row of chips, with
   the open subsection's links in one scrolling row under them. */
.cp-side2 { gap: 2px; }
.cp-side2 .cp-sg { border-top: 1px solid var(--line); }
.cp-side2 .cp-sg:first-of-type { border-top: 0; }
.cp-sg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 14px 8px; margin-left: -1px; border: 0; border-left: 2px solid transparent; background: none; cursor: pointer;
  color: var(--muted); font: 600 0.7rem/1.2 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; text-align: left; transition: color 0.3s ease, text-shadow 0.3s ease; }
.cp-sg-h:hover, .cp-sg-h:focus-visible, .cp-sg.open > .cp-sg-h, .cp-sg.cur > .cp-sg-h { color: var(--ember-2); }
.cp-sg-h:hover { text-shadow: 0 0 10px rgb(255 154 58 / 0.45); }
.cp-sg-c { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.7; transition: transform 0.35s ease; }
.cp-sg.cur > .cp-sg-h .cp-sg-c, .cp-sg.open > .cp-sg-h .cp-sg-c { transform: translateY(1px) rotate(225deg); }
.cp-sg-b { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.38s cubic-bezier(.3,.7,.3,1), opacity 0.3s ease; }
.cp-sg-in { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-bottom: 0; transition: padding 0.38s ease; }
.cp-sg.cur > .cp-sg-b, .cp-sg.open > .cp-sg-b { grid-template-rows: 1fr; opacity: 1; }
.cp-sg.cur > .cp-sg-b .cp-sg-in, .cp-sg.open > .cp-sg-b .cp-sg-in { padding-bottom: 8px; }
@media (hover: hover) and (min-width: 901px) {
  .cp-sg:hover > .cp-sg-b, .cp-sg:focus-within > .cp-sg-b { grid-template-rows: 1fr; opacity: 1; }
  .cp-sg:hover > .cp-sg-b .cp-sg-in, .cp-sg:focus-within > .cp-sg-b .cp-sg-in { padding-bottom: 8px; }
  .cp-sg:hover > .cp-sg-h .cp-sg-c { transform: translateY(1px) rotate(225deg); }
}
.cp-side2 .cp-sg-in > .cp-side-a { padding: 7px 14px; }
.cp-side2 .cp-sg-in > .cp-side-kid { padding-left: 26px; font-size: 0.88rem; }
.cp-side-a .ico { width: 11px; height: 11px; margin-left: 6px; opacity: 0.6; vertical-align: -1px; }
.cp-side-soon { color: var(--muted); opacity: 0.5; cursor: default; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-side-soon small { font: 500 0.56rem/1 var(--mono); letter-spacing: 0.16em; }
.cp-side-soon:hover { border-left-color: transparent; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cp-sg-b, .cp-sg-in, .cp-sg-c { transition: none; } }
@media (max-width: 900px) {
  .cp-side.cp-side2 { flex-direction: row; flex-wrap: wrap; gap: 6px; overflow: visible; border-bottom: 0; }
  .cp-side2 .cp-sg { display: contents; }
  .cp-side2 .cp-sg-h { width: auto; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; letter-spacing: 0.14em; }
  .cp-side2 .cp-sg-c { display: none; }
  .cp-side2 .cp-sg.open > .cp-sg-h { border-color: var(--ember); background: var(--ember-soft); }
  .cp-side2 .cp-sg-b { order: 99; flex: 0 0 100%; display: none; opacity: 1; }
  .cp-side2 .cp-sg.open > .cp-sg-b { display: block; }
  .cp-side2 .cp-sg-in { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0 !important; border-bottom: 1px solid var(--line); }
  .cp-side2 .cp-sg-in > .cp-side-a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 8px 12px; }
  .cp-side2 .cp-sg-in > .cp-side-a.on { border-bottom-color: var(--ember); background: none; }
}
/* the Factions Overview and Unknown Factions keep the side list; their tiles shrink so three fit in a row */
.cpage[data-path="factions"].cp-has-side, .cpage[data-path="factions/unknown"].cp-has-side { grid-template-columns: 220px minmax(0, 1100px); }
@media (max-width: 900px) { .cpage[data-path="factions"].cp-has-side, .cpage[data-path="factions/unknown"].cp-has-side { grid-template-columns: minmax(0, 1fr); } }
.cp-has-side .ftiles:not(.ftiles-unknown) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-has-side .ftiles .ftile { padding: 14px; gap: 10px; min-height: 0; }
.cp-has-side .ftiles .ftile-ico { width: clamp(40px, 3.6vw, 60px); height: clamp(40px, 3.6vw, 60px); }
.cp-has-side .ftiles .ftile-name { font-size: clamp(0.92rem, 0.55rem + 0.55vw, 1.2rem); overflow-wrap: anywhere; }
.cp-has-side .ftiles .ftile-q { font-size: 0.8rem; }
.cp-has-side .ftiles-unknown { grid-template-columns: repeat(2, calc((100% - 24px) / 3)); justify-content: center; gap: 12px; }
@media (max-width: 640px) { .cp-has-side .ftiles:not(.ftiles-unknown), .cp-has-side .ftiles-unknown { grid-template-columns: minmax(0, 1fr); } }

/* ===== v0.43.0 (user, 2026-11-19): icon tiles: Turn Structure's Action Phase (::: actions, ::: free) and Victory's
   three ways to win (::: wins). The symbol stands beside the words in a round, softly glowing well; the tile lights
   gently on hover. ===== */
.md-actions, .md-free { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 14px 0 6px; }
.md-free { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.md-act { flex-direction: row; align-items: flex-start; gap: 16px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgb(255 122 26 / 0.06), rgb(11 11 14 / 0.9) 55%); border-color: var(--line-2);
  transition: border-color 0.35s ease, box-shadow 0.45s ease, transform 0.35s ease; }
.md-act:hover { border-color: rgb(255 154 58 / 0.55); box-shadow: 0 10px 28px rgb(0 0 0 / 0.45), 0 0 22px rgb(255 122 26 / 0.14); transform: translateY(-2px); }
.md-act-ico { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgb(255 170 90 / 0.2), rgb(255 122 26 / 0.06) 55%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgb(255 190 120 / 0.18), 0 0 18px rgb(255 122 26 / 0.12); transition: box-shadow 0.45s ease, background 0.45s ease; }
.md-act-ico > .md-ico { width: 40px; height: 40px; margin: 0; vertical-align: 0; filter: drop-shadow(0 0 6px rgb(255 170 90 / 0.35)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.6)); transition: filter 0.45s ease, transform 0.45s ease; }
.md-act-ico > .md-ico-glyph { color: #f6eee2; display: inline-grid; }
.md-act-ico > .md-ico-glyph svg { width: 100%; height: 100%; }
.md-act:hover .md-act-ico { box-shadow: inset 0 0 0 1px rgb(255 190 120 / 0.4), 0 0 26px rgb(255 122 26 / 0.3); background: radial-gradient(circle at 50% 45%, rgb(255 180 100 / 0.3), rgb(255 122 26 / 0.1) 55%, transparent 72%); }
.md-act:hover .md-act-ico > .md-ico { filter: drop-shadow(0 0 10px rgb(255 190 110 / 0.6)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.6)); transform: scale(1.06); }
.md-act-t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.md-act-t > p { margin: 0; }
.md-act .md-tile-h { font-size: 0.98rem; }
.md-free .md-act { padding: 14px; gap: 12px; align-items: center; background: rgb(11 11 14 / 0.7); }
.md-free .md-act-ico { width: 46px; height: 46px; }
.md-free .md-act-ico > .md-ico { width: 30px; height: 30px; }
.md-free .md-tile-h { font-size: 0.84rem; color: var(--ink); }
.md-free .md-act-t > p { font-size: 0.88rem; color: var(--muted); }
/* the light that now and then sweeps across a symbol (Victory) */
.md-act-sweep { position: absolute; inset: -20%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 40%, rgb(255 240 215 / 0.55) 50%, transparent 60%); transform: translateX(-80%); }
.md-wins .md-act-sweep { animation: actSweep 9s ease-in-out infinite; }
.md-wins .md-act:nth-child(2) .md-act-sweep { animation-delay: 3s; }
.md-wins .md-act:nth-child(3) .md-act-sweep { animation-delay: 6s; }
@keyframes actSweep { 0%, 82% { opacity: 0; transform: translateX(-80%); } 85% { opacity: 1; } 96% { opacity: 0.9; } 100% { opacity: 0; transform: translateX(80%); } }
@media (prefers-reduced-motion: reduce) { .md-act-sweep { animation: none !important; } .md-act, .md-act-ico > .md-ico { transition: none; } }

/* Victory: the three ways to win, each with a large symbol in its own colour's glow */
.md-wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 8px; }
.md-wins .md-act { flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 22px; gap: 14px; }
.md-wins .md-act-t { align-items: center; }
.md-wins .md-act-ico { width: 112px; height: 112px; }
.md-wins .md-act-ico > .md-ico { width: 78px; height: 78px; }
.md-wins .md-tile-h { font-size: 1.12rem; letter-spacing: 0.12em; }
.md-wins .md-act:nth-child(1) { --win: 230 40 60; }
.md-wins .md-act:nth-child(2) { --win: 240 196 90; }
.md-wins .md-act:nth-child(3) { --win: 190 200 215; }
.md-wins .md-act { background: linear-gradient(180deg, rgb(var(--win) / 0.08), rgb(11 11 14 / 0.92) 60%); border-top: 2px solid rgb(var(--win) / 0.6); }
.md-wins .md-act-ico { background: radial-gradient(circle at 50% 45%, rgb(var(--win) / 0.26), rgb(var(--win) / 0.07) 55%, transparent 72%); box-shadow: inset 0 0 0 1px rgb(var(--win) / 0.25), 0 0 30px rgb(var(--win) / 0.16); }
.md-wins .md-act-ico > .md-ico { filter: drop-shadow(0 0 10px rgb(var(--win) / 0.5)) drop-shadow(0 2px 5px rgb(0 0 0 / 0.6)); }
.md-wins .md-act:hover { border-color: rgb(var(--win) / 0.6); box-shadow: 0 12px 30px rgb(0 0 0 / 0.45), 0 0 26px rgb(var(--win) / 0.18); }
.md-wins .md-act:hover .md-act-ico { box-shadow: inset 0 0 0 1px rgb(var(--win) / 0.45), 0 0 40px rgb(var(--win) / 0.32); }
.md-wins .md-act:hover .md-act-ico > .md-ico { filter: drop-shadow(0 0 14px rgb(var(--win) / 0.75)) drop-shadow(0 2px 5px rgb(0 0 0 / 0.6)); }
@media (max-width: 760px) { .md-wins { grid-template-columns: minmax(0, 1fr); } .md-wins .md-act { flex-direction: row; text-align: left; align-items: center; } .md-wins .md-act-t { align-items: flex-start; } .md-wins .md-act-ico { width: 84px; height: 84px; } .md-wins .md-act-ico > .md-ico { width: 58px; height: 58px; } }

/* Victory: the game length as three cards in place of the wide table */
.md-lengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
.md-lengths .md-tile { align-items: center; text-align: center; gap: 4px; padding: 16px 12px; background: linear-gradient(180deg, rgb(255 122 26 / 0.05), rgb(11 11 14 / 0.9)); }
.md-lengths .md-tile-h { font-size: 0.8rem; letter-spacing: 0.22em; color: var(--muted); }
.md-lengths .md-tile p { margin: 0; }
.md-lengths .md-tile p:first-of-type { font: 700 2.4rem/1.1 var(--display); color: var(--gold-2); text-shadow: 0 0 18px rgb(255 160 70 / 0.35); }
.md-lengths .md-tile p:last-of-type { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
@media (max-width: 560px) { .md-lengths { gap: 8px; } .md-lengths .md-tile p:first-of-type { font-size: 1.8rem; } }

/* ===== v0.43.0 (user, 2026-11-19): "::: alert Title" a prominent notice (the Rulebook page) ===== */
.md-box.md-alert { position: relative; overflow: hidden; margin: 0 0 22px; padding: 16px 20px 16px 64px; border: 1px solid rgb(255 154 58 / 0.55); border-left: 4px solid var(--ember); border-radius: 10px;
  background: linear-gradient(90deg, rgb(255 122 26 / 0.16), rgb(255 122 26 / 0.04) 70%); box-shadow: 0 0 24px rgb(255 122 26 / 0.12); }
.md-box.md-alert::before { content: "!"; position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ember-2); color: var(--ember-2); font: 700 1.05rem/1 var(--display); box-shadow: 0 0 12px rgb(255 154 58 / 0.45); animation: alertPulse 3.2s ease-in-out infinite; }
.md-box.md-alert .md-box-h { margin: 0 0 4px; font: 700 0.82rem/1.3 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember-2); }
.md-box.md-alert p { margin: 0; color: var(--ink); }
@keyframes alertPulse { 0%, 100% { box-shadow: 0 0 8px rgb(255 154 58 / 0.3); } 50% { box-shadow: 0 0 18px rgb(255 154 58 / 0.7); } }
@media (prefers-reduced-motion: reduce) { .md-box.md-alert::before { animation: none; } }
@media (max-width: 560px) { .md-box.md-alert { padding: 14px 16px 14px 56px; } .md-box.md-alert::before { left: 14px; } }

/* ===== v0.43.0 (user, 2026-11-19): Gameplay Variants: drawn Battlefields (js/components/VariantDiagrams.js) ===== */
.vd { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgb(255 122 26 / 0.07), transparent 70%), #0a0a0d; }
.vd svg { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.vd svg rect { transition: fill-opacity 0.3s ease; }
.vd figcaption { font: 500 0.72rem/1.45 var(--mono); letter-spacing: 0.04em; color: var(--muted); text-align: center; }
.vd-ffa svg { max-width: 360px; }
.vd-clash { margin: 16px 0 6px; }
.vd-clash svg { max-width: 560px; }
.md-layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 8px; }
.md-layouts .md-tile { gap: 10px; background: linear-gradient(180deg, rgb(255 122 26 / 0.05), rgb(11 11 14 / 0.92) 50%); transition: border-color 0.35s ease, box-shadow 0.4s ease; }
.md-layouts .md-tile:hover { border-color: rgb(255 154 58 / 0.45); box-shadow: 0 0 22px rgb(255 122 26 / 0.12); }
.md-layouts .vd { padding: 10px 8px 8px; }
@media (max-width: 760px) { .md-layouts { grid-template-columns: minmax(0, 1fr); } }
.cpage[data-path="resources/variants"] .md-split .vd { align-self: center; width: 100%; }
.cpage[data-path="resources/variants"] .md-lengths { max-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpage[data-path="resources/variants"] .md-free { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

/* ===== v0.44.0 (user, 2026-11-19): 3D card finishes =====
   The flash on a change of finish: a hidden finish is only see-through (no `visibility: hidden`, which threw its layers
   away and made new ones at the change); while hidden its light values are held still, so it is not redrawn each frame.
   The chosen finish is drawn see-through for two frames (.c3d-fin-pre), then fades in (Interactive3DCard.js). */
.c3d-fx.c3d-fin-off { visibility: visible; opacity: 0 !important; --dx: 0; --dy: 0; --px: 50%; --py: 50%; --on: 0; --ta: 0; --tl: 0; }
.c3d-fx.c3d-fin-pre { opacity: 0 !important; transition: none; }
.c3d-fx { will-change: opacity; }
/* POLARITY's hard edges in the upper left (and every finish's): the rainbow layers are three times the card's size and
   were pushed past their own edge when the light reached a corner, leaving a bare strip with a hard line. Their place
   is now held inside the layer's own size. */
.c3d-foil { background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 80%), 100%); }
.fx-spk.fx-mid { background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 100%), 100%); }
.fx-spk.fx-near { background-position: clamp(0%, calc(50% - var(--dx) * 100%), 100%) clamp(0%, calc(50% - var(--dy) * 100%), 100%); }
.fx-revwash, .fx-foil.fx-a, .fx-edge-slick, .fx-pholo { background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 100%), 100%); }
.fx-foil.fx-b { background-position: clamp(0%, calc(50% - var(--dx) * 100%), 100%) clamp(0%, calc(50% - var(--dy) * 100%), 100%); }
.fx-slick { background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 100%), 100%), 0 0, 0 0; }
.fx-pband { background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 80%), 100%); }
.fx-mask2 { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* CHROMA: silver whites over the whole card, lacquered blacks, a little more reflective, the lights kept wide */
.c3d-fx-chroma > .fx-spec.fx-faint { opacity: calc(0.2 + var(--on) * 0.14 + var(--ta, 0) * 0.1); }
.c3d-fx-chroma > .fx-gloss.fx-faint { opacity: calc(0.11 + var(--on) * 0.08 + var(--ta, 0) * 0.05); }
.c3d-fx-chroma > .fx-csil { background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), rgb(120 130 146 / 0.08) calc(var(--px) - 60%), rgb(170 180 196 / 0.4) calc(var(--px) - 20%), rgb(236 242 252 / 0.78) var(--px), rgb(170 180 196 / 0.4) calc(var(--px) + 20%), rgb(120 130 146 / 0.08) calc(var(--px) + 60%)); }
.c3d-fx-chroma.fx-ready > .fx-csil { opacity: calc(0.4 + var(--on) * 0.3 + var(--ta, 0) * 0.2); }
/* the silver's metal banding (multiplied over the whites, a faint hint of the faction's colour in its darker bands);
   it drifts a little with the light so the silver never looks flat */
.c3d-fx-chroma > .fx-ctint, .c3d-fx-polarity > .fx-ctint { mix-blend-mode: multiply; background: linear-gradient(calc(168deg + var(--dx) * 14deg), #f4f6fa 0%, color-mix(in srgb, #aab1bd 88%, var(--c3d-accent, #8a8f98)) 30%, #eef1f6 48%, #f8f9fc 54%, color-mix(in srgb, #9ea5b2 88%, var(--c3d-accent, #8a8f98)) 76%, #e2e6ec 100%) no-repeat;
  background-size: 100% 160%; background-position: 0 clamp(0%, calc(50% + var(--dy) * 60%), 100%); }
.c3d-fx-chroma.fx-ready > .fx-ctint, .c3d-fx-polarity.fx-ready > .fx-ctint { opacity: 0.85; }
.fx-lacq, .fx-lacq-gl { opacity: 0; transition: opacity 0.35s ease; mix-blend-mode: screen; }
/* lacquer: one wide, clear reflection crossing the blacks, with a deep glow of the faction's colour inside them */
.fx-lacq { background:
    linear-gradient(calc(122deg + var(--dx) * 34deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 34%), rgb(255 255 255 / 0.06) calc(var(--px) - 18%), rgb(255 255 255 / 0.5) calc(var(--px) - 4%), rgb(255 255 255 / 0.62) var(--px), rgb(255 255 255 / 0.5) calc(var(--px) + 4%), rgb(255 255 255 / 0.06) calc(var(--px) + 18%), transparent calc(var(--px) + 34%)),
    radial-gradient(ellipse 60% 45% at calc(100% - var(--px)) calc(100% - var(--py)), color-mix(in srgb, var(--c3d-accent, #8a8f98) 22%, transparent), transparent 70%); }
.fx-ready > .fx-lacq { opacity: calc(0.3 + var(--on) * 0.3 + var(--ta, 0) * 0.24); }
/* and a soft window-like gloss near the top, as on a lacquered surface */
.fx-lacq-gl { background: radial-gradient(ellipse 60% 22% at var(--px) calc(12% + var(--py) * 0.4), rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.08) 55%, transparent 80%); }
.fx-ready > .fx-lacq-gl { opacity: calc(0.16 + var(--on) * 0.2 + var(--ta, 0) * 0.14); }

/* POLARITY: the whites silver under the rainbow (the art's whites are silver, finishes.js), with the silver light */
.c3d-fx-polarity.fx-ready > .fx-csil { opacity: calc(0.3 + var(--on) * 0.26 + var(--ta, 0) * 0.18); }

/* the PRISMATIC button: a stronger rainbow through its silver, moving all the time, and the light along its top edge
   more often, longer and brighter, with a fainter one along the bottom edge */
.fin-b.fin-prismatic::before { background:
    linear-gradient(115deg, rgb(255 63 164 / 0.55) 0%, rgb(255 179 71 / 0.55) 14%, rgb(200 255 90 / 0.5) 28%, rgb(49 224 200 / 0.55) 42%, rgb(58 123 255 / 0.55) 56%, rgb(163 75 255 / 0.55) 70%, rgb(255 63 164 / 0.55) 84%, rgb(255 179 71 / 0.55) 100%) 0 0 / 200% 100%,
    linear-gradient(180deg, #f6f8fb, #c3c9d2 48%, #8d939c 52%, #e4e8ee); }
.fin-b.fin-prismatic[aria-pressed="true"]::before { animation: finHolo 4s linear infinite; }
.fin-b.fin-prismatic[aria-pressed="true"] { box-shadow: 0 0 14px rgb(200 170 255 / 0.45), 0 0 4px rgb(120 220 255 / 0.5); }
.fin-b.fin-prismatic .fin-t::after { width: 55%; height: 3px; top: 0; box-shadow: 0 0 8px #fff, 0 0 18px rgb(220 240 255 / 0.95), 0 2px 26px rgb(200 230 255 / 0.6); }
.fin-b.fin-prismatic[aria-pressed="true"] .fin-t::after { animation: finTrace 1.7s ease-in-out 0.3s infinite; }
.fin-b.fin-prismatic .fin-t::before { content: ""; position: absolute; bottom: 0; right: 0; width: 40%; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(270deg, transparent, #fff 45%, transparent); box-shadow: 0 0 8px rgb(220 240 255 / 0.8); }
.fin-b.fin-prismatic[aria-pressed="true"] .fin-t::before { animation: finTraceBack 1.7s ease-in-out 1.15s infinite; }
@keyframes finTraceBack { 0% { opacity: 0; transform: translateX(120%); } 5% { opacity: 0.8; } 42% { opacity: 0.8; } 47%, 100% { opacity: 0; transform: translateX(-260%); } }
@media (prefers-reduced-motion: reduce) { .fin-b.fin-prismatic[aria-pressed="true"] .fin-t::before { animation: none; } }

/* ===== v0.44.0 (user, 2026-11-19): Learn and Resources pages =====
   Icon tiles everywhere they are used (Turn Structure's phases, Gameplay Overview's systems, the Arena's zones, the
   Variants' steps and playstyles, the Rulebook and Press Kit pages); the symbols sit in hexagons (were circles). */
.md-act-ico { border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.md-act-ico::before, .md-act-ico::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); transition: background 0.45s ease, filter 0.45s ease; }
.md-act-ico::before { background: linear-gradient(160deg, rgb(255 200 140 / 0.55), rgb(255 122 26 / 0.25) 45%, rgb(255 190 120 / 0.45)); }
.md-act-ico::after { inset: 1.5px; background: radial-gradient(circle at 50% 42%, rgb(60 34 18), #0d0b0c 70%); }
.md-act-ico > * { position: relative; z-index: 1; }
.md-act-ico > .md-act-sweep { position: absolute; z-index: 2; inset: 0; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.md-act:hover .md-act-ico { box-shadow: none; background: none; }
.md-act:hover .md-act-ico::before { background: linear-gradient(160deg, rgb(255 220 170 / 0.9), rgb(255 140 40 / 0.55) 45%, rgb(255 200 130 / 0.8)); }
.md-act:hover .md-act-ico::after { background: radial-gradient(circle at 50% 42%, rgb(96 50 20), #120c0b 72%); }
.md-act-ico { width: 70px; height: 78px; }
.md-act-ico > .md-ico { width: 44px; height: 44px; }
.md-free .md-act-ico { width: 52px; height: 58px; }
.md-free .md-act-ico > .md-ico { width: 32px; height: 32px; }
/* Turn Structure's Action Phase: slightly larger symbols */
.cpage[data-path="gameplay/turn-structure"] .md-actions .md-act-ico { width: 82px; height: 92px; }
.cpage[data-path="gameplay/turn-structure"] .md-actions .md-act-ico > .md-ico { width: 54px; height: 54px; }
/* the Victory page keeps its round glows */
.md-wins .md-act-ico::before, .md-wins .md-act-ico::after { display: none; }
.md-wins .md-act-ico { border-radius: 50%; overflow: hidden; width: 112px; height: 112px;
  background: radial-gradient(circle at 50% 45%, rgb(var(--win) / 0.26), rgb(var(--win) / 0.07) 55%, transparent 72%); box-shadow: inset 0 0 0 1px rgb(var(--win) / 0.25), 0 0 30px rgb(var(--win) / 0.16); }
.md-wins .md-act-ico > .md-ico { width: 78px; height: 78px; }
@media (max-width: 760px) { .md-wins .md-act-ico { width: 84px; height: 84px; } .md-wins .md-act-ico > .md-ico { width: 58px; height: 58px; } }

/* steps with a symbol (Start and End Phases, Creature Clash, Single Player): the number, then the symbol tile */
.md-steps-ico > li { grid-template-columns: 44px 1fr; align-items: center; }
.md-steps-ico > li::before { margin-top: 0; }
.md-steps-ico .md-act { padding: 12px 16px; align-items: center; gap: 14px; }
.md-steps-ico .md-act-ico { width: 50px; height: 56px; }
.md-steps-ico .md-act-ico > .md-ico { width: 30px; height: 30px; }
.md-steps-ico .md-act-t > p { margin: 0; color: var(--muted); }

/* "Your turn only" */
.md-badge-p { margin: 2px 0 0 !important; }
.md-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border: 1px solid rgb(255 154 58 / 0.5); border-radius: 999px;
  background: rgb(255 122 26 / 0.1); color: var(--ember-2); font: 700 0.62rem/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.md-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-2); box-shadow: 0 0 6px var(--ember); }

/* the Action symbol: polished, glowing, a light crossing each in turn */
.md-pips { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 18px 0 8px; }
.md-pip { position: relative; width: 72px; height: 72px; display: grid; place-items: center; animation: pipGlow 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.4s); }
.md-pip img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgb(255 160 70 / 0.7)) drop-shadow(0 0 24px rgb(255 122 26 / 0.4)); }
.md-pip-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.95) 48%, rgb(255 220 170 / 0.7) 52%, transparent 65%) no-repeat,
    linear-gradient(180deg, rgb(255 255 255 / 0.35), transparent 45%, rgb(0 0 0 / 0.2));
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; animation: pipShine 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.4s); }
.md-pips-t { flex-basis: 100%; text-align: center; font: 700 0.7rem/1 var(--mono); letter-spacing: 0.3em; color: var(--ember-2); text-shadow: 0 0 10px rgb(255 122 26 / 0.5); }
@keyframes pipShine { 0%, 55% { background-position: 130% 0, 0 0; } 85%, 100% { background-position: -30% 0, 0 0; } }
@keyframes pipGlow { 0%, 100% { filter: brightness(1); transform: translateY(0); } 50% { filter: brightness(1.18); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .md-pip, .md-pip-shine { animation: none; } }

/* Gameplay Overview: the systems as linked icon tiles; the Mechanics pages still being written as quieter tiles */
.md-systems, .md-zones, .md-soon, .md-dice { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; margin: 14px 0 10px; }
.md-tile-link { cursor: pointer; }
.md-systems .md-act, .md-zones .md-act, .md-dice .md-act { align-items: center; }
.md-systems .md-act-t > p, .md-zones .md-act-t > p, .md-soon .md-act-t > p, .md-dice .md-act-t > p { color: var(--muted); font-size: 0.92rem; }
.md-soon .md-act { padding: 14px; align-items: center; background: rgb(11 11 14 / 0.6); border-style: dashed; }
.md-soon .md-act:hover { transform: none; }
.md-soon .md-act-ico { width: 48px; height: 54px; opacity: 0.75; }
.md-soon .md-act-ico > .md-ico { width: 28px; height: 28px; }
.md-soon .md-tile-h { font-size: 0.86rem; color: var(--ink); }
.md-soon .md-tile-h::after { content: "SOON"; margin-left: 8px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; font: 700 0.56rem/1 var(--mono); letter-spacing: 0.16em; color: var(--muted); vertical-align: 2px; }
/* the Arena's Initial, Neutral and Restricted tiles in the Battle Map colours */
.cpage[data-path="gameplay/the-arena"] .md-free .md-act:nth-child(1) .md-ico-glyph { color: var(--pos-i); }
.cpage[data-path="gameplay/the-arena"] .md-free .md-act:nth-child(2) .md-ico-glyph { color: var(--pos-n); }
.cpage[data-path="gameplay/the-arena"] .md-free .md-act:nth-child(3) .md-ico-glyph { color: var(--pos-x); }

/* the Arena drawing: both players' zones, lit from the buttons beside it */
.ar { margin: 18px 0 8px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr); gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(ellipse 70% 60% at 35% 50%, rgb(255 122 26 / 0.08), transparent 70%), #0a0a0d; }
.ar-pic svg { display: block; width: 100%; max-width: 440px; margin: 0 auto; height: auto; }
.ar-z rect { fill: rgb(255 255 255 / 0.06); stroke: rgb(255 255 255 / 0.2); stroke-width: 1; transition: fill 0.3s ease, stroke 0.3s ease; cursor: pointer; }
.ar-z text { fill: var(--muted); font: 600 7px var(--mono); letter-spacing: 0.12em; pointer-events: none; transition: fill 0.3s ease; }
.ar-who { fill: rgb(255 255 255 / 0.35); font: 700 7px var(--mono); letter-spacing: 0.2em; }
.ar-lit .ar-z:not(.on) rect { fill: rgb(255 255 255 / 0.03); stroke: rgb(255 255 255 / 0.1); }
.ar-z.on rect { fill: rgb(255 154 58 / 0.5); stroke: #ffd3a0; stroke-width: 1.5; }
.ar-z.on text { fill: #fff; }
.ar-h { margin: 0 0 10px; font: 700 0.72rem/1 var(--mono); letter-spacing: 0.24em; color: var(--ember-2); }
.ar-bs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ar-b { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgb(255 255 255 / 0.02); color: var(--ink);
  font: 600 0.76rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-align: left; cursor: pointer; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.ar-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 2px; background: rgb(255 255 255 / 0.25); transition: background 0.3s ease, box-shadow 0.3s ease; }
.ar-b:hover, .ar-b[aria-pressed="true"] { border-color: rgb(255 154 58 / 0.6); background: rgb(255 122 26 / 0.1); box-shadow: 0 0 14px rgb(255 122 26 / 0.15); }
.ar-b:hover .ar-dot, .ar-b[aria-pressed="true"] .ar-dot { background: var(--ember-2); box-shadow: 0 0 8px var(--ember); }
.ar-say { margin: 14px 0 0; min-height: 3.2em; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 760px) { .ar { grid-template-columns: minmax(0, 1fr); padding: 12px; } }
.vd-arena-rows svg, .vd-arena-codes svg { max-width: 300px; }

/* Gameplay Variants: each variant a large button opening its section */
.md-drop { margin: 12px 0; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(135deg, rgb(255 122 26 / 0.05), rgb(11 11 14 / 0.9) 50%); transition: border-color 0.35s ease, box-shadow 0.4s ease; }
.md-drop:hover, .md-drop.open { border-color: rgb(255 154 58 / 0.5); box-shadow: 0 0 24px rgb(255 122 26 / 0.1); }
.md-drop-h { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.md-drop-ico { position: relative; flex: 0 0 auto; width: 54px; height: 60px; display: grid; place-items: center; color: #f6eee2; }
.md-drop-ico::before, .md-drop-ico::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.md-drop-ico::before { background: linear-gradient(160deg, rgb(255 200 140 / 0.6), rgb(255 122 26 / 0.25) 45%, rgb(255 190 120 / 0.5)); }
.md-drop-ico::after { inset: 1.5px; background: radial-gradient(circle at 50% 42%, rgb(60 34 18), #0d0b0c 70%); }
.md-drop-ico > .ico { position: relative; z-index: 1; width: 30px; height: 30px; margin: 0; display: inline-grid; }
.md-drop-ico svg { width: 100%; height: 100%; }
.md-drop-t { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.md-drop-title { font: 700 1.15rem/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); transition: color 0.3s ease; }
.md-drop-h:hover .md-drop-title, .md-drop.open .md-drop-title { color: var(--ember-2); }
.md-drop-line { color: var(--muted); font-size: 0.92rem; }
.md-drop-c { flex: 0 0 auto; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--ember-2); border-bottom: 2px solid var(--ember-2); transform: translateY(-3px) rotate(45deg); transition: transform 0.35s ease; }
.md-drop.open .md-drop-c { transform: translateY(2px) rotate(225deg); }
.md-drop-b { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s cubic-bezier(.3,.7,.3,1), opacity 0.35s ease; }
.md-drop.open .md-drop-b { grid-template-rows: 1fr; opacity: 1; }
.md-drop-in { min-height: 0; overflow: hidden; padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }
.md-drop.open .md-drop-in { padding-bottom: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.md-drop-in > p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .md-drop-b, .md-drop-c { transition: none; } }
@media (max-width: 560px) { .md-drop-h { padding: 14px; gap: 12px; } .md-drop-in { padding: 0 14px; } .md-drop-ico { width: 44px; height: 50px; } }
/* the turn order arrow keeps turning clockwise */
.vd-spin { animation: vdSpin 6s linear infinite; }
@keyframes vdSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vd-spin { animation: none; } }
.vd-team svg, .vd-solo svg { max-width: 380px; }
/* Creature Clash: the text starts level with the card's top, and the two length boxes end level with its bottom */
.cpage[data-path="resources/variants"] .md-drop .md-split { align-items: stretch; }
.cpage[data-path="resources/variants"] .md-drop .md-split-t { display: flex; flex-direction: column; gap: 14px; }
.cpage[data-path="resources/variants"] .md-drop .md-split-t > p { margin: 0; }
.cpage[data-path="resources/variants"] .md-drop .md-split-t > .md-lengths { margin-top: auto; margin-bottom: 0; }
/* the blank Disengaged Asset: larger symbols */
.cpage[data-path="resources/variants"] .md-free .md-act-ico { width: 68px; height: 76px; }
.cpage[data-path="resources/variants"] .md-free .md-act-ico > .md-ico { width: 46px; height: 46px; }
/* Single Player: the playstyles, a die face each in its own colour */
.md-dice .md-act:nth-child(1) { --dc: 120 190 255; } .md-dice .md-act:nth-child(2) { --dc: 120 220 170; } .md-dice .md-act:nth-child(3) { --dc: 240 210 110; }
.md-dice .md-act:nth-child(4) { --dc: 255 170 80; } .md-dice .md-act:nth-child(5) { --dc: 255 120 80; } .md-dice .md-act:nth-child(6) { --dc: 235 70 90; }
.md-dice .md-ico-glyph { color: rgb(var(--dc)); }
.md-dice .md-act { border-top: 2px solid rgb(var(--dc) / 0.55); }
.md-drop .md-fold { margin: 0; }
.cpage[data-path="resources/variants"] .md-drop .md-split-m { display: flex; flex-direction: column; align-self: stretch; }
.cpage[data-path="resources/variants"] .md-drop .md-split-m > .md-c3d { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; margin: 0; padding-top: 0; }
.cpage[data-path="resources/variants"] .md-drop .md-split-m > .vd { margin: auto 0; }

/* ===== v0.45.0 (user, 2026-11-19): 3D card finishes ===== */
/* STANDARD: less of the added light when pointed at (was 0.05 + on × 0.95) */
.c3d-plain .c3d-glare { opacity: calc(0.04 + var(--on) * 0.55); }
/* HOLOFOIL: coloured sparkles (v0.46.0: the colour foil layer replaced by .fx-rainbow) */
.fx-spk.fx-colour { filter: saturate(1.9) brightness(1.05); }
.c3d-fx-holo > .fx-spk.fx-mid.fx-colour { opacity: calc(0.58 + var(--on) * 0.3 + var(--ta, 0) * 0.2); }
/* PRISMATIC: v0.43.0 look (mockup A). v0.46.0: the v0.45.0 un-clamp of its layers is removed (it allowed hard edges) */
/* REVERSE: more rainbow and a metal reflection outside the art window (the printed window is laid over them); the
   sparkles only inside the window (a third mask, the window's) */
.c3d-fx-reverse > .fx-revwash { opacity: calc(0.68 + var(--on) * 0.22 + var(--ta, 0) * 0.2); filter: saturate(1.35); }
.c3d-fx-reverse > .fx-foil.fx-a { opacity: calc(0.72 + var(--on) * 0.25 + var(--ta, 0) * 0.15); filter: saturate(1.3); }
.c3d-fx-reverse > .fx-foil.fx-b { opacity: calc(0.66 + var(--on) * 0.28 + var(--ta, 0) * 0.2); filter: saturate(1.3); }
.fx-spec.fx-rev { opacity: calc(0.42 + var(--on) * 0.32 + var(--ta, 0) * 0.22); }
.fx-gloss.fx-rev { opacity: calc(0.18 + var(--on) * 0.14 + var(--ta, 0) * 0.08); }
/* CHROMA: the radial light much fainter over the art window (35% there, full on the border and lower half); the
   silver in the whites and the lacquer in the blacks a little clearer over the desaturated art */
.c3d-fx-chroma > .fx-rad-light { -webkit-mask-image: var(--fx-nowin), linear-gradient(rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.35));
          mask-image: var(--fx-nowin), linear-gradient(rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.35));
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: source-over; mask-composite: add; }
.c3d-fx-chroma.fx-ready > .fx-csil { opacity: calc(0.5 + var(--on) * 0.3 + var(--ta, 0) * 0.2); }
.c3d-fx-chroma.fx-ready > .fx-lacq { opacity: calc(0.38 + var(--on) * 0.3 + var(--ta, 0) * 0.24); }
/* POLARITY: mockup B, the foil in the blacks more reflective */
.c3d-fx-polarity > .fx-pholo.fx-b { filter: brightness(0.62) saturate(1.5); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-b { opacity: calc(0.66 + var(--on) * 0.26 + var(--ta, 0) * 0.2); }
.c3d-fx-polarity.fx-ready > .fx-pband { opacity: calc(0.4 + var(--on) * 0.6 + var(--ta, 0) * 0.4); }
/* the PRISMATIC button: the rainbow runs straight across in a loop that starts and ends on the same colour, so no
   hard line shows where it repeats */
.fin-b.fin-prismatic::before { background:
    linear-gradient(90deg, rgb(255 63 164 / 0.55) 0%, rgb(255 179 71 / 0.55) 16.7%, rgb(200 255 90 / 0.5) 33.3%, rgb(49 224 200 / 0.55) 50%, rgb(58 123 255 / 0.55) 66.7%, rgb(163 75 255 / 0.55) 83.3%, rgb(255 63 164 / 0.55) 100%) 0 0 / 200% 100% repeat-x,
    linear-gradient(180deg, #f6f8fb, #c3c9d2 48%, #8d939c 52%, #e4e8ee); }

/* ===== v0.45.0 (user, 2026-11-19): symmetrical hexagons =====
   The hexagon clip (50% 0, 93.3% 25% …) is a regular hexagon only in a square box; the tiles were taller than wide,
   so their hexagons were stretched. Every hexagon box is now square (Victory keeps its round glows). */
.md-act-ico { width: 74px; height: 74px; }
.md-free .md-act-ico { width: 58px; height: 58px; }
.cpage[data-path="gameplay/turn-structure"] .md-actions .md-act-ico { width: 90px; height: 90px; }
.md-steps-ico .md-act-ico { width: 56px; height: 56px; }
.md-drop-ico { width: 60px; height: 60px; }
.md-pip-shine { clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }

/* Gameplay Overview: every symbol white with a subtle white glow; the Mechanics symbols larger, in the same style */
.md-systems .md-act-ico > .md-ico, .md-soon .md-act-ico > .md-ico { color: #fbf8f3; filter: drop-shadow(0 0 5px rgb(255 255 255 / 0.4)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.6)); }
.md-systems .md-act:hover .md-act-ico > .md-ico { filter: drop-shadow(0 0 9px rgb(255 255 255 / 0.65)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.6)); }
.md-soon .md-act-ico { width: 64px; height: 64px; opacity: 0.85; }
.md-soon .md-act-ico > .md-ico { width: 38px; height: 38px; }

/* ===== v0.45.0 (user, 2026-11-19): The Arena ===== */
/* the drawing's zone symbols (white; the Catalyst type symbol turned white) and the zone buttons as one vertical list */
.ar-g { color: rgb(255 255 255 / 0.75); pointer-events: none; transition: color 0.3s ease; }
.ar-gi { filter: brightness(0) invert(1); opacity: 0.75; pointer-events: none; }
.ar-z.on .ar-g { color: #fff; } .ar-z.on .ar-gi { opacity: 1; }
.ar-lit .ar-z:not(.on) .ar-g, .ar-lit .ar-z:not(.on) .ar-gi { opacity: 0.35; }
.ar { grid-template-columns: minmax(0, 1.6fr) minmax(190px, 0.8fr); }
.ar-pic svg { max-width: 520px; }
.ar-bs { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ar-b { padding: 8px 12px; }
/* the Catalyst Zone tile uses the Catalyst type symbol in white */
.md-ico-type.md-ico-white, .md-act-ico > .md-ico-type.md-ico-white { filter: brightness(0) invert(1) drop-shadow(0 0 5px rgb(255 255 255 / 0.35)); }
.cpage[data-path="gameplay/the-arena"] .md-zones .md-ico-type { filter: brightness(0) invert(1) drop-shadow(0 0 5px rgb(255 255 255 / 0.35)); }
/* Valid Positions: no hexagons, larger symbols, wider boxes (three across the page) */
.cpage[data-path="gameplay/the-arena"] .md-free { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpage[data-path="gameplay/the-arena"] .md-free .md-act-ico::before, .cpage[data-path="gameplay/the-arena"] .md-free .md-act-ico::after { display: none; }
.cpage[data-path="gameplay/the-arena"] .md-free .md-act-ico { width: 56px; height: 56px; }
.cpage[data-path="gameplay/the-arena"] .md-free .md-act-ico > .md-ico { width: 52px; height: 52px; filter: drop-shadow(0 0 8px currentColor); }
@media (max-width: 760px) { .cpage[data-path="gameplay/the-arena"] .md-free { grid-template-columns: minmax(0, 1fr); } }

/* ===== v0.45.0 (user, 2026-11-19): Turn Structure ===== */
/* Deploy on its own, wide, with its two ways (Engaged face up, Disengaged face down) as two boxes inside */
.md-actions.md-x-deploy { grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; }
.md-x-deploy .md-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.md-x-deploy .md-tiles .md-tile { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgb(255 255 255 / 0.02); }
.md-x-deploy .md-tiles .md-tile-h { font-size: 0.9rem; color: var(--gold-2); margin: 0 0 4px; }
.md-x-deploy .md-tiles .md-tile:first-child { border-color: rgb(255 154 58 / 0.4); }
.md-x-deploy .md-tiles .md-tile > p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .md-x-deploy .md-tiles { grid-template-columns: minmax(0, 1fr); } }
/* "3 ACTIONS EACH TURN" larger */
.md-pips-t { font-size: 1.05rem; letter-spacing: 0.26em; margin-top: 4px; }
/* Free Actions: larger symbols */
.cpage[data-path="gameplay/turn-structure"] .md-free .md-act-ico { width: 68px; height: 68px; }
.cpage[data-path="gameplay/turn-structure"] .md-free .md-act-ico > .md-ico { width: 42px; height: 42px; }
/* Creature Clash (Gameplay Variants): the deck size on its own line; the two boxes centred across the text column, their
   bottom level with the card's bottom (the link under the card is left out of the column's height) */
.md-lengths .md-tile p:not(:first-of-type) { font: 500 0.78rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.cpage[data-path="resources/variants"] .md-drop .md-split-t > .md-lengths { margin: auto auto var(--c3d-under, 34px); width: 100%; }
.cpage[data-path="resources/variants"] .md-free .md-act-ico { width: 72px; height: 72px; }
/* Single Player: the turn drawing in a column beside the text, large enough to read */
.vd-solo svg { max-width: 300px; }

/* ===== v0.45.0 (user, 2026-11-19): home page ===== */
/* the four orange facts, moved out of the hero's top right: two on each side of WHAT IS AXION FORGE? */
.md-box.md-flank { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(10px, 2.4vw, 30px); margin: 22px auto 8px; padding: 0; border: 0; background: none; box-shadow: none; }
.md-flank .md-img { width: clamp(64px, 6vw, 92px); margin: 0; border: 0; filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.6)); transition: filter 0.35s ease; }
.md-flank .md-img:hover { filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.6)) drop-shadow(0 0 14px rgb(255 130 40 / 0.75)); }
.md-flank > :not(.md-img) { margin: 0 clamp(4px, 1.5vw, 18px); }
@media (max-width: 560px) { .md-flank > :not(.md-img) { order: 5; flex-basis: 100%; display: flex; justify-content: center; margin: 6px 0 0; } .md-flank .md-img { width: 62px; } }

/* ===== v0.45.0 (user, 2026-11-19): Press & Creator Kit, Key Art Gallery ===== */
/* the logo and art tiles: every picture about the same size, the DOWNLOAD / BROWSE button centred under its text */
.md-tiles.md-x-press { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.md-x-press .md-tile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.md-x-press .md-tile > .md-img { width: 100%; height: 150px; object-fit: contain; margin: 4px 0 10px; border: 0; background: radial-gradient(ellipse at center, rgb(255 255 255 / 0.04), transparent 70%); }
.md-x-press .md-tile > p { flex: 1; color: var(--muted); font-size: 0.9rem; }
.md-x-press .md-btns { justify-content: center; margin-top: 6px; }
/* galleries: a grid of pictures, each opening full size */
.md-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; margin: 14px 0; }
.gal-i { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0d0d10; cursor: zoom-in; aspect-ratio: 4 / 3; transition: border-color 0.35s ease, box-shadow 0.35s ease; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gal-i:hover, .gal-i:focus-visible { border-color: rgb(255 154 58 / 0.6); box-shadow: 0 0 18px rgb(255 122 26 / 0.18); }
.gal-i:hover img { transform: scale(1.04); }
.gal-n { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; background: linear-gradient(0deg, rgb(8 8 10 / 0.9), transparent); color: var(--ink); font: 600 0.72rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-align: left; opacity: 0; transition: opacity 0.35s ease; }
.gal-i:hover .gal-n, .gal-i:focus-visible .gal-n { opacity: 1; }
.gal-box { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgb(5 5 7 / 0.88); backdrop-filter: blur(6px); animation: galIn 0.3s ease; }
.gal-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(1200px, 100%); }
.gal-fig img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.6); }
.gal-fig figcaption { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: var(--ink); font: 600 0.8rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
@keyframes galIn { from { opacity: 0; } }
/* The Arena: the Frontline/Backfield and position-code drawings fill their column beside the text */
.md-split-m > .vd-arena-rows, .md-split-m > .vd-arena-codes { width: 100%; }
.vd-arena-rows svg, .vd-arena-codes svg { max-width: 340px; }
.cpage[data-path="resources/variants"] .md-drop .md-split-m > .md-c3d { justify-content: flex-start; gap: 10px; }
.cp-body > .md-box.md-flank, .cpage-home .cp-body > .md-box.md-flank { flex-direction: row; width: auto; max-width: none; }
.md-flank > .md-btns { flex: 0 0 auto; width: auto; }
/* phones: the hero's faction icons. Each crossfading Unknown icon gets its own layer (some phones dropped the fade and
   swapped the picture at once), and the lit icon of the automatic round fades on and off instead of switching */
@media (max-width: 760px) {
  .hero-fac-unk .hero-unk { will-change: opacity; transform: translateZ(0); backface-visibility: hidden; transition: opacity 0.8s ease; }
  .hero-fac img { transition: filter 0.6s ease, opacity 0.6s ease; }
}

/* ===== v0.46.0 (user, 2026-11-20): Art Gallery ===== */
.gal-i { aspect-ratio: 16 / 9; }

/* ===== v0.46.0 (user, 2026-11-20): Lore Overview ===== */
/* the narrative overview first, the Codex buttons to the right of its text (under it on phones) */
.st-ov-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.st-ov-t > p { max-width: 70ch; }
.st-ov-end { font: 700 1.05rem/1.3 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.st-ov-row > .st-codex-btns { flex-direction: column; align-items: stretch; margin: 0; }
@media (max-width: 760px) { .st-ov-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } .st-ov-row > .st-codex-btns { flex-direction: row; justify-content: center; } }

/* ===== v0.46.0 (user, 2026-11-20): Unknown Factions ===== */
/* the four tiles larger, still two by two (each half the width, was a third) */
.cp-has-side .ftiles-unknown, .ftiles-unknown.ftiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-has-side .ftiles-unknown .ftile-ico { width: clamp(56px, 5vw, 84px); height: clamp(56px, 5vw, 84px); }
.cp-has-side .ftiles-unknown .ftile-name { font-size: 1.3rem; }
@media (max-width: 560px) { .cp-has-side .ftiles-unknown, .ftiles-unknown.ftiles-wide { grid-template-columns: minmax(0, 1fr); } }
/* the Unknown faction pages' DISCOVER THE LORE button: the same spacing as on the faction pages */
.fpage-unknown .btn-lore { margin-top: 14px; align-self: flex-start; }

/* ===== v0.46.0 (user, 2026-11-20): 3D card finishes =====
   Readable at every angle: only the sparkles grow with the card's tilt (they give the depth); every other finish layer
   keeps the strength it has when the card faces you (its tilt term set to 0). */
.c3d-fx > :not(.fx-spk) { --ta: 0; }
/* no hard edges while moving: every moving rainbow layer keeps its place inside its own size (as v0.44.0 did) */
.fx-rainbow, .fx-pholo, .fx-revwash, .fx-foil.fx-a, .fx-spk.fx-mid, .fx-spk.fx-far { background-repeat: no-repeat; }
.fx-spk.fx-far { background-position: clamp(0%, calc(50% + var(--dx) * 40%), 100%) 50%; }
/* HOLOFOIL: a rainbow overlay over the whole card that drifts with the light, under the holofoil band and the sparkles */
.fx-rainbow { mix-blend-mode: overlay; opacity: calc(0.42 + var(--on) * 0.18);
  background-image: linear-gradient(calc(118deg + var(--dx) * 40deg), #ff7ab6, #ffd27a 11%, #8cffc9 22%, #7ab8ff 33%, #d17aff 44%, #ff7ab6 55%, #ffd27a 66%, #8cffc9 77%, #7ab8ff 88%, #d17aff 100%);
  background-size: 300% 300%; background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 100%), 100%); }
/* REVERSE: the printed art window over the rainbow, foil and sparkles; on FULL ART cards the printed card covers all but
   the box below the art frame */
.c3d-fx-reverse.fx-fullart > .fx-win { -webkit-mask: var(--fx-winfull) 0 0 / 100% 100% no-repeat; mask: var(--fx-winfull) 0 0 / 100% 100% no-repeat; }
:root { --fx-winfull: var(--fx-none); }
/* CHROMA: the faction's colour slightly stronger over the light sheen and reflections */
.fx-ctop { mix-blend-mode: color; background: var(--c3d-accent, #8a8f98); opacity: 0.16; }
.c3d-fx-chroma > .fx-tint { opacity: 0.4; }
/* POLARITY: a colour negative (finishes.js) with a dichroic foil in its blacks: cyan, violet, magenta and gold that shift
   with the light, reflective */
.c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: invert(1) contrast(1.14); }
.fx-pholo.fx-dich { background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 40deg), #00e5ff 0%, #6a5cff 9%, #ff3fd2 18%, #ffb300 27%, #00e5ff 36%, #6a5cff 45%, #ff3fd2 54%, #ffb300 63%, #00e5ff 72%, #6a5cff 81%, #ff3fd2 90%, #ffb300 100%); }
.c3d-fx-polarity > .fx-pholo.fx-dich { filter: brightness(0.7) saturate(1.5); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-dich { opacity: calc(0.7 + var(--on) * 0.25); }
.c3d-fx-polarity.fx-ready > .fx-pband.fx-dich { opacity: calc(0.45 + var(--on) * 0.55); }
/* changing variant: the card's back and edge are hidden while it fades (a fading 3D card is drawn flat, which could
   show them over the face for a frame) */
.c3d-swap .c3d-back, .c3d-swap .c3d-slice { visibility: hidden; }
.st-ov-t > p { margin: 0 0 14px; line-height: 1.65; } .st-ov-t > p.st-ov-end { margin: 6px 0 0; }

/* v0.47.0 (user, 2026-11-20): Lore Overview: the Factions, Glossary and Codex tiles stacked to the right of the narrative
   (no OPEN THE CODEX / LEARN MORE), the text running wider before it wraps, room under "Forge the future", which pulses */
.st-ov-row { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 40px; align-items: start; }
.st-ov-t > p { max-width: 92ch; }
.st-ov-side { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.st-ov-t > p.st-ov-end { margin: 10px 0 28px; animation: ovEndGlow 4.5s ease-in-out infinite; }
@keyframes ovEndGlow { 0%, 100% { text-shadow: 0 0 6px rgb(255 194 51 / 0.15); } 50% { text-shadow: 0 0 14px rgb(255 194 51 / 0.65), 0 0 28px rgb(255 122 26 / 0.35); } }
@media (prefers-reduced-motion: reduce) { .st-ov-t > p.st-ov-end { animation: none; } }
@media (max-width: 760px) { .st-ov-row { grid-template-columns: minmax(0, 1fr); gap: 16px; } .st-ov-t > p.st-ov-end { margin-bottom: 18px; } }

/* ===== v0.47.0 (user, 2026-11-20): 3D card finishes =====
   HOLOFOIL and REVERSE (outside its art box): a metallic rainbow over the whole surface. PRISMATIC: mockup A with its
   whites a highly reflective silver under prismatic rainbows. POLARITY: never a negative; the art at slightly more
   contrast, a dichroic mirror foil in its blacks (PRISMATIC's opposite areas). Every moving layer keeps its gradient
   inside its own size (no-repeat, clamped), so no hard edge ever crosses the card. */
.fx-hmetal, .fx-hsheen, .fx-prism, .fx-mirror { background-repeat: no-repeat; background-size: 300% 300%;
  background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 100%), 100%); }
/* the lit rainbow: lifts every part of the card, the dark parts included, into a shifting metallic colour */
.fx-hmetal { mix-blend-mode: screen; opacity: calc(0.5 + var(--on) * 0.12);
  background-image: linear-gradient(calc(122deg + var(--dx) * 50deg + var(--tl, 0) * 40deg), #c0307a, #c0901c 9%, #40b050 18%, #1f8fc0 27%, #7a35d0 36%, #c0307a 45%, #c0901c 54%, #40b050 63%, #1f8fc0 72%, #7a35d0 81%, #c0307a 90%, #c0901c 100%); }
.fx-rainbow { opacity: calc(0.72 + var(--on) * 0.18); }
/* a broad reflection, as polished foil throws back the light */
.fx-hsheen { mix-blend-mode: overlay; opacity: calc(0.5 + var(--on) * 0.3);
  background-image: linear-gradient(calc(115deg + var(--dx) * 30deg), transparent 34%, rgb(255 255 255 / 0.55) 44%, rgb(255 255 255 / 0.85) 50%, rgb(255 255 255 / 0.55) 56%, transparent 66%); }
.c3d-fx-reverse > .fx-rainbow { opacity: calc(0.68 + var(--on) * 0.18); }
.c3d-fx-reverse > .fx-hmetal { opacity: calc(0.46 + var(--on) * 0.12); }
/* PRISMATIC: the silver whites (finishes.js) lightly tinted, vivid prismatic colour over them, and a mirror light */
.c3d-fx-prismatic.fx-ready > .fx-pholo.fx-w { opacity: 0.32; }
.fx-prism { mix-blend-mode: hard-light; opacity: 0; transition: opacity 0.35s ease;
  background-image: linear-gradient(calc(140deg - var(--dx) * 50deg - var(--tl, 0) * 40deg), #ff7fbf 0%, #ffd37a 8%, #b6ff7a 16%, #6affe0 24%, #7aa8ff 32%, #c58aff 40%, #ff7fbf 48%, #ffd37a 56%, #b6ff7a 64%, #6affe0 72%, #7aa8ff 80%, #c58aff 88%, #ff7fbf 100%); }
.fx-ready > .fx-prism { opacity: calc(0.68 + var(--on) * 0.18); }
.fx-mirror { mix-blend-mode: screen; opacity: 0; transition: opacity 0.35s ease;
  background-image: linear-gradient(calc(110deg + var(--dx) * 40deg), transparent 30%, rgb(255 255 255 / 0.35) 42%, rgb(255 255 255 / 0.9) 50%, rgb(255 255 255 / 0.35) 58%, transparent 70%); }
.fx-ready > .fx-mirror { opacity: calc(0.8 + var(--on) * 0.2); }
.c3d-fx-prismatic > .fx-spk.fx-colour { filter: saturate(1.4) brightness(1.08); }
/* POLARITY: the colour art while it is being made (no negative), the dichroic foil brighter and the blacks mirrored */
.c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: contrast(1.12); }
.c3d-fx-polarity > .fx-pholo.fx-dich { filter: brightness(0.46) saturate(1.7); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-dich { opacity: calc(0.66 + var(--on) * 0.22); }
.c3d-fx-polarity.fx-ready > .fx-pband.fx-dich { opacity: calc(0.32 + var(--on) * 0.4); }
.fx-mirror.fx-b { background-image: linear-gradient(calc(110deg + var(--dx) * 40deg), transparent 30%, rgb(200 230 255 / 0.22) 42%, rgb(235 245 255 / 0.55) 50%, rgb(200 230 255 / 0.22) 58%, transparent 70%); }
.fx-ready > .fx-mirror.fx-b { opacity: calc(0.55 + var(--on) * 0.3); }
/* v0.47.0: changing finish is a crossfade (Interactive3DCard.js useFinish): the new group fades in over the old one;
   going to STANDARD the old group fades out; the glare eases between its looks instead of jumping */
.c3d-fx.c3d-fin-out { animation: foilOut 0.45s ease-in forwards; }
@keyframes foilOut { to { opacity: 0; } }
.c3d-glare { transition: opacity 0.4s ease; }

/* ===== v0.48.0 (user, 2026-11-20): 3D card finishes, clearer, like shiny aluminium =====
   HOLOFOIL and REVERSE: option 2 of samples/finish-holofoil.html (the card's soft glare, the holofoil band, the sparkles;
   layers in Interactive3DCard.js). PRISMATIC: the art in black and white as chrome (finishes.js) under mockup A of
   samples/finish-prismatic-2.html. POLARITY: mockup B exactly. These rules put back the mockups' values over the
   v0.45.0 to v0.47.0 changes to the same layers. */
.c3d-fx-prismatic:not(.fx-ready) > .fx-base { filter: grayscale(1) contrast(1.3); }
.c3d-fx-prismatic.fx-ready > .fx-pholo.fx-w { opacity: 1; }
.c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: contrast(1.06); }
.c3d-fx-polarity > .fx-pholo.fx-b { filter: brightness(0.42) saturate(1.4); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-b { opacity: calc(0.5 + var(--on) * 0.25 + var(--ta, 0) * 0.2); }
.c3d-fx-polarity.fx-ready > .fx-pband { opacity: calc(0.25 + var(--on) * 0.55 + var(--ta, 0) * 0.35); }
.c3d-fx-polarity > .fx-spec.fx-soft { opacity: calc(0.3 + var(--on) * 0.2 + var(--ta, 0) * 0.14); }
.c3d-fx-polarity > .fx-gloss.fx-soft { opacity: calc(0.14 + var(--on) * 0.1 + var(--ta, 0) * 0.06); }

/* ===== v0.48.0 (user, 2026-11-20): the rulebook reader ({book}, BookReader.js) ===== */
.bk { margin: 18px 0 8px; outline: none; }
.bk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.bk-bar2 { margin: 12px 0 0; }
.bk-where { font-family: var(--font-display, inherit); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: var(--text-dim, #b9b2a6); text-align: center; flex: 1; }
.bk-prev, .bk-next, .bk-full { flex: none; min-width: 108px; }
.bk-prev:disabled, .bk-next:disabled { opacity: 0.35; pointer-events: none; }
.bk-slider { flex: 1; accent-color: #e8b64c; cursor: pointer; }
.bk-stage { display: flex; justify-content: center; align-items: center; min-height: 240px; }
.bk-spread { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 560px); gap: 0; box-shadow: 0 18px 50px rgb(0 0 0 / 0.55); }
.bk-spread.bk-two { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 1120px); }
@media (min-width: 900px) {
  /* a single page of a spread (the cover, the back cover) sits on its side of the open book */
  .bk-spread:not(.bk-two) { width: min(100%, 1120px); grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; }
  .bk-spread:not(.bk-two) .bk-right { grid-column: 2; box-shadow: 0 18px 50px rgb(0 0 0 / 0.55); }
  .bk-spread:not(.bk-two) .bk-left { grid-column: 1; box-shadow: 0 18px 50px rgb(0 0 0 / 0.55); }
}
.bk-page { display: block; padding: 0; margin: 0; border: 0; background: #0b0908; cursor: zoom-in; aspect-ratio: 1650 / 2550; }
.bk-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bk-two .bk-page + .bk-page { box-shadow: inset 14px 0 18px -14px rgb(0 0 0 / 0.75); }
.bk-two .bk-page:first-child { box-shadow: inset -14px 0 18px -14px rgb(0 0 0 / 0.75); }
.bk-in-r { animation: bkInR 0.35s ease; } .bk-in-l { animation: bkInL 0.35s ease; }
@keyframes bkInR { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes bkInL { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bk-in-r, .bk-in-l { animation: none; } }
/* full screen: the open book as large as the screen allows */
.bk:fullscreen { background: #050403; padding: 14px 18px; display: flex; flex-direction: column; overflow: auto; }
.bk:fullscreen .bk-stage { flex: 1; min-height: 0; }
.bk:fullscreen .bk-spread { width: auto; height: 100%; max-height: calc(100vh - 140px); }
.bk:fullscreen .bk-spread.bk-two, .bk:fullscreen .bk-spread:not(.bk-two) { aspect-ratio: 3300 / 2550; }
@media (max-width: 899px) { .bk:fullscreen .bk-spread { aspect-ratio: 1650 / 2550; } }
.bk:fullscreen .bk-page { height: 100%; }
/* one page full size, scrollable */
.bk-zoom { position: fixed; inset: 0; z-index: 9000; background: rgb(0 0 0 / 0.9); overflow: auto; text-align: center; padding: 18px 12px 60px; cursor: zoom-out; }
.bk-zoom img { display: inline-block; width: min(1300px, 100%); height: auto; cursor: default; box-shadow: 0 10px 40px rgb(0 0 0 / 0.6); }
.bk-zoom-x { position: fixed; top: 14px; right: 16px; }
@media (max-width: 560px) { .bk-prev, .bk-next, .bk-full { min-width: 0; padding-left: 12px; padding-right: 12px; } .bk-where { font-size: 0.75rem; letter-spacing: 0.06em; } }
/* a one-page sheet: no page controls, only FULL SCREEN */
.bk-one .bk-bar:first-child, .bk-one .bk-slider { display: none; }
.bk-one .bk-bar2 { justify-content: center; }
.bk-one .bk-spread { width: min(100%, 640px); }
@media (min-width: 900px) { .bk-one .bk-spread:not(.bk-two) { width: min(100%, 640px); grid-template-columns: minmax(0, 1fr); box-shadow: 0 18px 50px rgb(0 0 0 / 0.55); } .bk-one .bk-spread:not(.bk-two) .bk-right { grid-column: 1; } }
/* the open book fits the window's height on wide screens, so a whole spread is seen at once (click a page to read it larger) */
@media (min-width: 900px) { .bk:not(.bk-one) .bk-spread { width: min(100%, 1120px, calc((100vh - 170px) * 1.294)); } }

/* ===== v0.49.0 (user, 2026-11-20): 3D card finishes ===== */
/* the sparkles keep their own light place, which runs on while the card is held or dragged (Interactive3DCard.js) */
.c3d-fx > .fx-spk { --dx: var(--sdx, 0); --dy: var(--sdy, 0); }
/* HOLOFOIL and REVERSE: the colour-shifting rainbow under the sparkles, over the whole card (REVERSE: outside the art
   box). A full spectrum in colour blend (the card's light and dark kept, its colours shifted through the rainbow as it
   moves) and a pale copy in multiply that tints the whites, under the holofoil band's metallic shine */
.fx-spectrum, .fx-spectrum2 { background-repeat: no-repeat; background-size: 260% 260%;
  background-position: clamp(0%, calc(50% + var(--dx) * 110%), 100%) clamp(0%, calc(50% + var(--dy) * 110%), 100%); }
.fx-spectrum { mix-blend-mode: color; opacity: calc(0.58 + var(--on) * 0.14);
  background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 50deg), #ff2a4f 0%, #ff8a1f 9%, #ffe13a 18%, #3fe36a 28%, #22d6e0 38%, #3a6bff 48%, #a64dff 58%, #ff2a8f 68%, #ff8a1f 77%, #ffe13a 85%, #3fe36a 93%, #22d6e0 100%); }
.fx-spectrum2 { mix-blend-mode: multiply; opacity: calc(0.34 + var(--on) * 0.1);
  background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 50deg), #ffb3c0 0%, #ffd2a6 9%, #fff3a8 18%, #b6f5c4 28%, #aef0f3 38%, #b3c6ff 48%, #dcbcff 58%, #ffb6d8 68%, #ffd2a6 77%, #fff3a8 85%, #b6f5c4 93%, #aef0f3 100%); }
/* PRISMATIC and POLARITY: the light band (lower left to upper right) in colour, so it lifts the foil's colours rather
   than whitening them */
.fx-spec.fx-spect { opacity: calc(0.4 + var(--on) * 0.3);
  background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 40%), rgb(255 80 150 / 0.5) calc(var(--px) - 22%), rgb(255 200 70 / 0.62) calc(var(--px) - 11%), rgb(90 255 170 / 0.66) var(--px), rgb(70 170 255 / 0.62) calc(var(--px) + 11%), rgb(180 100 255 / 0.5) calc(var(--px) + 22%), transparent calc(var(--px) + 40%)); }
/* POLARITY: a reflective chrome polish over the whole card, and the blacks in vivid metallic colour */
.c3d-fx-polarity > .fx-metal { opacity: calc(0.5 + var(--on) * 0.2); }
.c3d-fx-polarity > .fx-pholo.fx-b { filter: brightness(0.95) saturate(1.8); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-b { opacity: calc(0.82 + var(--on) * 0.15); }
.c3d-fx-polarity.fx-ready > .fx-pband { opacity: calc(0.45 + var(--on) * 0.5); }

/* ===== v0.49.0 (user, 2026-11-20): Rulebook pages ===== */
/* the four ways to read the rules: wider tiles, two in a row */
.md-systems.md-x-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .md-systems.md-x-wide { grid-template-columns: minmax(0, 1fr); } }
/* Downloads: one centred box per file, its name, size and a centred DOWNLOAD button */
.md-downloads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
@media (max-width: 900px) { .md-downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .md-downloads { grid-template-columns: minmax(0, 1fr); } }
.md-downloads .md-tile { align-items: center; text-align: center; justify-content: space-between; }
.md-downloads .md-tile-h { margin: 0; }
.md-downloads .md-tile > p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.md-downloads .md-btns { justify-content: center; }
/* the reader pages: the DOWNLOAD button and the line under the book centred */
.bk ~ .md-btns { justify-content: center; }
.bk ~ .md-sub { text-align: center; }
/* the book smaller (the user: "make the scrollable pdfs smaller"): a spread at most 900 px wide and short enough to
   leave the slider and buttons in view; one page at most 440 px */
.bk-spread { width: min(100%, 440px); }
@media (min-width: 900px) { .bk:not(.bk-one) .bk-spread { width: min(100%, 900px, calc((100vh - 300px) * 1.294)); } }
.bk-one .bk-spread, .bk-one .bk-spread:not(.bk-two) { width: min(100%, 520px); }
.bk-bar { margin: 12px 0 0; }
.bk-bar2 { margin: 14px 0 0; }
.bk:fullscreen:not(.bk-one) .bk-spread { width: auto; }

/* ===== v0.49.0 (user, 2026-11-20): header: on a narrowing desktop window the search box becomes a search button (its
   icon) before the links give way to MENU; a click on it opens the box over the header, to the left of the button ===== */
@media (min-width: 761px) {
  .topbar.tightest .ss { width: 42px; height: 38px; }
  .topbar.tightest .ss-box { width: 42px; min-width: 0; height: 38px; padding: 0; justify-content: center; cursor: pointer; }
  .topbar.tightest .ss-box .ico { width: 18px; height: 18px; color: var(--ink); }
  .topbar.tightest .ss:not(:focus-within) .ss-box input { position: absolute; width: 1px; opacity: 0; pointer-events: none; }
  .topbar.tightest .ss:focus-within .ss-box { position: absolute; right: 0; top: 0; z-index: 81; width: 240px; padding: 0 12px; justify-content: flex-start; background: var(--void); animation: ssOpen 0.18s ease; }
  @keyframes ssOpen { from { width: 42px; opacity: 0.6; } to { width: 240px; opacity: 1; } }
}

/* ===== v0.50.0 (user, 2026-11-20): the rulebook reader =====
   --bkw: the open book's width, shared by the pages, the slider row and the page count row, so the controls are only as
   wide as the pages. --bka: one page's shape (the rulebook's pages; US Letter for "doc"), --bks: a spread's */
.bk { --bka: 1650 / 2550; --bks: 1.294; --bkw: min(100%, 440px); }
.bk-doc { --bka: 612 / 792; --bks: 1.545; }
@media (min-width: 900px) { .bk:not(.bk-one) { --bkw: min(100%, 900px, calc((100vh - 290px) * var(--bks))); } }
.bk-one { --bkw: min(100%, 520px); }
.bk .bk-spread, .bk .bk-spread:not(.bk-two), .bk-one .bk-spread, .bk-one .bk-spread:not(.bk-two) { width: var(--bkw); }
@media (min-width: 900px) { .bk:not(.bk-one) .bk-spread, .bk:not(.bk-one) .bk-spread:not(.bk-two) { width: var(--bkw); } }
.bk-page { aspect-ratio: var(--bka); }
.bk-bar { width: var(--bkw); margin-left: auto; margin-right: auto; }
/* PREV and NEXT either side of the page count, in the middle */
.bk-nav { justify-content: center; gap: 14px; }
.bk-nav .bk-where { flex: 0 1 auto; min-width: 9.5em; }
.bk-prev, .bk-next { min-width: 0; }
/* FULL SCREEN smaller */
.bk-full { min-width: 0; padding: 6px 10px; font-size: 0.68rem; letter-spacing: 0.08em; line-height: 1.2; }
.bk:fullscreen { --bkw: auto; }
.bk:fullscreen .bk-bar { width: min(100%, 900px); }
.bk-zoom img { cursor: zoom-out; }

/* ===== v0.50.0 (user, 2026-11-20): 3D card finishes ===== */
/* HOLOFOIL and REVERSE: the chrome rainbow shows only in a band where the light falls (it sweeps across as the card
   tilts or the pointer moves), faint elsewhere; the blacks are lacquered (finishes.js, .fx-lacq) */
.fx-spectrum, .fx-spectrum2 {
  -webkit-mask-image: linear-gradient(calc(115deg + var(--dx) * 30deg + var(--tl, 0) * 40deg), rgb(0 0 0 / 0.12) calc(var(--px) - 42%), #000 calc(var(--px) - 9%), #000 calc(var(--px) + 9%), rgb(0 0 0 / 0.12) calc(var(--px) + 42%));
          mask-image: linear-gradient(calc(115deg + var(--dx) * 30deg + var(--tl, 0) * 40deg), rgb(0 0 0 / 0.12) calc(var(--px) - 42%), #000 calc(var(--px) - 9%), #000 calc(var(--px) + 9%), rgb(0 0 0 / 0.12) calc(var(--px) + 42%)); }
.fx-spectrum { opacity: calc(0.2 + var(--on) * 0.5); }
.fx-spectrum2 { opacity: calc(0.08 + var(--on) * 0.22); }
/* PRISMATIC: the lacquer on the blacks without the faction glow (no colour there); the coloured band on the whites only */
.c3d-fx-prismatic > .fx-lacq { background: linear-gradient(calc(122deg + var(--dx) * 34deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 34%), rgb(255 255 255 / 0.06) calc(var(--px) - 18%), rgb(255 255 255 / 0.5) calc(var(--px) - 4%), rgb(255 255 255 / 0.62) var(--px), rgb(255 255 255 / 0.5) calc(var(--px) + 4%), rgb(255 255 255 / 0.06) calc(var(--px) + 18%), transparent calc(var(--px) + 34%)); }
.c3d-fx-prismatic > .fx-spec.fx-spect { opacity: calc(0.55 + var(--on) * 0.3); }
/* POLARITY: less colour overall; the blacks stay chrome metallic */
.c3d-fx-polarity > .fx-pholo.fx-b { filter: brightness(0.62) saturate(1.35); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-b { opacity: calc(0.55 + var(--on) * 0.2); }
.c3d-fx-polarity.fx-ready > .fx-pband { opacity: calc(0.28 + var(--on) * 0.4); }
.c3d-fx-polarity > .fx-spec.fx-spect { opacity: calc(0.22 + var(--on) * 0.2); }
.c3d-fx-polarity > .fx-metal { opacity: calc(0.6 + var(--on) * 0.2); }

/* ===== v0.51.0 (user, 2026-11-20): 3D card finishes =====
   Every colour sits on chrome: .fx-chrome lays bands of light and dark metal (soft-light) under the colour layers. */
.fx-chrome { mix-blend-mode: soft-light; opacity: calc(0.5 + var(--on) * 0.25);
  background: linear-gradient(calc(102deg + var(--dx) * 40deg + var(--tl, 0) * 40deg), #1c1e22 0%, #d8dde4 calc(var(--px) - 34%), #4a4e56 calc(var(--px) - 18%), #ffffff var(--px), #3e4249 calc(var(--px) + 16%), #cfd4dc calc(var(--px) + 32%), #24262b 100%); }
/* HOLOFOIL and REVERSE: shinier and more metallic, mostly red and blue (magenta and violet between, cyan for the cold
   side); a narrow red-white-blue glint where the light falls */
.fx-spectrum { opacity: calc(0.34 + var(--on) * 0.5);
  background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 50deg), #ff1438 0%, #ff2d78 10%, #b236ff 19%, #3048ff 28%, #1aa8ff 37%, #3048ff 46%, #b236ff 55%, #ff2d78 64%, #ff1438 73%, #ff4a2a 80%, #3048ff 90%, #1aa8ff 100%); }
.fx-spectrum2 { opacity: calc(0.14 + var(--on) * 0.24);
  background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 50deg), #ffb0bc 0%, #ffb6d4 10%, #e2bcff 19%, #b4c0ff 28%, #ade4ff 37%, #b4c0ff 46%, #e2bcff 55%, #ffb6d4 64%, #ffb0bc 73%, #ffc0b0 80%, #b4c0ff 90%, #ade4ff 100%); }
.fx-glint { mix-blend-mode: color-dodge; opacity: calc(0.3 + var(--on) * 0.5);
  background: linear-gradient(calc(115deg + var(--dx) * 30deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 28%), rgb(255 30 70 / 0.6) calc(var(--px) - 12%), rgb(255 236 246 / 0.8) var(--px), rgb(40 100 255 / 0.6) calc(var(--px) + 12%), transparent calc(var(--px) + 28%)); }
/* the holofoil band in the same red and blue */
.c3d-fx-holo > .c3d-foil-holo, .c3d-fx-reverse > .c3d-foil-holo { filter: hue-rotate(-20deg) saturate(1.4); }
/* HOLOFOIL: the classic holo, only in the art box above the ridge; on FULL ART versions everything above the ridge */
.c3d-fx-holo { -webkit-mask: var(--fx-win) 0 0 / 100% 100% no-repeat; mask: var(--fx-win) 0 0 / 100% 100% no-repeat; }
.c3d-fx-holo.fx-full { -webkit-mask: var(--fx-ridge) 0 0 / 100% 100% no-repeat; mask: var(--fx-ridge) 0 0 / 100% 100% no-repeat; }
:root { --fx-ridge: var(--fx-none); }
/* PRISMATIC and POLARITY: the coloured whites more reflective, a mirror light over them that follows the light */
.fx-pmirror { mix-blend-mode: color-dodge; opacity: 0; transition: opacity 0.35s ease;
  background: linear-gradient(calc(115deg + var(--dx) * 26deg + var(--tl, 0) * 40deg), rgb(120 128 140 / 0.25) calc(var(--px) - 50%), rgb(200 208 220 / 0.55) calc(var(--px) - 16%), rgb(255 255 255 / 0.9) var(--px), rgb(200 208 220 / 0.55) calc(var(--px) + 16%), rgb(120 128 140 / 0.25) calc(var(--px) + 50%)); }
.fx-ready > .fx-pmirror { opacity: calc(0.42 + var(--on) * 0.34); }
.c3d-fx-prismatic.fx-ready > .fx-pband { opacity: calc(0.35 + var(--on) * 0.55); }
/* POLARITY: PRISMATIC's style (finishes.js: harder contrast), the colour redder */
.c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: grayscale(1) contrast(1.6); }
.c3d-fx-polarity > .fx-re { -webkit-mask: none; mask: none; }
.c3d-fx-polarity > .fx-spec.fx-faint { opacity: calc(0.12 + var(--on) * 0.1); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-w { opacity: 1; filter: none; }
.c3d-fx-polarity.fx-ready > .fx-pband { opacity: calc(0.35 + var(--on) * 0.55); }
.c3d-fx-polarity > .fx-spec.fx-spect { opacity: calc(0.55 + var(--on) * 0.3); }
.c3d-fx-polarity > .fx-lacq { background: linear-gradient(calc(122deg + var(--dx) * 34deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 34%), rgb(255 255 255 / 0.06) calc(var(--px) - 18%), rgb(255 255 255 / 0.5) calc(var(--px) - 4%), rgb(255 255 255 / 0.62) var(--px), rgb(255 255 255 / 0.5) calc(var(--px) + 4%), rgb(255 255 255 / 0.06) calc(var(--px) + 18%), transparent calc(var(--px) + 34%)); }
.fx-pholo.fx-red { background-image: linear-gradient(calc(128deg + var(--dx) * 40deg + var(--tl, 0) * 40deg), #ff1e2e 0%, #ff5a36 8%, #ff2448 16%, #c02cff 24%, #ff1e2e 32%, #ff7a30 40%, #ff2440 48%, #4f6bff 56%, #ff1e2e 64%, #ff5a36 72%, #ff2448 80%, #a83cff 88%, #ff1e2e 100%); }
.fx-pband.fx-red { background-image: linear-gradient(calc(118deg + var(--dx) * 60deg), transparent 30%, rgb(255 30 50 / 0.85) 38%, rgb(255 120 60 / 0.8) 44%, rgb(255 40 90 / 0.85) 50%, rgb(150 80 255 / 0.75) 57%, transparent 66%); }
.fx-spec.fx-spect.fx-red { background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 40%), rgb(255 60 90 / 0.55) calc(var(--px) - 20%), rgb(255 150 90 / 0.62) calc(var(--px) - 8%), rgb(255 70 150 / 0.66) var(--px), rgb(190 90 255 / 0.55) calc(var(--px) + 14%), transparent calc(var(--px) + 40%)); }

/* ===== v0.51.0 (user, 2026-11-20): a one-page sheet (the Turn Structure sheet) shows only FULL SCREEN under it (no
   PREV, NEXT or name line); DOWNLOAD stays below ===== */
.bk-one .bk-nav { display: none; }

/* ===== v0.51.0 (user, 2026-11-20): header: the section links go into the three-line MENU first; CODEX stays as its own
   button beside MENU (its word, then only its sigil) and moves into the MENU last (CardExplorer.js › navCheck) ===== */
.topbar .topnav-a.tn-codex.hdr-codex { display: none; }
@media (min-width: 761px) {
  .topbar.use-menu:not(.codex-menu) .topnav-a.tn-codex.hdr-codex { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 10px; white-space: nowrap; }
  .topbar.codex-icon .hdr-codex .tn-l { display: none; }
  .topbar.codex-icon .hdr-codex { padding: 0 6px; }
  /* while CODEX is in the header, the MENU list leaves it out */
  .topbar.use-menu:not(.codex-menu) .menu-sec:has(.menu-codex) { display: none; }
}

/* ===== v0.52.0 (user, 2026-11-20): 3D card finishes =====
   Which parts take a finish depends on the version (Interactive3DCard.js sets fx-full on FULL ART, fx-ext on EXTENDED
   ART; every other variant counts as NORMAL). */
.fx-mask3 { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* the chrome base: its light bands wider and softer */
.fx-chrome { opacity: calc(0.42 + var(--on) * 0.2);
  background: linear-gradient(calc(102deg + var(--dx) * 40deg + var(--tl, 0) * 40deg), #2a2d33 0%, #c9ced6 calc(var(--px) - 52%), #6a6e76 calc(var(--px) - 26%), #f4f6f9 var(--px), #62666e calc(var(--px) + 26%), #c2c7cf calc(var(--px) + 50%), #30333a 100%); }
/* HOLOFOIL: NORMAL the art box only; EXTENDED ART the art box and the borders; FULL ART everywhere */
.c3d-fx-holo.fx-ext { -webkit-mask: var(--fx-winborder) 0 0 / 100% 100% no-repeat; mask: var(--fx-winborder) 0 0 / 100% 100% no-repeat; }
.c3d-fx-holo.fx-full { -webkit-mask: none; mask: none; }
:root { --fx-winborder: var(--fx-none); --fx-winfull: var(--fx-none); }
/* REVERSE: NORMAL everywhere but the art box (the printed box laid over it); EXTENDED and FULL ART only the lower box
   inside the border (the printed card laid over everything else) */
.c3d-fx-reverse.fx-ext > .fx-win, .c3d-fx-reverse.fx-full > .fx-win { -webkit-mask: var(--fx-winfull) 0 0 / 100% 100% no-repeat; mask: var(--fx-winfull) 0 0 / 100% 100% no-repeat; }

/* PRISMATIC: mockup A in colour. The blacks a very dark lacquer with almost no light; the rest chrome; the whites very
   metallic foil whose colours turn through the whole spectrum with the tilt, while the pattern shifts only a little */
.c3d-fx-prismatic:not(.fx-ready) > .fx-base { filter: contrast(1.06); }
.c3d-fx-prismatic > .fx-spec.fx-soft { opacity: calc(0.34 + var(--on) * 0.22); }
.c3d-fx-prismatic > .fx-gloss.fx-soft { opacity: calc(0.12 + var(--on) * 0.08); }
.c3d-fx-prismatic > .fx-chrome { opacity: 0; transition: opacity 0.35s ease; }
.c3d-fx-prismatic.fx-ready > .fx-chrome { opacity: calc(0.55 + var(--on) * 0.2); }
.c3d-fx-prismatic > .fx-lacq { background: linear-gradient(calc(122deg + var(--dx) * 34deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 30%), rgb(255 255 255 / 0.12) var(--px), transparent calc(var(--px) + 30%)); }
.c3d-fx-prismatic.fx-ready > .fx-lacq { opacity: calc(0.12 + var(--on) * 0.1); }
.c3d-fx-prismatic > .fx-pholo.fx-w, .c3d-fx-prismatic > .fx-pband.fx-w {
  background-position: calc(50% + var(--dx) * 18%) calc(50% + var(--dy) * 18%);
  filter: saturate(1.5) hue-rotate(calc(var(--dx) * 520deg + var(--dy) * 300deg + var(--tl, 0) * 200deg)); }
.c3d-fx-prismatic.fx-ready > .fx-pholo.fx-w { opacity: 1; }
.c3d-fx-prismatic.fx-ready > .fx-pband { opacity: calc(0.4 + var(--on) * 0.5); }
.c3d-fx-prismatic.fx-ready > .fx-pmirror { opacity: calc(0.55 + var(--on) * 0.35); }

/* POLARITY: mockup B. The blacks a dark lacquer under dark rainbow foil with little light; the whites pure silver and
   highly reflective; on NORMAL cards the border's rainbow turns the opposite way to the rest */
.c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: contrast(1.06); }
.c3d-fx-polarity > .fx-spec.fx-soft { opacity: calc(0.2 + var(--on) * 0.14); }
.c3d-fx-polarity > .fx-chrome { opacity: calc(0.34 + var(--on) * 0.16); }
.c3d-fx-polarity > .fx-csil { background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), rgb(150 160 176 / 0.3) calc(var(--px) - 70%), rgb(200 210 224 / 0.6) calc(var(--px) - 28%), rgb(255 255 255 / 0.95) var(--px), rgb(200 210 224 / 0.6) calc(var(--px) + 28%), rgb(150 160 176 / 0.3) calc(var(--px) + 70%)); }
.c3d-fx-polarity.fx-ready > .fx-csil { opacity: calc(0.55 + var(--on) * 0.3); }
.c3d-fx-polarity.fx-ready > .fx-pmirror { opacity: calc(0.5 + var(--on) * 0.35); }
.c3d-fx-polarity > .fx-pholo.fx-b { filter: brightness(0.5) saturate(1.45); }
.c3d-fx-polarity.fx-ready > .fx-pholo.fx-b { opacity: calc(0.6 + var(--on) * 0.2); }
.c3d-fx-polarity.fx-ready > .fx-pband.fx-b { opacity: calc(0.22 + var(--on) * 0.3); }
.c3d-fx-polarity > .fx-bord { -webkit-mask: var(--fx-border) 0 0 / 100% 100% no-repeat; mask: var(--fx-border) 0 0 / 100% 100% no-repeat; }
.c3d-fx-polarity > .fx-pholo.fx-bord { background-image: linear-gradient(calc(128deg - var(--dx) * 40deg - var(--tl, 0) * 40deg), #ff5fae 0%, #ffc15a 6%, #d6ff6a 11%, #45f0d0 16%, #4f8dff 22%, #b05cff 28%, #ff5fae 34%, #ffc15a 40%, #d6ff6a 45%, #45f0d0 50%, #4f8dff 56%, #b05cff 62%, #ff5fae 68%, #ffc15a 74%, #d6ff6a 79%, #45f0d0 84%, #4f8dff 90%, #b05cff 95%, #ff5fae 100%);
  background-position: clamp(0%, calc(50% - var(--dx) * 100%), 100%) clamp(0%, calc(50% - var(--dy) * 100%), 100%); }
.c3d-fx-polarity > .fx-pband.fx-bord { background-position: clamp(0%, calc(50% - var(--dx) * 100%), 100%) clamp(0%, calc(50% - var(--dy) * 80%), 100%); }
/* NORMAL: the inner blacks and the reversed border; EXTENDED and FULL ART: the whole blacks, no border layer */
.c3d-fx-polarity > .fx-all { display: none; }
.c3d-fx-polarity.fx-ext > .fx-all, .c3d-fx-polarity.fx-full > .fx-all { display: block; }
.c3d-fx-polarity.fx-ext > .fx-in, .c3d-fx-polarity.fx-full > .fx-in, .c3d-fx-polarity.fx-ext > .fx-bord, .c3d-fx-polarity.fx-full > .fx-bord { display: none; }

/* CHROMA: the main light sheen along the whole card wider and softer (the light from the centre unchanged) */
.c3d-fx-chroma > .fx-csil { background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), rgb(120 130 146 / 0.12) calc(var(--px) - 85%), rgb(170 180 196 / 0.36) calc(var(--px) - 34%), rgb(226 232 242 / 0.62) var(--px), rgb(170 180 196 / 0.36) calc(var(--px) + 34%), rgb(120 130 146 / 0.12) calc(var(--px) + 85%)); }
.c3d-fx-chroma > .fx-spec.fx-faint { background: linear-gradient(calc(115deg + var(--dx) * 22deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 70%), rgb(175 185 200 / 0.3) calc(var(--px) - 26%), rgb(232 238 246 / 0.6) var(--px), rgb(175 185 200 / 0.3) calc(var(--px) + 26%), transparent calc(var(--px) + 70%)); }

/* ===== v0.53.0 (user, 2026-11-20): 3D card finishes =====
   Anchored: the art and every finish layer stay fixed on the card (the art no longer drifts or grows against the tilt,
   which moved it off its masks and blurred the text at angles); the masks are made at the art's own size (finishes.js).
   The diagonal light line (lower left to upper right) is softer everywhere and gone from the metal finishes. */
.c3d-art, .c3d-fx > .fx-art { transform: none; }
.c3d-sheen::before { background: linear-gradient(135deg, transparent 36%, rgb(255 248 230 / 0.04) 45%, rgb(255 255 255 / 0.09) 50%, rgb(255 248 230 / 0.03) 55%, transparent 64%); }
.c3d-metal .c3d-sheen { opacity: 0; }

/* HOLOFOIL and REVERSE: the faction's colour with its neighbours, a little of other colours, metallic on a softer chrome
   base; the faction's colour strongest near the edges */
.c3d-fx-holo > .fx-chrome, .c3d-fx-reverse > .fx-chrome { opacity: calc(0.3 + var(--on) * 0.14);
  background: linear-gradient(calc(102deg + var(--dx) * 40deg + var(--tl, 0) * 40deg), #3a3d43 0%, #b9bec6 calc(var(--px) - 60%), #7a7e86 calc(var(--px) - 30%), #dfe3e8 var(--px), #777b83 calc(var(--px) + 30%), #b4b9c1 calc(var(--px) + 58%), #3c3f45 100%); }
.c3d-fx-holo > .fx-lacq, .c3d-fx-reverse > .fx-lacq { background:
    linear-gradient(calc(122deg + var(--dx) * 34deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 44%), rgb(255 255 255 / 0.1) calc(var(--px) - 20%), rgb(255 255 255 / 0.24) var(--px), rgb(255 255 255 / 0.1) calc(var(--px) + 20%), transparent calc(var(--px) + 44%)),
    radial-gradient(ellipse 60% 45% at calc(100% - var(--px)) calc(100% - var(--py)), color-mix(in srgb, var(--fa, #8a8f98) 26%, transparent), transparent 70%); }
.fx-spectrum { background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 50deg), var(--fa) 0%, var(--fa-p) 9%, var(--fa) 17%, var(--fa-x) 23%, var(--fa-m) 30%, var(--fa) 39%, var(--fa-y) 46%, var(--fa-p) 53%, var(--fa) 62%, var(--fa-z) 69%, var(--fa-m) 76%, var(--fa) 85%, var(--fa-p) 93%, var(--fa) 100%); }
.fx-spectrum2 { background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 50deg),
    color-mix(in srgb, var(--fa) 38%, #fff) 0%, color-mix(in srgb, var(--fa-p) 38%, #fff) 12%, color-mix(in srgb, var(--fa-x) 30%, #fff) 24%, color-mix(in srgb, var(--fa-m) 38%, #fff) 36%,
    color-mix(in srgb, var(--fa) 38%, #fff) 48%, color-mix(in srgb, var(--fa-y) 30%, #fff) 60%, color-mix(in srgb, var(--fa-p) 38%, #fff) 72%, color-mix(in srgb, var(--fa-z) 30%, #fff) 84%, color-mix(in srgb, var(--fa) 38%, #fff) 100%); }
.fx-spectrum, .fx-spectrum2 {
  -webkit-mask-image: linear-gradient(calc(115deg + var(--dx) * 30deg + var(--tl, 0) * 40deg), rgb(0 0 0 / 0.22) calc(var(--px) - 55%), #000 calc(var(--px) - 16%), #000 calc(var(--px) + 16%), rgb(0 0 0 / 0.22) calc(var(--px) + 55%));
          mask-image: linear-gradient(calc(115deg + var(--dx) * 30deg + var(--tl, 0) * 40deg), rgb(0 0 0 / 0.22) calc(var(--px) - 55%), #000 calc(var(--px) - 16%), #000 calc(var(--px) + 16%), rgb(0 0 0 / 0.22) calc(var(--px) + 55%)); }
/* the glint: a wide, soft metallic light in the faction's colour (was a narrow red-white-blue line) */
.fx-glint { opacity: calc(0.16 + var(--on) * 0.3);
  background: linear-gradient(calc(115deg + var(--dx) * 30deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 40%), color-mix(in srgb, var(--fa-m) 40%, transparent) calc(var(--px) - 16%), color-mix(in srgb, var(--fa-l) 46%, transparent) var(--px), color-mix(in srgb, var(--fa-p) 40%, transparent) calc(var(--px) + 16%), transparent calc(var(--px) + 40%)); }
/* the holofoil band in the faction's colours, a touch of the others at its middle */
.c3d-fx-holo > .c3d-foil-holo, .c3d-fx-reverse > .c3d-foil-holo { filter: none; opacity: calc(0.26 + var(--on) * 0.5);
  background-image: linear-gradient(calc(118deg + var(--dx) * 60deg), transparent 30%, color-mix(in srgb, var(--fa-m) 74%, transparent) 38%, color-mix(in srgb, var(--fa) 74%, transparent) 43%, color-mix(in srgb, var(--fa-x) 55%, transparent) 48%, color-mix(in srgb, var(--fa-p) 74%, transparent) 53%, color-mix(in srgb, var(--fa-l) 70%, transparent) 58%, transparent 66%); }
.c3d-fx-holo > .c3d-foil-holo::after, .c3d-fx-reverse > .c3d-foil-holo::after {
  background: linear-gradient(125deg, transparent 20%, color-mix(in srgb, var(--fa-m) 44%, transparent) 32%, color-mix(in srgb, var(--fa) 44%, transparent) 42%, color-mix(in srgb, var(--fa-y) 30%, transparent) 50%, color-mix(in srgb, var(--fa-p) 44%, transparent) 58%, transparent 76%) 0 0 / 260% 260%; }
/* the faction's colour near the edges: metallic colour (colour blend over the chrome), rising toward the edges */
.fx-fedge { mix-blend-mode: color; background: var(--fa); opacity: calc(0.62 + var(--on) * 0.12);
  -webkit-mask-image: radial-gradient(ellipse 74% 66% at 50% 50%, transparent 48%, rgb(0 0 0 / 0.5) 76%, #000 100%);
          mask-image: radial-gradient(ellipse 74% 66% at 50% 50%, transparent 48%, rgb(0 0 0 / 0.5) 76%, #000 100%); }
/* REVERSE on FULL ART: the foiled box's edges slightly feathered */
:root { --fx-winsoft: var(--fx-none); --fx-rim: var(--fx-none); }
.c3d-fx-reverse.fx-full > .fx-win { -webkit-mask: var(--fx-winsoft) 0 0 / 100% 100% no-repeat; mask: var(--fx-winsoft) 0 0 / 100% 100% no-repeat; }

/* a group of layers under one mask (PRISMATIC's sparkles in the whites); the sparkles inside keep their own light */
.fx-grp { mix-blend-mode: screen; opacity: 0; transition: opacity 0.35s ease; }
.fx-ready > .fx-grp { opacity: 1; }
.fx-grp > * { position: absolute; inset: 0; pointer-events: none; }
.fx-grp > .fx-spk { --dx: var(--sdx, 0); --dy: var(--sdy, 0); --ta: var(--tas, 0); }

/* PRISMATIC: only the whites are holographic, the rest of the card matte. The whites' rainbow moves through its colours
   and across the foil with the turn (was a fast hue turn over a still pattern), and a brighter spectral band follows
   the light over them */
.c3d-fx-prismatic > .fx-pholo.fx-w { filter: saturate(1.35) hue-rotate(calc(var(--dx) * 90deg + var(--tl, 0) * 70deg));
  background-position: clamp(0%, calc(50% + var(--dx) * 70%), 100%) clamp(0%, calc(50% + var(--dy) * 70%), 100%); }
.c3d-fx-prismatic.fx-ready > .fx-pholo.fx-w { opacity: 0.92; }
.c3d-fx-prismatic > .fx-pband.fx-w { mix-blend-mode: color-dodge; filter: none; background-size: 100% 100%; background-position: 0 0;
  background-image: linear-gradient(calc(118deg + var(--dx) * 40deg + var(--tl, 0) * 40deg), transparent calc(var(--px) - 32%), rgb(255 70 140 / 0.7) calc(var(--px) - 16%), rgb(255 205 80 / 0.85) calc(var(--px) - 6%), rgb(130 255 195 / 0.92) var(--px), rgb(80 170 255 / 0.85) calc(var(--px) + 6%), rgb(190 110 255 / 0.7) calc(var(--px) + 16%), transparent calc(var(--px) + 32%)); }
.c3d-fx-prismatic.fx-ready > .fx-pband { opacity: calc(0.4 + var(--on) * 0.55); }

/* CHROMA: the only light is the radial light from the centre (the top of the Battle Map arch); the silver whites, their
   banding and the lacquered blacks are lit from there too, with no diagonal sweep */
.c3d-fx-chroma > .fx-csil { background: radial-gradient(ellipse calc(46% + var(--on) * 16%) calc(34% + var(--on) * 12%) at 50% 46.6%, rgb(236 242 252 / 0.78), rgb(176 186 202 / 0.4) 45%, rgb(120 130 146 / 0.12) 80%, transparent 100%); }
.c3d-fx-chroma.fx-ready > .fx-csil { opacity: calc(0.42 + var(--on) * 0.3 + var(--tas, 0) * 0.14); }
.c3d-fx-chroma > .fx-ctint { background: radial-gradient(ellipse 80% 70% at 50% 46.6%, #f6f8fb 0%, #e8ebf0 35%, color-mix(in srgb, #a8afbb 86%, var(--c3d-accent, #8a8f98)) 100%); background-size: 100% 100%; background-position: 0 0; }
.c3d-fx-chroma.fx-ready > .fx-ctint { opacity: 0.8; }
.c3d-fx-chroma > .fx-lacq { background:
    radial-gradient(ellipse 48% 36% at 50% 46.6%, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.05) 60%, transparent 80%),
    radial-gradient(ellipse 70% 55% at 50% 46.6%, color-mix(in srgb, var(--c3d-accent, #8a8f98) 20%, transparent), transparent 75%); }
.c3d-fx-chroma.fx-ready > .fx-lacq { opacity: calc(0.3 + var(--on) * 0.22 + var(--tas, 0) * 0.12); }
.c3d-fx-chroma > .fx-rad-light { opacity: calc(0.32 + var(--on) * 0.18 + var(--tas, 0) * 0.12); }

/* POLARITY (rebuilt): one piece of embossed chrome. Until the chrome art is ready the plain art is greyed at contrast */
.c3d-fx-polarity:not(.fx-ready) > .fx-base { filter: grayscale(1) contrast(1.45); }
.fx-qchrome, .fx-qlacq, .fx-qsil, .fx-qoil, .fx-qfac, .fx-qemb-a, .fx-qemb-b, .fx-qrim, .fx-qrim-gl { opacity: 0; transition: opacity 0.35s ease;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* a broad, soft chrome light over the whole piece (no line) */
.fx-qchrome { mix-blend-mode: soft-light; background: radial-gradient(ellipse 90% 72% at var(--px) var(--py), #fff 0%, #a3a8b0 38%, #44474d 75%, #1b1c1f 100%); }
.fx-ready > .fx-qchrome { opacity: calc(0.4 + var(--on) * 0.22); }
/* the lacquered blacks: deep, with one soft reflection opposite the light */
.fx-qlacq { mix-blend-mode: screen; background: radial-gradient(ellipse 58% 40% at calc(100% - var(--px)) calc(100% - var(--py)), rgb(225 232 245 / 0.2), rgb(225 232 245 / 0.04) 55%, transparent 78%); }
.fx-ready > .fx-qlacq { opacity: calc(0.45 + var(--on) * 0.35); }
/* the silver whites: bright and shining where the light falls */
.fx-qsil { mix-blend-mode: color-dodge; background: radial-gradient(ellipse 70% 56% at var(--px) var(--py), rgb(255 255 255 / 0.92), rgb(196 204 216 / 0.5) 38%, rgb(130 138 150 / 0.16) 72%, transparent 100%); }
.fx-ready > .fx-qsil { opacity: calc(0.52 + var(--on) * 0.36); }
/* a subtle oil slick in the silver */
.fx-qoil { mix-blend-mode: multiply; background-repeat: no-repeat; background-size: 300% 300%;
  background-image: linear-gradient(calc(128deg + var(--dx) * 50deg + var(--tl, 0) * 40deg), #ffc2d8 0%, #ffe2b0 9%, #f2ffc0 18%, #bff5e8 27%, #c2d6ff 36%, #e2c8ff 45%, #ffc2d8 54%, #ffe2b0 63%, #f2ffc0 72%, #bff5e8 81%, #c2d6ff 90%, #e2c8ff 100%);
  background-position: clamp(0%, calc(50% + var(--dx) * 100%), 100%) clamp(0%, calc(50% + var(--dy) * 100%), 100%); }
.fx-ready > .fx-qoil { opacity: calc(0.34 + var(--on) * 0.14); }
/* the faction's colour: a metallic shine of its own colour where the light falls */
.fx-qfac { mix-blend-mode: color-dodge; background: radial-gradient(ellipse 72% 58% at var(--px) var(--py), var(--fa-l), color-mix(in srgb, var(--fa) 50%, transparent) 40%, transparent 85%); }
.fx-ready > .fx-qfac { opacity: calc(0.4 + var(--on) * 0.4); }
/* the relief: the edges facing the light brighten as the card turns toward it */
.fx-qemb-a, .fx-qemb-b { mix-blend-mode: screen; background: #eef2f8; }
.fx-ready > .fx-qemb-a { opacity: calc(0.28 - var(--dx) * 0.9 - var(--dy) * 0.9); }
.fx-ready > .fx-qemb-b { opacity: calc(0.12 + var(--dx) * 0.9 + var(--dy) * 0.9); }
/* holographic sparkles over the whole card */
.fx-spk.fx-hspk { filter: saturate(1.6) brightness(1.05); }
/* the very thin, highly metallic full-spectrum rainbow round the far edges: it turns round the card with the light */
.fx-qrim { -webkit-mask-image: var(--fx-rim); mask-image: var(--fx-rim); filter: saturate(1.5) brightness(1.1);
  background: conic-gradient(from calc(var(--dx) * 200deg + var(--dy) * 120deg + var(--tl, 0) * 90deg) at 50% 50%, #ff2a4f, #ff8a1f, #ffe13a, #3fe36a, #22d6e0, #3a6bff, #a64dff, #ff2a8f, #ff2a4f); }
.fx-ready > .fx-qrim { opacity: 0.95; }
.fx-qrim-gl { mix-blend-mode: color-dodge; -webkit-mask-image: var(--fx-rim); mask-image: var(--fx-rim);
  background: radial-gradient(ellipse 60% 45% at var(--px) var(--py), rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.25) 50%, transparent 80%); }
.fx-ready > .fx-qrim-gl { opacity: calc(0.45 + var(--on) * 0.4); }

/* ===== v0.54.0 (user, 2026-11-21): loading screen ===== */
/* the particles fade in more slowly at first */
.boot-swirl { animation: bootIn 1.8s ease-out both; }
/* CLICK TO ENTER fades out first; the zoom starts after a short pause (js/core/boot.js, ENTER_PAUSE) */
.boot.boot-going .boot-enter-w { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
/* the entry rush: the swirl's canvas covers the window at full resolution and the particles fly toward the viewer in it
   (js/core/vortex.js › rush); no CSS enlargement or filter, so nothing is stretched or blurred */
.boot.boot-rush .boot-swirl { position: fixed; left: 0 !important; top: 0 !important; width: 100vw; height: 100vh; transform: none; translate: none; scale: none; filter: none; transition: none; animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .boot-swirl { animation: none; } }

/* ===== v1.54.0 (user, 2026-11-21) ===== */
/* card page Lore: a space above EXPLORE <FACTION>; faction pages: a space above DISCOVER THE LORE */
.lore-fac-go { margin-top: 18px; }
.fhero .btn-lore, .fpage .btn-lore { margin-top: 22px; }
/* the GAME ACCOUNT box: the text on the left, the email field and SUBSCRIBE stacked on the right (one column on phones) */
.sbox-in.sbox-side { width: min(100% - 32px, 760px); }
.sbox-side .signup { flex-wrap: nowrap; align-items: center; }
.sbox-side .signup-t { flex: 1 1 0; min-width: 0; }
.sbox-side .signup-row { flex: 0 0 260px; flex-direction: column; max-width: none; }
.sbox-side .signup-row .md-btn { width: 100%; }
@media (max-width: 620px) { .sbox-side .signup { flex-wrap: wrap; } .sbox-side .signup-row { flex: 1 1 100%; } }
/* phones: the search cursor is visible in the ember colour; .ss-repaint makes the phone redraw the box once the keyboard is open */
.ss-box input { caret-color: var(--ember-2); }
.ss.ss-repaint .ss-box input { transform: translateZ(0); }

/* ===== v1.55.0 (user, 2026-11-21) ===== */
/* Lore Overview: "Forge the future" larger; the Codex box now comes before the narrative overview */
.st-ov-t > p.st-ov-end { font-size: clamp(1.4rem, 1rem + 1.3vw, 1.9rem); letter-spacing: 0.14em; }
.page-lore .st-codex + .st-overview { margin-top: 10px; }
/* phones and narrow windows: the open subsection's links scroll sideways. The row grew as wide as all its links (a flex
   item's automatic minimum width), so the page clipped the ones off screen and nothing could scroll */
@media (max-width: 900px) {
  .cp-side.cp-side2, .cp-side2 .cp-sg-b { min-width: 0; max-width: 100%; }
  .cp-side2 .cp-sg-in { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .cp-has-side > .cp-main, .cp-has-side { min-width: 0; }
}
/* home: the four orange facts spread further from WHAT IS AXION FORGE? and from each other */
.md-box.md-flank { gap: clamp(14px, 4vw, 64px); }
.md-flank > :not(.md-img) { margin: 0 clamp(8px, 3vw, 44px); }
/* header CODEX: the word slowly fades between its colour and gold; the sigil glows now and then */
.tn-codex .tn-l { animation: tnCodexGold 6s ease-in-out infinite; }
@keyframes tnCodexGold { 0%, 100% { color: inherit; text-shadow: none; } 50% { color: #f3cf7a; text-shadow: 0 0 10px rgb(255 200 110 / 0.45); } }
.tn-codex .tn-sigil { animation: tnCodexGlow 9s ease-in-out infinite; }
@keyframes tnCodexGlow { 0%, 72%, 100% { filter: none; } 82% { filter: drop-shadow(0 0 9px rgb(255 205 120 / 0.9)) brightness(1.2); } }
.tn-codex:hover .tn-l, .tn-codex:focus-visible .tn-l, .tn-codex:hover .tn-sigil, .tn-codex:focus-visible .tn-sigil { animation: none; }   /* the hover look takes over */
@media (prefers-reduced-motion: reduce) { .tn-codex .tn-l, .tn-codex .tn-sigil { animation: none; } }
/* Media Kit (was Press & Creator Kit): the game-at-a-glance text at the top of its section, the four facts small in one
   row beside it; "More art" centred with room above */
.cpage[data-path="media-kit"] .md-split { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }
.cpage[data-path="media-kit"] .md-split-t > :first-child { margin-top: 0; }
.cpage[data-path="media-kit"] .md-split-m > .md-facts { grid-template-columns: repeat(4, auto); gap: 10px 14px; justify-content: end; }
.cpage[data-path="media-kit"] .md-split-m > .md-facts .md-img { width: clamp(48px, 4.4vw, 66px); }
.cpage[data-path="media-kit"] .md-gallery + .md-btns { justify-content: center; margin-top: 22px; }
@media (max-width: 760px) { .cpage[data-path="media-kit"] .md-split { grid-template-columns: minmax(0, 1fr); } .cpage[data-path="media-kit"] .md-split-m > .md-facts { justify-content: center; } }
/* Community Hub: Ways to get involved as two by two tiles, each with its icon on top and its button centred */
.md-free.md-x-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.md-x-hub .md-act { flex-direction: column; align-items: center; text-align: center; padding: 20px 18px; }
.md-x-hub .md-act-ico { width: 54px; height: 54px; }
.md-x-hub .md-act-ico > .md-ico { width: 32px; height: 32px; }
.md-x-hub .md-act-t { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
.md-x-hub .md-act-t > p { flex: 1; }
.md-x-hub .md-btns { justify-content: center; margin-top: 10px; }
@media (max-width: 700px) { .md-free.md-x-hub { grid-template-columns: minmax(0, 1fr); } }
/* card page Lore: each lore term a small centred tile (kind, name, what it opens), all the same height */
.lore-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.lore .lore-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 84px; padding: 10px 12px; text-align: center; line-height: 1.25; }
.lore-chip .lore-kind { color: var(--dim); }
.lore-chip .lore-name { font: 600 0.92rem/1.25 var(--body); color: #f0e2c4; }
.lore-chip .lore-go { font: 600 0.58rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); opacity: 0.6; transition: opacity 0.2s ease; }
.lore-chip:hover .lore-go, .lore-chip:focus-visible .lore-go { opacity: 1; }

/* ===== v1.56.0 (user, 2026-11-21) ===== */
/* home hero: a little room above and below the pitch, wide enough for two lines */
.hero-in-home .hero-pitch, .hero-loop-b .hero-pitch { max-width: min(84ch, 100%); margin-block: 14px; text-wrap: balance; }
/* Media Kit: the four facts slightly larger, two by two; room under VIEW MORE */
.cpage[data-path="media-kit"] .md-split-m > .md-facts { grid-template-columns: repeat(2, auto); gap: 12px 16px; }
.cpage[data-path="media-kit"] .md-split-m > .md-facts .md-img { width: clamp(56px, 5.2vw, 78px); }
.cpage[data-path="media-kit"] .md-gallery + .md-btns { margin-bottom: 26px; }
/* card page lore tiles: without the Glossary line, kind and name stay centred */
.lore .lore-chip { min-height: 70px; }
/* header CODEX (replaces v1.55.0's soft fade): every 10 s the word fades in to gold, a quick bright sweep crosses it so
   it reads as metal, then it fades back; the sigil glows at the same moment */
.tn-codex .tn-l { animation: none; background: linear-gradient(100deg, var(--tc, currentColor) 0 40%, #fff6d8 48%, var(--tc, currentColor) 56% 100%) 120% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .tn-codex .tn-l { --tc: #cfc6b6; color: transparent; animation: tnCodexMetal 10s ease-in-out infinite; }
}
@keyframes tnCodexMetal {
  0%, 62% { --tc: #cfc6b6; background-position: 120% 0; filter: none; }
  70% { --tc: #e6bd62; background-position: 120% 0; filter: drop-shadow(0 0 6px rgb(255 200 110 / 0.5)); }
  78% { --tc: #e6bd62; background-position: -20% 0; filter: drop-shadow(0 0 8px rgb(255 210 130 / 0.7)); }
  88% { --tc: #e6bd62; background-position: -20% 0; filter: drop-shadow(0 0 4px rgb(255 200 110 / 0.35)); }
  100% { --tc: #cfc6b6; background-position: -20% 0; filter: none; }
}
@property --tc { syntax: "<color>"; inherits: true; initial-value: #cfc6b6; }
.tn-codex .tn-sigil { animation: tnCodexGlow 10s ease-in-out infinite; }
@keyframes tnCodexGlow { 0%, 66%, 100% { filter: none; } 76% { filter: drop-shadow(0 0 10px rgb(255 205 120 / 0.95)) brightness(1.25); } }
.tn-codex:hover .tn-l, .tn-codex:focus-visible .tn-l { animation: none; --tc: #ffe7b0; }
@media (prefers-reduced-motion: reduce) { .tn-codex .tn-l { animation: none; } }
/* Rulebook › Rules boxes: VIEW where DOWNLOAD was, DOWNLOAD at the box's right edge */
.cpage[data-path="resources/rulebook"] .md-x-wide .md-btns { display: flex; justify-content: space-between; width: 100%; gap: 10px; }
/* book reader: a page shown alone in a two-page view (the cover, the back cover) stands centred, at the same size as in
   a spread (was pushed to the right or left half) */
@media (min-width: 900px) {
  .bk .bk-spread:not(.bk-two) { grid-template-columns: minmax(0, 50%); justify-content: center; }
  .bk .bk-spread:not(.bk-two) .bk-right, .bk .bk-spread:not(.bk-two) .bk-left { grid-column: 1; }
  .bk-one .bk-spread:not(.bk-two) { grid-template-columns: minmax(0, 1fr); }
}
