/* Home-only presentation. Shared game pages retain their existing styles. */
body[data-page="home"] .steam-hero .hero-bg { object-position: left center; }
body[data-page="home"] .campaign-playtest-art { aspect-ratio: 1; align-self: center; }
body[data-page="home"] .campaign-playtest-art img { object-fit: contain; }
body[data-page="home"] .campaign-wall-playtest {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
}
body[data-page="home"] .campaign-playtest-body {
  grid-template-columns: minmax(0, 1fr); border-top: 0;
  border-left: 1px solid rgba(72, 199, 216, .2); padding: clamp(24px, 3vw, 42px);
}
body[data-page="home"] .campaign-wall-playtest .campaign-copy h2 {
  font-size: clamp(2rem, 3.2vw, 3.8rem);
}
body[data-page="home"] .steam-splash-visual {
  width: min(100%, 48vh, 500px); max-height: none; aspect-ratio: 1;
  transform: none;
}
body[data-page="home"] .steam-splash-visual img { object-fit: contain; }
body[data-page="home"] .tv-splash-steam { overflow-y: auto; }
body[data-page="home"] footer.site-footer .footer-social a.footer-steam-link {
  width: 132px !important; height: 48px !important; padding: 5px 7px; flex: 0 0 132px;
}
body[data-page="home"] .footer-social .footer-steam-link .steam-mini-logo {
  width: 116px; height: 36px; object-fit: contain; border-radius: 0;
}
/* Keep the complete hero above the fixed consent panel on short desktop screens. */
@media (min-width: 1100px) and (max-width: 1599px) and (max-height: 760px) {
  html.has-analytics-consent-pending body[data-page="home"] .steam-hero {
    align-items: start; padding-top: 78px;
  }
  html.has-analytics-consent-pending body[data-page="home"] .steam-hero .hero-inner {
    transform: none;
  }
  html.has-analytics-consent-pending body[data-page="home"] .hero-title-lockup {
    width: min(100%, 256px);
  }
}
@media (max-width: 700px) {
  body[data-page="home"] .campaign-wall-playtest { grid-template-columns: minmax(0, 1fr); }
  body[data-page="home"] .campaign-playtest-art { width: min(100%, 480px); margin-inline: auto; }
  body[data-page="home"] .campaign-playtest-body { border-left: 0; border-top: 1px solid rgba(72, 199, 216, .2); }
  body[data-page="home"] .steam-hero .hero-bg { object-position: 50% center; }
  body[data-page="home"] .campaign-playtest-body { padding: 24px 18px; }
}
@media (max-width: 640px) {
  body[data-page="home"] .tv-splash-steam { align-content: start; }
  body[data-page="home"] .steam-splash-visual { width: min(100%, 320px); aspect-ratio: 1; }
}

/* Festival entrance: the existing splash owns visibility, dismissal and storage. */
body[data-page="home"] .festival-splash {
  --festival-navy: #07131f; --festival-cyan: #16d3e7; --festival-gold: #e6ba60;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  gap: 20px; align-items: start; align-content: start;
  padding: 0 clamp(20px, 4vw, 64px) 22px; overflow-y: auto; overflow-x: hidden;
  background: var(--festival-navy); isolation: isolate;
}
body[data-page="home"] .festival-splash::before {
  z-index: -1; opacity: 1; mix-blend-mode: normal;
  background: linear-gradient(90deg, #07131f 0%, rgba(7,19,31,.96) 32%, rgba(7,19,31,.66) 67%, rgba(7,19,31,.56)), linear-gradient(0deg, #07131f, transparent 80%);
}
body[data-page="home"] .festival-splash::after { z-index: 0; border-color: rgba(230,186,96,.24); box-shadow: none; }
.festival-splash-scene { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.festival-splash-top {
  position: sticky; top: 0; z-index: 9; display: flex; justify-content: space-between; align-items: center;
  width: min(100%, 1440px); margin: 0 auto; min-height: 104px; gap: 20px;
  background: linear-gradient(180deg, rgba(7,19,31,.98), rgba(7,19,31,.84) 75%, transparent);
}
body[data-page="home"] .festival-splash-brand { display: block; width: 226px; height: 104px; margin: 0; object-fit: contain; filter: none; }
body[data-page="home"] .festival-splash-skip {
  position: static; display: inline-flex; align-items: center; gap: 16px; flex-shrink: 0;
  min-height: 44px; margin: 0; padding: 0 18px; border-color: rgba(215,222,239,.3); background: #0d2130;
}
.festival-splash-skip > span:last-child { font-size: 1.5rem; line-height: 1; color: #e6ba60; }
.festival-splash-main {
  position: relative; z-index: 5; width: min(100%, 1440px); margin: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px);
}
body[data-page="home"] .festival-splash-copy { width: 100%; max-width: 640px; transform: none; align-self: center; }
.festival-splash-event { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 22px; }
.festival-splash-event-logo { display: block; width: 230px; height: auto; max-width: 100%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
body[data-page="home"] .festival-splash-copy .festival-splash-date {
  margin: 0; padding-left: 18px; border-left: 1px solid rgba(230,186,96,.5);
  color: #e6ba60; font-size: .95rem; font-weight: 800; line-height: 1.5; max-width: none;
}
body[data-page="home"] .festival-splash-copy .festival-splash-eyebrow { margin: 0 0 12px; color: #16d3e7; font-size: .76rem; letter-spacing: .15em; line-height: 1.5; }
body[data-page="home"] .festival-splash-copy h2 {
  max-width: 640px; margin: 0 0 18px; color: #f1f3f5; font-size: clamp(2.3rem, 3.7vw, 3.8rem);
  line-height: 1.02; letter-spacing: -.035em; text-transform: none; text-shadow: none; overflow-wrap: normal;
}
body[data-page="home"] .festival-splash-copy .festival-splash-description { max-width: 560px; margin: 0 0 20px; color: #c9d5e4; font-size: 1rem; line-height: 1.65; }
body[data-page="home"] .festival-splash-copy .festival-splash-platform { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #e6ba60; font-size: .82rem; font-weight: 650; line-height: 1.5; }
.festival-splash-platform i { color: #16d3e7; font-size: 1rem; }
body[data-page="home"] .festival-splash-actions { display: grid; width: 100%; max-width: 530px; gap: 10px; justify-items: stretch; }
.festival-splash-demo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  min-height: 76px; padding: 12px 18px; color: #f1f3f5; text-decoration: none; font-size: 1.1rem; font-weight: 850;
  border: 1px solid #16d3e7; border-radius: 9px; background: linear-gradient(110deg, #173747, #0d2535);
  box-shadow: 0 8px 36px rgba(22,211,231,.12); transition: background 160ms ease, border-color 160ms ease;
}
.festival-splash-steam-lockup { display: flex; align-items: center; gap: 8px; color: #e6ba60; }
.festival-splash-steam-lockup img { display: block; width: 92px; height: 32px; object-fit: contain; }
.festival-splash-steam-lockup .festival-splash-crest { width: 30px; height: 30px; }
.festival-splash-demo > i, .festival-splash-discord > i:last-child { color: #16d3e7; font-size: .8rem; }
.festival-splash-demo:hover { background: #1b485b; border-color: #e6ba60; }
.festival-splash-discord { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 18px; border: 1px solid rgba(215,222,239,.22); border-radius: 9px; color: #f1f3f5; background: rgba(7,19,31,.72); text-decoration: none; }
.festival-splash-discord > i:first-child { color: #b8d6ed; font-size: 1.45rem; }
.festival-splash-discord strong, .festival-splash-discord small { display: block; line-height: 1.5; }
.festival-splash-discord strong { font-size: .9rem; }
.festival-splash-discord small { color: #b7c9db; font-size: .76rem; font-weight: 400; }
.festival-splash-discord:hover { border-color: #16d3e7; background: #102b3c; }
body[data-page="home"] .festival-splash-actions .festival-splash-enter { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 44px; width: 100%; padding: 8px 12px; border-color: transparent; color: #d7deef; background: transparent; font-size: .9rem; }
.festival-splash-enter:hover { color: #e6ba60 !important; text-decoration: underline; }
.festival-splash :is(a,button,summary):focus-visible { outline: 3px solid #e6ba60; outline-offset: 4px; }
.festival-splash-showcase { display: grid; align-content: center; gap: 18px; min-width: 0; }
body[data-page="home"] .festival-splash-visual { width: 100%; max-width: none; max-height: none; margin: 0; aspect-ratio: 16 / 9; border: 1px solid rgba(230,186,96,.42); border-radius: 12px; overflow: hidden; transform: none; box-shadow: 0 28px 70px rgba(0,0,0,.4); }
body[data-page="home"] .festival-splash-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.festival-splash .steam-store-widget-shell { justify-self: center; border-radius: 8px; }
body[data-page="home"] .festival-splash-footer {
  position: relative; inset: auto; z-index: 5; width: min(100%, 1440px); min-height: 42px; margin: 8px auto 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 14px 0 0; overflow: visible;
  border: 0; border-top: 1px solid rgba(230,186,96,.28); border-radius: 0; background: none; box-shadow: none;
  color: #b7c9db; font-size: .75rem; line-height: 1.5;
}
body[data-page="home"] .festival-splash-footer strong { display: inline; height: auto; padding: 0; color: #e6ba60; background: none; font-size: .75rem; letter-spacing: .08em; }
@media (max-width: 1050px) {
  .festival-splash-main { gap: 28px; }
  .festival-splash-event { gap: 14px; }
  body[data-page="home"] .festival-splash-copy .festival-splash-date { padding-left: 0; border-left: 0; }
  .festival-splash-demo { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .festival-splash-steam-lockup { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body[data-page="home"] .festival-splash { padding-inline: 18px; gap: 12px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .festival-splash-top { min-height: 82px; }
  body[data-page="home"] .festival-splash-brand { width: 174px; height: 82px; }
  .festival-splash-main { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .festival-splash-showcase { display: contents; }
  body[data-page="home"] .festival-splash-visual { order: 0; aspect-ratio: 16 / 6.3; border-radius: 9px; }
  body[data-page="home"] .festival-splash-copy { order: 1; max-width: none; width: 100%; }
  .festival-splash .steam-store-widget-shell { order: 2; align-self: center; }
  .festival-splash-event { justify-content: space-between; margin-bottom: 16px; }
  .festival-splash-event-logo { width: 180px; }
  body[data-page="home"] .festival-splash-copy .festival-splash-date { max-width: 110px; font-size: .8rem; text-align: right; }
  body[data-page="home"] .festival-splash-copy .festival-splash-eyebrow { margin-bottom: 8px; font-size: .68rem; }
  body[data-page="home"] .festival-splash-copy h2 { font-size: clamp(2rem, 7.8vw, 3rem); margin-bottom: 14px; }
  body[data-page="home"] .festival-splash-copy .festival-splash-description { max-width: none; font-size: .92rem; line-height: 1.55; margin-bottom: 16px; }
  body[data-page="home"] .festival-splash-copy .festival-splash-platform { font-size: .76rem; margin-bottom: 18px; }
  body[data-page="home"] .festival-splash-actions { max-width: none; }
  .festival-splash-demo { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; font-size: .97rem; padding: 12px; }
  .festival-splash-steam-lockup { grid-column: auto; gap: 5px; }
  .festival-splash-steam-lockup img { width: 68px; height: 28px; }
  .festival-splash-steam-lockup .festival-splash-crest { width: 25px; height: 25px; }
  body[data-page="home"] .festival-splash-footer { width: 100%; gap: 6px 16px; }
}
@media (max-width: 380px) {
  .festival-splash-event-logo { width: 156px; }
  .festival-splash-steam-lockup .festival-splash-crest, .festival-splash-steam-lockup > span { display: none; }
  .festival-splash-demo { gap: 9px; font-size: .9rem; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .festival-splash-top { min-height: 76px; }
  body[data-page="home"] .festival-splash-brand { height: 76px; width: 180px; }
  .festival-splash-event-logo { width: 170px; }
  .festival-splash-event { margin-bottom: 14px; }
  body[data-page="home"] .festival-splash-copy h2 { font-size: clamp(2rem, 3vw, 3rem); }
  body[data-page="home"] .festival-splash-copy .festival-splash-description { font-size: .9rem; margin-bottom: 14px; }
  body[data-page="home"] .festival-splash-copy .festival-splash-platform { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .festival-splash, .festival-splash-demo { transition: none; }
}
