/* Nightfall World (v2.05) — page-only styles. Linked only from world.html.
   Breakpoints: see the "Version 2 foundation" header in ../site.css.
   All classes are prefixed "w-" so the older world-map rules in site.css
   (".world-*", ".map-*") never apply here; those rules are left in place
   for site-v2-a to remove when convenient. */

.w-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-content h3,
.w-content h4,
.w-content p {
  margin: 0;
}

/* ---------- Page banner ---------- */
.w-banner {
  background:
    radial-gradient(60% 80% at 75% 40%, rgba(138, 110, 60, 0.18) 0%, rgba(12, 11, 10, 0) 70%),
    linear-gradient(180deg, #12100D 0%, #0C0B0A 100%);
}

.w-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 360px;
  padding-top: 84px;
  padding-bottom: 36px;
}

.w-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 640px;
  min-width: 0;
  flex: 0 1 640px;
}

.w-banner-crumbs {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.w-banner-crumbs a {
  display: inline-block;
  color: var(--v2-dim);
}

.w-banner-title {
  margin: 0;
  color: var(--v2-text-hero);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  line-height: 62px;
}

.w-banner-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 28px;
}

.w-banner-pic {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
  max-width: 100%;
  height: 240px;
  border: 1px solid var(--v2-line-strong);
  background: #0A0909;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.w-banner-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Section titles ---------- */
.w-title {
  gap: 18px;
}

.w-title::after {
  background: linear-gradient(90deg, var(--v2-line-strong), rgba(138, 110, 60, 0));
}

.w-gem {
  order: 2;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-inline: 4px;
  background: var(--v2-gold);
  transform: rotate(45deg);
}

.w-line {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 26px;
}

.w-intro {
  padding-top: 40px;
  background: linear-gradient(180deg, #0C0B0A 0%, rgba(12, 11, 10, 0) 100%);
}

.w-intro .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Map section ---------- */
.w-map-section {
  --pad-x: 64px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.w-map-section > .wrap {
  max-width: calc(1312px + var(--pad-l) + var(--pad-r));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.w-step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 44px;
}

.w-step-num {
  flex: 0 0 auto;
  padding: 4px 11px;
  background: var(--v2-gold);
  color: #1A1408;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

.w-step-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.w-step-line {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.w-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 18px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 9, 8, 0.75);
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.w-back[hidden] {
  display: none;
}

.w-back span[aria-hidden] {
  font-size: 22px;
  line-height: 20px;
}

/* Map window */
.w-map {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--v2-line-strong);
  background: #13110E;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.w-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--v2-line-dark);
}

.w-map-titleblock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.w-map-title {
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  white-space: nowrap;
}

.w-map-crumbs,
.w-map-hint {
  min-width: 0;
  overflow: hidden;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.w-map-hint {
  flex: 1 1 0;
  text-align: right;
}

.w-tabs {
  display: flex;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--v2-line);
  background: #0E0C0A;
}

.w-tab {
  min-height: 38px;
  padding: 9px 30px;
  border: 0;
  border-left: 1px solid var(--v2-line-dark);
  background: transparent;
  color: var(--v2-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}

.w-tab:first-child {
  border-left: 0;
}

.w-tab.is-active {
  background: #B8924C;
  color: #1A1408;
  font-weight: 700;
}

.w-tab:disabled {
  color: #6E6350;
  cursor: default;
}

/* Map body: canvas + info panel (+ chip row on phones) */
.w-map-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas: "stage panel";
  min-width: 0;
}

.w-stage {
  grid-area: stage;
  align-self: stretch;
  position: relative;
  min-width: 0;
  width: 100%; /* lead fix: never wider than its grid column (stage covered the panel at 1180) */
  max-width: 100%;
  aspect-ratio: 916 / 620;
  overflow: hidden;
  border-right: 1px solid var(--v2-line-dark);
  background: #0A0909;
}

.w-canvas {
  position: absolute;
  inset: 0;
  container-type: size;
  overflow: hidden;
}

.w-board {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 98%;
  transform: translate(-50%, -50%);
}

.w-board.is-world {
  aspect-ratio: 16 / 9;
  width: min(98cqw, calc((100cqh - 24px) * 1.7778));
  margin-top: 9px;
}

.w-board.is-region {
  aspect-ratio: 3 / 2;
  width: min(98cqw, calc((100cqh - 20px) * 1.5));
}

.w-board-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.w-marks,
.w-doors {
  position: absolute;
  inset: 0;
}

.w-polys {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.w-poly {
  fill: rgba(255, 211, 110, 0);
  stroke: none;
  cursor: pointer;
}

.w-poly.is-selected {
  fill: rgba(255, 211, 110, 0.16);
  stroke: #FFD36E;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

.w-door {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--v2-gold-light);
  background: #1A1408;
  transform: translate(-50%, -50%);
}

/* Markers: 44px button centred on the point; the label hangs below. */
.w-mark {
  position: absolute;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.w-mark.is-selected {
  z-index: 3;
}

.w-mark-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.w-mark-dot i {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid #1A1408;
  background: var(--c, #E3C47F);
  transform: rotate(45deg);
  transition: width 120ms ease, height 120ms ease, box-shadow 120ms ease;
}

.w-mark-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(10, 9, 8, 0.72);
  transform: translateX(-50%);
  white-space: nowrap;
}

.w-mark-name {
  color: var(--v2-body);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.w-mark.status-tests .w-mark-label,
.w-mark.status-building .w-mark-label {
  border-color: var(--v2-line);
}

.w-mark.status-tests .w-mark-name,
.w-mark.status-building .w-mark-name {
  color: var(--v2-text);
}

.w-mark-sub {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
}

.w-mark.is-region.is-selected .w-mark-dot {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 214, 120, 0.8);
  background: rgba(255, 200, 90, 0.18);
}

.w-mark.is-region.is-selected .w-mark-dot i {
  width: 22px;
  height: 22px;
}

.w-mark.is-region.is-selected .w-mark-label {
  top: calc(50% + 31px);
  padding: 6px 14px;
  border-color: var(--v2-gold-light);
  background: rgba(10, 9, 8, 0.9);
}

.w-mark.is-region.is-selected .w-mark-name {
  color: #FFF1C8;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.w-mark:focus-visible {
  outline-offset: 0;
}

.w-mark:focus-visible .w-mark-dot i {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 4px rgba(255, 214, 120, 0.35);
}

.w-mark:focus-visible .w-mark-label {
  z-index: 4;
  border-color: var(--v2-gold-light);
  background: rgba(40, 32, 18, 0.92);
}

/* Zone markers (region map) */
.w-mark.is-zone .w-mark-dot i {
  width: 14px;
  height: 14px;
}

.w-mark.is-zone .w-mark-label {
  top: calc(50% + 11px);
  padding: 2px 7px;
  border: 0;
  background: rgba(10, 9, 8, 0.72);
}

.w-mark.is-zone .w-mark-name {
  color: var(--v2-text);
  font-size: 13px;
}

.w-mark.is-zone.is-selected .w-mark-dot {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 214, 120, 0.85);
  background: rgba(255, 200, 90, 0.2);
}

.w-mark.is-zone.is-selected .w-mark-dot i {
  width: 18px;
  height: 18px;
}

.w-mark.is-zone.is-selected .w-mark-label {
  top: calc(50% + 24px);
  padding: 3px 9px;
  border: 1px solid var(--v2-gold-light);
  background: rgba(40, 32, 18, 0.92);
}

.w-mark.is-zone.is-selected .w-mark-name {
  color: #FFF1C8;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.w-mark.is-dim {
  opacity: 0.6;
}

@media (hover: hover) {
  .w-mark:hover {
    z-index: 4;
  }

  .w-mark:hover .w-mark-dot i {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 0 4px rgba(255, 214, 120, 0.35);
  }

  .w-mark:hover .w-mark-label {
    border-color: var(--v2-gold-light);
    background: rgba(40, 32, 18, 0.92);
  }

  .w-mark.is-dim:hover {
    opacity: 1;
  }

  .w-poly:hover {
    fill: rgba(255, 211, 110, 0.08);
  }

  .w-tab:not(:disabled):not(.is-active):hover,
  .w-back:hover {
    color: var(--v2-gold-pale);
  }

  .w-chip:hover,
  .w-zone-btn:hover,
  .w-tile:hover {
    border-color: var(--v2-gold);
  }
}

/* Overlays on the stage */
.w-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.w-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
}

.w-dia {
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
}

.w-dia.is-small {
  width: 8px;
  height: 8px;
}

.w-dia.is-door {
  border: 2px solid var(--v2-gold-light);
  background: #1A1408;
  transform: none;
  width: 10px;
  height: 10px;
}

.w-road {
  display: inline-block;
  width: 18px;
  border-top: 2px dotted var(--v2-gold-light);
}

.w-stage > .w-legend {
  position: absolute;
  z-index: 5;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 120px);
  padding: 10px 14px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(10, 9, 8, 0.82);
}

.w-scale {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(10, 9, 8, 0.82);
}

.w-scale strong {
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.w-scale span {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
}

.w-canvas-tag {
  z-index: 6;
}

/* Zone step: real 3D map screenshot */
.w-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.w-shot-cap {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(10, 9, 8, 0.82);
}

.w-shot-cap strong {
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.w-shot-cap span {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
}

/* Regions without a painted map yet */
.w-nomap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.w-nomap-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.35;
}

.w-nomap-note {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px dashed #5A4A2E;
  background: rgba(10, 9, 8, 0.82);
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.w-zone-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.w-zone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(10, 10, 14, 0.88);
  color: var(--v2-text);
  text-align: left;
  cursor: pointer;
}

.w-zone-btn > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.w-zone-btn strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.w-zone-btn span span {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
}

.w-zone-btn.is-selected {
  border-color: var(--v2-gold-light);
  background: rgba(40, 32, 18, 0.94);
}

/* Chip row: phones and short landscape only */
.w-chips {
  grid-area: chips;
  display: none;
}

/* Info panel */
.w-panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  background: #13110E;
}

.w-panel-pic,
.w-panel-head,
.w-panel-facts {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.w-panel-head {
  gap: 4px;
}

.w-panel-facts {
  gap: 16px;
}

.w-panel-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  background: #0A0909;
}

.w-panel-media > img,
.w-crop {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.w-crop {
  background-repeat: no-repeat;
  background-size: 420% auto;
}

.w-panel-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  overflow-wrap: anywhere;
}

.w-panel-sub {
  color: var(--v2-gold-light);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.w-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid #4F7A4C;
  background: rgba(143, 209, 138, 0.12);
  color: #8FD18A;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.w-badge img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.w-panel .w-badge {
  margin-top: 12px;
}

.w-badge.status-building {
  border-color: #7A5E2C;
  background: rgba(224, 168, 71, 0.12);
  color: #E0A847;
}

.w-badge.status-launch {
  border-color: #5A554C;
  background: rgba(140, 133, 118, 0.14);
  color: var(--v2-muted);
}

.w-badge.status-later {
  border-color: #555A7E;
  background: rgba(138, 143, 184, 0.14);
  color: #B4B8DC;
}

.w-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.w-panel .w-rows {
  padding-top: 4px;
}

.w-rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.w-rows img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
}

.w-rows span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.w-panel-btn {
  width: 100%;
  max-width: 100%;
  height: 60px;
  margin-top: 6px;
  padding-inline: 40px;
  font-size: 18px;
  line-height: 22px;
}

/* ---------- Region tiles ---------- */
.w-section {
  padding-bottom: 76px;
}

.w-section .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-regions {
  padding-top: 18px;
}

.w-region-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
}

.w-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 126px;
  padding: 18px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.w-tile img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.w-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.w-tile-name {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
}

.w-tile-state {
  color: var(--v2-muted);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 20px;
}

.w-tile.status-tests .w-tile-state {
  color: #8FD18A;
}

.w-tile.is-selected {
  border-color: var(--v2-line-strong);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

/* ---------- Start in Emberhold photos ---------- */
.w-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.w-photos .w-photo-grid {
  padding-top: 20px;
}

.w-photo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
}

.w-photo-media {
  position: relative;
  height: 178px;
  overflow: hidden;
  border-bottom: 1px solid var(--v2-line-dark);
}

.w-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w-photo-caption {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 14px;
  color: var(--v2-soft);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

/* ---------- Bosses ---------- */
.w-bosses {
  padding-bottom: 64px;
}

.w-boss-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-top: 20px;
}

.w-beira {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 10, 14, 0.88);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.w-beira-media {
  position: relative;
  height: 292px;
  overflow: hidden;
  border-bottom: 1px solid var(--v2-line-dark);
}

.w-beira-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.w-beira-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.w-beira-name {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.w-beira-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 23px;
}

.w-boss-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

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

.w-boss {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 204px;
  padding: 16px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
  text-align: center;
}

.w-boss img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.w-boss-name {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.w-boss-state {
  color: var(--v2-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.w-boss-note {
  align-self: flex-end;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

/* ---------- Playtest CTA ---------- */
.w-cta {
  padding-top: 8px;
  padding-bottom: 88px;
}

.w-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.w-cta-line {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 26px;
}

/* ==========================================================================
   iPad landscape (1024–1279)
   ========================================================================== */
@media (max-width: 1279px) {
  .w-banner-copy {
    flex-basis: 520px;
  }

  .w-banner-pic {
    width: 420px;
    height: 220px;
  }

  .w-map-section > .wrap {
    max-width: calc(var(--wrap-max) + var(--pad-l) + var(--pad-r));
  }

  .w-map-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .w-tab {
    padding-inline: 22px;
  }

  .w-stage > .w-legend {
    gap: 4px 12px;
    padding: 8px 10px;
  }

  .w-legend li {
    font-size: 14px;
  }

  .w-mark-name {
    font-size: 14px;
  }

  .w-panel {
    gap: 14px;
    padding: 20px;
  }

  .w-panel-media {
    height: 168px;
  }

  .w-panel-title {
    font-size: 26px;
    line-height: 32px;
  }

  .w-rows li {
    font-size: 18px;
    line-height: 22px;
  }

  .w-rows img {
    width: 32px;
    height: 32px;
  }

  .w-tile {
    padding: 16px 14px;
    gap: 10px;
  }

  .w-tile-name {
    font-size: 17px;
    line-height: 21px;
  }

  .w-boss-layout {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
  }

  .w-boss {
    padding: 14px 8px;
  }
}

/* ==========================================================================
   iPad portrait (768–1023): map full width, panel below in 2 columns
   ========================================================================== */
@media (max-width: 1023px) {
  .w-banner-inner {
    gap: 28px;
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .w-banner-copy {
    flex-basis: 370px;
  }

  .w-banner-pic {
    width: 330px;
    height: 186px;
  }

  .w-map-head {
    padding-inline: 20px;
  }

  .w-tab {
    padding-inline: 18px;
  }

  .w-map-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "stage"
      "panel";
  }

  .w-stage {
    border-right: 0;
  }

  .w-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "pic facts"
      "head facts";
    align-content: start;
    gap: 14px 36px;
    padding: 24px;
    border-top: 1px solid var(--v2-line-dark);
    background: #100E0C;
  }

  .w-panel-pic { grid-area: pic; }
  .w-panel-head { grid-area: head; }
  .w-panel-facts { grid-area: facts; }

  .w-panel-media {
    height: 182px;
  }

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

  .w-tile {
    height: 96px;
    gap: 16px;
    padding: 18px;
  }

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

  .w-boss-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   PHONE (portrait < 768 and short landscape): chip row, names on the selected
   region only, 44px invisible tap areas, legend in the chip box.
   ========================================================================== */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .w-chips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px 0 16px 14px;
    border-top: 1px solid var(--v2-line-dark);
    background: #0A0909;
  }

  .w-chips-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-right: 14px;
  }

  .w-chips-label {
    color: var(--v2-gold-light);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .w-chips-count {
    min-width: 0;
    overflow: hidden;
    color: var(--v2-dim);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .w-chips .w-legend {
    gap: 6px 14px;
    padding-right: 14px;
  }

  .w-chips .w-legend li {
    font-size: 14px;
    line-height: 18px;
  }

  .w-chip-row {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .w-chip-row::-webkit-scrollbar {
    display: none;
  }

  .w-chips .w-chip-row {
    padding-right: 14px;
  }

  .w-chip-row li {
    flex: 0 0 auto;
  }

  .w-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--v2-line);
    background: rgba(10, 10, 14, 0.9);
    color: var(--v2-soft);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
  }

  .w-chip .w-dia {
    width: 8px;
    height: 8px;
  }

  .w-chip.is-selected {
    border-color: var(--v2-gold-light);
    background: var(--v2-gold);
    color: #1A1408;
  }

  .w-chip.is-selected .w-dia {
    background: #1A1408 !important;
  }

  .w-stage > .w-legend,
  .w-stage > .w-scale {
    display: none;
  }

  .w-board.is-world {
    width: min(98cqw, calc((100cqh - 8px) * 1.7778));
    margin-top: 0;
  }

  .w-board.is-region {
    width: min(98cqw, calc((100cqh - 8px) * 1.5));
  }

  /* Names only for the selected place; the chips carry the rest. */
  .w-mark:not(.is-selected) .w-mark-label {
    display: none;
  }

  .w-mark-dot i,
  .w-mark.is-zone .w-mark-dot i {
    width: 14px;
    height: 14px;
  }

  .w-mark.is-region.is-selected .w-mark-dot {
    width: 34px;
    height: 34px;
  }

  .w-mark.is-region.is-selected .w-mark-dot i,
  .w-mark.is-zone.is-selected .w-mark-dot i {
    width: 16px;
    height: 16px;
  }

  .w-mark.is-zone.is-selected .w-mark-dot {
    width: 30px;
    height: 30px;
  }

  .w-mark.is-region.is-selected .w-mark-label {
    top: calc(50% + 20px);
    padding: 3px 8px;
  }

  .w-mark.is-zone.is-selected .w-mark-label {
    top: calc(50% + 17px);
  }

  .w-mark.is-region.is-selected .w-mark-name,
  .w-mark.is-zone.is-selected .w-mark-name {
    font-size: 14px;
    line-height: 18px;
  }

  .w-mark-sub {
    display: none;
  }

  /* Zone lists inside the canvas are replaced by the chip row. */
  .w-zone-list {
    display: none;
  }

  .w-nomap {
    justify-content: flex-end;
    overflow: hidden;
  }

  .w-nomap-img {
    opacity: 0.6;
  }

  .w-shot-cap {
    right: 8px;
    bottom: 8px;
    padding: 4px 8px;
  }

  .w-step-line {
    display: none;
  }

  .w-back {
    padding-inline: 14px;
    font-size: 15px;
  }

  .w-line {
    font-size: 18px;
    line-height: 23px;
  }

  .w-section,
  .w-bosses {
    padding-bottom: 48px;
  }

  .w-cta {
    padding-bottom: 56px;
  }
}

/* ==========================================================================
   iPhone portrait (< 768)
   ========================================================================== */
@media (max-width: 767px) {
  .w-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .w-banner-copy {
    flex-basis: auto;
    width: auto;
  }

  .w-banner-title {
    font-size: 44px;
    line-height: 52px;
  }

  .w-banner-pic {
    width: 100%;
    height: 200px;
  }

  .w-banner-pic .tag {
    font-size: 15px;
    line-height: 20px;
  }

  .w-intro {
    padding-top: 24px;
  }

  .w-map-section {
    --pad-x: 18px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .w-map-section > .wrap {
    gap: 22px;
  }

  .w-map-head {
    gap: 8px;
    min-height: 76px;
    padding: 8px 14px;
  }

  .w-map-hint {
    display: none;
  }

  .w-tab {
    min-height: 44px;
    padding: 12px 12px;
    font-size: 15px;
  }

  .w-map-body {
    grid-template-areas:
      "stage"
      "chips"
      "panel";
  }

  .w-stage {
    aspect-ratio: 352 / 238;
  }

  .w-panel {
    display: flex;
    gap: 14px;
    padding: 18px;
  }

  .w-panel-media {
    height: 178px;
  }

  .w-panel-media .tag {
    font-size: 15px;
    line-height: 20px;
  }

  .w-rows li {
    font-size: 19px;
    line-height: 24px;
  }

  .w-rows img {
    width: 36px;
    height: 36px;
  }

  .w-region-grid {
    gap: 14px;
  }

  .w-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    min-height: 136px;
    padding: 14px;
  }

  .w-tile-name {
    font-size: 16px;
    line-height: 21px;
  }

  .w-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .w-photo-media {
    height: auto;
    aspect-ratio: 354 / 200;
  }

  .w-beira-media {
    height: 210px;
  }

  .w-beira-media .tag {
    font-size: 15px;
    line-height: 20px;
  }

  .w-boss-layout {
    gap: 24px;
  }

  .w-boss-side {
    gap: 9px;
  }

  .w-boss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .w-boss {
    min-height: 180px;
    padding: 16px 6px;
  }

  .w-cta-btn.btn-xl {
    width: 100%;
    max-width: 354px;
    height: 64px;
    padding-inline: 40px;
    font-size: 17px;
    line-height: 22px;
  }
}

@media (max-width: 374px) {
  .w-tab {
    padding-inline: 8px;
  }

  .w-map-title {
    font-size: 24px;
  }
}

/* ==========================================================================
   Short landscape phones: map beside panel (60/40), map fits the screen,
   panel scrolls on its own, chip row under both.
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .w-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 10px;
  }

  .w-banner-copy {
    flex: 1 1 400px;
  }

  .w-banner-title {
    font-size: 44px;
    line-height: 52px;
  }

  .w-banner-pic {
    width: 300px;
    height: 150px;
  }

  .w-intro {
    padding-top: 24px;
  }

  .w-map-section {
    --pad-x: 56px;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .w-map-section > .wrap {
    gap: 18px;
  }

  .w-map-head {
    min-height: 48px;
    padding: 2px 14px;
  }

  .w-map-titleblock {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .w-map-title {
    font-size: 22px;
    line-height: 28px;
  }

  .w-map-hint {
    display: block;
  }

  .w-tab {
    min-height: 36px;
    padding: 7px 14px;
    font-size: 15px;
  }

  .w-map-body {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-rows: calc(100vh - 108px) auto;
    grid-template-rows: min(calc(60cqw * 0.6769), calc(100svh - 108px)) auto;
    grid-template-areas:
      "stage panel"
      "chips chips";
  }

  .w-stage {
    aspect-ratio: auto;
    height: 100%;
    border-right: 1px solid var(--v2-line-dark);
  }

  .w-panel {
    display: flex;
    gap: 6px;
    min-height: 0;
    padding: 10px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 0;
    background: #100E0C;
  }

  .w-panel-pic {
    display: none;
  }

  .w-panel-title {
    font-size: 20px;
    line-height: 26px;
  }

  .w-panel-sub {
    font-size: 16px;
    line-height: 20px;
  }

  .w-panel .w-badge {
    margin-top: 6px;
    padding: 3px 10px;
  }

  .w-panel-facts {
    gap: 8px;
  }

  .w-rows {
    gap: 4px;
  }

  .w-rows li {
    gap: 10px;
    font-size: 16px;
    line-height: 20px;
  }

  .w-rows img {
    width: 28px;
    height: 28px;
  }

  .w-panel-btn {
    flex: 0 0 auto;
    height: 48px;
    margin-top: 4px;
    font-size: 16px;
    line-height: 20px;
  }

  .w-chips {
    border-top: 1px solid var(--v2-line-dark);
  }

  .w-chips .w-legend li {
    font-size: 14px;
  }

  .w-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .w-tile {
    flex-direction: row;
    align-items: center;
    height: 78px;
    min-height: 0;
    gap: 14px;
    padding: 14px;
  }

  .w-tile-name {
    font-size: 16px;
    line-height: 20px;
  }

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

  .w-boss-layout {
    grid-template-columns: minmax(0, 330fr) minmax(0, 378fr);
    gap: 24px;
  }

  .w-beira-media {
    height: 230px;
  }

  .w-boss-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .w-boss {
    min-height: 0;
    padding: 12px 6px;
  }

  .w-boss img {
    width: 72px;
    height: 72px;
  }

  .w-boss-name {
    font-size: 16px;
    line-height: 20px;
  }

  .w-cta-btn.btn-xl {
    width: 420px;
    height: 68px;
    padding-inline: 48px;
    font-size: 18px;
    line-height: 22px;
  }
}

/* Lead fix 2026-11-27: the chips' visually-hidden spans are absolutely positioned;
   without a positioned ancestor they escaped the scrolling chip row and made the
   whole page scroll sideways on phones. */
.w-chip-row,
.w-chip {
  position: relative;
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-c). Nothing at >= 1280
   changes except the lightbox links and swipe-row markup (shown as grids there).
   Keep the lead fixes above: .w-stage width:100%, chip rows position:relative,
   short-landscape map row calc(100svh - 108px), 14px labels.
   ========================================================================== */

/* Links that open the lightbox keep their old box. */
a.w-banner-pic,
a.w-photo-media,
a.w-beira-media,
a.w-panel-media {
  display: block;
  color: inherit;
}

a.w-banner-pic:focus-visible,
a.w-photo-media:focus-visible,
a.w-beira-media:focus-visible,
a.w-panel-media:focus-visible {
  outline: 2px solid var(--v2-gold-light);
  outline-offset: 3px;
}

/* Crumbs + status line share one row in the hero (status shows on iPad / iPhone portrait). */
.w-banner-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  min-width: 0;
}

/* Swipe rows are plain grids on iPad and Mac. */
.w-region-grid.swipe,
.w-photo-grid.swipe,
.w-boss-grid.swipe {
  overflow: visible;
  scroll-snap-type: none;
}

.w-region-grid.swipe-2row {
  grid-auto-flow: row;
  grid-template-rows: none;
  grid-auto-columns: auto;
}

.w-region-grid > li {
  display: flex;
  min-width: 0;
}

.w-tile {
  width: 100%;
}

/* Text >= 14px below the Mac layout: zone names on the region map. */
@media (max-width: 1279px) {
  .w-mark.is-zone .w-mark-name {
    font-size: 14px;
  }
}

/* Back button on the map itself (phones only). */
.w-stage-back {
  display: none;
}

/* ---------- iPad portrait ---------- */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .w-banner-inner {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .w-banner-copy {
    gap: 16px;
  }

  .w-banner-pic {
    height: 214px;
  }

  /* Beira: picture left, words right. */
  .w-beira {
    flex-direction: row;
  }

  .w-beira-media {
    flex: 0 0 56%;
    height: 280px;
    border-bottom: 0;
    border-right: 1px solid var(--v2-line-dark);
  }

  .w-beira-body {
    justify-content: center;
    padding: 24px 28px;
  }
}

/* ---------- Phones (portrait + short landscape): swipe rows, Back on the map ---------- */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .w-content > .otp {
    position: sticky; /* site.css ends with .otp { position: relative }, which would unstick it */
  }

  .w-stage-back {
    position: absolute;
    z-index: 7;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px 0 10px;
    border: 1px solid var(--v2-gold);
    border-radius: 999px;
    background: rgba(10, 9, 8, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    color: var(--v2-gold-pale);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
  }

  .w-stage-back[hidden] {
    display: none;
  }

  .w-stage-back span[aria-hidden] {
    font-size: 22px;
    line-height: 18px;
  }

  .w-stage-back:focus-visible {
    outline: 2px solid var(--v2-gold-light);
    outline-offset: 2px;
  }

  /* 10 regions: two rows that swipe sideways together. */
  .w-region-grid.swipe {
    --per: 2.2;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: calc((100% - (var(--per) - 1) * var(--swipe-gap)) / var(--per));
    gap: var(--swipe-gap);
    padding-top: 12px;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .w-region-grid > li {
    flex: none;
  }

  .w-tile {
    height: 100%;
  }

  .w-photo-grid.swipe,
  .w-boss-grid.swipe {
    display: flex;
    gap: var(--swipe-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .w-photos .w-photo-grid {
    padding-top: 12px;
  }

  .w-boss-grid.swipe {
    --per: 2.3;
  }

  .w-boss-note {
    align-self: flex-start;
  }
}

/* ---------- iPhone portrait: app-like hero, map sticks while the panel scrolls ---------- */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .w-banner-inner {
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 8px;
  }

  /* Hero order: status · title · line · picture · one big button (thumb reach). */
  .w-banner-copy {
    display: contents;
  }

  .w-banner-crumbs {
    display: none;
  }

  .w-banner-title {
    font-size: 40px;
    line-height: 46px;
  }

  .w-banner-line {
    font-size: 19px;
    line-height: 24px;
  }

  .w-banner-pic {
    order: 1;
    height: 184px;
    margin-top: 4px;
  }

  .w-banner-btn {
    order: 2;
    width: 100%;
    margin-top: 4px;
  }

  .w-intro {
    padding-top: 28px;
  }

  .w-map-section {
    padding-top: 22px;
  }

  .w-panel {
    border-top: 2px solid var(--v2-line-strong);
  }

  .w-tile {
    min-height: 128px;
  }

  .w-boss {
    min-height: 168px;
  }

  .w-boss img {
    width: 80px;
    height: 80px;
  }

  .w-boss-name {
    font-size: 16px;
    line-height: 20px;
  }

  .w-boss-side {
    gap: 10px;
  }
}

/* Tall enough phone: the map stays under the bars while the chips and panel scroll beneath it. */
@media (max-width: 767px) and (min-height: 700px) {
  .w-stage {
    position: sticky;
    z-index: 6;
    top: calc(var(--bar-h) + var(--otp-h));
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- iPhone landscape: no chip bar (the map needs the height) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  html.has-otp {
    --otp-h: 0px;
    scroll-padding-top: calc(var(--sticky-offset) + 8px);
  }

  .w-content > .otp {
    display: none;
  }

  .w-banner-btn {
    align-self: flex-start;
    height: 50px;
    font-size: 16px;
  }

  .w-banner-copy {
    gap: 10px;
  }

  .w-region-grid.swipe {
    --per: 3.3;
  }

  .w-tile {
    height: 78px;
  }

  .w-photo-grid.swipe {
    --per: 2.3;
  }

  .w-boss-grid.swipe {
    --per: 2.2;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .w-boss {
    min-height: 150px;
  }
}

/* ==========================================================================
   Fix pass C (2026-11-27). Keep the lead fixes above.
   ========================================================================== */

/* D10: map level tabs are at least 44px tall below 1024px. */
@media (max-width: 1023px) {
  .w-tab {
    min-height: 44px;
    padding-block: 12px;
  }
}

/* Short landscape: 44px tabs inside the same 48px head, so the
   calc(100svh - 108px) map row still fits. */
@media (max-height: 500px) and (orientation: landscape) {
  .w-map-head {
    padding-block: 0;
  }

  .w-tabs {
    padding: 1px;
  }

  .w-tab {
    min-height: 44px;
    padding: 12px 14px;
    line-height: 20px;
  }
}

/* C5: all 12 designed bosses. Four per row on iPad and Mac keeps the grid
   close to Beira's height; phones keep the swipe row. */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (orientation: portrait) {
  .w-boss-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .w-boss {
    min-height: 0;
    gap: 6px;
    padding: 12px 6px;
  }

  .w-boss img {
    width: 72px;
    height: 72px;
  }

  .w-boss-name {
    font-size: 16px;
    line-height: 20px;
  }

  .w-boss-state {
    font-size: 15px;
    line-height: 18px;
  }
}

/* Pass 2: the map hint is empty (and hidden) on the World level; the step row says what to click. */
.w-map-hint[hidden] {
  display: none !important;
}
