@font-face {
  font-family: 'Gelasio';
  src: url('/build/43b54a909047320c/assets/fonts/gelasio-variable.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Selawik';
  src: url('/build/43b54a909047320c/assets/fonts/selawik-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Selawik';
  src: url('/build/43b54a909047320c/assets/fonts/selawik-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Selawik';
  src: url('/build/43b54a909047320c/assets/fonts/selawik-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Authentic Cinzerra Abyssal Obsidian-Teal & Molten Gold Palette */
  --bg-obsidian: #060c0b;
  --bg-ash: #081311;
  --bg-surface: #0d1d1a;
  --bg-elevated: #132824;
  --bg-glass: rgba(11, 23, 20, 0.88);

  --text-primary: #f7efe2;
  --text-secondary: #d7c7b2;
  --text-muted: #958978;

  --ember: #f26822;
  --ember-bright: #ff9c4b;
  --ember-deep: #b83b0d;
  --gold: #d5af64;
  --gold-bright: #f0d09a;
  --gold-champagne: #ebd9b1;

  --elem-brasa: #ff6e2e;
  --elem-ferro: #89a5c2;
  --elem-vida: #48c982;
  --elem-eter: #af73ff;

  --border-subtle: rgba(240, 208, 154, 0.2);
  --border-strong: rgba(242, 142, 68, 0.52);
  --shadow-deep: 0 24px 58px rgba(0, 0, 0, 0.8);
  --shadow-ember: 0 0 36px rgba(242, 104, 34, 0.28);

  --font-display: 'Gelasio', Georgia, serif;
  --font-sans: 'Selawik', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--landing-header-height, 68px) + 16px);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 6%, rgba(242, 104, 34, 0.14), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(213, 175, 100, 0.12), transparent 36%),
    linear-gradient(180deg, #060c0b 0%, #091513 48%, #060b0a 100%);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pixel-icon,
.hero-stage__bg,
.diorama-spirit img,
.stage-actor__sprite,
.diorama-boss__sprite,
.visual-card__img,
.hero-inspector__sprite,
.roster-card img,
.region-stage__img,
.boss-card__portrait,
.element-detail__relic-img,
.ingame-camp-mini img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 14px;
  transform: translateY(calc(-100% - 14px));
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==================== SCROLL PROGRESS & CANVAS ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), var(--gold-bright), var(--ember-bright));
  box-shadow: 0 0 12px var(--ember);
  transition: width 0.08s linear;
}

.ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

main,
.topbar,
.footer {
  position: relative;
  z-index: 2;
}

.container {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

/* ==================== STICKY TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 15, 13, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.topbar.is-scrolled {
  background: rgba(6, 12, 11, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.72);
}

.topbar__inner {
  width: min(1260px, calc(100% - 32px));
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__crest {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 35%, rgba(242, 104, 34, 0.36), rgba(10, 22, 19, 0.95));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(242, 104, 34, 0.28);
}

.brand__mark {
  width: 28px;
  height: 28px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.brand__subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav__link {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}

.topnav__link:hover,
.topnav__link.is-active {
  color: var(--gold-bright);
  background: rgba(240, 208, 154, 0.12);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 700;
}

.lang-switch__opt {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.lang-switch__opt.is-active {
  color: var(--gold-bright);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.22);
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242, 104, 34, 0.28), rgba(213, 175, 100, 0.2));
  border: 1px solid var(--border-strong);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(242, 104, 34, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(242, 104, 34, 0.38);
}

.topbar__cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48ff9b;
  box-shadow: 0 0 10px #48ff9b;
  animation: pulseDot 2s infinite;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle__line {
  width: 100%;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 14, 13, 0.98);
  padding: 12px 20px 18px;
}

.mobile-drawer__nav {
  display: grid;
  gap: 6px;
}

.mobile-drawer__link {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

/* ==================== 1ST FOLD: CENTERPIECE CINEMATIC PARALLAX STAGE ==================== */
.hero-stage {
  position: relative;
  min-height: clamp(650px, 88vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 30px 38px;
  border-bottom: 1px solid var(--border-strong);
  background: #050a09;
}

.hero-stage__world {
  position: absolute;
  inset: -24px;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.14s ease-out;
}

.hero-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(1.22) contrast(1.1) brightness(0.74);
  transform: scale(1.04);
  transition: opacity 0.35s ease;
}

.hero-stage__god-rays {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 218, 148, 0.08) 0%,
      rgba(242, 104, 34, 0.04) 11%,
      transparent 22%,
      transparent 36%
    );
  mix-blend-mode: screen;
  animation: godRaysPulse 6s ease-in-out infinite alternate;
}

@keyframes godRaysPulse {
  0% {
    opacity: 0.55;
    transform: translateX(-1%);
  }
  100% {
    opacity: 0.95;
    transform: translateX(1%);
  }
}

.hero-stage__furnace-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 44% at 50% 72%, rgba(242, 104, 34, 0.42), rgba(240, 208, 154, 0.14) 48%, transparent 74%),
    radial-gradient(circle at 50% 24%, rgba(240, 208, 154, 0.18), transparent 45%);
  mix-blend-mode: screen;
  animation: furnacePulse 4.2s ease-in-out infinite alternate;
}

@keyframes furnacePulse {
  0% {
    opacity: 0.68;
  }
  100% {
    opacity: 1;
  }
}

.hero-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 84% 76% at 50% 46%, rgba(6, 12, 11, 0.18) 0%, rgba(6, 12, 11, 0.72) 72%, rgba(5, 10, 9, 0.95) 100%),
    linear-gradient(180deg, rgba(5, 10, 9, 0.74) 0%, rgba(5, 10, 9, 0.22) 38%, rgba(5, 10, 9, 0.24) 68%, rgba(6, 12, 11, 0.98) 100%);
}

.hero-stage__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Upper Centerpiece: Monumental Logo & Store Badges */
.hero-centerpiece {
  text-align: center;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-crest-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.sword-divider {
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--ember-bright));
  position: relative;
}

.sword-divider--right {
  background: linear-gradient(270deg, transparent, var(--gold-bright), var(--ember-bright));
}

.sword-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--gold-bright);
}

.sword-divider--right::after {
  right: auto;
  left: -4px;
}

.hero-kicker {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(12, 26, 23, 0.84);
  border: 1px solid rgba(240, 208, 154, 0.36);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.hero-monument-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #fffdf8 0%, #f8dfa6 38%, #df9d3f 72%, #a84e14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 4px 0 #180b04)
    drop-shadow(0 12px 26px rgba(0, 0, 0, 0.94))
    drop-shadow(0 0 32px rgba(242, 104, 34, 0.36));
}

.hero-monument-sub {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.7vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-champagne);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero-monument-lead {
  margin: 0 0 18px;
  max-width: 54ch;
  font-size: clamp(0.95rem, 1.22vw, 1.08rem);
  color: var(--text-secondary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.hero-monument-lead strong {
  color: #fff;
}

/* Engraved Store Badges Row */
.hero-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 32, 28, 0.92), rgba(9, 18, 16, 0.95));
  border: 1px solid rgba(240, 208, 154, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.68);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.3),
    0 16px 32px rgba(0, 0, 0, 0.78),
    0 0 22px rgba(242, 104, 34, 0.25);
}

.store-badge--primary {
  background: linear-gradient(135deg, rgba(44, 24, 12, 0.95), rgba(18, 30, 26, 0.95));
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 166, 0.3),
    0 14px 32px rgba(0, 0, 0, 0.75),
    0 0 26px rgba(242, 104, 34, 0.28);
}

.store-badge__icon {
  display: grid;
  place-items: center;
  color: var(--gold-bright);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.14;
}

.store-badge__text small {
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

.store-badge__text strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.store-badge__pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(72, 255, 155, 0.15);
  color: #6bffb0;
  border: 1px solid rgba(72, 255, 155, 0.36);
}

.store-badge__pill--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Lower Centerpiece: Living Pixel-Art Battle Diorama */
.battle-diorama {
  width: 100%;
  max-width: 1000px;
  position: relative;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 48% at 50% 78%, rgba(242, 104, 34, 0.28), rgba(240, 208, 154, 0.08) 52%, transparent 76%),
    linear-gradient(180deg, rgba(8, 18, 16, 0.26) 0%, rgba(8, 17, 15, 0.58) 62%, rgba(6, 13, 11, 0.88) 100%);
  border: 1px solid rgba(240, 208, 154, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.28),
    0 28px 64px rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
  padding: 16px 22px 14px;
}

.diorama-spirit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.diorama-spirit img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 14px rgba(255, 152, 64, 0.85));
  animation: floatSpirit 3.2s ease-in-out infinite;
}

@keyframes floatSpirit {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.diorama-spirit__bubble {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 28, 24, 0.92);
  border: 1px solid rgba(240, 208, 154, 0.35);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-champagne);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.diorama-arena {
  position: relative;
  display: grid;
  grid-template-columns: 1.32fr 0.82fr;
  align-items: end;
  gap: 18px;
  min-height: 232px;
  padding: 32px 14px 18px;
  border-bottom: 1px solid rgba(240, 208, 154, 0.16);
  overflow: visible;
}

.diorama-vfx-canvas {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: calc(100% + 16px);
  pointer-events: none;
  z-index: 6;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.diorama-party {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
}

.stage-actor {
  position: relative;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 6px 2px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}

.stage-actor:focus {
  outline: none;
}

.stage-actor:focus-visible {
  outline: 1px solid rgba(240, 208, 154, 0.45);
  border-radius: 14px;
}

.stage-actor:hover {
  transform: translateY(-5px) scale(1.04);
}

.stage-actor.is-attacking {
  transform: translateX(26px) translateY(-10px) scale(1.16);
  z-index: 10;
  filter: drop-shadow(0 0 22px rgba(255, 168, 68, 0.95));
}

.stage-actor__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(9, 19, 17, 0.9);
  border: 1px solid rgba(240, 208, 154, 0.28);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.stage-actor__tag--leader {
  background: linear-gradient(135deg, rgba(242, 104, 34, 0.38), rgba(213, 175, 100, 0.28));
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.stage-actor__aura {
  position: absolute;
  bottom: 20px;
  width: 78px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(242, 104, 34, 0.55) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.stage-actor__aura--eter {
  background: radial-gradient(ellipse at center, rgba(175, 115, 255, 0.52) 0%, transparent 72%);
}

.stage-actor__aura--vida {
  background: radial-gradient(ellipse at center, rgba(72, 201, 130, 0.52) 0%, transparent 72%);
}

.stage-actor__aura--gold {
  background: radial-gradient(ellipse at center, rgba(240, 208, 154, 0.56) 0%, transparent 72%);
}

.stage-actor__aura--brasa {
  width: 92px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(255, 110, 46, 0.72) 0%, transparent 74%);
}

.stage-actor__sprite {
  position: relative;
  z-index: 2;
  width: 106px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.88));
}

.stage-actor__shadow {
  width: 72px;
  height: 14px;
  margin-top: -8px;
  opacity: 0.82;
  z-index: 1;
}

.stage-actor__name {
  margin-top: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-champagne);
}

.rpg-ult-btn__spark {
  font-size: 0.96rem;
  color: #ffe294;
  text-shadow: 0 0 12px rgba(255, 184, 68, 0.95);
}

/* Colossal Regional Boss on Right of Diorama */
.diorama-boss {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.diorama-boss.is-hit .diorama-boss__sprite {
  animation: bossHitShake 0.42s ease;
  filter: brightness(1.65) drop-shadow(0 0 28px #ff5e36);
}

@keyframes bossHitShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(9px) scale(0.96); }
  45% { transform: translateX(-8px) scale(1.03); }
  70% { transform: translateX(5px); }
}

.diorama-boss__hud {
  position: relative;
  z-index: 14;
  width: 196px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(9, 18, 16, 0.94);
  border: 1px solid rgba(242, 104, 34, 0.42);
  margin-bottom: 4px;
  text-align: center;
}

.diorama-boss__name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.diorama-boss__hp-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.diorama-boss__hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4b2b, #ff9c4b);
  transition: width 0.25s ease;
}

.diorama-boss__dmg {
  position: absolute;
  top: -30px;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6e2e, #f8d486);
  color: #160904;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  pointer-events: none;
  z-index: 16;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.diorama-boss__dmg.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.diorama-boss__aura {
  position: absolute;
  bottom: 14px;
  width: 148px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 94, 36, 0.56) 0%, transparent 72%);
  z-index: 0;
}

.diorama-boss__sprite {
  position: relative;
  z-index: 2;
  width: 152px;
  height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 22px rgba(255, 94, 36, 0.5));
}

.diorama-boss__shadow {
  width: 128px;
  height: 20px;
  margin-top: -10px;
  opacity: 0.86;
  z-index: 1;
}

/* Bottom Control Bar inside Battle Diorama */
.diorama-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
}

.rpg-ult-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 6px solid transparent;
  border-image: url('/build/43b54a909047320c/assets/ui-button.png') 12 28 fill stretch;
  background-color: rgba(242, 104, 34, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 18px rgba(242, 104, 34, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.rpg-ult-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.12);
}

.banner-scenes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 15, 13, 0.88);
  border: 1px solid var(--border-subtle);
}

.scene-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.scene-chip:hover,
.scene-chip.is-active {
  background: rgba(242, 104, 34, 0.28);
  color: var(--gold-bright);
}

/* ==================== COMPACT STATS STRIP ==================== */
.stats-strip {
  background: linear-gradient(180deg, rgba(13, 27, 24, 0.96), rgba(8, 17, 15, 0.96));
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 18px;
}

.stats-strip__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 236, 194, 0.12);
}

.stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.05;
  color: var(--gold-bright);
}

.stat-pill span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==================== SECTIONS & HEADERS ==================== */
.section {
  padding-block: 68px;
}

.section--alt {
  background: linear-gradient(180deg, rgba(12, 25, 22, 0.72), rgba(7, 15, 13, 0.72));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}

.section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(240, 208, 154, 0.1);
  border: 1px solid var(--border-subtle);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.section-header__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.18;
  color: var(--text-primary);
}

.section-header__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.ornament-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--ember-bright));
}

.ornament-line--right {
  background: linear-gradient(270deg, transparent, var(--gold-bright), var(--ember-bright));
}

.ornament-gem {
  font-size: 0.78rem;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(242, 104, 34, 0.65);
}

.section-header__subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* Spotlight Card Shared Engraved Surface */
.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 194, 0.16),
    var(--shadow-deep);
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 208, 154, 0.11), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ==================== IPHONE 16 PRO MAX SHOWCASE (#gameplay) ==================== */
.phones-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  align-items: start;
  perspective: 1600px;
}

.phone-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* Titanium body — iPhone 16 Pro Max proportions (≈ 77.6 × 163 mm) */
.phone-frame__bezel {
  --iphone-w: 380px;
  position: relative;
  width: 100%;
  max-width: var(--iphone-w);
  aspect-ratio: 9 / 19.2;
  padding: 11px;
  border-radius: 58px;
  background:
    linear-gradient(145deg, #6b6660 0%, #3a3733 18%, #1d1c1a 50%, #45413c 82%, #7a746c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 3px #0b0b0b inset,
    0 40px 80px rgba(0, 0, 0, 0.82),
    0 18px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

/* Inner black glass border around the display */
.phone-frame__bezel::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 53px;
  background: #050505;
  pointer-events: none;
}

/* Subtle specular highlight on the glass */
.phone-frame__bezel::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 47px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.09) 0%, transparent 28%, transparent 72%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  z-index: 5;
}

.phone-frame:hover .phone-frame__bezel {
  transform: translateY(-8px) rotateX(2deg);
}

.phone-frame--featured .phone-frame__bezel {
  background:
    linear-gradient(145deg, #c9b38a 0%, #8a7556 18%, #3d3326 50%, #8c7757 82%, #d8c39b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 236, 194, 0.18) inset,
    0 0 0 3px #0b0b0b inset,
    0 44px 90px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(242, 104, 34, 0.22);
}

/* Physical side buttons */
.iphone-btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2724, #6b655d 60%, #2a2724);
  z-index: 0;
}

.iphone-btn--action { left: -3px; top: 17%; height: 4.5%; }
.iphone-btn--vol-up { left: -3px; top: 25%; height: 8%; }
.iphone-btn--vol-down { left: -3px; top: 35%; height: 8%; }
.iphone-btn--power { right: -3px; top: 28%; height: 12%; }

.phone-frame--featured .iphone-btn {
  background: linear-gradient(90deg, #5b4c36, #c9b38a 60%, #5b4c36);
}

/* Legacy notch element (no longer rendered) */
.phone-frame__notch {
  display: none;
}

/* The display */
.phone-screen {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 47px;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(242, 104, 34, 0.12), transparent 60%),
    linear-gradient(180deg, #0c1917 0%, #07100e 100%);
  padding: 12px 16px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}

/* Status bar + Dynamic Island */
.iphone-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 14px;
  flex-shrink: 0;
  font-family: -apple-system, 'SF Pro Text', 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f4f1ea;
}

.iphone-island {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 34%;
  height: 30px;
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.iphone-island__cam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3b5a 0%, #0b1020 55%, #000 100%);
  box-shadow: 0 0 0 1px rgba(80, 100, 140, 0.25);
}

.iphone-statusbar__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.iphone-sig {
  font-size: 0.7rem;
  font-weight: 700;
}

.iphone-batt {
  position: relative;
  width: 24px;
  height: 12px;
  border-radius: 4px;
  border: 1.5px solid rgba(244, 241, 234, 0.55);
  padding: 1.5px;
}

.iphone-batt::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: rgba(244, 241, 234, 0.55);
}

.iphone-batt span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: 2px;
  background: #f4f1ea;
}

.iphone-home-bar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 36%;
  height: 5px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.85);
}

/* Authentic Mini In-Game UI inside Phone Screens */
.ingame-panel {
  padding: 10px 12px;
  border-radius: 12px;
  border: 8px solid transparent;
  border-image: url('/build/43b54a909047320c/assets/ui-panel.png') 16 fill stretch;
  text-align: center;
}

.ingame-eyebrow {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.ingame-room-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--gold-bright);
  margin: 2px 0 4px;
}

.ingame-flames {
  display: inline-flex;
  gap: 4px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.ingame-boss-quote {
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
}

.ingame-battlefield {
  position: relative;
  height: 148px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(240, 208, 154, 0.28);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
  overflow: hidden;
}

.ingame-battlefield::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 12, 11, 0.25), rgba(6, 12, 11, 0.72));
}

.ingame-party-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.ingame-boss-wrap {
  position: relative;
  z-index: 1;
}

.ingame-controls-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.ingame-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ingame-pill--gold {
  background: rgba(242, 104, 34, 0.22);
  border-color: var(--border-strong);
  color: var(--gold-bright);
}

.ingame-party-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.ingame-hero-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(15, 31, 27, 0.9);
  border: 1px solid rgba(240, 208, 154, 0.2);
}

.ingame-bars {
  flex: 1;
  min-width: 0;
}

.ingame-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.64rem;
  margin-bottom: 3px;
}

.ingame-bar-head small {
  color: var(--text-muted);
}

.ingame-hp,
.ingame-ult {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 3px;
}

.ingame-hp span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38b874, #7bf0b0);
}

.ingame-ult span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d5af64, #f8d486);
}

.ingame-ult.is-200 span {
  background: linear-gradient(90deg, #f26822, #ffbd44);
}

/* Phone 2: Formation & Dock */
.ingame-resources {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 30, 26, 0.92);
  border: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-champagne);
}

.ingame-resources span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ingame-energy {
  color: #7bf0b0;
}

.ingame-ink-banner {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 42, 36, 0.92), rgba(12, 24, 21, 0.95));
  border: 1px solid rgba(240, 208, 154, 0.28);
  text-align: center;
}

.ingame-ink-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--gold-bright);
}

.ingame-ink-banner small {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.ingame-formation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ingame-slot {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(16, 33, 29, 0.88);
  border: 1px solid rgba(240, 208, 154, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ingame-slot--leader {
  background: linear-gradient(180deg, rgba(46, 28, 16, 0.9), rgba(18, 32, 28, 0.92));
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(242, 104, 34, 0.22);
}

.ingame-slot__top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.crown-badge.is-active {
  color: var(--gold-bright);
}

.ingame-slot strong {
  font-size: 0.78rem;
  color: var(--text-primary);
}

.ingame-slot small {
  font-size: 0.64rem;
  color: var(--gold);
}

.ingame-dock {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(7, 14, 12, 0.95);
  border: 1px solid rgba(240, 208, 154, 0.24);
}

.ingame-dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 8px;
  font-size: 0.58rem;
  color: var(--text-muted);
}

.ingame-dock__item.is-active {
  background: rgba(242, 104, 34, 0.2);
  color: var(--gold-bright);
}

/* Phone 3: Forge Workshop & +10 Refinement */
.ingame-craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ingame-craft-card {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(15, 31, 27, 0.9);
  border: 1px solid rgba(240, 208, 154, 0.26);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.ingame-craft-card--epic {
  border-color: rgba(175, 115, 255, 0.45);
}

.craft-rarity {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 999px;
}

.craft-rarity--epic {
  background: rgba(175, 115, 255, 0.18);
  color: #d3b2ff;
}

.craft-rarity--gold {
  background: rgba(242, 104, 34, 0.2);
  color: var(--gold-bright);
}

.ingame-craft-card strong {
  font-size: 0.76rem;
  color: var(--text-primary);
}

.ingame-craft-card small {
  font-size: 0.63rem;
  color: var(--text-secondary);
}

.ingame-rpg-btn {
  margin-top: 4px;
  width: 100%;
  padding: 4px 6px;
  border-radius: 8px;
  border: 4px solid transparent;
  border-image: url('/build/43b54a909047320c/assets/ui-button.png') 12 28 fill stretch;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.ingame-camp-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(14, 28, 25, 0.92);
  border: 1px solid rgba(240, 208, 154, 0.24);
}

.ingame-camp-mini img {
  width: 84px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(240, 208, 154, 0.3);
  flex-shrink: 0;
}

.ingame-camp-mini strong {
  display: block;
  font-size: 0.74rem;
  color: var(--gold-bright);
}

.ingame-camp-mini small {
  font-size: 0.64rem;
  color: var(--text-secondary);
}

.phone-frame__caption {
  text-align: center;
  max-width: 310px;
}

.phone-frame__step {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ember-bright);
  margin-bottom: 4px;
}

.phone-frame__caption h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--gold-champagne);
}

.phone-frame__caption p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ---- Larger in-game UI for the iPhone 16 Pro Max displays ---- */
.phone-frame__caption {
  max-width: 360px;
}

/* ==================== AUTHENTIC IN-GAME COMBAT PHONE (#1) ==================== */
.phone-screen--battle {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #08141a;
  position: relative;
  overflow: hidden;
}

.phone-screen--battle .iphone-statusbar {
  z-index: 10;
  padding: 6px 14px 0;
}

.phone-battle-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(2, 10, 14, 0.55) 100%);
  z-index: 2;
}

/* Authentic In-Game Top Header */
.phone-battle-header {
  position: relative;
  z-index: 4;
  padding: 6px 12px 7px;
  background: linear-gradient(180deg, rgba(5, 17, 21, 0.95), rgba(5, 17, 21, 0.72));
  border-bottom: 1px solid rgba(183, 149, 83, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.phone-battle-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.phone-battle-heading {
  display: flex;
  flex-direction: column;
}

.phone-battle-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--teal-accent);
  text-transform: uppercase;
}

.phone-battle-title {
  margin: 1px 0 0;
  font-family: 'Cinzel Decorative', Georgia, serif;
  font-size: 0.96rem;
  color: #f1ddad;
  font-weight: normal;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.phone-battle-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(18, 36, 40, 0.85);
  border: 1px solid rgba(183, 149, 83, 0.4);
  font-size: 0.68rem;
  color: #eed5a0;
  font-family: inherit;
}

/* Real Boss Combat Panel */
.phone-boss-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-boss-meter {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-boss-track {
  position: relative;
  height: 8px;
  background: #102126;
  border: 1px solid #ac875e;
  border-radius: 2px;
  overflow: visible;
}

.phone-boss-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d68e72, #e5a774);
  border-radius: 1px;
}

.phone-boss-thresh {
  position: absolute;
  top: -2px;
  height: 10px;
  border-left: 1px solid #f5e4bc;
}

.phone-boss-hp {
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  color: #edd9ae;
  text-align: right;
}

.phone-boss-skills {
  display: flex;
  gap: 3px;
}

.phone-boss-skill {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background: #193135;
  border: 1px solid #567274;
  display: grid;
  place-items: center;
  color: #e9cf87;
}

.phone-boss-skill svg {
  width: 14px;
  height: 14px;
}

.phone-boss-skill.is-ready {
  border-color: #b8c78c;
  box-shadow: 0 0 6px rgba(184, 199, 140, 0.4);
}

.phone-boss-skill.is-cooldown {
  opacity: 0.55;
}

.phone-boss-skill small {
  position: absolute;
  right: 1px;
  bottom: 0;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff4cb;
  line-height: 1;
}

.phone-boss-callout {
  font-size: 0.68rem;
  color: #f5e3bd;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
  font-style: italic;
  padding: 1px 2px;
}

/* Center Battlefield Arena */
.phone-battle-arena {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px 14px;
  min-height: 280px;
}

.phone-battle-party {
  display: grid;
  grid-template-columns: repeat(2, 60px);
  gap: 4px 12px;
  align-items: flex-end;
}

.phone-actor-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-actor-wrap img {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.85));
}

.phone-actor-shadow {
  width: 44px;
  height: 10px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75) 0%, transparent 70%);
}

.phone-actor-shadow--boss {
  width: 90px;
  height: 16px;
  margin-top: -10px;
}

/* THE BOSS: MUST FACE TO THE LEFT TOWARDS HEROES! */
.phone-battle-boss {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: -4px;
}

#phone-showcase-boss {
  filter: drop-shadow(0 2px 2px rgba(23, 18, 12, 0.45));
}

/* Authentic Bottom HUD */
.phone-battle-hud {
  position: relative;
  z-index: 4;
  padding: 8px 12px 18px;
  background: linear-gradient(180deg, rgba(6, 17, 23, 0.72) 0%, rgba(6, 17, 23, 0.98) 35%, #050d11 100%);
  border-top: 1px solid rgba(183, 149, 83, 0.35);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phone-battle-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.phone-room-step {
  font-size: 0.68rem;
  color: #eed5a0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

.phone-ctrl-btn {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(18, 36, 40, 0.85);
  border: 1px solid rgba(183, 149, 83, 0.3);
  font-size: 0.64rem;
  color: #cabba0;
  font-weight: 600;
  white-space: nowrap;
}

.phone-ctrl-btn.is-active {
  border-color: #ffd88a;
  color: #ffe8b1;
  background: rgba(45, 60, 48, 0.9);
  box-shadow: 0 0 6px rgba(255, 216, 138, 0.25);
}

.phone-ctrl-btn--retire {
  border-color: transparent;
  background: transparent;
  color: #8fa09d;
}

/* 4 Heroes HUD Grid */
.phone-party-hud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.phone-hero-hud {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 8px;
  background: rgba(10, 24, 28, 0.85);
  border: 1px solid rgba(86, 114, 116, 0.35);
}

.phone-hero-avatar {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #07171b;
  border: 1px solid #567274;
  display: grid;
  place-items: center;
  overflow: visible;
}

.phone-hero-avatar img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.phone-hero-avatar.awakening-ready {
  border-color: #ff6975;
  box-shadow: 0 0 8px rgba(232, 48, 69, 0.55);
  animation: ult-ready-glow 1.8s ease-in-out infinite;
}

.phone-essence-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 1px 3px;
  border-radius: 3px;
  background: #1f3637;
  border: 1px solid #69806a;
  color: #b4dd9b;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
}

.phone-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-hero-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #edd9ae;
  line-height: 1.1;
}

.phone-hero-title strong {
  color: #fff;
}

.awakened-star {
  color: #edbf78;
  margin-left: 2px;
  font-size: 0.65rem;
}

.phone-hp-text {
  font-size: 0.58rem;
  color: #bbc7b1;
  font-variant-numeric: tabular-nums;
}

.phone-hp-bar {
  height: 4px;
  border-radius: 2px;
  background: #102126;
  border: 1px solid rgba(86, 114, 116, 0.4);
  overflow: hidden;
}

.phone-hp-bar span {
  display: block;
  height: 100%;
  background: #50e3a4;
}

/* Dual-layer Ultimate meter */
.phone-ult-meter {
  position: relative;
  height: 8px;
  border-radius: 2px;
  background: #172b34;
  border: 1px solid #526c70;
  overflow: hidden;
}

.phone-ult-normal {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: #87c8d9;
}

.phone-ult-awake {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: #dd3546;
  box-shadow: inset 0 1px #ff7780;
}

.phone-ult-meter.awakened-full {
  border-color: #ff6975;
  box-shadow: 0 0 5px rgba(232, 48, 69, 0.5);
}

.phone-ult-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}

.phone-screen .ingame-ink-banner { padding: 12px 14px; border-radius: 14px; }
.phone-screen .ingame-ink-banner strong { font-size: 1.12rem; margin-bottom: 2px; }
.phone-screen .ingame-ink-banner small { font-size: 0.76rem; }

.phone-screen .ingame-formation-grid { gap: 10px; }
.phone-screen .ingame-slot { padding: 12px 10px; gap: 4px; border-radius: 14px; }
.phone-screen .ingame-slot__top { font-size: 0.7rem; }
.phone-screen .ingame-slot img { width: 72px; height: 72px; }
.phone-screen .ingame-slot strong { font-size: 0.9rem; }
.phone-screen .ingame-slot small { font-size: 0.72rem; }

.phone-screen .ingame-dock { padding: 8px; gap: 6px; border-radius: 16px; }
.phone-screen .ingame-dock__item { font-size: 0.66rem; gap: 4px; padding: 6px 2px; border-radius: 10px; }
.phone-screen .ingame-dock__item img { width: 24px; height: 24px; }

.phone-screen .ingame-craft-grid { gap: 10px; }
.phone-screen .ingame-craft-card { padding: 14px 10px; gap: 6px; border-radius: 14px; }
.phone-screen .ingame-craft-card img { width: 54px; height: 54px; }
.phone-screen .craft-rarity { font-size: 0.64rem; padding: 3px 8px; }
.phone-screen .ingame-craft-card strong { font-size: 0.88rem; }
.phone-screen .ingame-craft-card small { font-size: 0.72rem; }
.phone-screen .ingame-rpg-btn { font-size: 0.72rem; padding: 6px 8px; }

.phone-screen .ingame-camp-mini { gap: 12px; padding: 10px 12px; border-radius: 14px; }
.phone-screen .ingame-camp-mini img { width: 108px; height: 64px; }
.phone-screen .ingame-camp-mini strong { font-size: 0.84rem; }
.phone-screen .ingame-camp-mini small { font-size: 0.72rem; }

/* Approved awakened art in the three public phone illustrations. */
.phones-showcase .phone-screen { position:absolute;left:11px;top:11px;width:calc(100% - 22px);height:calc(100% - 22px);transform-origin:top left; }
.phone-awakened-sprite { display:block;flex:none;width:112px;height:112px;background-position:center;background-size:contain;background-repeat:no-repeat;image-rendering:pixelated; }
.phone-battle-header { flex-shrink:0; }
.phone-battle-arena { min-height:0;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,rgba(8,21,26,.08),rgba(8,21,26,.16)),url('/build/43b54a909047320c/assets/landing/siege-quarry-foreground.png') center / 100% 100% no-repeat; }
.phone-battle-arena::before { content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent 65%,rgba(12,21,22,.16)); }
.phone-battle-party { position:absolute;left:0;bottom:24px;width:51%;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;z-index:2; }
.phone-actor-wrap { min-width:0; }
.phone-actor-wrap .phone-awakened-sprite { position:relative;z-index:1;width:108px;height:108px;max-width:none;filter:drop-shadow(0 1px 1px rgba(19,17,13,.65)); }
.phone-actor-wrap .phone-actor-shadow { position:absolute;top:95px;width:54px;height:10px;margin:0;z-index:0;background:radial-gradient(ellipse,rgba(26,20,13,.7),rgba(26,20,13,.35) 40%,transparent 72%); }
.phone-actor-wrap.is-front { transform:translateY(12px); }
.phone-battle-boss { position:absolute;right:7px;bottom:22%;width:214px;height:147px;margin:0; }
#phone-showcase-boss { position:absolute;z-index:1;width:239px;height:239px;max-width:none;left:-9px;top:-41px; }
.phone-battle-boss .phone-actor-shadow--boss { position:absolute;width:176px;height:16px;bottom:-7px;margin:0;z-index:0;background:radial-gradient(ellipse,rgba(26,20,13,.75),rgba(26,20,13,.3) 50%,transparent 72%); }
.phone-battle-hud { flex-shrink:0; }
.phone-screen--formation { background:radial-gradient(ellipse at 50% 35%,rgba(66,82,143,.25),transparent 70%),linear-gradient(180deg,#111a21,#07100f); }
.phone-screen--formation .ingame-formation-grid { gap:10px; }
.phone-screen--formation .ingame-slot { min-height:190px;padding:8px 10px;gap:2px;background:radial-gradient(ellipse at 50% 48%,rgba(58,72,135,.32),transparent 75%),#0b171c; }
.phone-screen--formation .ingame-slot--leader { background:radial-gradient(ellipse at 50% 48%,rgba(142,97,38,.3),transparent 75%),#171b19; }
.phone-screen--formation .phone-awakened-sprite { width:122px;height:122px;margin-top:-4px; }
.phone-awakened-note { display:block;margin-top:8px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#e9c67f; }
.phone-forge-stage { position:relative;display:grid;place-items:center;flex:0 0 170px;border:1px solid rgba(213,163,75,.35);border-radius:14px;background:linear-gradient(180deg,rgba(8,18,18,.2),rgba(8,18,18,.4)),url('/build/43b54a909047320c/assets/forge.png') center / cover; }
.phone-forge-stage::after { content:'';position:absolute;bottom:5px;width:120px;height:16px;border-radius:50%;background:radial-gradient(ellipse,rgba(228,177,73,.3),transparent 70%); }
.phone-forge-stage .phone-awakened-sprite { width:180px;height:180px;margin-top:-8px;position:relative;z-index:1;filter:drop-shadow(0 0 8px rgba(93,165,239,.3)); }
.phone-forge-hero-name { position:absolute;top:8px;z-index:2;padding:3px 8px;background:rgba(8,18,18,.8);border-radius:99px;font-size:10px;color:#f7d992; }
.phone-screen--craft { gap:10px; }
.phone-screen--craft .ingame-craft-card { padding:10px 8px;gap:4px; }
.phone-screen--craft .ingame-craft-card img { width:44px;height:44px; }
.phone-screen--craft .ingame-craft-card strong { font-size:13px;line-height:1.35; }
.phone-screen--craft .ingame-craft-card small { font-size:10px;line-height:1.45; }
.phone-screen--craft .ingame-camp-mini { padding:8px;gap:8px; }
.phone-screen--craft .ingame-camp-mini img { width:92px;height:54px; }
.phone-screen--craft .ingame-camp-mini strong { font-size:11px; }
.phone-screen--craft .ingame-camp-mini small { font-size:10px; }

/* ==================== VISUAL FEATURE TRIO (#universo) ==================== */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.visual-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.visual-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: #060c0b;
}

.visual-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-card:hover .visual-card__img {
  transform: scale(1.04);
}

.visual-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 15, 13, 0.88);
  border: 1px solid var(--border-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.camp-switcher {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 15, 13, 0.9);
  border: 1px solid var(--border-subtle);
}

.camp-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.camp-btn.is-active {
  background: var(--ember);
  color: #fff;
}

.visual-card__body {
  padding: 20px 22px 24px;
}

.visual-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ember-bright);
  margin-bottom: 6px;
}

.visual-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.visual-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== INTERACTIVE FORGE & 4 ELEMENTS (#forja) ==================== */
.forge-lab {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 24px;
}

.dilemma-box,
.elements-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.elements-box {
  justify-content: flex-start;
}

.dilemma-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dilemma-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dilemma-btn.is-active {
  background: rgba(242, 104, 34, 0.16);
  border-color: var(--border-strong);
}

.dilemma-btn__text {
  display: flex;
  flex-direction: column;
}

.dilemma-btn__text strong {
  font-size: 0.94rem;
  color: var(--gold-bright);
}

.dilemma-btn__text small {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.essence-draft {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.essence-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.essence-card__elem {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.essence-card strong {
  font-size: 0.88rem;
}

.essence-card small {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.preserve-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(72, 201, 130, 0.08);
  border: 1px solid rgba(72, 201, 130, 0.28);
}

.preserve-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preserve-meter__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.preserve-meter__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preserve-meter__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #48c982, #8df5b9);
}

.preserve-meter__val {
  font-size: 0.92rem;
  color: #7bf0b0;
}

.preserve-meter__ash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
}

.ult-compare {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.ult-compare__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ult-compare__title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.ult-compare__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.ult-tab {
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ult-tab.is-active {
  background: var(--ember);
  color: #fff;
}

.ult-gauge-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
  overflow: visible;
}

.ult-gauge-fill {
  width: 50%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--gold-bright));
  box-shadow: 0 0 14px var(--ember);
  transition: width 0.3s ease;
}

.ult-gauge-fill.is-200 {
  width: 100%;
}

.ult-gauge-mark {
  position: absolute;
  top: 13px;
  transform: translateX(-50%);
  font-size: 0.68rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.ult-gauge-mark--max {
  transform: translateX(-100%);
  color: var(--gold-bright);
  font-weight: 700;
}

.ult-compare__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Right: 4 Elements Box */
.element-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.element-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 700;
}

.element-tab.is-active {
  background: rgba(242, 104, 34, 0.16);
  border-color: var(--border-strong);
  color: var(--gold-bright);
}

.element-tab__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.element-tab__dot--brasa { background: var(--elem-brasa); }
.element-tab__dot--ferro { background: var(--elem-ferro); }
.element-tab__dot--vida { background: var(--elem-vida); }
.element-tab__dot--eter { background: var(--elem-eter); }

.element-detail__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.element-detail__relic-wrap {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(242, 104, 34, 0.25), rgba(0, 0, 0, 0.5));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.element-detail__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ember-bright);
}

.element-detail__name {
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.element-detail__summary {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.element-tiers {
  display: grid;
  gap: 8px;
}

.element-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.element-tier--fusion {
  background: rgba(242, 104, 34, 0.1);
  border-color: var(--border-strong);
}

.element-tier__count {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(242, 104, 34, 0.22);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.element-tier p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ==================== 25 HEROES COMPENDIUM (#herois) ==================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  background: rgba(242, 104, 34, 0.2);
  border-color: var(--border-strong);
  color: var(--gold-bright);
}

.compendium-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  align-items: start;
}

.hero-inspector {
  padding: 22px;
}

.hero-inspector__stage {
  position: relative;
  padding: 22px 16px 16px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 60%, rgba(242, 104, 34, 0.22), rgba(6, 13, 11, 0.9));
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.hero-inspector__unlock {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.hero-inspector__sprite {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.8));
}

/* Register the body and feet, rather than fitting the complete aura bounds. */
.hero-sprite-frame { position:relative;display:block;flex:none;width:200px;height:152px;max-width:100%;margin-inline:auto; }
.hero-sprite-frame--small { width:72px;height:72px; }
.hero-sprite-frame__tile { position:absolute;display:block;overflow:hidden;pointer-events:none; }
.hero-sprite-frame__tile img { display:block;max-width:none;object-fit:fill;image-rendering:pixelated; }
.hero-sprite-frame > .hero-inspector__shadow { position:absolute;left:calc(50% - 42px);top:132px;width:84px;height:16px;margin:0; }
.hero-sprite-frame--fallback .hero-sprite-frame__tile { inset:12px auto auto 40px;width:120px;height:120px; }
.hero-sprite-frame--fallback img { width:120px;height:120px;object-fit:contain; }
.hero-sprite-frame--small.hero-sprite-frame--fallback .hero-sprite-frame__tile { inset:2px auto auto 6px;width:60px;height:60px; }
.hero-sprite-frame--small.hero-sprite-frame--fallback img { width:60px;height:60px; }

.hero-inspector__shadow {
  width: 84px;
  height: 16px;
  margin-top: -6px;
  opacity: 0.82;
}

.hero-inspector__badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.hero-inspector__preview {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(242, 104, 34, 0.12);
  color: var(--gold-bright);
  font: 600 0.78rem var(--font-sans);
}

.hero-inspector__preview:hover {
  background: rgba(242, 104, 34, 0.22);
}

.inspector-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(242, 104, 34, 0.18);
  color: var(--gold-bright);
}

.inspector-tag--range {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.hero-inspector__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.hero-inspector__title {
  margin: 2px 0 14px;
  font-size: 0.84rem;
  color: var(--ember-bright);
  font-weight: 600;
}

.hero-inspector__skills {
  display: grid;
  gap: 8px;
}

.skill-block {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
}

.skill-block--awakened {
  background: rgba(242, 104, 34, 0.1);
  border-color: var(--border-strong);
}

.skill-block__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.skill-block__text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.roster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: rgba(13, 27, 24, 0.78);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.roster-card:hover,
.roster-card.is-selected {
  transform: translateY(-2px);
  background: rgba(242, 104, 34, 0.18);
  border-color: var(--border-strong);
}

.roster-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}

.roster-card--legend img {
  filter: brightness(0);
}

.roster-card__name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.roster-card__role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==================== 10 REGIONS & BOSSES (#regioes) ==================== */
.region-rail {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.region-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.region-tab.is-active {
  background: rgba(242, 104, 34, 0.2);
  border-color: var(--border-strong);
}

.region-tab__roman {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.region-tab__name {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.region-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 420px;
}

.region-stage__panorama {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.region-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-stage__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 12, 11, 0.94) 100%);
}

.region-stage__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
}

.region-stage__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.region-stage__title {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.region-stage__lore {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

.region-stage__boss-panel {
  padding: 24px;
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.boss-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.boss-card__portrait-wrap {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle, rgba(242, 104, 34, 0.28), rgba(0, 0, 0, 0.6));
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.boss-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ember-bright);
}

.boss-card__name {
  margin: 2px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.boss-card__elem {
  font-size: 0.78rem;
  color: var(--gold-bright);
}

.boss-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.boss-phases {
  display: grid;
  gap: 6px;
}

.boss-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.boss-phase strong {
  color: var(--gold-bright);
  min-width: 36px;
}

.boss-phase--critical {
  background: rgba(242, 104, 34, 0.12);
  border-color: var(--border-strong);
}

/* ==================== PLATFORMS ROADMAP (#plataformas) ==================== */
.platform-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.platform-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.platform-card--primary {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(36, 22, 14, 0.88), rgba(11, 23, 20, 0.94));
}

.platform-card__ribbon {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242, 104, 34, 0.22);
  border: 1px solid var(--border-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.platform-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
}

.platform-card__step {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.platform-card__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.platform-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.platform-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(72, 255, 155, 0.1);
  border: 1px solid rgba(72, 255, 155, 0.28);
  font-size: 0.8rem;
  font-weight: 600;
  color: #7bf0b0;
}

.platform-card__status--upcoming {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48ff9b;
  box-shadow: 0 0 8px #48ff9b;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

/* ==================== COMPACT FAQ (#faq) ==================== */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(242, 104, 34, 0.16);
  position: relative;
  flex-shrink: 0;
}

.faq-question__icon::before,
.faq-question__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--gold-bright);
  transform: translate(-50%, -50%);
}

.faq-question__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 20px 16px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==================== FOOTER ==================== */
.footer {
  padding-block: 44px 28px;
  background: #040807;
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer__logo-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--gold-bright);
}

.footer__studio {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.age-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__heading {
  margin: 0 0 4px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.footer__col a {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer__col a:hover {
  color: var(--gold-bright);
}

.footer__bottom {
  padding-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ==================== REVEAL ANIMATION ==================== */
.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready .reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1080px) {
  .topnav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .feature-trio,
  .forge-lab,
  .platform-roadmap {
    grid-template-columns: 1fr;
  }

  /* iPhones become a swipeable carousel instead of a tall stack */
  .phones-showcase {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    padding: 8px 20px 18px;
    margin-inline: -20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 208, 154, 0.35) transparent;
  }

  .phone-frame {
    flex: 0 0 min(360px, 80vw);
    scroll-snap-align: center;
  }

  .phone-frame:hover .phone-frame__bezel {
    transform: none;
  }

  .compendium-layout {
    grid-template-columns: 1fr;
  }

  .region-rail {
    grid-template-columns: repeat(5, 1fr);
  }

  .region-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .region-stage__panorama {
    aspect-ratio: 16 / 9;
    min-height: 240px;
  }

  .region-stage__boss-panel {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 24px);
  }

  .topbar__cta {
    display: none;
  }

  .hero-stage {
    min-height: auto;
    padding-block: 20px 28px;
  }

  .sword-divider {
    display: none;
  }

  .hero-monument-title {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    letter-spacing: 0.08em;
  }

  .hero-monument-sub {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }

  .battle-diorama {
    padding: 12px 12px 12px;
  }

  .diorama-spirit__bubble {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .diorama-arena {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 2px 10px;
  }

  .diorama-clash {
    display: none;
  }

  .stage-actor__sprite {
    width: 66px;
  }

  .stage-actor__tag {
    padding: 2px 4px;
    font-size: 0.56rem;
  }

  .stage-actor__shadow {
    width: 52px;
    height: 11px;
  }

  .diorama-boss__sprite {
    width: 114px;
    height: 114px;
  }

  .diorama-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .rpg-ult-btn {
    justify-content: center;
  }

  .banner-scenes {
    justify-content: center;
  }

  .scene-chip {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .stats-strip__row,
  .region-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .dilemma-toggle,
  .essence-draft,
  .preserve-preview {
    grid-template-columns: 1fr;
  }

  .element-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}
/* Hero awakening is progression, with no separate cosmetic purchase. */
.hero-awakening-preview{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:18px;margin:24px 0;padding:20px;border:1px solid #b99a5b66;border-radius:12px;background:linear-gradient(135deg,#173038cc,#111d27e8)}
.hero-awakening-preview__forms{display:grid;justify-items:center;gap:8px}.hero-awakening-preview__forms img{width:80px;height:90px;object-fit:contain;image-rendering:pixelated}.hero-awakening-preview__forms span{color:#e8cb88;font-size:24px}
.hero-awakening-preview h3{font:24px/1.3 Georgia,serif;color:#ffe0a1;margin:0 0 10px}.hero-awakening-preview p{font:14px/1.6 'Segoe UI',sans-serif;color:#c3cdc8;margin:10px 0}.hero-awakening-preview p.hero-awakening-preview__stats{color:#ffe0a1;font-weight:600}.hero-awakening-preview small{display:block;font:12px/1.5 'Segoe UI',sans-serif;color:#a4b6b7;margin-top:8px}
.hero-awakening-preview__button{min-height:48px;border:1px solid #c6a067;border-radius:6px;background:#d6b572;color:#192126;font:600 14px/1.4 'Segoe UI',sans-serif;padding:10px 16px;cursor:pointer}.hero-awakening-preview__button:focus-visible{outline:3px solid #fff1c9;outline-offset:3px}
@media (max-width: 420px) {
  .topbar__inner { width: calc(100% - 24px); flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .brand { gap: 8px; }
  .brand__crest { width: 36px; height: 36px; }
  .brand__title { font-size: 1rem; letter-spacing: 0.1em; }
  .brand__subtitle { font-size: 0.66rem; letter-spacing: 0; }
  .topbar__actions { gap: 6px; margin-left: auto; flex-shrink: 0; }
  .lang-switch { min-height: 44px; padding-inline: 8px; }
  .menu-toggle { width: 44px; height: 44px; flex-shrink: 0; }
}
@media(prefers-reduced-motion:reduce){.stage-actor,.stage-actor *,.diorama-boss,.diorama-boss *{animation:none!important;transition:none!important}}
@media(max-width:760px){.region-stage__boss-panel{min-height:420px}}
@media(max-width:420px){.region-stage__boss-panel{min-height:480px}}
@media(max-width:360px){.region-stage__boss-panel{min-height:540px}}
@media(max-width:500px){.hero-awakening-preview{grid-template-columns:1fr;padding:16px}.hero-awakening-preview__forms{display:flex;justify-content:center}.hero-awakening-preview__button{width:100%}}
