/* ============================================================
   Oath & Shard: landing page
   Palette drawn from the logo: Oath mauve, Shard blue, steel ampersand.
   ============================================================ */

:root {
  --ink: #221C27;
  --ink-soft: #4B4250;
  --muted: #6A6070;
  --parchment: #F4EEE4;
  --parchment-deep: #EBE2D3;
  --card: #FBF8F2;
  --line: #DCCFBC;

  --oath: #6E5468;
  --oath-light: #B79AB0;
  --shard: #3B82AE;
  --shard-deep: #33588F;
  --shard-light: #8CC6E3;
  --steel: #7F8C88;
  --aether: #86D8F2;

  --night: #18151E;
  --night-2: #221D2A;
  --night-text: #E7E0EA;
  --night-muted: #ADA2B3;

  --role-tank: #4F6E8E;
  --role-healer: #4E8360;
  --role-melee: #A9573A;
  --role-ranged: #8E6A1F;

  /* Font roles match the game UI (Tokens.lua): hero = fancy titles only,
     label = interface text & uppercase section labels, body = prose. */
  --hero: "Charm", "Apple Chancery", Georgia, serif;
  --label: "Asap Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Aleo", Rockwell, Georgia, serif;

  --wrap: 1180px;
  --radius: 10px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

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

:focus-visible { outline: 2px solid var(--shard); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section h2 {
  font-family: var(--hero);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--label); font-weight: 600; font-size: 1.02rem; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  padding: .7em 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: .92rem; padding: .48em 1em; }
.btn-lg { font-size: 1.06rem; padding: .85em 1.6em; }

.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--oath); box-shadow: 0 6px 20px -8px rgba(110, 84, 104, .7); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .35); }
.btn-outline:hover { background: var(--ink); color: var(--parchment); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: rgba(34, 28, 39, .06); }
.btn-text { color: var(--ink-soft); padding-left: .4em; padding-right: .4em; }
.btn-text:hover { color: var(--shard-deep); }
.btn-light { background: var(--parchment); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 6px 24px -6px rgba(134, 216, 242, .5); }
.btn-outline-light { border-color: rgba(231, 224, 234, .5); color: var(--night-text); }
.btn-outline-light:hover { border-color: var(--night-text); background: rgba(231, 224, 234, .08); }

.play { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(244, 238, 228, .88);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
/* Over the hero photo (not scrolled, menu closed): light text on the same
   frosted-dark treatment as the hero's outline buttons */
.nav:not(.is-scrolled):not(.is-open) {
  background: rgba(10, 14, 28, .3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}
.nav:not(.is-scrolled):not(.is-open) .nav-brand { color: #fff; }
.nav:not(.is-scrolled):not(.is-open) .nav-brand img { filter: none; }
.nav:not(.is-scrolled):not(.is-open) .nav-menu nav a,
.nav:not(.is-scrolled):not(.is-open) .btn-ghost { color: rgba(255, 255, 255, .85); }
.nav:not(.is-scrolled):not(.is-open) .nav-menu nav a:hover,
.nav:not(.is-scrolled):not(.is-open) .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav:not(.is-scrolled):not(.is-open) .btn-primary { background: var(--parchment); color: var(--ink); }
.nav:not(.is-scrolled):not(.is-open) .nav-toggle-bars,
.nav:not(.is-scrolled):not(.is-open) .nav-toggle-bars::before,
.nav:not(.is-scrolled):not(.is-open) .nav-toggle-bars::after { background: #fff; }

.nav-inner {
  max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--hero); font-weight: 700; font-size: 1.3rem;
}
.nav-brand img { height: 30px; width: auto; filter: brightness(0); } /* white art, inked on parchment */
.nav-menu { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-menu nav { display: flex; gap: 4px; margin: 0 auto; }
.nav-menu nav a {
  text-decoration: none; font-family: var(--label); font-weight: 500; font-size: 1.08rem; color: var(--ink-soft);
  padding: .35em .8em; border-radius: 6px; transition: color .2s;
}
.nav-menu nav a:hover { color: var(--ink); }
.nav-ctas { display: flex; gap: 6px; align-items: center; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 8px;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px;
    background: var(--parchment); box-shadow: 0 12px 24px -12px rgba(34, 28, 39, .25);
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open .nav-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav.is-open { background: var(--parchment); }
  .nav-menu nav { flex-direction: column; margin: 0; }
  .nav-menu nav a { padding: .6em .4em; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-ctas { flex-direction: column; align-items: stretch; }
  .nav-ctas .btn { font-size: 1rem; padding: .75em 1em; }
  .nav-ctas .btn-ghost { border-color: var(--line); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: max(680px, 100svh);
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 16px 120px;
  text-align: center;
  color: #fff;
  background: #0E1424;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    /* legibility: darken behind the copy, the top (nav) and the bottom edge */
    /* Kept off the moon (upper right of the logo) so its flare survives. */
    radial-gradient(ellipse 36% 30% at 50% 62%, rgba(6, 10, 22, .45), rgba(6, 10, 22, 0) 100%),
    linear-gradient(180deg, rgba(6, 10, 22, .45) 0%, rgba(6, 10, 22, 0) 13%, rgba(6, 10, 22, 0) 70%, rgba(6, 10, 22, .55) 100%),
    url("assets/hero-night.jpg") 58% 55% / cover no-repeat;
}
@media (max-width: 800px) {
  .hero-bg {
    background:
      radial-gradient(ellipse 80% 40% at 50% 55%, rgba(6, 10, 22, .45), rgba(6, 10, 22, 0) 100%),
      linear-gradient(180deg, rgba(6, 10, 22, .45) 0%, rgba(6, 10, 22, 0) 14%, rgba(6, 10, 22, 0) 65%, rgba(6, 10, 22, .6) 100%),
      url("assets/hero-night-sm.jpg") 60% 55% / cover no-repeat;
  }
}
.hero::after {
  /* torn parchment edge into the next section */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; z-index: 1;
  background: var(--parchment);
  clip-path: polygon(0 100%, 100% 100%, 100% 65%, 92% 30%, 84% 60%, 76% 15%, 66% 55%, 58% 25%, 49% 70%, 40% 20%, 31% 60%, 22% 25%, 14% 65%, 6% 35%, 0 70%);
}

.hero-content { max-width: 920px; position: relative; }
.hero h1 { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo {
  width: min(720px, 90vw);
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .45));
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-headline {
  font-family: var(--hero);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 2px 18px rgba(0, 0, 0, .75);
  text-wrap: balance;
  animation: rise 1.2s .15s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-sub {
  max-width: 640px; margin: 18px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #DCE4F0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 1px 14px rgba(0, 0, 0, .85);
  text-wrap: pretty;
  animation: rise 1.2s .3s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
  margin-top: 32px;
  animation: rise 1.2s .45s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mote {
  position: absolute; bottom: 18%;
  width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: var(--aether);
  box-shadow: 0 0 10px 2px rgba(134, 216, 242, .7);
  opacity: 0;
  animation: drift var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: .85; }
  70% { opacity: .6; }
  100% { opacity: 0; transform: translate(var(--x, 20px), -55vh); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-headline, .hero-sub, .hero-actions { animation: none; }
  .mote { animation: none; display: none; }
}

.hero .btn-text { color: #DCE4F0; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 1px 12px rgba(0, 0, 0, .8); }
.hero .btn-text:hover { color: var(--aether); }
.hero .btn-outline-light { background: rgba(10, 14, 28, .3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

@media (max-width: 600px) {
  .hero-actions .btn-lg { width: 100%; white-space: normal; }
}

/* ---------- Pitch / Beliefs ---------- */

.pitch { padding-top: clamp(40px, 6vw, 72px); }
.pitch-head { text-align: center; margin-bottom: 40px; }
.pitch-lede {
  padding-bottom: 56px; margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.pitch-lede .lede {
  font-family: var(--body);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}

.beliefs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.belief {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  position: relative;
}
.belief::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--oath), var(--shard));
  opacity: .7;
}
.belief h3 {
  font-family: var(--hero);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 14px;
}
.belief p { color: var(--ink-soft); font-size: 1rem; }

@media (max-width: 860px) {
  .beliefs { grid-template-columns: 1fr; }
}

/* ---------- World & Factions ---------- */

.world {
  background:
    radial-gradient(55% 60% at 0% 70%, rgba(110, 84, 104, .38), transparent 70%),
    radial-gradient(55% 60% at 100% 70%, rgba(59, 130, 174, .32), transparent 70%),
    radial-gradient(70% 40% at 50% 0%, rgba(134, 216, 242, .07), transparent 70%),
    var(--night);
  color: var(--night-text);
  position: relative;
}
.world::before {
  /* torn-edge transition from parchment */
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 28px;
  background: var(--parchment);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 92% 70%, 84% 40%, 76% 85%, 66% 45%, 58% 75%, 49% 30%, 40% 80%, 31% 40%, 22% 75%, 14% 35%, 6% 65%, 0 30%);
}
.world-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.world-copy { margin-top: 28px; display: grid; gap: 18px; color: var(--night-muted); font-size: 1.15rem; }
.world-copy p:first-child { color: var(--night-text); }
.aether {
  color: var(--aether); font-weight: 700;
  text-shadow: 0 0 18px rgba(134, 216, 242, .6);
}

.factions-title {
  font-family: var(--hero);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 88px 0 32px;
}
.factions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faction {
  --c: var(--oath-light);
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .09);
  border-top: 3px solid var(--c);
  overflow: hidden;
}
.faction-oath { --c: var(--oath-light); }
.faction-shard { --c: var(--shard-light); }
.faction::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -130px; border-radius: 50%;
  background: radial-gradient(circle, var(--c), transparent 65%); opacity: .12; pointer-events: none;
}
.faction h4 { font-family: var(--hero); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.5rem); line-height: 1.2; color: #fff; }
.faction-meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin: 16px 0 20px; padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.faction-meta dt { font-family: var(--label); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c); }
.faction-meta dd { margin: 0; color: #fff; font-family: var(--label); font-weight: 500; font-size: 1.1rem; }
.faction p { color: var(--night-muted); }

.coldwar {
  max-width: 760px; margin: 56px auto 0; text-align: center;
}
.thermo {
  height: 4px; border-radius: 4px; margin: 0 auto 28px; width: min(420px, 80%);
  background: linear-gradient(90deg, var(--oath-light), #9EA6B0 50%, var(--shard-light));
  box-shadow: 0 0 22px rgba(140, 198, 227, .25);
}
.coldwar-title { font-family: var(--hero); font-weight: 700; font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.coldwar p:last-child { color: var(--night-muted); font-size: 1.1rem; }

@media (max-width: 860px) {
  .factions { grid-template-columns: 1fr; }
  .factions-title { margin-top: 64px; }
}

/* ---------- Classes ---------- */

.classes { background: var(--parchment); }
.classes-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.classes-head h2 span { display: block; font-weight: 400; font-size: .55em; color: var(--oath); margin-top: .5em; }
.classes-intro { margin-top: 20px; color: var(--ink-soft); text-wrap: pretty; }

.class-tabs {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  padding: 6px; border-radius: 14px;
  background: var(--parchment-deep); border: 1px solid var(--line);
  margin-bottom: 32px;
}
.class-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px 12px;
  background: transparent; border: 0; border-radius: 10px;
  font-family: var(--label); font-weight: 500; font-size: 1.05rem; color: var(--ink-soft);
  cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.class-tabs button .icon { width: 28px; height: 28px; color: var(--muted); transition: color .2s; }
.class-tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.class-tabs button[aria-selected="true"] {
  background: var(--card); color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -10px rgba(34, 28, 39, .4);
}
.class-tabs button[aria-selected="true"] .icon { color: var(--shard-deep); }

@media (max-width: 900px) {
  .class-tabs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) {
  .class-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .class-tabs::-webkit-scrollbar { display: none; }
  .class-tabs button { flex: 0 0 auto; min-width: 92px; scroll-snap-align: start; }
}

.class-panel { animation: fade .35s ease both; }
.class-panel:focus-visible { outline-offset: 8px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .class-panel { animation: none; } }

.class-overview {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 32px;
  padding: 0 4px 28px;
}
.class-overview h3 { font-family: var(--hero); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.1; grid-row: span 2; }
.class-overview p:last-child { color: var(--ink-soft); max-width: 720px; }
.class-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.armor { font-family: var(--label); font-size: .95rem; color: var(--muted); margin-left: 6px; }

.role {
  --rc: var(--ink-soft);
  display: inline-block;
  font-family: var(--label); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rc);
  padding: .22em .7em; border-radius: 999px;
  background: color-mix(in srgb, var(--rc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rc) 28%, transparent);
  white-space: nowrap;
}
.role-tank { --rc: var(--role-tank); }
.role-healer { --rc: var(--role-healer); }
.role-melee { --rc: var(--role-melee); }
.role-ranged { --rc: var(--role-ranged); }

@media (max-width: 700px) {
  .class-overview { grid-template-columns: 1fr; gap: 12px; }
  .class-overview h3 { grid-row: auto; }
}

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column;
}
.spec header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spec h4 { font-family: var(--hero); font-weight: 700; font-size: 1.95rem; line-height: 1.2; }
.spec blockquote {
  margin: 18px 0 22px; padding: 0 0 0 18px;
  border-left: 2px solid var(--oath-light);
  font-family: var(--body); font-style: italic; font-size: 1.08rem; line-height: 1.5;
  color: var(--oath);
}
.spec blockquote::before { content: "\201C"; }
.spec blockquote::after { content: "\201D"; }
.spec h5 {
  font-family: var(--label); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 6px;
}
.spec > p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1rem; }
.resources { margin: 0; display: grid; gap: 10px; }
.resources div {
  padding: 12px 14px; border-radius: 8px;
  background: var(--parchment); border: 1px solid var(--line);
}
.resources dt { font-family: var(--label); font-weight: 600; font-size: 1.08rem; color: var(--shard-deep); }
.resources dd { margin: 2px 0 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 860px) {
  .specs { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq { background: var(--parchment-deep); border-top: 1px solid var(--line); }
.faq header { text-align: center; margin-bottom: 40px; }
.faq-list { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: 0 8px 24px -16px rgba(34, 28, 39, .35); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px;
  font-family: var(--label); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--oath), var(--oath)) center / 14px 2px no-repeat,
    linear-gradient(var(--oath), var(--oath)) center / 2px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--oath); }
.faq-a { padding: 0 26px 24px; display: grid; gap: 14px; color: var(--ink-soft); }
.faq-a a { color: var(--shard-deep); text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.footer {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-text);
  padding: clamp(80px, 10vw, 120px) 0 40px;
  text-align: center;
}
.footer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 60% at 20% 100%, rgba(110, 84, 104, .35), transparent 70%),
    radial-gradient(45% 60% at 80% 100%, rgba(59, 130, 174, .3), transparent 70%);
}
.footer-inner { position: relative; }
.footer-mark { width: min(340px, 70vw); margin: 0 auto 40px; opacity: .95; }
.footer h2 { font-family: var(--hero); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.2; }
.footer-inner > p:not(.copyright) { max-width: 600px; margin: 16px auto 0; color: var(--night-muted); font-size: 1.15rem; }
.footer-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.copyright { margin-top: 80px; font-family: var(--label); font-size: .92rem; color: #7E7486; }

@media (max-width: 600px) {
  .footer-ctas .btn { width: 100%; }
}

/* ---------- Teaser dialog ---------- */

.teaser {
  width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 12px;
  background: #000; overflow: visible;
}
.teaser::backdrop { background: rgba(18, 14, 22, .85); backdrop-filter: blur(4px); }
.teaser-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.teaser-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.teaser-close {
  position: absolute; top: -46px; right: 0;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.teaser-close:hover { background: rgba(255, 255, 255, .25); }

/* ---------- Signature abilities + game tooltip ---------- */

.spec .resources + h5 { margin-top: 22px; }
.abilities {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.ability {
  display: block; padding: 0; cursor: help;
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(34, 28, 39, .55);
  background: var(--night);
  box-shadow: 0 2px 6px -2px rgba(34, 28, 39, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .15s, box-shadow .15s;
}
.ability img { width: 100%; height: 100%; display: block; }
.ability:hover,
.ability[aria-expanded="true"] {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(34, 28, 39, .6), 0 0 0 2px var(--shard-light);
}

/* Mirrors the client's GameTooltip (WastingTimeURP FrameXML/GameTooltip.lua +
   Tokens.lua): panelBg, label-font title and stat rows, body-font description. */
.ability-tip {
  --tip-primary: oklch(0.96 0.006 80);
  --tip-body: oklch(0.80 0.006 80);
  --tip-mute: oklch(0.58 0.008 80);
  --tip-aether: oklch(0.65 0.16 290);
  position: fixed; z-index: 100; left: 0; top: 0;
  width: 290px; max-width: calc(100vw - 16px);
  padding: 12px 14px;
  background: oklch(0.13 0.012 75 / .97);
  border-radius: 4px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .55);
  color: var(--tip-body);
  pointer-events: none;
  opacity: 0; transition: opacity .12s;
}
.ability-tip.is-visible { opacity: 1; }
.tip-title { font-family: var(--label); font-weight: 500; font-size: 1.1rem; line-height: 1.25; color: var(--tip-primary); }
.tip-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--label); font-size: .88rem; line-height: 1.35; margin-top: 2px;
}
.tip-mute { color: var(--tip-mute); }
.tip-target { font-family: var(--label); font-size: .88rem; color: var(--tip-aether); margin-top: 2px; }
.tip-desc { font-family: var(--body); font-size: .9rem; line-height: 1.45; color: var(--tip-primary); margin-top: 8px; }
