/* ==========================================================================
   SUMONZONZ | YUREIGAN (Sigilverge Vault · Gem Wave 1) Giveaway Site
   Frostspire Rime Vault backdrops + authentic Yureigan card-style metallic
   bevels, vertical Sigil circuit rails, hexagonal runes, and gold-cyan foil.
   ========================================================================== */

:root {
  --bg: #050b16;
  --bg-deep: #030711;
  --bg-elevated: #081327;
  --bg-surface: #0b1b36;
  --bg-plate: rgba(8, 20, 42, 0.88);
  --bg-glass: rgba(5, 14, 30, 0.88);

  --text: #f3f8ff;
  --text-muted: #b0cae6;
  --text-dim: #83a4cb;

  --accent-gold: #f5b83d;
  --accent-gold-hover: #ffd166;
  --accent-gold-ink: #080d18;
  --accent-ice: #54dcff;
  --accent-ice-bright: #9beeff;
  --accent-ice-soft: rgba(84, 220, 255, 0.14);
  --accent-void: #987dff;
  --accent-success: #4be39b;
  --accent-error: #ff7a8a;

  --border: rgba(118, 208, 255, 0.22);
  --border-strong: rgba(126, 222, 255, 0.44);
  --border-gold: rgba(245, 184, 61, 0.56);

  --font-display: "Syne", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Strict 3-size body scale below hero */
  --text-heading: clamp(1.85rem, 3.2vw, 2.75rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;

  /* Authentic Yureigan card move-bar chamfer cut */
  --chamfer-sm: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --chamfer-md: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

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

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

button,
input,
select {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--accent-gold);
  color: var(--accent-gold-ink);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: top 180ms var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

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

/* ==========================================================================
   Header (single-line borderless over y=0 Frostspire hero, frosted on scroll)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 11px 0;
  min-height: 68px;
  background-color: rgba(4, 10, 22, 0.78);
  border-bottom: 1px solid rgba(118, 208, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  isolation: isolate;
  transition: background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(4, 10, 22, 0.94);
  border-bottom-color: var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-strong);
  flex-shrink: 0;
}

.brand-tagline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.brand-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.65));
  transition: transform 200ms var(--ease-out);
}

.brand-link:hover .brand-logo {
  transform: scale(1.03);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 160ms var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-ice-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  clip-path: var(--chamfer-sm);
  background: linear-gradient(135deg, #ffd46a 0%, #f5b83d 55%, #e29b22 100%);
  color: var(--accent-gold-ink);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: rgba(8, 20, 42, 0.8);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.mobile-menu-toggle:hover {
  border-color: var(--accent-ice);
  background-color: var(--bg-surface);
}

/* ==========================================================================
   Hero: Frostspire Rime Vault Cavern + Orbital Gate + Interactive 3D Card
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(82px, 9.2vh, 100px) 0 clamp(46px, 5.2vh, 66px);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(4, 10, 22, 0.62) 0%, rgba(4, 10, 22, 0.24) 44%, rgba(5, 11, 22, 0.14) 76%, #050b16 100%),
    url("assets/frostspire-hero-bg.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-backdrop-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-backdrop-rings svg {
  width: min(1160px, 128vw);
  height: auto;
  opacity: 0.42;
  transform: translateY(14%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.9vw, 4.3rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text);
  text-shadow: 0 6px 28px rgba(3, 8, 20, 0.85);
  text-wrap: balance;
}

.hero-copy {
  margin: 14px 0 0;
  max-width: 48ch;
  font-size: var(--text-body);
  color: #cfe3f8;
  text-shadow: 0 2px 16px rgba(3, 8, 20, 0.9);
  text-wrap: pretty;
}

.hero-action {
  margin-top: 18px;
}

/* Chamfered metallic gold CTA inspired by Yureigan card foil plates */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border: none;
  clip-path: var(--chamfer-sm);
  background: linear-gradient(135deg, #ffe082 0%, #f5b83d 52%, #df941c 100%);
  color: var(--accent-gold-ink);
  font-size: var(--text-body);
  font-weight: 800;
  cursor: pointer;
  transition: filter 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.btn-primary:hover {
  filter: brightness(1.09);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Interactive 3D Holographic Card Stage over Frostspire Ice Pedestal
   ========================================================================== */

.card-stage {
  margin-top: clamp(18px, 2.4vh, 28px);
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.holo-stage-viewport {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 18px;
  touch-action: pan-y;
}

.holo-pedestal-glow {
  position: absolute;
  bottom: 2px;
  width: min(420px, 78vw);
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(84, 220, 255, 0.48) 0%,
    rgba(245, 184, 61, 0.18) 44%,
    transparent 74%
  );
  filter: blur(18px);
  pointer-events: none;
}

/* Untransformed fixed anchor for stable pointer measurement (zero feedback jitter) */
.holo-card-anchor {
  position: relative;
  width: clamp(228px, 30vh, 278px);
  aspect-ratio: 2880 / 4024;
  perspective: 1400px;
}

.holo-card-shell {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.holo-card-shell.is-dragging {
  cursor: grabbing;
}

.holo-card-face {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: #091326;
  border: 1.5px solid rgba(245, 198, 92, 0.62);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.68),
    0 0 24px rgba(84, 220, 255, 0.2),
    0 0 0 1px rgba(155, 238, 255, 0.34);
}

.holo-card-front {
  transform: rotateY(0deg) translateZ(2px);
}

.holo-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.holo-card-back {
  transform: rotateY(180deg) translateZ(2px);
}

/* Smooth GPU-safe prismatic gloss without color-dodge moire or backface flicker */
.holo-glare-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 35%),
      rgba(255, 255, 255, 0.34) 0%,
      rgba(126, 228, 255, 0.14) 26%,
      transparent 60%
    ),
    linear-gradient(
      var(--sheen-angle, 122deg),
      transparent 22%,
      rgba(255, 206, 112, 0.12) 42%,
      rgba(110, 236, 255, 0.16) 50%,
      rgba(196, 140, 255, 0.12) 58%,
      transparent 78%
    );
  opacity: var(--glare-opacity, 0.32);
}

.stage-controls {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Card-bezel connected segmented control */
.segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 10px;
  background-color: rgba(6, 16, 35, 0.9);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(155, 238, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.48);
}

.segmented-option {
  position: relative;
  padding: 9px 18px;
  border: none;
  border-radius: 7px;
  background-color: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.segmented-option:hover {
  color: var(--text);
}

.segmented-option[aria-pressed="true"],
.segmented-option[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(24, 62, 114, 0.95) 0%, rgba(12, 34, 68, 0.98) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(84, 220, 255, 0.6), 0 0 14px rgba(84, 220, 255, 0.16);
}

.stage-hint {
  margin: 0;
  font-size: var(--text-sm);
  color: #cfe4fa;
  text-shadow: 0 2px 12px rgba(3, 8, 20, 0.92);
}

/* ==========================================================================
   Shared Section Rhythm, Hexagonal Sigils & Card-Bezel Utilities
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 84px;
}

.section-surface {
  background-color: var(--bg-elevated);
}

.section-frostspire {
  background-color: var(--bg-elevated);
  background-image:
    linear-gradient(180deg, #081327 0%, rgba(8, 19, 39, 0.78) 54%, rgba(5, 11, 22, 0.88) 100%),
    url("assets/frostspire-floor-horizon.webp");
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.section-intro {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.subhead {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.body-copy {
  margin: 10px 0 0;
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: 62ch;
}

.small-copy {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Authentic card-style Hexagonal Sigil Element icons */
.sigil-hex-pair {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sigil-hex {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

/* Metallic card-frame container with Yureigan's holographic Sigil rail */
.card-plate {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(13, 30, 59, 0.96) 0%, rgba(6, 15, 32, 0.98) 100%);
  border: 1.5px solid var(--border-strong);
  box-shadow:
    inset 0 0 0 1px rgba(245, 184, 61, 0.22),
    inset 0 1px 0 rgba(155, 238, 255, 0.28),
    0 24px 56px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.card-plate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-ice) 0%, var(--accent-gold) 50%, var(--accent-ice) 100%);
  opacity: 0.85;
  pointer-events: none;
}

.card-plate--with-rail {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
}

.card-sigil-rail {
  background-image: url("assets/card-sigil-rail.webp");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  border-right: 1px solid var(--border-strong);
  opacity: 0.86;
}

/* ==========================================================================
   Section 2: Giveaway Entry & Card-Matrix Live Countdown
   ========================================================================== */

.entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.allocation-block {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.allocation-label {
  margin: 0 0 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-ice-bright);
}

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

/* Chamfered metallic combat-matrix style allocation cells */
.allocation-unit {
  position: relative;
  padding: 16px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 38, 74, 0.92) 0%, rgba(8, 19, 40, 0.96) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(155, 238, 255, 0.24);
  text-align: center;
}

.allocation-value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.allocation-name {
  display: block;
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.entry-highlights {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.entry-highlights li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.entry-highlights li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: linear-gradient(135deg, var(--accent-ice-bright), var(--accent-gold));
  transform: rotate(45deg);
}

.entry-highlights strong {
  color: var(--text);
  font-weight: 600;
}

/* Entry Form & Collector Ticket Card Plate */
.entry-panel-body {
  padding: clamp(24px, 3.2vw, 38px);
}

.entry-form {
  display: grid;
  gap: 20px;
}

.form-row-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

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

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: rgba(4, 11, 24, 0.92);
  color: var(--text);
  font-size: var(--text-body);
  transition: border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.field input::placeholder {
  color: var(--text-dim);
}

.field input:hover,
.field select:hover {
  border-color: var(--accent-ice);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: #06142b;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--accent-error);
}

.form-submit {
  width: 100%;
}

.form-footnote {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Confirmed Collector Ticket Card Pass */
.ticket-view[hidden],
.entry-form[hidden] {
  display: none;
}

.ticket-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ticket-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-id {
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.meta-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.meta-value {
  display: block;
  margin-top: 4px;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.claim-next-steps {
  padding-top: 22px;
}

.referral-row {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.referral-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: rgba(4, 11, 24, 0.92);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.copy-link-btn {
  padding: 11px 18px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--accent-gold);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.copy-link-btn:hover {
  background-color: var(--accent-gold);
  color: var(--accent-gold-ink);
}

.reset-entry-link {
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 160ms var(--ease-out);
}

.reset-entry-link:hover {
  color: var(--text);
}

/* ==========================================================================
   Section 3: 4K Museum Trio Showcase & Card Move-Bar Inspector
   ========================================================================== */

.trio-figure {
  margin: 36px 0 0;
}

.trio-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  box-shadow:
    inset 0 0 0 1px rgba(245, 184, 61, 0.2),
    0 24px 60px rgba(0, 0, 0, 0.56);
  background-color: var(--bg-deep);
}

.trio-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trio-caption {
  margin-top: 14px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.card-faces-gallery {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
}

.face-gallery-item {
  margin: 0;
}

.face-gallery-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-deep);
  box-shadow:
    0 0 0 1px rgba(245, 184, 61, 0.22),
    0 20px 48px rgba(0, 0, 0, 0.52);
}

.face-gallery-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.inspector-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Metallic card move-bar tabs with Sigil element runes */
.inspector-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.inspector-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  background-color: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out),
    border-left-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.inspector-tab:hover {
  background-color: rgba(84, 220, 255, 0.08);
}

.inspector-tab[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(24, 64, 118, 0.52) 0%, rgba(11, 27, 54, 0.25) 100%);
  border-left-color: var(--accent-gold);
}

.tab-label-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tab-title {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text);
}

.tab-stat {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-ice-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inspector-detail {
  padding-top: 6px;
}

.detail-quote {
  margin: 18px 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent-gold);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(16, 36, 70, 0.84) 0%, rgba(8, 19, 39, 0.94) 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-body);
  color: var(--text);
}

.detail-specs {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.detail-specs dt {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.detail-specs dd {
  margin: 4px 0 0;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Section 4: Ring Match Battle Rules + Frostspire Action Move-Bar Plate
   ========================================================================== */

.rules-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.simulator-band {
  margin-top: 36px;
}

.simulator-inner {
  padding: clamp(22px, 2.8vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  gap: 28px;
  align-items: center;
}

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

/* Card-style metallic slash-accent damage readouts */
.sim-metric {
  padding: 12px 14px;
  border-left: 3px solid var(--accent-ice);
  background: linear-gradient(135deg, rgba(18, 44, 84, 0.65) 0%, rgba(8, 20, 42, 0.35) 100%);
  transition: border-left-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.sim-metric.is-enraged {
  border-left-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(66, 52, 22, 0.42) 0%, rgba(14, 34, 68, 0.52) 100%);
}

.sim-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.sim-value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 180ms var(--ease-out);
}

.sim-metric.is-enraged .sim-value {
  color: var(--accent-gold);
}

.sim-note {
  display: block;
  margin-top: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Framed Frostspire Yureigan Holo Blast action art window */
.sim-beast-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.56);
  transition: border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

.sim-beast-visual img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  transition: transform 240ms var(--ease-out),
    filter 240ms var(--ease-out);
}

.simulator-band.is-night .sim-beast-visual {
  border-color: var(--border-gold);
  box-shadow:
    0 0 32px rgba(84, 220, 255, 0.34),
    0 18px 40px rgba(0, 0, 0, 0.65);
}

.simulator-band.is-night .sim-beast-visual img {
  transform: scale(1.035);
  filter: saturate(1.16) contrast(1.05);
}

.animation-showcase-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.rules-stack {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.rule-block {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}

.animation-player-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-card-frame {
  width: min(340px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background-color: var(--bg-deep);
  box-shadow:
    0 0 0 1px rgba(245, 184, 61, 0.28),
    0 0 36px rgba(84, 220, 255, 0.18),
    0 24px 56px rgba(0, 0, 0, 0.62);
}

.game-anim-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background-color: var(--bg-deep);
}

.video-caption {
  margin-top: 12px;
  text-align: center;
  max-width: 34ch;
}

/* ==========================================================================
   Section 5: Prize Vault & Official Terms Accordion
   ========================================================================== */

.prize-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.prize-visual-col {
  display: flex;
  justify-content: center;
}

.prize-hero-shot {
  width: min(350px, 100%);
  height: auto;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(245, 184, 61, 0.28),
    0 0 36px rgba(84, 220, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.56);
}

.prize-tiers {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.prize-tier {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.tier-count {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.faq-wrap {
  margin-top: 64px;
  max-width: 820px;
  scroll-margin-top: 96px;
}

.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--accent-ice);
  flex-shrink: 0;
  transition: transform 180ms var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0 0 22px;
  font-size: var(--text-body);
  color: var(--text-muted);
  max-width: 65ch;
}

/* ==========================================================================
   Footer over Frostspire Cracked Ice Horizon
   ========================================================================== */

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border-strong);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(3, 7, 17, 0.92) 0%, rgba(4, 10, 22, 0.72) 100%),
    url("assets/frostspire-floor-horizon.webp");
  background-size: cover;
  background-position: center bottom;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand img {
  height: 36px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-ice-bright);
}

.footer-legal {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile 390x844)
   ========================================================================== */

@media (max-width: 1180px) {
  .brand-divider,
  .brand-tagline {
    display: none;
  }
}

@media (max-width: 960px) {
  .entry-layout,
  .inspector-grid,
  .simulator-inner,
  .animation-showcase-grid,
  .prize-grid {
    grid-template-columns: 1fr;
  }

  .sim-beast-visual,
  .animation-player-col {
    order: -1;
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: #09162d;
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease-out),
      transform 180ms var(--ease-out);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav .nav-link {
    padding: 10px 8px;
    font-size: var(--text-body);
  }

  .primary-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
    padding: 12px 16px;
    font-size: var(--text-body);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand-logo {
    height: 36px;
  }

  .card-faces-gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 88px 0 52px;
  }

  .hero-title {
    font-size: clamp(2.15rem, 9.6vw, 3rem);
  }

  .holo-card-anchor {
    width: min(290px, 76vw);
  }

  .segmented-option {
    padding: 9px 12px;
    font-size: 0.875rem;
  }

  .allocation-grid {
    gap: 8px;
  }

  .allocation-unit {
    padding: 12px 6px;
  }

  .card-plate--with-rail {
    grid-template-columns: 1fr;
  }

  .card-sigil-rail {
    display: none;
  }

  .form-row-two,
  .sim-metrics,
  .ticket-meta,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .referral-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Official Rulebook Page (/rules) & Interactive Gameplay Tools
   ========================================================================== */

.inline-rules-link {
  color: var(--accent-ice-bright);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 160ms var(--ease-out);
}

.inline-rules-link:hover {
  color: var(--accent-gold);
}

.rules-masthead {
  padding: clamp(98px, 11vh, 124px) 0 48px;
  background:
    radial-gradient(ellipse 70% 55% at 22% 10%, rgba(44, 152, 232, 0.2) 0%, transparent 72%),
    var(--bg);
}

.rules-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 18ch;
  text-wrap: balance;
}

.rules-lead {
  margin: 16px 0 0;
  max-width: 64ch;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.rules-toc {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rules-toc a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-ice-bright);
  transition: color 160ms var(--ease-out);
}

.rules-toc a:hover {
  color: var(--accent-gold);
}

.rules-overview-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.overview-cell {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(16, 38, 74, 0.72) 0%, rgba(8, 19, 40, 0.9) 100%);
  border: 1px solid var(--border);
}

.rules-two-col {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.rules-plate-body {
  padding: clamp(22px, 3vw, 34px);
}

.anatomy-list {
  margin: 18px 0 0;
  display: grid;
  gap: 16px;
}

.anatomy-list div {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.anatomy-list dt {
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--accent-gold);
}

.anatomy-list dd {
  margin: 6px 0 0;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.rules-side-stack {
  display: grid;
  gap: 28px;
}

.rules-ordered-list,
.rules-plain-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.rules-ordered-list strong,
.rules-plain-list strong {
  color: var(--text);
}

/* Interactive 3x2 Arena Mat Visualizer */
.mat-scenario-bar {
  max-width: 100%;
  overflow-x: auto;
}

.mat-workspace {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.mat-board-wrap {
  padding: clamp(18px, 2.6vw, 28px);
}

.mat-side-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

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

.mat-tile {
  min-height: 78px;
  padding: 10px 8px;
  border-radius: 10px;
  background-color: rgba(6, 16, 36, 0.92);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  transition: border-color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.tile-coord {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.tile-unit {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.mat-tile.is-attacker {
  border-color: var(--accent-ice);
  background-color: rgba(24, 96, 148, 0.44);
  box-shadow: inset 0 0 16px rgba(84, 220, 255, 0.25);
}

.mat-tile.is-target {
  border-color: var(--accent-gold);
  background-color: rgba(140, 100, 22, 0.34);
}

.mat-tile.is-danger {
  border-color: var(--accent-error);
  background-color: rgba(154, 34, 58, 0.36);
}

.mat-tile.is-safe {
  border-color: var(--accent-success);
  background-color: rgba(24, 114, 76, 0.32);
}

.mat-tile.is-unit {
  border-color: var(--border-strong);
  background-color: rgba(18, 40, 78, 0.56);
}

.mat-ring-line {
  position: relative;
  margin: 16px 0;
  text-align: center;
}

.mat-ring-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.mat-ring-line span {
  position: relative;
  padding: 0 14px;
  background-color: #091730;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold);
}

.mat-legend {
  margin: 22px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.mat-legend dt {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.mat-legend dd {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* 6-Phase Turn Stepper */
.phase-tabs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.phase-tab {
  padding: 12px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background-color: rgba(8, 20, 42, 0.84);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.phase-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.phase-tab[aria-selected="true"] {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(28, 70, 128, 0.9) 0%, rgba(12, 32, 64, 0.96) 100%);
  color: var(--text);
}

.phase-detail-plate {
  margin-top: 20px;
}

.rules-three-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Combat Damage Calculator */
.calc-plate {
  margin-top: 32px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 28px;
  align-items: center;
}

.calc-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calc-output {
  padding: 20px;
  border-radius: var(--radius-sm);
  background-color: rgba(4, 11, 24, 0.85);
  border: 1px solid var(--border-strong);
}

.calc-result {
  display: block;
  margin: 8px 0 10px;
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

/* Responsive Rules Reference Tables */
.table-scroll {
  margin-top: 32px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background-color: rgba(7, 17, 36, 0.88);
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.rules-table th,
.rules-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.rules-table th {
  font-weight: 700;
  color: var(--accent-ice-bright);
  background-color: rgba(14, 34, 68, 0.72);
  white-space: nowrap;
}

.rules-table td {
  color: var(--text-muted);
}

.rules-table td strong {
  color: var(--text);
}

.rules-table tbody tr:last-child td {
  border-bottom: none;
}

.sample-match-plate {
  margin-top: 36px;
  padding: clamp(22px, 3vw, 34px);
}

@media (max-width: 960px) {
  .rules-overview-grid,
  .rules-two-col,
  .mat-workspace,
  .rules-three-grid,
  .calc-plate {
    grid-template-columns: 1fr;
  }

  .phase-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .calc-controls,
  .mat-legend {
    grid-template-columns: 1fr;
  }

  .mat-scenario-bar {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    overflow-x: visible;
  }

  .mat-scenario-bar .segmented-option:last-child {
    grid-column: 1 / -1;
  }

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

  .mat-tile {
    min-height: 68px;
    padding: 8px 4px;
  }
}

/* ==========================================================================
   Illustrated Rulebook Visual Enhancements (Frostspire + Card + Game Art)
   ========================================================================== */

.rules-masthead--frostspire {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(4, 10, 22, 0.72) 0%, rgba(5, 11, 22, 0.44) 55%, #050b16 100%),
    url("assets/frostspire-hero-bg.webp");
  background-size: cover;
  background-position: center bottom;
}

.masthead-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.masthead-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masthead-card-gem {
  position: absolute;
  z-index: 1;
  width: 174px;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 198, 92, 0.56);
  transform: translate(-112px, 14px) rotate(-14deg);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.65);
  opacity: 0.94;
}

.masthead-card-back {
  position: absolute;
  z-index: 1;
  width: 184px;
  border-radius: 13px;
  border: 1.5px solid rgba(245, 198, 92, 0.56);
  transform: translate(96px, 10px) rotate(13deg);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.65);
  opacity: 0.94;
}

.masthead-card-front {
  position: relative;
  z-index: 2;
  width: 215px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 198, 92, 0.78);
  transform: translate(0, -6px) rotate(-2deg);
  box-shadow:
    0 26px 56px rgba(0, 0, 0, 0.74),
    0 0 28px rgba(84, 220, 255, 0.3);
}

/* Interactive Annotated Card Anatomy Highlighter */
.anatomy-showcase-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.anatomy-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anatomy-card-frame {
  position: relative;
  width: min(390px, 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 198, 92, 0.64);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(84, 220, 255, 0.2);
}

.anatomy-card-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.anatomy-callout-box {
  position: absolute;
  top: 2.4%;
  left: 8.2%;
  width: 87.8%;
  height: 6.4%;
  border-radius: 8px;
  border: 2.5px solid var(--accent-gold);
  background-color: rgba(245, 184, 61, 0.16);
  box-shadow:
    0 0 0 2px rgba(5, 11, 22, 0.75),
    0 0 24px rgba(245, 184, 61, 0.55),
    inset 0 0 14px rgba(84, 220, 255, 0.3);
  pointer-events: none;
  transition: top 220ms var(--ease-out),
    left 220ms var(--ease-out),
    width 220ms var(--ease-out),
    height 220ms var(--ease-out);
}

.anatomy-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--accent-ice-bright);
  font-weight: 600;
}

.anatomy-selector-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.anatomy-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  background-color: rgba(6, 15, 32, 0.78);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    border-left-color 160ms var(--ease-out);
}

.anatomy-btn:hover {
  background-color: rgba(16, 40, 78, 0.6);
  border-color: var(--border-strong);
}

.anatomy-btn[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(28, 66, 120, 0.62) 0%, rgba(10, 24, 50, 0.86) 100%);
  border-color: var(--border-strong);
  border-left-color: var(--accent-gold);
}

.anatomy-btn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--text-body);
}

.setup-subgrid {
  margin-top: 44px;
}

/* Frostspire Neoprene Playmat & 3D Beast Sprite on Tiles */
.mat-board-wrap--frostspire {
  background-image:
    linear-gradient(180deg, rgba(5, 12, 26, 0.36) 0%, rgba(5, 12, 26, 0.24) 50%, rgba(5, 12, 26, 0.38) 100%),
    url("assets/arena-mat-frostspire.webp");
  background-size: cover;
  background-position: center;
}

.mat-tile {
  min-height: 92px;
  background-color: rgba(6, 16, 36, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tile-sprite {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mat-card-token {
  width: 38px;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(245, 198, 92, 0.78);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.72);
}

/* Illustrated Combat Damage Lab & Element Matchup Grid */
.calc-plate-visual {
  margin-top: 32px;
}

.calc-inner-visual {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: 28px;
  align-items: center;
}

.calc-output-visual {
  padding: 18px;
  border-radius: var(--radius-sm);
  background-color: rgba(4, 11, 24, 0.88);
  border: 1px solid var(--border-strong);
}

.calc-art-thumb {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.calc-art-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.element-chart-band {
  margin-top: 28px;
  padding: clamp(20px, 2.8vw, 30px);
}

.element-chart-header {
  display: grid;
  gap: 6px;
}

.element-matchup-grid {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.element-matchup-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) auto minmax(0, 1.4fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: rgba(6, 16, 36, 0.78);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.rune-pair,
.rune-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.matchup-arrow {
  font-weight: 700;
  color: var(--accent-gold);
}

/* Illustrated Sample Duel Band */
.sample-duel-band {
  margin-top: 36px;
}

.sample-duel-inner {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
  align-items: center;
}

.sample-duel-media {
  display: flex;
  justify-content: center;
}

.sample-duel-hero {
  width: min(300px, 100%);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(245, 184, 61, 0.25),
    0 22px 50px rgba(0, 0, 0, 0.62);
}

@media (max-width: 960px) {
  .masthead-split,
  .anatomy-showcase-grid,
  .calc-inner-visual,
  .sample-duel-inner {
    grid-template-columns: 1fr;
  }

  .masthead-visual {
    height: 300px;
  }

  .sample-duel-media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .element-matchup-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .masthead-card-gem {
    width: 132px;
    transform: translate(-76px, 12px) rotate(-13deg);
  }

  .masthead-card-back {
    width: 140px;
    transform: translate(72px, 10px) rotate(12deg);
  }

  .masthead-card-front {
    width: 168px;
    transform: translate(0, -4px) rotate(-2deg);
  }
}

/* ==========================================================================
   Official Arena Mat Showcase, Collector Card Galleries, Jewels & Lightbox
   ========================================================================== */

.official-mat-showcase {
  margin: 28px 0 0;
  padding: 12px;
  border-radius: var(--radius-lg);
}

.mat-zoom-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-deep);
  cursor: pointer;
}

.mat-zoom-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 240ms var(--ease-out);
}

.mat-zoom-trigger:hover img {
  transform: scale(1.012);
}

.mat-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: rgba(5, 11, 24, 0.88);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: var(--text-sm);
  font-weight: 700;
}

.mat-interactive-header {
  margin-top: 40px;
}

.gallery-block {
  margin-top: 40px;
}

.gallery-subhead-row {
  display: grid;
  gap: 8px;
}

.gallery-controls-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.collector-card-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.collector-card-grid--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collector-card-grid--sigils {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collector-card-grid--items {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.collector-card-tile {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14, 30, 62, 0.72) 0%, rgba(7, 15, 32, 0.94) 100%);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

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

.collector-card-tile.is-rare {
  border-color: rgba(245, 184, 61, 0.55);
}

.collector-card-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-ice-bright);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 22px rgba(84, 220, 255, 0.22);
}

.collector-card-tile.is-rare:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(245, 184, 61, 0.28);
}

.collector-card-tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.collector-card-meta {
  display: grid;
  gap: 2px;
  padding: 10px 4px 4px;
}

.collector-card-meta strong {
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.collector-card-meta span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Vault Jewels Strip & Token Sheet Preview */
.jewels-vault-band {
  margin-top: 44px;
  padding: clamp(20px, 2.8vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 28px;
  align-items: center;
}

.jewels-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.jewel-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  background-color: rgba(6, 15, 34, 0.84);
  border: 1px solid var(--border);
  text-align: center;
}

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

.jewel-chip span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.token-sheet-thumb {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background-color: rgba(6, 15, 34, 0.86);
  color: var(--accent-ice-bright);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.token-sheet-thumb:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.token-sheet-thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Accessible Full-Screen Card & Mat Lightbox */
.card-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.card-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 8, 18, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-lightbox-panel {
  position: relative;
  z-index: 2;
  width: min(920px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.card-lightbox-close {
  justify-self: end;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: rgba(12, 28, 58, 0.92);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.card-lightbox-close:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.card-lightbox-media {
  display: flex;
  justify-content: center;
}

.card-lightbox-media img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72);
}

.card-lightbox-body {
  display: grid;
  gap: 6px;
  text-align: center;
}

@media (max-width: 1024px) {
  .collector-card-grid--items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jewels-vault-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .collector-card-grid--trio {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collector-card-grid--sigils,
  .collector-card-grid--items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .mat-zoom-hint {
    position: static;
    display: block;
    margin: 10px 8px 4px;
    text-align: center;
  }
}

/* ==========================================================================
   Section 2 (Right Under 360 Giveaway Spin): Mythic Wildcrown Trio + Live Zonz Animations
   ========================================================================== */

.section-wildcrown-trio {
  position: relative;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255, 72, 132, 0.14), transparent 46%),
    radial-gradient(ellipse at 50% 8%, rgba(245, 184, 61, 0.12), transparent 46%),
    radial-gradient(ellipse at 82% 12%, rgba(84, 220, 255, 0.16), transparent 46%),
    linear-gradient(180deg, #050b16 0%, #071225 52%, #061022 100%);
  border-top: 1px solid rgba(118, 208, 255, 0.18);
  border-bottom: 1px solid rgba(118, 208, 255, 0.18);
}

.wildcrown-trio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 30px;
}

.trio-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 184, 61, 0.48);
  background: rgba(245, 184, 61, 0.12);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wildcrown-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.wildcrown-showcase-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(8, 18, 38, 0.86);
  border: 1px solid var(--border);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.wildcrown-showcase-col.is-kuronyx {
  border-color: rgba(255, 96, 146, 0.44);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 68, 128, 0.12);
}

.wildcrown-showcase-col.is-shirovyrn {
  border-color: rgba(245, 184, 61, 0.48);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(245, 184, 61, 0.12);
}

.wildcrown-showcase-col.is-yureigan {
  border-color: rgba(84, 220, 255, 0.48);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(84, 220, 255, 0.14);
}

.wildcrown-card-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), filter 220ms var(--ease-out);
}

.wildcrown-card-btn:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.05);
}

.wildcrown-card-btn img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.wildcrown-col-meta {
  display: grid;
  gap: 3px;
  padding: 2px 4px;
}

.wildcrown-col-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wildcrown-col-title-row .subhead {
  margin: 0;
  font-size: 1.15rem;
}

.wildcrown-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 36, 72, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--accent-ice-bright);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.wildcrown-showcase-col.is-kuronyx .wildcrown-pill {
  border-color: rgba(255, 110, 156, 0.55);
  color: #ffb0cc;
}

.wildcrown-showcase-col.is-shirovyrn .wildcrown-pill {
  border-color: rgba(245, 184, 61, 0.55);
  color: #ffe08a;
}

.wildcrown-col-meta .small-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.wildcrown-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #030712;
  border: 1px solid rgba(126, 222, 255, 0.34);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.65), 0 10px 26px rgba(0, 0, 0, 0.52);
}

.wildcrown-video-frame .game-anim-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trio-audio-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .wildcrown-trio-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}
