:root {
  color-scheme: light;
  --midnight: #171d3b;
  --midnight-2: #232b58;
  --royal: #244aa8;
  --sky: #7ad7ff;
  --sky-soft: #dff7ff;
  --grass: #5fbf63;
  --grass-dark: #23874b;
  --wood: #8a4f27;
  --wood-dark: #5f331c;
  --gold: #ffc94a;
  --gold-dark: #cf7b20;
  --cream: #fff4cf;
  --paper: #fff9e8;
  --paper-line: #ead8a8;
  --ink: #222847;
  --ink-soft: #59627b;
  --danger: #d95232;
  --teal: #00a996;
  --panel-shadow: 0 16px 34px rgba(36, 38, 74, 0.20);
  --soft-shadow: 0 10px 22px rgba(36, 38, 74, 0.12);
  --page: min(1180px, calc(100vw - 32px));
  --font-display: "Avenir Next", "Aptos Display", "Trebuchet MS", sans-serif;
  --font-body: "Aptos", "Avenir Next", "Segoe UI", Verdana, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --fw-copy: 400;
  --fw-copy-strong: 550;
  --fw-label: 650;
  --fw-title: 760;
  --fw-display: 820;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 14% 9%, rgba(255, 255, 255, 0.9) 0 2.8rem, transparent 2.9rem),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.78) 0 2rem, transparent 2.1rem),
    radial-gradient(circle at 86% 13%, rgba(255, 255, 255, 0.65) 0 3rem, transparent 3.1rem),
    linear-gradient(180deg, #74d2ff 0%, #a8eaff 28%, #f4fbff 62%, #fff7dc 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
}

body::before {
  top: 92px;
  height: 420px;
  background:
    radial-gradient(ellipse at 78% 86%, rgba(104, 196, 86, 0.42) 0 18rem, transparent 18.3rem),
    radial-gradient(ellipse at 7% 94%, rgba(65, 170, 83, 0.34) 0 15rem, transparent 15.3rem);
  opacity: 0.85;
}

body::after {
  bottom: 0;
  height: 160px;
  background:
    radial-gradient(ellipse at 20% 100%, #48a64d 0 16rem, transparent 16.2rem),
    radial-gradient(ellipse at 72% 105%, #67bd52 0 20rem, transparent 20.2rem),
    linear-gradient(180deg, transparent, rgba(55, 137, 63, 0.28));
}

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

strong,
b {
  font-weight: var(--fw-label);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

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

.skip-link {
  position: absolute;
  left: 14px;
  top: -60px;
  z-index: 100;
  border: 3px solid var(--wood-dark);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: var(--fw-title);
  padding: 10px 14px;
}

.skip-link:focus {
  top: 14px;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.game-topbar {
  position: relative;
  z-index: 40;
  width: var(--page);
  margin: 16px auto 0;
}

.topbar-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(23, 29, 59, 0.13);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
}

.v3-brand-mark {
  display: inline-flex;
  width: 70px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 74, 168, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.7));
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.06);
}

.v3-brand-mark:hover,
.v3-brand-mark:focus-visible {
  border-color: rgba(207, 123, 32, 0.3);
  background: #fff8dc;
  outline: none;
}

.v3-brand-mark img {
  display: block;
  width: 58px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.game-nav {
  min-width: 0;
  overflow: visible;
}

.v3-nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-nav-item {
  position: relative;
  min-width: 0;
}

.v3-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #16213f;
  font-weight: var(--fw-label);
  font-size: 0.88rem;
  line-height: 1.15;
  padding: 9px 10px;
  white-space: nowrap;
  cursor: pointer;
}

.v3-nav-link:hover,
.v3-nav-link:focus-visible {
  border-color: rgba(36, 74, 168, 0.14);
  background: rgba(36, 74, 168, 0.07);
  outline: none;
}

.v3-nav-link.active,
.v3-nav-link[aria-current="page"] {
  border-color: rgba(207, 123, 32, 0.28);
  background: linear-gradient(180deg, #fff4bd, #ffd05a);
  color: #4f2d10;
  box-shadow: 0 2px 0 rgba(207, 123, 32, 0.2);
}

.v3-chevron {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: rgba(22, 33, 63, 0.55);
  font-size: 0;
  line-height: 0;
  transform: rotate(45deg) translateY(-2px);
}

.v3-flyout {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: none;
  width: max-content;
  min-width: 250px;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.16);
  padding: 8px;
}

.v3-nav-item--game-guides .v3-flyout {
  position: fixed;
  top: 98px;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 122px);
  transform: translateX(-50%);
  border-radius: 18px;
  padding: 12px;
}

.v3-flyout::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.v3-nav-item--game-guides .v3-flyout::before {
  display: none;
}

.v3-flyout ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-nav-item--game-guides .v3-flyout ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.v3-flyout a {
  display: block;
  border-radius: 10px;
  color: #16213f;
  font-size: 0.9rem;
  font-weight: var(--fw-copy-strong);
  padding: 9px 10px;
}

.v3-nav-item--game-guides .v3-flyout a {
  min-height: 42px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.v3-flyout a:hover,
.v3-flyout a:focus-visible,
.v3-flyout a.active {
  background: rgba(36, 74, 168, 0.08);
  color: var(--royal);
  outline: none;
}

.th-item[data-open="true"] > .v3-flyout,
.th-item > .dropdown-toggle[aria-expanded="true"] + .v3-flyout,
.th-item:focus-within > .v3-flyout {
  display: block;
}

@media (hover: hover) {
  .th-item:hover > .v3-flyout {
    display: block;
  }
}

.top-actions {
  display: grid;
  width: min(260px, 22vw);
  min-width: 216px;
  gap: 7px;
}

.v3-search-form,
.v3-mobile-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.v3-search-form input,
.v3-mobile-search-form input,
.v3-translate-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #16213f;
  font-size: 0.88rem;
  padding: 9px 10px;
}

.v3-search-form button,
.v3-mobile-search-form button,
.v3-mobile-actions button,
#nav-close {
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #16213f;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: var(--fw-label);
  padding: 9px 11px;
}

.v3-search-form button:hover,
.v3-mobile-search-form button:hover,
.v3-mobile-actions button:hover,
#nav-close:hover {
  background: rgba(36, 74, 168, 0.07);
}

.v3-mobile-actions {
  display: none;
  justify-content: flex-end;
  gap: 8px;
}

.v3-mobile-search {
  margin-top: 10px;
}

.v3-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.v3-mobile-shade {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(4px);
}

.v3-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(100%, 390px);
  height: 100%;
  flex-direction: column;
  background: #fff;
  box-shadow: -16px 0 38px rgba(2, 6, 23, 0.2);
  transform: translateX(100%);
  transition: transform 0.2s ease;
}

.v3-mobile-panel-head,
.v3-mobile-panel-tools {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  padding: 14px;
}

.v3-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v3-mobile-panel-head strong {
  display: block;
  color: #16213f;
  font-size: 1rem;
}

.v3-mobile-panel-head span,
.v3-mobile-panel-tools label {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.v3-mobile-panel-tools {
  display: grid;
  gap: 12px;
}

.v3-mobile-panel-tools label {
  display: block;
  font-weight: var(--fw-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v3-mobile-nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.v3-mobile-nav ul,
.v3-mobile-subnav {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v3-mobile-nav-button,
.v3-mobile-nav-link,
.v3-mobile-subnav a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  color: #16213f;
  font-size: 0.94rem;
  font-weight: var(--fw-label);
  padding: 11px 12px;
}

.v3-mobile-nav-button {
  cursor: pointer;
}

.v3-mobile-subnav {
  padding: 6px 0 2px 12px;
}

.v3-mobile-subnav a {
  justify-content: flex-start;
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: var(--fw-copy-strong);
}

.v3-mobile-nav-link.active,
.v3-mobile-subnav a.active {
  border-color: rgba(207, 123, 32, 0.28);
  background: #fff4bd;
  color: #4f2d10;
}

.page {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) 0 58px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.82), transparent 12rem),
    radial-gradient(circle at 18% 86%, rgba(255, 201, 74, 0.30), transparent 14rem),
    linear-gradient(135deg, #e9fbff 0%, #b8efff 45%, #ffefbb 100%);
  box-shadow: var(--panel-shadow);
}

.hero-stage::before {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -72px;
  width: 310px;
  height: 210px;
  border: 6px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(180deg, #6ac85b, #2b9b54);
  box-shadow: inset 0 18px 0 rgba(255, 255, 255, 0.18);
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 42px;
  width: 120px;
  height: 170px;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(71, 58, 68, 0.16) 18px 22px, transparent 22px 100%),
    linear-gradient(180deg, #758fb0, #4f6b92);
  clip-path: polygon(50% 0, 74% 18%, 74% 100%, 26% 100%, 26% 18%);
  opacity: 0.32;
}

.hero-grid,
.guide-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(290px, 0.94fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(22px, 5vw, 52px);
}

.guide-stage {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 1.02fr);
}

.hero-logo {
  width: min(285px, 72vw);
  margin-bottom: 16px;
  filter: drop-shadow(0 7px 0 rgba(80, 49, 24, 0.18));
}

.eyebrow,
.quest-label,
.meta-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-weight: var(--fw-label);
  text-transform: uppercase;
}

.eyebrow {
  border: 2px solid #fff;
  background: linear-gradient(180deg, var(--gold), #ee9e2b);
  color: #633917;
  box-shadow: 0 3px 0 var(--gold-dark);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 7px 11px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-title);
  letter-spacing: -0.015em;
}

h1 {
  max-width: 740px;
  margin: 14px 0 0;
  color: #182047;
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-weight: var(--fw-display);
  line-height: 1.02;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.64);
}

h2 {
  color: #182047;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: var(--fw-title);
  line-height: 1.08;
}

h3 {
  color: #1f2748;
  font-size: 1.08rem;
  font-weight: var(--fw-title);
  line-height: 1.2;
}

.lead {
  max-width: 660px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: var(--fw-copy);
  line-height: 1.62;
}

.hero-actions,
.section-head,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 24px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 3px solid #fff;
  border-radius: 999px;
  font-weight: var(--fw-title);
  line-height: 1;
  padding: 11px 17px;
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.24);
}

.button {
  background: linear-gradient(180deg, #ffdd55, #ef8d22);
  color: #552f12;
}

.ghost-button {
  background: linear-gradient(180deg, #ffffff, #dff7ff);
  color: var(--royal);
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.quest-board {
  position: relative;
  border: 5px solid var(--wood-dark);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.20), transparent 24%),
    linear-gradient(180deg, #b46f36, var(--wood));
  box-shadow: 0 9px 0 rgba(95, 51, 28, 0.32), var(--soft-shadow);
  padding: 16px;
}

.quest-board::before,
.quest-board::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 16px;
  height: 16px;
  border: 3px solid #5a2e16;
  border-radius: 50%;
  background: var(--gold);
}

.quest-board::before {
  left: 18px;
}

.quest-board::after {
  right: 18px;
}

.scroll-panel {
  border: 3px solid #d6a85a;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.70), transparent 24%),
    var(--paper);
  box-shadow: inset 0 0 0 2px #fff6d8;
  padding: 20px;
}

.scroll-panel p,
.parchment p,
.chapter-body p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
  line-height: 1.62;
}

.quest-label {
  background: var(--midnight);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  padding: 7px 10px;
}

.objective-list,
.quick-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objective-list {
  margin-top: 14px;
}

.objective-list li,
.quick-list li,
.check-list li {
  position: relative;
  border: 2px solid rgba(207, 123, 32, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
  line-height: 1.5;
  padding: 11px 12px 11px 40px;
}

.objective-list li::before,
.quick-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), #ef8d22);
  box-shadow: 0 2px 0 rgba(85, 47, 18, 0.24);
}

.stat-ribbon {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 4px solid var(--gold-dark);
  background: var(--midnight);
}

.stat-ribbon div {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.stat-ribbon div:last-child {
  border-right: 0;
}

.stat-ribbon b {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: var(--fw-display);
}

.stat-ribbon span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: var(--fw-label);
  text-transform: uppercase;
}

.section-head {
  justify-content: space-between;
  margin: 34px 0 15px;
}

.section-head h2 {
  color: #fff;
  text-shadow: 0 3px 0 rgba(23, 29, 59, 0.30);
}

.feature-panel .section-head h2,
.chapter .section-head h2,
.tool-panel .section-head h2 {
  color: #182047;
  text-shadow: none;
}

.section-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: #24415d;
  font-weight: var(--fw-copy);
  line-height: 1.55;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quest-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 4px solid #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.58), transparent 5rem),
    linear-gradient(180deg, #fffaf0, #ffe6a7);
  box-shadow: var(--soft-shadow);
  padding: 18px;
}

.quest-card::before {
  content: attr(data-badge);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--royal), #172761);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--fw-display);
  box-shadow: 0 4px 0 rgba(23, 29, 59, 0.22);
}

.quest-card h3 {
  margin-top: 16px;
}

.quest-card p {
  margin: 9px 0 18px;
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
  line-height: 1.55;
}

.card-link {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--royal);
  font-weight: var(--fw-title);
}

.split-zone {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 16px;
  margin-top: 22px;
}

.parchment {
  border: 4px solid #fff;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 25%),
    var(--paper);
  box-shadow: var(--soft-shadow);
  padding: 22px;
}

.parchment h2 {
  margin-top: 10px;
}

.update-feed {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.update-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 2px dashed rgba(207, 123, 32, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  padding: 13px;
}

.update-card time {
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: var(--fw-label);
}

.update-card strong {
  display: block;
}

.update-card p {
  margin: 4px 0 0;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 4px solid #fff;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 201, 74, 0.22), transparent 8rem),
    linear-gradient(180deg, #fffefa, #ffe8ac);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  padding: 16px;
}

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

.code-value {
  overflow-wrap: anywhere;
  color: var(--midnight);
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: var(--fw-title);
}

.code-note {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: var(--fw-copy);
  line-height: 1.45;
}

.code-expiry {
  display: inline-flex;
  margin-top: 8px;
  border: 2px solid rgba(207, 123, 32, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: #7a4317;
  font-size: 0.76rem;
  font-weight: var(--fw-label);
  padding: 5px 8px;
}

.copy-token {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--royal), #172761);
  color: var(--gold);
  font-weight: var(--fw-title);
  box-shadow: 0 4px 0 rgba(23, 29, 59, 0.16);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-chip {
  border: 2px solid rgba(36, 74, 168, 0.18);
  background: rgba(255, 255, 255, 0.66);
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 8px 10px;
}

.anchor-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.anchor-strip a {
  flex: 0 0 auto;
  border: 2px solid rgba(36, 74, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--royal);
  font-size: 0.78rem;
  font-weight: var(--fw-label);
  padding: 9px 12px;
}

.anchor-strip a:hover {
  border-color: var(--gold);
  background: #fff8cf;
  color: #633917;
}

.event-guide-menu {
  position: relative;
  z-index: 20;
  width: min(100%, 360px);
  margin: 0 auto 18px;
}

.event-guide-menu__button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 4px solid #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefa, #ffe7a9);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  cursor: pointer;
  font-weight: var(--fw-title);
  padding: 13px 15px;
}

.event-guide-menu__button span:last-child {
  color: var(--royal);
  font-family: var(--font-mono);
}

.event-guide-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 430px;
  overflow-y: auto;
  border: 4px solid var(--wood-dark);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--panel-shadow);
  padding: 8px;
}

.event-guide-menu__link {
  display: block;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: var(--fw-label);
  padding: 10px 12px;
}

.event-guide-menu__link:hover,
.event-guide-menu__link.active {
  background: linear-gradient(180deg, #fff7c6, #ffd968);
  color: #633917;
}

.event-guide-menu__empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 8px;
  text-align: center;
}

.priority-stack {
  display: grid;
  gap: 10px;
}

.priority-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefa, #ffe7a9);
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.16);
  padding: 12px;
}

.priority-rank {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffdd55, #ef8d22);
  color: #5a2f13;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--fw-title);
}

.priority-item p {
  margin: 4px 0 0;
}

.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.toc-board {
  position: sticky;
  top: 98px;
  align-self: start;
  border: 5px solid var(--wood-dark);
  border-radius: 22px;
  background: linear-gradient(180deg, #b06a33, var(--wood));
  box-shadow: var(--soft-shadow);
  padding: 13px;
}

.toc-board span {
  display: block;
  color: #fff8d6;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--fw-title);
  margin: 3px 8px 10px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.toc-board a {
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 13px;
  background: rgba(255, 249, 232, 0.92);
  color: #5a2f13;
  font-weight: var(--fw-label);
  margin-top: 8px;
  padding: 10px 11px;
}

.toc-board a:hover {
  background: linear-gradient(180deg, #fff7c6, #ffd968);
}

.guide-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.guide-layout > *,
.chapter,
.feature-panel,
.dark-panel,
.tool-panel {
  min-width: 0;
  max-width: 100%;
}

.chapter {
  scroll-margin-top: 100px;
  border: 4px solid #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 215, 255, 0.25), transparent 10rem),
    var(--paper);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.chapter-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: linear-gradient(180deg, var(--midnight-2), var(--midnight));
  color: #fff;
}

.chapter-number {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffdd55, #ef8d22);
  color: #5a2f13;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: var(--fw-title);
}

.chapter-title {
  padding: 15px 18px;
}

.chapter-title h2 {
  color: #fff;
  font-weight: var(--fw-display);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.chapter-title span {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-body {
  padding: clamp(18px, 3vw, 26px);
}

.chapter-body p + p {
  margin-top: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.info-card {
  border: 3px solid #f5d787;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px;
}

.info-card p {
  margin: 7px 0 0;
  font-size: 0.94rem;
}

.info-card strong {
  display: block;
  color: var(--ink);
  font-weight: var(--fw-label);
}

.feature-panel {
  border: 4px solid #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 201, 74, 0.18), transparent 10rem),
    var(--paper);
  box-shadow: var(--soft-shadow);
  padding: clamp(18px, 3vw, 26px);
}

.feature-panel + .feature-panel {
  margin-top: 16px;
}

.feature-panel h2 {
  margin-top: 8px;
}

.feature-panel p,
.feature-panel li {
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
  line-height: 1.58;
}

.feature-panel p {
  margin: 10px 0 0;
}

.feature-panel ul,
.feature-panel ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

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

.resource-step {
  position: relative;
  border: 3px solid #f5d787;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.resource-step b {
  display: block;
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-step span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-weight: var(--fw-label);
}

.resource-step p {
  margin-top: 8px;
  font-size: 0.92rem;
}

.dark-panel {
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 215, 255, 0.16), transparent 11rem),
    linear-gradient(180deg, var(--midnight-2), var(--midnight));
  box-shadow: var(--panel-shadow);
  color: #fff;
  padding: clamp(18px, 3vw, 26px);
}

.dark-panel h2,
.dark-panel h3 {
  color: #fff;
}

.dark-panel p,
.dark-panel li {
  color: rgba(255, 255, 255, 0.76);
  font-weight: var(--fw-copy);
  line-height: 1.58;
}

.dark-panel .check-list li {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
}

.dark-panel .info-card strong {
  color: var(--ink);
}

.dark-panel .info-card p {
  color: var(--ink-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.related-card {
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefa, #ffe7a9);
  box-shadow: var(--soft-shadow);
  padding: 15px;
}

.related-card h3 {
  color: var(--ink);
  margin-bottom: 8px;
}

.related-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: var(--fw-copy);
  line-height: 1.5;
}

.related-card span {
  color: var(--royal);
  font-weight: var(--fw-title);
}

.callout {
  border: 3px solid #fff;
  border-radius: 17px;
  background: linear-gradient(180deg, #dff7ff, #bcedff);
  color: var(--ink-soft);
  font-weight: var(--fw-copy-strong);
  line-height: 1.55;
  margin-top: 14px;
  padding: 15px;
  box-shadow: inset 0 0 0 2px rgba(36, 74, 168, 0.08);
}

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

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

.step-card {
  border: 4px solid #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 201, 74, 0.20), transparent 8rem),
    var(--paper);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.step-card header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(180deg, var(--midnight-2), var(--midnight));
  color: #fff;
}

.step-card header b {
  display: grid;
  min-height: 54px;
  place-items: center;
  background: linear-gradient(180deg, #ffdd55, #ef8d22);
  color: #5a2f13;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: var(--fw-title);
}

.step-card header h3 {
  color: #fff;
  padding: 12px 14px;
}

.step-card .step-body {
  padding: 16px;
}

.step-card p,
.step-card li {
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
  line-height: 1.55;
}

.step-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.media-frame {
  display: block;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 2px rgba(36, 74, 168, 0.08);
  margin-top: 14px;
}

.media-frame img {
  width: 100%;
}

.mini-note {
  border: 2px solid rgba(207, 123, 32, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  margin-top: 12px;
  padding: 12px;
}

.official-update-body h3,
.official-update-body p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-top: 16px;
}

.tool-panel {
  border: 3px solid #f5d787;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  padding: 16px;
}

.tool-panel h3 {
  margin-bottom: 10px;
}

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

.form-field label,
.form-field > span,
.tool-label {
  display: block;
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea,
.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  border: 2px solid rgba(36, 74, 168, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: var(--fw-copy-strong);
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.tool-panel input:focus,
.tool-panel select:focus,
.tool-panel textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.22);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.tool-actions button,
.tool-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: var(--fw-title);
  padding: 11px 15px;
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.18);
}

.tool-primary {
  background: linear-gradient(180deg, #ffdd55, #ef8d22);
  color: #552f12;
}

.tool-secondary {
  background: linear-gradient(180deg, #ffffff, #dff7ff);
  color: var(--royal);
}

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

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

.result-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-card {
  border: 3px solid #fff;
  border-radius: 17px;
  background: linear-gradient(180deg, #fffefa, #ffe7a9);
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.14);
  padding: 14px;
}

.result-card span {
  display: block;
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 4vw, 2rem);
  font-weight: var(--fw-title);
  line-height: 1.05;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.result-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: var(--fw-copy);
  line-height: 1.35;
  margin-top: 6px;
}

.star-visual {
  border: 2px dashed rgba(207, 123, 32, 0.36);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: var(--fw-copy-strong);
  margin-top: 10px;
  min-height: 48px;
  padding: 11px 12px;
}

.star-visual b {
  color: var(--ink);
}

.inline-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.reference-details {
  margin-top: 16px;
}

.reference-details summary {
  align-items: center;
  background: linear-gradient(180deg, #ffdd55, #ef8d22);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.18);
  color: #552f12;
  cursor: pointer;
  display: inline-flex;
  font-weight: var(--fw-title);
  gap: 8px;
  list-style: none;
  padding: 11px 15px;
}

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

.reference-details summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: var(--fw-label);
}

.reference-details[open] summary::after {
  content: "-";
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
}

.game-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  border: 3px solid var(--midnight);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.game-table th,
.game-table td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.game-table th {
  background: var(--midnight);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-table td {
  border-top: 2px solid #f0dfb4;
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
}

.game-table td:first-child {
  color: var(--ink);
  font-weight: var(--fw-label);
}

.v3-event-table {
  min-width: min(760px, 100%);
}

.v3-event-value {
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: var(--fw-label);
}

.v3-muted {
  color: rgba(89, 98, 123, 0.62);
  font-weight: var(--fw-copy);
}

.v3-event-group {
  display: grid;
  gap: 16px;
}

.v3-event-group + .v3-event-group {
  margin-top: 16px;
}

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

.gear-filter-panel {
  border: 3px solid #f5d787;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
}

.gear-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gear-filter-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(36, 74, 168, 0.14);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: var(--fw-label);
  gap: 6px;
  padding: 8px 12px;
}

.gear-filter-btn span {
  background: #eef7ff;
  border-radius: 999px;
  color: var(--royal);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-width: 1.35rem;
  justify-content: center;
  padding: 2px 6px;
}

.gear-filter-btn[data-active="true"] {
  background: var(--midnight);
  border-color: var(--midnight);
  color: #fff;
}

.gear-filter-btn[data-active="true"] span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
}

.gear-faction-section {
  margin-top: 24px;
}

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

.gear-hero-card {
  align-items: flex-start;
  background: linear-gradient(180deg, #fffefa, #ffe9b5);
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.14);
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
  text-decoration: none;
}

.gear-hero-card:hover {
  transform: translateY(-1px);
}

.gear-portrait {
  align-items: center;
  background: var(--midnight);
  border-radius: 14px;
  color: var(--gold);
  display: inline-flex;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.gear-portrait img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gear-portrait b {
  display: none;
}

.gear-portrait.missing b,
.gear-portrait:not(:has(img)) b {
  display: block;
}

.gear-card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.gear-card-body > strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.05;
}

.gear-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gear-card-meta em {
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(36, 74, 168, 0.14);
  border-radius: 999px;
  color: var(--royal);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: var(--fw-label);
  padding: 4px 8px;
}

.gear-card-note {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: var(--fw-copy);
  line-height: 1.35;
}

.gear-card-note b {
  color: var(--ink);
}

.v3-hero-page {
  display: block;
}

.v3-hero-page .th-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.v3-hero-page .th-topbar {
  top: 88px;
  border: 4px solid #fff;
  border-radius: 22px;
  background: rgba(255, 249, 232, 0.94);
  box-shadow: var(--soft-shadow);
  margin-bottom: 16px;
  overflow: visible;
}

.v3-hero-page .th-topbarInner {
  max-width: 100%;
}

.v3-hero-page .th-profileNav {
  margin-top: 18px;
}

.v3-hero-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.v3-hero-card-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v3-hero-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefa, #ffe9b5);
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.14);
  color: inherit;
  padding: 10px;
}

.v3-hero-card:hover {
  transform: translateY(-1px);
}

.v3-hero-card img {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  background: var(--midnight);
  object-fit: cover;
}

.v3-hero-card::before {
  display: none;
}

.v3-hero-card.is-missing-image::before {
  content: attr(data-initial);
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.84);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--midnight-2), var(--midnight));
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-display);
}

.v3-hero-card__name,
.v3-hero-card__meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v3-hero-card__name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-title);
  line-height: 1.1;
  white-space: nowrap;
}

.v3-hero-card__meta {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: var(--fw-copy);
  line-height: 1.35;
  margin-top: 4px;
}

.v3-hero-card--mythic {
  background: linear-gradient(180deg, #fff5f2, #ffd5c8);
}

.v3-hero-card--legendary {
  background: linear-gradient(180deg, #fffefa, #ffe7a9);
}

.v3-hero-card--epic {
  background: linear-gradient(180deg, #fbf5ff, #ead7ff);
}

.v3-hero-card--rare {
  background: linear-gradient(180deg, #f2fbff, #ccefff);
}

.v3-hero-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.v3-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.v3-hero-page .th-space,
.v3-hero-page .th-spaceSm {
  display: grid;
  gap: 16px;
}

.v3-hero-page .th-spaceSm {
  gap: 10px;
}

.v3-hero-page .th-gapLg {
  gap: 18px;
}

.v3-hero-page .th-profileNav,
.v3-hero-page .th-topbarInner,
.v3-hero-page .th-heroHeaderTitleRow,
.v3-hero-page .th-metaRow,
.v3-hero-page .th-uwRow,
.v3-hero-page .th-pillRow,
.v3-hero-page .th-sectionNav,
.v3-hero-page .th-summaryIntro,
.v3-hero-page .th-summaryLinks,
.v3-hero-page .th-calloutRow,
.v3-hero-page .th-portraits,
.v3-hero-page .th-titleRow,
.v3-hero-page .th-formRow,
.v3-hero-page .th-tagRow,
.v3-hero-page .th-tabsBar,
.v3-hero-page .th-bondRow,
.v3-hero-page .th-bondHeroes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.v3-hero-page .th-profileNav,
.v3-hero-page .th-topbarInner,
.v3-hero-page .th-summaryIntro,
.v3-hero-page .th-titleRow {
  justify-content: space-between;
}

.v3-hero-page .th-card,
.v3-hero-page .th-heroHeader {
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 215, 255, 0.18), transparent 10rem),
    var(--paper);
  box-shadow: var(--soft-shadow);
  padding: clamp(18px, 3vw, 24px);
}

.v3-hero-page .th-card {
  display: grid;
  gap: 14px;
}

.v3-hero-page .th-accent {
  height: 5px;
  border-radius: 999px;
  margin-bottom: 2px;
}

.v3-hero-page .th-accent--summary {
  background: linear-gradient(90deg, var(--royal), var(--teal));
}

.v3-hero-page .th-accent--gear {
  background: linear-gradient(90deg, var(--grass-dark), var(--grass));
}

.v3-hero-page .th-accent--skills {
  background: linear-gradient(90deg, var(--teal), var(--sky));
}

.v3-hero-page .th-accent--queues {
  background: linear-gradient(90deg, var(--royal), var(--sky));
}

.v3-hero-page .th-accent--upgrades {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

.v3-hero-page .th-accent--details {
  background: linear-gradient(90deg, var(--midnight), var(--royal));
}

.v3-hero-page .th-heroHeader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  background:
    radial-gradient(circle at 18% 24%, rgba(122, 215, 255, 0.30), transparent 9rem),
    linear-gradient(135deg, #e8fbff, #fff1bd);
}

.v3-hero-page .th-heroHeaderImg {
  width: 132px;
  height: 132px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: var(--midnight);
  box-shadow: 0 8px 0 rgba(86, 49, 23, 0.16);
  object-fit: cover;
}

.v3-hero-page .th-heroName {
  color: #182047;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-display);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.v3-hero-page .th-cardTitle {
  color: #182047;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  font-weight: var(--fw-title);
  line-height: 1.1;
  margin: 0;
}

.v3-hero-page .th-h3,
.v3-hero-page .th-subTitle {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: var(--fw-title);
  line-height: 1.2;
  margin: 0;
}

.v3-hero-page .th-pill,
.v3-hero-page .th-chip,
.v3-hero-page .th-rarity,
.v3-hero-page .th-tag,
.v3-hero-page .th-slotPill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 2px solid rgba(36, 74, 168, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: var(--fw-label);
  line-height: 1.2;
  padding: 6px 10px;
}

.v3-hero-page .th-chip,
.v3-hero-page .th-chip--nature,
.v3-hero-page .th-chip--league,
.v3-hero-page .th-chip--horde {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.v3-hero-page .th-chip {
  background: var(--royal);
}

.v3-hero-page .th-chip--nature {
  background: var(--grass-dark);
}

.v3-hero-page .th-chip--league {
  background: var(--royal);
}

.v3-hero-page .th-chip--horde {
  background: var(--danger);
}

.v3-hero-page .th-rarity--mythic {
  border-color: rgba(217, 82, 50, 0.30);
  background: #ffe1d8;
  color: #8d2f1f;
}

.v3-hero-page .th-rarity--legendary {
  border-color: rgba(207, 123, 32, 0.32);
  background: #ffefb4;
  color: #774211;
}

.v3-hero-page .th-rarity--epic {
  border-color: rgba(98, 72, 178, 0.28);
  background: #eadcff;
  color: #46316f;
}

.v3-hero-page .th-rarity--rare {
  border-color: rgba(36, 74, 168, 0.24);
  background: #dff7ff;
  color: var(--royal);
}

.v3-hero-page .th-muted,
.v3-hero-page .th-small,
.v3-hero-page .th-summaryText,
.v3-hero-page .th-skillDesc,
.v3-hero-page .th-gearDesc,
.v3-hero-page .th-skinNote,
.v3-hero-page .th-card p,
.v3-hero-page .th-card li {
  color: var(--ink-soft);
  font-weight: var(--fw-copy);
  line-height: 1.56;
}

.v3-hero-page .th-small {
  font-size: 0.9rem;
}

.v3-hero-page .th-label,
.v3-hero-page .th-rowLabel,
.v3-hero-page .th-lineupTitle,
.v3-hero-page .th-summonTitle,
.v3-hero-page .th-gearName,
.v3-hero-page .th-factValue {
  color: var(--ink);
  font-weight: var(--fw-label);
}

.v3-hero-page .th-btn,
.v3-hero-page .th-summaryLink,
.v3-hero-page .th-link,
.v3-hero-page .th-tabBtn {
  color: var(--royal);
  font-weight: var(--fw-title);
  text-decoration: none;
}

.v3-hero-page .th-btn,
.v3-hero-page .th-summaryLink,
.v3-hero-page .th-tab,
.v3-hero-page .th-tabBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dff7ff);
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.12);
  cursor: pointer;
  min-height: 38px;
  padding: 8px 12px;
}

.v3-hero-page .th-btn--sm {
  min-height: 34px;
  padding: 6px 10px;
}

.v3-hero-page .th-btn--ghost,
.v3-hero-page .th-btn--soft {
  background: rgba(255, 255, 255, 0.72);
}

.v3-hero-page .th-btn:hover,
.v3-hero-page .th-summaryLink:hover,
.v3-hero-page .th-tab:hover,
.v3-hero-page .th-tabBtn:hover,
.v3-hero-page .th-tab.is-active,
.v3-hero-page .th-tabBtn.is-active {
  background: linear-gradient(180deg, #fff7c6, #ffd968);
  color: #633917;
}

.v3-hero-page .th-sectionNav {
  position: sticky;
  top: 88px;
  z-index: 15;
  border: 4px solid #fff;
  border-radius: 22px;
  background: rgba(255, 249, 232, 0.92);
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.v3-hero-page .th-topbar {
  position: sticky;
  z-index: 16;
}

.v3-hero-page .th-searchRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(520px, 100%);
}

.v3-hero-page .th-searchInput,
.v3-hero-page .th-field select {
  width: 100%;
  border: 2px solid rgba(36, 74, 168, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: var(--fw-copy-strong);
  min-height: 42px;
  outline: none;
  padding: 10px 12px;
}

.v3-hero-page .th-searchInput:focus,
.v3-hero-page .th-field select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(255, 201, 74, 0.22);
}

.v3-hero-page .th-searchResults {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(420px, 100%);
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--panel-shadow);
}

.v3-hero-page .th-searchItem {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 10px 12px;
}

.v3-hero-page .th-searchItem:hover,
.v3-hero-page .th-searchItem.is-active {
  background: #fff2bd;
}

.v3-hero-page .th-searchAvatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.v3-hero-page .th-searchItemName {
  color: var(--ink);
  font-weight: var(--fw-label);
}

.v3-hero-page .th-searchItemSub {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.v3-hero-page .th-summaryGrid,
.v3-hero-page .th-grid2,
.v3-hero-page .th-factGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v3-hero-page .th-summaryCard,
.v3-hero-page .th-subCard,
.v3-hero-page .th-skillCard,
.v3-hero-page .th-callout,
.v3-hero-page .th-lineupCard,
.v3-hero-page .th-summonCard,
.v3-hero-page .th-factItem,
.v3-hero-page .th-details,
.v3-hero-page .th-rowBlock,
.v3-hero-page .th-bondRow {
  border: 3px solid #fff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.10);
  padding: 14px;
}

.v3-hero-page .th-summaryLabel,
.v3-hero-page .th-calloutTitle,
.v3-hero-page .th-factLabel,
.v3-hero-page .th-summaryEyebrow,
.v3-hero-page .th-fieldLabel {
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.v3-hero-page .th-summaryValue,
.v3-hero-page .th-levelCapResult {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: var(--fw-title);
  line-height: 1.08;
  margin-top: 5px;
}

.v3-hero-page .th-gearRow {
  display: grid;
  grid-template-columns: minmax(132px, 190px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 3px solid #fff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
}

.v3-hero-page .th-gearImg {
  width: 100%;
  max-height: 76px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px;
}

.v3-hero-page .th-skillHeader,
.v3-hero-page .th-skinList,
.v3-hero-page .th-bondList {
  display: grid;
  gap: 10px;
}

.v3-hero-page .th-tag {
  border-color: rgba(0, 169, 150, 0.20);
  background: rgba(0, 169, 150, 0.10);
  color: #14685f;
  font-size: 0.72rem;
  text-transform: capitalize;
}

.v3-hero-page .th-pill--active {
  background: rgba(95, 191, 99, 0.15);
  color: #226c38;
}

.v3-hero-page .th-pill--passive {
  background: rgba(36, 74, 168, 0.12);
  color: var(--royal);
}

.v3-hero-page .th-pill--ultimate {
  background: rgba(255, 201, 74, 0.28);
  color: #774211;
}

.v3-hero-page .th-details {
  padding: 0;
}

.v3-hero-page .th-details > summary {
  cursor: pointer;
  font-weight: var(--fw-title);
  list-style: none;
  padding: 12px 14px;
}

.v3-hero-page .th-details > summary::-webkit-details-marker {
  display: none;
}

.v3-hero-page .th-details > summary::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
}

.v3-hero-page .th-details[open] > summary::after {
  content: "-";
}

.v3-hero-page .th-details > *:not(summary) {
  margin: 0 14px 14px;
}

.v3-hero-page .th-starSuggestList,
.v3-hero-page .th-starList,
.v3-hero-page .th-breakdownList {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.v3-hero-page .th-portraitImg,
.v3-hero-page .th-searchAvatar {
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: var(--midnight);
  box-shadow: 0 3px 0 rgba(86, 49, 23, 0.14);
}

.v3-hero-page .th-portraitItem,
.v3-hero-page .th-bondHero {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-width: 86px;
}

.v3-hero-page .th-portraitLink {
  display: inline-flex;
  border-radius: 14px;
}

.v3-hero-page .th-portraitImg {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}

.v3-hero-page .th-portraitName {
  max-width: 86px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: var(--fw-copy-strong);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-hero-page .th-arrow,
.v3-hero-page .th-bondPlus,
.v3-hero-page .th-bondEquals {
  color: var(--gold-dark);
  font-weight: var(--fw-title);
}

.v3-hero-page .th-rowBlock--front {
  background: rgba(217, 82, 50, 0.08);
}

.v3-hero-page .th-rowBlock--mid {
  background: rgba(36, 74, 168, 0.08);
}

.v3-hero-page .th-rowBlock--back {
  background: rgba(95, 191, 99, 0.10);
}

.v3-hero-page .th-subCard--uw,
.v3-hero-page .th-subCard--order,
.v3-hero-page .th-subCard--gray {
  background: rgba(255, 255, 255, 0.58);
}

.v3-hero-page .th-tabsBar {
  margin: 10px 0 12px;
}

.v3-hero-page .th-tabPanel {
  display: none;
}

.v3-hero-page .th-tabPanel.is-active {
  display: block;
}

.v3-hero-page .th-field {
  display: grid;
  gap: 6px;
}

.v3-hero-page .th-formRow {
  align-items: end;
}

.v3-hero-page .th-hr {
  width: 100%;
  border: 0;
  border-top: 3px dashed rgba(207, 123, 32, 0.28);
  margin: 8px 0;
}

.v3-hero-page .th-bondValue {
  border: 2px solid rgba(36, 74, 168, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-weight: var(--fw-label);
  padding: 7px 11px;
}

.v3-hero-page .th-bondMeta {
  color: var(--ink-soft);
  display: block;
  font-size: 0.78rem;
  font-weight: var(--fw-copy);
  margin-top: 4px;
}

.v3-hero-page .th-skinItem {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.v3-hero-page .th-alert {
  border: 3px solid #fff;
  border-radius: 18px;
  background: #ffe1d8;
  color: #8d2f1f;
  font-weight: var(--fw-label);
  padding: 14px;
}

.v3-hero-page .th-calloutHint,
.v3-hero-page .th-skillMeta {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: var(--fw-copy);
}

.v3-hero-page .th-skillName {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: var(--fw-title);
  line-height: 1.16;
}

.v3-hero-page .th-star {
  color: var(--gold-dark);
  font-weight: var(--fw-title);
}

.v3-hero-page .th-bondTextRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .v3-hero-page .th-heroHeader,
  .v3-hero-page .th-summaryGrid,
  .v3-hero-page .th-grid2,
  .v3-hero-page .th-factGrid,
  .v3-hero-page .th-gearRow {
    grid-template-columns: 1fr;
  }

  .v3-hero-page .th-topbar,
  .v3-hero-page .th-sectionNav {
    position: static;
  }

  .v3-hero-page .th-topbarInner,
  .v3-hero-page .th-profileNav {
    align-items: stretch;
  }

  .v3-hero-page .th-topbarSearchWrap,
  .v3-hero-page .th-searchRow {
    width: 100%;
  }

  .v3-hero-page .th-searchResults {
    left: 0;
    right: auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .v3-hero-page .th-heroHeaderImg {
    width: 104px;
    height: 104px;
    border-radius: 22px;
  }

  .v3-hero-page .th-searchRow {
    grid-template-columns: 1fr;
  }

  .v3-hero-page .th-card,
  .v3-hero-page .th-heroHeader {
    border-radius: 20px;
    padding: 16px;
  }
}

.v3-rbl-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.v3-rbl-flash {
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  font-weight: var(--fw-label);
  margin: 18px 0;
  padding: 14px 16px;
}

.v3-rbl-flash--ok {
  background: #e5f8dd;
  color: #245f2e;
}

.v3-rbl-flash--danger {
  background: #ffe1d8;
  color: #8d2f1f;
}

.v3-rbl-mini-stats {
  margin-top: 16px;
}

.v3-rbl-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.v3-rbl-form button:disabled,
.v3-rbl-form input:disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.68;
}

.v3-rbl-wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 16px;
  margin-top: 18px;
}

.v3-rbl-wheel-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
}

.v3-rbl-pointer {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid var(--danger);
  filter: drop-shadow(0 3px 0 rgba(86, 49, 23, 0.20));
  margin-bottom: -12px;
  position: relative;
  z-index: 2;
}

.v3-rbl-wheel-shell {
  position: relative;
  display: grid;
  width: min(100%, 380px);
  aspect-ratio: 1;
  place-items: center;
  border: 10px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #dff7ff, #fff7c6);
  box-shadow: inset 0 0 0 8px rgba(36, 74, 168, 0.10), var(--soft-shadow);
}

.v3-rbl-wheel-shell canvas {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 50%;
  transition: transform 4200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v3-rbl-wheel-badge {
  position: absolute;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--midnight-2), var(--midnight));
  box-shadow: 0 5px 0 rgba(86, 49, 23, 0.18);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.v3-rbl-status {
  color: var(--ink-soft);
  font-weight: var(--fw-copy-strong);
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.v3-rbl-entry-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.v3-rbl-entry,
.v3-rbl-empty {
  border: 2px solid rgba(36, 74, 168, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  padding: 11px 12px;
}

.v3-rbl-entry {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.v3-rbl-entry strong,
.v3-rbl-entry span,
.v3-rbl-entry b {
  display: block;
}

.v3-rbl-entry strong {
  color: var(--ink);
  font-weight: var(--fw-label);
}

.v3-rbl-entry span,
.v3-rbl-empty {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: var(--fw-copy);
}

.v3-rbl-entry b {
  color: var(--royal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.v3-rbl-winner {
  border: 3px solid #fff;
  border-radius: 18px;
  background: linear-gradient(180deg, #e5f8dd, #c8f0b7);
  box-shadow: 0 4px 0 rgba(86, 49, 23, 0.12);
  margin-top: 16px;
  padding: 15px;
}

.v3-rbl-winner span {
  color: #245f2e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--fw-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v3-rbl-winner strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: var(--fw-title);
  line-height: 1.05;
  margin-top: 6px;
}

.v3-rbl-winner p {
  color: #245f2e;
  font-weight: var(--fw-copy-strong);
  margin: 6px 0 0;
}

@media (max-width: 980px) {
  .v3-rbl-layout,
  .v3-rbl-wheel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .v3-rbl-wheel-shell {
    border-width: 7px;
  }

  .v3-rbl-wheel-badge {
    width: 72px;
    height: 72px;
    font-size: 0.68rem;
  }
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 4px solid var(--gold-dark);
  background: var(--midnight);
  color: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer a {
  color: var(--gold);
  font-weight: var(--fw-label);
}

.v3-ad {
  width: var(--page);
  margin: 24px auto;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
  padding: 12px;
}

.v3-ad--footer {
  margin: 24px auto 0;
  transform: none;
}

@media (max-width: 1080px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .game-nav {
    overflow: visible;
  }

  .v3-nav-list {
    justify-content: flex-start;
    min-width: 0;
    padding-bottom: 2px;
  }

  .v3-nav-link {
    font-size: 0.84rem;
    padding: 8px 9px;
  }

  .top-actions {
    display: none;
  }

  .v3-mobile-actions {
    display: flex;
  }

  .hero-grid,
  .guide-stage,
  .split-zone {
    grid-template-columns: 1fr;
  }

  .quest-grid,
  .info-grid,
  .resource-flow,
  .related-grid,
  .v3-hero-card-grid,
  .v3-hero-card-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    padding: 10px 12px;
  }

  .v3-brand-mark {
    width: 62px;
    height: 46px;
    border-radius: 14px;
  }

  .v3-brand-mark img {
    width: 52px;
    max-height: 38px;
  }

  .v3-nav-item--game-guides .v3-flyout {
    top: 92px;
    width: min(620px, calc(100vw - 24px));
  }

  .v3-nav-item--game-guides .v3-flyout ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .toc-board {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100% - 20px, 1180px);
  }

  .game-topbar {
    margin-top: 10px;
  }

  .game-nav {
    display: none;
  }

  .topbar-inner {
    display: flex;
    justify-content: space-between;
  }

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

  .v3-brand-mark img {
    width: 48px;
    max-height: 34px;
  }

  .hero-stage,
  .parchment,
  .chapter,
  .step-card {
    border-radius: 20px;
  }

  .hero-grid,
  .guide-stage {
    padding: 18px;
  }

  .quest-grid,
  .stat-ribbon,
  .info-grid,
  .resource-flow,
  .related-grid,
  .check-columns,
  .step-grid,
  .v3-stage-grid,
  .code-grid,
  .tool-grid,
  .field-grid,
  .result-grid,
  .inline-tool,
  .gear-hero-grid,
  .v3-hero-card-grid,
  .v3-hero-card-grid--featured,
  .v3-hero-filter {
    grid-template-columns: 1fr;
  }

  .update-card,
  .priority-item,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .chapter-head {
    grid-template-columns: 1fr;
  }

  .chapter-number {
    justify-content: start;
    padding: 10px 16px;
  }
}
