:root {
  color-scheme: dark;
  --ink: #fff3e2;
  --muted: #c2c1bc;
  --gold: #f6bd68;
  --copper: #aa7a46;
  --teal: #a7dfdf;
  --night: #0b1016;
  --panel: #151e27;
  --line: #34434f;
  --display: "Barlow Condensed", Bahnschrift, "Arial Narrow", "Arial Black", sans-serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
a, button { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1320px); margin-inline: auto; }
.section { padding-block: clamp(56px, 7.5vw, 106px); scroll-margin-top: 75px; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 10px 16px; background: var(--gold); color: var(--night); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.masthead { position: sticky; z-index: 5; top: 0; background: #0b1016f5; border-bottom: 1px solid #b18a5857; backdrop-filter: blur(12px); }
.masthead-inner { min-height: 72px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 760 1rem/1 var(--display); letter-spacing: .19em; text-decoration: none; flex: none; }
.brand img { border-radius: 50%; border: 1px solid #b18a5857; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.25vw, 32px); }
.site-nav a, .footer a:not(.brand) { text-decoration: none; font-size: .92rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"], .footer a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .45em; }
.site-nav .nav-alpha { color: #1e160d; background: var(--gold); border: 1px solid var(--gold); padding: 8px 17px; border-radius: 3px; }
.site-nav .nav-alpha:hover { background: #ffda9d; color: #1e160d; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); padding: 7px 13px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(610px, 82svh, 820px);
  background: var(--night);
  border-bottom: 1px solid var(--line);
}
.hero-scene {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: 56% top;
  filter: saturate(1.15);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, var(--night) 0, #0b101600 45%),
    linear-gradient(92deg, var(--night) 4%, #0b1016f7 23%, #0b1016d9 42%, #0b101642 62%, #0b101608 100%);
}
.hero-content { align-self: center; padding-block: 54px 44px; }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .14em; line-height: 1.5; color: var(--teal); text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
.hero-logo { width: clamp(220px, 25vw, 355px); height: auto; margin: 0 0 23px -9px; filter: drop-shadow(0 6px 18px #000b); }
.hero h1 {
  margin-block: 12px 19px;
  font: 840 clamp(3.2rem, 6.4vw, 6.75rem)/.9 var(--display);
  letter-spacing: -.055em;
  max-width: 14ch;
  text-transform: uppercase;
}
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.hero-summary { max-width: 425px; color: #e4e0d9; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--copper); border-radius: 3px; text-decoration: none; font-size: .9375rem; font-weight: 750; transition: background .18s, color .18s, border-color .18s; }
.button.primary { background: var(--gold); border-color: var(--gold); color: #1e160d; }
.button.primary:hover { background: #ffda9d; }
.button.secondary { background: #101923bd; border-color: #8d969d; color: var(--ink); }
.button.secondary:hover { background: #24343e; border-color: var(--teal); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 13px 19px; border-top: 1px solid #b7bbc13d; color: #d6d6d3; font-size: .875rem; }
.hero-caption span { display: inline-block; margin-left: 9px; color: var(--gold); }

.section-heading { margin-bottom: 27px; max-width: 715px; }
.section-heading h2, .detail-intro h1, .status-page h1, .duel-panel h2 {
  margin-block: 7px 14px;
  font: 800 clamp(2.55rem, 5.15vw, 5.3rem)/.98 var(--display);
  letter-spacing: -.05em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-heading > p:not(.eyebrow), .mode-content > p:not(.eyebrow), .class-panel > div > p:not(.eyebrow) { color: var(--muted); }
.mode-grid, .media-grid, .activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mode-grid { grid-template-columns: 1.1fr 1fr; }
.mode-card {
  --mode-accent: var(--teal);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: clamp(375px, 37vw, 480px);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--mode-accent);
  border-radius: 5px;
  background: var(--panel);
  text-decoration: none;
}
.mode-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 83%;
  object-fit: cover;
  mask-image: linear-gradient(#000 70%, transparent);
  transition: transform .35s ease;
}
.mode-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0b1016 2%, #0b1016e8 24%, #0b1016a6 47%, #0b101615 79%); }
.mode-card:hover img, .media-grid .capture:hover img { transform: scale(1.045); }
.mode-card.mode-pvp { --mode-accent: var(--gold); }
.mode-content { display: grid; gap: 8px; justify-items: start; padding: clamp(19px, 3.5vw, 36px); }
.mode-content p:not(.eyebrow) { max-width: 395px; }
.mode-link { margin-top: 6px; color: var(--mode-accent); font-weight: 750; text-decoration: underline; text-underline-offset: .3em; }
.mode-pvp .eyebrow, .detail-pvp .eyebrow { color: var(--gold); }
.mode-card h3, .class-panel h3, .activity-list h3 { font: 780 clamp(1.6rem, 3.3vw, 3rem)/1.04 var(--display); letter-spacing: -.036em; }

.class-section { background: radial-gradient(ellipse at 22% 0, #1b3b45 0, #111c26 36%, #0d151e 73%); border-block: 1px solid var(--line); }
.class-section .section-heading h2 { color: var(--teal); }
.class-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.class-tab {
  min-width: 0;
  min-height: 112px;
  text-align: left;
  padding: clamp(10px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(90deg, var(--class-color) 14%, #111a24e8 57%, #111a2450),
    var(--class-icon) right center / auto 110% no-repeat,
    #111a24;
}
.class-tab.warrior { --class-color: #30231e; --class-icon: url("assets/abilities/shield_step.png"); }
.class-tab.cleric { --class-color: #183337; --class-icon: url("assets/abilities/guiding_ray.png"); }
.class-tab.ranger { --class-color: #26324b; --class-icon: url("assets/abilities/pinshot.png"); }
.class-tab.buccaneer { --class-color: #372524; --class-icon: url("assets/abilities/pistol_shot.png"); }
.class-tab[aria-selected="true"], .class-tab:hover { border-color: var(--gold); box-shadow: inset 0 -2px var(--gold); }
.class-caption { display: flex; flex-direction: column-reverse; gap: 7px; }
.class-caption small { color: #e4d7c7; font-size: .875rem; line-height: 1.3; }
.class-caption strong { font: 780 clamp(1.32rem, 2.8vw, 2.55rem)/1 var(--display); letter-spacing: -.04em; }
.class-panel { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 27px; padding: clamp(18px, 2.7vw, 34px); margin-top: 12px; background: linear-gradient(135deg, #17242e, #0c141d 56%); border: 1px solid var(--line); border-radius: 5px; }
.class-panel h3 { margin-block: 4px 8px; }
.class-loadout { border-left: 1px solid var(--line); padding-left: 24px; align-self: center; }
.ability-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 10px 0; padding: 0; }
.ability-choice { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 56px; padding: 6px; text-align: left; font-size: .875rem; line-height: 1.3; background: #182631; border: 1px solid var(--line); border-radius: 3px; }
.ability-choice img { flex: none; width: 38px; height: 38px; border: 1px solid var(--copper); }
.ability-choice:hover, .ability-choice[aria-pressed="true"] { border-color: var(--gold); background: #24383d; }
.ability-tooltip { background: #111921; border: 1px solid #725c3b; border-left: 3px solid var(--gold); padding: 12px 14px; color: var(--gold); min-height: 124px; }
.ability-tooltip strong { color: var(--ink); }
.ability-stats, .ability-note { color: var(--muted); font-size: .875rem; }
.ability-note { margin-top: 8px; }
.class-paths { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
.class-paths > p, .tree-description { margin-bottom: 12px; color: var(--muted); }
.talent-tree { border: 1px solid var(--line); border-radius: 4px; background: #12202a; margin-top: 10px; }
.talent-tree[open] { border-top-color: var(--copper); }
.talent-tree summary { cursor: pointer; padding: 13px 17px; }
.talent-tree summary strong { margin-right: 10px; color: var(--gold); }
.talent-tree summary span { color: var(--muted); }
.tree-content { padding: 0 16px 16px; }
.tree-content h4 { margin: 12px 0 5px; color: var(--teal); font-size: .9375rem; }
.talent-tier { border-top: 1px solid var(--line); margin-top: 12px; }
.talent-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: 7px; list-style: none; padding: 0; margin: 0; }
.talent { background: #0c171e; border: 1px solid var(--line); padding: 9px 11px; }
.talent p { color: var(--muted); margin-top: 4px; }

.media-grid, .activity-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capture { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.capture a { display: block; }
.capture img { width: 100%; height: auto; }
.capture figcaption { border-top: 1px solid var(--line); padding: 10px 13px; color: var(--muted); font-size: .875rem; }
.media-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.media-grid .capture { position: relative; grid-column: span 3; min-height: 0; overflow: hidden; }
.media-grid .capture:nth-child(-n + 2) { grid-column: span 6; }
.media-grid .capture a:focus-visible { outline-offset: -4px; }
.media-grid .capture img { aspect-ratio: 1.42; object-fit: cover; transition: transform .35s ease; }
.media-grid .capture:nth-child(-n + 2) img { aspect-ratio: 1.82; }
.media-grid .capture figcaption { display: grid; align-items: end; position: absolute; inset: auto 0 0; min-height: 62px; border: 0; padding: 19px 13px 10px; color: var(--ink); background: linear-gradient(0deg, #0b1016 5%, #0b1016d9 47%, transparent); pointer-events: none; }
.founders-section {
  border-block: 1px solid #aa7a466d;
  background:
    radial-gradient(ellipse at 15% 30%, #543521 4%, #29201c 41%, transparent 75%),
    linear-gradient(115deg, #271d16, #10161c 90%);
}
.founders-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 6vw, 90px); align-items: start; }
.founders-section .eyebrow, .founders-section h2 { color: var(--gold); }
.founders-mark { width: clamp(72px, 8vw, 102px); height: auto; margin-bottom: 18px; filter: drop-shadow(0 4px 19px #0c090899); }
.section-heading > p.founders-price { margin-block: 18px 10px; color: var(--ink); font: 820 clamp(2.85rem, 5.5vw, 5.4rem)/1 var(--display); letter-spacing: -.05em; }
.founders-benefits { display: grid; gap: 12px; }
.founders-benefits article { padding: clamp(17px, 2.5vw, 29px); background: #111820ec; border: 1px solid #725c3b; border-radius: 5px; }
.founders-benefits article:first-child { border-left: 3px solid var(--gold); }
.founders-benefits h3 { font: 760 1.65rem/1.12 var(--display); letter-spacing: -.025em; }
.founders-benefits ul { margin-block: 9px; padding-left: 21px; }
.founders-benefits li::marker { color: var(--gold); }
.founders-benefits p { color: var(--muted); }
.alpha-section { background: linear-gradient(116deg, #223d46, #142732 47%, #101b23 85%); border-bottom: 1px solid var(--line); }
.alpha-layout { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.alpha-section .section-heading { margin-bottom: 0; }
.alpha-section .portal-actions { flex: none; margin-top: 0; }

.detail-hero { background: radial-gradient(ellipse at 75% 0%, #284851 0, #0e1923 48%, var(--night) 87%); border-bottom: 1px solid var(--line); }
.detail-pvp { background: radial-gradient(ellipse at 75% 0%, #563523 0, #201b20 46%, var(--night) 87%); }
.detail-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(25px, 5vw, 75px); padding-block: clamp(44px, 7.5vw, 105px); }
.detail-intro h1, .status-page h1 { font-size: clamp(2.75rem, 5.6vw, 5.5rem); }
.detail-intro .capture { border-color: #aebdc069; box-shadow: 0 20px 50px #030b104d; }
.detail-intro .capture img { border-radius: 4px 4px 0 0; }
.detail-intro .capture figcaption { background: #0d171e; }
.detail-intro p:not(.eyebrow), .activity-list p, .duel-panel p, .testing-note, .status-page p:not(.eyebrow) { color: var(--muted); }
.detail-intro .button, .status-page .button { margin-top: 25px; }
.activity-list article { padding: clamp(19px, 3vw, 32px); background: linear-gradient(140deg, #1a2831, var(--panel) 70%); border: 1px solid var(--line); border-top: 2px solid #78a0a5; border-radius: 5px; }
.activity-list.three article { border-top-color: var(--copper); }
.activity-list h3 { margin-bottom: 8px; }
.duel-panel { margin-top: 25px; padding: clamp(22px, 4vw, 38px); border-left: 3px solid var(--gold); background: linear-gradient(120deg, #34271f, var(--panel) 70%); }
.duel-panel h2 { font-size: clamp(1.85rem, 3vw, 3rem); margin-top: 0; }
.duel-panel p, .status-page p { max-width: 680px; }
.testing-note { margin-block: 22px; }
.testing-note a { color: var(--gold); }
.status-page p + p { margin-top: 16px; }

@media (max-width: 380px) {
  .ability-choice { flex-direction: column; text-align: center; }
}

.footer { padding-block: 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer p { color: var(--muted); font-size: .875rem; }

.portal { min-height: 72vh; padding-block: clamp(44px, 7.5vw, 100px); background: radial-gradient(ellipse at 74% 0%, #2a444b 0%, #14202a 42%, var(--night) 85%); }
.portal h1 { margin-block: 7px 12px; font: 820 clamp(2.5rem, 5vw, 5.2rem)/1 var(--display); letter-spacing: -.046em; text-transform: uppercase; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.portal-card { display: grid; align-content: start; gap: 8px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-top: 2px solid var(--copper); border-radius: 5px; background: linear-gradient(135deg, #1d2b35, var(--panel)); }
.portal-card h2 { margin-bottom: 8px; font: 780 clamp(1.6rem, 3vw, 2.3rem)/1.08 var(--display); letter-spacing: -.025em; }
.portal-card label { font-weight: 650; }
.portal-card input, .portal-card select { width: 100%; min-height: 45px; padding: 8px 10px; border: 1px solid #63797e; border-radius: 0; background: var(--night); color: var(--ink); font: inherit; }
.portal-card small, .portal-card p { color: var(--muted); }
.portal-card small { margin-bottom: 7px; font-size: .875rem; }
.portal-card .button { justify-self: start; margin-top: 12px; }
.portal-notice { width: fit-content; margin-bottom: 18px; border: 1px solid var(--copper); background: #29241b; padding: 12px 15px; }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.founder-account { max-width: 790px; }
.founder-account .portal-notice { margin-bottom: 0; }
.founder-entitlements { margin: 12px 0; }
.founder-entitlements > div { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-block: 9px; border-bottom: 1px solid var(--line); }
.founder-entitlements dd { margin: 0; color: var(--gold); }

@media (max-width: 850px) {
  .shell { width: min(100% - 48px, 1200px); }
  .masthead-inner { min-height: 62px; flex-wrap: wrap; gap: 0 16px; }
  .nav-toggle { display: inline-flex; align-items: center; min-height: 40px; margin-block: 10px; font-size: .875rem; }
  .site-nav { width: 100%; flex-wrap: wrap; padding: 0 0 14px; gap: 10px 19px; }
  .detail-intro { grid-template-columns: 1fr; }
  .detail-intro .capture { max-width: 680px; }
  .alpha-layout { align-items: flex-start; flex-direction: column; }
  .media-grid .capture { grid-column: span 6; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .hero { min-height: 610px; }
  .hero-scene { width: 100%; height: 76%; object-position: 56% top; }
  .hero::after { background: linear-gradient(0deg, var(--night) 14%, #0b1016f0 27%, #0b10167d 70%, #0b101627), linear-gradient(90deg, #0b10167a, transparent); }
  .hero-content { align-self: end; padding-block: 65px 32px; }
  .hero h1 { font-size: clamp(2.75rem, 8.8vw, 4.9rem); max-width: 13.5ch; }
  .hero-logo { width: 216px; margin-bottom: 16px; }
  .hero-caption { text-align: left; }
  .section { scroll-margin-top: 64px; }
  .class-panel, .mode-grid, .activity-list, .activity-list.three, .founders-layout, .portal-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 335px; }
  .media-grid { gap: 8px; }
  .media-grid .capture img, .media-grid .capture:nth-child(-n + 2) img { aspect-ratio: 1.25; }
  .media-grid .capture figcaption { font-size: .875rem; padding-inline: 8px; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .class-tab { min-height: 86px; }
  .class-loadout { padding: 15px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.preview-notice { padding: 8px 18px; text-align: center; color: var(--gold); background: #1c1820; }
