/* Nightfall website — shared styles */
:root {
  --night: #0C0B0A;
  --black: #07070A;
  --panel: #191612;
  --panel-raised: #25201A;
  --card: rgba(10, 10, 14, 0.85);
  --card-solid: #0A0A0E;
  --gold: #C9A55C;
  --gold-light: #E3C47F;
  --gold-pale: #F1DFA9;
  --text: #F2EADB;
  --text-soft: #E6DAC1;
  --text-warm: #D8CCB2;
  --dim: #A39272;
  --dim-2: #B8AA8C;
  --dim-3: #8C7E64;
  --line: #6B5530;
  --line-dark: #3A2E1C;
  --line-soft: #4A3F30;
  --red-dark: #6E1712;
  --font-display: "Cinzel", serif;
  --font-body: "EB Garamond", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --content-max: 1440px;
  --copy-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: var(--night);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* Shared header + footer: see "Version 2 foundation" at the end of this file. */

@media (hover: hover) {
  .btn-red:hover,
  .btn-gold:hover {
    filter: brightness(1.09);
  }
}

/* Heroes */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background-image: var(--hero-image, none);
  background-position: var(--hero-position, 50% 50%);
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-overlay, linear-gradient(180deg, rgba(7, 7, 10, 0.55) 0%, rgba(7, 7, 10, 0) 22%, rgba(7, 7, 10, 0) 55%, rgba(7, 7, 10, 0.85) 100%));
  pointer-events: none;
}

.hero-inner {
  height: 360px;
  padding-bottom: 72px;
}

.hero-home {
  height: 760px;
  gap: 26px;
  padding-bottom: 200px;
  background-position: var(--hero-position, 50% 35%);
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  line-height: 62px;
  text-align: center;
  text-wrap: balance;
}

.hero .btn-red {
  position: relative;
  z-index: 1;
}

.hero-tag,
.tag-prealpha {
  display: inline-block;
  padding: 3px 8px 2px;
  background: rgba(7, 7, 10, 0.7);
  color: #CDBE9E;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}

.hero-tag {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 16px;
}

/* Stone page body and section furniture */
.page-content {
  width: 100%;
  margin: 0;
  background-image: url("../img/ornate/bg_stone.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: 720px 720px;
}

.content-inner {
  width: min(var(--copy-max), calc(100% - 160px));
  margin-inline: auto;
}

.divider-band {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../img/ornate/divider_band.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1440px 160px;
}

.plaque {
  width: 420px;
  max-width: 92vw;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-inline: 54px;
  background-image: url("../img/ornate/plaque.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
}

.plaque-title {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
}

.plaque-row {
  width: min(1280px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-inline: auto;
}

.plaque-row::before,
.plaque-row::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  min-width: 24px;
}

.plaque-row::before {
  background: linear-gradient(90deg, rgba(201, 165, 92, 0), #6B5530);
}

.plaque-row::after {
  background: linear-gradient(90deg, #6B5530, rgba(201, 165, 92, 0));
}

.plaque-row .plaque {
  font-size: 28px;
  line-height: 34px;
}

/* Buttons, tags, cards, grids */
.btn-red,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.btn-red {
  width: 560px;
  max-width: 94vw;
  height: 75px;
  padding-inline: 78px;
  background-image: url("../img/ornate/button_red.png");
  color: #F6E7C0;
  font-size: 24px;
  line-height: 30px;
}

.btn-red-small {
  width: 420px;
  height: 60px;
  padding-inline: 56px;
  font-size: 20px;
  line-height: 24px;
}

.btn-gold {
  width: 300px;
  max-width: 92vw;
  height: 60px;
  padding-inline: 42px;
  background-image: url("../img/ornate/button_gold.png");
  color: #2A1E0E;
  font-size: 18px;
  line-height: 22px;
}

.btn-gold-large {
  width: 380px;
  height: 75px;
  font-size: 19px;
  line-height: 24px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--line-dark);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050506;
}

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

.card-media .tag-prealpha {
  position: absolute;
  top: 8px;
  right: 8px;
  padding-block: 2px;
  padding-inline: 7px;
  background: rgba(7, 7, 10, 0.75);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 31px;
}

.card-text {
  margin: 0;
  color: var(--dim-2);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.card-date {
  margin: 0;
  color: var(--dim-3);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.icon-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--line-dark);
  padding: 28px 24px;
  text-align: center;
}

.icon-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.icon-card-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.icon-card-title {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.icon-card-text {
  margin: 0;
  color: var(--dim-2);
  font-size: 18px;
  line-height: 23px;
}

.grid-3,
.grid-4 {
  display: grid;
  width: 100%;
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.chip {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.7);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

.chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.chip.is-active {
  border-color: var(--gold);
  color: var(--gold-pale);
}

/* Ornate wide media frame */
.media-frame {
  position: relative;
  width: 900px;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  flex: 0 0 auto;
}

.media-frame-screen {
  position: absolute;
  left: 3.111%;
  top: 5.778%;
  width: 93.778%;
  height: 88.444%;
  overflow: hidden;
  background: #050506;
}

.media-frame-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0) 55%, rgba(7, 7, 10, 0.75) 100%);
  pointer-events: none;
}

.media-frame-ornament {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("../img/ornate/frame_wide.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.media-frame-caption {
  position: absolute;
  z-index: 3;
  left: 8%;
  bottom: 17.333%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.media-frame-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.media-frame-subtitle {
  margin: 0;
  color: #CDBE9E;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 16px;
}

/* World map viewer primitives */
.map-window {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.88);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--line-dark);
}

.map-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #050506;
}

.map-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-info {
  min-width: 0;
  padding: 24px;
  border-left: 1px solid var(--line-dark);
  background: rgba(7, 7, 10, 0.62);
}

@media (max-width: 1100px) {
  .map-window {
    grid-template-columns: 1fr;
  }

  .map-info {
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
}

/* Home news */
.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding-top: 48px;
  padding-bottom: 88px;
}

.news-card {
  min-width: 0;
}

.news-card .card-media {
  height: 230px;
}

/* Home gameplay carousel */
.gameplay-carousel {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 32px;
  overflow: hidden;
}

.carousel-preview {
  position: absolute;
  top: 70px;
  width: 600px;
  height: 340px;
  border: 1px solid var(--line-dark);
  opacity: 0.45;
  overflow: hidden;
  background: #050506;
}

.carousel-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-preview-left {
  left: -330px;
}

.carousel-preview-right {
  right: -330px;
}

.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 210px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  background: #14120F;
  cursor: pointer;
  transform: rotate(45deg);
  transform-origin: 0 0;
}

.carousel-arrow svg {
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

.carousel-arrow:hover {
  background: #241D14;
}

.carousel-arrow-left {
  left: calc(50% - 510px);
}

.carousel-arrow-right {
  left: calc(50% + 458px);
}

.play-button {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.6);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.play-button svg {
  margin-left: 5px;
}

/* Home class picker */
.class-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding-top: 48px;
  padding-bottom: 96px;
}

.class-portrait-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.class-portrait {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.class-portrait img {
  width: 120px;
  height: 120px;
  border: 2px solid var(--line);
  background: #0E0D10;
  object-fit: cover;
}

.class-portrait span {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.class-portrait.is-active img {
  border-color: var(--gold);
}

.class-portrait.is-active span {
  color: var(--gold-pale);
}

.class-picker-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.class-picker-note {
  margin: 0;
  color: var(--text-warm);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 28px;
  white-space: nowrap;
}

/* Shared footer */

/* Utility helpers */
.section-intro {
  margin: 0;
  color: var(--text-warm);
  font-size: 20px;
  line-height: 26px;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Tablet and phone behavior */
@media (max-width: 1180px) {

  .home-news-grid,
  .class-picker,
  .content-inner {
    width: calc(100% - 64px);
  }
}

@media (max-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .carousel-preview {
    display: none;
  }

  .carousel-arrow-left {
    left: 24px;
  }

  .carousel-arrow-right {
    right: 24px;
    left: auto;
  }

  .class-portrait-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 899px) {

  .hero-inner {
    height: 300px;
    padding-bottom: 62px;
  }

  .hero-home {
    height: 560px;
    padding-bottom: 154px;
  }

  .hero-title {
    font-size: clamp(34px, 8vw, 54px);
    line-height: 1.12;
    padding-inline: 20px;
  }

  .hero-tag {
    right: 10px;
    bottom: 10px;
  }

  .divider-band {
    height: 112px;
    background-size: 1440px 160px;
  }

  .plaque {
    width: min(360px, 90vw);
    height: 64px;
    padding-inline: 36px;
    font-size: 25px;
    line-height: 30px;
  }

  .plaque-row .plaque {
    width: min(340px, 78vw);
    height: 61px;
    font-size: 23px;
    line-height: 28px;
  }

  .grid-3,
  .grid-4,
  .home-news-grid {
    grid-template-columns: 1fr;
  }

  .home-news-grid,
  .class-picker,
  .content-inner {
    width: calc(100% - 32px);
  }

  .home-news-grid {
    padding-top: 34px;
    padding-bottom: 58px;
  }

  .news-card .card-media {
    height: auto;
    aspect-ratio: 408 / 230;
  }

  .gameplay-carousel {
    height: auto;
    min-height: 0;
    padding: 30px 16px 44px;
  }

  .media-frame {
    width: 100%;
  }

  .carousel-arrow {
    top: 50%;
    transform-origin: 50% 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }

  .carousel-arrow-left {
    left: 4px;
  }

  .carousel-arrow-right {
    right: 4px;
    left: auto;
  }

  .play-button {
    width: 68px;
    height: 68px;
    border-width: 2px;
  }

  .play-button svg {
    width: 22px;
    height: 26px;
  }

  .media-frame-caption {
    left: 7%;
    bottom: 13%;
  }

  .media-frame-title {
    font-size: clamp(17px, 4.8vw, 28px);
    line-height: 1.15;
  }

  .media-frame-subtitle {
    font-size: 10px;
    line-height: 13px;
  }

  .class-picker {
    gap: 30px;
    padding-top: 34px;
    padding-bottom: 64px;
  }

  .class-portrait-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .class-portrait img {
    width: min(96px, 20vw);
    height: min(96px, 20vw);
  }

  .class-portrait span {
    font-size: 14px;
    line-height: 18px;
  }

  .class-picker-footer {
    flex-direction: column;
    gap: 16px;
  }

  .class-picker-note {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 520px) {

  .btn-red {
    height: 66px;
    padding-inline: 52px;
    font-size: 19px;
  }

  .btn-gold {
    height: 56px;
    font-size: 16px;
  }

  .plaque,
  .plaque-row .plaque {
    padding-inline: 28px;
    font-size: 21px;
    line-height: 25px;
  }

  .class-portrait-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .class-portrait img {
    width: 110px;
    height: 110px;
  }
}

/* pages: game, classes, knight */
/* The Game */
.game-action-grid {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.game-action-card,
.game-platform-card {
  min-width: 0;
}

.game-card-media {
  height: 170px;
}

.game-card-media::after,
.game-platform-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-card-media::after {
  background: linear-gradient(180deg, rgba(7, 7, 10, 0) 45%, rgba(7, 7, 10, 0.75) 100%);
}

.game-platform-media::after {
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.05) 40%, rgba(7, 7, 10, 0.78) 100%);
}

.game-card-media .tag-prealpha {
  top: 10px;
  right: 10px;
  z-index: 2;
}

.game-media-icon,
.game-platform-icon {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.78);
}

.game-media-icon {
  left: 14px;
  bottom: 12px;
  width: 48px;
  height: 48px;
}

.game-media-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 24px;
}

.game-card-body h2,
.game-platform-body h2,
.game-fair-card h2,
.game-roadmap-card h2,
.class-card h2,
.classes-more-title,
.knight-headline h2,
.knight-feature h3,
.knight-signature-card h2,
.knight-skill-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}

.game-card-body h2 {
  font-size: 26px;
  line-height: 32px;
}

.game-card-body p,
.game-platform-body p,
.game-fair-card p,
.game-roadmap-card p,
.knight-headline p,
.knight-feature p,
.knight-signature-card p,
.knight-skill-card p {
  margin: 0;
}

.game-card-body p {
  color: #CDBE9E;
  font-size: 20px;
  line-height: 24px;
}

.game-platform-grid {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding: 42px 0 58px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.game-platform-media {
  height: 220px;
}

.game-platform-media .tag-prealpha {
  top: 12px;
  right: 12px;
  z-index: 2;
}

.game-platform-image-pc {
  object-position: 50% 86%;
}

.game-platform-icon {
  left: 18px;
  bottom: 14px;
  width: 54px;
  height: 54px;
}

.game-platform-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.game-platform-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 24px;
}

.game-platform-body h2 {
  font-size: 28px;
  line-height: 34px;
}

.game-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-key-row span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text-soft);
  font-size: 18px;
  line-height: 20px;
}

.game-fair-grid {
  width: min(1200px, calc(100% - 160px));
  margin-inline: auto;
  padding: 40px 0 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.game-fair-card,
.game-roadmap-card,
.knight-skill-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--line-dark);
  text-align: center;
}

.game-fair-card {
  gap: 14px;
  padding: 28px 24px 26px;
}

.game-fair-icon,
.game-roadmap-icon,
.knight-feature-icon,
.knight-signature-icon,
.knight-skill-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--panel);
}

.game-fair-icon {
  width: 78px;
  height: 78px;
}

.game-fair-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.game-fair-card h2 {
  font-size: 26px;
  line-height: 32px;
  text-align: center;
}

.game-fair-card p {
  color: #CDBE9E;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

.game-roadmap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 34px 0 64px;
}

.game-roadmap-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #CDBE9E;
  font-size: 21px;
  line-height: 26px;
  text-align: center;
}

.game-roadmap-note img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.game-roadmap-grid {
  width: min(1200px, calc(100% - 160px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.game-roadmap-card {
  gap: 12px;
  padding: 26px 24px 28px;
}

.game-roadmap-icon {
  width: 70px;
  height: 70px;
}

.game-roadmap-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.game-roadmap-step {
  color: var(--gold) !important;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 18px;
}

.game-roadmap-card h2 {
  font-size: 27px;
  line-height: 32px;
}

.game-roadmap-detail {
  color: #CDBE9E !important;
  font-size: 20px;
  line-height: 24px;
}

.game-roadmap-date {
  color: var(--text-soft) !important;
  font-size: 20px;
  line-height: 24px;
}

/* Classes */
.class-filter-row {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding: 36px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.class-filter.chip {
  min-height: 0;
  gap: 10px;
  padding: 10px 18px;
  border-color: var(--line);
  background: rgba(10, 10, 14, 0.72);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}

.class-filter.chip img {
  width: 28px;
  height: 28px;
}

.class-filter.chip.is-active {
  border-color: var(--gold);
  background: var(--panel-raised);
  box-shadow: 0 0 0 3px rgba(10, 10, 14, 0.9);
  color: var(--gold-pale);
  font-weight: 700;
}

.classes-grid {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding: 20px 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, 167px);
  justify-content: center;
  gap: 22px 18px;
}

.class-card {
  width: 167px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.82);
  box-shadow: 0 0 0 3px rgba(10, 10, 14, 0.9), 0 0 0 4px var(--line-dark);
  text-align: center;
}

a.class-card:hover {
  border-color: var(--gold-light);
}

.class-card[hidden] {
  display: none;
}

.class-card-portrait {
  position: relative;
  width: 143px;
  height: 143px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background: var(--panel);
}

.class-bust {
  width: 126px;
  height: 126px;
  max-width: none;
  object-fit: contain;
}

.class-role-badge {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--black);
}

.class-role-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.class-card h2 {
  font-size: 18px;
  line-height: 22px;
  text-align: center;
}

.classes-more {
  width: min(1120px, calc(100% - 240px));
  margin-inline: auto;
  padding: 22px 0 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.classes-more-title {
  font-size: 28px;
  line-height: 34px;
  text-align: center;
}

.class-later-list {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.class-later-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 14, 0.55);
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.class-later-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.classes-playtest {
  color: var(--text);
  font-size: 21px;
  line-height: 26px;
}

/* Knight */
.knight-intro {
  width: min(1000px, calc(100% - 64px));
  margin-inline: auto;
  padding: 46px 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.knight-portrait-card {
  width: 368px;
  height: 538px;
  flex: 0 0 368px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.86);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--line-dark);
}

.knight-portrait-card img {
  width: 340px;
  height: 510px;
  flex: 0 0 auto;
  max-width: none;
  object-fit: contain;
}

.knight-info {
  width: min(560px, 100%);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.knight-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.knight-headline h2 {
  font-size: 38px;
  line-height: 44px;
}

.knight-headline p {
  color: #CDBE9E;
  font-size: 21px;
  line-height: 26px;
}

.knight-feature {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 16px;
  border-top: 1px solid var(--line-soft);
}

.knight-feature-last {
  border-bottom: 1px solid var(--line-soft);
}

.knight-feature-icon {
  width: 58px;
  height: 58px;
  border-width: 1px;
}

.knight-feature-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.knight-feature h3 {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 28px;
}

.knight-feature p {
  color: #CDBE9E;
  font-size: 20px;
  line-height: 24px;
}

.knight-signature-section {
  padding: 34px 0 54px;
  display: flex;
  justify-content: center;
}

.knight-signature-card {
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 26px 34px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--line-dark);
}

.knight-signature-icon {
  width: 88px;
  height: 88px;
}

.knight-signature-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.knight-signature-card h2 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 38px;
}

.knight-signature-card p {
  color: #CDBE9E;
  font-size: 21px;
  line-height: 26px;
}

.knight-skills-grid {
  width: min(1200px, calc(100% - 160px));
  margin-inline: auto;
  padding: 36px 0 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.knight-skill-card {
  gap: 12px;
  padding: 24px 18px 26px;
}

.knight-skill-icon {
  width: 72px;
  height: 72px;
}

.knight-skill-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.knight-skill-card h2 {
  font-size: 23px;
  line-height: 28px;
  text-align: center;
}

.knight-skill-card p {
  color: #CDBE9E;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

.knight-test-section {
  width: min(1280px, calc(100% - 160px));
  margin-inline: auto;
  padding: 36px 0 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.knight-test-frame .media-frame-screen::after {
  background: linear-gradient(180deg, rgba(7, 7, 10, 0) 62%, rgba(7, 7, 10, 0.55) 100%);
}

.knight-test-tag {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 36px;
  background: rgba(7, 7, 10, 0.74);
}

.knight-class-nav-row {
  width: min(900px, 100%);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
}

.knight-class-nav.btn-gold {
  width: 240px;
  height: 54px;
  padding-inline: 28px;
  color: #241A10;
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
}

body[data-page="game"] .hero-tag,
body[data-page="classes"] .hero-tag,
body[data-page="knight"] .hero-tag,
.game-card-media .tag-prealpha,
.game-platform-media .tag-prealpha,
.knight-test-tag {
  padding-block: 3px;
}

.game-card-media .tag-prealpha,
.game-platform-media .tag-prealpha {
  background: rgba(7, 7, 10, 0.72);
}

@media (max-width: 1180px) {
  .game-action-grid,
  .game-platform-grid,
  .game-fair-grid,
  .game-roadmap-grid,
  .class-filter-row,
  .classes-grid,
  .knight-skills-grid,
  .knight-test-section {
    width: calc(100% - 64px);
  }

  .classes-more {
    width: calc(100% - 64px);
  }
}

@media (max-width: 1100px) {
  .knight-intro {
    flex-direction: column;
    gap: 38px;
  }

  .knight-info {
    flex-basis: auto;
  }
}

@media (max-width: 1000px) {
  .game-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-fair-grid,
  .game-roadmap-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

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

@media (max-width: 899px) {
  .game-action-grid,
  .game-platform-grid,
  .game-fair-grid,
  .game-roadmap-grid,
  .class-filter-row,
  .classes-grid,
  .classes-more,
  .knight-intro,
  .knight-skills-grid,
  .knight-test-section {
    width: calc(100% - 32px);
  }

  .game-action-grid {
    padding-top: 32px;
    padding-bottom: 42px;
  }

  .game-platform-grid,
  .game-fair-grid,
  .knight-skills-grid {
    padding-top: 30px;
    padding-bottom: 44px;
  }

  .knight-intro {
    padding-top: 34px;
    padding-bottom: 44px;
  }

  .knight-test-section {
    padding-top: 28px;
    padding-bottom: 52px;
  }
}

@media (max-width: 700px) {
  .game-action-grid,
  .game-platform-grid,
  .knight-skills-grid {
    grid-template-columns: 1fr;
  }

  .game-platform-grid {
    gap: 24px;
  }

  .game-roadmap-note {
    align-items: flex-start;
    text-align: left;
  }

  .knight-portrait-card {
    width: min(368px, 100%);
    height: auto;
    flex-basis: auto;
  }

  .knight-portrait-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .knight-headline h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.14;
  }

  .knight-feature h3 {
    font-size: 21px;
    line-height: 25px;
  }

  .knight-feature p,
  .knight-skill-card p {
    font-size: 18px;
    line-height: 22px;
  }

  .knight-signature-card {
    gap: 18px;
    padding: 22px 20px;
  }

  .knight-signature-icon {
    width: 70px;
    height: 70px;
  }

  .knight-signature-icon img {
    width: 46px;
    height: 46px;
  }

  .knight-signature-card h2 {
    font-size: 26px;
    line-height: 31px;
  }

  .knight-test-tag {
    right: 10px;
    bottom: 10px;
    font-size: 10px;
    line-height: 13px;
  }

  .knight-class-nav-row {
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .class-filter-row {
    gap: 10px;
  }

  .class-filter.chip {
    padding-inline: 12px;
    font-size: 17px;
    line-height: 20px;
  }

  .class-filter.chip img {
    width: 23px;
    height: 23px;
  }

  .classes-grid {
    gap: 18px 8px;
  }

  .class-later-chip {
    font-size: 14px;
    line-height: 17px;
  }

  .classes-more-title {
    font-size: 24px;
    line-height: 29px;
  }

  .game-card-body h2,
  .game-fair-card h2 {
    font-size: 24px;
    line-height: 29px;
  }

  .knight-class-nav.btn-gold {
    width: min(240px, 100%);
  }
}

/* pages: news, devlog, faq */
[hidden] {
  display: none !important;
}

/* News */
.news-filters {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 36px 80px 30px;
}

.news-filter {
  height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
  background: rgba(10, 10, 14, 0.82);
  box-shadow: 0 0 0 3px rgba(10, 10, 14, 0.9), 0 0 0 4px var(--line-dark);
  color: var(--text-soft);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
  white-space: nowrap;
}

.news-filter img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.news-filter:hover,
.news-filter.is-active {
  color: var(--gold-pale);
}

.news-filter.is-active {
  border-color: var(--gold);
  background: rgba(10, 10, 14, 0.9);
}

.news-featured {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 80px 78px;
}

.news-featured-frame {
  width: min(900px, 100%);
  display: block;
  color: inherit;
}

.news-featured-frame .media-frame-screen::after {
  background: linear-gradient(180deg, rgba(7, 7, 10, 0) 42%, rgba(7, 7, 10, 0.82) 100%);
}

.news-featured-frame .tag-prealpha {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 38px;
  padding-block: 2px;
  padding-inline: 7px;
  background: rgba(7, 7, 10, 0.78);
}

.news-featured-caption {
  left: 8%;
  bottom: 19.555%;
  gap: 8px;
}

.news-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.news-featured-category {
  color: var(--gold);
}

.news-featured-separator {
  color: var(--line);
}

.news-featured-date {
  color: var(--dim-2);
}

.news-featured-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 700;
  line-height: 38px;
}

.news-more {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 20px 80px 86px;
}

.news-grid {
  width: min(1280px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.news-list-card {
  width: 408px;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
}

.news-list-card a {
  color: inherit;
}

.news-list-card a:hover {
  color: var(--gold-pale);
}

.news-list-card .card-media {
  height: 190px;
}

.news-list-card .card-body {
  gap: 10px;
  padding: 18px 22px 22px;
}

.news-card-meta {
  display: flex;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.news-card-category {
  color: var(--gold);
}

.news-card-separator {
  color: var(--line);
}

.news-card-date {
  color: var(--dim-3);
}

.news-signup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 22px 80px 106px;
}

.news-signup-intro {
  color: var(--dim-2);
  font-size: 20px;
  line-height: 26px;
}

.news-discord {
  gap: 12px;
  font-size: 21px;
  line-height: 26px;
}

.news-discord img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Devlog */
.devlog-article {
  width: min(720px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  margin-inline: auto;
  padding: 58px 0 56px;
}

.devlog-meta {
  margin: 0;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
}

.devlog-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.devlog-heading {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.devlog-copy {
  margin: 0;
  color: #D8CCAF;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 32px;
}

.devlog-compare {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.compare-card {
  width: 350px;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  margin: 0;
}

.compare-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #050506;
}

.compare-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.compare-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding-block: 2px;
  padding-inline: 7px;
  background: rgba(7, 7, 10, 0.75);
  color: #CDBE9E;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.compare-caption {
  padding: 14px 16px 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.devlog-quote {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 10px 24px;
}

.devlog-quote-text {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 32px;
  font-style: italic;
  line-height: 42px;
  text-align: center;
}

.devlog-quote-rule {
  width: 160px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--line);
}

.devlog-discord {
  font-size: 22px;
  line-height: 28px;
}

.devlog-read-next {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.related-cards {
  width: min(1280px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-inline: auto;
  padding: 48px 0 88px;
}

.related-card {
  width: 408px;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
}

.related-card a {
  color: inherit;
}

.related-card a:hover {
  color: var(--gold-pale);
}

.related-card .card-media {
  height: 230px;
}

/* FAQ */
.faq-cards {
  width: min(1280px, calc(100% - 160px));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-inline: auto;
  padding: 48px 0 72px;
}

.faq-card {
  width: 400px;
  max-width: 100%;
  min-height: 150px;
  display: flex;
  flex: 0 1 auto;
  gap: 16px;
  padding: 22px;
}

.faq-card-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.faq-card-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-question {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.faq-answer {
  margin: 0;
  color: #CDBE9E;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 27px;
}

.faq-help-buttons {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 34px 16px 68px;
}

.help-button {
  width: 380px;
  max-width: 100%;
  height: 75px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 34px;
  background-image: url("../img/ornate/button_gold.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #2B1D10;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 25px;
  white-space: nowrap;
}

.help-button:hover {
  filter: brightness(1.09);
}

.help-button img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.faq-status-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 34px 16px 92px;
}

.status-card {
  width: 680px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
}

.status-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

.status-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-badge {
  width: fit-content;
  padding-block: 3px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  background: rgba(163, 20, 15, 0.28);
  color: #F6E7C0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 18px;
  text-transform: uppercase;
}

.status-label {
  margin: 0;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 23px;
}

.status-value {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

@media (max-width: 899px) {
  .news-filters {
    flex-wrap: wrap;
    gap: 14px;
    padding: 28px 16px 24px;
  }

  .news-filter {
    height: 48px;
    padding-inline: 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .news-filter img {
    width: 24px;
    height: 24px;
  }

  .news-featured {
    padding: 20px 16px 54px;
  }

  .news-featured-caption {
    left: 7%;
    bottom: 18%;
  }

  .news-featured-meta {
    gap: 8px;
    font-size: 14px;
    line-height: 18px;
  }

  .news-featured-title {
    font-size: clamp(20px, 5vw, 31px);
    line-height: 1.22;
  }

  .news-more {
    gap: 28px;
    padding: 16px 16px 60px;
  }

  .news-list-card .card-media {
    height: auto;
    aspect-ratio: 408 / 190;
  }

  .news-signup {
    gap: 24px;
    padding: 18px 16px 72px;
  }

  .devlog-article {
    gap: 34px;
    padding-top: 44px;
    padding-bottom: 46px;
  }

  .devlog-compare {
    flex-direction: column;
    align-items: center;
  }

  .compare-card {
    width: min(350px, 100%);
  }

  .devlog-read-next,
  .related-cards {
    width: calc(100% - 32px);
  }

  .related-cards {
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .related-card .card-media {
    height: auto;
    aspect-ratio: 408 / 230;
  }

  .news-list-card .card-media img,
  .related-card .card-media img {
    position: absolute;
    inset: 0;
  }

  .faq-cards {
    width: calc(100% - 32px);
    gap: 22px;
    padding: 36px 0 56px;
  }

  .faq-help-buttons {
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .faq-status-section {
    padding-top: 28px;
    padding-bottom: 66px;
  }
}

@media (max-width: 520px) {
  .news-filters {
    gap: 10px;
  }

  .news-filter {
    flex: 1 1 142px;
    justify-content: center;
    padding-inline: 10px;
    font-size: 15px;
  }

  .news-featured-caption {
    bottom: 16%;
  }

  .news-featured-meta {
    font-size: 12px;
    line-height: 16px;
  }

  .news-featured-title {
    font-size: 20px;
    line-height: 26px;
  }

  .news-discord {
    font-size: 18px;
  }

  .devlog-article {
    width: calc(100% - 28px);
  }

  .devlog-heading {
    font-size: 24px;
    line-height: 30px;
  }

  .devlog-copy {
    font-size: 19px;
    line-height: 28px;
  }

  .compare-tag {
    font-size: 12px;
    line-height: 16px;
  }

  .devlog-quote {
    padding-inline: 0;
  }

  .devlog-quote-text {
    font-size: 25px;
    line-height: 34px;
  }

  .devlog-discord {
    padding-inline: 50px;
    font-size: 18px;
    line-height: 23px;
  }

  .faq-card {
    min-height: 0;
    gap: 12px;
    padding: 18px;
  }

  .faq-card-icon {
    width: 44px;
    height: 44px;
  }

  .faq-question {
    font-size: 20px;
    line-height: 26px;
  }

  .faq-answer {
    font-size: 18px;
    line-height: 25px;
  }

  .help-button {
    height: 68px;
    gap: 8px;
    font-size: 17px;
    line-height: 22px;
  }

  .help-button img {
    width: 30px;
    height: 30px;
  }

  .status-card {
    gap: 16px;
    padding: 22px;
  }

  .status-icon {
    width: 52px;
    height: 52px;
  }

  .status-badge {
    font-size: 12px;
    line-height: 16px;
  }

  .status-label {
    font-size: 16px;
    line-height: 20px;
  }

  .status-value {
    font-size: 23px;
    line-height: 29px;
  }
}

/* page: world */
.world-map-section {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 64px 64px;
}

.world-map-shell {
  width: min(1312px, 100%);
  margin-inline: auto;
}

.world-map-window {
  width: 1312px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-color: #8A6E3C;
  background: #13110E;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.world-map-header {
  min-height: 76px;
  height: 76px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: 24px;
  border-bottom: 1px solid #3A2E1C;
}

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

.world-map-titleblock h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.world-breadcrumb {
  width: 100%;
  min-width: 0;
  height: 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}

.world-crumb {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.world-crumb:hover {
  color: var(--gold-light);
}

.world-crumb-current {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.world-crumb-sep {
  flex: 0 0 auto;
  padding-inline: 5px;
  color: #6E6350;
}

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

.world-map-tabs button {
  min-width: 0;
  padding: 9px 30px;
  border: 0;
  border-left: 1px solid #3A2E1C;
  background: transparent;
  color: #CDBE9E;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.world-map-tabs button:first-child {
  border-left: 0;
}

.world-map-tabs button.is-active {
  background: #B8924C;
  color: #1A1408;
  font-weight: 700;
}

.world-map-tabs button:disabled {
  color: #6E6350;
  cursor: default;
}

.world-map-tabs button:not(:disabled):not(.is-active):hover {
  color: var(--gold-pale);
  background: rgba(201, 165, 92, 0.08);
}

.world-map-hint {
  width: 380px;
  min-width: 0;
  flex: 0 0 380px;
  margin: 0;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  text-align: right;
}

.world-map-body {
  display: flex;
  width: 100%;
}

.world-map-canvas {
  width: 916px;
  height: 620px;
  flex: 0 0 916px;
  border-right: 1px solid #3A2E1C;
  background: #0A0909;
}

.world-map-info {
  width: 394px;
  flex: 0 0 394px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-left: 0;
  background: transparent;
}

.world-board {
  position: absolute;
  left: 50%;
  width: min(900px, calc(100% - 16px));
  transform: translateX(-50%);
}

.world-board-world {
  top: 10.65%;
  aspect-ratio: 16 / 9;
}

.world-board-region {
  top: 1.613%;
  aspect-ratio: 3 / 2;
}

.world-board-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.world-marker-layer,
.zone-marker-layer,
.zone-door-layer,
.zone-polygon-layer {
  position: absolute;
  inset: 0;
}

.world-region-marker {
  position: absolute;
  z-index: 3;
  left: var(--x);
  top: var(--y);
  width: max-content;
  max-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -8px);
}

.marker-point {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-sizing: border-box;
}

.marker-diamond {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid #1A1408;
  background: var(--marker-color, #E0A847);
  transform: rotate(45deg);
}

.world-region-marker.is-selected {
  z-index: 5;
  gap: 8px;
  transform: translate(-50%, -23px);
}

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

.world-region-marker.is-selected .marker-diamond {
  width: 22px;
  height: 22px;
}

.world-region-marker:hover .marker-point,
.world-region-marker:focus-visible .marker-point {
  box-shadow: 0 0 0 4px rgba(255, 214, 120, 0.35);
}

.marker-label {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid #3A2E1C;
  background: rgba(10, 9, 8, 0.72);
  box-sizing: border-box;
  color: #D8CCB2;
  white-space: nowrap;
}

.world-region-marker.status-playable .marker-label,
.world-region-marker.status-building .marker-label {
  border-color: var(--line);
  color: var(--text);
}

.world-region-marker:hover .marker-label,
.world-region-marker:focus-visible .marker-label {
  border-color: var(--gold-light);
  background: rgba(40, 32, 18, 0.92);
  color: var(--text);
}

.world-region-marker.is-selected .marker-label {
  padding: 6px 14px;
  border-color: var(--gold-light);
  background: rgba(10, 9, 8, 0.9);
}

.marker-title {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(9px, 1.4vw, 13px);
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: pre;
}

.world-region-marker.is-selected .marker-title {
  color: #FFF1C8;
  font-size: clamp(11px, 1.6vw, 16px);
  font-weight: 700;
  line-height: 20px;
}

.marker-subtitle {
  max-width: 100%;
  overflow: hidden;
  color: #8FD18A;
  font-family: var(--font-body);
  font-size: clamp(10px, 1.3vw, 14px);
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-legend {
  position: absolute;
  z-index: 8;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 28px);
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #3A2E1C;
  background: rgba(10, 9, 8, 0.82);
  color: #D8CCB2;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
}

.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.legend-diamond {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  transform: rotate(45deg);
}

.legend-diamond.is-small {
  width: 9px;
  height: 9px;
}

.legend-line {
  width: 18px;
  height: 0;
  flex: 0 0 auto;
  border-top: 2px dotted var(--gold-light);
}

.map-scale {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid #3A2E1C;
  background: rgba(10, 9, 8, 0.82);
  text-align: right;
}

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

.map-scale span {
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.zone-polygon-layer {
  z-index: 2;
  width: 100%;
  height: 100%;
}

.zone-polygon {
  fill: rgba(227, 196, 127, 0);
  stroke: rgba(227, 196, 127, 0);
  stroke-width: 2;
  cursor: pointer;
  pointer-events: all;
  outline: none;
}

.zone-polygon:hover,
.zone-polygon:focus-visible {
  fill: rgba(227, 196, 127, 0.13);
  stroke: var(--gold-light);
}

.zone-polygon.is-selected,
.zone-polygon.is-selected:hover,
.zone-polygon.is-selected:focus-visible {
  fill: rgba(255, 211, 110, 0.2);
  stroke: #FFD36E;
  stroke-width: 3;
}

.zone-door-layer {
  z-index: 3;
  pointer-events: none;
}

.zone-door {
  position: absolute;
  width: clamp(5px, 1.111%, 10px);
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 2px solid var(--gold-light);
  background: #1A1408;
  transform: translate(-50%, -50%);
}

.zone-marker-layer {
  z-index: 4;
  pointer-events: none;
}

.world-zone-marker {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: max-content;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -7px);
}

.zone-marker-point {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  box-sizing: border-box;
}

.world-zone-marker .marker-diamond {
  width: 14px;
  height: 14px;
}

.world-zone-marker.is-selected {
  z-index: 5;
  transform: translate(-50%, -20px);
}

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

.world-zone-marker.is-selected .marker-diamond {
  width: 18px;
  height: 18px;
}

.world-zone-marker:hover .zone-marker-point,
.world-zone-marker:focus-visible .zone-marker-point {
  box-shadow: 0 0 0 4px rgba(255, 214, 120, 0.35);
}

.zone-marker-label {
  max-width: 100%;
  overflow: hidden;
  padding: 2px 7px;
  box-sizing: border-box;
  background: rgba(10, 9, 8, 0.72);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(8px, 1.25vw, 12px);
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-zone-marker:hover .zone-marker-label,
.world-zone-marker:focus-visible .zone-marker-label {
  border: 1px solid var(--gold-light);
  background: rgba(40, 32, 18, 0.92);
}

.world-zone-marker.is-selected .zone-marker-label {
  padding: 3px 9px;
  border: 1px solid var(--gold-light);
  background: rgba(40, 32, 18, 0.92);
  color: #FFF1C8;
  font-size: clamp(10px, 1.45vw, 14px);
  font-weight: 700;
  line-height: 18px;
}

.region-nomap-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 48px 28px 28px;
}

.region-map-note {
  margin: 0 0 18px;
  color: var(--dim-2);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 22px;
  text-align: center;
}

.region-zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.region-zone-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--line-dark);
  background: rgba(10, 10, 14, 0.78);
  color: var(--text-soft);
  cursor: pointer;
  text-align: left;
}

.region-zone-card img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.region-zone-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-zone-copy strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-zone-copy span {
  overflow: hidden;
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-zone-card:hover,
.region-zone-card:focus-visible,
.region-zone-card.is-selected {
  border-color: var(--gold);
  background: rgba(40, 32, 18, 0.88);
}

.zone-view-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.zone-view-caption {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid #3A2E1C;
  background: rgba(10, 9, 8, 0.82);
  text-align: right;
}

.zone-view-caption strong {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.zone-view-caption span {
  color: var(--dim);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.zone-framed-map {
  position: absolute;
  z-index: 1;
  overflow: visible;
}

.zone-framed-image,
.zone-framed-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.zone-framed-image {
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}

.zone-framed-polygon {
  fill: rgba(255, 211, 110, 0.2);
  stroke: #FFD36E;
  stroke-width: 4;
}

.zone-nomap-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, rgba(201, 165, 92, 0.1), rgba(5, 5, 6, 0) 55%);
}

.zone-nomap-view img {
  width: min(78%, 620px);
  height: auto;
  max-height: 86%;
  object-fit: contain;
  opacity: 0.9;
}

.zone-nomap-view .tag-prealpha {
  position: absolute;
  top: 12px;
  right: 12px;
}

.zone-nomap-view p {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #3A2E1C;
  background: rgba(10, 9, 8, 0.82);
  color: var(--dim-2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.world-info-media {
  position: relative;
  width: 100%;
  height: 190px;
  flex: 0 0 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050506;
  box-sizing: border-box;
}

.world-info-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-info-media .concept-media {
  object-fit: cover;
}

.world-info-media .tag-prealpha {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  padding-block: 2px;
  padding-inline: 7px;
  background: rgba(7, 7, 10, 0.75);
}

.info-crop {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.info-crop img {
  position: absolute;
  max-width: none;
}

.world-info-titleblock {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.world-info-titleblock h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.world-info-titleblock p {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.world-info-badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  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;
}

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

.world-info-badge.is-status-building {
  border-color: #80622F;
  background: rgba(224, 168, 71, 0.13);
  color: #E0A847;
}

.world-info-badge.is-status-launch {
  border-color: #686257;
  background: rgba(184, 170, 140, 0.11);
  color: #CDBE9E;
}

.world-info-badge.is-status-later {
  border-color: #535872;
  background: rgba(138, 143, 184, 0.12);
  color: #AEB4D4;
}

.world-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.world-info-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.world-info-row img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.world-info-row span {
  min-width: 0;
  color: #D8CCB2;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
}

.world-info-action {
  width: 100%;
  height: 60px;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 30px;
  border: 0;
  background-color: transparent;
  background-image: url("../img/ornate/button_red.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #F6E7C0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.world-info-action:hover {
  filter: brightness(1.09);
}

.world-plaque-row {
  width: min(1280px, calc(100% - 160px));
}

.world-regions-section,
.world-start-section,
.world-bosses-section {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.world-regions-section {
  gap: 28px;
  padding: 30px 80px 88px;
}

.world-start-section {
  gap: 26px;
  padding: 32px 80px 90px;
}

.world-bosses-section {
  gap: 26px;
  padding: 32px 80px 100px;
}

.world-section-intro {
  margin: 0;
  color: var(--dim-2);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 26px;
  text-align: center;
}

.world-region-grid {
  width: min(1280px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.world-region-tile {
  width: 232px;
  max-width: 100%;
  height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px #3A2E1C;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.world-region-tile img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.world-region-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-region-status {
  color: var(--dim-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}

.world-region-tile.status-playable .world-region-status {
  color: var(--gold);
}

.world-region-tile.status-later {
  opacity: 0.78;
}

.world-region-tile:hover,
.world-region-tile:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--gold);
}

.world-start-grid {
  width: min(1280px, 100%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.world-photo-card {
  width: 302px;
  max-width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px #3A2E1C;
}

.world-photo-media {
  position: relative;
  height: 178px;
  flex: 0 0 178px;
  overflow: hidden;
  background: #050506;
}

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

.world-photo-media .tag-prealpha,
.world-beira-media .tag-prealpha {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  padding-block: 2px;
  padding-inline: 7px;
  background: rgba(7, 7, 10, 0.75);
}

.world-photo-card h3 {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-inline: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  text-align: center;
}

.world-boss-layout {
  width: min(1280px, 100%);
  display: flex;
  justify-content: center;
  gap: 28px;
}

.world-beira-card {
  width: 420px;
  max-width: 100%;
  height: 430px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px #3A2E1C;
}

.world-beira-media {
  position: relative;
  height: 306px;
  flex: 0 0 306px;
  overflow: hidden;
  background: #050506;
}

.world-beira-media img {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 220%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -56%);
}

.world-beira-body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.world-beira-body h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 31px;
  text-align: center;
}

.world-beira-body p {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 24px;
  text-align: center;
}

.world-boss-grid {
  width: 832px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.world-boss-card {
  width: 264px;
  max-width: 100%;
  height: 204px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.85);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px #3A2E1C;
}

.world-boss-card > img {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid var(--line);
  object-fit: contain;
}

.world-boss-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
  text-align: center;
}

.world-boss-card p {
  margin: 0;
  padding: 1px 8px;
  border: 1px solid var(--line-soft);
  color: var(--dim-3);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
}

@media (max-width: 1180px) {
  .world-map-section {
    padding-inline: 32px;
  }

  .world-plaque-row {
    width: calc(100% - 64px);
  }

  .world-regions-section,
  .world-start-section,
  .world-bosses-section {
    padding-inline: 32px;
  }
}

@media (max-width: 1100px) {
  .world-map-body {
    flex-direction: column;
  }

  .world-map-canvas {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 916 / 620;
    border-right: 0;
    border-bottom: 1px solid #3A2E1C;
  }

  .world-map-info {
    width: auto;
    flex: 0 0 auto;
    border-top: 0;
  }

  .world-boss-layout {
    flex-direction: column;
    align-items: center;
  }

  .world-boss-grid {
    width: min(832px, 100%);
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .world-map-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    row-gap: 12px;
    padding-block: 14px;
  }

  .world-map-titleblock {
    width: calc(50% - 12px);
    flex-basis: calc(50% - 12px);
  }

  .world-map-tabs {
    order: 3;
    width: 100%;
  }

  .world-map-tabs button {
    flex: 1 1 0;
    padding-inline: 14px;
  }

  .world-map-hint {
    width: calc(50% - 12px);
    flex-basis: calc(50% - 12px);
  }
}

@media (max-width: 760px) {
  .world-map-section {
    padding: 28px 16px 48px;
  }

  .world-plaque-row {
    width: calc(100% - 32px);
  }

  .world-regions-section,
  .world-start-section,
  .world-bosses-section {
    padding-inline: 16px;
  }

  .world-regions-section {
    padding-top: 24px;
    padding-bottom: 58px;
  }

  .world-start-section,
  .world-bosses-section {
    padding-top: 26px;
    padding-bottom: 62px;
  }

  .world-map-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .world-map-titleblock,
  .world-map-hint {
    width: 100%;
    flex-basis: 100%;
  }

  .world-map-hint {
    text-align: left;
  }

  .world-map-tabs button {
    padding-inline: 8px;
    font-size: 14px;
  }

  .map-legend {
    left: 8px;
    top: 8px;
    gap: 8px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 14px;
  }

  .legend-diamond {
    width: 8px;
    height: 8px;
  }

  .legend-line {
    width: 12px;
  }

  .map-scale,
  .zone-view-caption {
    right: 8px;
    bottom: 6px;
    padding: 4px 6px;
  }

  .map-scale strong,
  .zone-view-caption strong {
    font-size: 11px;
    line-height: 14px;
  }

  .map-scale span,
  .zone-view-caption span {
    font-size: 10px;
    line-height: 13px;
  }

  .region-nomap-panel {
    padding: 28px 10px 14px;
  }

  .region-zone-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .region-map-note {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 17px;
  }

  .world-map-info {
    padding: 18px;
  }

  .world-info-titleblock h3 {
    font-size: 24px;
    line-height: 30px;
  }

  .world-info-row span {
    font-size: 17px;
    line-height: 22px;
  }

  .world-photo-card {
    width: min(302px, 100%);
  }

  .world-region-tile,
  .world-boss-card {
    width: min(264px, 100%);
  }
}

@media (max-width: 420px) {
  .world-map-section {
    padding-inline: 10px;
  }

  .world-map-window {
    box-shadow: 0 0 0 3px #0A0908, 0 0 0 4px #4A3B22;
  }

  .world-map-header {
    padding-inline: 10px;
  }

  .world-map-tabs {
    padding: 3px;
  }

  .world-map-tabs button {
    font-size: 13px;
    line-height: 18px;
    padding-block: 8px;
  }

  .map-legend {
    flex-wrap: wrap;
    row-gap: 4px;
    max-width: calc(100% - 16px);
  }

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

  .world-start-grid {
    gap: 18px;
  }

  .world-boss-layout {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .world-plaque-row {
    gap: 0;
  }

  .world-plaque-row::before,
  .world-plaque-row::after {
    display: none;
  }

  .world-plaque-row .plaque {
    width: 100%;
    max-width: 100%;
    padding-inline: 30px;
  }
}

/* lead fix: small screens — only the selected marker keeps its name label, so labels never overlap */
@media (max-width: 760px) {
  .world-region-marker:not(.is-selected) .marker-label,
  .zone-marker:not(.is-selected) .zone-marker-label { display: none; }
  .world-region-marker .marker-diamond { transform: scale(1.25) rotate(45deg); }
}

/* ==========================================================================
   Version 2 foundation (lane site-v2-a) — tokens, header, menu, footer and
   shared v2 building blocks. Documented in STYLEGUIDE.md.

   Layout modes (use exactly these media queries in page CSS):
     Mac            base styles (>= 1280)
     iPad landscape @media (max-width: 1279px)
     iPad portrait  @media (max-width: 1023px)
     PHONE          @media (max-width: 767px), (max-height: 500px) and (orientation: landscape)
     NOT PHONE      @media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (orientation: portrait)
     SLIM header    @media (max-width: 1023px), (max-height: 500px) and (orientation: landscape)
     SHORT landscape@media (max-height: 500px) and (orientation: landscape)
   ========================================================================== */

:root {
  --v2-text: #F2EADB;
  --v2-text-hero: #F6EEDD;
  --v2-body: #D8CCB2;
  --v2-soft: #E6DAC1;
  --v2-muted: #CDBE9E;
  --v2-dim: #A39272;
  --v2-gold: #C9A55C;
  --v2-gold-light: #E3C47F;
  --v2-gold-pale: #F1DFA9;
  --v2-line: #6B5530;
  --v2-line-strong: #8A6E3C;
  --v2-line-dark: #3A2E1C;
  --v2-rule: #2A2216;
  --v2-panel: rgba(10, 10, 14, 0.85);
  --v2-panel-strong: rgba(10, 10, 14, 0.88);
  --v2-status: #8FD18A;

  --wrap-max: 1280px;
  --pad-x: 80px;
  --pad-l: max(var(--pad-x), env(safe-area-inset-left));
  --pad-r: max(var(--pad-x), env(safe-area-inset-right));
  --section-pt: 24px;
  --section-pb: 96px;

  --status-h: 40px;
  --nav-h: 96px;
  --bar-h: 0px;
  --crest-w: 400px;
  --crest-h: 187px;
  --crest-top: 28px;
  --logo-w: 274px;
  --logo-h: 69px;
  --logo-top: 82px;
  --nav-font: 20px;
  --nav-gap: 48px;
  --sticky-offset: 64px;
}

@media (max-width: 1279px) {
  :root {
    --wrap-max: 1100px;
    --pad-x: 64px;
    --crest-w: 320px;
    --crest-h: 150px;
    --logo-w: 220px;
    --logo-h: 55px;
    --logo-top: 70px;
  }
}

@media (max-width: 1179px) {
  :root {
    --nav-font: 17px;
    --nav-gap: 28px;
  }
}

@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  :root {
    --status-h: 32px;
    --bar-h: 72px;
    --sticky-offset: 72px;
  }
}

@media (max-width: 1023px) {
  :root {
    --wrap-max: 100%;
    --pad-x: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --pad-x: 18px;
    --bar-h: 56px;
    --sticky-offset: 56px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --wrap-max: 100%;
    --pad-x: 56px;
    --status-h: 0px;
    --bar-h: 48px;
    --sticky-offset: 48px;
  }
}

html {
  scroll-padding-top: calc(var(--sticky-offset) + 8px);
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

html.menu-open body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* ---------- Header (desk: stone nav + crest) ---------- */
#site-header {
  position: relative;
  z-index: 60;
}

.site-header-v2 {
  position: relative;
  background: #07070A;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--v2-status);
  box-shadow: 0 0 8px var(--v2-status);
}

.sh-status {
  height: var(--status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--v2-rule);
  background: #07070A;
}

.sh-status-text,
.menu-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--v2-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.sh-utility {
  display: flex;
  align-items: center;
}

.sh-utility-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 16px;
  border-right: 1px solid #3A3226;
  color: var(--v2-muted);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
}

.sh-utility-link:last-child {
  padding-right: 0;
  border-right: 0;
}

.sh-nav {
  position: relative;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--crest-w) minmax(0, 1fr);
  align-items: center;
  padding-inline: max(64px, env(safe-area-inset-left)) max(64px, env(safe-area-inset-right));
  background: url("../img/ornate/nav_bar.jpg") center / cover no-repeat;
}

.sh-nav-group {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  min-width: 0;
}

.sh-nav-right {
  justify-content: flex-end;
}

.sh-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  color: var(--v2-soft);
  font-family: var(--font-display);
  font-size: var(--nav-font);
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.sh-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: var(--v2-gold);
  transition: width 140ms ease;
}

.sh-link.is-active {
  color: var(--v2-gold-pale);
  font-weight: 700;
}

.sh-link.is-active::after {
  width: 30px;
}

.sh-crest {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: var(--crest-top);
  width: var(--crest-w);
  height: var(--crest-h);
  transform: translateX(-50%);
  background: url("../img/ornate/crest.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.sh-logo {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: var(--logo-top);
  width: var(--logo-w);
  height: var(--logo-h);
  transform: translateX(-50%);
}

.sh-logo img,
.sh-bar-logo img,
.sh-compact-logo img,
.menu-logo img,
.sf-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sh-bar {
  display: none;
}

/* Desk compact nav (fixed, slides in after 200px) */
.sh-compact {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
  align-items: center;
  padding-inline: max(64px, env(safe-area-inset-left)) max(64px, env(safe-area-inset-right));
  border-bottom: 2px solid var(--v2-line-strong);
  background: url("../img/ornate/nav_bar.jpg") center / cover no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 180ms ease, visibility 0s linear 180ms;
}

.sh-compact .sh-link {
  font-size: min(var(--nav-font), 18px);
}

.sh-compact-logo {
  justify-self: center;
  display: block;
  width: 160px;
  height: 40px;
}

html.is-compact .sh-compact {
  transform: none;
  visibility: visible;
  transition: transform 180ms ease;
}

@media (hover: hover) {
  .sh-link:hover,
  .sh-utility-link:hover {
    color: var(--v2-gold-pale);
  }

  .sh-link:hover::after {
    width: 30px;
  }
}

/* ---------- Header (slim: < 1024 or short landscape) ---------- */
@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  #site-header {
    position: sticky;
    top: calc(-1 * var(--status-h));
  }

  .sh-status {
    justify-content: center;
    padding-inline: 12px;
  }

  .sh-status-text {
    gap: 8px;
    font-size: 14px;
  }

  .status-dot {
    width: 8px;
    height: 8px;
  }

  .sh-utility,
  .sh-nav,
  .sh-crest,
  .sh-logo,
  .sh-compact {
    display: none;
  }

  .sh-bar {
    height: var(--bar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
    border-bottom: 2px solid var(--v2-line-strong);
    background: url("../img/ornate/nav_bar.jpg") center / cover no-repeat;
  }

  .sh-bar-logo {
    display: block;
    flex: 0 1 192px;
    min-width: 64px;
    height: 48px;
    margin-right: auto;
  }

  .sh-bar-join {
    display: none;
    flex: 0 0 auto;
  }
}

.menu-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--v2-line);
  background: rgba(10, 9, 8, 0.7);
  cursor: pointer;
}

.menu-icon {
  width: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-icon i {
  display: block;
  height: 2px;
  background: var(--v2-gold-light);
}

@media (max-width: 767px) {
  .sh-bar {
    gap: 8px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  .sh-bar .btn-xs {
    padding-inline: 16px;
  }

  .sh-status-text {
    font-size: 14px;
    line-height: 16px;
  }

  .sh-bar-logo {
    flex-basis: 144px;
    height: 36px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .sh-status {
    display: none;
  }

  .sh-bar {
    padding-left: var(--pad-l);
    padding-right: var(--pad-r);
  }

  .sh-bar-logo {
    flex-basis: 128px;
    height: 32px;
  }
}

/* Phone bar CTA: appears once the hero has scrolled past (phone + short landscape). */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  html.is-past-hero .sh-bar-join {
    display: inline-flex;
  }
}

/* ---------- Full-screen menu panel ---------- */
.menu-panel {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.78), rgba(7, 7, 10, 0.92)),
    url("../img/ornate/bg_stone.jpg") center / 520px 520px repeat,
    #0C0B0A;
  opacity: 0;
  transition: opacity 160ms ease;
}

.menu-panel.is-open {
  opacity: 1;
}

.menu-panel-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin-inline: auto;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

.menu-top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--v2-line-dark);
}

.menu-logo {
  display: block;
  width: 160px;
  height: 40px;
}

.menu-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--v2-line);
  background: rgba(10, 9, 8, 0.7);
  cursor: pointer;
}

.menu-status {
  justify-content: center;
  font-size: 15px;
  white-space: normal;
  text-align: center;
}

.menu-pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(10, 10, 14, 0.82);
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.menu-row-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.menu-row-label {
  flex: 1 1 auto;
}

.menu-row-arrow {
  color: var(--v2-gold);
  font-size: 28px;
}

.menu-row.is-active {
  border-color: var(--v2-gold);
  background: rgba(201, 165, 92, 0.12);
  color: var(--v2-gold-pale);
}

.menu-community {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.menu-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.7);
  color: var(--v2-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.menu-cta {
  align-self: center;
  margin-top: auto;
}

@media (max-width: 767px) {
  .menu-cta.btn-xl {
    width: 354px;
    height: 60px;
    padding-inline: 44px;
    font-size: 17px;
    line-height: 22px;
  }
}

@media (hover: hover) {
  .menu-row:hover,
  .menu-chip:hover {
    border-color: var(--v2-gold);
    color: var(--v2-gold-pale);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .menu-panel-inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    align-content: start;
    column-gap: 24px;
    row-gap: 12px;
    padding-left: var(--pad-l);
    padding-right: var(--pad-r);
  }

  .menu-top {
    grid-column: 1 / -1;
    height: 48px;
  }

  .menu-pages {
    grid-column: 1;
    grid-row: 2 / span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .menu-row {
    min-height: 52px;
    font-size: 18px;
    gap: 10px;
    padding: 4px 10px;
  }

  .menu-row-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .menu-row-arrow {
    display: none;
  }

  .menu-status,
  .menu-community,
  .menu-cta {
    grid-column: 2;
  }

  .menu-cta,
  .menu-cta.btn-xl {
    width: 100%;
    height: 56px;
    margin-top: 0;
    padding-inline: 40px;
    align-self: start;
    font-size: 16px;
    line-height: 20px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #07070A;
  color: var(--v2-muted);
}

.sf-stone {
  height: 40px;
  background: url("../img/ornate/nav_bar.jpg") center / cover no-repeat;
}

.sf-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 36px;
}

.sf-brand {
  width: 380px;
  max-width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.sf-brand .sf-logo {
  display: block;
  width: 200px;
  height: 50px;
}

.sf-brand .sf-logo img {
  object-position: left center;
}

.sf-about {
  margin: 0;
  color: var(--v2-muted);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
}

.sf-cols {
  display: flex;
  gap: 80px;
}

.sf-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.sf-col-title {
  margin: 0;
  color: var(--v2-gold);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.sf-col a {
  color: var(--v2-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.sf-legal {
  border-top: 1px solid var(--v2-rule);
}

.sf-legal-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

.sf-legal p {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.sf-compact {
  display: none;
}

@media (hover: hover) {
  .sf-col a:hover,
  .sf-legal a:hover,
  .sf-compact a:hover {
    color: var(--v2-gold-light);
  }
}

@media (pointer: coarse) {
  .sf-col {
    gap: 0;
  }

  .sf-col-title {
    margin-bottom: 4px;
  }

  .sf-col a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 1023px) {
  .sf-main {
    flex-direction: column;
    gap: 40px;
  }

  .sf-cols {
    justify-content: space-between;
    gap: 24px;
  }

  .sf-legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .sf-stone,
  .sf-main,
  .sf-legal {
    display: none;
  }

  .site-footer {
    border-top: 1px solid var(--v2-rule);
  }

  .sf-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    padding-left: var(--pad-l);
    padding-right: var(--pad-r);
    text-align: center;
  }

  .sf-compact .sf-logo {
    display: block;
    width: 160px;
    height: 40px;
  }

  .sf-compact-links {
    margin: 0;
    color: var(--v2-muted);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 20px;
  }

  .sf-compact-links a {
    display: inline-block;
    padding-block: 12px;
  }

  .sf-compact-legal {
    margin: 0;
    color: var(--v2-dim);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 18px;
  }
}

/* ---------- Shared v2 building blocks ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap-max) + var(--pad-l) + var(--pad-r));
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.section {
  padding-top: var(--section-pt);
  padding-bottom: var(--section-pb);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.section-head-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
}

.section-title {
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.section-title-sm {
  font-size: 30px;
  line-height: 36px;
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.title-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.title-rule::after {
  content: "";
  height: 1px;
  flex: 1 1 0;
  min-width: 24px;
  background: linear-gradient(90deg, var(--v2-line), rgba(107, 85, 48, 0));
}

.title-rule.is-centered::before {
  content: "";
  height: 1px;
  flex: 1 1 0;
  min-width: 24px;
  background: linear-gradient(90deg, rgba(107, 85, 48, 0), var(--v2-line));
}

.panel {
  border: 1px solid var(--v2-line);
  background: var(--v2-panel);
}

.panel-strong {
  background: var(--v2-panel-strong);
}

.panel-framed {
  border-color: var(--v2-line-strong);
  background: var(--v2-panel-strong);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.panel-dashed {
  border: 1px dashed #5A4A2E;
  background: rgba(10, 10, 14, 0.6);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--v2-line);
  background: rgba(12, 11, 10, 0.75);
  color: var(--v2-gold-pale);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

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

.tag {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  background: rgba(7, 7, 10, 0.75);
  color: var(--v2-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}

.tag-bottom {
  top: auto;
  bottom: 10px;
  right: 10px;
}

.cat-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 2px 9px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 9, 8, 0.85);
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.cat-tag-gold {
  border-color: var(--v2-gold);
  background: var(--v2-gold);
  color: #1A1408;
}

.btn-red,
.btn-gold {
  max-width: 100%;
}

.btn-xl {
  width: 520px;
  height: 72px;
  padding-inline: 64px;
  font-size: 22px;
  line-height: 28px;
}

.btn-l {
  width: 300px;
  height: 62px;
  padding-inline: 40px;
  font-size: 19px;
  line-height: 24px;
}

.btn-m {
  width: 270px;
  height: 58px;
  padding-inline: 36px;
  font-size: 18px;
  line-height: 22px;
}

.btn-s {
  width: 240px;
  height: 50px;
  padding-inline: 32px;
  font-size: 16px;
  line-height: 20px;
}

.btn-xs {
  width: auto;
  height: 44px;
  padding-inline: 26px;
  font-size: 15px;
  line-height: 18px;
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--v2-soft);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 26px;
}

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

.shot-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.shot-tile-media {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  background: #050506;
}

.shot-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-tile-caption {
  margin: 0;
  color: var(--v2-soft);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.v2-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: var(--gap, 24px);
}

.v2-grid-2 { --cols: 2; }
.v2-grid-3 { --cols: 3; }
.v2-grid-4 { --cols: 4; }

/* Phone / not-phone visibility helpers */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .not-phone {
    display: none !important;
  }
}

@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (orientation: portrait) {
  .phone-only {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .v2-grid-3,
  .v2-grid-4 {
    --cols: 2;
  }
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  :root {
    --section-pt: 0px;
    --section-pb: 48px;
  }

  .page-content {
    background-size: 520px 520px;
  }

  .section-title,
  .title-rule {
    font-size: 24px;
    line-height: 30px;
  }

  .section-sub {
    font-size: 17px;
    line-height: 22px;
  }

  .section-link {
    font-size: 16px;
    line-height: 20px;
  }

  .badge-row {
    gap: 6px;
  }

  .badge {
    gap: 5px;
    padding: 4px 8px 4px 5px;
    font-size: 14px;
    line-height: 16px;
  }

  .badge img {
    width: 20px;
    height: 20px;
  }

  .tag {
    top: 5px;
    right: 5px;
    padding: 1px 5px;
  }

  .tag-bottom {
    top: auto;
    bottom: 6px;
    right: 6px;
  }

  .icon-list li {
    font-size: 18px;
    line-height: 22px;
  }

  .shot-tile-media {
    height: 104px;
  }
}

@media (max-width: 767px) {
  .v2-grid-2,
  .v2-grid-3 {
    --cols: 1;
  }

  .v2-grid-4 {
    --cols: 2;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .v2-grid-2 { --cols: 2; }
  .v2-grid-3 { --cols: 3; }
  .v2-grid-4 { --cols: 4; }
}

.sh-bar-logo img {
  object-position: left center;
}

/* Retina (Mac / iPad / iPhone): 2x ornate art */
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
  .sh-crest {
    background-image: url("../img/ornate/crest-2x.png");
  }

  .sh-nav,
  .sh-compact,
  .sh-bar,
  .sf-stone {
    background-image: url("../img/ornate/nav_bar-2x.jpg");
  }

  .btn-red {
    background-image: url("../img/ornate/button_red-2x.png");
  }

  .btn-gold {
    background-image: url("../img/ornate/button_gold-2x.png");
  }

  .plaque {
    background-image: url("../img/ornate/plaque-2x.png");
  }

  .divider-band {
    background-image: url("../img/ornate/divider_band-2x.jpg");
  }
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-a) — screen chrome and
   shared components. Documented in STYLEGUIDE.md ("Version 3").

   Extra queries used here (copy them exactly):
     IPAD PORTRAIT  @media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait)
     PHONE PORTRAIT @media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait)
     SHORT landscape @media (max-height: 500px) and (orientation: landscape)   (always last, wins)
   ========================================================================== */

:root {
  --tabbar-h: 0px;
  --otp-h: 0px;
}

/* ---------- Screen tokens ---------- */
@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  :root {
    --status-h: 0px;
    --bar-h: 64px;
    --sticky-offset: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --bar-h: 52px;
    --sticky-offset: 52px;
  }
}

@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  :root {
    --tabbar-h: calc(60px + env(safe-area-inset-bottom));
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --bar-h: 44px;
    --sticky-offset: 44px;
    --tabbar-h: 0px;
  }
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  html.has-otp {
    --otp-h: 56px;
    scroll-padding-top: calc(var(--sticky-offset) + var(--otp-h) + 8px);
  }
}

/* ---------- Slim bar (iPad portrait 64px · iPhone portrait 52px · iPhone landscape 44px) ---------- */
.sh-tabs,
.tabbar,
.hero-status {
  display: none;
}

@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  .sh-status {
    display: none;
  }

  .sh-bar {
    gap: 16px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .sh-bar-logo {
    flex: 0 0 auto;
    width: 136px;
    height: 34px;
    min-width: 0;
    margin-right: 0;
  }

  .sh-tabs {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .sh-tab {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: var(--v2-soft);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
  }

  .sh-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--v2-gold);
    transform: translateX(-50%);
  }

  .sh-tab.is-active {
    color: var(--v2-gold-pale);
  }

  .sh-tab.is-active::after {
    width: 24px;
  }

  .sh-tab-short {
    display: none;
  }

  .sh-join {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }

  .sh-join-pill {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 18px;
    border: 1px solid #E07A5F;
    border-radius: 999px;
    background: linear-gradient(180deg, #B3261E 0%, #7E1610 100%);
    box-shadow: inset 0 1px 0 rgba(255, 200, 170, 0.35), 0 2px 8px rgba(0, 0, 0, 0.5);
    color: #FFF3E6;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

@media (hover: hover) {
  .sh-tab:hover {
    color: var(--v2-gold-pale);
  }

  .sh-join:hover .sh-join-pill {
    background: linear-gradient(180deg, #C9332A 0%, #8E1C14 100%);
  }
}

/* iPad portrait: all 6 text tabs + Join pill */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .sh-tabs {
    display: flex;
  }

  .sh-tab-ipad {
    display: inline-flex;
  }

  .hero-status {
    display: flex;
  }
}

@media (min-width: 768px) and (max-width: 879px) and (min-height: 501px), (min-width: 768px) and (max-width: 879px) and (orientation: portrait) {
  .sh-bar {
    gap: 8px;
  }

  .sh-bar-logo {
    width: 112px;
    height: 28px;
  }

  .sh-tab {
    padding: 0 7px;
  }
}

/* iPhone portrait: logo + Join pill on top, tab bar at the bottom */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .sh-bar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .sh-bar-logo {
    width: 128px;
    height: 32px;
  }

  body {
    padding-bottom: var(--tabbar-h);
  }

  .hero-status {
    display: flex;
  }

  .tabbar {
    position: fixed;
    z-index: 80;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--tabbar-h);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    border-top: 1px solid var(--v2-line-strong);
    background:
      linear-gradient(180deg, rgba(14, 12, 10, 0.94), rgba(7, 7, 10, 0.98)),
      url("../img/ornate/nav_bar.jpg") center / cover no-repeat;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.55);
  }

  .menu-row-in-tabbar {
    display: none;
  }
}

.tabbar-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 60px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--v2-muted);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tabbar-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.72;
  filter: saturate(0.6);
}

.tabbar-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
}

.tabbar-dots {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.8;
}

.tabbar-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v2-gold-light);
}

.tabbar-item.is-active {
  color: var(--v2-gold-pale);
}

.tabbar-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  height: 2px;
  background: var(--v2-gold);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(227, 196, 127, 0.7);
}

.tabbar-item.is-active .tabbar-icon,
.tabbar-item.is-active .tabbar-dots {
  opacity: 1;
  filter: none;
}

/* iPhone landscape: 44px bar with Game · Classes · World · News · More */
@media (max-height: 500px) and (orientation: landscape) {
  .sh-bar {
    gap: 10px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    border-bottom-width: 1px;
  }

  .sh-bar-logo {
    width: 112px;
    height: 28px;
  }

  .sh-tabs {
    display: flex;
  }

  .sh-tab-ipad {
    display: none;
  }

  .sh-tab-land {
    display: inline-flex;
  }

  .sh-tab {
    padding: 0 9px;
    font-size: 14px;
  }

  .sh-tab::after {
    bottom: 4px;
  }

  .sh-tab-long {
    display: none;
  }

  .sh-tab-short {
    display: inline;
  }

  .sh-join-pill {
    height: 30px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-status,
  .tabbar {
    display: none;
  }
}

/* Status line inside the hero (replaces the status strip on iPad portrait + iPhone portrait) */
.hero-status {
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--v2-soft);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-status .status-dot {
  width: 8px;
  height: 8px;
}

/* ---------- Visibility helpers (v3) ---------- */
@media (min-width: 1280px) {
  .below-mac {
    display: none !important;
  }
}

@media (max-width: 1279px) {
  .mac-only {
    display: none !important;
  }
}

@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .not-portrait-phone {
    display: none !important;
  }
}

@media (min-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .portrait-phone-only {
    display: none !important;
  }
}

/* ---------- Swipe row ---------- */
.swipe {
  --per: 4;
  --swipe-gap: 16px;
  display: flex;
  gap: var(--swipe-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.swipe::-webkit-scrollbar {
  display: none;
}

.swipe > .swipe-item {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--swipe-gap)) / var(--per));
  min-width: 0;
  scroll-snap-align: start;
}

.swipe[hidden],
.swipe > .swipe-item[hidden] {
  display: none;
}

.swipe:focus-visible {
  outline: 2px solid var(--v2-gold-light);
  outline-offset: 4px;
}

.swipe-2row {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--swipe-gap)) / var(--per));
}

.swipe-2row > .swipe-item {
  flex: none;
}

.swipe-nav {
  display: none;
}

@media (max-width: 1279px) {
  .swipe { --per: 3.2; }
}

@media (max-width: 1023px) {
  .swipe { --per: 2.2; }
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .swipe {
    --per: 1.18;
    --swipe-gap: 12px;
    margin-left: calc(-1 * var(--pad-l));
    margin-right: calc(-1 * var(--pad-r));
    padding-left: var(--pad-l);
    padding-right: var(--pad-r);
    scroll-padding-inline: var(--pad-l) var(--pad-r);
  }

  .swipe.swipe-contained {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .swipe { --per: 2.3; }
}

@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (orientation: portrait) {
  .swipe-nav.is-needed {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
  }
}

.swipe-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 10, 14, 0.85);
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.swipe-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) {
  .swipe-arrow:not(:disabled):hover {
    border-color: var(--v2-gold);
    color: var(--v2-gold-pale);
  }
}

/* ---------- Before / after slider ---------- */
.ba {
  --ba-pos: 50%;
  position: relative;
  margin: 0;
  min-width: 0;
}

.ba[hidden] {
  display: none;
}

.ba-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  background: #050506;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
  margin: 0;
}

.ba-after img,
.ba-before img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 44px;
  margin-left: -22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: ew-resize;
  touch-action: none;
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: var(--v2-gold-pale);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--v2-gold-pale);
  border-radius: 50%;
  background: rgba(12, 11, 10, 0.88);
  color: var(--v2-gold-pale);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.ba-handle:focus-visible {
  outline: none;
}

.ba-handle:focus-visible .ba-knob {
  outline: 3px solid var(--v2-gold-light);
  outline-offset: 3px;
}

.ba-label {
  position: absolute;
  z-index: 4;
  max-width: calc(100% - 16px);
  padding: 2px 7px;
  background: rgba(7, 7, 10, 0.82);
  color: var(--v2-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  pointer-events: none;
}

.ba-label-before {
  top: 8px;
  left: 8px;
}

.ba-label-after {
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(201, 165, 92, 0.6);
  color: var(--v2-gold-pale);
}

.ba-caption {
  margin: 10px 0 0;
  color: var(--v2-soft);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.ba.is-dragging .ba-stage {
  cursor: ew-resize;
}

@media (hover: hover) and (pointer: fine) {
  .ba-stage {
    cursor: ew-resize;
  }
}

.ba-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ba-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v2-muted);
  text-align: left;
  cursor: pointer;
}

.ba-thumb[hidden] {
  display: none;
}

.ba-thumb-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  background: #050506;
}

.ba-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.ba-thumb-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

.ba-thumb.is-active .ba-thumb-media {
  border-color: var(--v2-gold);
  box-shadow: 0 0 0 1px var(--v2-gold);
}

.ba-thumb.is-active .ba-thumb-media img {
  opacity: 1;
}

.ba-thumb.is-active {
  color: var(--v2-gold-pale);
}

.ba-thumb:focus-visible {
  outline: 2px solid var(--v2-gold-light);
  outline-offset: 4px;
}

@media (hover: hover) {
  .ba-thumb:hover .ba-thumb-media img {
    opacity: 1;
  }

  .ba-thumb:hover {
    color: var(--v2-gold-pale);
  }
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .ba-caption {
    margin-top: 8px;
    font-size: 16px;
    line-height: 20px;
  }

  .ba-label {
    padding: 1px 5px;
  }

  .ba-label-before {
    top: 6px;
    left: 6px;
  }

  .ba-label-after {
    right: 6px;
    bottom: 6px;
  }
}

/* ---------- Lightbox ---------- */
html.lbx-open,
html.lbx-open body {
  overflow: hidden;
}

.lbx {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(5, 5, 7, 0.96);
  opacity: 0;
  transition: opacity 160ms ease;
}

.lbx[hidden] {
  display: none;
}

.lbx.is-open {
  opacity: 1;
}

.lbx-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(64px, env(safe-area-inset-top)) max(72px, env(safe-area-inset-right)) 8px max(72px, env(safe-area-inset-left));
}

.lbx-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--v2-line-strong);
  background: #050506;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.lbx-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.lbx-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  color: var(--v2-soft);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.lbx-tag {
  padding: 2px 7px;
  border: 1px solid var(--v2-line);
  background: rgba(7, 7, 10, 0.75);
  color: var(--v2-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 16px;
  white-space: nowrap;
}

.lbx-tag[hidden] {
  display: none;
}

.lbx-count {
  margin: 0;
  color: var(--v2-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}

.lbx-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
  border: 1px solid var(--v2-line-strong);
  background: rgba(10, 9, 8, 0.85);
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lbx-btn[hidden] {
  display: none;
}

.lbx-close {
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  padding: 0;
}

.lbx-prev,
.lbx-next {
  top: 50%;
  transform: translateY(-50%);
}

.lbx-prev {
  left: max(12px, env(safe-area-inset-left));
}

.lbx-next {
  right: max(12px, env(safe-area-inset-right));
}

.lbx-btn:focus-visible {
  outline: 2px solid var(--v2-gold-light);
  outline-offset: 3px;
}

@media (hover: hover) {
  .lbx-btn:hover {
    border-color: var(--v2-gold);
    color: var(--v2-gold-pale);
  }
}

a.lb {
  cursor: zoom-in;
}

@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .lbx-stage {
    padding: max(64px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));
  }

  .lbx-prev,
  .lbx-next {
    top: auto;
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px));
    transform: none;
  }

  .lbx-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
  }

  .lbx-caption {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .lbx-stage {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 0;
  }

  .lbx-bar {
    padding-top: 6px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .lbx-caption {
    font-size: 16px;
    line-height: 20px;
  }
}

/* ---------- "On this page" chips ---------- */
.otp {
  display: none;
}

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .otp {
    position: sticky;
    z-index: 40;
    top: var(--bar-h);
    display: flex;
    gap: 8px;
    height: var(--otp-h);
    align-items: center;
    padding: 0 var(--pad-r) 0 var(--pad-l);
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--v2-line-dark);
    background: rgba(7, 7, 10, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .otp::-webkit-scrollbar {
    display: none;
  }
}

.otp.otp-all {
  position: sticky;
  z-index: 40;
  top: var(--sticky-offset);
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 0 var(--pad-r) 0 var(--pad-l);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--v2-line-dark);
  background: rgba(7, 7, 10, 0.94);
}

.otp a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--v2-line-dark);
  background: rgba(14, 13, 12, 0.9);
  color: var(--v2-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.otp a.is-active {
  border-color: var(--v2-gold);
  background: rgba(201, 165, 92, 0.14);
  color: var(--v2-gold-pale);
}

/* ---------- Accordion ---------- */
details.acc {
  border: 1px solid var(--v2-line);
  background: var(--v2-panel);
}

details.acc + details.acc {
  margin-top: 8px;
}

details.acc > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 52px 12px 18px;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}

details.acc > summary::-webkit-details-marker {
  display: none;
}

details.acc > summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--v2-gold-light);
  border-bottom: 2px solid var(--v2-gold-light);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 140ms ease;
}

details.acc[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

details.acc[open] {
  border-color: var(--v2-line-strong);
}

details.acc[open] > summary {
  color: var(--v2-gold-pale);
}

details.acc > summary:focus-visible {
  outline: 2px solid var(--v2-gold-light);
  outline-offset: -2px;
}

.acc-body {
  padding: 0 18px 18px;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 26px;
}

.acc-body > :first-child { margin-top: 0; }
.acc-body > :last-child { margin-bottom: 0; }

@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  details.acc > summary {
    min-height: 52px;
    padding: 10px 48px 10px 14px;
    font-size: 17px;
    line-height: 22px;
  }

  .acc-body {
    padding: 0 14px 14px;
    font-size: 17px;
    line-height: 24px;
  }
}

/* ---------- Filter chips ---------- */
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.fchip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.fchip.is-active {
  border-color: var(--v2-gold);
  background: rgba(201, 165, 92, 0.14);
  color: var(--v2-gold-pale);
}

@media (hover: hover) {
  .fchip:hover {
    border-color: var(--v2-gold);
    color: var(--v2-gold-pale);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .swipe,
  .otp,
  html {
    scroll-behavior: auto;
  }

  .lbx,
  .menu-panel,
  .sh-compact,
  .sh-link::after,
  details.acc > summary::after {
    transition: none !important;
  }
}

/* Lead fix 2026-11-27: scroll containers must be positioned, otherwise absolutely
   positioned children (e.g. .visually-hidden spans, picture tags) escape the
   horizontal scroller and widen the page — on real phones the browser then zooms
   the whole page out. Keep this rule last. */
.swipe,
.swipe-item {
  position: relative;
}
html,
body {
  max-width: 100%;
}
/* Belt and braces: pin hidden text to its containing block's corner instead of its
   static spot (which may be far right inside a scroller). */
.visually-hidden {
  top: 0 !important;
  left: 0 !important;
}
/* ==========================================================================
   Fix pass 2026-11-27 (lane A: shared chrome)
   ========================================================================== */

/* Outside links not ready yet (NF_LINKS in site.js, decision 1) */
[data-todo][hidden] {
  display: none !important;
}

[data-todo].is-soon {
  cursor: pointer;
}

.nf-toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: calc(var(--tabbar-h, 0px) + 20px);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--v2-gold);
  background: rgba(10, 9, 8, 0.96);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  color: var(--v2-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  pointer-events: none;
}

.nf-toast.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .nf-toast,
  .nf-toast.is-shown {
    transition: none;
  }
}

/* Honesty labels (D11, decision 10): picture tags >= 13px, slider labels 14px, stronger contrast */
.tag {
  border: 1px solid rgba(201, 165, 92, 0.45);
  background: rgba(7, 7, 10, 0.88);
  color: var(--v2-text);
  font-size: 13px;
  line-height: 17px;
}

.ba-label {
  background: rgba(7, 7, 10, 0.9);
  color: var(--v2-text);
  font-size: 14px;
  line-height: 18px;
}

.ba-label-after {
  border: 1px solid var(--v2-gold);
  background: rgba(20, 15, 6, 0.94);
  color: #FFE9B0;
  font-weight: 700;
}

/* Thumbnails (D14): a small corner tag that covers less of the picture */
.tag-mini,
.ba-thumb .tag {
  top: auto;
  bottom: 4px;
  right: 4px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 16px;
}

/* Slim-bar logo (D4): bigger, with a dark halo so it reads on the stone */
.sh-bar-logo img {
  filter: brightness(1.12) drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(0, 0, 0, 0.85));
}

@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .sh-bar-logo {
    width: 156px;
    height: 39px;
  }
}

@media (min-width: 768px) and (max-width: 879px) and (min-height: 501px), (min-width: 768px) and (max-width: 879px) and (orientation: portrait) {
  .sh-bar-logo {
    width: 140px;
    height: 35px;
  }
}

@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .sh-bar-logo {
    width: 156px;
    height: 39px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .sh-bar-logo {
    width: 144px;
    height: 36px;
  }
}

/* Phone footer: second, smaller link line (only links with a real URL) */
.sf-compact-more {
  margin-top: -10px !important;
  font-size: 15px !important;
}

/* Lead fix (re-test): logo link must be a 44px tap target in the slim bars. */
@media (max-width: 1023px), (max-height: 500px) and (orientation: landscape) {
  .sh-bar-logo { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Pass 2 (decision 17): one small "Portraits are concept art." line under a section heading. */
.art-note {
  margin: 6px 0 0;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 20px;
}
