/* Wildgrowth — Battle Royale and Extraction pages. */
.theme-wild > main > .wild-br:first-child, .theme-wild > main > nase-extraction:first-child { padding-top: 0; }

/* ---------- inner page hero ---------- */
.wild-page-hero { position: relative; min-height: clamp(560px, 86svh, 1040px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.wild-page-hero > .wild-picture { position: absolute; inset: 0; z-index: -2; }
.wild-page-hero > .wild-picture img { animation: wild-drift 18s ease-out both; }
.wild-page-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 18, 14, .6) 0%, rgba(11, 18, 14, 0) 26%), linear-gradient(90deg, rgba(11, 18, 14, .8) 0%, rgba(11, 18, 14, .3) 50%, rgba(11, 18, 14, 0) 75%), linear-gradient(0deg, var(--w-bg) 0%, rgba(11, 18, 14, .4) 30%, rgba(11, 18, 14, 0) 55%); }
.wild-page-hero-body { padding-top: 150px; }
.wild-page-hero-foot { padding-block: 40px 30px; }
.wild-link-btn { background: none; border: 0; border-bottom: 1px solid var(--w-terra); padding: 0 0 2px; font: 600 15px/1.4 var(--w-body); color: var(--w-ink); cursor: pointer; }
.wild-link-btn:hover { color: var(--w-terra-2); }

/* formats */
.wild-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 14px; padding-block: 10px 0; }
.wild-format { background: var(--w-bg-1); border: 1px solid var(--w-line); border-radius: var(--w-radius); padding: 24px 26px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: baseline; color: var(--w-ink); text-decoration: none; position: relative; }
.wild-format-name { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--w-terra); margin-bottom: 10px; }
.wild-format strong { font: 700 64px/0.9 var(--w-display); }
.wild-format small { color: var(--w-muted); font-size: 13px; }
.wild-format p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--w-ink-2); font-size: 15px; }
.wild-format-link { background: var(--w-sand); color: var(--w-sand-ink); border-color: transparent; transition: transform .2s, background .2s; }
.wild-format-link:hover { background: #fff8e8; transform: translateY(-2px); }
.wild-format-link .wild-format-name { color: var(--w-terra-deep); }
.wild-format-link b { grid-column: 1 / -1; font: 700 34px/1 var(--w-display); text-transform: uppercase; }
.wild-format-link p { color: var(--w-sand-muted); }
.wild-format-link i { position: absolute; top: 22px; right: 24px; font-style: normal; font-weight: 700; color: var(--w-terra-deep); }

/* match stages + system tabs */
.wild-phase-tabs, .wild-system-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.wild-phase-tabs button, .wild-system-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--w-line-2); background: transparent; color: var(--w-ink-2); font: 600 15px/1 var(--w-body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.wild-phase-tabs button span { font-size: 12px; color: var(--w-muted); letter-spacing: .08em; }
.wild-phase-tabs button:hover, .wild-system-tabs button:hover { border-color: var(--w-ink-2); color: var(--w-ink); }
.wild-phase-tabs [aria-pressed="true"], .wild-system-tabs [aria-pressed="true"] { background: var(--w-ink); color: var(--w-bg); border-color: var(--w-ink); }
.wild-phase-tabs [aria-pressed="true"] span { color: var(--w-terra-deep); }
.wild-system-tabs svg { width: 20px; height: 20px; color: var(--w-terra); }
.wild-system-tabs [aria-pressed="true"] svg { color: var(--w-terra-deep); }
.wild-phase-view { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); background: var(--w-bg-1); border: 1px solid var(--w-line); border-radius: var(--w-radius); overflow: hidden; animation: wild-fade .45s ease; }
.wild-phase-media { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 16 / 9; display: block; }
.wild-phase-media .wild-picture { height: 100%; }
.wild-phase-media:hover img { transform: scale(1.03); }
.wild-phase-copy { padding: clamp(26px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.wild-phase-n { font: 700 72px/1 var(--w-display); color: var(--w-terra); margin-bottom: 14px; }
.wild-phase-n small { font-size: 18px; color: var(--w-muted); margin-left: 6px; }
.wild-phase-copy h3, .wild-topic-copy h3 { font: 700 clamp(32px, 2.8vw, 50px)/.95 var(--w-display); text-transform: uppercase; margin: 0 0 14px; }
.wild-phase-copy p:not(.wild-eyebrow) { color: var(--w-ink-2); margin: 0 0 22px; }
.wild-phase-copy .wild-eyebrow { margin-bottom: 8px; }
.wild-phase-nodes { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.wild-phase-nodes li { display: flex; align-items: center; gap: 12px; color: var(--w-ink); font-size: 15px; border-top: 1px solid var(--w-line); padding-top: 10px; }
.wild-phase-nodes svg { width: 22px; height: 22px; color: var(--w-terra); flex: none; }
.wild-phase-copy .wild-link-btn { align-self: flex-start; }

/* systems spotlight */
.wild-systems { background: var(--w-bg-1); }
.wild-system-spotlight { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 3vw, 56px); align-items: center; animation: wild-fade .45s ease; padding-bottom: 28px; }
.wild-topic-media { position: relative; }
.wild-topic-media button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--w-radius); overflow: hidden; display: block; width: 100%; }
.wild-topic-main { aspect-ratio: 16 / 10; }
.wild-topic-side { position: absolute; right: -14px; bottom: -28px; width: 36% !important; aspect-ratio: 16 / 10; border: 4px solid var(--w-bg-1) !important; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.wild-topic-media .wild-picture { height: 100%; }
.wild-topic-media button:hover img { transform: scale(1.04); }
.wild-topic-lede { color: var(--w-ink-2); font-size: 17px; margin: 0 0 18px; }
.wild-topic-copy ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.wild-topic-copy li { padding-left: 22px; position: relative; color: var(--w-ink); }
.wild-topic-copy li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--w-terra); }
.wild-topic-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.wild-topic-facts div { border-top: 1px solid var(--w-line-2); padding-top: 10px; }
.wild-topic-facts dt { font: 700 34px/1 var(--w-display); color: var(--w-terra); }
.wild-topic-facts dd { margin: 6px 0 0; color: var(--w-muted); font-size: 13px; }
.wild-topic-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* mechanics reference */
.wild-reference .wild-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.theme-wild .wild-reference-box { border: 1px solid var(--w-line-2); border-radius: var(--w-radius); background: var(--w-bg-1); overflow: hidden; margin: 0; }
.theme-wild .wild-reference-box summary { padding: 26px 28px; }
.theme-wild .wild-reference-box summary b { font: 700 34px/1 var(--w-display); text-transform: uppercase; }
.theme-wild .reference-categories button { border-radius: var(--w-radius-sm); }
.theme-wild .wild-controls { border-radius: var(--w-radius); border: 1px solid var(--w-line-2); background: var(--w-bg-1); padding: 26px 28px; display: flex; align-items: center; gap: 14px; color: var(--w-ink); font: 600 16px var(--w-body); cursor: pointer; margin: 0; }
.theme-wild .wild-controls svg { width: 24px; height: 24px; color: var(--w-terra); }
.theme-wild .br-detail-dialog { border-radius: var(--w-radius); border: 1px solid var(--w-line-2); background: var(--w-bg-1); color: var(--w-ink); }

@media (max-width: 1180px) { .wild-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .wild-phase-view, .wild-system-spotlight { grid-template-columns: 1fr; }
  .wild-topic-side { right: 10px; bottom: -20px; width: 42% !important; }
  .wild-topic-copy { padding-top: 26px; }
  .wild-reference .wild-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wild-formats { grid-template-columns: 1fr; }
  .wild-phase-tabs, .wild-system-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--w-side)); padding-inline: var(--w-side); }
  .wild-phase-tabs button, .wild-system-tabs button { flex: none; }
  .wild-topic-facts dt { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .wild-page-hero > .wild-picture img { animation: none; } }

.wild-reference { padding-block: 24px 90px; }
