/* ==========================================================================
   Asia Project — site theme v2
   Natural (jungle, bone stone, sunset gold) with a light tech accent.
   Loaded after every other stylesheet.
   ========================================================================== */

:root {
  color-scheme: dark;
  --night: #070b09;
  --deep: #0c130f;
  --moss: #131d17;
  --moss-2: #1a271f;
  --bone: #ede5d2;
  --stone: #bab19b;
  --mist: #8f9a90;
  --jungle: #3d7650;
  --leaf: #86c088;
  --gold: #d8a14b;
  --gold-soft: #f1cf8d;
  --ember: #e07b3c;
  --tech: #6fd6c3;
  --hair: rgba(237, 229, 210, 0.08);
  --hair-2: rgba(237, 229, 210, 0.16);
  --glass: rgba(17, 26, 21, 0.72);
  --r-lg: 22px;
  --r-md: 14px;
  --serif: "Georgia", "Cambria", "Times New Roman", "Leelawadee UI", "Noto Serif Thai", serif;
  --sans: "Segoe UI", "Leelawadee UI", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  --tech-font: "Chakra Petch", "Segoe UI", sans-serif;

  /* names the old stylesheets read (dashboard, skin editor, admin) */
  --bg: var(--night);
  --surface: var(--deep);
  --panel: var(--moss);
  --line: rgba(237, 229, 210, 0.12);
  --text: var(--bone);
  --muted: var(--stone);
  --green: var(--leaf);
  --gold-2: var(--gold-soft);
  --gold-glow: rgba(216, 161, 75, 0.3);
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 70rem 40rem at 100% -10%, rgba(224, 123, 60, 0.10), transparent 70%),
    radial-gradient(ellipse 60rem 40rem at -15% 40%, rgba(61, 118, 80, 0.14), transparent 70%),
    linear-gradient(180deg, #0a100c 0%, var(--night) 60%, #050806 100%);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

::selection { background: rgba(216, 161, 75, 0.35); color: #fff; }
a { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--tech); outline-offset: 3px; }
img { max-width: 100%; }

main { width: min(1180px, calc(100% - 32px)); padding: 28px 0 80px; }
main:has(> .ax-hero) { padding-top: 0; }

/* ================================================================ header */

.ax-header {
  position: sticky;
  top: 12px;
  z-index: 60;
  width: min(1240px, calc(100% - 24px));
  margin: 12px auto 0;
}
.ax-header-bar {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(10, 16, 12, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.ax-brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; }
.ax-brand img { width: 38px; height: 38px; }
.ax-brand span { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 0.08em; }

.ax-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.ax-nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--stone);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.ax-nav-link:hover { color: var(--bone); background: rgba(237, 229, 210, 0.06); }
.ax-nav-link.is-active { color: var(--gold-soft); background: rgba(216, 161, 75, 0.12); }

.ax-more { position: relative; }
.ax-more > summary { list-style: none; }
.ax-more > summary::-webkit-details-marker { display: none; }
.ax-more > summary::after { content: " \25BE"; font-size: 11px; }
.ax-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--hair-2);
  border-radius: 16px;
  background: #101812;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.ax-more-menu .ax-nav-link { border-radius: 10px; }

.ax-actions { display: flex; align-items: center; gap: 8px; }
.ax-actions .lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--hair-2); border-radius: 999px; }
.ax-actions .lang-switch-btn { padding: 3px 9px; border-radius: 999px; color: var(--mist); font-size: 12px; font-weight: 600; text-decoration: none; }
.ax-actions .lang-switch-btn.active { background: var(--moss-2); color: var(--gold-soft); }
.ax-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  color: var(--bone);
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ax-account img { width: 26px; height: 26px; border-radius: 50%; }
.ax-login { padding: 9px 18px; border-radius: 999px; background: linear-gradient(135deg, #f3d494, var(--gold)); color: #1a1206; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.ax-menu-check { position: absolute; opacity: 0; pointer-events: none; }
.ax-menu-btn { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--hair-2); border-radius: 50%; cursor: pointer; }
.ax-menu-btn span { display: block; width: 16px; height: 1.5px; margin: 0 auto; background: var(--bone); }

@media (max-width: 1100px) {
  .ax-header-bar { flex-wrap: wrap; border-radius: 26px; }
  .ax-menu-btn { display: flex; }
  .ax-nav, .ax-actions { display: none; flex-basis: 100%; }
  .ax-menu-check:checked ~ .ax-nav { display: grid; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--hair); }
  .ax-menu-check:checked ~ .ax-actions { display: flex; justify-content: space-between; padding: 8px 4px 4px; }
  .ax-more-menu { position: static; display: grid; min-width: 0; margin: 0 0 4px 14px; padding: 0 0 0 8px; border: 0; border-left: 1px solid var(--hair-2); border-radius: 0; background: none; box-shadow: none; }
  .ax-nav-link { border-radius: 12px; }
}

/* ============================================================ type & bits */

.ax-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--gold);
  font-family: var(--tech-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ax-display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.ax-title { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.ax-lede { max-width: 62ch; margin: 16px 0 0; color: var(--stone); font-size: 17.5px; line-height: 1.75; }
.ax-note, .ax-muted { color: var(--mist); }

/* Thai reads badly with wide letter-spacing */
html[lang="th"] .ax-kicker,
html[lang="th"] .ax-pulse-title,
html[lang="th"] .ax-footer-col h4 { letter-spacing: 0.03em; }
.ax-link { color: var(--gold-soft); font-weight: 600; text-decoration: none; }
.ax-link:hover { text-decoration: underline; }

.ax-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.ax-dot.is-live { background: var(--leaf); box-shadow: 0 0 0 4px rgba(134, 192, 136, 0.18); }

.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.ax-btn svg { width: 18px; height: 18px; }
.ax-btn:hover { transform: translateY(-1px); }
.ax-btn-gold { background: linear-gradient(135deg, #f4d69a 0%, var(--gold) 60%, #c28331 100%); color: #1a1206; box-shadow: 0 10px 30px rgba(216, 161, 75, 0.25); }
.ax-btn-gold:hover { box-shadow: 0 12px 36px rgba(216, 161, 75, 0.4); }
.ax-btn-ghost { border-color: var(--hair-2); background: rgba(237, 229, 210, 0.04); color: var(--bone); }
.ax-btn-ghost:hover { border-color: rgba(134, 192, 136, 0.5); background: rgba(61, 118, 80, 0.15); }
.ax-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ax-feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(134, 192, 136, 0.35), rgba(61, 118, 80, 0.12));
  color: var(--leaf);
}
.ax-feature-icon svg { width: 22px; height: 22px; }

/* ================================================================== home */

.ax-hero { width: 100vw; margin-left: calc(50% - 50vw); margin-top: -70px; }
.ax-hero-art { position: relative; max-height: 78vh; overflow: hidden; }
.ax-hero-art img { display: block; width: 100%; height: 100%; max-height: 78vh; object-fit: cover; object-position: center 40%; }
.ax-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 9, 0.55) 0%, transparent 18%),
    linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 9, 0.6) 14%, transparent 42%);
}

.ax-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-top: clamp(-80px, -6vw, -30px);
  position: relative;
}
.ax-pulse {
  padding: 24px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(12px);
}
.ax-pulse-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--tech-font); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.ax-pulse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 0 0 18px; }
.ax-pulse-grid dt { color: var(--mist); font-size: 12.5px; }
.ax-pulse-grid dd { margin: 2px 0 0; color: var(--bone); font-family: var(--serif); font-size: 26px; font-weight: 700; }
.ax-pulse-grid dd.is-live { color: var(--leaf); }
.ax-pulse-grid dd.is-offline { color: var(--mist); }

.ax-section { margin-top: clamp(80px, 11vw, 140px); }
.ax-section-head { max-width: 720px; margin-bottom: 34px; }
.ax-section-head p:not(.ax-kicker) { margin: 12px 0 0; color: var(--stone); }

.ax-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--hair); }
.ax-feature { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.ax-feature h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; }
.ax-feature p { margin: 0; color: var(--stone); }

.ax-trail { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ax-trail.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-trail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(216, 161, 75, 0.55) 0 8px, transparent 8px 16px);
}
.ax-trail li { position: relative; }
.ax-trail-node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 161, 75, 0.6);
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}
.ax-trail h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; }
.ax-trail p { margin: 0; color: var(--stone); font-size: 15px; }

.ax-launcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(90deg, rgba(111, 214, 195, 0.07), transparent 40%),
    var(--glass);
}
.ax-launcher-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(111, 214, 195, 0.12); color: var(--tech); }
.ax-launcher-icon svg { width: 24px; height: 24px; }
.ax-launcher-text { display: grid; flex: 1; min-width: 220px; }
.ax-launcher-text strong { font-size: 17px; }
.ax-launcher-text span { color: var(--stone); font-size: 14.5px; }
.ax-launcher-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ax-community {
  position: relative;
  margin-top: clamp(80px, 11vw, 140px);
  border: 1px solid var(--hair-2);
  border-radius: 28px;
  overflow: hidden;
  background: var(--deep);
}
.ax-community::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/asia_banner_1200.webp") center 60% / cover no-repeat;
  opacity: 0.28;
}
.ax-community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 9, 0.96) 25%, rgba(7, 11, 9, 0.6) 70%, rgba(7, 11, 9, 0.4)); }
.ax-community-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; padding: clamp(28px, 5vw, 52px); }
.ax-community-icon { width: 72px; height: 72px; flex: none; border-radius: 20px; overflow: hidden; background: rgba(216, 161, 75, 0.12); color: var(--gold-soft); }
.ax-community-icon img, .ax-community-icon svg { width: 100%; height: 100%; object-fit: cover; }
.ax-community-text { flex: 1; min-width: 260px; }
.ax-community-text > p:not(.ax-kicker) { max-width: 56ch; margin: 10px 0 0; color: var(--stone); }
.discord-stats { display: flex; gap: 18px; margin-top: 14px; color: var(--mist); font-size: 14px; }
.discord-stats strong { color: var(--bone); }
.discord-widget-frame { position: relative; z-index: 1; margin: 0 clamp(28px, 5vw, 52px) clamp(28px, 5vw, 52px); border-radius: var(--r-md); overflow: hidden; }

/* ============================================================ inner pages */

.ax-page-hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) clamp(22px, 5vw, 56px);
  border: 1px solid var(--hair);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 39, 31, 0.9), rgba(12, 19, 15, 0.9));
}
.ax-page-hero > * { position: relative; z-index: 1; }
.ax-page-hero-art { position: absolute !important; inset: 0; z-index: 0 !important; background: url("/static/asia_banner_1200.webp") 70% 45% / cover no-repeat; opacity: 0.35; mask-image: linear-gradient(90deg, transparent 20%, #000 75%); }
.ax-page-hero.is-compact { padding-block: clamp(34px, 5vw, 60px); background: none; border: 0; padding-inline: 0; }
.ax-page-hero .ax-note { margin: 16px 0 0; font-size: 14px; }

.ax-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.ax-facts li { display: grid; gap: 2px; padding: 20px; border-left: 1px solid var(--hair); }
.ax-facts li:first-child { border-left: 0; }
.ax-facts strong { color: var(--gold-soft); font-family: var(--serif); font-size: 22px; }
.ax-facts span { color: var(--mist); font-size: 13px; }

.ax-rows { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.ax-row { display: grid; grid-template-columns: 56px 46px minmax(0, 1fr); gap: 20px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--hair); }
.ax-row-num { color: rgba(216, 161, 75, 0.7); font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; }
.ax-row h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; }
.ax-row p { max-width: 70ch; margin: 0; color: var(--stone); }

.ax-banner-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(64px, 9vw, 110px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(216, 161, 75, 0.3);
  border-radius: 28px;
  background: radial-gradient(ellipse 40rem 20rem at 100% 0%, rgba(216, 161, 75, 0.14), transparent 70%), var(--glass);
}
.ax-banner-cta p { margin: 8px 0 0; color: var(--stone); }
.ax-banner-cta .ax-cta { margin-top: 0; }

.ax-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ax-mini-grid article { padding: 22px; border: 1px solid var(--hair); border-radius: var(--r-md); background: rgba(12, 19, 15, 0.6); }
.ax-mini-grid article > svg { width: 22px; height: 22px; color: var(--gold); }
.ax-mini-grid h3 { margin: 12px 0 6px; font-size: 17px; }
.ax-mini-grid p { margin: 0; color: var(--stone); font-size: 14.5px; }

/* rules */
.ax-rules { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ax-rules-index { position: sticky; top: 100px; display: grid; gap: 4px; }
.ax-rules-index-links { display: grid; gap: 2px; }
.ax-rules-index-links a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; color: var(--stone); font-size: 15px; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.ax-rules-index-links a:hover { background: rgba(237, 229, 210, 0.05); color: var(--bone); }
.ax-rules-index-num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid rgba(216, 161, 75, 0.45); border-radius: 50%; color: var(--gold-soft); font-family: var(--tech-font); font-size: 12.5px; font-weight: 600; }
.ax-keynums { display: grid; gap: 14px; margin: 18px 0 0; padding: 18px; border: 1px solid var(--hair); border-radius: var(--r-md); background: rgba(12, 19, 15, 0.6); }
.ax-keynums div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.ax-keynums dt { color: var(--gold-soft); font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.ax-keynums dd { margin: 0; color: var(--stone); font-size: 13.5px; line-height: 1.5; }
.ax-quote { margin: 0 0 44px; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); color: var(--bone); font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.6; }
.ax-quote cite { display: block; margin-top: 10px; color: var(--gold); font-family: var(--sans); font-size: 13px; font-style: normal; }
.ax-rule-group { margin-bottom: 56px; scroll-margin-top: 100px; }
.ax-rule-section-num { margin: 0 0 4px; color: var(--gold); font-family: var(--tech-font); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
html[lang="th"] .ax-rule-section-num { letter-spacing: 0.03em; }
.ax-rule-group > h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.25; }
.ax-rule-group > h2 svg { width: 26px; height: 26px; flex: none; color: var(--leaf); }
.ax-rule-group > .ax-muted { margin: 6px 0 18px; }
.ax-rule-list { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.ax-rule-list li { position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--hair); counter-increment: rule; }
.ax-rule-list li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 19px; color: var(--gold); font-family: var(--tech-font); font-weight: 600; letter-spacing: 0.08em; }
.ax-rule-list h3 { margin: 0 0 4px; font-size: 17.5px; line-height: 1.4; }
.ax-rule-list p { max-width: 68ch; margin: 0; color: var(--stone); }
.ax-penalties { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ax-penalty-label { margin-right: 2px; color: var(--mist); font-size: 12.5px; }
.ax-penalty { display: inline-block; padding: 2px 10px; border: 1px solid; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.6; }
.ax-penalty.is-warn { border-color: rgba(216, 161, 75, 0.4); background: rgba(216, 161, 75, 0.1); color: var(--gold-soft); }
.ax-penalty.is-ban { border-color: rgba(224, 123, 60, 0.45); background: rgba(224, 123, 60, 0.12); color: #f2a576; }
.ax-penalty.is-perma { border-color: rgba(232, 84, 72, 0.55); background: rgba(232, 84, 72, 0.14); color: #ff9a8f; }
.ax-penalty.is-slay { border-color: rgba(111, 214, 195, 0.4); background: rgba(111, 214, 195, 0.1); color: var(--tech); }
.ax-limit-wrap { border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; background: rgba(12, 19, 15, 0.6); }
.ax-limit-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ax-limit-table th, .ax-limit-table td { padding: 9px 16px; border-top: 1px solid var(--hair); text-align: left; }
.ax-limit-table thead th { border-top: 0; background: rgba(237, 229, 210, 0.04); color: var(--mist); font-size: 12.5px; font-weight: 600; }
.ax-limit-table tbody th { color: var(--bone); font-weight: 500; }
.ax-limit-table td { width: 26%; color: var(--gold-soft); font-family: var(--tech-font); font-weight: 600; text-align: right; }
.ax-limit-table thead th:not(:first-child) { text-align: right; }
.ax-limit-table tbody tr:not(.ax-limit-head):hover { background: rgba(237, 229, 210, 0.03); }
.ax-limit-head th { padding-top: 14px; background: rgba(61, 118, 80, 0.12); color: var(--leaf) !important; font-size: 13px; font-weight: 700 !important; }
.ax-limit-head svg { width: 15px; height: 15px; margin: 0 8px -2px 0; }
@media (max-width: 960px) {
  .ax-rules-index-links { display: flex; flex-wrap: wrap; gap: 6px; }
  .ax-rules-index-links a { padding: 6px 12px 6px 6px; border: 1px solid var(--hair); border-radius: 999px; font-size: 14px; }
}
@media (max-width: 600px) {
  .ax-rule-list li { padding-left: 40px; }
  .ax-limit-table th, .ax-limit-table td { padding: 8px 10px; }
  .ax-limit-table { font-size: 14px; }
}

/* players */
.ax-species { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ax-species-total, .ax-species .species-card { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--glass); }
.ax-species-total { border-color: rgba(134, 192, 136, 0.35); }
.ax-species span { color: var(--mist); font-size: 13px; }
.ax-species strong { font-family: var(--serif); font-size: 30px; }
.ax-species-total strong { color: var(--leaf); }

/* redeem */
.ax-redeem { text-align: center; }
.ax-redeem .ax-lede { margin-inline: auto; }
.ax-redeem-card { width: min(480px, 100%); margin: 30px auto 0; padding: 26px; border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: var(--glass); }
.ax-redeem-card .verify-form { display: grid; gap: 12px; }
.ax-redeem-card label { display: grid; gap: 8px; color: var(--stone); font-size: 14px; text-align: left; }
.ax-redeem-card input { min-height: 52px; padding: 0 16px; border: 1px solid var(--hair-2); border-radius: 14px; background: rgba(0, 0, 0, 0.3); color: var(--bone); font-family: var(--tech-font); font-size: 20px; letter-spacing: 0.25em; text-align: center; }
.ax-redeem-card .button { min-height: 50px; border-radius: 999px; }
#redeemCodeStatus { min-height: 1.5em; margin: 14px 0 0; color: var(--stone); }

/* header wallet (RC + Bone), shown when signed in */
.ax-wallet { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--hair-2); border-radius: 999px; text-decoration: none; transition: border-color 0.15s ease; }
.ax-wallet:hover { border-color: rgba(216, 161, 75, 0.5); }
.ax-wallet-item { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; color: var(--bone); font-size: 13.5px; line-height: 1; white-space: nowrap; }
.ax-wallet-item + .ax-wallet-item { border-left: 1px solid var(--hair); border-radius: 0 999px 999px 0; }
.ax-wallet-item svg { width: 16px; height: 16px; flex: none; }
.ax-wallet-item.is-rc svg { color: var(--gold-soft); }
.ax-wallet-item.is-bone svg { color: #e9dcc0; }
.ax-wallet-item b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ax-wallet-item small { color: var(--mist); font-size: 11.5px; font-weight: 600; }
@media (max-width: 1240px) { .ax-wallet-item small { display: none; } }
@media (max-width: 1100px) { .ax-menu-check:checked ~ .ax-actions { flex-wrap: wrap; gap: 8px; } .ax-wallet { order: -1; flex-basis: 100%; justify-content: center; } }

/* Sign in with Steam button (Steam colours) */
.ax-btn-steam { border-color: rgba(102, 192, 244, 0.5); background: linear-gradient(135deg, #1b2838, #2a475e); color: #fff; box-shadow: 0 10px 30px rgba(102, 192, 244, 0.18); }
.ax-btn-steam:hover { border-color: rgba(102, 192, 244, 0.85); background: linear-gradient(135deg, #22344a, #31597a); box-shadow: 0 12px 34px rgba(102, 192, 244, 0.3); }
.ax-btn-steam svg { width: 20px; height: 20px; }
/* ================================================================ footer */

.ax-footer { margin-top: auto; border-top: 1px solid var(--hair); background: linear-gradient(180deg, transparent, rgba(3, 5, 4, 0.9)); }
.ax-footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 36px; }
.ax-footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.ax-footer-brand img { width: 64px; height: 64px; }
.ax-footer-brand strong { font-family: var(--serif); font-size: 20px; letter-spacing: 0.06em; }
.ax-footer-brand p { max-width: 36ch; margin: 6px 0 0; color: var(--mist); font-size: 14px; }
.ax-footer-col { display: grid; align-content: start; gap: 8px; }
.ax-footer-col h4 { margin: 0 0 4px; color: var(--gold); font-family: var(--tech-font); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.ax-footer-col a { color: var(--stone); font-size: 14.5px; text-decoration: none; }
.ax-footer-col a:hover { color: var(--gold-soft); }
.ax-footer-base { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--hair); color: var(--mist); font-size: 12.5px; letter-spacing: 0.04em; }
body:has(.live-map-shell) .ax-footer { display: none; }

/* ============================================================ responsive */

@media (max-width: 960px) {
  .ax-intro, .ax-rules { grid-template-columns: 1fr; }
  .ax-intro { margin-top: -20px; }
  .ax-rules-index { position: static; }
  .ax-features { grid-template-columns: 1fr; }
  .ax-trail, .ax-trail.is-three { grid-template-columns: 1fr 1fr; }
  .ax-trail::before { display: none; }
  .ax-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-facts li { border-left: 0; border-top: 1px solid var(--hair); }
  .ax-mini-grid { grid-template-columns: 1fr 1fr; }
  .ax-footer-inner { grid-template-columns: 1fr 1fr; }
  .ax-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ax-hero { margin-top: -60px; }
  .ax-hero-art img { min-height: 300px; }
  .ax-trail, .ax-trail.is-three, .ax-mini-grid, .ax-notes { grid-template-columns: 1fr; }
  .ax-row { grid-template-columns: 46px minmax(0, 1fr); }
  .ax-row-num { display: none; }
  .ax-pulse-grid dd { font-size: 22px; }
}

/* ================================================= app pages (keep in theme) */
/* Dashboard, skin editor, live map and admin keep their structure but use the palette. */

.button { border-radius: 12px; font-weight: 600; }
.button.primary { border-color: rgba(241, 207, 141, 0.6); background: linear-gradient(135deg, #f4d69a 0%, var(--gold) 60%, #c28331 100%); color: #1a1206; box-shadow: 0 8px 24px rgba(216, 161, 75, 0.25); }
.button.secondary { border-color: var(--hair-2); background: rgba(237, 229, 210, 0.04); color: var(--bone); }
.button.discord { background: #4b56c9; color: #fff; }
.install-modal { border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--moss-2), var(--deep)); color: var(--bone); }
.install-modal::backdrop { background: rgba(4, 7, 5, 0.75); backdrop-filter: blur(4px); }
input, select, textarea { border-color: var(--hair-2); background-color: rgba(0, 0, 0, 0.3); color: var(--bone); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
