/* =========================================================
   ETERE — sito locale
   Palette scura desaturata, accenti verde salvia / ottone
   ========================================================= */

:root {
  --bg: #0b100e;
  --bg-soft: #0d1411;
  --surface: #121b17;
  --surface-2: #17221d;
  --surface-3: #1b2922;
  --line: rgba(205, 224, 211, 0.09);
  --line-strong: rgba(205, 224, 211, 0.17);
  --text: #e9eee7;
  --text-soft: #cbd5cd;
  --muted: #91a298;
  --faint: #6d7f74;
  --green: #7fae8c;
  --green-bright: #a5c9ae;
  --green-deep: #4f7b60;
  --gold: #d3b275;
  --gold-soft: #e2cb9b;
  --copper: #c58d63;
  --blue: #7fa8bb;
  --violet: #b08fbd;
  --red: #c07f78;
  --radius: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 70px -38px rgba(0, 0, 0, 0.85);
  --shadow-soft: 0 18px 44px -28px rgba(0, 0, 0, 0.7);
  --display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(89, 130, 104, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(160, 130, 82, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(165, 201, 174, 0.28);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

svg {
  width: 1em;
  height: 1em;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.18em 0.42em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--green-bright);
  white-space: nowrap;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.2;
}

.page-glow--one {
  top: -240px;
  left: -180px;
  background: #3e7554;
}

.page-glow--two {
  top: 36%;
  right: -280px;
  background: #7f643c;
  opacity: 0.12;
}

.container {
  width: min(100% - 64px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  padding: 14px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 16, 14, 0.86), transparent);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled {
  padding: 9px 0;
  border-color: var(--line);
  background: rgba(11, 16, 14, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.brand-mark svg {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.status-pill:hover {
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.status-dot,
.network-dot,
.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.status-pill[data-state="online"] .status-dot,
.network-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 174, 140, 0.1);
}

.status-pill[data-state="offline"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 127, 120, 0.1);
}

.status-pill[data-state="loading"] .status-dot,
.network-dot {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.live-dot {
  background: var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  place-items: center;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-menu {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, #a4c9ae, #7ca98b);
  border-color: rgba(220, 240, 225, 0.35);
  color: #0d1611;
  box-shadow: 0 12px 26px -16px rgba(127, 174, 140, 0.9);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #b2d4ba, #89b497);
  box-shadow: 0 16px 34px -16px rgba(127, 174, 140, 0.75);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.028);
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(205, 224, 211, 0.28);
  color: var(--text);
}

.btn--small {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 11.5px;
}

.btn--small svg {
  width: 14px;
  height: 14px;
}

.btn--ip {
  padding-right: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.btn--ip .ip-text {
  margin-left: 1px;
}

.copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(11, 20, 15, 0.16);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.72;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.btn--ip .copy-hint svg {
  width: 12px;
  height: 12px;
}

.btn--ip:hover .copy-hint {
  opacity: 1;
  background: rgba(11, 20, 15, 0.25);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button.is-loading svg {
  animation: spin 1s linear infinite;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-bright);
  font-size: 12.5px;
  font-weight: 650;
  transition: gap 0.2s ease, color 0.2s ease;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.text-link:hover {
  gap: 10px;
  color: var(--text);
}

.text-link--button {
  padding: 0;
  border: 0;
  background: none;
}

/* ---------- shared section ---------- */

.section {
  position: relative;
  padding: 108px 0;
  scroll-margin-top: 90px;
}

.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(20, 30, 25, 0.55) 12%, rgba(20, 30, 25, 0.55) 88%, transparent),
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(103, 145, 116, 0.045), transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: 64px;
  max-width: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  color: var(--gold);
  font-weight: 700;
}

.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  margin-left: 2px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-heading h2 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-heading h2 em {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.035em;
  color: var(--gold-soft);
}

.section-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.section-heading--split .section-lead {
  padding-bottom: 5px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 0;
  min-height: 780px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(183, 211, 192, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 211, 192, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 70% 62% at 52% 38%, #000 5%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-halo {
  position: absolute;
  top: 4%;
  left: 48%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 151, 119, 0.2), rgba(83, 117, 81, 0.07) 38%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 78px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 4px;
}

.hero-eyebrow {
  animation: rise-in 0.7s 0.05s both;
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(44px, 6.4vw, 86px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
  animation: rise-in 0.85s 0.12s both;
}

.hero-kicker {
  display: block;
  color: var(--text);
}

.hero-title {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

.hero-title em {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--gold-soft);
}

.hero-lead {
  max-width: 545px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
  animation: rise-in 0.9s 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
  animation: rise-in 0.9s 0.28s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 570px;
  margin-top: 40px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  animation: rise-in 0.9s 0.36s both;
}

.hero-stats dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-stats dd {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stats dd small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-network {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.035em;
  animation: rise-in 0.9s 0.42s both;
}

.hero-network[data-state="online"] {
  color: var(--green);
}

.hero-network[data-state="offline"] {
  color: var(--red);
}

.hero-network[data-state="offline"] .network-dot {
  background: var(--red);
  animation: none;
}

.hero-art-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 650px);
  aspect-ratio: 1 / 1;
  animation: rise-in 1.15s 0.15s both;
}

.hero-art {
  position: absolute;
  inset: 5% 2% 2%;
  width: 96%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 38px 46px rgba(0, 0, 0, 0.38));
  transform: translate3d(calc(var(--px, 0) * 8px), calc(var(--py, 0) * 8px), 0);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  animation: art-float 8s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(199, 220, 205, 0.09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(211, 178, 117, 0.7);
}

.hero-orbit--outer {
  width: 92%;
  height: 72%;
  transform: translate(-50%, -50%) rotate(-16deg);
}

.hero-orbit--inner {
  width: 70%;
  height: 54%;
  border-style: dashed;
  opacity: 0.55;
  transform: translate(-50%, -50%) rotate(22deg);
}

.hero-orbit--inner::before {
  background: var(--green);
  box-shadow: 0 0 14px rgba(127, 174, 140, 0.6);
}

.hero-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(205, 224, 211, 0.13);
  border-radius: 13px;
  background: rgba(16, 25, 20, 0.72);
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  animation: badge-float 7s ease-in-out infinite;
}

.hero-badge strong,
.hero-badge small {
  display: block;
}

.hero-badge strong {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-badge small {
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: rgba(127, 174, 140, 0.14);
  color: var(--green-bright);
}

.badge-icon svg {
  width: 16px;
  height: 16px;
}

.badge-icon--amber {
  background: rgba(211, 178, 117, 0.13);
  color: var(--gold-soft);
}

.badge-icon--violet {
  background: rgba(176, 143, 189, 0.13);
  color: var(--violet);
}

.badge-icon--blue {
  background: rgba(127, 168, 187, 0.13);
  color: var(--blue);
}

.hero-badge--a {
  top: 8%;
  left: 2%;
  animation-delay: -1.6s;
}

.hero-badge--b {
  top: 25%;
  right: -1%;
  animation-delay: -3.2s;
}

.hero-badge--c {
  bottom: 17%;
  left: 0;
  animation-delay: -2.4s;
}

.hero-badge--d {
  right: 5%;
  bottom: 7%;
  animation-delay: -4.1s;
}

.ticker {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 27, 23, 0.7);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker i {
  color: var(--gold);
  font-size: 8px;
  font-style: normal;
  opacity: 0.7;
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, rgba(28, 43, 35, 0.78), rgba(16, 24, 20, 0.72)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  top: -100px;
  right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 174, 140, 0.16), transparent 68%);
  pointer-events: none;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 25px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211, 178, 117, 0.28), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    linear-gradient(155deg, rgba(33, 51, 41, 0.92), rgba(17, 26, 21, 0.82)),
    var(--surface);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card--wide {
  grid-column: span 2;
}

.feature-index {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(145, 162, 152, 0.35);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(127, 174, 140, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(127, 174, 140, 0.15), rgba(127, 174, 140, 0.035));
  color: var(--green-bright);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-tag {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-body h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.feature-body p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.feature-card--wide .feature-body p {
  max-width: 620px;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}

.feature-meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.world-note {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 40px;
  align-items: center;
  margin-top: 18px;
  padding: 38px 40px;
  border: 1px solid rgba(211, 178, 117, 0.14);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgba(211, 178, 117, 0.08), transparent 60%),
    linear-gradient(145deg, rgba(29, 43, 36, 0.82), rgba(16, 24, 20, 0.85));
  box-shadow: var(--shadow-soft);
}

.world-note-copy h3 {
  margin-top: 13px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.world-note-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.world-note-copy .text-link {
  margin-top: 17px;
}

.world-note-stats {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
}

.world-note-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
}

.world-note-stats > div:last-child {
  border-bottom: 0;
}

.world-note-stats strong {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
}

.world-note-stats span {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

/* ---------- raids ---------- */

.raid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.raid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, rgba(27, 41, 34, 0.76), rgba(15, 23, 19, 0.82)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.raid-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--raid), transparent);
  opacity: 0.7;
}

.raid-card::after {
  content: "";
  position: absolute;
  top: -130px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--raid-soft), transparent 68%);
  pointer-events: none;
}

.raid-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--raid) 32%, var(--line));
}

.raid-card--featured {
  background:
    linear-gradient(155deg, rgba(37, 31, 39, 0.82), rgba(16, 22, 20, 0.86)),
    var(--surface);
  border-color: rgba(178, 121, 166, 0.18);
}

.raid-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.raid-sigil {
  width: 62px;
  height: 62px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--raid) 22%, var(--line));
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  image-rendering: pixelated;
}

.raid-index {
  color: rgba(205, 224, 211, 0.3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.raid-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(178, 121, 166, 0.28);
  border-radius: 999px;
  background: rgba(178, 121, 166, 0.08);
  color: #d4a8cb;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.raid-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 21px;
}

.raid-title-row h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.difficulty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.difficulty-bars {
  display: inline-flex;
  gap: 2px;
}

.difficulty-bars i {
  display: block;
  width: 4px;
  height: 9px;
  border-radius: 1px;
  background: rgba(205, 224, 211, 0.12);
}

.difficulty-bars[data-level="1"] i:nth-child(-n + 1),
.difficulty-bars[data-level="2"] i:nth-child(-n + 2),
.difficulty-bars[data-level="3"] i:nth-child(-n + 3),
.difficulty-bars[data-level="4"] i:nth-child(-n + 4),
.difficulty-bars[data-level="5"] i:nth-child(-n + 5) {
  background: var(--raid, var(--gold));
}

.raid-copy {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.raid-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 21px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.raid-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.raid-stats > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.raid-stats dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.raid-stats dd {
  color: var(--text-soft);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.raid-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 17px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.raid-open svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.raid-open:hover {
  color: var(--text);
}

.raid-open:hover svg {
  transform: translate(2px, -2px);
}

.boss-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(211, 178, 117, 0.18);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse 50% 160% at 0% 50%, rgba(211, 178, 117, 0.09), transparent 60%),
    linear-gradient(135deg, rgba(29, 39, 33, 0.85), rgba(18, 25, 21, 0.9));
}

.boss-banner-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid rgba(211, 178, 117, 0.22);
  border-radius: 50%;
  background: rgba(211, 178, 117, 0.08);
  color: var(--gold-soft);
}

.boss-banner-glyph svg {
  width: 20px;
  height: 20px;
}

.boss-banner-copy {
  flex: 1;
}

.boss-banner-copy h3 {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.boss-banner-copy > p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.boss-banner-stats {
  display: flex;
  gap: 26px;
  padding: 0 10px;
}

.boss-banner-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.boss-banner-stats strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
}

.boss-banner-stats span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- enchantments ---------- */

.enchant-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.enchant-summary > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.enchant-summary > div:first-child {
  padding-left: 0;
}

.enchant-summary > div:last-child {
  border-right: 0;
}

.enchant-summary strong {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.enchant-summary span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.enchant-panel {
  padding: 19px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(22, 33, 27, 0.62);
  box-shadow: var(--shadow-soft);
}

.enchant-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 14, 11, 0.34);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-field:focus-within {
  border-color: rgba(127, 174, 140, 0.4);
  background: rgba(8, 14, 11, 0.48);
}

.search-field svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--faint);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.search-field input::placeholder {
  color: var(--faint);
}

.select-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 14, 11, 0.28);
}

.select-field > span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.select-field select {
  appearance: none;
  padding: 0 18px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.select-field select option {
  background: #121b17;
  color: var(--text);
}

.select-field > svg {
  position: absolute;
  right: 9px;
  width: 12px;
  height: 12px;
  color: var(--faint);
  pointer-events: none;
}

.enchant-count {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.rarity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.rarity-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rarity-filter:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
}

.rarity-filter.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.rarity-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.rarity-common {
  color: #9aa89f;
}

.rarity-uncommon {
  color: #7fb08e;
}

.rarity-rare {
  color: #7fa8c4;
}

.rarity-epic {
  color: #ae8fc7;
}

.rarity-legendary {
  color: #d8b36d;
}

.rarity-mythic {
  color: #d08377;
}

.enchant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 20px;
}

.enchant-card {
  --rcolor: #9aa89f;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(155deg, rgba(28, 42, 34, 0.62), rgba(16, 24, 20, 0.7)),
    var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.enchant-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--rcolor), transparent 72%);
  opacity: 0.75;
}

.enchant-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rcolor) 14%, transparent), transparent 68%);
  pointer-events: none;
}

.enchant-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--rcolor) 30%, var(--line));
  background:
    linear-gradient(155deg, rgba(32, 48, 39, 0.8), rgba(17, 26, 21, 0.82)),
    var(--surface);
}

.enchant-card--featured {
  border-color: color-mix(in srgb, var(--gold) 26%, var(--line));
}

.enchant-card--featured::before {
  background: linear-gradient(90deg, var(--gold), transparent 82%);
}

.enchant-card--common { --rcolor: #9aa89f; }
.enchant-card--uncommon { --rcolor: #7fb08e; }
.enchant-card--rare { --rcolor: #7fa8c4; }
.enchant-card--epic { --rcolor: #ae8fc7; }
.enchant-card--legendary { --rcolor: #d8b36d; }
.enchant-card--mythic { --rcolor: #d08377; }

.enchant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.enchant-rarity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rcolor);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.enchant-rarity::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rcolor);
}

.enchant-level {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
}

.enchant-featured {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  padding: 3px 5px;
  border: 1px solid rgba(211, 178, 117, 0.26);
  border-radius: 4px;
  background: rgba(211, 178, 117, 0.08);
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enchant-card--featured .enchant-featured {
  display: block;
}

.enchant-card--featured .enchant-level {
  padding-right: 34px;
}

.enchant-card h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.enchant-description {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.enchant-category {
  margin-top: 11px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enchant-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
}

.enchant-targets span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.enchant-empty {
  padding: 66px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.enchant-empty > span {
  display: block;
  color: var(--faint);
  font-size: 34px;
  line-height: 1;
}

.enchant-empty h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.enchant-empty p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.enchant-empty .btn {
  margin-top: 18px;
}

.enchant-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}

.enchant-actions p {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.enchant-actions p code {
  font-size: 0.95em;
}

/* ---------- progression ---------- */

.progress-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 15px;
}

.progress-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, rgba(27, 41, 34, 0.7), rgba(15, 23, 19, 0.82)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.progress-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 174, 140, 0.1), transparent 68%);
  pointer-events: none;
}

.progress-card--jobs {
  grid-column: span 7;
}

.progress-card--missions {
  grid-column: span 5;
}

.progress-card--guild {
  grid-column: span 5;
}

.progress-card--market {
  grid-column: span 7;
}

.progress-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.progress-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(127, 174, 140, 0.16);
  border-radius: 9px;
  background: rgba(127, 174, 140, 0.07);
  color: var(--green-bright);
}

.progress-icon svg {
  width: 16px;
  height: 16px;
}

.progress-card h3 {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.progress-card > p {
  max-width: 520px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.jobs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.job-chip::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.7;
}

.progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
}

.mission-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.mission-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 11.5px;
}

.mission-list li:last-child {
  border-bottom: 0;
}

.mission-list strong {
  color: var(--gold-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.mission-mark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.8;
}

.guild-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 8px auto 0;
}

.guild-ring {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(127, 174, 140, 0.22);
  border-radius: 50%;
  animation: orbit 26s linear infinite;
}

.guild-core {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(127, 174, 140, 0.25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 174, 140, 0.17), rgba(127, 174, 140, 0.03));
  color: var(--green-bright);
}

.guild-core svg {
  width: 21px;
  height: 21px;
}

.guild-orbit {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(127, 174, 140, 0.5);
}

.guild-orbit--a {
  top: 27px;
  right: 31px;
}

.guild-orbit--b {
  bottom: 30px;
  left: 23px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(211, 178, 117, 0.5);
}

.guild-orbit--c {
  top: 57px;
  left: 18px;
  width: 4px;
  height: 4px;
  opacity: 0.6;
}

.market-lines {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.market-lines span {
  display: block;
  width: var(--w);
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(211, 178, 117, 0.55), rgba(127, 174, 140, 0.12));
}

.market-lines span:nth-child(2n) {
  background: linear-gradient(90deg, rgba(127, 174, 140, 0.45), rgba(127, 174, 140, 0.06));
}

/* ---------- live ---------- */

.live-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(127, 174, 140, 0.06), transparent 60%),
    linear-gradient(145deg, rgba(25, 39, 32, 0.8), rgba(14, 22, 18, 0.88));
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease;
}

.live-shell[data-state="online"] {
  border-color: rgba(127, 174, 140, 0.22);
}

.live-shell[data-state="offline"] {
  border-color: rgba(192, 127, 120, 0.2);
}

.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
}

.live-state {
  display: flex;
  align-items: center;
  gap: 13px;
}

.live-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
}

.live-orb::before,
.live-orb::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(127, 174, 140, 0.16);
  border-radius: 50%;
  opacity: 0;
}

.live-orb span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.live-shell[data-state="online"] .live-orb span {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(127, 174, 140, 0.08), 0 0 18px rgba(127, 174, 140, 0.35);
}

.live-shell[data-state="online"] .live-orb::before {
  animation: status-ring 2.5s ease-out infinite;
}

.live-shell[data-state="online"] .live-orb::after {
  animation: status-ring 2.5s 1.2s ease-out infinite;
}

.live-shell[data-state="offline"] .live-orb span {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 127, 120, 0.08);
}

.live-shell[data-state="loading"] .live-orb span {
  animation: pulse-dot 1.3s ease-in-out infinite;
}

.live-label {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.live-state p {
  margin-top: 2px;
  color: var(--faint);
  font-size: 10.5px;
}

.live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-updated {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.live-panel {
  padding: 24px 25px;
}

.live-panel--address {
  border-right: 1px solid var(--line);
}

.panel-label {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.address-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
}

.address-copy strong {
  font-family: var(--display);
  font-size: clamp(25px, 3.1vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.address-copy svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
  transition: color 0.2s ease;
}

.address-copy:hover svg {
  color: var(--green-bright);
}

.lan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.lan-row > span {
  color: var(--faint);
  font-size: 9.5px;
}

.lan-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  transition: color 0.2s ease;
}

.lan-copy:hover {
  color: var(--text);
}

.lan-copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lan-copy:disabled:hover {
  color: var(--muted);
}

.lan-copy svg {
  width: 11px;
  height: 11px;
  color: var(--faint);
}

.live-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.live-meta > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.live-meta dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-meta dd {
  margin-top: 3px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.players-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.players-count {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.players-count strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.75;
}

.players-bar {
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.players-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green-bright));
  transition: width 0.55s ease;
}

.players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
  min-height: 26px;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 8.5px;
}

.player-avatar {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(127, 174, 140, 0.16);
  color: var(--green-bright);
  font-family: var(--display);
  font-size: 8px;
  font-weight: 600;
}

.player-placeholder {
  color: var(--faint);
  font-size: 9.5px;
}

.players-note {
  margin-top: 8px;
  color: var(--faint);
  font-size: 8.5px;
}

.live-motd {
  padding: 16px 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.live-motd p {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.live-offline-hint {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 25px;
  border-bottom: 1px solid rgba(192, 127, 120, 0.14);
  background: rgba(192, 127, 120, 0.055);
  color: var(--muted);
}

.live-offline-hint svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--red);
}

.live-offline-hint p {
  font-size: 10.5px;
}

.live-commands {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 25px;
}

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.command-row code {
  padding: 4px 7px;
  color: var(--text-soft);
  font-size: 8.5px;
  background: rgba(255, 255, 255, 0.025);
}

/* ---------- guide ---------- */

.join-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.join-steps li {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 25px 22px;
  border-right: 1px solid var(--line);
}

.join-steps li:first-child {
  padding-left: 0;
}

.join-steps li:last-child {
  border-right: 0;
}

.step-number {
  color: rgba(211, 178, 117, 0.65);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.join-steps h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.join-steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.join-steps .text-link {
  margin-top: 9px;
  font-size: 10px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 60px;
  align-items: start;
}

.faq {
  padding-top: 2px;
}

.faq .eyebrow {
  margin-bottom: 12px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 2px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--faint);
  transition: transform 0.2s ease;
}

.faq details[open] summary {
  color: var(--text);
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 620px;
  padding: 0 2px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.join-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(211, 178, 117, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(211, 178, 117, 0.1), transparent 60%),
    linear-gradient(150deg, rgba(30, 43, 35, 0.9), rgba(15, 23, 19, 0.92));
  box-shadow: var(--shadow);
}

.join-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(211, 178, 117, 0.1);
  border-radius: 50%;
}

.join-card-top {
  position: relative;
  z-index: 1;
}

.join-mark {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
}

.join-mark svg {
  width: 46px;
  height: 46px;
}

.join-card h3 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.join-card-top > p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.join-card .btn {
  width: 100%;
  margin-top: 24px;
}

.join-card .text-link {
  margin-top: 18px;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(8, 13, 11, 0.62);
  padding: 58px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(180px, 0.45fr);
  gap: 60px;
}

.brand--footer .brand-mark,
.brand--footer .brand-mark svg {
  width: 36px;
  height: 36px;
}

.brand--footer .brand-text strong {
  font-size: 16px;
}

.footer-brand > p {
  max-width: 330px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-label {
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links a,
.footer-copy {
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-copy:hover {
  color: var(--text);
}

.footer-status {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.footer-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.footer-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.footer-live[data-state="online"] i {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(127, 174, 140, 0.08);
}

.footer-live[data-state="offline"] i {
  background: var(--red);
}

.footer-status p {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

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

.raid-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(127, 174, 140, 0.07), transparent 60%),
    #101915;
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.raid-dialog::backdrop {
  background: rgba(4, 8, 6, 0.74);
  backdrop-filter: blur(7px);
}

.raid-dialog[open] {
  animation: dialog-in 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.raid-dialog-inner {
  padding: 30px;
}

.raid-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.raid-dialog-identity {
  display: flex;
  align-items: center;
  gap: 17px;
}

.raid-dialog-identity > img {
  width: 74px;
  height: 74px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.raid-dialog-identity h2 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.raid-dialog-identity .difficulty {
  margin-top: 10px;
}

.raid-dialog-copy {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.raid-dialog-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.raid-dialog-stats > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.raid-dialog-stats dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.raid-dialog-stats dd {
  margin-top: 3px;
  color: var(--text-soft);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.raid-dialog-steps {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.raid-dialog-steps ol {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.raid-dialog-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.raid-dialog-steps li > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.raid-dialog-steps li p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.raid-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(127, 174, 140, 0.3);
  border-radius: 10px;
  background: #15241c;
  color: var(--text);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast[hidden] {
  display: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: var(--green-bright);
}

.toast span {
  font-size: 11.5px;
  font-weight: 600;
}

/* ---------- reveal ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- animations ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes art-float {
  0%, 100% {
    margin-top: 0;
  }
  50% {
    margin-top: -12px;
  }
}

@keyframes badge-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(211, 178, 117, 0.16);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(211, 178, 117, 0);
  }
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes status-ring {
  0% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 11.5px;
  }

  .status-pill {
    display: none;
  }

  .hero-layout {
    gap: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card--wide {
    grid-column: span 2;
  }

  .feature-card:last-child {
    grid-column: span 2;
  }

  .enchant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 44px, var(--max));
  }

  .header-inner {
    gap: 14px;
  }

  .main-nav {
    position: fixed;
    top: 82px;
    left: 22px;
    right: 22px;
    z-index: 85;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(14, 22, 18, 0.97);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-link {
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 13px;
  }

  .nav-link::after {
    left: auto;
    right: 15px;
    bottom: 50%;
    transform: translateY(50%) scale(0.4);
  }

  .nav-link.is-active::after {
    transform: translateY(50%) scale(1);
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 128px;
    min-height: 0;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 55px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art-wrap {
    width: min(100%, 580px);
    margin: 22px auto -20px;
    order: 2;
  }

  .hero-badge--a {
    left: 0;
  }

  .hero-badge--b {
    right: 0;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .section-heading--split .section-lead {
    padding-bottom: 0;
  }

  .world-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .world-note-stats {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .world-note-stats > div {
    padding-left: 0;
  }

  .progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-card--jobs,
  .progress-card--missions,
  .progress-card--guild,
  .progress-card--market {
    grid-column: span 1;
  }

  .progress-card {
    min-height: 300px;
  }

  .live-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-panel--address {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .join-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-steps li:nth-child(2) {
    border-right: 0;
  }

  .join-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .join-steps li:nth-child(3) {
    padding-left: 0;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .join-card {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
  }

  .footer-status {
    grid-column: span 2;
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 34px, var(--max));
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 116px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 66px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 210px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .hero-art-wrap {
    width: min(100%, 500px);
  }

  .hero-badge--d {
    display: none;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card--wide,
  .feature-card:last-child {
    grid-column: span 1;
  }

  .feature-card {
    min-height: 0;
  }

  .world-note {
    padding: 28px 24px;
  }

  .world-note-copy h3 {
    font-size: 24px;
  }

  .raid-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .boss-banner {
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
  }

  .boss-banner-copy {
    flex-basis: calc(100% - 68px);
  }

  .boss-banner-stats {
    order: 4;
    padding: 0;
  }

  .boss-banner > .btn {
    order: 5;
    width: 100%;
  }

  .enchant-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enchant-summary > div {
    padding: 14px 16px;
  }

  .enchant-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .enchant-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .enchant-summary > div:first-child {
    padding-left: 16px;
  }

  .enchant-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .enchant-count {
    grid-column: span 2;
  }

  .enchant-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .enchant-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-card {
    min-height: 0;
  }

  .join-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .join-steps li {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .join-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .join-steps li:last-child {
    border-bottom: 0;
  }

  .live-head {
    align-items: flex-start;
  }

  .live-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .live-updated {
    font-size: 7.5px;
  }

  .live-commands {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-status {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .brand-mark,
  .brand-mark svg {
    width: 36px;
    height: 36px;
  }

  .main-nav {
    left: 14px;
    right: 14px;
  }

  .hero {
    padding-top: 108px;
  }

  .hero h1 {
    font-size: clamp(37px, 12.2vw, 56px);
  }

  .hero-title {
    margin-top: 6px;
  }

  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
  }

  .copy-hint {
    margin-left: auto;
  }

  .hero-stats {
    gap: 15px;
  }

  .hero-stats dd {
    font-size: 22px;
  }

  .hero-badge {
    padding: 8px 10px;
  }

  .hero-badge--b {
    display: none;
  }

  .hero-badge--c {
    bottom: 8%;
  }

  .ticker-track {
    gap: 22px;
  }

  .ticker span {
    font-size: 8px;
  }

  .section-heading h2 {
    font-size: clamp(31px, 9.5vw, 44px);
  }

  .section-lead {
    font-size: 13px;
  }

  .feature-card {
    padding: 21px;
  }

  .world-note-stats > div {
    gap: 10px;
  }

  .world-note-stats span {
    font-size: 10px;
  }

  .raid-card {
    padding: 21px;
  }

  .raid-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .raid-stats {
    gap: 0 12px;
  }

  .boss-banner-stats {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .enchant-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .enchant-count {
    grid-column: auto;
  }

  .select-field {
    justify-content: space-between;
  }

  .live-panel {
    padding: 20px;
  }

  .live-head {
    padding: 18px 20px;
  }

  .live-motd,
  .live-commands {
    padding-inline: 20px;
  }

  .address-copy strong {
    font-size: 26px;
  }

  .players-count strong {
    font-size: 30px;
  }

  .live-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .raid-dialog-inner {
    padding: 22px;
  }

  .raid-dialog-identity {
    gap: 12px;
  }

  .raid-dialog-identity > img {
    width: 58px;
    height: 58px;
  }

  .raid-dialog-identity h2 {
    font-size: 27px;
  }

  .raid-dialog-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    gap: 20px;
  }
}

/* ---------- accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-art {
    animation: none;
  }
}

:focus-visible {
  outline: 2px solid rgba(165, 201, 174, 0.8);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
