/* ==========================================================================
   Formidable — Static Website
   Cinematic snap-scroll marketing site for GitHub Pages
   ========================================================================== */

/* ── Custom Properties ── */
:root {
  --navy-deep: #0f1a2e;
  --navy-mid: #1a2d45;
  --stone: #2a3a52;

  --gold: #d4a843;
  --gold-warm: #b8892e;
  --gold-deep: #7a5c1f;
  --gold-light: #e8d090;

  --silver: #a8b0b8;
  --silver-light: #c8ccd0;

  --crimson: #9b2335;
  --crimson-accent: #d4443e;
  --blue-steel: #2e5a88;
  --blue-accent: #4a90d9;

  --text: #e8e0d4;
  --text-muted: #8a9aad;
  --bg-dark: #0a0e18;

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--text);
  line-height: 1.7;
  overflow: hidden;
  animation: page-fade-in 1s ease both;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* Screen-reader only utility */
.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 to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.5rem 1.5rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  color: var(--navy-deep);
}

/* Global focus-visible styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-dot:focus-visible {
  outline-offset: 4px;
}

/* ── Scroll Container ── */
.scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* Hide scrollbar — navigation via dots, mouse wheel, and keyboard */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Symmetric padding to visually center content against the fixed nav-dots on the right */
  padding-left: calc(1.5rem + 10px);
  padding-right: calc(1.5rem + 10px);
}
.scroll-container::-webkit-scrollbar {
  display: none;
}
.scroll-container.no-snap {
  scroll-snap-type: none;
}

/* ── Section Base ── */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Section Heading ── */
.section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   NAVIGATION — Top Bar (Concept 5 style)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav--scrolled {
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 168, 67, 0.12);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color 0.25s ease;
}
.nav__logo:hover { color: var(--gold-light); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__links li a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a9aad;
  padding: 0.5rem 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: color 0.25s ease;
}
.nav__links li a:hover,
.nav__links li a.nav__link--active {
  color: var(--gold);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   NAVIGATION — Dots (Concept 2 style)
   ========================================================================== */
.nav-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}
.nav-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(168, 176, 184, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* Enlarge touch target to 44x44px without changing visual size */
.nav-dot::after {
  content: '';
  position: absolute;
  top: -17px;
  right: -17px;
  bottom: -17px;
  left: -17px;
}
.nav-dot:hover { border-color: var(--gold); }
.nav-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(212, 168, 67, 0.4);
}
.nav-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 14, 24, 0.9);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-dot:hover .nav-tooltip { opacity: 1; }

/* ==========================================================================
   SECTION 1 — Hero / Title Card
   ========================================================================== */
.section--hero {
  background: #040814;
  flex-direction: column;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  margin-top: -2rem;
}

.hero__logo {
  width: 700px;
  max-width: 85vw;
  position: relative;
  z-index: 2;
  /* Feather edges so the image blends seamlessly into the background */
  mask-image: radial-gradient(ellipse 85% 82% at center, black 45%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 85% 82% at center, black 45%, transparent 90%);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 600;
  opacity: 1;
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
}

/* Hero divider — separates message zone from action zone */
.hero__divider {
  width: 320px;
  max-width: 50vw;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 168, 67, 0.25), transparent);
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 3;
}

/* Hero CTAs */
.hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 3;
}

/* Shared CTA style — text links with icons */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #8a9aad;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}
.hero__cta:hover {
  color: var(--gold);
}
.hero__cta svg {
  flex-shrink: 0;
}

/* Glow element hidden — kept in DOM for potential future use */
.hero__glow {
  display: none;
}

/* ==========================================================================
   Video Lightbox Modal
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal__wrapper {
  position: relative;
  width: 80vw;
  max-width: 960px;
}
.video-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #8a9aad;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.video-modal__close:hover {
  color: var(--gold);
}
.video-modal__frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}
.video-modal__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--silver);
  opacity: 0.4;
  cursor: pointer;
  animation: bounce-down 2s ease-in-out infinite;
  transition: opacity 0.3s;
  z-index: 2;
}
.scroll-indicator:hover { opacity: 0.8; }
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   SECTION 2 — About the Game (photo bg + readable text panel)
   ========================================================================== */
.section--about {
  background: var(--bg-dark);
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

.about__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
/* Strong gradient overlay — light at top (image visible), dark at bottom (text readable) */
.about__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(10, 14, 24, 0.10) 0%,
    rgba(10, 14, 24, 0.10) 30%,
    rgba(10, 14, 24, 0.55) 50%,
    rgba(10, 14, 24, 0.90) 65%,
    rgba(10, 14, 24, 0.98) 80%,
    rgba(10, 14, 24, 1.00) 100%
  );
}

.about__text-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 4.5rem;
}

.about__text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0.9;
}
.about__text p:last-child { margin-bottom: 0; }

/* Resource cards inside About section */
.about__resources {
  margin-top: 1.5rem;
}
.about__resources-parent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  transition: opacity 0.3s ease;
}
.about__resources-sub {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: end;
}
.about__resources-sub.is-active {
  display: grid;
  animation: resource-sub-in 0.3s ease both;
}
.about__resources-parent.is-hidden {
  display: none;
}
@keyframes resource-sub-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Back button */
.about__resources-back {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.about__resources-back:hover {
  color: var(--gold);
}
button.about__resource-card {
  text-align: left;
  font: inherit;
  padding: 0;
}
.about__resource-card {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.2);
  background: linear-gradient(145deg, rgba(42, 58, 82, 0.5), rgba(26, 45, 69, 0.35));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  color: var(--text);
}
.about__resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 168, 67, 0.08);
  border-color: var(--gold);
  color: var(--text);
}
.about__resource-img {
  position: relative;
  overflow: hidden;
}
.about__resource-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
/* Rules parent card, Gameplay Photos parent card, Unit Booklet sub-card: show top of image */
.about__resources-parent .about__resource-card:first-child img,
.about__resources-parent .about__resource-card:nth-child(2) img,
.about__resources-sub[data-group="rules"] .about__resource-card:nth-child(2) img {
  object-position: top;
}
.about__resource-card:hover img {
  transform: scale(1.05);
}
.about__resource-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-align: center;
  transition: color 0.3s ease, gap 0.3s ease;
}
.about__resource-card:hover .about__resource-title {
  color: var(--gold-light);
}
.about__resource-title::after {
  content: '\2192';
  font-size: 1rem;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.about__resource-card:hover .about__resource-title::after {
  width: 1rem;
  opacity: 1;
}
/* Video play icon */
.about__resource-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.about__resource-play svg {
  margin-left: 3px; /* optical centering for play triangle */
}
.about__resource-card--video:hover .about__resource-play {
  background: rgba(212, 168, 67, 0.6);
  border-color: var(--gold-light);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ==========================================================================
   SECTION 3 — The Armies (Concept 5 red/blue split)
   ========================================================================== */
.section--armies {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(135deg, rgba(155, 35, 53, 0.10) 0%, rgba(155, 35, 53, 0.04) 25%, transparent 50%),
    linear-gradient(225deg, rgba(46, 90, 136, 0.10) 0%, rgba(46, 90, 136, 0.04) 25%, transparent 50%),
    radial-gradient(ellipse at center, #0f1a2e 0%, rgba(15, 26, 46, 0) 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 69.28 120'%3E%3Cpath d='M0,20 L34.64,0 L69.28,20 L69.28,60 L34.64,80 L0,60 Z M34.64,80 L34.64,120' fill='none' stroke='%23b4c8e6' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, auto, auto, 69.28px 120px;
  background-position: 0 0, 0 0, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}

/* Legacy bg panels — replaced by section background */
.armies__bg { display: none; }

.armies__center-line {
  display: none;
  background: linear-gradient(to bottom,
    transparent,
    var(--gold-warm) 25%,
    var(--gold) 50%,
    var(--gold-warm) 75%,
    transparent
  );
  opacity: 0.25;
  z-index: 2;
}
.armies__center-line::before {
  display: none;
}

.armies__inner {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.armies__side {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.armies__side--red { align-items: flex-end; padding-right: 1rem; }
.armies__side--blue { align-items: flex-start; padding-left: 1rem; }
.armies__side--blue .armies__list li span {
  display: inline-block;
  min-width: 10.5rem;
  text-align: right;
}

.armies__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  transition: transform 0.3s ease;
  cursor: default;
  position: relative;
}
.armies__list li:hover {
  z-index: 20;
}
.armies__list li span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.75vw, 1.35rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}
.armies__side--red .armies__list li span { color: var(--crimson-accent); }
.armies__side--blue .armies__list li span { color: var(--blue-accent); }
.armies__side--red .armies__list li:hover span { color: #e8575a; transform: translateX(45px); }
.armies__side--blue .armies__list li:hover span { color: #6bb0f0; transform: translateX(-45px); }
.armies__side--red .armies__list li:hover { transform: translateX(8px); }
.armies__side--blue .armies__list li:hover { transform: translateX(-8px); }

/* Stacked card groups for multi-count units */
.armies__card-stack {
  position: relative;
  flex-shrink: 0;
}
.armies__card-stack .armies__card {
  position: absolute;
  top: 0;
  left: 0;
}
.armies__card-stack .armies__card:last-child {
  position: relative;
}
/* x2 stack: back card peeking out */
.armies__side--blue .armies__card-stack--2 {
  margin-left: 13px;
}
.armies__card-stack--2 .armies__card:nth-child(1) {
  transform: translate(-13px, -8px) rotate(-6deg);
}
/* x3 stack: two back cards peeking out, whole stack shifted up slightly */
.armies__side--red .armies__list li:first-child {
  position: relative;
  top: -0.5em;
}
.armies__card-stack--3 {
  margin-top: -0.75rem;
}
.armies__card-stack--3 .armies__card:nth-child(1) {
  transform: translate(-22px, -10px) rotate(-10deg);
}
.armies__card-stack--3 .armies__card:nth-child(2) {
  transform: translate(-10px, -5px) rotate(-4deg);
}

/* Unit card thumbnails */
.armies__card {
  width: 81px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
/* Hover: enlarge all cards in a unit row */
/* Single cards get the enhanced shadow directly */
.armies__list li:hover > .armies__card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 10;
}
/* Stacks: enhanced shadow on the backmost card only; front card keeps subtle shadow */
.armies__list li:hover .armies__card-stack .armies__card:first-child {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.armies__list li:hover .armies__card-stack .armies__card:last-child {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
/* Single cards and front card of stacks */
.armies__list li:hover .armies__card-stack .armies__card:last-child,
.armies__list li:hover > .armies__card {
  transform: scale(2);
}
/* x2 stack: scale the back card while preserving its fan offset */
.armies__list li:hover .armies__card-stack--2 .armies__card:nth-child(1) {
  transform: translate(-13px, -8px) rotate(-6deg) scale(2);
}
/* x3 stack: scale both back cards while preserving their fan offsets */
.armies__list li:hover .armies__card-stack--3 .armies__card:nth-child(1) {
  transform: translate(-22px, -10px) rotate(-10deg) scale(2);
}
.armies__list li:hover .armies__card-stack--3 .armies__card:nth-child(2) {
  transform: translate(-10px, -5px) rotate(-4deg) scale(2);
}
/* Fan arc disabled for now */

.armies__center {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.armies__center::before {
  content: '';
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent,
    var(--gold-warm) 25%,
    var(--gold) 50%,
    var(--gold-warm) 75%,
    transparent
  );
  opacity: 0.25;
  z-index: -1;
}
.armies__headline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--gold);
  line-height: 1.5;
  white-space: nowrap;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(212, 168, 67, 0.2);
}

/* ==========================================================================
   SECTION 4 — Play Online (full-bleed image + card overlay)
   ========================================================================== */
.section--play {
  background: var(--bg-dark);
}

.play__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.play__photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
/* Radial vignette — darkens edges, keeps center image visible */
.play__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at center, transparent 20%, rgba(10, 14, 24, 0.7) 70%, rgba(10, 14, 24, 0.95) 100%);
}

.play__card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 2rem;
  padding: 2.75rem 2rem;
  background: linear-gradient(160deg, rgba(26, 45, 69, 0.85) 0%, rgba(15, 26, 46, 0.9) 50%, rgba(26, 45, 69, 0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow:
    0 0 40px rgba(212, 168, 67, 0.15),
    0 0 80px rgba(212, 168, 67, 0.08),
    0 12px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 80px rgba(212, 168, 67, 0.03);
  text-align: center;
  overflow: hidden;
}

/* Animated shimmer border */
.play__shimmer {
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  border: 2px solid transparent;
  background: linear-gradient(45deg, var(--gold), var(--gold-warm), var(--gold), var(--gold-deep), var(--gold)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  animation: shimmer-pulse 4s ease-in-out infinite;
  opacity: 0.6;
}
@keyframes shimmer-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Gold corner ornaments */
.play__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
}
.play__corner--tl { top: 8px; left: 8px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.play__corner--tr { top: 8px; right: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); }
.play__corner--bl { bottom: 8px; left: 8px; border-bottom: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.play__corner--br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.play__content {
  position: relative;
  z-index: 1;
}

.play__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.play__divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto;
}

.play__status {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--silver-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.play__desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   SECTION 5 — About the Designer + Footer
   ========================================================================== */
.section--designer {
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse at center, #1e3048 0%, rgba(30, 48, 72, 0) 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 69.28 120'%3E%3Cpath d='M0,20 L34.64,0 L69.28,20 L69.28,60 L34.64,80 L0,60 Z M34.64,80 L34.64,120' fill='none' stroke='%23b4c8e6' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(160deg, var(--stone) 0%, #1e3048 50%, var(--navy-deep) 100%);
  background-size: auto, 69.28px 120px, auto;
  background-position: center, center, 0 0;
  background-repeat: no-repeat, repeat, no-repeat;
  flex-direction: column;
  justify-content: center;
}

.designer__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5rem 2rem 1.5rem;
  gap: 1.5rem;
}

.designer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
}

.designer__portrait img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 67, 0.3);
  box-shadow: 0 0 40px rgba(212, 168, 67, 0.08);
  image-rendering: pixelated;
}

.designer__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.designer__bio p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 0.85rem;
  color: var(--text);
  opacity: 0.88;
}
.designer__bio p:last-child { margin-bottom: 0; }

/* Divider between bio and contact */
.contact__divider {
  width: 320px;
  max-width: 50vw;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 168, 67, 0.25), transparent);
  margin: 0.75rem auto 0;
}

/* Contact section */
.contact {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.contact__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 1.25rem;
}
.contact__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  background: linear-gradient(145deg, rgba(42, 58, 82, 0.45), rgba(26, 45, 69, 0.3));
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: var(--text);
}
.contact__card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(212, 168, 67, 0.1);
  background: linear-gradient(145deg, rgba(42, 58, 82, 0.6), rgba(26, 45, 69, 0.45));
  color: var(--text);
}
/* Highlight pulse when navigated to from nav */
.contact__card.is-highlighted {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.2), 0 0 40px rgba(212, 168, 67, 0.1);
  animation: contact-pulse 1.5s ease-out;
}
@keyframes contact-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
  70%  { box-shadow: 0 0 20px 8px rgba(212, 168, 67, 0.15); }
  100% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.2), 0 0 40px rgba(212, 168, 67, 0.1); }
}
.contact__label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.contact__card:hover .contact__label {
  color: var(--gold-light);
}
.contact__desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.contact__addr {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact__card:hover .contact__addr {
  border-color: var(--gold-light);
  color: #fff;
}
/* "Copied!" feedback */
.contact__copied {
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.contact__card.is-copied .contact__copied {
  animation: copied-flash 1.5s ease forwards;
}
@keyframes copied-flash {
  0%   { opacity: 0; transform: translateX(-50%) translateY(4px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── Footer ── */
.footer {
  width: 100%;
  padding: 0 2rem 2rem;
}
.footer__divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--gold-warm) 30%,
    var(--gold) 50%,
    var(--gold-warm) 70%,
    transparent
  );
  opacity: 0.3;
  margin-bottom: 1.5rem;
}
.footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__top {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.footer__top:hover { color: var(--gold); }

/* ==========================================================================
   Fade-in Animation Classes (applied by JS)
   ========================================================================== */
.fade-in {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.7s ease, transform 0.7s ease !important;
}
.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Stagger delays for about resource cards */
.about__resource-card.fade-in:nth-child(2) { transition-delay: 0.1s !important; }
.about__resource-card.fade-in:nth-child(3) { transition-delay: 0.2s !important; }

/* Armies side reveal — slide from sides */
.armies__side--red.fade-in { transform: translateX(-40px) !important; }
.armies__side--blue.fade-in { transform: translateX(40px) !important; }
.armies__side--red.fade-in.visible,
.armies__side--blue.fade-in.visible { transform: translateX(0) !important; }

/* ==========================================================================
   RESPONSIVE — Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  body { overflow: auto; }

  .scroll-container {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding-left: 0;
    padding-right: 0;
  }
  .section {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: none;
    scroll-margin-top: 60px;
  }

  /* Nav dots + scroll arrows — hide on mobile */
  .nav-dots { display: none; }
  .scroll-indicator { display: none; }

  /* Nav — solid background on mobile (content scrolls behind it) */
  .nav {
    background: var(--navy-deep);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.12);
  }

  /* Nav toggle — show on mobile */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 26, 46, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links li a {
    display: block;
    padding: 0.75rem 2rem;
    text-align: center;
  }

  /* Hero */
  .section--hero {
    overflow-x: hidden;
  }
  .hero__logo {
    width: 130vw;
    max-width: none;
  }
  .hero__tagline {
    margin-top: -1.5rem;
    font-size: 1.2rem;
    padding: 0 1rem;
  }
  .hero__ctas {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero__cta {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }

  /* About */
  .about__photo-img {
    object-fit: contain;
    object-position: center top;
  }
  .about__text-panel {
    padding-top: 34vh;
    padding-bottom: 3rem;
  }
  .about__text p {
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  /* Armies */
  .armies__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1.5rem;
  }
  /* Dissolve side containers + lists so li elements become grid children */
  .armies__side--red,
  .armies__side--blue,
  .armies__side--red .armies__list,
  .armies__side--blue .armies__list {
    display: contents;
  }
  /* Interleave: red odd, blue even — mimics desktop left-right */
  .armies__side--red .armies__list li:nth-child(1) { order: 1; margin-top: 1.5rem; }
  .armies__side--blue .armies__list li:nth-child(1) { order: 2; }
  .armies__side--red .armies__list li:nth-child(2) { order: 3; }
  .armies__side--blue .armies__list li:nth-child(2) { order: 4; }
  .armies__side--red .armies__list li:nth-child(3) { order: 5; }
  .armies__side--blue .armies__list li:nth-child(3) { order: 6; }
  .armies__side--red .armies__list li:nth-child(4) { order: 7; }
  .armies__side--blue .armies__list li:nth-child(4) { order: 8; margin-bottom: 1.5rem; }
  .armies__center { order: -1; padding-top: 2.5rem; }
  .armies__center::before { display: none; }
  .armies__headline {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    white-space: normal;
  }
  .armies__bg--left,
  .armies__bg--right { display: none; }
  .armies__center-line { display: none; }
  /* Keep the navy-deep + hex pattern from desktop — don't override to flat stone */
  .armies__list li {
    /* Normalize layout: always card then text, left-to-right */
    flex-direction: row;
    justify-content: flex-start;
    justify-self: center;
    gap: 1rem;
    width: 100%;
    max-width: 280px;
  }
  /* Force consistent order: card first, text second (blue HTML has span before card) */
  .armies__side--blue .armies__list li span {
    order: 2;
    text-align: left;
    min-width: auto;
  }
  .armies__side--blue .armies__list li > .armies__card,
  .armies__side--blue .armies__list li > .armies__card-stack {
    order: 1;
  }
  .armies__side--blue .armies__card-stack--2 {
    margin-left: 0;
  }
  .armies__card {
    width: 90px;
  }
  /* Fixed-width card area so text labels align regardless of stack size */
  .armies__list li > .armies__card,
  .armies__list li > .armies__card-stack {
    width: 110px;
    min-width: 110px;
    display: flex;
    justify-content: center;
  }
  .armies__side--red .armies__card,
  .armies__side--blue .armies__card {
    transform: none;
  }
  /* Disable card hover zoom on mobile — overflows container */
  .armies__list li:hover .armies__card-stack .armies__card:last-child,
  .armies__list li:hover > .armies__card,
  .armies__list li:hover .armies__card-stack--2 .armies__card:nth-child(1),
  .armies__list li:hover .armies__card-stack--3 .armies__card:nth-child(1),
  .armies__list li:hover .armies__card-stack--3 .armies__card:nth-child(2) {
    transform: none;
  }
  .armies__side--red .armies__list li:hover,
  .armies__side--blue .armies__list li:hover {
    transform: none;
  }
  .armies__side--red .armies__list li:hover span,
  .armies__side--blue .armies__list li:hover span {
    transform: none;
  }

  /* Reveal adjustments — display:contents ignores transforms, skip on mobile */

  /* About resource cards */
  .about__resources-parent {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  .about__resources-sub {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
  .about__resource-card img {
    height: 180px;
  }
  .about__resource-card {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 168, 67, 0.06);
  }
  .about__resource-title::after {
    width: 1rem;
    opacity: 1;
  }

  /* Play */
  .section--play {
    justify-content: flex-end;
    min-height: auto;
    padding: 75vw 0 3rem;
  }
  .play__photo-img {
    object-fit: contain;
    object-position: center top;
  }
  .play__photo::after {
    background: radial-gradient(ellipse 80% 70% at center 35%, transparent 30%, rgba(10, 14, 24, 0.5) 65%, rgba(10, 14, 24, 0.9) 100%);
  }
  .play__card {
    padding: 2.5rem 1.5rem;
  }
  .play__title { font-size: 1.5rem; }

  /* Designer */
  .designer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .designer__portrait {
    display: flex;
    justify-content: center;
  }
  .designer__portrait img {
    width: 110px;
    height: 110px;
  }
  .contact__options {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .contact__card {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 168, 67, 0.06);
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ── Tablet (768–1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__logo { width: 550px; }
}

/* ── Large screens ── */
@media (min-width: 1400px) {
  .hero__logo { width: 800px; }
  .hero__tagline { font-size: 1.5rem; }
  .armies__headline { font-size: 3rem; }
  .section-heading { font-size: 2.4rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .scroll-container { scroll-behavior: auto; }
  body { animation: none; }
  .play__shimmer { animation: none; }
  .scroll-indicator { display: none; }
  .contact__card.is-highlighted { animation: none; }
  .contact__card.is-copied .contact__copied { animation: none; opacity: 1; }
  .about__resources-sub.is-active { animation: none; }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
