/* CHRIStmas Games home: a cinematic title sequence over a live 3D winter night.
   Layout: fixed 3D world behind everything; a full-screen hero with the gold logo,
   then a games section of tilting 3D cards. Dark only: it's a night-time show. */
:root {
  --night: #050a1e;
  --ink: #f4f1ff;
  --dim: rgba(222, 230, 252, .72);
  --gold: #f6c343;
  --gold-2: #ffe08a;
  --gold-deep: #9c6a17;
  --red: #d42a2a;
  --glass: rgba(10, 18, 44, .55);
  --line: rgba(255, 217, 119, .28);
  --foil: linear-gradient(180deg, #fffbe9 0%, #ffe9a6 22%, #f6c343 46%, #9c6a17 50%, #e7ae35 62%, #ffe08a 84%, #fff4c9 100%);
  --display: "Playfair Display", "Didot", Georgia, serif;
  --label: "Oswald", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Fredoka", system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100%; overflow-x: hidden;
  background: var(--night); color: var(--ink); font-family: var(--body);
}
body.intro-playing { overflow: hidden; }
a { color: inherit; }

/* ---------- Stage ---------- */
.world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.world.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-6px, 3px); }
  40%, 60% { transform: translate(6px, -3px); }
}
body.no-3d {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(40, 200, 160, .25), transparent 70%),
    radial-gradient(ellipse at 50% 120%, #2a1b5c, transparent 60%),
    var(--night);
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(0, 0, 12, .78) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(3) infinite;
}
@keyframes grain { 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.curtain { position: absolute; inset: 0; background: #000; transition: opacity 2.8s ease; }
.intro.lift .curtain { opacity: 0; }
.intro.skipped .curtain, .intro.skipped .letterbox { transition-duration: .6s; }
.intro.presenting.skipped .presents { animation: none; opacity: 0; }
.letterbox {
  position: absolute; left: 0; right: 0; height: 11vh; background: #000;
  transition: height 1.3s cubic-bezier(.6, 0, .2, 1);
}
.letterbox.top { top: 0; }
.letterbox.bottom { bottom: 0; }
.intro-done .letterbox { height: 0; }
.presents {
  position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 10px; opacity: 0; white-space: nowrap;
}
.presents b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(2.6rem, 7vw, 5rem); color: #fff; }
.presents span {
  font-family: var(--label); font-weight: 500; text-transform: uppercase; letter-spacing: .6em;
  font-size: clamp(.8rem, 1.6vw, 1rem); color: var(--gold-2); padding-left: .6em;
}
.intro.presenting .presents { animation: presents 3.6s ease forwards; }
@keyframes presents {
  0% { opacity: 0; filter: blur(10px); transform: translate(-50%, -50%) scale(1.08); }
  28% { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
}
.sound-hint {
  position: absolute; left: 50%; bottom: calc(11vh + 20px); margin: 0; transform: translateX(-50%);
  font-family: var(--label); text-transform: uppercase; letter-spacing: .24em; font-size: .78rem; color: var(--dim);
  transition: opacity .5s; animation: breathe 1.8s ease-in-out infinite;
}
.sound-on .sound-hint, .intro-done .sound-hint { opacity: 0; animation: none; }
@keyframes breathe { 50% { opacity: .45; } }

.skip-intro {
  position: fixed; z-index: 60; right: var(--gutter); bottom: calc(11vh + 14px);
  font: 600 .85rem var(--label); letter-spacing: .14em; text-transform: uppercase; color: #fff; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); transition: opacity .5s, background .2s;
}
.skip-intro:hover { background: rgba(0, 0, 0, .75); }
.intro-done .skip-intro { opacity: 0; pointer-events: none; }

.flash {
  position: fixed; inset: 0; z-index: 49; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 32%, #fff, rgba(255, 228, 160, .65) 28%, transparent 70%);
}
.flash.go { animation: flash 1s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }

/* ---------- Now playing ---------- */
.now-playing {
  position: fixed; z-index: 45; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 4px; max-width: calc(100vw - 32px);
  border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .6s, transform .6s, border-color .2s;
}
.intro-done .now-playing.visible { opacity: 1; transform: none; pointer-events: auto; }
.now-playing:hover { border-color: var(--gold); }
.np-toggle, .np-next { font: inherit; color: #fff; background: none; border: 0; cursor: pointer; border-radius: 999px; }
.np-toggle { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 10px 4px 8px; text-align: left; }
.np-next { flex: none; width: 34px; height: 34px; font-size: .9rem; background: rgba(255, 255, 255, .08); transition: background .2s; }
.np-next:hover { background: rgba(246, 195, 67, .25); }
.now-playing.paused .np-next { display: none; }
.np-toggle:focus-visible, .np-next:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.np-text { display: grid; min-width: 0; }
.np-text small { font: 600 .62rem var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); }
.np-text b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; flex: none; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold-2); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.now-playing.paused .eq i { animation: none; transform: scaleY(.2); opacity: .5; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: linear-gradient(180deg, rgba(3, 6, 20, .75), transparent);
  opacity: 0; transform: translateY(-16px); transition: opacity .9s .2s, transform .9s .2s;
}
.intro-done .nav { opacity: 1; transform: none; }
.nav-brand { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.nav-brand b { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-brand span { font: 600 .72rem var(--label); font-style: normal; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-2); margin-left: 4px; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-link, .nav-btn {
  font: 600 .8rem var(--label); letter-spacing: .14em; text-transform: uppercase; color: #fff; text-decoration: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.nav-link:hover, .nav-btn:hover { background: rgba(246, 195, 67, .2); border-color: var(--gold); }
.nav-link:focus-visible, .nav-btn:focus-visible, .cta:focus-visible, .game-card:focus-visible, .skip-intro:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 10; min-height: 100vh; min-height: 100svh;
  display: grid; justify-items: center; align-content: start; text-align: center;
  padding: 15vh var(--gutter) 0;
}
.hero-inner { display: grid; justify-items: center; }
.eyebrow {
  margin: 0; font: 600 .85rem var(--label); letter-spacing: .38em; text-transform: uppercase; color: var(--gold-2);
  text-shadow: 0 0 14px rgba(255, 200, 90, .55);
}
.hero .eyebrow { opacity: 0; transform: translateY(12px); transition: opacity .9s, transform .9s; }
.hero-in .hero .eyebrow { opacity: 1; transform: none; }

.logo-wrap {
  position: relative; perspective: 1000px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .3s ease-out;
}
.logo { margin: .12em 0 0; line-height: .86; font-family: var(--display); font-style: italic; font-weight: 900; opacity: 0; }
.logo-in .logo { opacity: 1; animation: slam 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes slam {
  0% { opacity: 0; transform: translateZ(700px) scale(2.3); filter: blur(16px) brightness(3); }
  55% { opacity: 1; transform: translateZ(-40px) scale(.97); filter: blur(0) brightness(1.5); }
  78% { transform: translateZ(8px) scale(1.01); filter: brightness(1.1); }
  100% { opacity: 1; transform: none; filter: none; }
}
.logo-word {
  position: relative; display: inline-block; font-size: clamp(3.3rem, 12.5vw, 11.5rem); letter-spacing: -.012em; padding: 0 .08em;
  filter:
    drop-shadow(0 1px 0 #c9861d) drop-shadow(0 2px 0 #a5690f) drop-shadow(0 3px 0 #83510b)
    drop-shadow(0 4px 0 #643c07) drop-shadow(0 18px 22px rgba(0, 0, 0, .6)) drop-shadow(0 0 42px rgba(255, 196, 80, .4));
}
.logo-word .chris { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-word .tmas { background: linear-gradient(180deg, #ffffff 25%, #dcebff 62%, #a8c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-word::after {
  content: attr(data-text); position: absolute; inset: 0; padding: 0 .08em; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .95) 48%, transparent 60%) 160% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s ease-in-out 1.6s infinite;
}
@keyframes shine { 0% { background-position: 160% 0; } 40%, 100% { background-position: -60% 0; } }
.logo-games {
  display: flex; align-items: center; justify-content: center; gap: .9em; margin-top: .45em;
  font: 600 clamp(1rem, 3vw, 2.4rem) var(--label); font-style: normal; text-transform: uppercase; letter-spacing: .6em;
  color: #fff; text-shadow: 0 0 18px rgba(255, 214, 120, .7);
}
.logo-games::before, .logo-games::after {
  content: ""; width: clamp(28px, 7vw, 90px); height: 2px; background: linear-gradient(90deg, transparent, var(--gold));
}
.logo-games::after { transform: scaleX(-1); margin-left: -.6em; }
.shock {
  position: absolute; left: 50%; top: 42%; width: 40vmin; height: 40vmin; margin: -20vmin 0 0 -20vmin;
  border-radius: 50%; border: 3px solid rgba(255, 224, 138, .9); box-shadow: 0 0 40px rgba(255, 200, 90, .6), inset 0 0 40px rgba(255, 200, 90, .4);
  opacity: 0; pointer-events: none;
}
.logo-in .shock { animation: shock 1.2s ease-out .35s; }
@keyframes shock { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(3.2); } }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px;
  opacity: 0; transform: translateY(18px); transition: opacity .9s, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.hero-in .hero-cta { opacity: 1; transform: none; transition-delay: .2s; }
.cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  font: 600 1rem var(--label); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 28px; border-radius: 14px; transition: transform .2s, box-shadow .2s;
}
.cta.primary {
  color: #3a2300; background: linear-gradient(180deg, #fff1b8, #f6c343 55%, #d8a02c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 0 #7a520f, 0 14px 40px rgba(246, 195, 67, .45);
}
.cta.primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 55%, 100% { transform: translateX(130%); } }
.cta.ghost { color: #fff; background: var(--glass); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.cta:hover { transform: translateY(-3px); }
.cta.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 0 #7a520f, 0 20px 50px rgba(246, 195, 67, .6); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; text-decoration: none;
  font: 600 .72rem var(--label); letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
  opacity: 0; transition: opacity 1s .8s;
}
.intro-done .scroll-cue { opacity: 1; }
.scroll-cue span { width: 22px; height: 36px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .5); position: relative; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold-2); animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Games ---------- */
.games {
  position: relative; z-index: 10; padding: 16vh var(--gutter) 12vh;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 24, .72) 16%, rgba(4, 7, 24, .88));
}
.section-head { text-align: center; display: grid; justify-items: center; gap: 10px; }
.section-head h2 {
  margin: 0; font: italic 900 clamp(2.4rem, 6vw, 4.6rem) / 1 var(--display); text-wrap: balance;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #643c07) drop-shadow(0 12px 22px rgba(0, 0, 0, .5));
}
.section-sub { margin: 0; color: var(--dim); font-size: 1.05rem; }
.section-sub b { color: var(--gold-2); font-variant-numeric: tabular-nums; }

.game-grid {
  max-width: 1200px; margin: 54px auto 0; display: grid; gap: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); perspective: 1400px;
}
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: 24px; border: 1px solid rgba(255, 217, 119, .22);
  background: linear-gradient(160deg, rgba(30, 46, 98, .92), rgba(9, 15, 40, .96));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), box-shadow .35s, border-color .35s;
}
.game-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .2), transparent 45%);
}
.game-card:hover::after { opacity: 1; }
.game-card.live:hover { border-color: var(--gold); box-shadow: 0 34px 70px rgba(0, 0, 0, .55), 0 0 60px rgba(246, 195, 67, .3); }
.js .game-card:not(.in) { opacity: 0; }
.game-card.in { animation: fly-in 1.1s cubic-bezier(.16, 1, .3, 1) var(--delay, 0s) backwards; }
@keyframes fly-in { from { opacity: 0; transform: translateY(90px) rotateX(22deg) scale(.94); } }

.game-card.live { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.card-art { position: relative; overflow: hidden; }
.derby-art { min-height: 100%; aspect-ratio: 16 / 9; }
.poster { display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .9, .3, 1); }
.game-card.live:hover .poster { transform: scale(1.04); }
.poster .twinkle { animation: twinkle 2.4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .15; } }
.poster .gallop { transform-box: fill-box; transform-origin: 50% 100%; animation: gallop .3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes gallop { 50% { transform: translateY(-5px) rotate(-4deg); } }
.poster .leg { animation: leg .3s ease-in-out infinite alternate; animation-delay: var(--d); }
.poster .leg.l2 { animation-delay: calc(var(--d) - .05s); }
.poster .leg.l3 { animation-delay: calc(var(--d) - .15s); }
.poster .leg.l4 { animation-delay: calc(var(--d) - .2s); }
@keyframes leg { from { transform: rotate(34deg); } to { transform: rotate(-34deg); } }
.poster .red-nose { animation: nose .7s ease-in-out infinite alternate; }
@keyframes nose { to { fill: #ff8080; } }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  font: 600 .72rem var(--label); letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(4, 8, 24, .72); border: 1px solid var(--line); backdrop-filter: blur(6px);
}
.badge.live { background: var(--red); border-color: rgba(255, 255, 255, .35); box-shadow: 0 6px 18px rgba(212, 42, 42, .5); }
.badge.live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: breathe .9s ease-in-out infinite; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.card-kicker { margin: 0; font: 600 .74rem var(--label); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.card-body h3 { margin: 0; font: italic 900 clamp(1.7rem, 2.6vw, 2.1rem) / 1.05 var(--display); text-wrap: balance; }
.game-card.live .card-body { justify-content: center; padding: 34px 36px; }
.game-card.live h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-body p { margin: 0; color: var(--dim); line-height: 1.5; max-width: 46ch; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.card-meta li { font-size: .82rem; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.play { margin-top: 10px; font: 600 1rem var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.play b { display: inline-block; transition: transform .25s; }
.game-card.live:hover .play b { transform: translateX(8px); }

/* ---------- Party game cards ---------- */
.game-card.live.party { grid-column: auto; display: flex; }
.party-art { aspect-ratio: 4 / 3; }
.game-card.party:hover .poster { transform: scale(1.05); }
.badge.phones { left: auto; right: 14px; }
.poster .sweep { transform-box: fill-box; transform-origin: 50% 0; animation: poster-sweep 5s ease-in-out infinite alternate; }
.poster .sweep.s2 { animation-duration: 6.5s; animation-direction: alternate-reverse; }
@keyframes poster-sweep { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.poster .twinkle-row circle { animation: twinkle 1.4s ease-in-out infinite alternate; }
.poster .twinkle-row circle:nth-child(even) { animation-delay: -.7s; }
.poster .qmark { transform-box: fill-box; transform-origin: 50% 80%; animation: qmark 2.4s ease-in-out infinite; }
@keyframes qmark { 50% { transform: rotate(-10deg) scale(1.08); } }
.poster .right-answer { animation: right-answer 2.4s ease-in-out infinite; }
@keyframes right-answer { 0%, 55% { fill: #2f7de1; } 65%, 100% { fill: #4fd17a; } }
.poster .blank-line { animation: blank-blink 1.2s steps(2) infinite; }
@keyframes blank-blink { 50% { opacity: .35; } }
.poster .flip-a, .poster .flip-b { transform-box: fill-box; transform-origin: 50% 50%; animation: card-wobble 3s ease-in-out infinite; }
.poster .flip-a { transform: rotate(-8deg); }
.poster .flip-b { animation-delay: -1.5s; }
@keyframes card-wobble { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-8px); } }
.poster .doodle > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: doodle 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes doodle { 0% { stroke-dashoffset: 1; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.poster .pencil { animation: pencil 1s ease-in-out infinite alternate; }
@keyframes pencil { to { transform: translate(-18px, -14px); } }

.poster .cp-lid { transform-box: fill-box; transform-origin: 0% 100%; animation: cp-lid 3.6s ease-in-out infinite; }
@keyframes cp-lid { 0%, 30%, 100% { transform: rotate(0); } 45%, 85% { transform: rotate(-28deg) translateY(-8px); } }
.poster .cp-carrot { animation: cp-carrot 3.6s ease-in-out infinite; }
@keyframes cp-carrot { 0%, 35%, 100% { transform: translateY(60px); opacity: 0; } 50%, 85% { transform: translateY(0); opacity: 1; } }
.poster .cp-box-a, .poster .cp-box-b { transform-box: fill-box; animation: cp-bob 3.6s ease-in-out infinite; }
.poster .cp-box-b { animation-delay: -1.8s; }
@keyframes cp-bob { 50% { transform: translateY(-6px); } }

.poster .cb-ball { transform-box: fill-box; transform-origin: 50% 50%; animation: cb-ball 1.2s cubic-bezier(.3, 1.6, .5, 1) infinite alternate; }
@keyframes cb-ball { from { transform: rotate(-10deg) scale(.94); } to { transform: rotate(8deg) scale(1.06); } }
.poster .cb-burst text { animation: cb-flash .5s steps(2) infinite; }
.poster .cb-burst text:nth-child(even) { animation-delay: -.25s; }
@keyframes cb-flash { 50% { opacity: .2; } }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 10; text-align: center; padding: 30px var(--gutter) 46px; background: rgba(4, 7, 24, .92); color: var(--dim); }
.footer p { margin: 4px 0; }
.footer-brand { font: italic 900 1.5rem var(--display); color: #fff; }
.footer-brand b { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 960px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .game-card.live { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding-top: 18vh; }
  .logo-games { letter-spacing: .4em; }
  .nav-link, .nav-brand span { display: none; }
  .nav-btn { padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
