/* Cyrillic: body text from Inter, headings from Cormorant (Cinzel has no Cyrillic), joined into the same families
   by unicode-range so every heading rule keeps working */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/cormorant-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  size-adjust: 112%;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/cinzel-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Turkish letters (ğ ş İ ı) live in the latin-ext files; browsers fetch them only on pages that use them */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url(/fonts/cinzel-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =====================================================================
   AionBot — "the site is the game UI" (AION 2 flavour)
   Every surface is one of five frames: the gold-riveted window frame,
   the blue-black tooltip, the parchment page, the lacquer action button
   and the loading bar. All ornaments are original inline SVG / CSS.
   ===================================================================== */

:root {
  --bg: #050811;
  /* umber frame fills */
  --umber-900: #05080e;
  --umber-800: #0b0f18;
  --umber-700: #0f1523;
  --umber-600: #141d31;
  /* tooltip */
  --ink: #081022;
  --ink-line: #5d79a8;
  /* text on dark */
  --text: #e6ecf6;
  --muted: #a9b7cf;
  --dim: #97a5bf;
  /* gold */
  --gold: #e9c467;
  --gold-hi: #fbe7a8;
  --gold-lo: #b8903a;
  --gold-deep: #7d5c1e;
  --bronze: #7d8fb0;
  /* lacquer (azure action button) */
  --lacquer-hi: #3f73d6;
  --lacquer: #1c3f93;
  --lacquer-lo: #0d1f52;
  /* parchment */
  --parchment: #ebe6d8;
  --parchment-lo: #d7cfba;
  --ink-text: #0e1830;
  --ink-text-2: #223767;
  /* item quality */
  --q-common: #e6ecf6;
  --q-rare: #4fa3ff;
  --q-epic: #b76cff;
  --q-legend: #ff9a2e;
  /* states + chat */
  --ok: #5fd36a;
  --warn: #f2c14e;
  --danger: #ff7a6a;
  --guild: #58d85a;
  --whisper: #ff80ff;
  --arcane: #7b6cf6;
  --arcane-hi: #bfe9ff;
  --line: rgba(140, 200, 255, 0.14);
  /* aether (Aion accent) */
  --aether: #6fd3ff;
  --aether-hi: #c9f1ff;
  --abyss: #8a4cff;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --intro: 0.9s;
  /* shadows */
  --shadow-frame: 0 0 0 1px #000, 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-rim: 0 0 0 1px #000, 0 0 0 2px var(--bronze), 0 0 0 3px #000;
  --shadow-inset: inset 0 1px 0 rgba(255, 220, 150, 0.18), inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 18px rgba(232, 184, 74, 0.45);
  --glow-text: 0 1px 0 #000, 0 0 12px rgba(0, 0, 0, 0.8);
  /* ornaments (original art, inline) */
  --frame-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23f7dc92'/><stop offset='.5' stop-color='%23b4812e'/><stop offset='1' stop-color='%23223c77'/></linearGradient></defs><rect x='1.5' y='1.5' width='57' height='57' fill='none' stroke='%23000'/><rect x='4' y='4' width='52' height='52' fill='none' stroke='url(%23g)' stroke-width='3'/><rect x='4' y='4' width='52' height='52' fill='none' stroke='%23fff3cf' stroke-opacity='.35' stroke-width='.6'/><rect x='6.5' y='6.5' width='47' height='47' fill='none' stroke='%23000' stroke-opacity='.8'/><g fill='url(%23g)' stroke='%23000'><path d='M9 1 17 9 9 17 1 9z'/><path d='M51 1 59 9 51 17 43 9z'/><path d='M9 43 17 51 9 59 1 51z'/><path d='M51 43 59 51 51 59 43 51z'/></g><g fill='%2305080e'><path d='M9 5.5 12.5 9 9 12.5 5.5 9z'/><path d='M51 5.5 54.5 9 51 12.5 47.5 9z'/><path d='M9 47.5 12.5 51 9 54.5 5.5 51z'/><path d='M51 47.5 54.5 51 51 54.5 47.5 51z'/></g><g fill='%23fff3cf' opacity='.9'><circle cx='9' cy='9' r='1.2'/><circle cx='51' cy='9' r='1.2'/><circle cx='9' cy='51' r='1.2'/><circle cx='51' cy='51' r='1.2'/></g></svg>");
  --fibre: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .24  0 0 0 0 .10  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  --rune-tile: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='none' stroke='%23e8b84a' stroke-opacity='.55'><circle cx='60' cy='60' r='40'/><circle cx='60' cy='60' r='30' stroke-dasharray='3 6'/><path d='M60 14 106 60 60 106 14 60z'/><path d='M60 36 84 60 60 84 36 60z'/><path d='M60 4v12M60 104v12M4 60h12M104 60h12'/></g><g fill='%23e8b84a' fill-opacity='.6'><circle cx='60' cy='60' r='2'/><circle cx='8' cy='8' r='1.5'/><circle cx='112' cy='8' r='1.5'/><circle cx='8' cy='112' r='1.5'/><circle cx='112' cy='112' r='1.5'/></g></svg>");
  --diamond-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M11 4.5 17.5 11 11 17.5 4.5 11z' fill='%23f7dc92' stroke='%23000'/><path d='M11 8 14 11 11 14 8 11z' fill='%23223c77'/></svg>");
  /* quest-objective tick (masked, so it takes any colour) */
  --tick-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.5 5 9.5 10.5 3' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  /* wax seal: 12-bump lacquer disc with a gold rim (the ribbon pin) */
  --seal-svg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 26 26'><path d='M21.3 12.0 Q24.1 15.2 20.1 16.6 Q20.9 20.9 16.7 20.1 Q15.2 24.1 12.0 21.3 Q8.8 24.1 7.4 20.1 Q3.1 20.9 3.9 16.6 Q-0.1 15.2 2.7 12.0 Q-0.1 8.8 3.9 7.3 Q3.1 3.1 7.3 3.9 Q8.8 -0.1 12.0 2.7 Q15.2 -0.1 16.7 3.9 Q20.9 3.1 20.1 7.3 Q24.1 8.8 21.3 12.0Z' fill='%236b1309' stroke='%233f0804' stroke-width='.8'/><circle cx='12' cy='12' r='6.5' fill='none' stroke='%23f7dc92' stroke-width='1.2'/><circle cx='9.5' cy='8.5' r='2' fill='%23fff' fill-opacity='.22'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { background: var(--bg); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0; }
::selection { background: rgba(232, 184, 74, 0.35); color: #fff8e6; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; box-shadow: 0 0 0 5px #000; border-radius: 3px; }
.parchment :focus-visible { outline-color: var(--gold-deep); box-shadow: 0 0 0 5px rgba(255, 246, 222, 0.8); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* film grain over everything, very subtle (non-WebGL fallback only) */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* =====================================================================
   ORNAMENT SYSTEM
   ===================================================================== */

/* 1. gold rivet frame: 9-slice border-image (square by design) */
/* `.panel` (account / order / sign-in windows) and `.guide-article` are frames too */
.frame, .panel, .guide-article, .guide-more, .center-state > div {
  position: relative;
  border: 12px solid transparent;
  border-image: var(--frame-svg) 20 / 12px / 0 stretch;
  border-radius: 0;
  background: rgba(11, 15, 24, 0.94);
  box-shadow: var(--shadow-frame);
}
.frame::before, .panel::before, .guide-article::before, .guide-more::before, .center-state > div::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(247, 220, 146, 0.14), inset 0 0 40px rgba(0, 0, 0, 0.6);
}
.frame > *, .panel > *, .guide-article > *, .guide-more > *, .center-state > div > * { position: relative; }
/* one-shot gold edge sweep when a framed panel reveals */
.js .frame[data-reveal]:not(.reviews):not(.plan).in::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(110deg, transparent 40%, rgba(247, 220, 146, 0.28) 50%, transparent 60%) no-repeat;
  background-size: 300% 100%;
  animation: sweep 1.1s var(--ease) var(--d, 0s) forwards;
}
@keyframes sweep { from { background-position: 100% 0; opacity: 1; } to { background-position: 0 0; opacity: 0; } }

/* 2. tooltip frame: see .feature / .guide-card (the tooltip fill lives on the components that use it) */

/* 3. parchment (the guide body carries the same fill in its own rule) */
.parchment {
  color: var(--ink-text); border-radius: 3px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 246, 222, 0.45), transparent 75%),
    var(--fibre),
    linear-gradient(180deg, var(--parchment), var(--parchment-lo));
  background-size: auto, 220px 220px, auto;
  box-shadow: inset 0 0 0 1px rgba(26, 45, 90, 0.45), inset 0 0 32px rgba(31, 53, 106, 0.35), 0 0 0 1px #000, 0 6px 20px -10px #000;
}
.parchment ::selection { background: rgba(180, 129, 46, 0.35); color: var(--ink-text); }
/* ink-gold links: 7.35:1 on parchment, 5.9:1 on parchment-lo; brighter gold-deep only on hover */
.parchment a { color: #1a2c58; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; overflow-wrap: anywhere; }
.parchment a:hover { color: var(--gold-deep); }

/* 4. loading bar: .sub-bar (account) and .curtain::after (intro) carry the trough + gold fill */
/* 5. ability icon frame: .logo-mark, .feature-icon, .plan-icon, .coin-icon, .portrait, .pay-coin, .tg-avatar */
/* 6. quest marker (rotated square): .chapter, .step-num, .faq-icon, .notice, .guide-more a */

/* 7. metal text */
.metal {
  background: linear-gradient(180deg, #fff6dc 0%, #ffe4a8 30%, #f0c26a 52%, #b9822f 80%, #8a5e1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #0f1a33) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 26px; border-radius: 4px; border: 1px solid #000;
  font: 700 15px/1 var(--display); letter-spacing: 0.06em; cursor: pointer; white-space: nowrap;
  transition: filter 0.32s var(--ease), box-shadow 0.32s var(--ease), background-color 0.32s, color 0.32s, translate 0.18s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { --h: 56px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn > span { position: relative; display: inline-block; }
.btn:active { translate: 0 1px; }

/* gilded plate — the default primary (hero, header, choose plan) */
.btn-gold {
  color: #091021;
  background: linear-gradient(180deg, #fff3cf 0%, #f7dc92 18%, #e8b84a 50%, #b4812e 88%, #d9ad52 100%);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(21, 37, 73, 0.45), 0 8px 24px -10px rgba(0, 0, 0, 0.9), var(--glow-gold);
  text-shadow: 0 1px 0 rgba(255, 245, 215, 0.5);
}
.btn-gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.btn-gold:hover { filter: brightness(1.07); box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(21, 37, 73, 0.45), 0 8px 24px -10px rgba(0, 0, 0, 0.9), 0 0 28px rgba(232, 184, 74, 0.6); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:active { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, inset 0 2px 6px rgba(21, 37, 73, 0.5); }

/* red lacquer — the "Accept" button: checkout, sign-in, chat send */
.btn-lacquer, .checkout .btn-gold, .auth-form .btn-gold, .composer .btn-gold {
  color: #ffd54a;
  background: linear-gradient(180deg, var(--lacquer-hi), var(--lacquer) 52%, var(--lacquer-lo));
  box-shadow: 0 0 0 1px var(--bronze), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 220, 150, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.55), 0 8px 24px -10px rgba(0, 0, 0, 0.9);
  text-shadow: 0 1px 0 #000;
}
.btn-lacquer::after, .checkout .btn-gold::after, .auth-form .btn-gold::after, .composer .btn-gold::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 230, 170, 0.35) 50%, transparent 70%); }
.btn-lacquer:hover, .checkout .btn-gold:hover, .auth-form .btn-gold:hover, .composer .btn-gold:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 220, 150, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.55), var(--glow-gold);
}
.btn-lacquer:active, .checkout .btn-gold:active, .auth-form .btn-gold:active, .composer .btn-gold:active { box-shadow: 0 0 0 1px var(--bronze), 0 0 0 2px #000, inset 0 2px 6px rgba(0, 0, 0, 0.7); }

/* bronze secondary */
.btn-ghost {
  color: var(--text); font-weight: 600; font-size: 14px;
  background: linear-gradient(#172033, #090f1a);
  box-shadow: var(--shadow-rim), var(--shadow-inset);
}
.btn-ghost:hover { background: linear-gradient(var(--umber-600), #0c1220); color: var(--gold-hi); }
.btn-ghost:active { box-shadow: var(--shadow-rim), inset 0 2px 6px rgba(0, 0, 0, 0.7); }

/* text button */
.btn-link { border-color: transparent; padding: 0 12px; font: 600 13px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); text-shadow: var(--glow-text); }
.btn-link::after {
  content: ''; width: 10px; height: 10px; background: var(--gold); transition: background-color 0.32s, translate 0.32s var(--ease);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.btn-link:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold-lo); }
.btn-link:hover::after { background: var(--gold-hi); translate: 0 2px; }
.btn:disabled, .btn[aria-disabled='true'] { filter: grayscale(0.8) brightness(0.65); cursor: not-allowed; }
.btn:disabled:hover { filter: grayscale(0.8) brightness(0.65); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  background: linear-gradient(#0e1420, #060910);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 var(--bronze), 0 2px 0 #000, 0 10px 30px -10px #000;
  transition: height 0.4s var(--ease), background-color 0.4s;
}
.site-header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold-lo) 15%, var(--gold-hi) 50%, var(--gold-lo) 85%, transparent);
}
.site-header.scrolled {
  height: 56px; background: linear-gradient(rgba(14, 20, 32, 0.92), rgba(6, 9, 16, 0.92));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo { display: inline-flex; align-items: center; gap: 12px; font: 700 17px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
.logo-mark {
  flex: none; width: 32px; height: 32px; padding: 5px; border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.45), inset 0 -6px 8px rgba(0, 0, 0, 0.6);
}
.nav { display: flex; align-self: stretch; }
.nav a {
  position: relative; display: inline-flex; align-items: center; padding: 0 14px;
  font: 600 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.32s;
}
.nav a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; scale: 0 1; transition: scale 0.32s var(--ease);
  background: linear-gradient(90deg, transparent, var(--gold-lo) 15%, var(--gold-hi) 50%, var(--gold-lo) 85%, transparent);
}
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after { scale: 1 1; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.link-order { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; white-space: nowrap; font: 600 13px/1 var(--display); letter-spacing: 0.08em; color: var(--gold); transition: color 0.32s; }
.link-order:hover { color: var(--gold-hi); }

/* =====================================================================
   HERO — the zone-name reveal
   ===================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; padding: 120px var(--gutter) 96px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::after {
  content: ''; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.orb-a { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, #2c5aa8, transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.orb-b { width: 46vw; height: 46vw; right: -12vw; bottom: -16vw; background: radial-gradient(circle, #6a2c8c, transparent 65%); opacity: 0.4; animation: drift-b 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(10vw, 8vw) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-8vw, -6vw) scale(1.15); } }
.rune {
  position: absolute; left: 50%; top: 50%; width: min(900px, 130vw); aspect-ratio: 1;
  translate: -50% -50%; color: var(--aether-hi); opacity: 0.55;
}
.rune-spin { transform-origin: 300px 300px; animation: spin 140s linear infinite; }
.rune-spin-rev { transform-origin: 300px 300px; animation: spin 90s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner { position: relative; max-width: 980px; text-align: center; display: grid; justify-items: center; gap: 26px; }
.hero-eyebrow { text-shadow: var(--glow-text); }
.dot { width: 10px; height: 10px; rotate: 45deg; background: var(--gold-hi); box-shadow: 0 0 0 1px #000, var(--glow-gold); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 1px #000, 0 0 0 0 rgba(232, 184, 74, 0.7); } 80%, 100% { box-shadow: 0 0 0 1px #000, 0 0 0 12px rgba(232, 184, 74, 0); } }

.hero-title { font: 700 clamp(44px, 7vw, 96px)/1 var(--display); letter-spacing: 0.01em; text-wrap: balance; }
.hero-title .word {
  display: inline-block; padding: 0.06em 0.02em 0.1em; margin: -0.06em 0 -0.1em; vertical-align: top;
  filter: drop-shadow(0 2px 0 #0f1a33) drop-shadow(0 6px 24px rgba(0, 0, 0, 0.7));
}
.hero-title .word > span {
  display: inline-block;
  background: linear-gradient(180deg, #fff6dc 0%, #ffe4a8 30%, #f0c26a 52%, #b9822f 80%, #8a5e1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title .word > .accent {
  background:
    linear-gradient(100deg, transparent 38%, rgba(255, 248, 224, 0.95) 50%, transparent 62%),
    linear-gradient(180deg, #fff6dc 0%, #ffe4a8 30%, #f0c26a 52%, #b9822f 80%, #8a5e1c 100%);
  background-size: 250% 100%, 100% 100%; background-position: 100% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0, 0 0; } to { background-position: -150% 0, 0 0; } }
.hero-text { max-width: 560px; font-size: clamp(16px, 1.7vw, 18px); color: var(--text); text-wrap: pretty; text-shadow: var(--glow-text); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.hero-pay { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; text-shadow: var(--glow-text); }
.hero-pay b { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.hero-pay i { width: 1px; height: 14px; background: var(--bronze); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.pay-coin {
  width: 28px; height: 28px; padding: 4px; display: grid; place-items: center; border-radius: 5px; color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.4);
}
.pay-coin svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 0 #000); }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 44px; height: 52px; }
.scroll-cue::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: linear-gradient(var(--gold), transparent); }
.scroll-cue span { position: absolute; left: 50%; top: 2px; width: 7px; height: 7px; margin-left: -3.5px; rotate: 45deg; background: var(--gold-hi); box-shadow: 0 0 0 1px #000, var(--glow-gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; translate: 0 -4px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 32px; } }

/* hero intro (only when JS runs): zone text contracts as it fades in */
.js .hero-title .word > span { opacity: 0; translate: 0 0.25em; letter-spacing: 0.12em; filter: blur(8px); }
.js .hero-eyebrow, .js .hero-text, .js .hero-cta, .js .hero-pay { opacity: 0; translate: 0 18px; }
.js .rune { opacity: 0; scale: 0.9; }
.loaded .hero-title .word > span {
  opacity: 1; translate: 0 0; letter-spacing: 0.01em; filter: blur(0);
  transition: opacity 1.2s var(--ease), translate 1.6s var(--ease), letter-spacing 1.6s var(--ease), filter 1.4s var(--ease);
  transition-delay: calc(var(--intro) + var(--i) * 0.1s);
}
.loaded .hero-eyebrow, .loaded .hero-text, .loaded .hero-cta, .loaded .hero-pay { opacity: 1; translate: 0 0; transition: opacity 1.2s var(--ease), translate 1.4s var(--ease); }
.loaded .hero-eyebrow { transition-delay: calc(var(--intro) - 0.2s); }
.loaded .hero-text { transition-delay: calc(var(--intro) + 0.85s); }
.loaded .hero-cta { transition-delay: calc(var(--intro) + 1.05s); }
.loaded .hero-pay { transition-delay: calc(var(--intro) + 1.25s); }
.loaded .rune { opacity: 0.28; scale: 1; transition: opacity 2.4s var(--ease), scale 2.8s var(--ease); }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0 0; overflow-x: clip; }
.section-head { position: relative; display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .eyebrow { gap: 14px; }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ''; width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo) 40%, var(--gold-hi)); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.section-head .eyebrow::after { scale: -1 1; }
.chapter {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px; isolation: isolate;
  font: 700 12px/1 var(--display); letter-spacing: 0; color: var(--gold-hi); text-shadow: 0 1px 0 #000;
}
.chapter::before {
  content: ''; position: absolute; inset: 4px; z-index: -1; rotate: 45deg; background: var(--umber-900);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000;
}
.section-head h2 { font: 600 clamp(30px, 4.4vw, 52px)/1.08 var(--display); letter-spacing: 0.02em; color: var(--gold-hi); text-wrap: balance; text-shadow: var(--glow-text); }
.section-sub { color: var(--muted); font-size: 17px; text-shadow: var(--glow-text); }
/* "zone discovered": the heading contracts into place */
.js .section-head[data-reveal] h2 { opacity: 0; letter-spacing: 0.18em; transition: opacity 1.2s var(--ease), letter-spacing 1.4s var(--ease); }
.js .section-head[data-reveal].in h2 { opacity: 1; letter-spacing: 0.02em; }

/* scroll reveal: frames rise into place (translate only, so inline JS transforms compose) */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity 0.7s var(--ease), translate 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .plan[data-reveal] { translate: 0 40px; }
.js .step[data-reveal] { translate: -24px 0; }
.js .faq-item[data-reveal] { translate: 0 12px; }
/* :not(#_) lifts specificity above every variant above */
.js [data-reveal].in:not(#_) { opacity: 1; translate: 0 0; }

/* =====================================================================
   FEATURES — item tooltips with ability icons
   ===================================================================== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.feature {
  --mx: 50%; --my: 0%;
  position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-content: start;
  padding: 18px 18px 22px; border-radius: 4px;
  background:
    linear-gradient(var(--ink-line), var(--ink-line)) 50% calc(100% - 9px) / 60% 1px no-repeat,
    linear-gradient(180deg, rgba(14, 12, 26, 0.95), rgba(6, 5, 14, 0.97));
  border: 1px solid var(--ink-line); box-shadow: 0 0 0 1px #000, 0 20px 40px -24px #000;
  transform-style: preserve-3d; transition: border-color 0.32s;
}
.feature::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(158, 199, 255, 0.1), transparent 45%);
}
.feature::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(183, 108, 255, 0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.feature:hover { border-color: #9a95bd; }
.feature:hover::before, .feature:hover::after { opacity: 1; }
.feature > * { transform: translateZ(30px); }
.feature-icon {
  position: relative; grid-row: 1 / 3; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 7px; color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold-deep), 0 0 0 4px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.45), inset 0 -10px 12px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.32s;
}
.feature-icon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%); }
.feature:hover .feature-icon { box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold-lo), 0 0 0 4px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.6), inset 0 -10px 12px rgba(0, 0, 0, 0.6), var(--glow-gold); }
.feature-icon svg { width: 28px; height: 28px; stroke-width: 1.75; filter: drop-shadow(0 1px 0 #000); }
.feature h3 { align-self: start; font: 700 18px/1.15 var(--display); letter-spacing: 0.02em; color: var(--q-epic); text-shadow: 0 1px 0 #000; }
.feature p { grid-column: 2; color: var(--text); font-size: 15px; margin-top: 10px; }

/* =====================================================================
   INSIDE THE APP — the addon window sits in a bigger options-panel plinth
   ===================================================================== */
#app .abw-wrap { isolation: isolate; }
#app .abw-wrap::before {
  content: ''; position: absolute; inset: -18px; z-index: -1; pointer-events: none;
  border: 14px solid transparent; border-image: var(--frame-svg) 20 / 14px / 0 stretch;
  background: rgba(5, 8, 14, 0.9); box-shadow: var(--shadow-frame);
}
.qp-caption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font: 600 12px/1.5 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; }
.qp-caption::before, .qp-caption::after { content: ''; flex: 0 1 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo) 40%, var(--gold-hi)); }
.qp-caption::after { scale: -1 1; }

/* =====================================================================
   HOW IT WORKS — quest objectives
   ===================================================================== */
.steps-wrap { max-width: 820px; margin: 0 auto; padding: 8px 28px; }
.steps-line { position: absolute; left: 49px; top: 52px; width: 2px; height: calc(100% - 104px); overflow: visible; z-index: 1; }
.steps-line line { stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--p, 0) * 1000); filter: drop-shadow(0 0 6px rgba(232, 184, 74, 0.8)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.steps::before { content: ''; position: absolute; left: 21px; top: 44px; bottom: 44px; width: 2px; background: rgba(232, 184, 74, 0.16); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(232, 184, 74, 0.16); text-align: left; }
.step:last-child { border-bottom: 0; }
.step-num {
  --lit: 0;
  grid-row: 1 / 3; position: relative; display: grid; place-items: center; width: 44px; height: 44px; isolation: isolate;
  font: 700 16px/1 var(--display); color: var(--gold); text-shadow: 0 1px 0 #000;
}
.step-num::before {
  content: ''; position: absolute; inset: 6px; z-index: -1; rotate: 45deg; background: var(--umber-900);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000;
}
/* objective complete: a green mark lights up as the progress line passes */
.step-num::after {
  content: ''; position: absolute; right: -1px; top: -1px; width: 12px; height: 12px; rotate: 45deg; background: var(--ok);
  box-shadow: 0 0 0 1px #000, 0 0 8px var(--ok); opacity: var(--lit); transition: opacity 0.4s;
}
.step:nth-child(1) .step-num { --lit: clamp(0, calc((var(--p, 0) - 0.2) * 10), 1); }
.step:nth-child(2) .step-num { --lit: clamp(0, calc((var(--p, 0) - 0.55) * 10), 1); }
.step:nth-child(3) .step-num { --lit: clamp(0, calc((var(--p, 0) - 0.9) * 10), 1); }
@supports (color: color-mix(in srgb, red, blue)) {
  .step-num { color: color-mix(in srgb, var(--ok) calc(var(--lit) * 100%), var(--gold)); }
}
.step h3 { align-self: center; font: 700 19px/1.2 var(--display); letter-spacing: 0.02em; color: var(--gold-hi); }
.step p { grid-column: 2; position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; margin-top: 6px; }
/* objective stud: a dim gold tick that turns --ok once the step is revealed (.in) */
.step p::before {
  content: ''; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; background: var(--gold-lo);
  -webkit-mask: var(--tick-svg) center / contain no-repeat; mask: var(--tick-svg) center / contain no-repeat;
  transition: background-color 0.4s;
}
.step.in p::before { background: var(--ok); }
.step.in .step-num::after { opacity: max(var(--lit), 0.35); }

/* =====================================================================
   PRICING — three items on the vendor shelf (rare / epic / legendary)
   ===================================================================== */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  --q: var(--q-common); --q-glow: rgba(236, 225, 200, 0.2);
  position: relative; display: grid; gap: 20px; align-content: start; padding: 0 22px 24px;
  background: rgba(11, 15, 24, 0.94);
  transition: translate 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.plan:nth-child(1) { --q: var(--q-rare); --q-glow: rgba(79, 163, 255, 0.32); }
.plan:nth-child(3) { --q: var(--q-legend); --q-glow: rgba(255, 154, 46, 0.32); }
.plan.popular { --q: var(--q-epic); --q-glow: rgba(183, 108, 255, 0.36); }
.plan:hover { translate: 0 -4px; box-shadow: var(--shadow-frame), 0 0 24px var(--q-glow); }
.plan-head {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; margin: 0 -22px; padding: 18px 20px;
  background: linear-gradient(180deg, rgba(11, 10, 20, 0.9), transparent); border-bottom: 1px solid rgba(109, 106, 140, 0.5);
}
.plan-icon {
  position: relative; width: 44px; height: 44px; border-radius: 7px;
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.45), inset 0 -8px 10px rgba(0, 0, 0, 0.6);
  filter: drop-shadow(0 0 6px var(--q-glow));
}
/* tier glyphs drawn from two triangles, tinted by quality — a different shape per tier, so colour is never the only carrier:
   rare = a single shard, epic = the hourglass, legendary = a diamond */
.plan-icon::before, .plan-icon::after { content: ''; position: absolute; left: 50%; width: 0; height: 0; translate: -50% 0; border-left: 9px solid transparent; border-right: 9px solid transparent; }
.plan-icon::before { top: 10px; border-top: 11px solid var(--q); }
.plan-icon::after { bottom: 10px; border-bottom: 11px solid var(--q); }
.plan:nth-child(1):not(.popular) .plan-icon::before { display: none; }
.plan:nth-child(1):not(.popular) .plan-icon::after { bottom: 15px; border-bottom-width: 14px; }
.plan:nth-child(3):not(.popular) .plan-icon::before { top: 21px; }
.plan:nth-child(3):not(.popular) .plan-icon::after { bottom: 21px; }
.plan h3 { font: 700 20px/1.15 var(--display); letter-spacing: 0.02em; text-transform: none; color: var(--q); text-shadow: 0 1px 0 #000; }
.plan-tier { display: block; margin-top: 4px; font: 600 11px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-shadow: 0 1px 0 #000; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font: 700 56px/1 var(--display); letter-spacing: -0.01em; color: var(--gold-hi); text-shadow: 0 2px 0 #0f1a33; }
.plan-price .cur { font-size: 26px; color: var(--gold); align-self: flex-start; margin-top: 6px; }
.plan-price .per { flex-basis: 100%; display: block; margin-top: 6px; font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--dim); text-shadow: none; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 4px; display: grid; gap: 12px; border-top: 1px solid rgba(232, 184, 74, 0.16); }
.plan li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text); }
.plan li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; rotate: 45deg; background: var(--gold); box-shadow: 0 0 0 1px #000; }
.plan li.flavour { padding-left: 0; font-style: italic; color: var(--gold); }
.plan li.flavour::before { display: none; }
.plan .btn { width: 100%; }
.plan.popular { padding-bottom: 32px; box-shadow: var(--shadow-frame), 0 0 28px var(--q-glow); }
.plan.popular .plan-head { background: linear-gradient(180deg, rgba(60, 30, 90, 0.45), transparent); }
/* the title sits below the ribbon, never under it */
.plan.popular .plan-head { padding-top: 48px; }
/* the epic item: a slow light travels along the filigree */
.plan.popular::after {
  content: ''; position: absolute; inset: -4px; padding: 2px; pointer-events: none; z-index: 2; border-radius: 2px;
  background: conic-gradient(from var(--angle), transparent 0 40%, var(--gold-hi) 50%, var(--q-epic) 60%, transparent 70% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 8px rgba(183, 108, 255, 0.7));
  animation: rotate 6s linear infinite;
}
@keyframes rotate { to { --angle: 360deg; } }
.plan-badge {
  position: absolute; top: -8px; right: 22px; z-index: 3; padding: 22px 12px 14px;
  font: 700 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: #091021;
  background: linear-gradient(180deg, #fff3cf, #f7dc92 25%, #e8b84a 60%, #b4812e); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  text-shadow: 0 1px 0 rgba(255, 245, 215, 0.6);
}
/* the ribbon is pinned with a wax seal */
.plan-badge::before { content: ''; position: absolute; left: 50%; top: 2px; width: 18px; height: 18px; translate: -50% 0; background: var(--seal-svg) center / contain no-repeat; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6)); }

/* =====================================================================
   REVIEWS — the guild chat frame
   ===================================================================== */
.reviews { max-width: 880px; margin: 0 auto; display: grid; gap: 2px; padding: 16px 8px 12px; background: rgba(5, 8, 14, 0.92); }
.reviews::after {
  content: 'Guild'; position: absolute; left: 10px; top: -40px; height: 28px; padding: 0 16px; display: inline-flex; align-items: center;
  font: 600 12px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(var(--umber-700), var(--umber-800)); border-radius: 3px 3px 0 0;
  box-shadow: 0 0 0 1px #000, inset 0 2px 0 var(--gold-lo);
}
.review {
  margin: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'cap stars' 'body body'; column-gap: 12px; row-gap: 4px;
  padding: 10px 16px; border-radius: 2px; background: none; border: 0;
}
.review:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.review figcaption { grid-area: cap; font-size: 15px; color: var(--guild); }
.review figcaption::before { content: '[Guild] ['; }
.review figcaption b { font-weight: 600; color: var(--guild); }
.review figcaption b::after { content: ']:'; }
.review-date { font-size: 12px; color: var(--dim); }
.review blockquote { grid-area: body; margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.stars { grid-area: stars; font-size: 14px; letter-spacing: 2px; color: var(--gold); text-shadow: 0 0 8px rgba(232, 184, 74, 0.45); }
.stars i { font-style: normal; color: rgba(236, 225, 200, 0.4); text-shadow: none; }
#reviews .section-sub { color: var(--warn); font-style: italic; font-size: 14px; }

/* =====================================================================
   FAQ — the quest log
   ===================================================================== */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-head { justify-items: start; text-align: left; position: sticky; top: 120px; }
.faq-head .eyebrow::before { display: none; }
.faq { display: grid; padding: 4px 0; background: rgba(11, 15, 24, 0.94); }
.faq-item { border-bottom: 1px solid rgba(232, 184, 74, 0.16); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; min-height: 44px; transition: background-color 0.32s; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.025); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font: 600 16px/1.4 var(--display); letter-spacing: 0.01em; color: var(--gold); transition: color 0.32s; }
.faq-item[open] h3 { color: var(--gold-hi); }
/* quest marker: "!" while closed, filled gold with a tick once opened */
.faq-icon {
  position: relative; flex: none; width: 18px; height: 18px; margin: 0 6px; rotate: 45deg; background: var(--umber-900);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; transition: rotate 0.5s var(--ease), background 0.4s;
}
.faq-icon::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 11px; margin: -5.5px 0 0 -1px; rotate: -45deg;
  background: linear-gradient(var(--gold) 0 6.5px, transparent 6.5px 8.5px, var(--gold) 8.5px);
}
.faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 8px; margin: -5px 0 0 -2px; border: solid #091021; border-width: 0 2px 2px 0; rotate: 0deg; opacity: 0; }
.faq-item[open] .faq-icon { rotate: 225deg; background: linear-gradient(#f7dc92, #b4812e); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, var(--glow-gold); }
.faq-item[open] .faq-icon::before { opacity: 0; }
.faq-item[open] .faq-icon::after { opacity: 1; rotate: -180deg; }
.faq-body { overflow: hidden; }
.faq-body p { margin: 0 20px 20px; padding: 16px 18px; font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }

/* =====================================================================
   FOOTER — bottom bar with action-bar slots
   ===================================================================== */
.site-footer {
  position: relative; margin-top: clamp(80px, 11vw, 140px); padding: 36px 0 56px;
  background: linear-gradient(#0b0f1a, #05070d); border-top: 1px solid #000; box-shadow: 0 -1px 0 var(--bronze), 0 -2px 0 #000;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-note { flex: 1 1 360px; font-size: 13px; color: var(--dim); }
/* Privacy / Terms sit beside the disclaimer; the 40px targets keep them tappable */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: 13px; }
.footer-legal a {
  display: inline-flex; align-items: center; min-height: 40px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(164, 150, 123, 0.45); transition: color 0.3s, text-decoration-color 0.3s;
}
.footer-legal a:hover { color: var(--gold-hi); text-decoration-color: var(--gold-lo); }
.footer-copy { font-size: 13px; color: var(--dim); }
.footer-guides { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 11px; color: var(--dim); }
.footer-guides b { font: 700 12px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-right: 8px; }
.footer-guides a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 3px; background: var(--umber-800);
  box-shadow: var(--shadow-rim), var(--shadow-inset); font: 600 11px/1.3 var(--display); letter-spacing: 0.06em; color: var(--muted);
  transition: color 0.32s, box-shadow 0.32s, background-color 0.32s;
}
.footer-guides a:hover { color: var(--gold-hi); background: var(--umber-700); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, var(--glow-gold); }

/* =====================================================================
   CHECKOUT — the quest reward dialog
   ===================================================================== */
.checkout { padding: 0; border: 0; background: transparent; color: inherit; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }
.checkout::backdrop { background: rgba(3, 2, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.checkout[open] { animation: pop 0.32s var(--ease); }
.checkout[open]::backdrop { animation: fade 0.4s ease; }
@keyframes pop { from { opacity: 0; scale: 0.96; } }
@keyframes fade { from { opacity: 0; } }
.checkout-panel {
  position: relative; display: grid; gap: 14px; padding: 28px 26px 26px; overflow: auto; max-height: calc(100dvh - 32px);
  background: rgba(11, 15, 24, 0.98); box-shadow: var(--shadow-frame);
}
.checkout-panel .eyebrow { justify-content: center; gap: 14px; }
.checkout-panel .eyebrow::before, .checkout-panel .eyebrow::after { content: ''; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo) 40%, var(--gold-hi)); }
.checkout-panel .eyebrow::after { scale: -1 1; }
.checkout-panel h2 { font: 700 24px/1.15 var(--display); letter-spacing: 0.02em; color: var(--gold-hi); text-align: center; text-shadow: 0 1px 0 #000; }
.checkout-price { color: var(--gold); }
.checkout-sub { font-size: 14.5px; padding: 12px 14px; text-align: center; }
.checkout-close {
  position: absolute; top: 2px; right: 2px; z-index: 2; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid #000; cursor: pointer;
  display: grid; place-items: center; font: 700 18px/1 var(--display); color: #ffd54a; text-shadow: 0 1px 0 #000;
  background: radial-gradient(circle at 40% 35%, #c43a28, #5a0d06);
  box-shadow: 0 0 0 1px var(--bronze), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: filter 0.32s, box-shadow 0.32s;
}
.checkout-close:hover { filter: brightness(1.2); box-shadow: 0 0 0 1px var(--gold), inset 0 1px 0 rgba(255, 255, 255, 0.25), var(--glow-gold); }
.coins { display: grid; gap: 10px; }
.coin {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; min-height: 44px; padding: 10px 12px; border-radius: 3px; cursor: pointer;
  border: 0; background: var(--umber-900); box-shadow: var(--shadow-rim); color: var(--text); text-align: left;
  transition: background-color 0.32s, box-shadow 0.32s;
}
.coin:hover { background: var(--umber-700); }
.coin[aria-checked='true'] { background: var(--umber-700); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, var(--glow-gold); }
.coin-icon {
  width: 44px; height: 44px; padding: 5px; border-radius: 7px;
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.4);
}
.coin-name { font: 600 15px/1.2 var(--display); letter-spacing: 0.01em; color: var(--text); }
.coin-net { display: block; margin-top: 2px; font: 400 12px/1.3 var(--sans); color: var(--dim); }
.coin-amount { font: 500 13.5px/1.2 var(--mono); color: var(--gold-hi); text-align: right; }
.checkout-note { font-size: 13px; color: var(--dim); }
.checkout-error { color: var(--danger); font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 213, 74, 0.3); border-top-color: #ffd54a; animation: spin 0.8s linear infinite; }

/* =====================================================================
   ORDER / TICKET PAGE (kept rendering; restyled by the second pass)
   ===================================================================== */
.ticket-page { min-height: 100vh; padding: 112px 0 64px; position: relative; isolation: isolate; }
.ticket-page .orb-a { position: fixed; opacity: 0.32; }
.ticket-page .orb-b { position: fixed; opacity: 0.22; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 20px; align-items: start; }
.panel { padding: 24px; }
/* window title bar: Cinzel caps with a hairline running to the right edge */
.panel-title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font: 700 13px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 0 #000;
}
.panel-title::before { content: ''; flex: none; width: 8px; height: 8px; rotate: 45deg; background: var(--gold-hi); box-shadow: 0 0 0 1px #000, 0 0 8px rgba(247, 220, 146, 0.5); }
.panel-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-lo), transparent); }
.ticket-eyebrow { gap: 14px; margin-bottom: 14px; }
.ticket-eyebrow::after { content: ''; flex: 1; width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold-lo), transparent); }
.ticket-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.ticket-code { font: 500 13px/1 var(--mono); color: var(--dim); letter-spacing: 0.04em; }
.ticket-plan { font: 700 26px/1.15 var(--display); margin-top: 8px; color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
/* status markers: quest-objective style, no pill */
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 3px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.04em; background: var(--umber-900); box-shadow: var(--shadow-rim); }
.status::before { content: ''; width: 8px; height: 8px; rotate: 45deg; background: currentColor; box-shadow: 0 0 0 1px #000, 0 0 8px currentColor; }
.status-awaiting, .status-checking { color: var(--warn); }
.status-awaiting::before, .status-checking::before { animation: ping-c 2s var(--ease) infinite; }
@keyframes ping-c { 0% { box-shadow: 0 0 0 1px #000, 0 0 0 0 currentColor; } 80%, 100% { box-shadow: 0 0 0 1px #000, 0 0 0 7px transparent; } }
.status-paid { color: var(--ok); }
.status-expired, .status-closed { color: var(--muted); }
.status-expired::before, .status-closed::before { box-shadow: 0 0 0 1px #000; }

.label { font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.amount-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: 3px; background: var(--umber-900); box-shadow: var(--shadow-rim); }
.amount { font: 700 clamp(26px, 4.4vw, 40px)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0; word-break: break-all; color: var(--gold-hi); }
.amount small { font-size: 0.5em; color: var(--gold); margin-left: 6px; letter-spacing: 0.04em; }
.amount-usd { margin-top: 10px; font-size: 13.5px; color: var(--dim); }
.copy {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 3px; cursor: pointer;
  border: 1px solid #000; background: linear-gradient(#172033, #090f1a); box-shadow: var(--shadow-rim), var(--shadow-inset);
  font: 600 13px/1 var(--display); letter-spacing: 0.04em; color: var(--text); transition: background-color 0.32s, color 0.32s, box-shadow 0.32s;
}
.copy:hover { background: linear-gradient(var(--umber-600), #0c1220); color: var(--gold-hi); }
.copy.done { color: var(--ok); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--ok), 0 0 0 3px #000, var(--shadow-inset); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; margin-top: 18px; align-items: stretch; }
.address-box { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 3px; background: var(--umber-900); box-shadow: var(--shadow-rim); }
.address { font: 500 14.5px/1.5 var(--mono); word-break: break-all; color: var(--text); }
.network { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; color: var(--arcane-hi); background: rgba(139, 92, 246, 0.14); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4); }
.qr { width: 168px; padding: 12px; border-radius: 3px; background: #f4efe4; box-shadow: var(--shadow-rim); }
.qr img { width: 100%; height: auto; aspect-ratio: 1; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.meta { padding: 16px 18px; border-radius: 3px; background: var(--umber-900); box-shadow: var(--shadow-rim); }
.meta .value { font: 600 18px/1.2 var(--display); color: var(--gold-hi); }
.meta .hint { margin-top: 6px; font-size: 12.5px; color: var(--dim); }
.timer { display: flex; align-items: center; gap: 12px; }
.timer svg { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); filter: drop-shadow(0 0 6px rgba(232, 184, 74, 0.6)); }
.timer circle { fill: none; stroke-width: 3; }
.timer .track { stroke: rgba(255, 255, 255, 0.12); }
.timer .bar { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 88; transition: stroke-dashoffset 1s linear; }
.notice { margin-top: 18px; padding: 16px 18px; border-radius: 3px; font-size: 14px; color: var(--text); background: rgba(232, 184, 74, 0.07); box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.25); }
.notice.ok { color: #d6f5db; background: rgba(95, 211, 106, 0.08); box-shadow: 0 0 0 1px rgba(95, 211, 106, 0.3); }
.notice b { color: var(--gold-hi); }
.tx-form { display: flex; gap: 10px; margin-top: 10px; }
.input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 3px; border: 0; color: var(--text);
  background: linear-gradient(#030408, #070b15); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--bronze);
  font: 500 14px/1 var(--mono); transition: box-shadow 0.3s;
}
.input::placeholder { color: var(--dim); }
.input:hover { box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--gold-lo); }
.input:focus { outline: none; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--gold), var(--glow-gold); }
.input:user-invalid { box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--danger); }
.input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #070b15 inset, 0 0 0 1px #000, 0 0 0 2px var(--bronze); -webkit-text-fill-color: var(--text); }
.form-error { margin-top: 8px; font-size: 13.5px; color: var(--danger); }
.section-gap { margin-top: 26px; }
.save-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* support = the whisper tab of the chat frame */
.chat { display: grid; grid-template-rows: auto 1fr auto; height: min(760px, calc(100vh - 140px)); min-height: 520px; padding: 0; overflow: hidden; position: sticky; top: 96px; background: rgba(5, 8, 14, 0.94); }
.chat-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; padding: 14px 16px 0;
  background: linear-gradient(var(--umber-700), var(--umber-800)); border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--bronze);
}
.chat-head h2 { grid-column: 1; font: 600 18px/1.2 var(--display); color: var(--gold); text-shadow: 0 1px 0 #000; }
.chat-head p { grid-column: 1; margin: 2px 0 12px; font-size: 13px; color: var(--dim); }
.chat-tabs { grid-column: 2; grid-row: 1 / 3; align-self: end; display: flex; gap: 3px; }
.chat-tab {
  display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: 3px 3px 0 0;
  font: 600 11px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
  background: var(--umber-900); box-shadow: 0 0 0 1px #000;
}
.chat-tab.is-on { color: var(--whisper); background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 0 1px #000, inset 0 2px 0 var(--whisper); text-shadow: 0 1px 0 #000; }
.messages { overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; background: rgba(0, 0, 0, 0.4); }
.msg { position: relative; max-width: 100%; padding: 1px 0; border-radius: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; color: var(--text); animation: msg-in 0.5s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.msg::before { font-weight: 600; }
.msg time { display: inline; margin-left: 8px; font-size: 11px; color: var(--dim); opacity: 1; letter-spacing: 0.02em; }
.msg-client { align-self: stretch; }
.msg-client::before { content: 'To [Support]: '; color: var(--whisper); }
.msg-support { align-self: stretch; color: var(--whisper); }
.msg-support::before { content: '[Support] whispers: '; }
.msg-system { align-self: center; max-width: 92%; text-align: center; color: var(--warn); font-style: italic; font-size: 13px; padding: 4px 8px; }
.msg-system::before { content: '[System] '; font-style: normal; }
.composer { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid #000; box-shadow: 0 -1px 0 var(--bronze); background: linear-gradient(var(--umber-800), var(--umber-900)); }
.composer textarea { flex: 1; min-width: 0; resize: none; height: 46px; max-height: 140px; padding: 12px 16px; border-radius: 3px; border: 0; color: var(--text); background: linear-gradient(#030408, #070b15); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--bronze); font-size: 14.5px; line-height: 1.45; overflow-y: hidden; }
.composer textarea:focus { outline: none; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--gold), var(--glow-gold); }
.composer .btn { --h: 46px; padding: 0 18px; }
.paid-burst { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 18px 0 6px; }
/* the wax seal: a 12-bump lacquer disc pops in, the gold rim draws itself, then the tick */
.paid-burst svg { width: 72px; height: 72px; overflow: visible; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.7)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)); }
.paid-burst .seal-wax { fill: var(--lacquer); stroke: var(--lacquer-lo); stroke-width: 1; transform-origin: 36px 36px; animation: seal-pop 0.5s var(--ease) both; }
.paid-burst .seal-shine { fill: rgba(255, 235, 200, 0.22); }
.paid-burst .seal-rim { fill: none; stroke: var(--gold-hi); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease) 0.3s forwards; }
.paid-burst .seal-check { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw 0.6s var(--ease) 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes seal-pop { from { scale: 0.6; opacity: 0; } }
.paid-burst h2 { font: 700 26px/1.1 var(--display); color: var(--gold-hi); }
.paid-burst p { color: var(--muted); max-width: 380px; }
/* "zone not discovered": 404 and order-not-found share this framed notice */
.center-state { min-height: 60vh; display: grid; place-items: center; text-align: center; gap: 16px; }
.center-state > div { display: grid; justify-items: center; gap: 14px; width: min(540px, 100%); padding: 34px 30px 32px; animation: panel-in 0.9s var(--ease) both; }
.center-state .eyebrow { gap: 14px; }
.center-state .eyebrow::before, .center-state .eyebrow::after { content: ''; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo) 40%, var(--gold-hi)); }
.center-state .eyebrow::after { scale: -1 1; }
.center-state h1 { font: 700 clamp(28px, 4.5vw, 44px)/1.1 var(--display); color: var(--gold-hi); text-shadow: 0 1px 0 #000; text-wrap: balance; }
.center-state p { color: var(--muted); max-width: 420px; }
.center-state .parchment { padding: 12px 16px; font-size: 15px; color: var(--ink-text); }
.lost-mark { width: 76px; height: 76px; color: var(--gold); filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(232, 184, 74, 0.35)); }
.lost-mark .needle { transform-origin: 38px 38px; animation: needle 7s var(--ease) infinite alternate; }
@keyframes needle { 0% { rotate: -28deg; } 40% { rotate: 22deg; } 70% { rotate: -10deg; } 100% { rotate: 30deg; } }
@keyframes panel-in { from { opacity: 0; translate: 0 24px; } }
/* 404: ghosted 1px-stroke numeral + faint radially-masked rune tile behind the copy */
.center-state.is-lost > div { isolation: isolate; overflow: clip; }
.center-state.is-lost .ghost-num { position: absolute; left: 50%; top: 50%; translate: -50% -54%; z-index: -1; pointer-events: none; user-select: none; font: 700 clamp(180px, 30vw, 360px)/1 var(--display); letter-spacing: 0.04em; color: transparent; -webkit-text-stroke: 1px var(--gold-lo); opacity: 0.18; }
.center-state.is-lost > div::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; background: var(--rune-tile) center / 120px 120px repeat; -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 70%); mask: radial-gradient(closest-side, #000 15%, transparent 70%); }
@media (forced-colors: active) { .center-state.is-lost .ghost-num, .center-state.is-lost > div::after { display: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.popular { order: -1; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-head { position: static; justify-items: center; text-align: center; }
  .faq-head .eyebrow::before { display: block; }
  .ticket-grid { grid-template-columns: minmax(0, 1fr); }
  .chat { position: static; height: 600px; }
}
@media (max-width: 760px) {
  /* the main nav becomes the action bar at the bottom of the screen */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: space-around; align-self: auto;
    height: calc(56px + env(safe-area-inset-bottom, 0px)); padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: var(--umber-900); border-top: 1px solid #000; box-shadow: 0 -1px 0 var(--bronze), 0 -2px 0 #000, 0 -10px 30px -10px #000;
  }
  .nav a { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 5px; min-width: 44px; max-width: 100%; padding: 0 2px; font-size: 10.5px; line-height: 1.1; letter-spacing: 0.04em; text-align: center; white-space: normal; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
  /* the long half of "How it works" is for the desktop bar only */
  .nav .nav-long { display: none; }
  .nav a::before {
    content: ''; width: 24px; height: 24px; border-radius: 5px;
    background: var(--diamond-svg) center / 22px no-repeat, radial-gradient(circle at 35% 30%, #1e2943, #080c15);
    box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000;
  }
  .nav a::after { bottom: auto; top: 0; left: 6px; right: 6px; }
  body:has(.site-header .nav) { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: 72px; }
  .site-header { height: 56px; }
  /* no backdrop-filter on the header here: it would become the containing block of the fixed action bar */
  .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(#0e1420, #060910); }
  .hero-title { font-size: clamp(38px, 11vw, 60px); }
  .features { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 48px 1fr; padding: 16px; }
  .feature-icon { width: 48px; height: 48px; }
  .frame, .plan, .faq, .reviews, .checkout-panel, .panel, .guide-article, .guide-more, .center-state > div { border-width: 8px; border-image-width: 8px; }
  .steps-wrap { padding: 4px 16px; }
  .steps-line { left: 37px; top: 48px; height: calc(100% - 96px); }
  .hero-pay { flex-wrap: wrap; justify-content: center; }
  .review { grid-template-columns: 1fr; grid-template-areas: 'cap' 'stars' 'body'; }
  .stars { justify-self: start; }
  .faq-body p { margin: 0 14px 16px; padding: 14px; }
  .faq-item summary { padding: 16px; }
  #app .abw-wrap::before { inset: -10px; border-width: 10px; border-image-width: 10px; }
  .letterbox::before, .letterbox::after { height: 6vh; }
  .site-footer { padding-bottom: 36px; }
  /* on phones the legal links take their own line under the disclaimer */
  .footer-legal { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .header-actions { gap: 8px; }
  .logo { font-size: 14px; letter-spacing: 0.1em; gap: 8px; } /* the longer brand name must leave room for two header buttons */
  .header-actions .btn { --h: 40px; padding: 0 10px; font-size: 11.5px; }
  .panel:not(.chat):not(.auth-panel) { padding: 18px; }
  .center-state > div { padding: 26px 18px 24px; }
  .pay-grid { grid-template-columns: minmax(0, 1fr); }
  .qr { width: 180px; justify-self: center; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  .amount-row { flex-direction: column; align-items: flex-start; }
  /* the chat tabs drop under the title instead of squeezing the subtitle beside them */
  .chat-head { grid-template-columns: minmax(0, 1fr); }
  .chat-tabs { grid-column: 1; grid-row: auto; justify-self: start; }
  .save-link { flex-direction: column; align-items: flex-start; }
  /* the reward dialog becomes a bottom sheet */
  .checkout { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; }
  .checkout-panel { padding: 24px 16px 20px; max-height: 92dvh; border-width: 12px 0 0 0; border-image-width: 12px 0 0 0; }
  .coin { grid-template-columns: 38px 1fr; }
  .coin-icon { width: 38px; height: 38px; padding: 4px; }
  .coin-amount { grid-column: 2; text-align: left; }
}

/* =====================================================================
   MOTION, TRANSPARENCY AND CONTRAST PREFERENCES
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  *, *::before, *::after { animation-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .grain, .embers, .curtain, .letterbox { display: none; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
  .js .hero-title .word > span, .js .hero-eyebrow, .js .hero-text, .js .hero-cta, .js .hero-pay { opacity: 1; translate: 0 0; letter-spacing: inherit; filter: none; }
  .js .section-head[data-reveal] h2 { opacity: 1; letter-spacing: 0.02em; }
  .feature { transform: none !important; }
  .plan.popular::after, .btn-gold::after, .js .frame[data-reveal].in::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .frame, .feature, .plan, .faq, .reviews, .panel, .checkout-panel, .site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .frame, .plan, .faq, .reviews, .checkout-panel, .steps-wrap, .panel, .guide-article, .guide-more, .center-state > div, #app .abw-wrap::before { background-color: var(--umber-800); }
  .feature, .guide-card { background: var(--ink); }
  .paper-page::before { display: none; }
}
@media (forced-colors: active) {
  .frame, .feature, .plan, .faq, .reviews, .panel, .guide-article, .guide-more, .guide-card, .center-state > div, .coin, .input, .btn { border: 1px solid CanvasText; forced-color-adjust: auto; }
  .hero-title .word > span, .metal { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}

/* =====================================================================
   CINEMATIC 3D LAYER (canvas behind the page; html.webgl while it runs)
   ===================================================================== */
.scene-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
html.webgl .hero-bg, html.webgl .grain, html.webgl .ticket-page > .orb { display: none; }

/* loading screen: black curtain with a filling bar, then the letterbox bars open */
.curtain { position: fixed; inset: 0; z-index: 95; background: #000; pointer-events: none; animation: curtain-out 0.6s var(--ease) 0.65s forwards; }
@keyframes curtain-out { to { opacity: 0; visibility: hidden; } }
.curtain::before, .curtain::after { content: ''; position: absolute; left: 50%; bottom: 14vh; translate: -50% 0; border-radius: 3px; }
.curtain::before {
  width: min(560px, 80vw); height: 18px; background: linear-gradient(#05080f, #091020); border: 1px solid #000;
  box-shadow: 0 0 0 1px var(--bronze), 0 0 0 2px #000, inset 0 2px 5px rgba(0, 0, 0, 0.85);
}
.curtain::after {
  width: calc(min(560px, 80vw) - 4px); height: 14px; bottom: calc(14vh + 2px); transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, transparent calc(100% - 6px), rgba(255, 243, 207, 0.9)), linear-gradient(180deg, #ffd86b, #e39a24 55%, #a8560e);
  box-shadow: 0 0 14px rgba(255, 180, 60, 0.8);
  animation: load-fill 0.6s var(--ease) 0.02s forwards;
}
@keyframes load-fill { to { transform: scaleX(1); } }
.curtain-label {
  position: absolute; left: 50%; bottom: calc(14vh + 34px); translate: -50% 0; white-space: nowrap;
  font: 600 14px/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); text-shadow: var(--glow-text);
}
body[data-scene]:not([data-scene='landing']) .curtain { animation-delay: 0.8s; }
body[data-scene]:not([data-scene='landing']) .curtain::after { animation-duration: 0.7s; }
.letterbox::before, .letterbox::after {
  content: ''; position: fixed; left: 0; right: 0; height: 10vh; z-index: 94; background: #000; pointer-events: none;
  animation: bars-out 1.3s var(--ease) 1.25s forwards;
}
.letterbox::before { top: 0; transform-origin: top; box-shadow: inset 0 -1px 0 var(--bronze); }
.letterbox::after { bottom: 0; transform-origin: bottom; box-shadow: inset 0 1px 0 var(--bronze); }
@keyframes bars-out { to { transform: scaleY(0); } }

/* text stays readable over the scene */
html.webgl .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 62% 78% at 26% 56%, rgba(6, 5, 10, 0.78), rgba(6, 5, 10, 0.4) 55%, transparent 75%); }
/* alpha floor ≥ 0.7 out to the halo's 75% band, so .section-sub never sits on thin scrim */
html.webgl .section-head::before {
  content: ''; position: absolute; inset: -56px -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 4, 10, 0.9) 40%, rgba(5, 4, 10, 0.75) 75%, transparent);
}
/* faint rune tile behind the halo (≈5% at the centre), radially masked */
html.webgl .section-head::after {
  content: ''; position: absolute; inset: -56px -18%; z-index: -1; pointer-events: none; opacity: 0.1;
  background: var(--rune-tile) center / 120px 120px repeat;
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 70%); mask: radial-gradient(closest-side, #000 15%, transparent 70%);
}
html.webgl .section-head h2 { text-shadow: 0 1px 0 #000, 0 0 12px rgba(0, 0, 0, 0.85), 0 4px 32px rgba(0, 0, 0, 0.85); }
/* unframed text over the world uses the full text colour, never the muted one */
html.webgl .section-sub, html.webgl .hero-pay { color: var(--text); }
html.webgl .hud-label { padding: 4px 10px; border-radius: 3px; background: rgba(5, 8, 14, 0.85); box-shadow: 0 0 0 1px #000; }

/* glass over the world: capped blur, alpha floors keep text ≥ 4.5:1 on the brightest sky */
html.webgl .frame, html.webgl .plan, html.webgl .faq, html.webgl .reviews, html.webgl .checkout-panel, html.webgl .panel { backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); }
html.webgl .feature { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.webgl .meta, html.webgl .address-box, html.webgl .amount-row { background: rgba(5, 8, 14, 0.9); }
@media (pointer: coarse) {
  html.webgl .frame, html.webgl .plan, html.webgl .faq, html.webgl .reviews, html.webgl .checkout-panel, html.webgl .panel, html.webgl .feature { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.webgl .frame, html.webgl .plan, html.webgl .faq { background-color: rgba(11, 15, 24, 0.97); }
  html.webgl .reviews, #app .abw-wrap::before { background-color: rgba(5, 8, 14, 0.97); }
  html.webgl .feature { background: linear-gradient(var(--ink-line), var(--ink-line)) 50% calc(100% - 9px) / 60% 1px no-repeat, rgba(9, 8, 18, 0.97); }
}

/* hero framing: text left, relic right on wide screens; relic above the text on phones */
@media (min-width: 981px) {
  html.webgl .hero { place-items: center start; padding-left: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); }
  html.webgl .hero-inner { justify-items: start; text-align: left; max-width: 660px; }
  html.webgl .hero-title { font-size: clamp(56px, 6.4vw, 96px); }
  html.webgl .hero-cta, html.webgl .hero-pay { justify-content: flex-start; }
  /* the radial scrim thins to ≈0.25 at the right edge of the text column; a left-to-right band keeps it ≥ 0.85 across the whole column */
  html.webgl .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 5, 10, 0.85) 0 48%, transparent 78%),
      radial-gradient(ellipse 62% 78% at 26% 56%, rgba(6, 5, 10, 0.78), rgba(6, 5, 10, 0.4) 55%, transparent 75%);
  }
}
@media (max-width: 980px) {
  html.webgl .hero { place-items: end center; padding-bottom: 110px; }
  html.webgl .hero::before { background: linear-gradient(to top, rgba(5, 4, 10, 0.92) 25%, rgba(5, 4, 10, 0.55) 62%, transparent 82%); }
}

/* =====================================================================
   HUD — the experience bar along the bottom of the screen
   ===================================================================== */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 22px; pointer-events: none;
  opacity: 0; translate: 0 8px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
}
.hud.on { opacity: 1; translate: 0 0; }
.hud-label {
  position: absolute; left: var(--gutter); bottom: 12px; display: inline-flex; align-items: center;
  font: 600 11px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-shadow: var(--glow-text);
}
.hud-label b { font-weight: 700; color: var(--gold); }
.hud-label i { display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--bronze); }
.hud-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; overflow: hidden; background: var(--umber-900); border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--bronze); }
.hud-bar span { position: absolute; inset: 1px 0 0; background: linear-gradient(#c79cff, #8b5cf6); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px rgba(139, 92, 246, 0.7); }
.hud-bar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(0, 0, 0, 0.65) calc(5% - 1px) 5%); }
@media (max-width: 980px) { .hud { display: none; } }

/* =====================================================================
   SIGN IN / REGISTER (kept rendering; restyled by the second pass)
   ===================================================================== */
/* the character-select window: two tabs on top of one gold frame, a crest, parchment hint, lacquer "Accept" */
.auth-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px var(--gutter) 60px; }
.auth-panel { width: min(460px, 100%); padding: 0; overflow: hidden; animation: panel-in 0.9s var(--ease) 0.9s both; }
.tabs {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px 6px 0;
  background: linear-gradient(var(--umber-900), var(--umber-800)); border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--bronze);
}
/* faint rune tile behind the tabs, radially masked */
.tabs::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.1;
  background: var(--rune-tile) center / 120px 120px repeat;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 80%); mask: radial-gradient(closest-side, #000 20%, transparent 80%);
}
.tabs a {
  position: relative; padding: 14px 12px; text-align: center; border-radius: 3px 3px 0 0;
  font: 600 12.5px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  background: linear-gradient(var(--umber-700), var(--umber-800)); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 220, 150, 0.08);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.tabs a:hover { color: var(--text); background: linear-gradient(var(--umber-600), var(--umber-700)); }
.tabs a.active { color: var(--gold-hi); background: rgba(11, 15, 24, 0.94); box-shadow: 0 0 0 1px #000, inset 0 2px 0 var(--gold); text-shadow: 0 1px 0 #000; }
.auth-form { display: grid; gap: 16px; padding: 26px 28px 30px; }
.auth-crest { width: 68px; height: 68px; justify-self: center; color: var(--gold); filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 14px rgba(232, 184, 74, 0.35)); }
.auth-crest svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.auth-form h1 { font: 700 26px/1.1 var(--display); color: var(--gold-hi); text-align: center; text-shadow: 0 1px 0 #000; margin-top: -6px; }
.auth-sub { font-size: 14px; text-align: center; padding: 10px 14px; margin-top: -4px; }
.field { display: grid; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.field .input { font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; }
.field small { font-weight: 400; color: var(--dim); font-size: 12px; letter-spacing: 0; text-transform: none; }
.auth-form .form-error { margin: -6px 0 -4px; text-align: center; }
.auth-foot { text-align: center; font-size: 13px; color: var(--dim); margin-top: 2px; }
.auth-foot a { color: var(--gold); }
.auth-foot a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; }
/* consent lines under the sign-up button and the checkout button */
.consent { font-size: 12.5px; line-height: 1.5; color: var(--dim); text-align: center; text-wrap: balance; }
.consent a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(164, 150, 123, 0.45); transition: color 0.3s, text-decoration-color 0.3s; }
.consent a:hover { color: var(--gold-hi); text-decoration-color: var(--gold-lo); }
.auth-form .consent { margin-top: -6px; }
.checkout .consent { margin-top: -4px; }
.muted { color: var(--muted); font-size: 14px; }

/* =====================================================================
   ACCOUNT (kept rendering; restyled by the second pass)
   ===================================================================== */
/* the character sheet: portrait, name plate, subscription as an XP bar, token as an inscription, orders as a quest log */
.account-page { padding-top: 120px; padding-bottom: 80px; }
.account-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; row-gap: 6px; align-items: center; margin-bottom: 30px; animation: panel-in 0.9s var(--ease) 0.9s both; }
.portrait {
  grid-row: 1 / 4; width: 88px; height: 88px; padding: 12px; border-radius: 7px; color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold-deep), 0 0 0 4px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.45), inset 0 -14px 16px rgba(0, 0, 0, 0.6), var(--glow-gold);
}
.portrait svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 0 #000); }
.account-head .eyebrow { grid-column: 2; text-shadow: var(--glow-text); }
.account-head h1 { grid-column: 2; font: 700 clamp(34px, 5vw, 56px)/1.05 var(--display); color: var(--gold-hi); text-shadow: var(--glow-text); overflow-wrap: anywhere; }
.account-head .muted { grid-column: 2; text-shadow: var(--glow-text); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.account-grid .panel { display: grid; gap: 16px; animation: panel-in 0.9s var(--ease) both; animation-delay: calc(1s + var(--i, 0) * 0.12s); }
.account-grid .panel-title { margin: 0; }
.orders-panel { grid-column: 1 / -1; }
.sub-state { display: grid; gap: 8px; justify-items: start; }
.sub-plan { font: 700 24px/1.2 var(--display); color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
.sub-bar { position: relative; height: 14px; border-radius: 3px; background: linear-gradient(#05080f, #091020); border: 1px solid #000; box-shadow: 0 0 0 1px var(--bronze), 0 0 0 2px #000, inset 0 2px 5px rgba(0, 0, 0, 0.85); overflow: hidden; }
.sub-bar span { display: block; height: 100%; background: linear-gradient(90deg, transparent calc(100% - 6px), rgba(255, 243, 207, 0.9)), linear-gradient(180deg, #ffd86b, #e39a24 55%, #a8560e); box-shadow: 0 0 12px rgba(255, 180, 60, 0.75); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.sub-bar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0, 0, 0, 0.6) calc(10% - 1px) 10%); }
.sub-days { display: flex; justify-content: space-between; font: 600 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-top: -8px; }
.account-grid .btn { justify-self: start; }
.token-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 3px; background: linear-gradient(#030408, #070b15); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 0 1px #000, 0 0 0 2px var(--bronze); }
.token-box code { font: 500 14px/1.5 var(--mono); letter-spacing: 0.02em; word-break: break-all; color: var(--gold-hi); text-shadow: 0 0 10px rgba(232, 184, 74, 0.35); }
.orders { display: grid; gap: 8px; }
.order-row {
  display: grid; grid-template-columns: 14px 120px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 48px; padding: 12px 16px; border-radius: 3px;
  background: var(--umber-900); box-shadow: var(--shadow-rim); transition: background-color 0.3s, box-shadow 0.3s;
}
.order-row::before { content: ''; width: 9px; height: 9px; rotate: 45deg; justify-self: center; background: var(--gold-lo); box-shadow: 0 0 0 1px #000; }
.order-row:hover { background: var(--umber-700); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }
.order-row:has(.status-paid)::before { background: var(--ok); box-shadow: 0 0 0 1px #000, 0 0 8px var(--ok); }
.order-row:has(.status-awaiting)::before, .order-row:has(.status-checking)::before { background: var(--warn); box-shadow: 0 0 0 1px #000, 0 0 8px var(--warn); }
.order-code { font: 500 13.5px/1 var(--mono); color: var(--dim); }
.order-plan { font: 600 14.5px/1.3 var(--display); color: var(--text); }
.order-amount { font: 500 13.5px/1 var(--mono); color: var(--muted); }
/* danger zone: the last panel of the sheet, its title marker and hairline in lacquer red */
.danger-panel { grid-column: 1 / -1; }
.danger-panel .panel-title { color: var(--danger); }
.danger-panel .panel-title::before { background: var(--danger); box-shadow: 0 0 0 1px #000, 0 0 8px rgba(255, 122, 106, 0.5); }
.danger-panel .panel-title::after { background: linear-gradient(90deg, rgba(255, 122, 106, 0.55), transparent); }
.danger-panel .muted { max-width: 72ch; }
.delete-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.delete-form .field { flex: 1 1 240px; max-width: 420px; }
.delete-form .form-error { flex-basis: 100%; margin: 0; }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-head { column-gap: 14px; }
  .portrait { width: 64px; height: 64px; padding: 9px; }
  .order-row { grid-template-columns: 14px minmax(0, 1fr) auto; row-gap: 4px; }
  .order-row::before { grid-row: 1 / 3; }
  .order-code, .order-plan { grid-column: 2; }
  .order-row .status { grid-column: 3; grid-row: 1 / 3; }
  .order-amount { display: none; }
}

/* ---------- demo banner on the order page ---------- */
.demo-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding: 14px 16px;
  border-radius: 3px; font-size: 13.5px; color: #d8ccff; background: rgba(139, 92, 246, 0.12); border: 1px dashed rgba(167, 139, 250, 0.5);
}
.demo-banner p { flex: 1 1 260px; }

/* ---------- demo Telegram console (untouched) ---------- */
.tg-body { background: #0e1621; }
.tg-app { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; height: 100vh; height: 100dvh; max-width: 760px; margin: 0 auto; background: #0e1621; color: #e9eef4; font: 400 15px/1.45 var(--sans); }
/* the console keeps its Telegram body, but its header is the site's gold-rimmed bar */
.tg-head {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: linear-gradient(#0e1420, #060910); border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--bronze), 0 2px 0 #000, 0 10px 30px -10px #000;
}
.tg-head::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--gold-lo) 15%, var(--gold-hi) 50%, var(--gold-lo) 85%, transparent); }
.tg-avatar {
  width: 40px; height: 40px; padding: 6px; border-radius: 6px; display: grid; place-items: center; font: 700 18px/1 var(--display); color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, #1e2943, #080c15);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, inset 0 0 0 1px rgba(255, 210, 120, 0.45), inset 0 -6px 8px rgba(0, 0, 0, 0.6);
}
.tg-avatar svg { width: 100%; height: 100%; }
.tg-title { font: 700 15px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
.tg-subtitle { font-size: 12.5px; color: var(--muted); }
.tg-demo { margin-left: auto; padding: 5px 10px; border-radius: 3px; font-size: 11.5px; color: #c4b5fd; background: rgba(139, 92, 246, 0.15); border: 1px dashed rgba(167, 139, 250, 0.45); text-align: right; }
.tg-feed { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tg-msg { max-width: 82%; padding: 8px 12px 6px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.tg-bot { align-self: flex-start; background: #182533; border-bottom-left-radius: 4px; }
.tg-admin { align-self: flex-end; background: #2b5278; border-bottom-right-radius: 4px; }
.tg-text a { color: #6ab3f3; text-decoration: underline; }
.tg-text blockquote { margin: 6px 0; padding: 2px 10px; border-left: 3px solid #6ab3f3; background: rgba(106, 179, 243, 0.08); border-radius: 4px; }
.tg-text i { color: #8fa1b3; }
.tg-quote { margin-bottom: 4px; padding: 2px 8px; border-left: 2px solid #6ab3f3; font-size: 13px; color: #9fc6ec; }
.tg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 2px; font-size: 11.5px; color: #6d8094; }
.tg-reply { padding: 0; border: 0; background: none; color: #6ab3f3; font-size: 12px; cursor: pointer; }
.tg-buttons { display: grid; gap: 4px; margin: 8px -6px 2px; }
.tg-row { display: flex; gap: 4px; }
.tg-row button { flex: 1; padding: 8px 10px; border: 0; border-radius: 8px; background: rgba(106, 179, 243, 0.14); color: #e9eef4; font-size: 13.5px; cursor: pointer; }
.tg-row button:hover { background: rgba(106, 179, 243, 0.24); }
.tg-replying { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #17212b; border-top: 1px solid #0b1118; font-size: 13px; color: #6ab3f3; }
.tg-replying span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-replying button { border: 0; background: none; color: #7f91a4; font-size: 20px; cursor: pointer; }
.tg-composer { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; background: #17212b; }
.tg-chips { display: flex; gap: 6px; width: 100%; }
.tg-chips button { padding: 4px 10px; border-radius: 4px; border: 1px solid #2b3a4a; background: none; color: #6ab3f3; font-size: 12.5px; cursor: pointer; }
.tg-composer input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 0; border-radius: 21px; background: #0e1621; color: #e9eef4; font-size: 15px; }
.tg-composer input:focus { outline: 1px solid #2b5278; }
.tg-send { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #2b5278; color: #fff; font-size: 16px; cursor: pointer; }
.tg-toast { position: absolute; left: 50%; top: 76px; translate: -50% 0; padding: 8px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.8); font-size: 13.5px; }
.gold-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- review form on the account page ---------- */
.review-panel { grid-column: 1 / -1; }
.review-form { display: grid; gap: 14px; }
.star-input { display: flex; gap: 4px; }
.star-input button {
  width: 44px; height: 44px; border: 0; border-radius: 4px; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: rgba(236, 225, 200, 0.45); transition: color 0.2s, scale 0.3s var(--ease);
}
.star-input button:hover { scale: 1.15; }
.star-input button.on { color: var(--gold); text-shadow: 0 0 14px rgba(232, 184, 74, 0.6); }
.review-text { height: auto; padding: 12px 16px; font: 400 15px/1.5 var(--sans); resize: vertical; min-height: 96px; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   THE APP WINDOW — an HTML copy of the AionBot++ main window (dark aether-blue and gold),
   a fixed 1180×780 window scaled to the column by public/js/appwindow.js
   ===================================================================== */
#app .abw-wrap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; }
.abw {
  --ab-gold: #f2c766; --ab-gold-dim: rgba(242, 199, 102, .35); --ab-text: #ece3d0; --ab-dim: #9c9381;
  --ab-green: #5cf05c; --ab-red: #ff5a52; --ab-blue: #66b4ff; --ab-aether: #4fe3ff;
  --ab-panel: #131624; --ab-panel-2: #0a0c14; --ab-side: #090b12; --ab-line: rgba(242, 199, 102, .55);
  --ab-title: 'Cinzel', Georgia, serif; --ab-ui: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  position: absolute; left: 0; top: 0; width: 1180px; height: 780px; transform-origin: 0 0;
  display: grid; grid-template-rows: 34px 1fr; overflow: hidden;
  background: #0e1019; color: var(--ab-text); font: 13px/1.35 var(--ab-ui); text-align: left; user-select: none;
  border: 1px solid var(--ab-line); border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px #000, 0 0 60px rgba(79, 227, 255, .08), inset 0 0 60px rgba(79, 227, 255, .03);
}
.abw *, .abw *::before, .abw *::after { box-sizing: border-box; }
.abw button, .abw select, .abw input { font: inherit; color: inherit; }
.abw svg { display: block; }
.ab-titlebar { display: flex; align-items: center; gap: 10px; padding: 0 0 0 12px; background: linear-gradient(#151a2b, #0c0f19); border-bottom: 1px solid var(--ab-gold-dim); }
.ab-app { font-family: var(--ab-title); color: var(--ab-gold); font-weight: 700; letter-spacing: .5px; }
.ab-ver { color: var(--ab-dim); font-size: 11px; }
.ab-spacer, .ab-sp { flex: 1; }
.ab-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 10px; font-size: 11px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.ab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ab-dim); box-shadow: 0 0 6px currentColor; }
.ab-dot.ab-on { background: var(--ab-green); color: var(--ab-green); }
.ab-dot.ab-sim { background: var(--ab-aether); color: var(--ab-aether); }
.ab-dot.ab-warn { background: var(--ab-gold); color: var(--ab-gold); }
.ab-wbtns { display: flex; }
.ab-wbtn { width: 44px; height: 34px; border: 0; background: transparent; color: var(--ab-dim); font-size: 15px; cursor: default; }
.ab-wbtn.ab-close:hover { background: #b3261e; color: #fff; }
.ab-body { display: grid; grid-template-columns: 216px 1fr; min-height: 0; }

.ab-side { margin: 8px 0 8px 8px; background: var(--ab-side); border: 1px solid var(--ab-gold-dim); border-radius: 4px; display: flex; flex-direction: column; padding: 12px 10px 10px; min-height: 0; }
.ab-logo { text-align: center; margin-bottom: 14px; }
.ab-name { font-family: var(--ab-title); font-size: 27px; color: var(--ab-gold); text-shadow: 0 0 18px rgba(242, 199, 102, .35); }
.ab-name span { color: var(--ab-aether); text-shadow: 0 0 14px rgba(79, 227, 255, .5); }
.ab-sub { font-size: 11px; color: var(--ab-dim); }
.ab-tabs { display: grid; gap: 7px; }
.ab-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; background: #121522; border: 1px solid rgba(242, 199, 102, .25); border-radius: 3px; cursor: pointer; transition: background .12s, border-color .12s; }
.ab-tab:hover { background: #1a1e30; }
.ab-tab.ab-on { background: linear-gradient(90deg, #3b2f12, #1d1a12); border-color: var(--ab-gold); }
.ab-ic { width: 38px; height: 38px; flex: none; border-radius: 3px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2d3550, #0b0e18); border: 1px solid rgba(242, 199, 102, .4); color: var(--ab-gold); }
.ab-tab.ab-on .ab-ic { box-shadow: 0 0 10px rgba(242, 199, 102, .35); }
.ab-ic svg { width: 22px; height: 22px; }
.ab-t1 { display: block; font-family: var(--ab-title); font-size: 15px; }
.ab-tab.ab-on .ab-t1 { color: var(--ab-gold); }
.ab-t2 { display: block; font-size: 11px; color: var(--ab-dim); }
.ab-who { margin-top: auto; background: #121522; border: 1px solid rgba(242, 199, 102, .25); border-radius: 3px; padding: 9px 10px; }
.ab-nm { font-size: 13px; }
.ab-cls { font-size: 11px; color: var(--ab-dim); margin-bottom: 6px; }
.ab-st { font-size: 12px; margin-top: 6px; }
.ab-bar { position: relative; height: 12px; background: #05060a; border: 1px solid rgba(242, 199, 102, .3); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.ab-bar i { position: absolute; inset: 0 auto 0 0; width: 0; transition: width .25s; }
.ab-bar b { position: absolute; inset: 0; font: 600 9px/11px var(--ab-ui); text-align: center; color: #fff; text-shadow: 0 1px 1px #000; }
.ab-hp i { background: linear-gradient(#e34b40, #8f1d16); } .ab-mp i { background: linear-gradient(#4a8dff, #1a3f9a); }
.ab-dp i { background: linear-gradient(#ffd25a, #a8771a); } .ab-xp i { background: linear-gradient(#b67bff, #5a2ea0); }
.ab-green i { background: linear-gradient(#53d653, #1f7a1f); }

.ab-main { display: grid; grid-template-rows: 92px 1fr auto 56px; min-width: 0; min-height: 0; padding: 8px 8px 0; gap: 8px; }
.ab-header { position: relative; overflow: hidden; border: 1px solid var(--ab-gold-dim); border-radius: 4px; background: #000; }
.ab-banner { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-htxt { position: absolute; left: 22px; top: 10px; }
.ab-htxt h3 { margin: 0; font: 400 34px/1.15 var(--ab-title); color: var(--ab-gold); text-shadow: 0 2px 6px #000, 0 0 20px rgba(242, 199, 102, .25); }
.ab-htxt p { margin: 2px 0 0 2px; max-width: 560px; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-chips { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 6px; }
.ab-chip { background: rgba(5, 6, 10, .75); border: 1px solid var(--ab-gold-dim); border-radius: 3px; padding: 4px 9px; min-width: 92px; }
.ab-ck { font-size: 10px; color: var(--ab-dim); text-transform: uppercase; letter-spacing: .5px; }
.ab-cv { font-size: 14px; color: var(--ab-gold); font-variant-numeric: tabular-nums; }

.ab-pages { position: relative; min-height: 0; overflow: hidden auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.ab-page { display: none; grid-template-columns: repeat(12, 1fr); gap: 8px; align-content: start; }
.ab-page.ab-on { display: grid; }
.ab-panel { background: linear-gradient(180deg, var(--ab-panel), #0f1220); border: 1px solid var(--ab-line); border-radius: 4px; padding: 0 0 10px; min-width: 0; }
.ab-phd { display: flex; align-items: center; gap: 8px; padding: 8px 12px 7px; border-bottom: 1px solid var(--ab-gold-dim); margin-bottom: 6px; }
.ab-phd svg { width: 18px; height: 18px; color: var(--ab-gold); }
.ab-pt { font-family: var(--ab-title); font-size: 15px; color: var(--ab-gold); }
.ab-px { margin-left: auto; font-size: 11px; color: var(--ab-dim); }
.ab-span-5 { grid-column: span 5; } .ab-span-6 { grid-column: span 6; } .ab-span-7 { grid-column: span 7; } .ab-span-12 { grid-column: span 12; }
.ab-row { display: flex; align-items: center; gap: 8px; padding: 3px 12px; min-height: 26px; }
.ab-lbl { flex: 1; min-width: 0; }
.ab-check { display: flex; align-items: center; gap: 8px; padding: 3px 12px; cursor: pointer; min-height: 25px; }
.ab-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ab-box { width: 17px; height: 17px; flex: none; border-radius: 2px; background: #05060a; border: 1px solid rgba(242, 199, 102, .55); display: grid; place-items: center; }
.ab-check input:checked + .ab-box::after { content: ''; width: 9px; height: 5px; border: solid var(--ab-gold); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.ab-check:hover .ab-box, .ab-check input:focus-visible + .ab-box { border-color: var(--ab-gold); box-shadow: 0 0 6px rgba(242, 199, 102, .4); }
.abw input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; background: #05060a; border: 1px solid rgba(242, 199, 102, .35); border-radius: 3px; width: 150px; }
.abw input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 16px; background: linear-gradient(#ffe2a0, #b88a2c); border: 1px solid #000; border-radius: 2px; cursor: pointer; }
.abw input[type=range]::-moz-range-thumb { width: 12px; height: 16px; background: linear-gradient(#ffe2a0, #b88a2c); border: 1px solid #000; border-radius: 2px; cursor: pointer; }
.ab-sval { width: 62px; white-space: nowrap; text-align: right; color: var(--ab-gold); font-variant-numeric: tabular-nums; }
.abw select, .ab-inp { background: #05060a; color: var(--ab-text); border: 1px solid rgba(242, 199, 102, .5); border-radius: 2px; height: 24px; padding: 0 6px; font: 12px var(--ab-ui); min-width: 0; }
.abw select { cursor: pointer; }
.abw option { background: #0b0d14; }
.ab-btn { height: 24px; padding: 0 12px; cursor: pointer; font: 600 12px var(--ab-ui); color: #f5e6c2; background: linear-gradient(#5a1712, #2e0b08); border: 1px solid #a8762c; border-radius: 3px; }
.ab-btn:hover { filter: brightness(1.25); }
.ab-btn.ab-ghost { background: #121522; color: var(--ab-text); border-color: rgba(242, 199, 102, .4); }
.ab-btn.ab-sm { height: 20px; padding: 0 7px; font-size: 11px; }
.ab-status .ab-row { min-height: 21px; padding-block: 1px; }
.ab-k { width: 130px; color: var(--ab-dim); flex: none; }
.ab-v { flex: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-para { padding: 2px 12px; line-height: 1.55; }
.ab-para b { color: var(--ab-gold); font-weight: 600; }
.ab-list { margin: 0 8px; border: 1px solid rgba(242, 199, 102, .2); background: var(--ab-panel-2); border-radius: 2px; }
.ab-li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.ab-li:last-child { border-bottom: 0; }
.ab-li:hover { background: rgba(242, 199, 102, .06); }
.ab-li.ab-sel { background: rgba(242, 199, 102, .12); }
.ab-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-m { color: var(--ab-dim); font-size: 11px; white-space: nowrap; }
.ab-tag { font-size: 10px; padding: 1px 6px; border-radius: 8px; border: 1px solid; white-space: nowrap; }
.ab-tag.ab-ok { color: var(--ab-green); border-color: rgba(92, 240, 92, .4); }
.ab-tag.ab-hard { color: var(--ab-red); border-color: rgba(255, 90, 82, .4); }
.ab-tag.ab-mid { color: var(--ab-gold); border-color: var(--ab-gold-dim); }
.ab-tag.ab-info { color: var(--ab-aether); border-color: rgba(79, 227, 255, .4); }
.ab-steps .ab-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #1b1f30; color: var(--ab-dim); flex: none; }
.ab-steps .ab-done .ab-num { background: #1f4a1f; color: var(--ab-green); }
.ab-steps .ab-cur .ab-num { background: var(--ab-gold); color: #000; box-shadow: 0 0 8px var(--ab-gold); }
.ab-steps .ab-done .ab-n { color: var(--ab-dim); text-decoration: line-through; }
.ab-skill { display: flex; align-items: center; gap: 8px; padding: 3px 10px; }
.ab-skic { width: 26px; height: 26px; border-radius: 3px; border: 1px solid rgba(242, 199, 102, .5); display: grid; place-items: center; font: 700 11px var(--ab-title); color: #fff; flex: none; }
.ab-skill .ab-m { width: 74px; text-align: right; }
.ab-skill .ab-m.ab-wide { width: 150px; text-align: left; }
.ab-map { display: block; margin: 0 8px; width: calc(100% - 16px); border: 1px solid rgba(242, 199, 102, .3); border-radius: 2px; background: #05060a; }
.ab-legend { display: flex; gap: 12px; padding: 6px 12px 0; font-size: 11px; color: var(--ab-dim); flex-wrap: wrap; }
.ab-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--c); }
.ab-r-common { color: #e8e8e8; } .ab-r-green { color: #4ce05a; } .ab-r-blue { color: #4aa8ff; } .ab-r-gold { color: #f2c766; } .ab-r-orange { color: #ff9a3c; }

.ab-logwrap { border: 1px solid var(--ab-gold-dim); border-radius: 4px; background: var(--ab-panel-2); }
.ab-loghd { display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-bottom: 1px solid rgba(242, 199, 102, .2); font-size: 11px; color: var(--ab-dim); }
.ab-loghd .ab-t { font-family: var(--ab-title); color: var(--ab-gold); font-size: 13px; }
.ab-loghd label { display: flex; gap: 4px; align-items: center; cursor: pointer; }
.ab-log { height: 112px; overflow-y: auto; padding: 4px 10px; font: 12px/1.45 Consolas, 'Cascadia Mono', monospace; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.ab-log.ab-collapsed { display: none; }
.ab-ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-ts { color: #5e6475; margin-right: 8px; }
.ab-sys { color: var(--ab-aether); } .ab-info { color: var(--ab-text); } .ab-fight { color: #ff8f7a; }
.ab-loot { color: #4ce05a; } .ab-gold { color: var(--ab-gold); } .ab-warn { color: #ffb347; } .ab-bad { color: var(--ab-red); }

.ab-bottom { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 0 10px; }
.ab-big { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px 0 10px; min-width: 118px; border: 1px solid rgba(242, 199, 102, .75); border-radius: 3px; cursor: pointer; font: 400 15px var(--ab-title); color: #fff; text-shadow: 0 1px 2px #000; }
.ab-big svg { width: 20px; height: 20px; }
.ab-big:hover { filter: brightness(1.3); }
.ab-big:disabled { filter: grayscale(.8) brightness(.6); cursor: default; }
.ab-start { background: linear-gradient(#1f7318, #10400c); }
.ab-pause { background: linear-gradient(#1a3a80, #0d1f48); }
.ab-stop { background: linear-gradient(#8c1a14, #4a0c09); }
.ab-plain { background: linear-gradient(#2a2318, #16120c); min-width: 140px; }
.ab-toast { position: absolute; left: 300px; top: 4px; padding: 7px 16px; border: 1px solid var(--ab-gold); border-radius: 3px; background: #0b0d14; color: var(--ab-gold); opacity: 0; transition: opacity .25s; pointer-events: none; }
.ab-toast.ab-show { opacity: 1; }

/* =====================================================================
   GUIDE PAGES (kept rendering; restyled by the second pass)
   ===================================================================== */
/* the library: a dark table with a faint rune tile, tooltip cards for each guide, and the guide itself as a parchment page inside a gold frame */
.paper-page {
  position: relative; z-index: 0; min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(35, 61, 122, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(60, 40, 90, 0.35), transparent 60%),
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(30, 50, 25, 0.4), transparent 60%),
    #090c14;
}
.paper-page::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09;
  background: var(--rune-tile) center / 160px 160px repeat;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent); mask: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent);
}
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font: 600 11.5px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--gold-hi); }
.breadcrumbs > span:not(:last-child) { font-size: 0; width: 6px; height: 6px; rotate: 45deg; background: var(--gold-lo); box-shadow: 0 0 0 1px #000; }
.guides-page, .guide-page { padding-top: 110px; padding-bottom: 40px; }
.guides-head { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: 44px; }
.guides-head .eyebrow { gap: 14px; }
.guides-head .eyebrow::before, .guides-head .eyebrow::after { content: ''; width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo) 40%, var(--gold-hi)); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.guides-head .eyebrow::after { scale: -1 1; }
.guides-head h1 { font: 700 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: 0.01em; }
.guides-head .section-sub { max-width: 560px; text-wrap: balance; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
/* each guide is an item tooltip: ink fill, silver-violet rim, gold name, a "Use:" flavour line */
.guide-card {
  position: relative; display: grid; grid-template-rows: 180px auto; overflow: hidden; border-radius: 4px;
  background: linear-gradient(180deg, rgba(14, 12, 26, 0.96), rgba(6, 5, 14, 0.98)); border: 1px solid var(--ink-line);
  box-shadow: 0 0 0 1px #000, 0 20px 40px -24px #000; transition: translate 0.32s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.guide-card:hover { translate: 0 -4px; border-color: #9a95bd; box-shadow: 0 0 0 1px #000, 0 24px 48px -24px #000, 0 0 28px rgba(183, 108, 255, 0.22); }
.guide-card img, .guide-card-art { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--ink-line); }
/* fallback cover: an original "map scrap" — hills, a river, a route with waypoints */
.guide-card-art {
  display: block;
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'><path d='M-10 140 C40 100 80 150 130 120 S220 90 270 130 340 110 340 110' fill='none' stroke='%232d5a7a' stroke-width='9' stroke-linecap='round' opacity='.8'/><path d='M30 150 C70 120 120 130 150 95 S210 60 260 75 300 40 300 40' fill='none' stroke='%23e8b84a' stroke-width='2' stroke-dasharray='6 7' stroke-linecap='round'/><g fill='%23e8b84a' stroke='%23000'><path d='M30 143 37 150 30 157 23 150z'/><path d='M150 88 157 95 150 102 143 95z'/><path d='M260 68 267 75 260 82 253 75z'/></g><g fill='none' stroke='%23e8b84a' stroke-opacity='.45'><path d='M60 60 l14-22 14 22z'/><path d='M86 70 l10-16 10 16z'/><path d='M220 150 l12-20 12 20z'/></g></svg>") center / cover no-repeat,
    radial-gradient(ellipse 60% 70% at 30% 40%, #5a6a34, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, #3a5a6a, transparent 70%),
    linear-gradient(#3e4a24, #22301a);
}
.guide-card-body { display: grid; gap: 8px; padding: 16px 18px 20px; }
.guide-card time { font: 600 11px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.guide-card h2 { font: 700 19px/1.2 var(--display); letter-spacing: 0.02em; color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
.guide-card p { font-size: 14.5px; color: var(--text); }
.guide-card-use { margin-top: 4px; font: italic 400 13.5px/1.4 var(--sans); color: var(--gold); }

/* topic chips on /guides and the topic hubs; the same chips sit under a guide's title */
.topics, .guide-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: -18px 0 36px; }
.guide-tags { justify-content: flex-start; margin: 14px 0 0; }
.topics a, .guide-tags a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 3px; background: var(--umber-800);
  box-shadow: var(--shadow-rim), var(--shadow-inset); font: 600 11px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color 0.32s, box-shadow 0.32s, background-color 0.32s;
}
.topics a:hover, .guide-tags a:hover { color: var(--gold-hi); background: var(--umber-700); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, var(--glow-gold); }
.topics a[aria-current] { color: var(--ink-text); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }

/* landing: library cards and the text block about the bot */
.landing-guides { max-width: 1080px; margin: 0 auto; }
.guides-all { text-align: center; margin-top: 36px; }
.about-text { max-width: 860px; margin: 0 auto; padding: 10px; }
.about-text .parchment { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px) clamp(22px, 4.5vw, 52px); font-size: 17px; line-height: 1.68; }
.about-text .parchment p { text-wrap: pretty; }
.about-text .parchment p::first-letter { font-family: var(--display); font-weight: 700; }
.about-topics { font-size: 15.5px; color: #1a2c58; }
.guides-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--muted); font-style: italic; }
.guide-article { max-width: 960px; margin: 0 auto; padding: clamp(20px, 3vw, 36px); }
.guide-head { display: grid; gap: 12px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(232, 184, 74, 0.2); }
.guide-head h1 { font: 700 clamp(32px, 4.6vw, 52px)/1.08 var(--display); letter-spacing: 0.01em; color: var(--gold-hi); text-shadow: 0 1px 0 #000; text-wrap: balance; }
.guide-lead { font-size: 17.5px; color: var(--muted); text-wrap: pretty; overflow-wrap: anywhere; }
.guide-meta { font: 600 11.5px/1.4 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.guide-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: 3px; margin-bottom: 26px; box-shadow: var(--shadow-rim); }
.guide-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-layout:has(> .guide-body:first-child) { grid-template-columns: minmax(0, 1fr); }
.guide-toc { position: sticky; top: 90px; display: grid; gap: 2px; font-size: 13.5px; padding: 14px 10px 12px; border-radius: 3px; background: var(--umber-900); box-shadow: var(--shadow-rim); }
.guide-toc b { font: 600 11px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px 8px; }
.guide-toc a { position: relative; display: flex; align-items: center; min-height: 40px; padding: 7px 8px 7px 24px; border-radius: 3px; color: var(--muted); transition: color 0.3s, background-color 0.3s; }
.guide-toc a::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; rotate: 45deg; background: var(--gold-lo); box-shadow: 0 0 0 1px #000; }
.guide-toc a:hover { color: var(--gold-hi); background: rgba(255, 255, 255, 0.03); }
/* the page itself: parchment, ink text, burnt edge */
.guide-body {
  padding: clamp(22px, 3.5vw, 40px) clamp(20px, 3.5vw, 44px); border-radius: 3px;
  font-size: 17px; line-height: 1.75; color: var(--ink-text); overflow-wrap: anywhere;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255, 246, 222, 0.45), transparent 75%),
    var(--fibre),
    linear-gradient(180deg, var(--parchment), var(--parchment-lo));
  background-size: auto, 220px 220px, auto;
  box-shadow: inset 0 0 0 1px rgba(26, 45, 90, 0.45), inset 0 0 36px rgba(31, 53, 106, 0.35), 0 0 0 1px #000, 0 6px 20px -10px #000;
}
.guide-body ::selection { background: rgba(180, 129, 46, 0.35); color: var(--ink-text); }
.guide-body > * + * { margin-top: 1.1em; }
/* a readable measure on parchment, and an illuminated initial on the first paragraph */
.guide-body > p, .guide-body > ul, .guide-body > ol, .guide-body > blockquote { max-width: 68ch; }
.guide-body > p:first-of-type::first-letter { font: 700 3.2em/0.8 var(--display); float: left; margin: 0.08em 0.12em 0 0; color: #1a2c58; }
/* legal texts open with "Effective date", which takes no illuminated initial */
.legal-body > p:first-of-type::first-letter { font: inherit; float: none; margin: 0; color: inherit; }
.guide-body h2 { font: 700 27px/1.2 var(--display); letter-spacing: 0.01em; color: #1a2c58; margin-top: 1.7em; padding-bottom: 0.3em; border-bottom: 1px solid rgba(26, 45, 90, 0.35); scroll-margin-top: 90px; }
.guide-body > h2:first-child { margin-top: 0; }
.guide-body h3 { font: 700 20px/1.3 var(--display); color: var(--ink-text); margin-top: 1.4em; scroll-margin-top: 90px; }
.guide-body a { color: #1a2c58; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; word-break: break-word; }
.guide-body a:hover { color: var(--gold-deep); }
.guide-body strong { color: #080e1c; }
.guide-body ul, .guide-body ol { padding-left: 1.4em; }
.guide-body li + li { margin-top: 0.35em; }
.guide-body li::marker { color: var(--gold-deep); }
.guide-body blockquote { margin-left: 0; padding: 12px 18px; border-left: 3px solid var(--gold-deep); background: rgba(26, 45, 90, 0.08); border-radius: 0 3px 3px 0; color: var(--ink-text-2); font-style: italic; }
.guide-body code { padding: 2px 6px; border-radius: 3px; background: rgba(14, 24, 48, 0.09); box-shadow: inset 0 0 0 1px rgba(14, 24, 48, 0.18); font: 500 0.88em/1.4 var(--mono); color: #111e3c; }
.guide-body pre { padding: 16px 18px; border-radius: 3px; background: #090d18; color: var(--text); box-shadow: var(--shadow-rim); overflow-x: auto; }
.guide-body pre code { padding: 0; background: none; box-shadow: none; color: inherit; }
.guide-body figure { margin: 1.6em 0; }
.guide-body img { width: 100%; height: auto; border-radius: 3px; box-shadow: var(--shadow-rim); }
.guide-body figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-text-2); text-align: center; font-style: italic; }
.guide-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.guide-body th, .guide-body td { padding: 8px 10px; border-bottom: 1px solid rgba(26, 45, 90, 0.3); text-align: left; }
.guide-body th { font: 700 12px/1.3 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #1a2c58; }
.guide-body hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(232, 184, 74, 0.2); color: var(--muted); font-size: 15.5px; }
/* more guides: a quest-log list with "!" markers */
.guide-more { max-width: 960px; margin: 28px auto 0; display: grid; gap: 4px; padding: 18px 20px 20px; }
.guide-more h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font: 700 13px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 0 #000; }
.guide-more h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-lo), transparent); }
.guide-more a { position: relative; padding: 10px 10px 10px 36px; border-radius: 3px; font: 600 15px/1.3 var(--display); color: var(--muted); transition: color 0.3s, background-color 0.3s; }
.guide-more a::before { content: ''; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; rotate: 45deg; background: var(--umber-900); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }
.guide-more a::after { content: ''; position: absolute; left: 16px; top: 50%; width: 2px; height: 9px; margin-top: -4.5px; background: linear-gradient(var(--gold) 0 5.5px, transparent 5.5px 7px, var(--gold) 7px); }
.guide-more a:hover { color: var(--gold-hi); background: rgba(255, 255, 255, 0.03); }
@media (max-width: 860px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; }
  .guide-body { padding: 20px 16px; font-size: 16px; }
}

/* demo console: attach files */
.tg-attach { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: #7f91a4; font-size: 20px; }
.tg-attach:hover { color: #6ab3f3; }
.tg-attach input { display: none; }

/* =====================================================================
   SECONDARY PAGES — shared bits (sign-in, account, order, guides, 404)
   ===================================================================== */
/* the current page in the header nav keeps its gold underline */
.nav a[aria-current='page'] { color: var(--gold-hi); }
.nav a[aria-current='page']::after { scale: 1 1; }
/* pages without the hero: the header is solid from the first pixel */
.site-header.scrolled .logo { font-size: 16px; }
/* a small footer under the account / order / 404 pages */
.site-footer.is-slim { margin-top: 40px; padding: 28px 0 40px; }
.site-footer.is-slim .footer-inner { justify-content: center; text-align: center; }
.site-footer.is-slim .footer-note { flex-basis: 100%; max-width: 640px; margin: 0 auto; }
.site-footer.is-slim .footer-legal { justify-content: center; }
/* the order page's reward frame gets the same stagger as the account sheet */
.ticket-grid > .panel { animation: panel-in 0.9s var(--ease) both; }
.ticket-grid > .panel:nth-child(2) { animation-delay: 0.12s; }
.ticket-page .center-state > div { animation-delay: 0.9s; }
/* "Send exactly" amount: a lit inscription */
.amount { text-shadow: 0 1px 0 #000, 0 0 18px rgba(232, 184, 74, 0.3); }
.notice { position: relative; padding-left: 40px; }
.notice::before { content: ''; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; rotate: 45deg; background: var(--umber-900); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }
.notice::after { content: ''; position: absolute; left: 19px; top: 50%; width: 2px; height: 8px; margin-top: -4px; background: linear-gradient(var(--gold) 0 5px, transparent 5px 6px, var(--gold) 6px); }
.notice.ok::before { background: var(--ok); box-shadow: 0 0 0 1px #000, 0 0 8px var(--ok); }
.notice.ok::after { display: none; }
@media (max-width: 760px) {
  .site-footer.is-slim { padding-bottom: 32px; }
}

/* =====================================================================
   LANGUAGES, SIGN-UP FUNNEL, SECTION TRANSITIONS (2026-11)
   ===================================================================== */

/* ---------- language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; display: inline-grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 10px; cursor: pointer; border-radius: 3px;
  font: 700 11.5px/1 var(--display); letter-spacing: 0.14em; color: var(--muted);
  background: var(--umber-800); box-shadow: var(--shadow-rim), var(--shadow-inset); transition: color 0.3s, box-shadow 0.3s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--gold-hi); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: grid; min-width: 150px; padding: 6px;
  background: rgba(6, 9, 16, 0.97); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, 0 18px 40px -12px #000;
  animation: pop 0.22s var(--ease);
}
.lang-menu a { padding: 10px 12px; border-radius: 2px; font: 600 13px/1 var(--display); letter-spacing: 0.04em; color: var(--muted); }
.lang-menu a:hover { color: var(--gold-hi); background: var(--umber-700); }
.lang-menu a[aria-current] { color: var(--gold-hi); }
.lang-menu a[aria-current]::before { content: '◆ '; color: var(--gold); font-size: 9px; vertical-align: 1px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.footer-langs a { color: var(--dim); }
.footer-langs a[aria-current] { color: var(--gold); }
.footer-langs a:hover { color: var(--gold-hi); }
.nav-mobile-only { display: none !important; }

/* translated in-game chat labels */
:lang(es) .reviews::after { content: 'Hermandad'; }
:lang(tr) .reviews::after { content: 'Lonca'; }
:lang(es) .review figcaption::before { content: '[Hermandad] ['; }
:lang(tr) .review figcaption::before { content: '[Lonca] ['; }
:lang(es) .msg-client::before { content: 'A [Soporte]: '; }
:lang(tr) .msg-client::before { content: '[Destek] kanalına: '; }
:lang(es) .msg-support::before { content: '[Soporte] susurra: '; }
:lang(tr) .msg-support::before { content: '[Destek] fısıldıyor: '; }
:lang(es) .msg-system::before { content: '[Sistema] '; }
:lang(tr) .msg-system::before { content: '[Sistem] '; }

/* ---------- landing: calls to action ---------- */
.hero-cta .btn-ghost.btn-lg { background: rgba(9, 13, 23, 0.72); }
.plan-deal {
  margin: -4px 0 4px; padding: 7px 10px; border-radius: 3px; text-align: center;
  font: 600 13px/1.3 var(--display); letter-spacing: 0.02em; color: #ffe39a;
  background: linear-gradient(90deg, rgba(166, 112, 26, 0.12), rgba(232, 184, 74, 0.22), rgba(166, 112, 26, 0.12));
  box-shadow: inset 0 0 0 1px rgba(232, 184, 74, 0.35);
}
.pricing-note { max-width: 640px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; text-shadow: var(--glow-text); }
.faq-more { color: var(--muted); font-size: 15px; }
.faq-more a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-more a:hover { color: var(--gold-hi); }
.cta-final { padding-bottom: clamp(60px, 9vw, 120px); }
.cta-card { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 60px); }
.cta-card .eyebrow { gap: 14px; }
.cta-card h2 { font: 700 clamp(28px, 4vw, 46px)/1.1 var(--display); color: var(--gold-hi); text-wrap: balance; text-shadow: var(--glow-text); }
.cta-card .section-sub { max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.paper-cta { max-width: 960px; margin: 40px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.paper-cta p { color: var(--text); font-size: 15px; }
.paper-cta b { color: var(--gold-hi); font-family: var(--display); }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.legal-note { padding: 10px 14px; margin-bottom: 18px; border-radius: 3px; font-size: 14px; background: rgba(166, 112, 26, 0.1); box-shadow: inset 0 0 0 1px rgba(166, 112, 26, 0.35); }

/* ---------- checkout: sign up inside the payment window ---------- */
.checkout-price s { color: var(--dim); font-size: 0.8em; margin-right: 4px; text-decoration-thickness: 2px; }
.checkout-deal { margin-top: -6px; text-align: center; font-size: 13.5px; color: #ffe39a; }
.checkout-auth, .checkout-pay { display: grid; gap: 14px; }
.checkout-auth[hidden], .checkout-pay[hidden] { display: none; }
.checkout-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 4px; background: var(--umber-900); box-shadow: var(--shadow-rim); }
.checkout-tabs button {
  min-height: 40px; border: 0; border-radius: 3px; cursor: pointer; background: transparent;
  font: 600 12px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.3s, background-color 0.3s;
}
.checkout-tabs button[aria-selected='true'] { color: var(--gold-hi); background: var(--umber-700); box-shadow: 0 0 0 1px #000, inset 0 2px 0 var(--gold); }
.auth-form.compact { padding: 0; gap: 12px; }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { width: 100%; padding-right: 48px; }
.pass-toggle {
  position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 3px; cursor: pointer;
  background: transparent; font-size: 16px; opacity: 0.65; transition: opacity 0.2s;
}
.pass-toggle:hover { opacity: 1; }
.auth-deal { text-align: center; font: 600 13.5px/1.4 var(--display); color: #ffe39a; padding: 8px 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(232, 184, 74, 0.35); }

/* ---------- account: quest log for new players ---------- */
.quest-panel { display: grid; gap: 16px; margin-bottom: 20px; animation: panel-in 0.7s var(--ease) 0.1s both; }
.quest-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: q; }
.quest-steps li {
  position: relative; display: grid; gap: 6px; padding: 14px 14px 14px 46px; border-radius: 3px; counter-increment: q;
  background: var(--umber-900); box-shadow: var(--shadow-rim); color: var(--muted); font-size: 13px; line-height: 1.45;
}
.quest-steps li::before {
  content: counter(q); position: absolute; left: 12px; top: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  font: 700 12px/1 var(--display); color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, #1e2943, #080c15); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep);
}
.quest-steps li b { font: 600 14px/1.2 var(--display); color: var(--text); }
.quest-steps li.done { opacity: 0.6; }
.quest-steps li.done::before { content: '✓'; color: #8fe0a0; }
.quest-steps li.current { color: var(--text); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, var(--glow-gold); }
.quest-steps li.current b { color: var(--gold-hi); }
.quest-deal { color: #ffe39a; font: 600 14px/1.4 var(--display); }
.mini-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-plan {
  display: grid; gap: 4px; justify-items: center; padding: 14px 10px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--umber-800); box-shadow: var(--shadow-rim); color: var(--text); transition: box-shadow 0.3s, background-color 0.3s, translate 0.3s var(--ease);
}
.mini-plan b { font: 600 15px/1.2 var(--display); color: var(--gold-hi); }
.mini-plan span { font: 600 20px/1 var(--display); }
.mini-plan small { font-size: 12px; color: #ffe39a; }
.mini-plan.popular { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }
.mini-plan:hover { translate: 0 -2px; background: var(--umber-700); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, var(--glow-gold); }
.quest-panel.is-done .quest-steps { display: none; }
details.danger-panel { margin-top: 20px; }
details.danger-panel summary { cursor: pointer; list-style: none; }
details.danger-panel summary::-webkit-details-marker { display: none; }
details.danger-panel[open] summary { margin-bottom: 14px; }
details.danger-panel .delete-form { display: grid; gap: 14px; max-width: 420px; }
/* account pages have no intro curtain any more: the panels come in right away */
.account-head { animation-delay: 0.05s; }
.account-grid .panel { animation-delay: calc(0.15s + var(--i, 0) * 0.08s); }

/* pages without the 3D world (sign-in, account, order) keep the painted dusk behind them */
.static-scene { background: radial-gradient(ellipse 120% 70% at 50% -10%, #3a2a3e 0%, #1a1220 38%, #0a0710 72%) fixed, var(--bg); }

/* ---------- section transitions ---------- */
/* an ornamental rule draws itself above every section head as the zone is discovered */
.zone-rule { display: block; width: min(240px, 60vw); height: 12px; margin-bottom: -6px; }
.zone-rule svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1.2; overflow: visible; }
.zone-rule svg path:first-child { stroke-dasharray: 104; stroke-dashoffset: 0; }
.zone-rule svg path:last-child { fill: var(--gold-hi); stroke: #000; transform-origin: 120px 6px; }
.js .section-head[data-reveal] .zone-rule svg path:first-child { stroke-dashoffset: 104; transition: stroke-dashoffset 1.3s var(--ease) 0.15s; }
.js .section-head[data-reveal] .zone-rule svg path:last-child { scale: 0; rotate: -90deg; transition: scale 0.7s var(--ease), rotate 0.9s var(--ease); }
.js .section-head[data-reveal].in .zone-rule svg path:first-child { stroke-dashoffset: 0; }
.js .section-head[data-reveal].in .zone-rule svg path:last-child { scale: 1; rotate: 0deg; }
/* the heading: from wide, blurred lettering into place; the sub line follows */
.js .section-head[data-reveal] h2 { filter: blur(6px); transition: opacity 1.1s var(--ease), letter-spacing 1.4s var(--ease), filter 1.2s var(--ease); }
.js .section-head[data-reveal].in h2 { filter: blur(0); }
.js .section-head[data-reveal] .section-sub { opacity: 0; translate: 0 10px; transition: opacity 0.9s var(--ease) 0.45s, translate 1s var(--ease) 0.45s; }
.js .section-head[data-reveal].in .section-sub { opacity: 1; translate: 0 0; }
/* cascades once a zone is discovered */
.js .feature[data-reveal] { translate: 0 34px; rotate: -1.5deg; transform-origin: 0 100%; transition: opacity 0.8s var(--ease), translate 1s var(--ease), rotate 1s var(--ease); transition-delay: calc(0.08s * var(--k, 0)); }
.js .feature[data-reveal].in:not(#_) { rotate: 0deg; }
.js .plan[data-reveal] { translate: 0 60px; scale: 0.96; transition: opacity 0.8s var(--ease), translate 1.1s var(--ease), scale 1.1s var(--ease); transition-delay: calc(0.12s * var(--k, 0)); }
.js .plan[data-reveal].in:not(#_) { scale: 1; }
/* the popular plan "drops" like loot: a short golden flash when it lands */
.js .plan.popular[data-reveal].in::after {
  content: ''; position: absolute; inset: -12px; pointer-events: none; z-index: 2;
  box-shadow: 0 0 0 2px rgba(255, 226, 150, 0.9), 0 0 40px rgba(255, 196, 80, 0.55);
  animation: loot-flash 1.4s var(--ease) 0.6s both;
}
@keyframes loot-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.js .guide-card { opacity: 0; translate: 0 30px; transition: opacity 0.8s var(--ease), translate 1s var(--ease); }
.js .zone-in .guide-card, .js .guides-page .guide-card { opacity: 1; translate: 0 0; }
.js .zone-in .guide-card:nth-child(2) { transition-delay: 0.1s; }
.js .zone-in .guide-card:nth-child(3) { transition-delay: 0.2s; }
.js .guides-page .guide-card { transition: none; }
.guide-card img { transition: scale 1.2s var(--ease); }
.guide-card:hover img { scale: 1.04; }
.js .cta-card[data-reveal] { scale: 0.97; transition: opacity 0.9s var(--ease), translate 1s var(--ease), scale 1.2s var(--ease); }
.js .cta-card[data-reveal].in:not(#_) { scale: 1; }

/* no haze and no blur over the page while the camera flies between places: windows, prices and text stay sharp and
   clear at every scroll position (the clouds of the flight live inside the 3D scene only) */

/* the intro curtain plays once per visit; later pages open straight away */
.seen .curtain, .seen .letterbox { display: none; }
.seen { --intro: 0.1s; }

@media (max-width: 980px) {
  .quest-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-mobile-only { display: flex !important; }
  .nav a[href="#faq"] { display: none; }
  .mini-plans { grid-template-columns: 1fr; }
  .paper-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (max-width: 560px) {
  .header-actions .link-order[data-account] { display: none; }
  .lang-switch summary { min-width: 38px; padding: 0 6px; }
  .quest-steps { grid-template-columns: 1fr; }
  .hero-cta .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .feature[data-reveal], .js .plan[data-reveal], .js .guide-card, .js .cta-card[data-reveal] { rotate: 0deg; scale: 1; opacity: 1; translate: 0 0; }
  .js .section-head[data-reveal] h2, .js .section-head[data-reveal] .section-sub { filter: none; opacity: 1; translate: 0 0; }
  .js .section-head[data-reveal] .zone-rule svg path { stroke-dashoffset: 0; scale: 1; rotate: 0deg; }
}

/* narrower desktops: the header loses its least useful pieces before it can overflow */
@media (max-width: 1180px) and (min-width: 761px) {
  .nav .nav-long { display: none; }
  .site-header .nav a[href="#faq"] { display: none; }
}
@media (max-width: 920px) and (min-width: 761px) {
  .header-actions .link-order[data-account] { display: none; }
  .header-actions { gap: 10px; }
}

/* phones: long translated button labels must not push the header off the screen */
@media (max-width: 480px) {
  .header-actions .btn { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .paper-page .header-actions .btn, .static-scene .header-actions .btn-gold { display: none; }
  .logo span { white-space: nowrap; }
}

/* =====================================================================
   PREMIUM GUIDES, VERIFIED REVIEWS, STICKY CALL TO ACTION
   ===================================================================== */
.premium-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; border-radius: 3px;
  font: 700 11px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #080d1a;
  background: linear-gradient(180deg, #ffe8a8, #d9a441); box-shadow: 0 0 0 1px #000, 0 6px 18px -6px rgba(255, 196, 80, 0.7);
}
.premium-badge.inline { position: static; display: inline-block; margin-bottom: 10px; }
.guide-card { position: relative; }
.guide-card.is-premium { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000, 0 18px 40px -22px rgba(255, 196, 80, 0.45); }
.guide-card.is-premium .guide-card-art { background: radial-gradient(circle at 50% 40%, rgba(255, 210, 120, 0.35), transparent 60%), linear-gradient(135deg, #111e3c, #060a14); }

.premium-lock { margin: 28px 0 8px; }
.premium-lock-card { display: grid; gap: 14px; padding: clamp(20px, 4vw, 34px); text-align: center; justify-items: center; }
.premium-lock-card h2 { font: 700 clamp(22px, 3vw, 30px)/1.15 var(--display); color: var(--gold-hi); margin: 0; }
.premium-outline { display: grid; gap: 6px; width: 100%; max-width: 520px; margin: 4px 0; padding: 0; list-style: none; counter-reset: po; text-align: left; }
.premium-outline li { counter-increment: po; display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 3px; background: var(--umber-900); box-shadow: var(--shadow-rim); color: var(--muted); font-size: 14.5px; }
.premium-outline li::before { content: counter(po); flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 700 11px/1 var(--display); color: var(--gold-hi); background: #080c15; box-shadow: 0 0 0 1px var(--gold-deep); }
.premium-outline li::after { content: '🔒'; margin-left: auto; font-size: 12px; opacity: 0.75; }
.premium-lock.is-member .premium-outline li.is-member { display: none; }
.premium-text { max-width: 560px; color: var(--text); font-size: 15.5px; }
.premium-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.premium-part { animation: panel-in 0.7s var(--ease) both; }
.guide-toc a.locked { color: var(--dim); }
.guide-toc a.locked::after { content: ' 🔒'; font-size: 11px; }
.guide-toc a.locked.subscriber::after { content: ' 💎'; }

.premium-promo { max-width: 960px; margin: 28px auto 0; display: grid; gap: 10px; padding: 20px 22px; }
.premium-promo h2 { font: 700 22px/1.2 var(--display); color: var(--gold-hi); margin: 0; }
.premium-promo > a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 3px; background: var(--umber-900); box-shadow: var(--shadow-rim); transition: box-shadow 0.3s, translate 0.3s var(--ease); }
.premium-promo > a b { color: var(--gold-hi); font-family: var(--display); }
.premium-promo > a span { color: var(--muted); font-size: 14px; }
.premium-promo > a:hover { translate: 0 -2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000; }
.premium-promo-foot { color: var(--muted); font-size: 14px; }
.premium-promo-foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* landing: premium library and the three-level comparison */
.premium-grid { margin-bottom: 28px; }
.compare { max-width: 860px; margin: 0 auto; padding: clamp(14px, 3vw, 26px); display: grid; gap: 18px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 11px 10px; text-align: center; border-bottom: 1px solid rgba(166, 112, 26, 0.18); }
.compare thead th { font: 700 12px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.compare thead th.best { color: var(--gold-hi); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare .tick { color: #8fe0a0; font-weight: 700; }
.compare .dash { color: var(--dim); }
.compare td:last-child { background: rgba(232, 184, 74, 0.06); }
.compare-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }
.link-more { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.plan .premium-line { color: #ffe39a; }
.plan .premium-line::before { content: '💎 '; }

/* reviews */
.review-verified { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 2px; font: 600 10.5px/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #0e1a10; background: #8fe0a0; vertical-align: 1px; }
.reviews-more, .reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.reviews-note { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--dim); font-size: 13.5px; }
.reviews-page .reviews { max-width: 880px; margin: 0 auto; }
.premium-link { display: inline-block; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font: 600 14px/1.4 var(--display); }
.quest-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* sticky "let the bot run it" bar on guide pages */
.sticky-cta {
  position: fixed; left: 50%; bottom: 16px; z-index: 50; translate: -50% 120%; display: flex; align-items: center; gap: 14px;
  width: min(760px, calc(100vw - 24px)); padding: 10px 12px 10px 18px; border-radius: 4px;
  background: rgba(6, 9, 16, 0.97); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, 0 20px 50px -14px #000;
  transition: translate 0.5s var(--ease);
}
.sticky-cta.on { translate: -50% 0; }
.sticky-cta p { flex: 1; margin: 0; color: var(--text); font-size: 14px; line-height: 1.4; }
.sticky-close { width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; background: transparent; color: var(--muted); font-size: 20px; }
.sticky-close:hover { color: var(--gold-hi); }

@media (max-width: 980px) {
  .quest-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sticky-cta { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .compare th, .compare td { padding: 9px 6px; font-size: 13px; }
}
@media (max-width: 560px) {
  .quest-steps { grid-template-columns: 1fr; }
  .sticky-cta p { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
  .premium-part { animation: none; }
}

/* the lock sits inside the parchment guide body: a sealed page in the same ink, not a dark window */
.guide-body .premium-lock-card { background: linear-gradient(180deg, #f7e9c8, #ecd5a4); color: #0e1830; }
.guide-body .premium-lock-card .eyebrow { color: #223a74; }
.guide-body .premium-lock-card h2 { color: #142346; margin: 0; }
.guide-body .premium-lock-card .premium-outline { margin: 4px 0; padding: 0; }
.guide-body .premium-lock-card .premium-outline li { display: flex; margin: 0; background: rgba(26, 44, 88, 0.08); box-shadow: inset 0 0 0 1px rgba(26, 44, 88, 0.25); color: #0e1830; }
.guide-body .premium-lock-card .premium-outline li::before { color: #fff3d0; background: #1f366b; box-shadow: none; }
.guide-body .premium-lock.is-member .premium-outline li.is-member { display: none; }
.guide-body .premium-lock-card .premium-text { color: #0e1830; }

/* =====================================================================
   PHONES (2026-11): a shorter page, rows you swipe, nothing wider than the screen
   ===================================================================== */
.swipe-dots { display: none; }
@media (max-width: 760px) {
  .section { padding-top: 60px; }
  .section-head { gap: 10px; margin-bottom: 28px; }
  .section-head .eyebrow { gap: 10px; letter-spacing: 0.16em; }
  .section-head .eyebrow::before, .section-head .eyebrow::after { width: 28px; }
  .section-head h2 { font-size: clamp(27px, 8.2vw, 36px); }
  .section-sub { font-size: 15.5px; line-height: 1.5; }
  .hero-eyebrow { letter-spacing: 0.14em; font-size: 11px; text-align: center; }

  /* swipeable rows: the next card peeks in from the right, so it is obvious there is more */
  .plans, #premium .premium-grid, #library .landing-guides {
    display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 18px var(--gutter) 8px; max-width: none;
  }
  .plans::-webkit-scrollbar, #premium .premium-grid::-webkit-scrollbar, #library .landing-guides::-webkit-scrollbar { display: none; }
  .plans > *, #premium .premium-grid > *, #library .landing-guides > * { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  /* cards rise into place one by one on desktop; inside a swipe row they simply appear */
  .js .plans > [data-reveal]:not(#_), .js #premium .premium-grid > *:not(#_), .js #library .landing-guides > *:not(#_) { opacity: 1; translate: 0 0; rotate: 0deg; scale: 1; }
  .swipe-dots { display: flex; justify-content: center; gap: 10px; margin: 6px 0 4px; }
  .swipe-dots i { width: 7px; height: 7px; rotate: 45deg; background: var(--gold-lo); opacity: 0.45; transition: opacity 0.2s, background-color 0.2s, scale 0.2s; }
  .swipe-dots i.on { opacity: 1; background: var(--gold-hi); scale: 1.25; }
  .guide-card { grid-template-rows: 150px auto; }

  /* feature cards: less padding, same content */
  .features { gap: 12px; }
  .feature { padding: 14px; gap: 12px; }

}
@media (max-width: 560px) {
  /* the comparison table turns into one small card per row: the feature, then three labelled marks */
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tbody { display: grid; gap: 8px; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid rgba(166, 112, 26, 0.22); border-radius: 4px; background: rgba(0, 0, 0, 0.18); }
  .compare tbody th { grid-column: 1 / -1; padding: 10px 12px 4px; border: 0; font-size: 14px; }
  .compare td { display: grid; gap: 3px; justify-items: center; padding: 4px 4px 10px; border: 0; font-size: 14px; background: none; }
  .compare td::before { content: attr(data-label); font: 700 9.5px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: center; }
  .compare td:last-child { background: none; }
  .compare td:last-child::before { color: var(--gold-hi); }
  .compare td:empty::after, .compare td:last-child:empty { visibility: hidden; }
  .compare-actions .btn { width: 100%; }
}
.about-more { display: none; }
@media (max-width: 760px) {
  .about-text:not(.is-open) { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .about-text .parchment { font-size: 15.5px; line-height: 1.62; padding: 22px 18px; }
  .about-more { display: flex; margin: 14px auto 0; }
}
@media (max-width: 560px) {
  /* long (translated) button labels wrap onto a second line instead of pushing the page sideways */
  main .btn, .checkout .btn, .sticky-cta .btn { height: auto; min-height: var(--h); padding-block: 8px; white-space: normal; text-align: center; line-height: 1.2; max-width: 100%; }
  .premium-actions { flex-direction: column; align-items: stretch; }
  .premium-actions .btn { width: 100%; }
}
@media (max-width: 359px) {
  /* the smallest phones: the emblem alone stands for the name, so the language switch and the buy button both fit */
  .site-header .logo:has(.logo-mark) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .header-actions .btn { max-width: 58vw; }
}

/* =====================================================================
   CLASS BUILDS, GUIDE SHELVES, CARD DETAILS (2026-11)
   ===================================================================== */
/* the class colour runs through everything that belongs to one class: crest, rim, bars */
.class-emblem { flex: none; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px color-mix(in srgb, currentColor 35%, transparent)); }

/* card details: a topic ribbon (or class line) over the cover, reading time next to the date */
.guide-card-topic, .guide-card-class {
  position: absolute; top: 140px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px);
  padding: 5px 10px; border-radius: 3px; background: rgba(3, 5, 9, 0.84); box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(232, 184, 74, 0.35);
  font: 700 10.5px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.guide-card-class { top: 132px; padding: 4px 10px 4px 4px; color: var(--text); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--class); }
.guide-card-class b { color: var(--class); font-weight: 700; }
.card-emblem { width: 32px; height: 32px; padding: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1a2131, #05070d); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--class); color: var(--class); }
.guide-card::before { content: ''; position: absolute; left: 0; right: 0; top: 100px; height: 80px; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(6, 5, 14, 0.7)); }
.guide-card.is-build { border-color: color-mix(in srgb, var(--class) 45%, var(--ink-line)); }
.guide-card.is-build:hover { border-color: var(--class); box-shadow: 0 0 0 1px #000, 0 24px 48px -24px #000, 0 0 28px color-mix(in srgb, var(--class) 30%, transparent); }
.guide-card-meta { display: flex; flex-wrap: wrap; gap: 4px; font: 600 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.guide-card-meta time { font: inherit; letter-spacing: inherit; }
.guide-card h2, .guide-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card-body { align-content: start; }

/* the build sheet at the top of a build guide */
.build-sheet {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin: 0 0 26px;
  padding: clamp(16px, 2.4vw, 24px); background: linear-gradient(135deg, color-mix(in srgb, var(--class) 14%, #090c14), #06090e 60%);
}
.build-crest { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; color: var(--class);
  background: radial-gradient(circle at 35% 30%, #1a2234, #04060a); box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--class), 0 0 0 4px #000, 0 0 34px color-mix(in srgb, var(--class) 35%, transparent); }
.build-main { display: grid; gap: 12px; min-width: 0; }
.build-name { font: 700 clamp(22px, 2.6vw, 28px)/1.1 var(--display); color: var(--class); text-shadow: 0 1px 0 #000; }
.build-name a { color: inherit; }
.build-name span { color: var(--gold-hi); }
.build-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.build-badges span { padding: 5px 10px; border-radius: 3px; font: 700 11px/1.2 var(--display); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--umber-800); color: var(--muted); box-shadow: var(--shadow-rim); }
.build-badges .badge-purpose { color: var(--gold-hi); }
.build-badges .badge-faction { color: #f0c8a0; }
.build-label { font: 700 11.5px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.build-label b { margin-left: 6px; font-size: 15px; letter-spacing: 0.06em; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.build-trees { display: grid; gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.build-tree { display: grid; grid-template-columns: minmax(96px, 9.5em) 2.4em minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.build-tree b { text-align: right; font: 700 15px/1 var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.build-tree i { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6); overflow: hidden; }
.build-tree i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--class) 55%, #000), var(--class)); box-shadow: 0 0 12px color-mix(in srgb, var(--class) 45%, transparent); }
.build-tree:not(.is-main) i::after { opacity: 0.55; }
.build-stats ol { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: st; }
.build-stats li { counter-increment: st; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--class) 40%, transparent); font-size: 13.5px; color: var(--text); }
.build-stats li::before { content: counter(st); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--class); color: #060a14; font: 700 11px/1 var(--display); }

/* the nine class crests */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 0 0 30px; }
.class-grid a { display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 4px; color: var(--class);
  background: linear-gradient(180deg, color-mix(in srgb, var(--class) 10%, #0a0e18), #05070d); box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--class) 35%, transparent);
  transition: translate 0.25s var(--ease), box-shadow 0.25s; }
.class-grid a span { font: 700 12.5px/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.class-grid a:hover, .class-grid a[aria-current] { translate: 0 -3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--class), 0 0 22px color-mix(in srgb, var(--class) 30%, transparent); }
.class-grid a[aria-current] span { color: var(--class); }
.h1-emblem { vertical-align: -0.12em; margin-right: 12px; width: 0.95em; height: 0.95em; }
.class-faction { display: inline-block; margin-left: 6px; color: #f0c8a0; }
.related-head { grid-column: 1 / -1; margin: 34px 0 14px; font: 700 22px/1.2 var(--display); color: var(--gold-hi); }

/* /guides: shelves */
.shelf { margin: 0 0 46px; }
.shelf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(232, 184, 74, 0.2); }
.shelf-head h2 { font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: 0.02em; color: var(--gold-hi); text-shadow: 0 1px 0 #000; }
.shelf-head p { grid-column: 1; max-width: 62ch; color: var(--muted); font-size: 15px; }
.shelf-links { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; max-width: 420px; }
.shelf-all { font: 700 12px/1.3 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.shelf-all:hover { color: var(--gold-hi); }
.shelf-all::after { content: ' \203A'; }
.guide-az { columns: 3 280px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.guide-az li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.guide-az a { font-size: 14.5px; color: var(--text); }
.guide-az a:hover { color: var(--gold-hi); }
.guides-page > .guide-grid:empty { display: none; }

/* /guides/topic/builds: grouped by class, filtered by purpose without JavaScript */
.builds-hub { display: grid; gap: 34px; margin-bottom: 40px; }
.build-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.build-filter legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.build-filter label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 3px; cursor: pointer;
  background: var(--umber-800); box-shadow: var(--shadow-rim); font: 600 11.5px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.build-filter input { accent-color: var(--gold); }
.build-filter label:has(input:checked) { color: var(--ink-text); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.build-filter label:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.builds-hub:has(input[value="leveling"]:checked) .guide-card[data-purpose="farming"],
.builds-hub:has(input[value="farming"]:checked) .guide-card[data-purpose="leveling"] { display: none; }
.class-group h2 a { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 700 clamp(20px, 2.4vw, 26px)/1.1 var(--display); color: var(--class); }
.class-group h2 a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.footer-classes { margin-top: 8px; }

@media (max-width: 760px) {
  .build-sheet { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .build-crest { width: 84px; height: 84px; }
  .build-crest svg { width: 60px; height: 60px; }
  .build-tree { grid-template-columns: minmax(84px, 8em) 2em minmax(0, 1fr); font-size: 13.5px; }
  .shelf-head { grid-template-columns: 1fr; }
  .shelf-links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-card-topic { top: 112px; }
  .guide-card-class { top: 104px; }
}

/* =====================================================================
   POLISH (2026-11): numbers, tables, lists and line lengths
   ===================================================================== */
.section-sub { max-width: 60ch; margin-inline: auto; text-wrap: balance; }
.guide-lead { max-width: 70ch; }
.plan-price, .plan-deal, .compare td, .build-tree b { font-variant-numeric: tabular-nums lining-nums; }
.plan .btn { width: 100%; }
.plan li { line-height: 1.45; }

/* guide article: tables read like a ledger, numbered steps get gold numerals, bold leads stand out */
.guide-body table { width: max-content; min-width: 100%; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(26, 45, 90, 0.28); }
.guide-body thead th { background: rgba(26, 45, 90, 0.13); padding-block: 10px; }
.guide-body tbody tr:nth-child(even) { background: rgba(26, 45, 90, 0.055); }
.guide-body tbody tr:hover { background: rgba(232, 184, 74, 0.12); }
.guide-body td { font-variant-numeric: tabular-nums; vertical-align: top; }
.guide-body ol > li::marker { font-family: var(--display); font-weight: 700; color: #8a5a14; }
.guide-body ul > li::marker { color: #8a5a14; }
.guide-body li + li { margin-top: 0.4em; }
.guide-body strong { color: #101b36; }
.guide-body h3 { scroll-margin-top: 90px; }
.guide-body blockquote { font-style: normal; }
.guide-body blockquote::before { content: '\2756'; margin-right: 8px; color: var(--gold-deep); }
.guide-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* cards: one height per row, the "Use:" line sits at the bottom */
.guide-card { grid-template-rows: 180px 1fr; }
.guide-card-body { grid-template-rows: auto auto 1fr auto; }
.guide-card-use { align-self: end; }
@media (max-width: 760px) {
  .guide-card { grid-template-rows: 150px 1fr; }
}

/* =====================================================================
   RUSSIAN AND CHINESE (2026-11)
   ===================================================================== */
/* Chinese: the system's own CJK fonts (no download), a serif for headings and a sans for text; letter spacing made
   for Latin capitals is taken back, since Chinese characters need none */
:root:lang(zh-Hans) {
  --display: 'Cinzel', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
}
:lang(zh-Hans) body { line-height: 1.75; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .eyebrow, :lang(zh-Hans) .btn, :lang(zh-Hans) .nav a,
:lang(zh-Hans) .topics a, :lang(zh-Hans) .guide-tags a, :lang(zh-Hans) .guide-card-meta, :lang(zh-Hans) .build-label,
:lang(zh-Hans) .build-badges span, :lang(zh-Hans) .shelf-all, :lang(zh-Hans) .plan-badge, :lang(zh-Hans) .premium-badge,
:lang(zh-Hans) .guide-card-topic, :lang(zh-Hans) .guide-card-class, :lang(zh-Hans) .compare thead th { letter-spacing: 0.04em; }
:lang(zh-Hans) .section-head h2, :lang(zh-Hans) .guide-head h1, :lang(zh-Hans) .hero-title { letter-spacing: 0.06em; font-weight: 700; }
/* Russian words are longer: headings may break inside long words instead of running off narrow screens */
:lang(ru) h1, :lang(ru) h2, :lang(ru) .btn span { overflow-wrap: anywhere; hyphens: auto; }

/* =====================================================================
   ANTI-SPAM (2026-11)
   ===================================================================== */
/* the sign-up trap field: off-screen for people, present for form-filling scripts */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.checkout-error-link { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* =====================================================================
   PLANS, COINS AND REVIEWS THAT STAND OUT (2026-11)
   ===================================================================== */
/* landing plan cards: every "Choose plan" is a gilded button; the popular plan's also breathes a soft glow */
.plan .btn-plan { min-height: 54px; font-size: 15.5px; letter-spacing: 0.06em; }
.plan .btn-pulse { animation: plan-pulse 2.8s ease-in-out infinite; }
@keyframes plan-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(21, 37, 73, 0.45), 0 8px 24px -10px rgba(0, 0, 0, 0.9), 0 0 14px rgba(232, 184, 74, 0.35); }
  50% { box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(21, 37, 73, 0.45), 0 8px 24px -10px rgba(0, 0, 0, 0.9), 0 0 34px rgba(255, 210, 110, 0.75); }
}
@media (prefers-reduced-motion: reduce) { .plan .btn-pulse { animation: none; } }
.plan { transition: box-shadow 0.35s, translate 0.35s var(--ease); }
.plan:hover { translate: 0 -3px; }
.plan:not(.popular):hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000, 0 24px 50px -26px rgba(232, 184, 74, 0.55); }

/* account plan tiles: lit like buttons, with a "Choose plan" line, the popular label and a pressed state */
.mini-plan {
  position: relative; gap: 6px; padding: 18px 12px 14px;
  background: linear-gradient(180deg, #17213a, #0b1120);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000, inset 0 1px 0 rgba(255, 220, 150, 0.25);
}
.mini-plan b { font-size: 16px; }
.mini-plan span { font-size: 24px; color: #fff3cf; }
.mini-plan-cta {
  margin-top: 6px; padding: 9px 14px; border-radius: 3px; font: 600 13px/1 var(--display); font-style: normal; letter-spacing: 0.06em;
  color: #091021; background: linear-gradient(180deg, #fff3cf 0%, #f7dc92 18%, #e8b84a 50%, #b4812e 88%, #d9ad52 100%);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: filter 0.3s, box-shadow 0.3s;
}
.mini-plan-badge {
  position: absolute; top: -10px; left: 50%; translate: -50% 0; padding: 3px 9px; border-radius: 2px; white-space: nowrap;
  font: 600 10.5px/1.2 var(--display); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: #080d1a;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 0 1px #000;
}
.mini-plan.popular { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, inset 0 1px 0 rgba(255, 220, 150, 0.3), 0 0 22px rgba(232, 184, 74, 0.25); }
.mini-plan:hover .mini-plan-cta, .mini-plan:focus-visible .mini-plan-cta { filter: brightness(1.08); box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 2px #000, var(--glow-gold); }
.mini-plan[aria-pressed='true'] { translate: 0 -2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-hi), 0 0 0 3px #000, var(--glow-gold); }

/* checkout coins: every option looks clickable, the chosen one carries a gold check */
.coin { position: relative; padding-right: 48px; background: linear-gradient(180deg, #0f1627, #070b15); box-shadow: 0 0 0 1px #000, 0 0 0 2px #233c78, 0 0 0 3px #000; }
.coin::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--gold-lo); background: rgba(0, 0, 0, 0.4); transition: background-color 0.25s, box-shadow 0.25s;
}
.coin:hover { background: linear-gradient(180deg, #131c32, #080e1a); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000; }
.coin[aria-checked='true'] { background: linear-gradient(180deg, #17213a, #0b1120); }
.coin[aria-checked='true']::after {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23080d1a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 0 0 1px #000, var(--glow-gold);
}

/* reviews: the language the review was written in */
.review-lang {
  display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 2px; vertical-align: 1px;
  font: 600 10.5px/1.2 var(--mono); letter-spacing: 0.06em; color: var(--gold-hi);
  background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 1px var(--gold-deep);
}

/* =====================================================================
   LANDING: ONE GUIDES BLOCK (2026-11)
   ===================================================================== */
/* doors into the library: classes, professions, gold, dungeons, leveling */
.library-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 auto 34px; max-width: 1080px; }
.library-door {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px 10px 16px; border-radius: 4px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #162342 0%, #0c1221 60%, #070b15 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000, inset 0 1px 0 rgba(255, 220, 150, 0.2);
  transition: translate 0.35s var(--ease), box-shadow 0.35s;
}
.library-door .door-icon { color: var(--gold-hi); filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 10px rgba(232, 184, 74, 0.35)); margin-bottom: 4px; }
.library-door b { font: 600 15px/1.25 var(--display); color: var(--gold-hi); text-wrap: balance; }
.library-door small { font: 500 12.5px/1.2 var(--sans); color: var(--dim); }
.library-door:hover, .library-door:focus-visible {
  translate: 0 -3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, inset 0 1px 0 rgba(255, 220, 150, 0.3), 0 18px 36px -20px rgba(232, 184, 74, 0.6);
}
#premium .guides-all { margin-top: 30px; text-align: center; }
@media (max-width: 900px) { .library-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .library-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .library-door { padding: 14px 8px 12px; }
  .library-door:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* =====================================================================
   GUIDES: SEARCH, CLASS CARDS, PROFESSIONS, HUB TEXTS (2026-11)
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* search */
.guide-search {
  position: relative; display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto 28px; padding: 0 16px; min-height: 58px; border-radius: 4px;
  background: linear-gradient(180deg, #0c1220, #070b13); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-lo), 0 0 0 3px #000, inset 0 2px 10px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s;
}
.guide-search:focus-within { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-hi), 0 0 0 3px #000, inset 0 2px 10px rgba(0, 0, 0, 0.6), var(--glow-gold); }
.guide-search-icon { flex: none; color: var(--gold); }
.guide-search input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 17px/1.2 var(--sans); }
.guide-search input::placeholder { color: var(--dim); }
.guide-search input::-webkit-search-cancel-button { filter: sepia(1) saturate(3) hue-rotate(5deg); }
.guide-search kbd { flex: none; padding: 3px 8px; border-radius: 3px; font: 600 12px/1 var(--mono); color: var(--dim); box-shadow: 0 0 0 1px var(--gold-deep); }
.search-results { max-width: 1080px; margin: 0 auto 40px; }
.search-count, .search-none { margin-bottom: 14px; color: var(--muted); font-size: 15px; text-align: center; }
.search-none { padding: 30px 16px; }
.search-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 12px; }
.search-hit {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 4px;
  background: linear-gradient(180deg, #0c1221, #070b15); box-shadow: 0 0 0 1px #000, 0 0 0 2px #1d3263, 0 0 0 3px #000;
  transition: translate 0.3s var(--ease), box-shadow 0.3s;
}
.search-hit:hover, .search-hit:focus-visible { translate: 0 -2px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 0 0 3px #000, 0 14px 30px -18px rgba(232, 184, 74, 0.6); }
.search-hit img, .search-hit-art { width: 160px; height: 90px; object-fit: cover; border-radius: 2px; background: #111a30; box-shadow: 0 0 0 1px #000; }
.search-hit > span { display: grid; gap: 4px; min-width: 0; }
.search-hit small { font: 600 11.5px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.search-hit b { font: 600 16px/1.3 var(--display); color: var(--gold-hi); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-hit i { font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lost-search { margin-top: 28px; text-align: left; }
.lost-search .guide-search { margin-bottom: 14px; }

.shelf-head h2 { display: flex; align-items: center; gap: 12px; }
.shelf-icon { flex: none; color: var(--gold); filter: drop-shadow(0 1px 0 #000); }

/* the nine classes */
.class-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.class-card {
  position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 5px; overflow: hidden;
  background: radial-gradient(130% 110% at 0% 0%, color-mix(in srgb, var(--class) 22%, #0a101e) 0%, #090d18 55%, #060911 100%);
  box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--class) 55%, #142242), 0 0 0 3px #000;
  transition: translate 0.35s var(--ease), box-shadow 0.35s;
}
.class-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--class) 26%, transparent), transparent 70%); pointer-events: none; }
.class-card:hover { translate: 0 -3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--class), 0 0 0 3px #000, 0 20px 40px -24px color-mix(in srgb, var(--class) 70%, transparent); }
.class-card-head { display: flex; align-items: center; gap: 14px; color: var(--class); }
.class-card-emblem { flex: none; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 12px color-mix(in srgb, var(--class) 45%, transparent)); }
.class-card-head b { display: block; font: 700 22px/1.1 var(--display); letter-spacing: 0.04em; color: var(--class); text-shadow: 0 1px 0 #000; }
.class-card-head small { display: block; margin-top: 4px; font: 500 12.5px/1.3 var(--sans); color: var(--muted); }
.class-card-builds { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.class-card-builds a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.38); box-shadow: 0 0 0 1px color-mix(in srgb, var(--class) 35%, #111b32);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.class-card-builds a::after { content: '\203A'; color: var(--class); font-size: 20px; line-height: 1; }
.class-card-builds b { font: 600 14px/1.2 var(--display); color: var(--text); }
.class-card-builds i { margin-left: auto; font: 500 12px/1.2 var(--mono); font-style: normal; color: var(--dim); white-space: nowrap; }
.class-card-builds a:hover, .class-card-builds a:focus-visible { background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 1px var(--class); }
.class-card-builds a:hover b { color: var(--class); }

/* professions, one card each */
.prof-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.prof-card {
  display: grid; align-content: start; gap: 12px; padding: 16px 16px 14px; border-radius: 5px;
  background: linear-gradient(180deg, #0e1423, #070b15); box-shadow: 0 0 0 1px #000, 0 0 0 2px #1d3263, 0 0 0 3px #000;
}
.prof-card header a { display: flex; align-items: center; gap: 12px; }
.prof-icon { flex: none; width: 46px; height: 46px; padding: 8px; border-radius: 50%; color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, #1e2943, #080c15); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold-deep), 0 0 0 3px #000; }
.prof-card header b { display: block; font: 700 18px/1.15 var(--display); color: var(--gold-hi); }
.prof-card header small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--dim); }
.prof-card header a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold-lo); }
.prof-card ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.prof-card li a { display: block; padding: 7px 0 7px 18px; position: relative; font-size: 14px; line-height: 1.4; color: var(--text); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.prof-card li a::before { content: ''; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; rotate: 45deg; background: var(--gold-lo); }
.prof-card li a:hover { color: var(--gold-hi); }
.prof-all { justify-self: start; font: 700 12px/1.3 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.prof-all::after { content: ' \203A'; }

/* A–Z folded */
details.shelf-az > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(232, 184, 74, 0.2); margin-bottom: 18px; }
details.shelf-az > summary::-webkit-details-marker { display: none; }
details.shelf-az > summary::after { content: '+'; margin-left: auto; font: 600 24px/1 var(--display); color: var(--gold); }
details.shelf-az[open] > summary::after { content: '\2212'; }
details.shelf-az > summary h2 { font: 700 clamp(20px, 2.4vw, 26px)/1.1 var(--display); color: var(--gold-hi); }

/* hub texts */
.hub-intro { max-width: 860px; margin: 0 auto 34px; padding: 26px 30px; border-radius: 4px; font-size: 16px; line-height: 1.7; }
.hub-intro p + p { margin-top: 12px; }
.hub-faq { max-width: 860px; margin: 40px auto 10px; }
.hub-faq > h2 { margin-bottom: 14px; font: 700 clamp(22px, 2.6vw, 28px)/1.1 var(--display); color: var(--gold-hi); text-align: center; }
.guide-grid.builds-big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }

@media (max-width: 560px) {
  .guide-search { min-height: 52px; padding: 0 12px; }
  .guide-search input { height: 50px; font-size: 16px; }
  .guide-search kbd { display: none; }
  .search-hit { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .search-hit img, .search-hit-art { width: 96px; height: 54px; }
  .hub-intro { padding: 18px 16px; font-size: 15px; }
  .class-card-builds i { display: none; }
}

/* related guides under a guide: cards in a row */
.guide-related { max-width: 1160px; margin: 40px auto 0; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* =====================================================================
   PAGE MOTION (2026-11): nothing is blurred any more; text rises from its own edge, frames settle, cards follow
   one another, and moving between pages cross-fades instead of flashing
   ===================================================================== */
:root { --ease-rise: cubic-bezier(0.16, 1, 0.3, 1); }

/* hero: every word slides up from behind its own lower edge */
.js .hero-title .word { overflow: hidden; }
.js .hero-title .word > span { filter: none; opacity: 1; letter-spacing: 0.01em; translate: 0 108%; }
.loaded .hero-title .word > span {
  translate: 0 0; filter: none;
  transition: translate 1.3s var(--ease-rise);
  transition-delay: calc(var(--intro) + var(--i) * 0.09s);
}

/* section headings: a clean rise and fade, no blur, no stretched letters */
.js .section-head[data-reveal] h2 { filter: none; letter-spacing: 0.02em; opacity: 0; translate: 0 0.45em; transition: opacity 0.9s var(--ease-rise) 0.1s, translate 1.2s var(--ease-rise) 0.1s; }
.js .section-head[data-reveal].in h2 { filter: none; opacity: 1; translate: 0 0; }

/* blocks: a softer curve and a slight settle for framed panels */
.js [data-reveal] { transition: opacity 0.8s var(--ease-rise), translate 1.1s var(--ease-rise), scale 1.1s var(--ease-rise); transition-delay: var(--d, 0s); }
.js .frame[data-reveal], .js .library-doors[data-reveal] { scale: 0.985; }
.js [data-reveal].in:not(#_) { scale: 1; }

/* rows of cards: the cards come in one after another once their row is in view */
@keyframes rise-in { from { opacity: 0; translate: 0 22px; } }
.js [data-stagger].in > * { animation: rise-in 0.9s var(--ease-rise) backwards; animation-delay: calc(0.12s + var(--i, 0) * 0.07s); }

/* between pages of the site (Chromium, Safari 18): the old page fades, the new one rises; the header stays put */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.28s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease-rise) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 16px; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js .hero-title .word > span { translate: 0 0; }
  .js .section-head[data-reveal] h2 { opacity: 1; translate: 0 0; }
  .js [data-stagger].in > * { animation: none; }
  .js .frame[data-reveal], .js .library-doors[data-reveal] { scale: 1; }
}

/* phones: the eyebrow above a page title never runs wider than the screen; the /guides jump chips scroll sideways */
@media (max-width: 420px) {
  .guides-head .eyebrow, .section-head .eyebrow { letter-spacing: 0.14em; gap: 10px; overflow-wrap: anywhere; }
  .guides-head .eyebrow::before, .guides-head .eyebrow::after, .section-head .eyebrow::before, .section-head .eyebrow::after { width: 22px; flex: none; }
}
@media (max-width: 560px) {
  .topics.topics-index { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .topics.topics-index::-webkit-scrollbar { display: none; }
  .topics.topics-index a { flex: none; }
}


/* account plan tiles (2026-11, round 2): a clear double gold frame so each tile reads as a card at a glance */
.mini-plans { gap: 16px; }
.mini-plan {
  background: linear-gradient(180deg, #182542, #0c1323);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold), 0 0 0 4px #000, 0 0 20px rgba(232, 184, 74, 0.22),
    inset 0 1px 0 rgba(255, 220, 150, 0.3);
}
.mini-plan::before {
  content: ''; position: absolute; inset: 5px; border: 1px solid rgba(247, 220, 146, 0.38); border-radius: 2px; pointer-events: none;
}
.mini-plan.popular {
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold-hi), 0 0 0 4px #000, 0 0 30px rgba(247, 220, 146, 0.4),
    inset 0 1px 0 rgba(255, 220, 150, 0.35);
}
.mini-plan.popular::before { border-color: rgba(247, 220, 146, 0.6); }
.mini-plan:hover, .mini-plan[aria-pressed='true'] {
  box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--gold-hi), 0 0 0 4px #000, 0 0 34px rgba(247, 220, 146, 0.5),
    inset 0 1px 0 rgba(255, 220, 150, 0.35);
}
.mini-plan:focus-visible { outline: 2px solid #fff3cf; outline-offset: 6px; }

/* language switcher with drawn flags (2026-11): the flag says which language it is before the name is read */
.flag { width: 21px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.5); overflow: hidden; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 7px; }
.lang-switch summary .flag { width: 19px; height: 13px; }
.lang-menu { min-width: 260px; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; line-height: 1.1; white-space: nowrap; }
.lang-menu a .flag { opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.lang-menu a:hover .flag, .lang-menu a[aria-current] .flag { opacity: 1; transform: scale(1.06); }
.lang-menu a[aria-current] { background: rgba(232, 184, 74, 0.08); box-shadow: inset 0 0 0 1px rgba(232, 184, 74, 0.35); }
.lang-menu a[aria-current]::before { content: none; }
.footer-langs a { display: inline-flex; align-items: center; gap: 6px; }
.footer-langs .flag { width: 16px; height: 11px; opacity: 0.8; }
.footer-langs a:hover .flag, .footer-langs a[aria-current] .flag { opacity: 1; }
@media (max-width: 520px) {
  .lang-switch summary span { display: none; }
  .lang-switch summary { min-width: 40px; padding: 0 9px; }
  .lang-menu { position: fixed; left: 16px; right: 16px; top: 66px; min-width: 0; width: auto; }
}
/* premium guides come only with the 3- and 6-month plans: the 1-month card says so, muted */
.plan .premium-line.is-off { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.25); }
.plan .premium-line.is-off::before { content: '💎 '; filter: grayscale(1); opacity: 0.6; }
.compare td small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-weight: 500; }
/* "never bought crypto?" help under the payment details and in the checkout window */
.pay-help { margin-top: 18px; padding: 0; border-radius: 4px; background: rgba(232, 184, 74, 0.06); box-shadow: 0 0 0 1px rgba(232, 184, 74, 0.28); }
.pay-help summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 600; color: var(--gold-hi); display: flex; align-items: center; gap: 10px; }
.pay-help summary::-webkit-details-marker { display: none; }
.pay-help summary::before { content: '💳'; }
.pay-help summary::after { content: '▾'; margin-left: auto; color: var(--gold); transition: transform 0.2s; }
.pay-help[open] summary::after { transform: rotate(180deg); }
.pay-help ol { margin: 0; padding: 0 18px 0 38px; display: grid; gap: 10px; color: var(--text); font-size: 14px; line-height: 1.55; }
.pay-help ol b { color: var(--gold-hi); }
.pay-help-warn { margin: 12px 16px 0; font-size: 13px; color: #f0b9a0; }
.pay-help .link-more { display: inline-block; margin: 10px 16px 16px; }
.checkout-help { margin: 6px 0 0; text-align: center; font-size: 13px; }
.checkout-help a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }


/* =====================================================================
   BANNERS — painted AION-style illustrations instead of the 3D world
   (public/img/banners/*.svg: original art, animated inside the SVG)
   ===================================================================== */
.hero-art {
  position: absolute; inset: -2%; width: 104%; height: 104%; max-width: none; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.04); transition: transform 1.6s var(--ease), opacity 1.6s var(--ease); will-change: transform;
}
.js .hero-art { opacity: 0; }
.loaded .hero-art { opacity: 1; }
/* a soft vignette keeps the headline readable over the painting */
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 52% at 50% 48%, rgba(5, 8, 17, 0.62), rgba(5, 8, 17, 0.28) 60%, transparent 80%),
    linear-gradient(to bottom, rgba(5, 8, 17, 0.55), transparent 22%);
}
.hero-bg .orb { mix-blend-mode: screen; opacity: 0.32; }
.hero-bg .embers { z-index: 2; }

.section.has-banner { padding-top: 0; }
.banner {
  position: relative; margin: 0 auto calc(-1 * clamp(70px, 9vw, 130px)); width: 100%; max-width: 1920px;
  height: clamp(200px, 30vw, 440px); overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 55%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 55%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.banner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.banner::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(5, 8, 17, 0.55), transparent 70%); }
.has-banner > .container { position: relative; z-index: 1; }
/* a thin aether line under each banner, like a zone border on the map */
.has-banner .zone-rule path { stroke: var(--aether); }
@media (max-width: 760px) {
  .banner { height: 190px; margin-bottom: -48px; }
  .hero-art { object-position: 72% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .banner img { transform: none !important; transition: none; opacity: 1 !important; }
}

#app .abw-wrap .qp-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
