/* War Room L-PAGE — black command-center landing overlay
   Brand red/yellow for WAR ROOM; warm charcoal browns for maps (site surfaces) */

@font-face {
  font-family: 'Deception';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/deception-scanline.woff') format('woff');
}

.app-header__landing-btn {
  height: 28px;
  margin-left: 6px;
  padding: 0 var(--s-3, 10px);
  border: 1px solid var(--c-border, #2a2521);
  border-radius: var(--r-sm, 4px);
  background: var(--c-surface-2, #221e1b);
  color: var(--c-text-2, #a89f98);
  font-size: var(--t-11, 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  flex-shrink: 0;
}

.app-header__landing-btn:hover,
.app-header__landing-btn.is-active,
.app-header__landing-btn[aria-pressed='true'] {
  color: #f7931a;
  border-color: rgba(247, 147, 26, 0.45);
  background: rgba(247, 147, 26, 0.12);
}

html[data-wr-public='1'] .app-header__landing-btn,
body.wr-public-shell .app-header__landing-btn {
  display: none !important;
}

/* —— Overlay stage —— */
.landing-page {
  --landing-blue: #1da1f2;
  --landing-red: #f4212e;
  --landing-yellow: #ffad1f;
  --landing-brown: #6b5e52;
  --landing-brown-hot: #8a7b6c;
  --landing-brown-dim: #2a2521;

  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.5vh, 40px);
  padding: clamp(40px, 5vh, 72px) clamp(16px, 4vw, 48px);
  background: #000;
  color: #f2ede8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.landing-page.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.landing-page[hidden] {
  display: none !important;
}

.landing-page.is-open[hidden] {
  display: flex !important;
}

body.landing-page-open {
  overflow: hidden;
}

.landing-page__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.landing-page__close:hover {
  color: #fff;
  border-color: rgba(247, 147, 26, 0.55);
}

/* —— Thailand background: flat, one color, dimmed, zoomed slow slide —— */
.landing-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-page__bg-slide {
  position: absolute;
  width: 175%;
  height: 175%;
  left: -35%;
  top: -30%;
  opacity: 0.42;
  animation: landing-th-slide 55s ease-in-out infinite alternate;
  will-change: transform;
}

.landing-page__bg-slide svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.landing-page__bg-slide .landing-th-province {
  fill: #241f1c;
  stroke: #5c5046;
  stroke-width: 1.15;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@keyframes landing-th-slide {
  0% {
    transform: translate(0, 0) scale(1.08);
  }
  33% {
    transform: translate(-5%, 4%) scale(1.14);
  }
  66% {
    transform: translate(4%, -3%) scale(1.1);
  }
  100% {
    transform: translate(-2%, 5%) scale(1.16);
  }
}

/* —— Title stack —— */
.landing-page__title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  gap: 0.35em;
  user-select: none;
  flex-shrink: 0;
}

.landing-page__eyebrow {
  display: block;
  font-family: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: #ffffff;
  text-transform: uppercase;
}

.landing-page__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  margin: 0.15em 0 0.1em;
}

.landing-page__brand-logo {
  height: clamp(28px, 4.5vw, 48px);
  width: auto;
  display: block;
  object-fit: contain;
}

.landing-page__brand-name {
  font-family: 'Deception', 'Share Tech Mono', 'JetBrains Mono', sans-serif;
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--landing-blue);
  text-transform: none;
}

.landing-page__warroom {
  display: flex;
  justify-content: center;
  gap: 0.18em;
  font-family: 'Deception', 'Share Tech Mono', 'JetBrains Mono', sans-serif;
  font-size: clamp(36px, 7.5vw, 78px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-page__war {
  color: var(--landing-red);
}

.landing-page__room {
  color: var(--landing-yellow);
}

.landing-page__select {
  display: block;
  margin-top: 0.55em;
  font-family: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: #ffffff;
  text-transform: uppercase;
}

/* —— Maps: vertically centered with title, overlapping frames —— */
.landing-page__maps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1080px, 100%);
  flex: 0 1 auto;
  max-height: min(46vh, 420px);
  min-height: 0;
  gap: 0;
}

.landing-map {
  position: relative;
  flex: 1 1 0;
  max-width: 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 -2.5%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
  z-index: 1;
}

.landing-map:nth-child(1) {
  transform: translateY(6px) rotate(-2deg);
}

.landing-map:nth-child(2) {
  z-index: 2;
  transform: translateY(-4px);
}

.landing-map:nth-child(3) {
  transform: translateY(8px) rotate(2deg);
}

.landing-map.is-hot {
  z-index: 5;
  transform: translateY(-22px) scale(1.07);
}

.landing-map:nth-child(1).is-hot {
  transform: translateY(-20px) scale(1.07) rotate(-1deg);
}

.landing-map:nth-child(3).is-hot {
  transform: translateY(-18px) scale(1.07) rotate(1deg);
}

.landing-map__stage {
  width: 100%;
  max-height: min(38vh, 340px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55));
  animation: landing-map-float 5.5s ease-in-out infinite;
}

.landing-map:nth-child(2) .landing-map__stage {
  animation-delay: -1.8s;
}

.landing-map:nth-child(3) .landing-map__stage {
  animation-delay: -3.4s;
}

.landing-map.is-hot .landing-map__stage {
  animation-play-state: paused;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.65));
}

.landing-map__stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

.landing-map__face {
  cursor: pointer;
  outline: none;
  transition: fill 0.25s ease;
  pointer-events: auto;
}

.landing-map__face:focus-visible {
  stroke: #ffffff;
  stroke-width: 2;
}

.landing-map.is-hot .landing-map__face {
  fill: var(--landing-brown-hot, #8a7b6c);
}

.landing-map__label {
  margin-top: 10px;
  font-family: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(242, 237, 232, 0.72);
  text-transform: uppercase;
  pointer-events: none;
  transition: color 0.25s ease;
}

.landing-map.is-hot .landing-map__label {
  color: #f2ede8;
}

.landing-map__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  height: 70%;
  border: 1px dashed rgba(107, 94, 82, 0.55);
  color: var(--landing-brown, #6b5e52);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.2em;
  cursor: pointer;
  pointer-events: auto;
}

@keyframes landing-map-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 720px) {
  .landing-page {
    justify-content: flex-start;
    padding-top: 64px;
    overflow-y: auto;
  }

  .landing-page__bg-slide {
    width: 220%;
    height: 220%;
    left: -55%;
    top: -40%;
    opacity: 0.35;
  }

  .landing-page__maps {
    flex-direction: column;
    align-items: center;
    max-height: none;
    gap: 8px;
  }

  .landing-map,
  .landing-map:nth-child(1),
  .landing-map:nth-child(2),
  .landing-map:nth-child(3) {
    margin: 0;
    max-width: 240px;
    width: 70%;
    transform: none;
  }

  .landing-map.is-hot,
  .landing-map:nth-child(1).is-hot,
  .landing-map:nth-child(3).is-hot {
    transform: scale(1.05) translateY(-6px);
  }

  .landing-map__stage {
    animation: none;
    max-height: 220px;
  }
}
