/* The Lands play sheet keeps its own compact theme; only its guest gate joins this treatment. */
body.mifika-world-page,
body.world-adventure:has(main.lands[data-guest]) {
  --bg: #101822;
  --panel: #182932;
  --border: #37505c;
  --text: #f5f0e7;
  --muted: #bdcbd0;
  --accent: #f2c77b;
  --accent-text: #15222a;
  --gold: #f2c77b;
  color-scheme: dark;
  background: var(--bg);
}

body.mifika-world-page > header,
body.world-adventure:has(main.lands[data-guest]) .site-header {
  padding: 12px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

body.mifika-world-page .logo,
body.world-adventure:has(main.lands[data-guest]) .logo {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

body.mifika-world-page :is(.logo, .nav-link),
body.world-adventure:has(main.lands[data-guest]) :is(.logo, .nav-link) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.mifika-world-page .nav-link,
body.world-adventure:has(main.lands[data-guest]) .nav-link {
  color: var(--muted);
  font-size: 14px;
}

body.mifika-world-page :is(.nav-link:hover, .nav-link[aria-current]),
body.world-adventure:has(main.lands[data-guest]) :is(.nav-link:hover, .nav-link[aria-current]) {
  color: var(--gold);
}

body.mifika-world-page :is(a, button, summary):focus-visible,
body.world-adventure:has(main.lands[data-guest]) :is(a, button, summary):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

body.mifika-world-page main.lore {
  max-width: 1160px;
  padding-top: 32px;
}

body.mifika-world-page main.lore > article::before {
  content: "";
  display: block;
  width: 100%;
  height: 310px;
  margin-bottom: 32px;
  border: 1px solid #f2c77b66;
  border-radius: 16px;
  background: url("/img/adventure/mythika-v1.webp") center 12% / cover no-repeat;
}

body.mifika-world-page main.lore h1 {
  color: var(--gold);
  font-size: 52px;
  font-weight: 400;
}

body.mifika-world-page main.lore :is(h2, h3, caption) { color: #f3dbaf; }
body.mifika-world-page main.lore .eyebrow { color: #82d5f4; }
body.mifika-world-page main.lore .lede { color: var(--text); }
body.mifika-world-page main.lore a { color: #82d5f4; }
body.mifika-world-page main.lore a:hover { color: var(--gold); }
body.mifika-world-page .atlas-read h3 { color: var(--gold); }

body.world-adventure:has(main.lands[data-guest]) main.lands {
  max-width: 1200px;
  padding: 36px 28px;
}

body.world-adventure main.lands[data-guest] .builder-heading { margin-bottom: 18px; }
body.world-adventure main.lands[data-guest] .builder-heading .eyebrow { margin: 0; }
body.world-adventure main.lands[data-guest] .lands-tabs { display: none; }

body.world-adventure main.lands[data-guest] .guest-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px 40px;
  align-content: center;
  align-items: center;
  margin: 0;
  padding: 0 0 0 36px;
  overflow: hidden;
  border-color: #73dfae66;
  border-radius: 16px;
  background: var(--panel);
}

body.world-adventure main.lands[data-guest] .guest-gate::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
  height: 420px;
  background: url("/img/adventure/forbidden-lands-v1.webp") center / cover no-repeat;
}

body.world-adventure main.lands[data-guest] .guest-gate h2 {
  align-self: end;
  color: var(--gold);
  font-size: 36px;
  line-height: 1.2;
}

body.world-adventure main.lands[data-guest] .guest-gate p {
  align-self: center;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.7;
}

body.world-adventure main.lands[data-guest] .guest-gate-actions {
  align-self: start;
  padding-bottom: 24px;
}

body.world-adventure main.lands[data-guest] .button { min-height: 44px; }
body.world-adventure main.lands[data-guest] .button.primary { background: var(--gold); border-color: var(--gold); color: var(--accent-text); }
body.world-adventure main.lands[data-guest] .button.primary:hover { background: #ffda99; border-color: #ffda99; }
body.world-adventure main.lands[data-guest] .button.subtle { color: #73dfae; border-color: #73dfae66; }
body.world-adventure main.lands[data-guest] .button.subtle:hover { background: #73dfae14; border-color: #73dfae; }

@media (max-width: 700px) {
  body.mifika-world-page > header,
  body.world-adventure:has(main.lands[data-guest]) .site-header { padding: 8px 16px; }
  body.mifika-world-page .brand { gap: 12px; }
  body.mifika-world-page .nav-link { font-size: 13px; }
  body.mifika-world-page main.lore { padding-top: 20px; }
  body.mifika-world-page main.lore > article::before { height: 210px; margin-bottom: 24px; border-radius: 12px; }
  body.mifika-world-page main.lore h1 { font-size: 40px; }
  body.world-adventure:has(main.lands[data-guest]) .site-header { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  body.world-adventure:has(main.lands[data-guest]) .site-header .brand { grid-column: 1 / -1; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
  body.world-adventure:has(main.lands[data-guest]) .site-header .logo { font-size: 24px; }
  body.world-adventure:has(main.lands[data-guest]) .site-header .nav-link { max-width: none; font-size: 13px; }
  body.world-adventure:has(main.lands[data-guest]) .site-header > .cabinet-link:last-child { justify-self: end; }
  body.world-adventure:has(main.lands[data-guest]) main.lands { padding: 20px 16px 24px; }
  body.world-adventure main.lands[data-guest] .builder-heading { margin-bottom: 14px; }
  body.world-adventure main.lands[data-guest] .guest-gate { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 18px 20px; border-radius: 12px; }
  body.world-adventure main.lands[data-guest] .guest-gate::before { grid-column: 1; grid-row: 1; width: calc(100% + 36px); height: 190px; margin: 0 -18px 4px; background-position: center 45%; }
  body.world-adventure main.lands[data-guest] .guest-gate h2 { font-size: 27px; }
  body.world-adventure main.lands[data-guest] .guest-gate p { font-size: 15px; line-height: 1.6; }
  body.world-adventure main.lands[data-guest] .guest-gate-actions { width: 100%; padding: 0; }
  body.world-adventure main.lands[data-guest] .guest-gate-actions .button { width: 100%; font-size: 14px; }
}

@media print {
  body.mifika-world-page main.lore > article::before { display: none; }
}
