/* The supplied game identity replaces display titles; running copy stays readable text. */
.game-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.game-logo-heading { line-height: 1; }
/* Let the copy size the spotlight, without the square artwork stretching the row. */
.game-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 560px; }
.feature-art { position: relative; min-height: 0; }
.feature-art img { position: absolute; inset: 0; }
.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: clamp(32px, 3.5vw, 48px);
}
.feature-copy .game-logo-heading { width: 100%; max-width: 420px; margin: 0 auto; }
.feature-copy p { max-width: none; font-size: 18px; }
.feature-copy .store-badges { margin-top: 0; }
.showcase-title .game-logo-heading { width: 240px; margin-bottom: 18px; }
.showcase-wordmark {
  width: min(72%, 660px);
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 12px 22px #05101b88);
}
.showcase-image .game-logo { height: auto; object-fit: contain; }
.showcase-image:hover .game-logo { transform: none; }
.game-hero-copy .game-logo-heading { width: min(100%, 580px); max-width: none; margin-inline: auto; }
.game-hero-copy .game-logo { filter: drop-shadow(0 8px 12px #08172a66); }
.game-hero-copy .game-tagline { font-family: var(--heading); font-size: 30px; line-height: 1.2; }
.game-hero-copy .store-badges { max-width: none; justify-content: center; }
.game-hero-copy .game-release-note { font-size: 12px; margin-top: 16px; color: #fff; }

.game-jumpnav {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 20px 24px;
  background: var(--brand-navy);
  color: var(--paper);
  border-top: 1px solid #ffffff21;
}
.game-jumpnav a { font-family: var(--heading); font-size: 17px; white-space: nowrap; }
.game-jumpnav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.game-jumpnav a:focus-visible, .deck-section a:focus-visible { outline-color: var(--paper); }
.game-intro { padding-top: 100px; padding-bottom: 90px; }
.game-intro p { font-size: 27px; }

.screenshots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-featured { grid-column: 1 / -1; }
.gallery-image {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 8px;
  width: 100%;
  background: var(--brand-navy);
  cursor: zoom-in;
  box-shadow: 0 6px 28px #01081c12;
}
.gallery-image img { width: 100%; height: auto; border-radius: inherit; }
.gallery-expand {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--brand-navy);
  color: white;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  font-size: 22px;
  transition: transform .2s;
}
.gallery-image:hover .gallery-expand { transform: scale(1.06); }

.deck-section { background: var(--brand-navy); color: var(--paper); padding: 85px 0; overflow: clip; }
.deck-layout { display: grid; gap: 48px; }
.deck-copy { max-width: 920px; margin-inline: auto; text-align: center; }
.deck-copy h2 { font-size: clamp(38px, 3.8vw, 56px); margin-bottom: 24px; }
.deck-copy p { color: #d0d9e5; max-width: 720px; margin-inline: auto; }
.card-collection { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.card-collection > li { min-width: 0; }
.unit-card { height: 100%; margin: 0; overflow: hidden; border: 2px solid #5b7194; border-radius: 12px; box-shadow: 0 10px 24px #0005; background: #091a38; }
.unit-card img { width: 100%; height: auto; border-radius: 8px 8px 0 0; }
.unit-card figcaption { padding: 12px 8px; text-align: center; font-family: var(--heading); font-size: 18px; line-height: 1.3; }

.heroes-section { padding-top: 100px; padding-bottom: 100px; }
.hero-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hero-portrait { position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: var(--brand-navy); isolation: isolate; }
.hero-portrait > img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.hero-portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #01081cf2, #01081c40 28%, transparent 55%); z-index: 1; }
.hero-portrait figcaption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 28px; color: white; }
.hero-portrait figcaption > span { font-size: 12px; display: block; margin-bottom: 8px; }
.hero-portrait h3 { font-size: clamp(26px, 2.5vw, 36px); }
.upgrade-section { padding: 90px 0; background: #e9ecdf; }
.upgrade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.upgrade-card { overflow: hidden; border-radius: 10px; background: var(--paper); }
.upgrade-art { height: 280px; overflow: hidden; background: var(--brand-navy); }
.upgrade-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.upgrade-copy { padding: 28px; }
.upgrade-copy h3 { margin-bottom: 12px; font-size: 30px; }
.upgrade-copy p { color: #5b6354; }
.spell-art { position: relative; background: radial-gradient(ellipse at center, #263d64, var(--brand-navy) 80%); }
.spell-art > img { position: absolute; width: 43%; height: 62%; object-fit: contain; filter: drop-shadow(0 8px 12px #0006); }
.spell-art > img:nth-child(1) { top: 7%; left: 29%; }
.spell-art > img:nth-child(2) { bottom: 5%; left: 5%; width: 34%; height: 52%; }
.spell-art > img:nth-child(3) { bottom: 7%; right: 4%; width: 33%; height: 50%; }
.leagues-section { padding: 90px 0; margin-bottom: 90px; background: var(--brand-navy); color: var(--paper); }
.leagues-section .section-heading { text-align: center; }
.leagues-section .section-heading p { margin-inline: auto; color: #d0d9e5; }
.league-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.league-ladder li { min-width: 0; text-align: center; }
.league-ladder img { width: 100%; max-width: 200px; margin-inline: auto; filter: drop-shadow(0 10px 16px #0005); }
.league-ladder h3 { margin-top: 16px; font-size: clamp(19px, 2vw, 26px); }
.game-coming { background: #e9ecdf; }
.game-coming > .game-logo { max-width: 340px; margin: 0 auto 32px; }
.game-coming .store-badges { justify-content: center; }

@media (max-width: 1000px) {
  .card-collection { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .unit-card figcaption { font-size: 16px; }
  .hero-portrait figcaption { left: 18px; right: 18px; bottom: 20px; }
  .upgrade-grid { gap: 18px; }
  .upgrade-copy { padding: 22px; }
  .upgrade-art { height: 230px; }
  .league-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 900px) {
  .game-feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-art { height: clamp(280px, 50vw, 440px); }
  .feature-copy { padding: 32px; }
  .feature-copy .game-logo-heading { max-width: 360px; }
  .feature-copy p { font-size: 16px; }
}

@media (max-width: 700px) {
  .feature-copy { padding: 28px 24px 32px; }
  .showcase-title .game-logo-heading { width: 220px; }
  .showcase-wordmark { width: 86%; }
  .game-hero-copy .game-logo-heading { width: 100%; max-width: 480px; margin-inline: auto; }
  .game-hero-copy .game-tagline { font-size: 28px; }
  .game-hero-copy .store-badges { max-width: none; justify-content: center; }
  .game-jumpnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; gap: 14px 12px; padding: 17px 20px; }
  .game-jumpnav a { font-size: 14px; white-space: nowrap; }
  .game-intro { padding-top: 64px; padding-bottom: 60px; }
  .game-intro p { font-size: 24px; }
  .screenshots-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-featured { grid-column: auto; }
  .gallery-expand { width: 32px; height: 32px; bottom: 10px; right: 10px; }
  .deck-section { padding: 60px 0; }
  .deck-layout { gap: 32px; }
  .card-collection { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .unit-card figcaption { font-size: 14px; padding: 10px 6px; }
  .heroes-section { padding-top: 60px; padding-bottom: 60px; }
  .hero-roster { grid-template-columns: 1fr; gap: 20px; }
  .hero-portrait > img { aspect-ratio: 1; object-position: 50% 20%; }
  .hero-portrait h3 { font-size: 32px; }
  .upgrade-section, .leagues-section { padding-block: 60px; }
  .upgrade-grid { grid-template-columns: 1fr; gap: 24px; }
  .upgrade-art { height: 280px; }
  .upgrade-copy { padding: 24px; }
  .leagues-section { margin-bottom: 60px; }
  .league-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .league-ladder h3 { margin-top: 10px; font-size: 23px; }
}

@media (max-width: 480px) {
  .card-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
