.world-page { --header-height: 132px; }
.world-page .site-header { height:var(--header-height); background-position:center top; box-shadow:0 12px 30px rgba(0,0,0,.48); }
.world-page .header-inner { grid-template-rows:40px 1fr; }
.world-page .brand { width:min(450px,54vw); transform:translateY(-10px); }
.world-main { min-height:100svh; padding:var(--header-height) 0 0; background:#080c0e; }
.world-surface { position:relative; height:max(calc(100svh - var(--header-height)),53vw); overflow:hidden; background:#080c0e; }
.world-stage {
  position:relative; width:100%; height:100%;
  background:#080c0e url('assets/world-scene-titled.png') center top / 90% auto no-repeat;
}
.world-overlay {
  position:absolute; inset:0; z-index:1; pointer-events:none;
}
.world-inset {
  position:absolute; left:50%; top:0; width:80%; height:auto;
  transform:translateX(-50%); pointer-events:none; opacity:0;
  transition:opacity .7s ease-in-out;
}
.world-inset.is-visible { opacity:1; }
.world-mobile-title { display:none; }
.world-menu {
  position:absolute; z-index:3; left:12%; top:0; width:12%; height:calc(100svh - var(--header-height) - 1rem);
  display:grid; grid-template-rows:repeat(12,1fr); align-items:center;
}
.world-menu button {
  justify-self:end; position:relative; max-width:100%; margin:0; padding:.12rem .06rem;
  border:0; background:transparent; color:#d2b997;
  font:400 clamp(.85rem,1.15vw,1.22rem)/1.2 Papyrus,'Papyrus Condensed',Palatino,Georgia,serif;
  white-space:nowrap; cursor:pointer; text-shadow:0 2px 8px #000;
}
.world-menu button::after {
  content:''; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:#b63827; transform:scaleX(0); transform-origin:left center; transition:transform .36s ease;
}
.world-menu button:hover::after,.world-menu button:focus-visible::after,.world-menu button[aria-pressed='true']::after { transform:scaleX(1); }
.world-menu button:focus-visible { outline:1px solid #e0c99f; outline-offset:3px; }
.world-panel {
  position:absolute; z-index:2; left:52%; top:calc(33svh - 44px);
  width:30%; height:calc(48svh - 63px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:#d4bda2; text-align:center;
}
.world-descriptions { position:relative; width:100%; height:100%; }
.world-description {
  position:absolute; inset:0; opacity:0; transition:opacity .7s ease-in-out;
  width:100%; display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:.4em; color:#d7bfa2; font:400 clamp(1rem,1.75vw,1.85rem)/1.55 Papyrus,'Papyrus Condensed',Palatino,Georgia,serif;
  text-shadow:0 2px 10px #000;
}
.world-description.is-visible { opacity:1; }
.world-description h2 { max-width:100%; margin:0 0 .35em; font:400 clamp(.9rem,1.5vw,1.4rem)/1.4 Papyrus,Palatino,Georgia,serif; letter-spacing:.12em; text-transform:uppercase; }
.world-description p { max-width:100%; margin:0; }
.world-description img { display:block; width:100%; max-height:calc(48svh - 63px); object-fit:contain; }
.world-description:is([data-world-item="first"],[data-world-item="fourth"],[data-world-item="seventh"],[data-world-item="kings-table"]) img { width:92%; }
.world-step-controls {
  position:absolute; z-index:4; top:calc(81svh - 92px); left:67%;
  display:flex; align-items:center; justify-content:center; gap:1rem;
  transform:translateX(-50%); transition:left .35s ease;
}
.world-stage.nav-at-description .world-step-controls { left:67%; }
.world-step-controls button {
  border:0; border-bottom:1px solid #806558; padding:.25rem .35rem;
  background:transparent; color:#d2b997; cursor:pointer;
  font:400 clamp(.85rem,1vw,1rem)/1.4 Papyrus,Palatino,Georgia,serif;
  white-space:nowrap; text-shadow:0 1px 5px #000;
}
.world-step-controls button:hover,.world-step-controls button:focus-visible { color:#f2d8ae; border-color:#b63827; }
.world-step-controls button:focus-visible { outline:1px solid #d2b997; outline-offset:3px; }
@media (max-width:1100px) and (min-width:761px) {
  .world-menu { left:6%; width:18%; }
  .world-menu button { font-size:clamp(.85rem,1.4vw,1.15rem); }
  .world-panel { left:51%; width:39%; }
}
@media (max-width:760px) {
  .world-page { --header-height:88px; }
  .world-page .header-inner { grid-template-rows:1fr; }
  .world-page .brand { width:min(280px,68vw); transform:translateY(5px); }
  .world-page .primary-menu { top:var(--header-height); }
  .world-main { min-height:100svh; padding-top:var(--header-height); }
  .world-surface { height:auto; min-height:calc(100svh - var(--header-height)); overflow:hidden; }
  .world-stage {
    --scene-width:164vw; --scene-left:-39vw;
    height:660px; min-height:calc(100svh - var(--header-height));
    background-image:url('assets/world-bg-aligned.png');
    background-size:var(--scene-width) auto;
    background-position:var(--scene-left) top;
    background-repeat:no-repeat;
  }
  .world-stage::before {
    content:''; position:absolute; left:0; right:0; top:72vw; height:34vw;
    background:linear-gradient(transparent,#080c0e 95%); pointer-events:none;
  }
  .world-inset {
    top:0; left:43vw;
    width:145.78vw; max-width:none; height:auto; transform:translateX(-50%);
  }
  .world-mobile-title {
    display:block; position:absolute; z-index:2;
    left:42vw; top:5px; width:58vw; height:18vw;
    background:url('assets/world-title-crop.png') center / contain no-repeat;
  }
  .world-panel {
    position:absolute; left:44%; top:65px; width:55%; height:235px; padding:0 .25rem 0 0;
    justify-content:flex-start; background:transparent;
  }
  /* The Highwing description ends above this by roughly one line of space. */
  .world-step-controls { top:min(318px,calc(205px + 19vw)); left:26%; gap:.45rem; }
  .world-stage.nav-at-description .world-step-controls { left:74%; }
  .world-step-controls button { font-size:.875rem; padding:.2rem .1rem; }
  .world-description { width:100%; font-size:clamp(.85rem,3.5vw,1rem); line-height:1.3; }
  .world-description img { max-height:225px; }
  .world-description h2 { font-size:clamp(.82rem,3.2vw,.96rem); margin-bottom:.45em; }
  .world-description p { margin-bottom:.35em; }
  .world-menu {
    position:absolute; left:0; top:350px; width:100%; height:auto; padding:0 .8rem 0 1.4rem;
    grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(6,minmax(38px,auto));
    gap:.12rem 1.4rem; align-items:center;
  }
  .world-menu button { justify-self:start; white-space:normal; text-align:left; font-size:clamp(.84rem,3.55vw,1rem); line-height:1.1; padding:.1rem 0; }
  .world-menu button:nth-child(odd) { justify-self:end; text-align:right; }
}
@media (max-width:360px) {
  .world-panel { left:43%; width:56%; top:53px; }
  .world-description { font-size:.86rem; line-height:1.25; }
  .world-step-controls { top:calc(193px + 19.5vw); }
  .world-menu { top:330px; }
}
@media (prefers-reduced-motion:reduce) {
  .world-menu button::after,.world-inset,.world-description,.world-step-controls { transition-duration:.01ms; }
}
