/*
 * questshares promo portal (the site root): multi-game landing over four original scenes.
 * Loads after landing.css and reuses its .wrap, .section, .cards, .card, .btn and heading
 * styles. Mobile first, tokens from tokens.css, no horizontal scroll.
 *
 * Scenes: a 24s cycle, each scene ~6s visible with a ~1.5s crossfade (opacity) and a slow
 * zoom (scale 1 -> 1.08), pure @keyframes and animation-delay. The page works without JS;
 * js/promo.js only pauses the cycle while the tab is hidden (html.paused).
 *
 * build-static publishes assets under content-hashed names and rewrites the url() values below
 * to the hashed art, so the references here use the plain asset names; the staticsite test
 * verifies that every url() of the built stylesheet exists in the build. The -800 art serves
 * up to 800px viewports, the 1600px art above that.
 *
 * Contrast (worst case: a white highlight of the art under the text): the shade keeps a
 * combined alpha >= 0.93 over the text zone (radial + linear layers, computed), and the hero
 * text is --color-text-primary (>= 7:1 there; the h1 is large text, 3:1 needed).
 */
.promo-hero{position:relative;display:flex;align-items:center;overflow:hidden;min-height:min(760px,calc(100svh - 64px));padding-block:var(--space-16);background:var(--color-bg-canvas)}
.promo-bg{position:absolute;inset:0}
.promo-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,16,20,.92) 0%,rgba(14,16,20,.82) 45%,rgba(14,16,20,.18) 75%,rgba(14,16,20,.08) 100%),linear-gradient(180deg,rgba(14,16,20,0) 70%,rgba(14,16,20,.9) 100%)}
.promo-hero-box{position:relative}
.promo-hero h1{font-size:clamp(2.25rem,3.5vw,3.25rem);line-height:1.08}
.promo-hero .lead{max-width:52ch;line-height:1.55;color:#ECEEF2}
.promo-scene{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1);animation:promo-scene 24s linear infinite;animation-delay:var(--scene-delay,0s)}
.promo-scene--raid{--scene-delay:-1.5s;background-image:url("/static/img/promo/raid-800.1de726f4.webp")}
.promo-scene--arena{--scene-delay:4.5s;background-image:url("/static/img/promo/arena-800.ff5c0ba8.webp")}
.promo-scene--tactical{--scene-delay:10.5s;background-image:url("/static/img/promo/tactical-800.03cca88d.webp")}
.promo-scene--royale{--scene-delay:16.5s;background-image:url("/static/img/promo/royale-800.b390f072.webp")}
@media (min-width:801px){
.promo-scene--raid{background-image:url("/static/img/promo/raid.1427f7ad.webp")}
.promo-scene--arena{background-image:url("/static/img/promo/arena.1918302e.webp")}
.promo-scene--tactical{background-image:url("/static/img/promo/tactical.b5c53b00.webp")}
.promo-scene--royale{background-image:url("/static/img/promo/royale.c3f8fbaf.webp")}
.promo-hero-box{max-width:650px}
}
@keyframes promo-scene{
0%{opacity:0;transform:scale(1)}
6.25%{opacity:1}
25%{opacity:1}
31.25%{opacity:0;transform:scale(1.08)}
100%{opacity:0;transform:scale(1.08)}
}
html.paused .promo-scene{animation-play-state:paused}
.promo-pause-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.promo-pause{position:absolute;right:var(--space-4);bottom:var(--space-4);z-index:2;display:flex;align-items:center;min-height:var(--size-target);padding:var(--space-1) var(--space-3);background:rgba(14,16,20,.78);color:var(--color-text-primary);border:1px solid var(--color-border-strong);border-radius:var(--radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer}
.promo-pause:hover{background:var(--color-surface-2)}
.promo-pause-input:focus-visible + .promo-pause{outline:3px solid var(--color-accent);outline-offset:3px}
.promo-pause-input:checked ~ .promo-bg .promo-scene{animation-play-state:paused}
.promo-cta{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.promo-btn-ghost{background:transparent;color:var(--color-accent);border-color:var(--color-border-strong)}
.promo-btn-ghost:hover{background:var(--color-surface-2);border-color:var(--color-border-strong)}
@media (max-width:800px){
.promo-shade{background:linear-gradient(180deg,rgba(14,16,20,.15) 0%,rgba(14,16,20,.35) 180px,rgba(14,16,20,.92) 300px,#0E1014 100%)}
.promo-hero{min-height:0;padding:200px var(--space-4) var(--space-12)}
.promo-cta{gap:12px}
.promo-cta .btn{width:100%;min-height:48px;justify-content:center}
.promo-pause{bottom:var(--space-1)}
}
.promo-games{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-2)}
@media (min-width:600px){.promo-games{grid-template-columns:repeat(2,1fr);gap:var(--space-3)}}
@media (min-width:960px){.promo-games{grid-template-columns:repeat(3,1fr)}}
.promo-games li{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:var(--size-target);background:var(--color-surface-1);border:1px solid var(--color-border-subtle);border-radius:var(--radius-md);padding:var(--space-2) var(--space-4);opacity:.85}
.promo-game--link{opacity:1;padding:0;background:rgba(230,180,80,.08);border-color:var(--color-accent)}
.promo-game-link{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);width:100%;min-height:var(--size-target);padding:var(--space-2) var(--space-4);color:inherit;text-decoration:none;border-radius:var(--radius-md)}
.promo-game-link:focus-visible{outline:3px solid var(--color-accent);outline-offset:3px}
.promo-game{font-weight:var(--font-weight-medium)}
.promo-badge{flex:none;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:.06em;text-transform:uppercase;color:var(--color-text-secondary);border:1px solid var(--color-border-strong);border-radius:var(--radius-full);padding:var(--space-0-5) var(--space-3)}
.promo-badge--ok{color:var(--color-success);border-color:var(--color-success)}
.promo-section-alt{background:var(--color-surface-1)}
.promo-cards .card{padding:0;overflow:hidden;display:flex;flex-direction:column;background:var(--color-bg-canvas);transition:transform .2s,border-color .2s}
.promo-cards .card:hover,.promo-cards .card:focus-within{transform:translateY(-2px);border-color:var(--color-accent)}
.promo-card-img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.promo-card-body{padding:var(--space-5)}
@media (prefers-reduced-motion:reduce){
.promo-scene{animation:none;opacity:0;transform:none}
.promo-scene--raid{opacity:1}
.promo-pause-input,.promo-pause{display:none}
.promo-cards .card{transition:none}
.promo-cards .card:hover,.promo-cards .card:focus-within{transform:none}
}
