/* IRONCORE adventure presentation. Load after the feature styles.
   Panels keep their existing actions, prices, progress and navigation contracts. */
.adventure-shell.adv-world[data-adventure-d1] {
  --ap-panel: #1c272c;
  --ap-panel-deep: #172126;
  --ap-edge: #73806d55;
  --ap-gold: #dfc58e;
  --ap-muted: #aebbb9;
}
.adventure-shell.adv-world[data-adventure-d1] .adv-content {
  scrollbar-width: thin;
  scrollbar-color: #73806d66 transparent;
  scroll-padding-block: 16px 24px;
}
.adventure-shell.adv-world[data-adventure-d1]:not([data-adv-panel="ruins"]) .adv-subpage {
  padding: 20px 14px 24px;
}
.adventure-shell.adv-world[data-adventure-d1]:not([data-adv-panel="ruins"]) .adv-subpage > h2,
.adventure-shell.adv-world[data-adventure-d1] :is(.adv-inventory-heading, .adv-exp-title, .adv-clan-section-title) h2 {
  margin: 0 0 10px;
  font: 700 25px/1.2 Georgia, serif;
  letter-spacing: -.35px;
}
.adventure-shell.adv-world[data-adventure-d1] :is(.adv-inventory, .adv-expeditions, .adv-clans, .adv-market, .adv-sets, .companion-page) > p {
  margin: 0 0 16px;
  font: 13px/1.55 system-ui, sans-serif;
  color: var(--ap-muted);
}
.adventure-shell.adv-world[data-adventure-d1] :is(.adv-inventory-selection, .adv-merchant-selected, .supply-selected-offer, .companion-detail, .adv-market-confirm) {
  scroll-margin-block: 14px 24px;
}
.adventure-shell.adv-world[data-adventure-d1] :is(.adv-gold, .adv-secondary) {
  touch-action: manipulation;
  overflow-wrap: anywhere;
}
.adventure-shell.adv-world[data-adventure-d1] :is(.adv-inventory-filters, .adv-rank-tabs, .supply-tabs) > button {
  font-weight: 600;
  border-radius: 11px;
}

/* Home: a compact, illustrated destination grid and consistently inset utilities. */
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-content > .adv-home-mode {
  width: calc(100% - 28px);
  min-height: 88px;
  margin: 14px;
  grid-template-columns: 80px minmax(0, 1fr) 16px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-content > .adv-home-mode .adv-mode-art {
  min-height: 88px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] :is(.adv-home-modes, .adv-home-utilities) {
  margin: 24px 14px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > h2,
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] [data-campaign-home-slot] {
  grid-column: 1 / -1;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] :is(.adv-home-modes, .adv-home-utilities) > h2 {
  margin: 0 0 3px;
  font: 700 19px/1.3 Georgia, serif;
  letter-spacing: .1px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-utilities > h2 { margin-bottom: 12px; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  grid-template-rows: 82px minmax(92px, auto);
  align-items: stretch;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-color: var(--ap-edge);
  border-radius: 15px;
  background: linear-gradient(145deg, #24332f, #172126 80%);
  box-shadow: inset 0 1px #e7dfbe08, 0 4px 12px #0002;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode > .adv-mode-art {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
  width: 100%;
  box-shadow: inset 0 -18px 18px -13px #172126;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy {
  grid-column: 1;
  grid-row: 2;
  align-content: start;
  gap: 6px;
  padding: 10px 0 12px 11px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > b {
  font: 700 14px/1.3 system-ui, sans-serif;
  color: #f0ebdc;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > small {
  font: 11px/1.4 system-ui, sans-serif;
  color: #b2c0b9;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-arrow {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding-top: 10px;
  padding-right: 4px;
  font: 22px/1 system-ui, sans-serif;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] {
  grid-column: 1 / -1;
  grid-template-columns: 38% minmax(0, 1fr) 20px;
  grid-template-rows: minmax(126px, auto);
  border-color: #b99d665f;
  background: linear-gradient(115deg, #263b31, #1b2828);
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] > .adv-mode-art {
  grid-column: 1;
  box-shadow: inset -15px 0 20px -16px #1b2828;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] .adv-mode-copy {
  grid-column: 2;
  grid-row: 1;
  align-content: center;
  padding: 14px 0 14px 12px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] .adv-mode-copy > b { font: 700 18px/1.2 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] .adv-mode-arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  padding: 0;
}
/* The campaign follows the featured ruins in DOM order, then the four raid cards.
   It spans both columns so an optional campaign never leaves a half-empty row. */
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode[data-campaign-open] {
  grid-column: 1 / -1;
  grid-template-columns: clamp(84px, 24vw, 112px) minmax(0, 1fr) 20px;
  grid-template-rows: minmax(96px, auto);
  background: linear-gradient(115deg, #26352f, #182526);
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode[data-campaign-open] > .adv-mode-art {
  grid-column: 1;
  grid-row: 1;
  box-shadow: inset -15px 0 20px -16px #182526;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode[data-campaign-open] > .adv-mode-copy {
  grid-column: 2;
  grid-row: 1;
  align-content: center;
  padding: 12px;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode[data-campaign-open] .adv-mode-copy > b { font-size: 15px; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode[data-campaign-open] > .adv-mode-arrow {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  padding: 0;
}
.adventure-shell.adv-world[data-adventure-d1] .adv-home-links > button {
  padding: 13px 11px;
  min-height: 90px;
  border-color: var(--ap-edge);
}
.adventure-shell.adv-world[data-adventure-d1] .adv-home-links b { font-size: 13px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-home-links small { font-size: 11px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-home-pet .companion-summary { padding: 12px; border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-home-pet .companion-summary em { font-style: normal; }
.adventure-shell.adv-world[data-adventure-d1] .adv-player-avatar {
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
}
.adventure-shell.adv-world[data-adventure-d1] .adv-player-avatar > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.adventure-shell.adv-world[data-adventure-d1] .adv-player-avatar > img[hidden] { display: none; }

/* Fighter roster: complete portrait, readable traits, aligned controls. */
.adventure-shell.adv-world[data-adventure-d1] .adv-hero-stage[data-fighter]:not([data-fighter="standard"]) .adv-hero-image { object-position: center 28%; }
.adventure-shell.adv-world[data-adventure-d1] .adv-portrait-note { padding: 6px 10px; border-radius: 8px; background: #10191edb; color: #f0ddae; font: 600 11px/1.3 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="fighters"] .fighter-roster {
  gap: 14px;
  padding: 16px 14px 24px;
  max-width: 660px;
  margin-inline: auto;
}
.adventure-shell.adv-world[data-adventure-d1] .fighter-balance { font: 600 12px/1.4 system-ui, sans-serif; color: var(--ap-gold); }
.adventure-shell.adv-world[data-adventure-d1] .fighter-carousel { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 7px; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-carousel > button { min-height: 52px; background: #202e30; border-color: #82927860; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-portrait { border: 1px solid var(--ap-edge); box-shadow: 0 8px 20px #0003; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-portrait img { object-fit: contain; }
.adventure-shell.adv-world[data-adventure-d1] :is(.fighter-card, .fighter-xp) {
  padding: 16px;
  gap: 12px;
  border-color: var(--ap-edge);
  background: linear-gradient(135deg, var(--ap-panel), var(--ap-panel-deep));
}
.adventure-shell.adv-world[data-adventure-d1] .fighter-card > small,
.adventure-shell.adv-world[data-adventure-d1] .fighter-xp > small { font: 11px/1.5 system-ui, sans-serif; color: var(--ap-muted); }
.adventure-shell.adv-world[data-adventure-d1] .fighter-card h2 { font: 700 24px/1.2 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-card p { margin: 0; font: 13px/1.5 system-ui, sans-serif; color: #ced7d1; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-card dl { gap: 6px; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-card dl > div { padding: 9px 3px; background: #101b205c; border: 1px solid #71806c26; border-radius: 10px; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-card dt { color: var(--ap-muted); font-size: 11px; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-card dd { font-size: 17px; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-xp h3 { font: 700 18px/1.3 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1] .fighter-xp progress { height: 7px; border-radius: 8px; overflow: hidden; }

/* Inventory and merchants share a calm tile rhythm. */
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-heading { align-items: baseline; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-heading h2 { margin-bottom: 0; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-filters { margin: 16px 0 12px; gap: 6px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-filters > button { padding: 9px 11px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-grid { gap: 9px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-item {
  min-height: 158px;
  padding: 7px 5px 5px;
  background: linear-gradient(145deg, #263036, #141f24);
  border-radius: 13px;
}
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-item > b { margin-top: 4px; font: 600 12px/1.35 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-item > small { padding: 3px 2px; font-size: 10px; line-height: 1.4; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-item > em { padding: 6px 2px; border-radius: 7px; line-height: 1.3; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-selection { padding: 18px 14px 14px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-selection h3 { margin: 0 0 12px; font-size: 20px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-selection p { line-height: 1.55; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-selection .adv-selection-close { top: 8px; right: 8px; width: 44px; min-height: 44px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-selection > button:not(.adv-selection-close) { width: 100%; margin-top: 10px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-inventory-selection h3 { padding-right: 43px; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="merchant"] .supply-tabs { padding: 10px 14px; background: #111b20; border-bottom: 1px solid #73806d36; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="merchant"] :is(.adv-merchant-compact, .supply-compact-exchange) { padding: 18px 14px 24px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-heading { padding: 14px; margin: 0 0 12px; gap: 10px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-heading > b { max-width: 100%; overflow-wrap: anywhere; line-height: 1.6; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-tiles { gap: 8px; margin-top: 14px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-tile { min-height: 144px; padding: 10px 5px; gap: 5px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-tile small { font-size: 11px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-selected { border-radius: 14px; overflow: hidden; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-selected .adv-merchant-offer { border: 0; padding: 15px; background: transparent; }
.adventure-shell.adv-world[data-adventure-d1] .adv-merchant-selected .adv-merchant-confirm { padding: 12px; margin: 10px 0 0; }

/* Companion cards keep art generous while fitting descriptions and actions. */
.adventure-shell.adv-world[data-adventure-d1] .companion-page > header h1 { margin: 6px 0 12px; font: 700 27px/1.2 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1] .companion-page > header > small { color: var(--ap-gold); font: 10px/1.4 system-ui, sans-serif; letter-spacing: 1.4px; }
.adventure-shell.adv-world[data-adventure-d1] .companion-page > header p { font: 13px/1.55 system-ui, sans-serif; color: var(--ap-muted); }
.adventure-shell.adv-world[data-adventure-d1] .companion-choices { gap: 8px; margin: 18px 0; }
.adventure-shell.adv-world[data-adventure-d1] .companion-choice { padding: 7px 5px 12px; background: linear-gradient(145deg, #21312f, #142026); border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .companion-choice.selected { border-color: #c5ab72; box-shadow: inset 0 0 0 1px #c5ab7244; }
.adventure-shell.adv-world[data-adventure-d1] .companion-choice b { min-height: 34px; font: 650 12px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .companion-choice small { display: block; margin-top: 4px; font-size: 11px; color: var(--ap-muted); }
.adventure-shell.adv-world[data-adventure-d1] :is(.companion-detail, .companion-weekly) { padding: 16px; border-color: var(--ap-edge); background: linear-gradient(135deg, var(--ap-panel), var(--ap-panel-deep)); }
.adventure-shell.adv-world[data-adventure-d1] :is(.companion-detail, .companion-weekly) h2 { margin: 6px 0 12px; font: 700 21px/1.25 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1] :is(.companion-detail, .companion-weekly) p { margin: 12px 0; font: 13px/1.55 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .companion-price { gap: 8px; flex-wrap: wrap; padding-block: 4px; }
.adventure-shell.adv-world[data-adventure-d1] .companion-detail > .adv-gold { margin-top: 10px; font-size: 14px; }
.adventure-shell.adv-world[data-adventure-d1] .companion-weekly-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }

/* Relic raids have their own inset, trail and readable action grouping. */
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost {
  gap: 14px;
  padding: 18px 14px 24px;
  max-width: 760px;
  margin-inline: auto;
}
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] :is(.outpost-map, .outpost-card) { padding: 16px; border-color: var(--ap-edge); background: linear-gradient(135deg, var(--ap-panel), var(--ap-panel-deep)); }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map { background: radial-gradient(ellipse at 0 100%, #3b554653, transparent 70%), #1b2a2b; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map header { flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map h2 { margin: 0; font: 700 23px/1.2 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map header > strong { padding: 5px 9px; border: 1px solid #b49a5d4d; border-radius: 8px; background: #101c214d; font: 600 12px/1.3 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost p { margin: 12px 0; font: 13px/1.55 system-ui, sans-serif; color: #c3cfc9; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map ol { margin: 20px 0 2px; gap: 8px; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map li { font: 11px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-map li span { width: 32px; line-height: 32px; margin-bottom: 8px; border-color: #80947877; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-card h3 { margin: 0 0 10px; font: 700 19px/1.3 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-card > .adv-gold { width: 100%; margin-top: 4px; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-secondary { min-height: 70px; padding: 13px; border-radius: 12px; font: 600 13px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-secondary small { font-weight: 400; color: #c8d6ca; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-row { padding: 14px 0; gap: 12px; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-row:last-child { padding-bottom: 0; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-row > div { min-width: 0; font: 600 13px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-row small { font-size: 11px; font-weight: 400; }
.adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-row > button { flex: 0 0 auto; min-width: 104px; font-size: 13px; padding: 10px; }

/* Expedition, clan, market and collection surfaces. */
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-title { align-items: baseline; }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-title > span { font: 600 12px/1.4 system-ui, sans-serif; color: var(--ap-gold); }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-allowance { margin: 14px 0 18px; font-size: 12px; padding: 13px; }
.adventure-shell.adv-world[data-adventure-d1] :is(.adv-exp-detail, .adv-exp-active) { margin: 16px 0 20px; border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-banner { border-radius: 0; padding: 28px 16px 24px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-metrics > span { border: 1px solid #75806a22; border-radius: 11px; padding: 12px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-metrics b { font: 600 25px/1.2 system-ui, sans-serif; color: var(--ap-gold); }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-map { border: 0; background: transparent; }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-map > details { background: var(--ap-panel-deep); border-color: var(--ap-edge); border-radius: 13px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-map summary { padding: 14px 12px; font: 600 13px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-exp-stage-grid { padding: 0 10px 12px; gap: 7px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-section-title { margin-bottom: 14px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-section-title h2 { margin: 0; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-title h3 { font: 700 22px/1.25 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-card { margin: 14px 0; padding: 16px; border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-sections { gap: 9px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-section { min-height: 88px; padding: 13px; border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-section b { font: 650 14px/1.35 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-section small { font: 11px/1.5 system-ui, sans-serif; color: var(--ap-muted); }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-member { padding: 13px 10px; margin-top: 8px; border: 1px solid #6f806333; }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-upgrade { border-color: var(--ap-edge); background: var(--ap-panel-deep); }
.adventure-shell.adv-world[data-adventure-d1] .adv-clan-upgrade h4 { font: 650 14px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market .adv-rank-tabs { gap: 7px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market .adv-rank-tabs > button { padding-inline: 7px; min-width: 78px; font-size: 12px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-notify { font: 12px/1.5 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-filterbox { padding: 13px; border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-row > summary { padding: 13px 11px; gap: 9px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-row-name strong { font: 650 14px/1.35 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-row-price { font: 650 16px/1.35 system-ui, sans-serif; max-width: 105px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-row-body { padding: 4px 13px 14px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-market-row-body p { font-size: 12px; line-height: 1.5; }
.adventure-shell.adv-world[data-adventure-d1] .adv-set { margin: 14px 0; border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-set > summary { padding: 15px; font: 700 18px/1.3 Georgia, serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-set-grid { gap: 7px; padding: 0 10px 10px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-set-grid > article { padding: 6px 3px; border-radius: 10px; border-color: #65746444; background: #142026; }
.adventure-shell.adv-world[data-adventure-d1] .adv-set-grid b { font-size: 11px; line-height: 1.4; }
.adventure-shell.adv-world[data-adventure-d1] .adv-set-grid small { font-size: 10px; line-height: 1.4; }
.adventure-shell.adv-world[data-adventure-d1] .adv-power-row { padding: 14px 10px; gap: 10px; border-color: #7c8b752c; }
.adventure-shell.adv-world[data-adventure-d1] .adv-power-row:nth-child(even) { background: #889c7910; border-radius: 10px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-power-row > .adv-player-avatar { width: 36px; height: 36px; flex-basis: 36px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-power-row b { font: 650 13px/1.4 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-power-row > strong { color: var(--ap-gold); font: 600 16px/1.3 system-ui, sans-serif; }
.adventure-shell.adv-world[data-adventure-d1] .adv-boss-controls { border-color: var(--ap-edge); }
.adventure-shell.adv-world[data-adventure-d1] .adv-boss-loot { padding: 16px; margin-top: 16px; }
.adventure-shell.adv-world[data-adventure-d1] .adv-boss-loot h3 { margin: 0 0 12px; }

@media (max-width: 359px) {
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode { grid-template-rows: 74px minmax(100px, auto); }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] { grid-template-rows: minmax(132px, auto); grid-template-columns: 34% minmax(0, 1fr) 18px; }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > b { font-size: 13px; }
  .adventure-shell.adv-world[data-adventure-d1] .adv-home-links > button { grid-template-columns: 18px minmax(0, 1fr); padding: 11px 8px; }
  .adventure-shell.adv-world[data-adventure-d1] .adv-home-links b { font-size: 12px; }
  .adventure-shell.adv-world[data-adventure-d1] .adv-inventory-filters > button { padding-inline: 9px; }
  .adventure-shell.adv-world[data-adventure-d1] .fighter-carousel { gap: 5px; }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost-row > button { min-width: 88px; font-size: 12px; }
}
@media (min-width: 650px) {
  .adventure-shell.adv-world[data-adventure-d1]:not([data-adv-panel="ruins"]) .adv-subpage { padding: 24px; }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode { grid-template-rows: 112px minmax(84px, auto); }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > [data-adventure-panel="ruins"] { grid-template-rows: minmax(156px, auto); }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > b { font-size: 16px; }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > small { font-size: 12px; }
  .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost { padding: 24px; }
  .adventure-shell.adv-world[data-adventure-d1] .fighter-carousel { max-width: 460px; width: 100%; margin: auto; }
  .adventure-shell.adv-world[data-adventure-d1] .adv-market-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Respect the existing optional light theme. */
.light .adventure-shell.adv-world[data-adventure-d1] { --ap-panel: #fff9ed; --ap-panel-deep: #eee6d6; --ap-edge: #a48e645c; --ap-gold: #7e602d; --ap-muted: #677060; }
.light .adventure-shell.adv-world[data-adventure-d1] :is(.fighter-card, .fighter-xp, .adv-inventory-item, .companion-choice, .companion-detail, .companion-weekly, .adv-set-grid > article, .adv-exp-map > details) { background: linear-gradient(135deg, var(--ap-panel), var(--ap-panel-deep)); color: #302c24; }
.light .adventure-shell.adv-world[data-adventure-d1] .fighter-card p { color: #53604f; }
.light .adventure-shell.adv-world[data-adventure-d1] .fighter-card dl > div { background: #9d956216; }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode { background: linear-gradient(145deg, #f8f1e2, #e9e4d4); }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes > .adv-home-mode[data-campaign-open] { background: linear-gradient(145deg, #f8f1e2, #e9e4d4); }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > b { color: #302d25; }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="hero"] .adv-home-modes .adv-mode-copy > small { color: #606a5e; }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="merchant"] .supply-tabs { background: #eee6d7; }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] :is(.outpost-map, .outpost-card) { background: linear-gradient(135deg, #f7f2e6, #e5e6d6); }
.light .adventure-shell.adv-world[data-adventure-d1][data-adv-panel="outpost"] .outpost p { color: #566450; }
