/* Allemano Addons — site styles. Dark, flat; each addon brings its own --accent. */

:root {
  --bg: #0B0C0E;
  --bg-band: #0E1013;
  --surface: #121418;
  --surface-2: #181B20;
  --line: #22262D;
  --line-soft: #1A1D22;
  --text: #ECEDEF;
  --muted: #8A9099;
  --faint: #5C626B;
  --accent: #ECEDEF;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 17px; letter-spacing: -0.01em; }
p { margin: 0; }
code { font: 0.9em var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.band { background: var(--bg-band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.lead { font-size: 17px; color: var(--muted); max-width: 34em; margin-top: 20px; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.eyebrow.cat { color: var(--accent); margin: 6px 0 0; }
.accent-text { color: var(--accent); }
.page-title { margin-bottom: 40px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
  font: 500 14px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  white-space: nowrap;
}
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--text); color: #0B0C0E; }
.btn-primary:hover { background: #fff; color: #0B0C0E; }
.btn-accent { background: var(--accent); color: #0B0C0E; font-weight: 600; }
.btn-accent:hover { color: #0B0C0E; filter: brightness(1.08); }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: #3A3F48; background: var(--surface); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }
.btn.is-disabled:hover { background: inherit; filter: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  font: 500 10px/1 var(--mono); letter-spacing: .06em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-muted { color: var(--muted); border-color: var(--line); background: var(--surface-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font: 500 11px/1 var(--font); color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px;
}
button.chip { cursor: pointer; font-size: 13px; padding: 8px 12px; }
button.chip:hover { color: var(--text); }
button.chip.is-active { color: #0B0C0E; background: var(--accent); border-color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.header-in { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font); letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav > a:first-child { margin-left: auto; }
.nav a[aria-current] { color: var(--text); }
.nav-cta { margin-left: 16px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 56px); }
.hero .ctas { margin-top: 32px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
/* Hush window (hw-*): drawn after the in-game Allemano theme. In-game colors on purpose
   (window 121418, field 181B20, line 262A31), bold compact text like the game font. */
.hw { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: minmax(0, 1fr); height: 390px; overflow: hidden;
  background: #121418; border-color: #262A31; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: #ECEDEF; }
.hw b { font-weight: 700; }
.hw-side { border-right: 1px solid #262A31; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.hw-side > * { flex: none; } /* rows below the fold are cut, never squeezed */
.hw-title { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font-size: 13px; }
.hw-icons { margin-left: auto; display: flex; gap: 10px; color: #9098A1; }
.hw-select, .hw-field { margin: 0 12px 7px; border: 1px solid #262A31; border-radius: 6px; background: #181B20; padding: 6px 9px; color: #6E757E; }
.hw-select { display: flex; align-items: center; gap: 5px; color: #ECEDEF; }
.hw-select i { color: #9098A1; font-style: normal; font-weight: 500; }
.hw-select svg { margin-left: auto; color: #9098A1; }
.hw-tabs { display: flex; justify-content: space-between; padding: 5px 12px 8px; border-bottom: 1px solid #262A31; color: #9098A1; }
.hw-tabs b { color: var(--accent); }
.hw-cat { display: flex; align-items: center; gap: 6px; padding: 8px 12px 4px; color: #6E757E; font-size: 9.5px; letter-spacing: .06em; }
.hw-cat i { font-style: normal; }
.hw-row { margin: 0 6px; padding: 6px 8px; border-radius: 6px; }
.hw-row.is-sel { background: #1F232A; }
.hw-row p { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.hw-row p + p { color: #9098A1; margin-top: 1px; padding-left: 13px; }
.hw-row p:first-child:not(:has(i)) { padding-left: 13px; }
.hw-row p i { width: 7px; height: 7px; border-radius: 50%; background: #5A626B; flex: none; }
.hw-row p i.on { background: #3FC77F; }
.hw-row time { margin-left: auto; color: #6E757E; font-size: 9.5px; font-weight: 500; }
.hw-row .unread { color: #ECEDEF; }
.hw-row em { margin-left: auto; font-style: normal; background: var(--accent); color: #0E1013; border-radius: 8px; padding: 0 6px; font-size: 9.5px; line-height: 15px; }
.hw-pane { display: flex; flex-direction: column; min-width: 0; }
.hw-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid #262A31; color: #9098A1; }
.hw-head b { font-size: 14px; }
.hw-head small { display: block; margin-top: 3px; font-size: 9.5px; color: #9098A1; }
.hw-body { flex: 1; min-height: 0; overflow: hidden; padding: 4px 14px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; }
.hw-day { display: flex; align-items: center; gap: 10px; color: #6E757E; font-size: 9px; letter-spacing: .08em; }
.hw-day::before, .hw-day::after { content: ""; flex: 1; height: 1px; background: #262A31; }
.hw-msg { display: flex; gap: 9px; }
.hw-pf { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #262A31; border-radius: 4px; background: #181B20; font-size: 11px; }
.hw-meta { color: #6E757E; font-size: 9.5px; font-weight: 500; margin-bottom: 3px; }
.hw-meta b { font-size: 11px; margin-right: 4px; }
.hw-bubble { display: inline-block; max-width: 92%; padding: 5px 9px; border-radius: 8px; background: #181B20; line-height: 1.4; }
.hw-out { align-self: flex-end; text-align: right; max-width: 78%; }
.hw-out .hw-bubble { background: color-mix(in srgb, var(--accent) 22%, #121418); text-align: left; }
.hw-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #262A31; }
.hw-input .hw-field { flex: 1; margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; }
.hw-input b { background: var(--accent); color: #0E1013; border-radius: 6px; padding: 6px 14px; }
/* WoW class colors */
.c-druid { color: #FF7C0A; } .c-priest { color: #FFFFFF; } .c-rogue { color: #FFF468; }
.c-mage { color: #3FC7EB; } .c-warlock { color: #8788EE; } .c-paladin { color: #F48CBA; }
.c-shaman { color: #0070DD; } .c-warrior { color: #C69B6D; }

/* ---------- hero carousel: one drawn window per addon ---------- */
.hero-slides { position: relative; height: 390px; }
/* The new slide fades in on top; the old one stays until it is covered, then goes. */
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .2s ease .45s, visibility 0s .65s; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity .45s ease; }
.hero-slide > .mock:not(.st) { height: 100%; }

/* Shared in-game window look (same colors as the Allemano theme in game). */
.gw { background: #121418; border-color: #262A31; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: #ECEDEF; overflow: hidden; }
.gw b { font-weight: 700; }
.gw-title { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font-size: 13px; border-bottom: 1px solid #262A31; }
.gw-right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: #9098A1; font-size: 11px; }
.gw i.g, .gw i.s { font-style: normal; font-weight: 600; }
.gw i.g { color: #FFD100; } .gw i.s { color: #C7C7CF; }
.gw .good { color: #3FC77F; } .gw .bad { color: #E0564F; } .gw .dim { color: #6E757E; }

/* AltBoard */
.ab-gold { color: #ECEDEF; }
.ab-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); column-gap: 10px; row-gap: 4px; padding: 8px 14px; align-items: center; }
.ab-grid > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.ab-char { display: flex; flex-direction: column; padding-bottom: 5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ab-char.is-sel { border-color: var(--accent); }
.ab-char small { color: #9098A1; font-size: 9.5px; font-weight: 500; }
.ab-sec { grid-column: 1 / -1; margin-top: 7px; color: var(--accent); font-size: 10px; letter-spacing: .06em; }
.ab-sec i { font-style: normal; color: #9098A1; margin-left: 4px; }
.ab-ic { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.ab-rep { position: relative; text-align: center; font-size: 10px; padding-bottom: 5px; }
.ab-rep::before, .ab-rep::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; }
.ab-rep::before { right: 0; background: #262A31; }
.ab-rep::after { width: var(--p); background: var(--accent); }

/* ART */
.art { display: grid; grid-template-columns: 29% 1fr; grid-template-rows: minmax(0, 1fr); }
.art-side { border-right: 1px solid #262A31; overflow: hidden; }
.art-side .gw-title { border-bottom: 0; }
.art-h { padding: 8px 14px 2px; color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.art-nav { margin: 0 6px; padding: 3px 8px; border-radius: 5px; color: #9098A1; }
.art-nav.is-sel { background: #1F232A; color: #ECEDEF; }
.art-main { display: flex; flex-direction: column; min-width: 0; padding: 0 14px; overflow: hidden; }
.art-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0 10px; color: #9098A1; }
.art-head b { font-size: 14px; color: #ECEDEF; }
.art-head small { display: block; margin-top: 3px; font-size: 9.5px; }
.art-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.art-btns b { padding: 5px 9px; border: 1px solid #262A31; border-radius: 6px; background: #181B20; font-size: 10px; }
.art-btns b.is-accent { background: var(--accent); border-color: var(--accent); color: #0E1013; }
.art-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.art-card { padding: 9px 10px; border: 1px solid #262A31; border-radius: 8px; background: #181B20; min-width: 0; }
.art-wide { grid-column: 1 / -1; }
.art-ct { margin-bottom: 5px; color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.art-bar { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 6px; margin-top: 4px; font-size: 10px; color: #9098A1; }
.art-bar i { position: relative; height: 3px; border-radius: 2px; background: #262A31; }
.art-bar i::after { content: ""; position: absolute; inset: 0; width: var(--p); border-radius: 2px; background: #3FC77F; }
.art-bar em, .art-pull em { font-style: normal; color: #ECEDEF; font-size: 9.5px; }
.art-note { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 10px; white-space: nowrap; }
.art-note i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.art-note .skull { background: #ECEDEF; } .art-note .cross { background: #E0564F; }
.art-small { margin-top: 6px; color: #6E757E; font-size: 9px; }
.art-pull { display: grid; grid-template-columns: 1fr auto 36px; gap: 8px; margin-top: 4px; font-size: 10px; }
.art-pull span:last-child { text-align: right; color: #9098A1; }
.art-pull em.good { color: #3FC77F; } .art-pull em.bad { color: #E0564F; }

/* Session Tracker: two small windows */
.st-slide { display: flex; align-items: center; justify-content: center; gap: 18px; }
.st { width: 232px; padding-bottom: 4px; }
.st-levels { width: 196px; margin-top: 60px; }
.st-btn { font-style: normal; padding: 2px 8px; border: 1px solid var(--accent); border-radius: 5px; color: var(--accent); font-size: 10px; }
.st-row { display: flex; justify-content: space-between; padding: 4px 14px; color: #9098A1; }
.st-row b { color: #ECEDEF; }
.st-level { padding: 6px 14px 10px; }
.st-level p { display: flex; justify-content: space-between; margin-bottom: 4px; color: #9098A1; font-size: 9.5px; }
.st-level i { position: relative; display: block; height: 4px; border-radius: 2px; background: #262A31; }
.st-level i::after { content: ""; position: absolute; inset: 0; width: var(--p); border-radius: 2px; background: var(--accent); }

/* Arbiter Soft Reserve: the import box and an item tooltip */
.hero-slide.asr-slide > .mock.asr { height: auto; }
.asr-slide { display: flex; align-items: center; justify-content: center; gap: 18px; }
.asr { width: 330px; padding-bottom: 12px; }
.asr-hint { padding: 10px 14px 6px; color: #9098A1; }
.asr-box { margin: 0 14px; padding: 8px 10px; border: 1px solid #262A31; border-radius: 6px; background: #0C0E11; font: 500 9px/1.7 ui-monospace, Consolas, monospace; color: #9098A1; white-space: nowrap; overflow: hidden; }
.asr-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; }
.asr-tip { width: 230px; padding: 10px 12px; margin-top: 70px; }
.asr-tip p { padding: 1.5px 0; }
.asr-item { color: #A335EE; font-size: 12.5px; }
.asr-epic { color: #FFD100; }
.asr-line { display: flex; justify-content: space-between; color: #ECEDEF; }
.asr-line span { color: #ECEDEF; }
.asr-sr { margin-top: 6px; padding-top: 6px !important; border-top: 1px solid #262A31; color: #9B7BFF; }

/* Allemano Hub: the sidebar and the overview */
.hub { display: grid; grid-template-columns: 29% 1fr; grid-template-rows: minmax(0, 1fr); }
.hub-side { border-right: 1px solid #262A31; overflow: hidden; }
.hub-side .gw-title { border-bottom: 0; }
.hub-side .art-h { color: #6E757E; }
.hub-side .art-nav i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 2px; }
.hub-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; overflow: hidden; }
.hub-banner { padding: 10px 12px; border: 1px solid #262A31; border-radius: 8px; background: #181B21; }
.hub-banner b { display: block; font-size: 13px; }
.hub-banner small { display: block; margin-top: 3px; color: #9098A1; font-size: 9.5px; }
.hub-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #262A31; border-radius: 8px; }
.hub-card > i { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.hub-card p { flex: 1; min-width: 0; }
.hub-card small { display: block; margin-top: 2px; color: #6E757E; font-size: 9.5px; }
.hub-card .st-btn { color: #ECEDEF; border-color: #3a3f48; }
.hub-err { display: flex; justify-content: space-between; padding: 6px 4px; color: #9098A1; }

/* Product card under the carousel */
.hero-card { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hc-info { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.hc-text { flex: 1; min-width: 0; }
.hc-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hc-name b { font-size: 15px; font-weight: 600; }
.hc-name .eyebrow { margin: 0; }
.hc-text .muted { margin-top: 2px; }
.hc-info .accent-link { white-space: nowrap; }
.hc-switch { display: flex; gap: 6px; margin-top: 12px; }
.hc-switch button { position: relative; overflow: hidden; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font: 500 12px/1 var(--font); cursor: pointer; white-space: nowrap; }
.hc-switch button:hover { color: var(--text); }
.hc-switch svg, .hc-info .mark { flex: none; }
.hc-switch button.is-active { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.hc-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
/* The progress bar is the timer: when it fills, site.js shows the next addon. */
.hc-switch button.is-active .hc-prog { animation: hc-prog 6s linear forwards; }
.hero-art.paused .hc-prog { animation-play-state: paused; }
@keyframes hc-prog { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hc-switch button.is-active .hc-prog { animation: none; width: 100%; }
}

/* ---------- suite ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.section-head > p { max-width: 24em; }
.section-head.tight { margin-bottom: 16px; align-items: baseline; }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.addon-card { display: flex; flex-direction: column; padding: 24px; transition: border-color .15s, transform .15s; }
.addon-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.addon-card h3 { font-size: 22px; }
.addon-card > .muted { margin-top: 14px; font-size: 14px; }
.card-extra { margin-top: 20px; }
.card-extra .eyebrow { margin-bottom: 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12px; }
.card-extra + .card-foot { margin-top: 24px; }
.accent-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 500; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles h3 { margin: 8px 0 10px; }
.principles .muted { font-size: 14px; }

/* ---------- releases / install ---------- */
.releases-install { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
.release-list, .install-list { list-style: none; margin: 0; padding: 0; }
.release { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.release .mark { margin-top: 4px; }
.release p:first-child { font-weight: 600; }
.release .mono { font-size: 13px; font-weight: 500; }
.install-list { display: grid; gap: 10px; margin-top: 16px; }
.install { padding: 16px 18px; }
.install p:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.install.is-soon { opacity: .75; }

.support { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px; }
.support h2 { font-size: 26px; margin-bottom: 10px; }
.support .muted { max-width: 34em; }

/* ---------- addon page ---------- */
.addon-hero { padding-top: 40px; padding-bottom: 56px; }
.crumbs { display: flex; gap: 8px; color: var(--faint); font-family: var(--mono); margin-bottom: 40px; }
.crumbs span:last-child { color: var(--text); }
.addon-hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.addon-hero-grid h1 { margin-top: 20px; }
.version-card { padding: 22px; display: grid; gap: 16px; }
.vc-head { display: flex; justify-content: space-between; align-items: center; }
.vc-version { font-size: 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.vc-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vc-links .btn { padding: 0 6px; }
.vc-foot { display: flex; justify-content: space-between; gap: 12px; }

.gallery { padding-bottom: 88px; }
.shot { display: grid; place-items: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); overflow: hidden; }
/* Screenshots are shown whole (in-game crops have many shapes), centered on the surface. */
.shot { position: relative; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; padding: inherit; box-sizing: border-box; object-fit: scale-down; }
.shot:has(img) { border-style: solid; }
.shot-main { aspect-ratio: 16 / 10; padding: 16px; }
.shot-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.shot-thumb { aspect-ratio: 16 / 10; cursor: pointer; font: inherit; color: inherit; padding: 8px; }
.shot-thumb.is-active { border: 1px solid var(--accent); }

.band h2 + .feature-grid, .section > h2 + .feature-grid { margin-top: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature { border-top: 1px solid var(--line); padding: 20px 0 32px; }
.feature h3 { margin-bottom: 8px; font-size: 16px; }
.feature .muted { font-size: 14px; }

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.module { padding: 20px 22px; }
.module .mono { margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.section > h2 + .muted { margin-top: 10px; }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.two-col h2 { margin-bottom: 20px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.cmds { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmds td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cmds td:first-child { padding-right: 20px; white-space: nowrap; }

.log-entry { padding: 20px 0; border-top: 1px solid var(--line); }
.log-entry > p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
.log-entry ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.filter { margin-bottom: 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 32px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-top .brand + p { margin-top: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 160px); gap: 40px; }
.footer-cols a { display: block; font-size: 14px; color: var(--muted); padding: 3px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
  .addon-hero-grid, .releases-install, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .module-grid { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav > a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav > a:first-child { margin-left: 0; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; height: 44px; }
  .nav-open .nav { display: flex; }

  .hero .ctas { flex-direction: column; }
  .hero .ctas .btn { width: 100%; height: 48px; }
  /* Phone: show only the conversation, like the mobile mockup */
  .hero-slides { height: 340px; }
  .hw, .art { grid-template-columns: 1fr; height: 100%; }
  .hw-side, .art-side, .st-levels { display: none; }
  .hw-body { padding-bottom: 12px; }
  .ab-grid { column-gap: 6px; font-size: 10px; padding: 8px 10px; }
  .ab-grid > span .ab-ic { display: none; }
  .hc-switch button span { display: none; } /* marks only */
  .hc-info { flex-wrap: wrap; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head.tight { flex-direction: row; }
  .addon-grid, .feature-grid, .module-grid { grid-template-columns: 1fr; }
  .shot-thumbs { grid-template-columns: repeat(2, 1fr); }
  .support { flex-direction: column; align-items: stretch; padding: 28px 22px; }
  .support .ctas { flex-direction: column; }
  .support .btn { width: 100%; height: 48px; }
  .footer-top { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .release { grid-template-columns: auto 1fr; }
  .release time { grid-column: 2; }
}

/* A note under an addon lead: alpha builds and the like. */
.notice { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 10px; color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); max-width: 60ch; }
/* A real screenshot in the hero carousel. */
.shot-slide { display: flex; align-items: center; justify-content: center; padding: 0; }
.shot-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* CraftBoard hero window: professions | recipes | the selected recipe's crafters. */
.cb { display: grid; grid-template-columns: 24% minmax(0, 1fr) 37%; grid-template-rows: 36px minmax(0, 1fr); }
.cb > .gw-title { grid-column: 1 / -1; }
.cb-sub { color: var(--accent); font-size: 8.5px; letter-spacing: .1em; margin-top: 1px; }
.cb-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid #262A31; border-radius: 6px; background: #181B20; color: #9098A1; font-size: 10px; font-weight: 500; }
.cb-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.cb-side { background: #0E1013; border-right: 1px solid #262A31; padding: 10px 6px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.cb-side > *, .cb-mid > *, .cb-pane > * { flex: none; }
.cb-h { display: flex; justify-content: space-between; color: #6E757E; font-size: 8.5px; letter-spacing: .08em; padding: 0 6px 6px; }
.cb-h em { font-style: normal; letter-spacing: 0; font-weight: 500; color: #9098A1; }
.cb-nav { display: flex; justify-content: space-between; gap: 6px; padding: 5px 7px; border-radius: 6px; color: #9098A1; white-space: nowrap; overflow: hidden; }
.cb-nav em { font-style: normal; color: #6E757E; font-weight: 500; font-size: 10px; }
.cb-nav.is-sel { background: #1F232A; color: #ECEDEF; box-shadow: inset 2px 0 0 var(--accent); }
.cb-toggle { display: flex; align-items: center; gap: 7px; margin: auto 6px 4px; padding-top: 8px; border-top: 1px solid #262A31; color: #9098A1; font-size: 10px; white-space: nowrap; }
.cb-toggle i { width: 22px; height: 12px; border-radius: 8px; background: #262A31; position: relative; flex: none; }
.cb-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #9098A1; }
.cb-mid { padding: 10px 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.cb-field { margin: 0 6px 8px; border: 1px solid #262A31; border-radius: 6px; background: #181B20; padding: 6px 9px; color: #6E757E; font-weight: 500; white-space: nowrap; overflow: hidden; }
.cb-row { display: flex; align-items: center; gap: 8px; padding: 6px 7px; margin: 0 2px; border-radius: 6px; min-width: 0; }
.cb-row.is-sel { background: #1F232A; }
.cb-row p { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cb-row b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-row small { color: #6E757E; font-size: 9px; font-weight: 500; }
.cb-row span { color: #ECEDEF; font-size: 10px; white-space: nowrap; flex: none; }
.cb-row u { text-decoration: none; color: #3FC77F; }
.cb-ic { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #262A31; flex: none; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.cb-ic-l { width: 30px; height: 30px; border-radius: 6px; }
.cb-pane { border-left: 1px solid #262A31; padding: 10px 9px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.cb-head { display: flex; align-items: center; gap: 8px; padding: 0 0 10px; }
.cb-head p { display: flex; flex-direction: column; min-width: 0; }
.cb-head b { font-size: 12px; line-height: 1.2; }
.cb-head small { color: var(--accent); font-size: 8.5px; letter-spacing: .08em; margin-top: 2px; }
.cb-pane .cb-h { padding-left: 0; }
.cb-reag { display: flex; justify-content: space-between; padding: 3px 0 5px; }
.cb-reag em { font-style: normal; color: #9098A1; font-weight: 500; }
.cb-crafter { display: flex; align-items: center; gap: 7px; border: 1px solid #262A31; border-radius: 6px; background: #181B20; padding: 6px 7px; margin-bottom: 5px; min-width: 0; }
.cb-crafter > i { width: 6px; height: 6px; border-radius: 50%; background: #5A626B; flex: none; }
.cb-crafter > i.on { background: #3FC77F; }
.cb-crafter p { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cb-crafter b { font-size: 11px; }
.cb-crafter small { color: #9098A1; font-size: 8.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-crafter .cd { color: var(--accent); }
.cb-btn { font-style: normal; flex: none; border: 1px solid var(--accent); border-radius: 6px; padding: 3px 7px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, #181B20); font-size: 9.5px; }
.cb-btn.is-plain { border-color: #3a4049; color: #ECEDEF; background: #181B20; }

@media (max-width: 560px) {
  .cb { grid-template-columns: minmax(0, 1fr) 44%; }
  .cb-side { display: none; }
}

/* Header logo lockup: mark, ALLEMANO, six dashes (one per addon) and a rotating slogan. */
.brand-lock { gap: 13px; letter-spacing: 0; }
.brand-lock .mark { flex: none; }
.bl-text { display: flex; flex-direction: column; gap: 7px; }
.bl-name { font: 700 18px/1 var(--font); letter-spacing: .27em; margin-right: -.27em; }
.bl-row { display: flex; align-items: center; gap: 11px; }
.bl-dashes { display: flex; gap: 4px; }
.bl-dashes i { width: 16px; height: 4px; border-radius: 3px; background: var(--c); }
.bl-slogan { display: grid; font: 500 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bl-slogan span { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease; }
.bl-slogan span.is-on { opacity: 1; }
/* The dashes take turns to light up (brighter and a little taller, never wider, so they never touch): six over the 6 s a slogan stays. */
@keyframes bl-pulse { 0%, 16% { opacity: 1; transform: scaleY(1.75); } 26%, 100% { opacity: .38; transform: scaleY(1); } }
.bl-dashes i { transform-origin: center; animation: bl-pulse 6s ease-in-out infinite; }
.bl-dashes i:nth-child(1) { animation-delay: 0s; }
.bl-dashes i:nth-child(2) { animation-delay: 1s; }
.bl-dashes i:nth-child(3) { animation-delay: 2s; }
.bl-dashes i:nth-child(4) { animation-delay: 3s; }
.bl-dashes i:nth-child(5) { animation-delay: 4s; }
.bl-dashes i:nth-child(6) { animation-delay: 5s; }
.is-paused .bl-dashes i { animation-play-state: paused; }
.is-still .bl-dashes i, .is-still .bl-slogan span { animation: none; transition: none; }
.is-still .bl-dashes i { opacity: 1; transform: none; }
.is-still .bl-slogan span:not(:first-child) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .bl-dashes i { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  /* Phone: keep the six colored dashes under the name, drop only the slogan */
  .bl-slogan { display: none; }
  .bl-text { gap: 6px; }
  .bl-name { font-size: 15px; }
  .bl-dashes { gap: 3px; }
  .bl-dashes i { width: 13px; height: 3px; }
  .brand-lock .mark { width: 30px; height: 24px; }
}

.install-note { margin-top: 14px; max-width: 46ch; }

.dl-count { margin-left: 2px; }

/* ---------- guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; transition: border-color .15s, background .15s; }
.guide-card:hover { border-color: var(--accent); background: var(--surface-2); }
.guide-card .eyebrow { margin: 0; }
.gc-status { margin-top: auto; padding-top: 8px; color: var(--accent); }

.g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 190px; gap: 48px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.g-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 110px); overflow: auto; }
.g-side .g-back { color: var(--muted); margin-bottom: 14px; }
.g-side .g-addon { display: block; font-size: 15px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); color: var(--accent); }
.g-side .eyebrow { margin: 14px 0 6px; }
.g-side ul { list-style: none; margin: 0; padding: 0; }
.g-side li { display: flex; justify-content: space-between; align-items: center; border-radius: 6px; font-size: 14px; }
.g-side li a, .g-side li > span { flex: 1; padding: 5px 10px; color: var(--muted); }
.g-side li a:hover { color: var(--text); background: var(--surface); border-radius: 6px; }
.g-side li.is-current a { color: var(--text); background: var(--surface-2); border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; }
.g-side li.is-soon > span { color: var(--faint); }
.g-side li i { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-right: 8px; }

.g-main { min-width: 0; }
.g-main .crumbs { margin-bottom: 20px; }
.g-title { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 8px; }
.g-main > h2 { margin-top: 40px; margin-bottom: 14px; font-size: 22px; }
.g-list { display: grid; gap: 10px; }
.g-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.g-item b { font-weight: 600; }
.g-item span { grid-column: 1; color: var(--muted); font-size: 13px; }
.g-item i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
a.g-item:hover { border-color: var(--accent); background: var(--surface-2); }
.g-item.is-soon { opacity: .6; background: transparent; }
.g-more { margin-top: 40px; }

.g-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.g-toc a { color: var(--muted); padding: 3px 0 3px 10px; border-left: 1px solid var(--line); }
.g-toc a:hover { color: var(--text); border-left-color: var(--accent); }
.g-toc a.lvl3 { padding-left: 22px; }

.prose { max-width: 720px; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin-top: 40px; padding-top: 8px; scroll-margin-top: 90px; }
.prose h3 { font-size: 17px; margin-top: 28px; scroll-margin-top: 90px; }
.prose h4 { font-size: 15px; margin-top: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow: auto; }
.prose pre code { background: none; padding: 0; font-size: 13px; }
.prose img { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose blockquote { margin-left: 0; padding: 12px 16px; border-left: 3px solid var(--faint); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.prose blockquote.callout-tip { border-left-color: var(--accent); }
.prose blockquote.callout-note { border-left-color: #4F7FFF; }
.prose blockquote.callout-warning { border-left-color: #E8A93A; }
.prose blockquote strong { color: var(--text); }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--faint); font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; max-width: 720px; }
.g-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.g-pager a:hover { border-color: var(--accent); }
.g-pager a.is-next { text-align: right; }

@media (max-width: 1000px) {
  .g-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .g-toc { display: none; }
}
@media (max-width: 720px) {
  .g-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .g-side { position: static; max-height: none; }
}

/* ---------- coming soon ---------- */
.coming-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.coming-card { display: flex; flex-direction: column; padding: 24px; transition: border-color .15s; }
.coming-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.coming-card h3 { font-size: 22px; }
.coming-card > .muted { margin-top: 14px; font-size: 14px; }
.coming-intro { margin: -16px 0 24px; }
.coming-item { padding: 48px 0; border-top: 1px solid var(--line-soft); }
.coming-item:first-child { border-top: 0; padding-top: 24px; }
.coming-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.coming-head .badge { margin-left: auto; }
.coming-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.plans { list-style: none; margin: 24px 0 0; padding: 0; }
.plans li { position: relative; padding: 9px 0 9px 22px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.plans li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.coming-note { margin-top: 20px; }
.coming-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.coming-shot { margin: 0; }
.coming-shot .shot { aspect-ratio: 16 / 10; padding: 8px; }
.coming-shot a.shot { cursor: zoom-in; }
.coming-shot figcaption { margin-top: 8px; font-size: 12px; color: var(--faint); }
@media (max-width: 860px) {
  .coming-grid, .coming-body { grid-template-columns: 1fr; }
  .coming-body { gap: 32px; }
}
@media (max-width: 520px) { .coming-shots { grid-template-columns: 1fr; } }
