/*
 * foreverassistant.com: the "coming soon" page (batch 25, built from mock-up A2 Guided Tour,
 * with B1's floating chips and the item ticker). The site's own look sits around drawn
 * copies of the app's screens. The drawn copies (.fa, near the end) use the app's real
 * values from src/app/web/src/hybrid.css and styles.css (Game theme), and no Blizzard art:
 * item, class, and coin pictures are drawn here.
 */

:root {
  --bg: #070a0e;
  --bg2: #0c1117;
  --card: #111821;
  --card2: #16202b;
  --text: #e9edf2;
  --muted: #a3b1bf;
  --strong: #fff;
  --gold: #efbc53;
  --gold-hi: #ffd47a;
  --gold-soft: rgba(239, 188, 83, 0.12);
  --gold-dim: rgba(239, 188, 83, 0.3);
  --line: rgba(255, 255, 255, 0.08);
  --edge: #2b3b4a;
  --ok: #3ccf4e;
  /* Item quality colors (the game's), for item names outside the drawn app too. */
  --q0: #9d9d9d; --q1: #fff; --q2: #1eff00; --q3: #0070dd; --q4: #a335ee;
  --font: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 14px; background: var(--card2); color: var(--strong); border-radius: 6px; }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 10, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--strong); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.005em; }
.brand img { width: 32px; height: 32px; }
.nav nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: var(--text); }
.nav nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.count-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--gold-dim); border-radius: 6px; background: var(--gold-soft);
  color: var(--gold); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.count-chip:hover { background: rgba(239, 188, 83, 0.2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 6px; font: 600 16px var(--font); text-decoration: none;
  border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: rgba(239, 188, 83, 0.22); transform: translateY(-1px); }
.btn.solid { background: var(--gold); color: #1c1405; }
.btn.solid:hover { background: var(--gold-hi); }
.btn.plain { border-color: var(--edge); background: transparent; color: var(--text); }
.btn.plain:hover { border-color: var(--muted); }

/* Hero */
.hero { position: relative; text-align: center; padding-top: 72px; overflow-x: clip; }
.glow {
  position: absolute; left: 50%; top: 110px; width: min(980px, 100vw); height: 560px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(239, 188, 83, 0.17), rgba(40, 80, 120, 0.08) 45%, transparent 68%);
  filter: blur(8px); pointer-events: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.6; transform: translateX(-50%) scale(1.08); } }
.pill {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; align-items: center;
  padding: 6px 14px; border: 1px solid var(--edge); border-radius: 99px; font-size: 14px; color: var(--muted); background: var(--bg2);
}
.pill b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.ping { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(60, 207, 78, 0.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(60, 207, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 78, 0); } }
h1 {
  font: 700 clamp(38px, 6.2vw, 74px)/1.04 var(--font); letter-spacing: -0.02em;
  margin: 22px auto 18px; max-width: 14em; text-wrap: balance; color: var(--strong);
}
h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 auto; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; justify-content: center; margin: 30px 0 14px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; }

/* The hero's app window tilts back and flattens as the page scrolls; chips float around it. */
.stage { position: relative; perspective: 1500px; margin-top: 52px; padding-bottom: 36px; }
.stage .win { margin: 0 auto; max-width: 1100px; transform-origin: 50% 0; will-change: transform; }

/* Floating chips (B1): small pieces of the app around the window, following the mouse. */
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; z-index: 3; pointer-events: auto; will-change: transform; transition: transform 0.25s ease-out; }
.chip > .fa { animation: bob 6s ease-in-out infinite; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(239, 188, 83, 0.1); }
.chip:nth-child(2) > .fa { animation-delay: -1.5s; }
.chip:nth-child(3) > .fa { animation-delay: -3s; }
.chip:nth-child(4) > .fa { animation-delay: -4.5s; }
.chip:nth-child(5) > .fa { animation-delay: -2.2s; }
@keyframes bob { 50% { translate: 0 -10px; } }
/* Mostly outside the window, so the app stays readable. */
.chip-bet { left: -96px; top: 290px; }
.chip-trend { right: -92px; top: 40px; }
.chip-gear { left: -120px; top: 560px; }
.chip-leak { right: -110px; top: 610px; }
.chip-raid { left: 40%; bottom: -10px; }

/* Ticker: item names and beta auction prices. */
.ticker { position: relative; border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; padding-block: 14px; }
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 22px 0 24px;
  background: linear-gradient(90deg, var(--bg2) 75%, transparent); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.track { display: flex; gap: 44px; width: max-content; animation: slide 60s linear infinite; padding-left: 230px; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 15px; }
.tick .fa-m { font-size: 15px; }
.tick .up, .tick .down { font-size: 13px; font-weight: 600; }
.tick .up { color: #39d353; }
.tick .down { color: #ff5a4d; }

/* Tour (A2): the step in view picks the screen in the pinned window. */
.tour-head { padding-top: 96px; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
h2 { font: 700 clamp(30px, 4vw, 44px)/1.12 var(--font); letter-spacing: -0.015em; margin: 10px auto 12px; color: var(--strong); text-wrap: balance; max-width: 20em; }
.sub { color: var(--muted); font-size: 18px; max-width: 38em; margin: 0 auto; }
.wrap.wide { max-width: 1380px; }
.tour { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 56px; padding-block: 40px 60px; }
.steps { display: grid; }
.st { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.5s; }
.st.on { opacity: 1; }
.st .k { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
.st h3 { font: 700 34px/1.14 var(--font); letter-spacing: -0.01em; margin: 10px 0 12px; color: var(--strong); text-wrap: balance; }
.st p { color: var(--muted); margin: 0; font-size: 18px; max-width: 30em; }
.st ul { color: var(--muted); padding-left: 20px; margin: 12px 0 0; font-size: 16px; }
.st li + li { margin-top: 4px; }
.pin { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.rail { position: absolute; left: -28px; top: 0; bottom: 0; width: 3px; background: var(--line); border-radius: 2px; }
.rail i { display: block; width: 100%; height: 0; background: var(--gold); border-radius: 2px; transition: height 0.5s; }
.screens { position: relative; }
.scr { position: absolute; inset: 0; opacity: 0; transform: translateY(16px) scale(0.985); transition: opacity 0.55s ease, transform 0.55s ease; pointer-events: none; }
.scr:first-child { position: relative; }
.scr.on { opacity: 1; transform: none; }

/* Safety */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 20px 90px; }
.trust > div { border: 1px solid var(--edge); border-radius: 10px; padding: 22px; background: linear-gradient(180deg, var(--card), var(--bg)); }
.trust svg { width: 30px; height: 30px; color: var(--gold); }
.trust h3 { margin: 12px 0 6px; font-size: 18px; color: var(--strong); }
.trust p { margin: 0; color: var(--muted); font-size: 15.5px; }
.trust-head { text-align: center; padding-top: 30px; }

/* Launch countdown */
.launch { border-top: 1px solid var(--line); padding-block: 84px 96px; position: relative; overflow: hidden; }
.launch-box {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center;
  border: 1px solid var(--edge); border-radius: 14px; padding: 48px; background: linear-gradient(160deg, var(--card2), var(--bg) 70%); overflow: hidden;
}
.launch-box h2 { margin: 8px 0 12px; max-width: none; }
.launch-box p { color: var(--muted); margin: 0 0 10px; font-size: 18px; }
.launch-box .local { color: var(--text); }
.launch-box .ctas { justify-content: flex-start; margin-bottom: 0; }
.orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -180px; background: radial-gradient(circle, rgba(239, 188, 83, 0.28), transparent 65%); animation: drift 12s ease-in-out infinite; pointer-events: none; }
@keyframes drift { 50% { transform: translate(-60px, 60px); } }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; position: relative; }
.cd div { background: var(--bg2); border: 1px solid var(--edge); border-radius: 10px; padding: 16px 6px 12px; text-align: center; }
.cd b { display: block; font: 700 clamp(30px, 4vw, 46px)/1 var(--font); color: var(--strong); font-variant-numeric: tabular-nums; }
.cd span { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.live { text-align: center; font-size: 22px; color: var(--strong); font-weight: 650; }
.live small { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--muted); }

/* Footer, on every page */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; }
.footer-brand .brand { font-size: 16px; }
.footer-brand p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.fine-print { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 13px; }
.fine-print p { margin: 0; }

/* Inner pages: a heading block, then readable sections. */
/* The heading and the text share one column: narrow for reading, wider on Features. */
.page-head, .prose { max-width: 860px; }
.wide-page .page-head, .wide-page .prose { max-width: 1120px; }
.page-head { padding-block: 64px 28px; }
.page-head h1 { text-align: left; margin: 10px 0 14px; max-width: 18em; font-size: clamp(34px, 5vw, 56px); }
.page-head .lede { margin: 0; text-align: left; max-width: 40em; }
.page-head .ctas { justify-content: flex-start; }
.prose { padding-bottom: 72px; }
.prose h2 { text-align: left; margin: 44px 0 10px; font-size: clamp(24px, 3vw, 32px); max-width: none; }
.prose h3 { color: var(--strong); margin: 26px 0 6px; font-size: 19px; }
.prose p, .prose li { color: var(--muted); }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose code { font: 14px 'Cascadia Mono', Consolas, monospace; color: var(--text); background: var(--bg2); border: 1px solid var(--edge); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.note-box { border: 1px solid var(--edge); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--card); padding: 14px 18px; margin: 18px 0; }
.note-box p { margin: 0; }
.download-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border: 1px solid var(--edge); border-radius: 12px; padding: 24px 26px; background: linear-gradient(160deg, var(--card2), var(--bg) 80%); margin-top: 8px; }
.download-box h2 { margin: 0 0 6px; font-size: 24px; text-align: left; }
.download-box p { margin: 0; color: var(--muted); }
.download-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.download-facts dt { color: var(--text); }
.download-facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.download-facts code { border: 0; background: none; padding: 0; font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; }
.feature { border: 1px solid var(--edge); border-radius: 10px; padding: 20px 22px; background: linear-gradient(180deg, var(--card), var(--bg)); }
.feature.span { grid-column: 1 / -1; }
.feature h3 { margin: 0 0 6px; color: var(--strong); font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.feature .tag { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 600; color: var(--strong); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 0 18px; }
.faq details p { margin: 0 0 10px; }
.release { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.release h2 { margin-top: 0; }
.release .when { color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.supporters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.supporters li { border: 1px solid var(--edge); border-radius: 99px; padding: 4px 14px; color: var(--text); }

/* A drawn Windows or browser prompt, with the choices to select outlined and numbered. */
.prompt { max-width: 520px; margin: 14px 0 6px; border: 1px solid #3c4148; border-radius: 8px; overflow: hidden; background: #1f2329; color: #e8eaed; font: 14px/1.5 'Segoe UI', system-ui, sans-serif; }
.prompt.blue { background: #0a4a8c; border-color: #2a6bb0; }
.prompt .p-title { padding: 10px 14px; font-weight: 600; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.prompt.blue .p-title { font-size: 22px; font-weight: 400; border: 0; padding: 18px 18px 4px; }
.prompt .p-body { padding: 12px 14px 14px; display: grid; gap: 8px; }
.prompt.blue .p-body { padding: 4px 18px 18px; }
.prompt p { margin: 0; color: inherit; }
.prompt .p-link { justify-self: start; text-decoration: underline; }
.prompt .p-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.prompt .p-button { padding: 6px 18px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 4px; }
.prompt .pick { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.prompt .n { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--gold); color: #1c1405; font-size: 12px; font-weight: 700; }
.prompt-caption { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

/*
 * Drawn copies of the app. Values come from the app's Game theme in the hybrid layout:
 * surface #101923, cards #14202b, edges #304556 and #486176, gold #efbc53, Segoe UI.
 */
.fa {
  --a-bg: #0b131b;
  --a-surface: #101923;
  --a-card: #14202b;
  --a-input: #0c151e;
  --a-button: #192632;
  --a-text: #e4eaf0;
  --a-muted: #acbac9;
  --a-strong: #fff;
  --a-gold: #efbc53;
  --a-gold-soft: rgba(239, 188, 83, 0.12);
  --a-gold-dim: rgba(239, 188, 83, 0.28);
  --a-edge-dim: #304556;
  --a-edge: #486176;
  --a-line: rgba(255, 255, 255, 0.08);
  --a-link: #71d5ff;
  --a-green: #1eff00;
  --a-red: #ff2020;
  --a-orange: #ff8000;
  --q0: #9d9d9d; --q1: #fff; --q2: #1eff00; --q3: #0070dd; --q4: #a335ee;
  --rogue: #fff468;
  --s1: #b08414; --s2: #3b86d6; --s3: #c2508a;
  font: 14px/1.45 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, sans-serif;
  color: var(--a-text);
  text-align: left;
  letter-spacing: 0;
  -webkit-font-smoothing: auto;
}
.fa * { box-sizing: border-box; }

/* The Edge app window the app opens in: Windows title bar, then the page. */
.win { margin: 0; border: 1px solid #3a3f45; border-radius: 9px; overflow: hidden; background: #0b131b; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(239, 188, 83, 0.07); }
.win-bar { display: flex; align-items: center; gap: 9px; height: 34px; padding-left: 12px; background: #1f1f1f; color: #e6e6e6; font: 12.5px 'Segoe UI', system-ui, sans-serif; user-select: none; }
.win-bar img { width: 16px; height: 16px; }
.win-bar .caps { margin-left: auto; display: flex; height: 100%; }
.win-bar .caps i { width: 46px; display: grid; place-items: center; }
.win-bar .caps i::before { content: ''; display: block; width: 10px; height: 10px; }
.win-bar .caps .min::before { height: 1px; background: #d6d6d6; }
.win-bar .caps .max::before { border: 1px solid #d6d6d6; border-radius: 1px; }
.win-bar .caps .close::before { background: linear-gradient(45deg, transparent 46%, #d6d6d6 46%, #d6d6d6 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #d6d6d6 46%, #d6d6d6 54%, transparent 54%); }
/* site.js zooms each drawn page to its frame's width (data-w is the page's own width). */
.fit { position: relative; overflow: hidden; }
.fit.crop::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #0b131b); pointer-events: none; }

.fa-app { width: 1200px; height: 760px; overflow: hidden; background: radial-gradient(ellipse at 60% 0%, #142331, #0b131b 70%); display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.fa-page { width: 900px; height: 640px; overflow: hidden; background: radial-gradient(ellipse at 60% 0%, #142331, #0b131b 70%); }

/* Header: brand and the status bar's freshness lights. */
.fa-header { grid-column: 1 / -1; display: flex; align-items: stretch; border-bottom: 2px solid var(--a-edge); background: var(--a-surface); min-width: 0; }
.fa-brand { display: flex; align-items: center; gap: 12px; padding: 18px 20px; flex: 0 0 260px; border-right: 2px solid var(--a-edge); color: var(--a-strong); }
.fa-page .fa-brand { padding: 12px 18px; flex-basis: auto; }
.fa-brand img { width: 40px; height: 40px; }
.fa-page .fa-brand img { width: 30px; height: 30px; }
.fa-brand b { display: block; font-weight: 650; font-size: 15.7px; line-height: 1.45; }
.fa-brand small { display: block; color: var(--a-muted); font-size: 11.5px; }
.fa-status { align-self: center; flex: 1; min-width: 0; margin: 8px 16px; padding: 3px 10px; font-size: 11.2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: nowrap; }
.fa-light { display: inline-flex; align-items: center; gap: 4px; color: var(--a-link); font-size: 12px; }
.fa-light .t { color: var(--a-muted); }
.fa-light .w { color: var(--a-gold); }
.fa-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #5e5e5e; flex-shrink: 0; }
.fa-dot.on { background: var(--a-green); box-shadow: 0 0 6px var(--a-green); }
.fa-dot.stale { background: var(--a-orange); box-shadow: 0 0 6px var(--a-orange); }
.fa-sep { width: 1px; height: 16px; margin: 0 8px; background: var(--a-gold-dim); }

/* Sidebar */
.fa-side { padding: 16px 12px 20px; border-right: 2px solid var(--a-edge); background: var(--a-surface); }
.fa-group + .fa-group { border-top: 1px solid var(--a-edge-dim); padding-top: 9px; margin-top: 9px; }
.fa-nh { padding: 4px 10px; margin-bottom: 2px; font-size: 11.9px; font-weight: 600; color: var(--a-muted); }
.fa-ni { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-left: 3px solid transparent; border-radius: 5px; color: var(--a-text); }
.fa-ni svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--a-muted); }
.fa-ni span { flex: 1; }
.fa-ni.on { color: var(--a-gold); background: var(--a-gold-soft); border-left-color: var(--a-gold); }
.fa-ni.on svg { color: var(--a-gold); }
.fa-badge { flex: 0 0 auto !important; min-width: 18px; padding: 0 5px; border: 1px solid var(--a-gold); border-radius: 3px; color: var(--a-gold); font-size: 10.5px; text-align: center; line-height: 15px; }
.fa-sidefoot { margin-top: 14px; padding: 14px 7px 0; border-top: 1px solid var(--a-edge-dim); font-size: 10.9px; color: var(--a-muted); display: flex; align-items: center; gap: 6px; }
.fa-select { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 96px; padding: 2px 6px; border: 1px solid var(--a-edge); border-radius: 5px; background: var(--a-input); color: var(--a-strong); font-size: 11.9px; }
.fa-select::after, .fa-chev::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translate(-2px, -2px); }

/* Page: title, the corner with the nameplate and ? Help, introduction, tabs. */
.fa-main { padding: 26px 34px 32px; min-width: 0; }
.fa-page .fa-main { padding: 22px 26px; }
.fa-head { position: relative; border-bottom: 2px solid var(--a-edge-dim); padding-bottom: 18px; margin-bottom: 18px; }
.fa-titleline { display: flex; align-items: center; min-height: 52px; }
.fa-h1 { margin: 0; color: var(--a-strong); font-size: 37.8px; font-weight: 700; line-height: 1.15; }
.fa-corner { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.fa-plate {
  position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) 12px; gap: 12px; align-items: center;
  width: 360px; height: 52px; padding: 6px 14px 6px 8px; overflow: hidden;
  border: 1px solid var(--a-edge); border-left: 3px solid var(--rogue); border-radius: 6px; background: rgba(0, 0, 0, 0.3);
}
.fa-plate::before {
  /* A faint shield where the app shows the class crest (game art, not drawn here). */
  content: ''; position: absolute; right: 28px; top: -8px; width: 68px; height: 68px; opacity: 0.16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23fff468' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M16 2.5l11.5 4v8.5c0 7.5-5.5 12.5-11.5 14.5C10 27.5 4.5 22.5 4.5 15V6.5z'/%3E%3Cpath d='M10.5 9.5l9 9M19.5 18.5l-1 3M19.5 18.5l3-1M21 20l2 2M21.5 9.5l-9 9M12.5 18.5l1 3M12.5 18.5l-3-1M11 20l-2 2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.fa-classicon {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--rogue);
  background: radial-gradient(circle at 40% 35%, #3b3a1c, #15140a 70%) center/cover;
  display: grid; place-items: center;
}
.fa-classicon::before {
  content: ''; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff468' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M5 5l10 10M15 15l-1.5 3.5M15 15l3.5-1.5M17 17l2.5 2.5'/%3E%3Cpath d='M19 5L9 15M9 15l1.5 3.5M9 15l-3.5-1.5M7 17l-2.5 2.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.fa-plate b { display: block; color: var(--rogue); font-size: 15.4px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.fa-plate small { display: block; color: var(--a-muted); font-size: 11.9px; white-space: nowrap; }
.fa-chev { display: grid; place-items: center; color: var(--a-muted); }
.fa-help { width: 60px; text-align: right; color: var(--a-link); font-weight: 600; font-size: 13px; }
.fa-intro { margin: 8px 0 0; color: var(--a-muted); font-size: 14px; line-height: 1.5; }
.fa-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fa-tab { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 1px solid var(--a-edge-dim); border-radius: 5px; background: var(--a-surface); color: var(--a-muted); font-size: 12.3px; }
.fa-tab.on { color: var(--a-gold); border-color: var(--a-gold); background: var(--a-gold-soft); }
.fa-tabintro { margin: 0 0 14px; color: var(--a-muted); font-size: 14px; line-height: 1.5; }

/* Cards, text, buttons */
.fa-card { border: 2px solid var(--a-edge); border-radius: 7px; background: var(--a-card); padding: 18px; }
.fa-card + .fa-card, .fa-gap { margin-top: 14px; }
.fa-ct { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.fa-ct b { color: var(--a-strong); font-size: 18px; font-weight: 700; }
.fa-ct.big b { font-size: 21px; }
.fa-ct small { color: var(--a-muted); font-size: 11.2px; }
.fa-ct .right { margin-left: auto; }
.fa-muted { color: var(--a-muted); }
.fa-small { font-size: 12px; }
.fa-p { margin: 6px 0; }
.fa-link { color: var(--a-link); }
.fa-strong { color: var(--a-strong); font-weight: 650; }
.fa-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--a-edge); border-radius: 5px; background: var(--a-button); color: var(--a-text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.fa-btn.primary { color: var(--a-gold); border: 2px solid var(--a-gold); background: var(--a-gold-soft); font-weight: 700; }
.fa-input { flex: 1; display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--a-edge); border-radius: 5px; background: var(--a-input); color: #7d8b99; font-size: 13px; }
.fa-pill { display: inline-block; padding: 1px 6px; border: 1px solid var(--a-edge); border-radius: 2px; font-size: 9.5px; letter-spacing: 0.03em; color: var(--a-muted); line-height: 1.5; }
.fa-pill.ok { color: var(--a-green); border-color: var(--a-green); }
.fa-pill.warn, .fa-pill.accent { color: var(--a-gold); border-color: var(--a-gold); }
.fa-pill.bad { color: var(--a-red); border-color: var(--a-red); }
.gain { color: var(--a-green); white-space: nowrap; }
.loss { color: var(--a-red); white-space: nowrap; }
.fa-check { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--a-edge); border-radius: 3px; background: var(--a-input); position: relative; flex: 0 0 16px; transition: background 0.25s, border-color 0.25s; }
.fa-check.on { border-color: var(--a-gold); }
.fa-check.on::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--a-gold); border-width: 0 2.4px 2.4px 0; transform: rotate(40deg); }

/* Items: a drawn icon with a quality-colored edge, then the name in the quality color. */
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: var(--q3); } .q4 { color: var(--q4); }
.il { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.ic {
  --g: none;
  display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 3px; border: 1px solid #5a5248;
  background: var(--g) center/76% no-repeat, radial-gradient(circle at 35% 30%, #4a4034, #1b1712 75%);
  vertical-align: middle;
}
.ic.b2 { border-color: #1a8f10; } .ic.b3 { border-color: #0a5fb5; } .ic.b4 { border-color: #8a2bd0; }
.ic.lg { width: 34px; height: 34px; border-width: 2px; }
.g-meat { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M10.5 3.2c2.2 1 2.7 4.2.5 6.3s-5.2 2.6-6.6 1.1-.9-4.6 1.2-6.7 2.9-1.7 4.9-.7z'/%3E%3Cpath d='M5.2 11.2L2.6 13.8'/%3E%3Ccircle cx='2.2' cy='13.9' r='1'/%3E%3C/svg%3E"); }
.g-cup { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 6.5h8v2.5a4 4 0 0 1-8 0z'/%3E%3Cpath d='M11 7.2h1.3a1.5 1.5 0 0 1 0 3H11M5 2.5c0 1 1 1 1 2.2M8 2.5c0 1 1 1 1 2.2'/%3E%3C/svg%3E"); }
.g-fish { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M1.8 8c2-3.2 6.2-4.2 9.2-1l3-2v6l-3-2c-3 3.2-7.2 2.2-9.2-1z'/%3E%3Ccircle cx='5' cy='7.5' r='.7' fill='%23e8d6ad'/%3E%3C/svg%3E"); }
.g-clam { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M2 10.5a6 6 0 0 1 12 0z'/%3E%3Cpath d='M8 4.5v6M5.2 5.4l1.4 5M10.8 5.4l-1.4 5M3.5 13h9'/%3E%3C/svg%3E"); }
.g-potion { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff8a7a' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M6 2h4M6.6 2v3.2L3.6 10a3.4 3.4 0 0 0 3 5h2.8a3.4 3.4 0 0 0 3-5L9.4 5.2V2'/%3E%3Cpath d='M4.4 10.2h7.2'/%3E%3C/svg%3E"); }
.g-sword { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23dfe6ee' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M13.8 2.2L6.4 9.6M13.8 2.2h-2.6M13.8 2.2v2.6'/%3E%3Cpath d='M4.2 7.6l4.2 4.2M5.4 10.6l-3 3'/%3E%3C/svg%3E"); }
.g-dagger { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23dfe6ee' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M12.8 3.2L7.4 8.6'/%3E%3Cpath d='M12.8 3.2l-1 3M12.8 3.2l-3 1M5.4 6.8l3.8 3.8M6.4 9.6L3 13'/%3E%3C/svg%3E"); }
.g-chest { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M5 2.5l3 1.6 3-1.6 2.6 2-1 3-1.6-.5V14H5V7l-1.6.5-1-3z'/%3E%3C/svg%3E"); }
.g-pants { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M4.5 2.5h7l1 11.5h-3L8 7.2l-1.5 6.8h-3z'/%3E%3C/svg%3E"); }
.g-belt { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3'%3E%3Crect x='1.5' y='6' width='13' height='4' rx='1'/%3E%3Crect x='6.4' y='5.2' width='3.2' height='5.6' rx='.5'/%3E%3C/svg%3E"); }
.g-box { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linejoin='round'%3E%3Cpath d='M2.5 5.5L8 2.5l5.5 3v6L8 14.5l-5.5-3zM2.5 5.5L8 8.5l5.5-3M8 8.5v6'/%3E%3C/svg%3E"); }
.g-cookie { --g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8d6ad' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M2.5 9h11a5.5 4 0 0 1-11 0z'/%3E%3Cpath d='M5 6.5c.5-1 1.5-1.5 3-1.5s2.5.5 3 1.5M8 2.5v1.5'/%3E%3C/svg%3E"); }

/* Money: the amount, then a drawn coin, as the app shows it. */
.fa-m { display: inline-flex; align-items: center; color: var(--a-strong); font-family: 'Arial Narrow', 'Segoe UI', system-ui, sans-serif; font-stretch: condensed; font-size: 14.7px; white-space: nowrap; }
.fa-m b { font-weight: 400; margin-right: 2px; }
.fa-m i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35); }
.fa-m i:last-child { margin-right: 0; }
.fa .ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fa-m .g { background: radial-gradient(circle at 35% 30%, #fff1a8, #e7b320 55%, #94680a); }
.fa-m .s { background: radial-gradient(circle at 35% 30%, #ffffff, #b9c0c8 55%, #6c737b); }
.fa-m .c { background: radial-gradient(circle at 35% 30%, #ffd2ad, #c26a2c 55%, #6e3410); }
.gain .fa-m, .loss .fa-m { color: inherit; }

/* Tables */
.fa-table { width: 100%; border-collapse: collapse; font-size: 12.9px; }
.fa-table th { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--a-edge); color: var(--a-muted); font-size: 11.2px; font-weight: 600; white-space: nowrap; }
.fa-table td { padding: 9px 10px; border-bottom: 1px solid var(--a-edge-dim); vertical-align: middle; }
.fa-table tr.bet td:first-child { box-shadow: inset 3px 0 0 var(--a-gold); }
.fa-table .sub { display: block; color: var(--a-muted); font-size: 11px; margin-top: 2px; }
.fa-table .num { white-space: nowrap; }
.fa-up { color: var(--a-green); }
.fa-down { color: var(--a-red); }

/* To-do list */
.fa-todo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fa-sugs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fa-sug { border: 2px solid var(--a-edge); border-radius: 7px; background: var(--a-card); overflow: hidden; }
.fa-sum { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.fa-kind { display: grid; place-items: center; align-content: center; gap: 1px; width: 46px; height: 46px; flex-shrink: 0; border-radius: 6px; border: 1px solid var(--a-edge); color: var(--a-gold); background: var(--a-gold-soft); font-size: 10px; }
.fa-kind svg { width: 20px; height: 20px; }
.fa-copy { flex: 1; min-width: 0; }
.fa-st { display: block; color: var(--a-strong); font-size: 15.4px; font-weight: 650; line-height: 1.45; }
.fa-sd { display: block; margin-top: 3px; color: var(--a-muted); font-size: 12.2px; line-height: 1.45; }
.fa-tog { color: var(--a-muted); font-size: 11.2px; white-space: nowrap; }
.fa-body { padding: 14px 16px 12px; border-top: 1px solid var(--a-edge-dim); }
.fa-open { display: inline-block; padding: 6px 12px; margin-bottom: 8px; border: 1px solid var(--a-edge); border-radius: 5px; color: var(--a-gold); }
.fa-lines { display: grid; gap: 5px; font-size: 12.6px; color: var(--a-green); }
.fa-todos { list-style: none; margin: 0; padding: 0; }
.fa-todos li { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid var(--a-edge-dim); transition: opacity 0.4s, max-height 0.5s, padding 0.5s; max-height: 70px; overflow: hidden; }
.fa-todos li .grip { color: var(--a-muted); letter-spacing: -2px; font-size: 11px; }
.fa-todos li .tx { flex: 1; min-width: 0; }
.fa-todos li .ed { color: var(--a-link); font-size: 12.5px; }
.fa-todos li .de { color: var(--a-red); font-size: 12.5px; }
.fa-todos li.done .tx { opacity: 0.55; text-decoration: line-through; }
.fa-todos li.gone { max-height: 0; padding-block: 0; opacity: 0; border-bottom-width: 0; }
.fa-todos li.fresh { animation: fresh 1.4s ease; }
@keyframes fresh { from { background: var(--a-gold-soft); } }
.fa-addrow { display: flex; gap: 8px; margin-top: 12px; }

/* Gold: best bets and suggestions */
.fa-bets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.fa-bet { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border: 1px solid var(--a-gold-dim); border-radius: 3px; background: var(--a-gold-soft); }
.fa-bet .nm { color: var(--a-strong); }
.fa-idea { padding-top: 10px; }
.fa-ih { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fa-ih b { color: var(--a-strong); font-size: 14.5px; }
.fa-plan { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px 12px; margin: 8px 0; }
.fa-plan dt { color: var(--a-muted); font-size: 11px; }
.fa-plan dd { margin: 0; font-size: 12.6px; }
.fa-disc { padding: 8px 0; border-top: 1px solid var(--a-edge-dim); color: var(--a-muted); font-size: 13px; }
.fa-disc::before { content: '\25B8'; margin-right: 8px; }
.fa-actions { font-size: 12.5px; color: var(--a-link); }
.fa-actions .dotsep { color: var(--a-muted); }
.fa-flash { display: inline-block; padding: 1px 6px; border-radius: 3px; transition: background 0.4s, color 0.4s; }
.fa-flash.hit { background: var(--a-gold-soft); color: var(--a-gold); }
.fa-msg { margin: 8px 0 0; color: var(--a-green); font-size: 12.5px; opacity: 0; transition: opacity 0.4s; }
.fa-msg.on { opacity: 1; }

/* Ledger */
.fa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 11px; }
.fa-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border: 2px solid var(--a-edge); border-radius: 7px; background: var(--a-card); margin-bottom: 10px; }
.fa-tile span { color: var(--a-muted); font-size: 12px; }
.fa-tile strong { font-size: 16px; font-weight: 650; color: var(--a-strong); }
.fa-tile strong .fa-m { font-size: 16.5px; }
.fa-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.fa-grid2 > .fa-card { margin-top: 0; }
.fa-legend { display: flex; gap: 12px; font-size: 11px; color: var(--a-muted); }
.fa-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; background: var(--s1); }
.fa-legend i.s2 { background: var(--s2); }
.fa-chart { width: 100%; height: 116px; display: block; margin-top: 6px; }
.fa-chart .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s ease; }
.scr.on .fa-chart .ln, .fa-static .fa-chart .ln { stroke-dashoffset: 0; }
.fa-chart text { fill: var(--a-muted); font-size: 9px; font-family: inherit; }
.fa-chart .grid { stroke: rgba(255, 255, 255, 0.07); }

/* Gear */
.fa-gear { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fa-gear .fa-card { margin-top: 0; }
.fa-dps { margin-left: auto; color: var(--a-strong); font-size: 18px; }
.fa-ul { margin: 6px 0 10px; padding-left: 18px; font-size: 12.6px; }
.fa-sub { color: var(--a-strong); font-weight: 700; font-size: 14.5px; margin: 8px 0 4px; }
.fa-dmg td:nth-child(2) { color: var(--a-strong); text-align: right; }
.fa-dmg td:nth-child(3) { color: var(--a-muted); font-size: 11px; }
.fa-verdict { display: flex; align-items: center; gap: 14px; margin: 10px 0; padding: 10px 14px; border: 1px solid var(--a-edge); border-left: 4px solid var(--a-gold); border-radius: 4px; background: rgba(0, 0, 0, 0.2); }
.fa-verdict.ok { border-left-color: var(--a-green); }
.fa-mark { font-size: 24px; line-height: 1; }
.fa-mark.yes { color: var(--a-green); }
.fa-mark.no { color: var(--a-red); }
.fa-carry { display: flex; gap: 6px; margin: 4px 0 6px; }
.fa-carry .ic { position: relative; }
.fa-carry .best::after { content: '\25B2'; position: absolute; right: -4px; bottom: -6px; color: var(--a-green); font-size: 11px; text-shadow: 0 0 2px #000; }

/* Guild calendar */
.fa-calhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fa-calhead b { color: var(--a-strong); font-size: 16px; }
.fa-calhead .right { margin-left: auto; }
.fa-calhead .fa-btn { min-height: 30px; padding: 4px 10px; }
.fa-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.fa-cal .h { padding: 2px 4px; font-size: 11px; color: var(--a-muted); }
.fa-day { display: flex; flex-direction: column; gap: 2px; min-height: 62px; padding: 3px 4px; border: 1px solid var(--a-line); border-radius: 4px; overflow: hidden; }
.fa-day .n { font-size: 11px; }
.fa-day.other { opacity: 0.45; }
.fa-day.today .n { color: var(--a-gold); font-weight: 700; }
.fa-day.picked { border-color: var(--a-gold); }
.fa-item { overflow: hidden; padding: 0 4px; border-left: 3px solid var(--s1); border-radius: 2px; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; background: rgba(255, 255, 255, 0.05); }
.fa-item.ev { border-color: var(--s2); }
.fa-item.night { border-color: var(--s3); }
.fa-calfoot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 11.5px; color: var(--a-muted); }
.fa-calfoot i { display: inline-block; width: 3px; height: 12px; margin-right: 5px; vertical-align: -2px; background: var(--s1); }
.fa-calfoot i.ev { background: var(--s2); }
.fa-calfoot i.night { background: var(--s3); }
.fa-calfoot .right { margin-left: auto; color: var(--a-link); font-size: 13px; }
.fa-dayline { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--a-gold-dim); font-size: 12.5px; }

/* Addons */
.fa-notes { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; }
.fa-addons { list-style: none; margin: 0; padding: 0; }
.fa-addons li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--a-edge-dim); }
.fa-addons li > div { flex: 1; min-width: 0; }
.fa-addons .t { display: flex; gap: 8px; align-items: baseline; }
.fa-addons .t b { color: var(--a-strong); font-weight: 650; }

/* Chips: one card each, sized to their content. */
.chip .fa { border: 2px solid var(--a-edge); border-radius: 8px; background: var(--a-card); padding: 10px 12px; font-size: 13px; }
.chip .fa-bet { border: 1px solid var(--a-gold-dim); background: linear-gradient(var(--a-gold-soft), var(--a-gold-soft)), var(--a-card); width: 236px; padding: 9px 11px; }
.chip-trend .fa { width: 210px; }
.chip-trend svg { display: block; margin-top: 4px; }
.chip-trend .ln { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s ease forwards 0.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chip-gear .fa { width: 268px; padding: 0; }
.chip-gear .fa-verdict { margin: 0; border: 0; border-left: 4px solid var(--a-gold); }
.chip-leak .fa { width: 250px; }
.chip-raid .fa { width: 250px; }
.chip .fa-item { font-size: 12px; padding: 2px 6px; }
.chip .fa-ct { flex-wrap: wrap; gap: 2px 8px; margin-bottom: 6px; }
.chip .fa-ct b { font-size: 15px; white-space: nowrap; }

/* Narrow frames (phones): the app as it looks in a narrow window, without the menu.
   site.js adds .narrow when a frame is under 720 px wide. */
.fa.narrow { width: 480px; }
.fa-app.narrow { grid-template-columns: minmax(0, 1fr); height: 820px; }
.fa-app.narrow .fa-side { display: none; }
.fa-page.narrow { height: 640px; }
.narrow .fa-brand { flex: 0 0 auto; padding: 10px 12px; gap: 8px; }
.narrow .fa-brand img { width: 26px; height: 26px; }
.narrow .fa-brand small { display: none; }
.narrow .fa-status { margin: 6px 8px; padding: 0; gap: 6px; }
.narrow .fa-status .fa-sep, .narrow .fa-status .fa-sep ~ * { display: none; }
.narrow .fa-main { padding: 14px 14px 20px; }
.narrow .fa-titleline { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
.narrow .fa-corner { margin-left: 0; gap: 10px; }
.narrow .fa-plate { width: auto; flex: 1; }
.narrow .fa-h1 { font-size: 30px; }
.narrow .fa-todo, .narrow .fa-gear, .narrow .fa-grid2 { grid-template-columns: minmax(0, 1fr); }
.narrow .fa-tiles, .narrow .fa-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.narrow .fa-table .wide, .narrow .fa-dmg td:nth-child(3),
.narrow .fa-craft td:nth-child(4), .narrow .fa-craft td:nth-child(6), .narrow .fa-craft td:nth-child(8) { display: none; }
.narrow .fa-day { min-height: 44px; padding: 2px; }
.narrow .fa-item { font-size: 8.5px; padding: 0 2px; }
.narrow .fa-cal .h { font-size: 0; }
.narrow .fa-cal .h::first-letter { font-size: 10px; }

/* Wide screens keep chips around the window; narrower ones tuck them in. */
@media (max-width: 1420px) {
  .chip-bet, .chip-gear { left: -22px; }
  .chip-trend, .chip-leak { right: -22px; }
}
@media (max-width: 1180px) {
  .chip-gear, .chip-leak { display: none; }
  .chip-bet { left: -12px; } .chip-trend { right: -12px; }
}
@media (max-width: 920px) {
  :root { --header-h: 96px; }
  .nav { flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  .nav nav { order: 3; flex: 1 0 100%; margin-left: 0; overflow-x: auto; gap: 18px; padding-bottom: 6px; white-space: nowrap; }
  .count-chip { margin-left: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .download-box { grid-template-columns: minmax(0, 1fr); }
  .tour { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pin { order: -1; top: var(--header-h); z-index: 4; padding-block: 8px 12px; background: linear-gradient(var(--bg) 92%, transparent); }
  .rail { display: none; }
  .st { min-height: 62vh; justify-content: flex-start; padding-top: 24px; }
  .st h3 { font-size: 28px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-box { grid-template-columns: minmax(0, 1fr); padding: 34px 24px; }
  .chips { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
  .chip { position: static; transform: none !important; }
  .chip .fa, .chip .fa-bet { width: auto; height: 100%; }
  .chip-gear, .chip-raid, .chip-trend { display: none; }
  .chip-leak { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .lede { font-size: 18px; }
  .count-chip { padding: 6px 10px; font-size: 13px; }
  .brand { font-size: 16px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .ticker-label { display: none; }
  .track { padding-left: 16px; }
  .cd b { font-size: 30px; }
  .win-bar { height: 28px; font-size: 11.5px; }
  .win-bar .caps i { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker { overflow-x: auto; }
  .track { padding-left: 230px; }
  .chip-trend .ln, .fa-chart .ln { stroke-dashoffset: 0; }
}
