/* manymany.games - styles */

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg: #090b1f;
  --bg-2: #12153a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f5f7ff;
  --muted: #aab3e6;
  --pink: #ff4fa3; --orange: #ff9f1c; --yellow: #ffd23f; --green: #3ddc84;
  --cyan: #2ee6ff; --blue: #4a7dff; --purple: #a36bff; --red: #ff5a5a;
  --rainbow: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple), var(--pink));
  --radius: 22px;
  --header-h: 68px;
  --font-display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --pop: cubic-bezier(.3, 1.6, .5, 1);
  --smooth: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0; min-height: 100svh; color: var(--ink); background: transparent;
  font: 500 1rem/1.6 var(--font-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }
svg { display: block; }

/* ---------------- background ---------------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 75% -10%, #1d2475 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 35%, #35135e 0%, transparent 55%),
    var(--bg);
}
.aurora {
  position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%;
  filter: blur(70px); opacity: .6; mix-blend-mode: screen;
  animation: drift 28s ease-in-out infinite alternate;
}
.a1 { background: radial-gradient(circle, var(--pink), transparent 64%); top: -18vmax; left: -14vmax; }
.a2 { background: radial-gradient(circle, var(--cyan), transparent 64%); top: 8vmax; right: -22vmax; animation-duration: 34s; animation-delay: -9s; }
.a3 { background: radial-gradient(circle, var(--purple), transparent 64%); bottom: -28vmax; left: 18vw; animation-duration: 40s; animation-delay: -18s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(9vw, 7vh, 0) scale(1.18) rotate(40deg); }
  100% { transform: translate3d(-7vw, 11vh, 0) scale(.92) rotate(-25deg); }
}
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }
.grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 400px; height: 400px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(163, 107, 255, .16), rgba(46, 230, 255, .06) 40%, transparent 68%);
  opacity: 0; transition: opacity .5s;
}
.cursor-glow.on { opacity: 1; }
body.playing-page .cursor-glow { display: none; }
.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2000; pointer-events: none; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(clamp(14px, 4vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(14px, 4vw, 40px), env(safe-area-inset-right));
  background: linear-gradient(to bottom, rgba(9, 11, 31, .88), rgba(9, 11, 31, .6));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--rainbow); background-size: 200% 100%; opacity: .85;
  animation: slide 8s linear infinite;
}
@keyframes slide { to { background-position: -200% 0; } }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; transition: transform .5s var(--pop); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.lm-d { transform-box: fill-box; transform-origin: center; animation: dotpulse 2.4s ease-in-out infinite; }
.d2 { animation-delay: .3s; } .d3 { animation-delay: .6s; } .d4 { animation-delay: .9s; }
@keyframes dotpulse { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.35); } }
.logo-word { font: 700 1.45rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.lw { display: inline-block; color: var(--c); animation: hop 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }
.logo:hover .lw { animation: hopnow .5s var(--pop) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes hop { 0%, 72%, 100% { transform: none; } 78% { transform: translateY(-5px) rotate(-6deg); } 86% { transform: translateY(1px); } }
@keyframes hopnow { 40% { transform: translateY(-7px) rotate(-8deg) scale(1.1); } 100% { transform: none; } }
.lw-dot { color: var(--ink); opacity: .9; margin-left: 1px; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: 600 .98rem var(--font-display); text-decoration: none; color: var(--muted); transition: color .2s, background .2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); background: var(--panel); }
.nav-new { color: var(--ink) !important; background: linear-gradient(135deg, rgba(255, 79, 163, .2), rgba(74, 125, 255, .2)); border: 1px solid rgba(255, 255, 255, .14); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live 1.6s infinite;
}
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
@media (max-width: 560px) {
  .logo-word { font-size: 1.2rem; }
  .logo-mark { width: 32px; height: 32px; }
  .site-nav a:not(.nav-new) { display: none; }
  .nav-new { font-size: .9rem !important; padding: 7px 11px !important; }
}
@media (max-width: 340px) { .lw-dot { display: none; } }

/* ---------------- page transitions ---------------- */
/* opacity only: a transform here would break the fixed full-screen game stage */
#app { transition: opacity .17s ease; outline: none; }
#app.leaving { opacity: 0; }
#app.entering { opacity: 0; transition: none; }

[data-reveal] { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s var(--smooth), transform .8s var(--smooth); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------- buttons ---------------- */
.btn {
  --sc: 1;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  font: 700 1.02rem/1 var(--font-display); color: #fff; text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--sc));
  transition: transform .25s var(--pop), box-shadow .25s, background .25s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { --sc: 1.04; }
.btn:active { --sc: .94; transition-duration: .08s; }
.btn-lg { font-size: 1.15rem; padding: .95em 1.7em; }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 12px 30px -10px rgba(255, 79, 163, .8), inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-130%); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.btn-ghost { background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.btn:disabled { opacity: .55; cursor: default; --sc: 1; }

.icon-btn {
  position: relative; overflow: hidden; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--ink);
  transition: transform .25s var(--pop), background .2s, border-color .2s; text-decoration: none;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { transform: translateY(-2px); background: var(--panel-2); border-color: rgba(255, 255, 255, .25); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.accent { background: linear-gradient(135deg, var(--accent, var(--blue)), var(--accent2, var(--pink))); border: 0; }

.ripple {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .5); animation: ripple .65s ease-out forwards;
}
@keyframes ripple { to { transform: scale(26); opacity: 0; } }

.badge {
  display: inline-flex; align-items: center; padding: .28em .65em; border-radius: 999px;
  font: 700 .7rem/1 var(--font-display); letter-spacing: .06em; white-space: nowrap;
}
.badge.new { background: var(--yellow); color: #2a1600; animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg) scale(1.08); } 92% { transform: rotate(6deg); } }

/* ---------------- hero ---------------- */
.hero {
  position: relative; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(36px, 6vw, 84px) clamp(16px, 5vw, 64px) clamp(70px, 9vw, 130px);
  min-height: min(860px, calc(100svh - var(--header-h)));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .92rem;
}
.hero-title { font-size: clamp(3.1rem, 8.4vw, 6.9rem); line-height: .98; margin: .32em 0 .3em; }
.hw { white-space: nowrap; }
.ch {
  display: inline-block; animation: rise .9s cubic-bezier(.2, 1.5, .4, 1) both;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}
.rc { color: var(--c); text-shadow: 0 6px 30px color-mix(in srgb, var(--c) 45%, transparent); animation: rise .9s cubic-bezier(.2, 1.5, .4, 1) both, bounce 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 45ms + 520ms), calc(var(--i) * 110ms + 1.6s); }
@keyframes rise { from { transform: translateY(.55em) rotate(10deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bounce { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-.12em) rotate(-5deg); } 88% { transform: translateY(.02em); } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.perk-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.perk-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: .92rem;
}
.perk-chips svg { width: 18px; height: 18px; color: var(--yellow); }
.perk-chips li:nth-child(2) svg { color: var(--cyan); }
.perk-chips li:nth-child(3) svg { color: var(--pink); }

.hero-show { position: relative; perspective: 1100px; padding: 6% 4%; }
.feature-card {
  position: relative; display: block; border-radius: 28px; aspect-ratio: 16 / 10; text-decoration: none; color: #fff;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg));
  transition: transform .5s var(--smooth);
}
.feature-card.tilting { transition: transform .12s linear; }
.fc-ring {
  position: absolute; inset: -4px; border-radius: 32px; z-index: 0;
  background: conic-gradient(from var(--angle), var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple), var(--pink));
  animation: spin 4s linear infinite;
}
.fc-ring::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(26px); opacity: .7; z-index: -1; }
@keyframes spin { to { --angle: 360deg; } }
.fc-inner { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #0d1020; transform: translateZ(1px); }
.fc-img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .5s var(--smooth); }
.feature-card.tilting .fc-img { transition: transform .12s linear; }
.fc-shine { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .35), transparent 45%); mix-blend-mode: overlay; pointer-events: none; }
.fc-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: linear-gradient(to top, rgba(6, 8, 26, .92), rgba(6, 8, 26, .55) 55%, transparent);
}
.fc-title { font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--font-display); text-shadow: 0 4px 18px rgba(0, 0, 0, .5); }
.fc-tag { color: #dfe5ff; font-weight: 700; }
.fc-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font: 700 1rem var(--font-display);
  box-shadow: 0 8px 22px -8px var(--accent); transition: transform .3s var(--pop);
}
.fc-cta svg { width: 18px; height: 18px; }
.feature-card:hover .fc-cta { transform: scale(1.08) translateX(4px); }

/* floating robots that transform every few seconds */
.bot { position: absolute; width: clamp(110px, 15vw, 196px); aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .5)); animation: bob 4.2s ease-in-out infinite; z-index: 3; }
.bot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bot .m { animation: swapA 8s infinite; }
.bot .a { animation: swapB 8s infinite; opacity: 0; }
.bot .flash { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0) 70%); opacity: 0; animation: flash 4s infinite; }
.bot-a { right: -7%; bottom: -12%; }
.bot-b { left: -6%; top: -9%; animation-delay: -2.1s; }
.bot-b .m, .bot-b .a { animation-delay: -4s; }
.bot-b .flash { animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes swapA { 0%, 44% { opacity: 1; transform: none; } 50%, 94% { opacity: 0; transform: scale(.7) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
@keyframes swapB { 0%, 44% { opacity: 0; transform: scale(.7) rotate(12deg); } 50%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.7) rotate(12deg); } }
@keyframes flash { 0%, 40% { opacity: 0; transform: scale(.4); } 47% { opacity: .95; transform: scale(1.3); } 60%, 100% { opacity: 0; transform: scale(1.6); } }
.spark { position: absolute; color: var(--yellow); width: 26px; height: 26px; animation: twinkle 2.4s ease-in-out infinite; z-index: 4; pointer-events: none; }
.spark svg { width: 100%; height: 100%; }
.s1 { top: 2%; right: 18%; }
.s2 { bottom: 18%; right: 2%; color: var(--cyan); animation-delay: -.8s; width: 20px; height: 20px; }
.s3 { top: 46%; left: -2%; color: var(--pink); animation-delay: -1.6s; width: 16px; height: 16px; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.1) rotate(90deg); opacity: 1; } }

.hero-floor {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 34%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(46, 230, 255, .35) 2px, transparent 2px), linear-gradient(90deg, rgba(46, 230, 255, .3) 2px, transparent 2px);
  background-size: 64px 64px;
  transform: perspective(380px) rotateX(64deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 2.6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 28px; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .cta-row, .perk-chips { justify-content: center; }
  .hero-show { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
  .bot { width: 30vw; }
}

/* ---------------- marquee ---------------- */
.marquee {
  position: relative; overflow: hidden; transform: rotate(-2.2deg); margin: 0 -3vw;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--orange), var(--pink));
  color: #1a0b2e; box-shadow: 0 18px 40px -18px rgba(255, 79, 163, .7);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font: 700 clamp(1rem, 2.2vw, 1.4rem)/1 var(--font-display); letter-spacing: .04em; padding: .8em 0; white-space: nowrap; }
.marquee-track span::after { content: '\2726'; display: inline-block; margin: 0 1.3em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- sections & grid ---------------- */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(60px, 8vw, 110px) clamp(16px, 5vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); display: flex; align-items: center; gap: 14px; }
.section-head p { color: var(--muted); }
.count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 999px;
  font-size: .5em; background: var(--rainbow); background-size: 300% 100%; color: #160a2a; animation: slide 6s linear infinite;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 24px; }

.game-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .4s var(--smooth), box-shadow .35s, border-color .35s, opacity .7s var(--smooth);
  transition-delay: var(--d, 0ms);
}
.game-card[data-reveal] { transform: perspective(900px) translateY(26px) scale(.98); }
.game-card[data-reveal].in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.game-card.tilting { transition: transform .1s linear, box-shadow .35s, border-color .35s; }
a.game-card:hover { --lift: -6px; border-color: color-mix(in srgb, var(--accent) 70%, white); box-shadow: 0 26px 50px -20px var(--accent), 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent) inset; }
.gc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d1020; }
.gc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--smooth); }
a.game-card:hover .gc-media img { transform: scale(1.09); }
.gc-glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .32), transparent 50%); opacity: 0; transition: opacity .3s; pointer-events: none; }
a.game-card:hover .gc-glare { opacity: 1; }
.gc-play {
  position: absolute; right: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .6);
  transform: scale(.4) rotate(-40deg); opacity: 0; transition: transform .4s var(--pop), opacity .25s;
}
.gc-play svg { width: 24px; height: 24px; margin-left: 2px; }
a.game-card:hover .gc-play, a.game-card:focus-visible .gc-play { transform: none; opacity: 1; }
.gc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.gc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gc-top h3 { font-size: 1.35rem; }
.gc-body p { color: var(--muted); font-weight: 700; }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gc-tags span { font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.gc-tags .muted { background: none; padding-left: 2px; }

.game-card.soon { border-style: dashed; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .025); }
.soon-media {
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), #0e1130;
}
.soon-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .1) 50%, transparent 65%); background-size: 250% 100%;
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.soon-q { font: 700 4.4rem/1 var(--font-display); color: var(--accent); text-shadow: 0 0 30px var(--accent); animation: bob 3.2s ease-in-out infinite; }
.orb { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); opacity: .7; animation: orbit 6s linear infinite; }
.o1 { top: 30%; left: 30%; } .o2 { top: 60%; left: 62%; animation-delay: -2s; width: 8px; height: 8px; } .o3 { top: 40%; left: 70%; animation-delay: -4s; width: 6px; height: 6px; }
@keyframes orbit { from { transform: rotate(0) translateX(26px) rotate(0); } to { transform: rotate(360deg) translateX(26px) rotate(-360deg); } }
.soon-badge { background: rgba(255, 255, 255, .1); color: var(--muted); }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1.1); opacity: 1; } }

/* ---------------- perks ---------------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; padding-top: 0; }
.perk {
  position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--pop), border-color .3s, opacity .7s var(--smooth);
  transition-delay: var(--d, 0ms);
}
.perk::before { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); transition: transform .6s var(--smooth); }
.perk:hover { transform: translateY(-6px) rotate(-.6deg); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.perk:hover::before { transform: scale(1.5); }
.perk-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); margin-bottom: 16px; }
.perk-ico svg { width: 28px; height: 28px; }
.perk:hover .perk-ico { animation: jelly .6s var(--pop); }
@keyframes jelly { 30% { transform: scale(1.2, .85); } 55% { transform: scale(.9, 1.12); } 80% { transform: scale(1.04, .97); } }
.perk h3 { font-size: 1.3rem; margin-bottom: 6px; }
.perk p { color: var(--muted); }

/* ---------------- play page ---------------- */
.play { max-width: 1560px; margin: 0 auto; padding: 16px max(clamp(10px, 3vw, 32px), env(safe-area-inset-left)) 40px; }
.play-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.play-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.play-title h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.tagline { color: var(--muted); font-weight: 800; }
.play-actions { display: flex; gap: 8px; }

.stage { position: relative; height: clamp(420px, calc(100svh - var(--header-h) - 96px), 940px); border-radius: 26px; }
.stage::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--accent), var(--accent2), var(--yellow), var(--accent));
  animation: spin 6s linear infinite;
}
.stage::after { content: ''; position: absolute; inset: 10px; border-radius: inherit; background: conic-gradient(from var(--angle), var(--accent), var(--accent2), var(--accent)); filter: blur(34px); opacity: .45; z-index: -1; animation: spin 6s linear infinite; }
.stage.gameplay::after { opacity: .25; }
.stage-inner { position: absolute; inset: 3px; border-radius: 23px; overflow: hidden; background: #0d1020; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0d1020; }
.stage-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #0d1020; color: var(--muted); font-weight: 800; transition: opacity .5s; z-index: 2;
}
.stage.loaded .stage-loading { opacity: 0; pointer-events: none; }
.loader { display: flex; gap: 10px; }
.loader i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); animation: dotjump .9s ease-in-out infinite; }
.loader i:nth-child(2) { background: var(--yellow); animation-delay: .12s; }
.loader i:nth-child(3) { background: var(--accent2); animation-delay: .24s; }
@keyframes dotjump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px) scale(1.1); } }

.stage-cover {
  position: absolute; inset: 0; z-index: 3; border: 0; padding: 0; margin: 0; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: #0d1020;
}
.cover-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(5px) brightness(.5) saturate(1.25); animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-2%, 2%); } }
.cover-play {
  position: relative; display: grid; place-items: center; width: clamp(92px, 12vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 18px 50px -12px var(--accent);
  transition: transform .35s var(--pop);
}
.cover-play svg { width: 46%; height: 46%; margin-left: 7%; }
.cover-play::before, .cover-play::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); animation: ring 2s ease-out infinite; }
.cover-play::after { animation-delay: 1s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.stage-cover:hover .cover-play { transform: scale(1.1); }
.cover-title { position: relative; font: 700 clamp(1.8rem, 4vw, 3rem)/1 var(--font-display); text-shadow: 0 6px 24px rgba(0, 0, 0, .6); margin-top: 8px; }
.cover-hint { position: relative; font-weight: 800; color: #dfe5ff; letter-spacing: .03em; }
.stage.started .stage-cover { animation: coverOut .55s var(--smooth) forwards; pointer-events: none; }
@keyframes coverOut { to { opacity: 0; transform: scale(1.08); visibility: hidden; } }

.ad-layer { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(6, 8, 24, .88); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.ad-layer.show { opacity: 1; }
.stage-exit {
  position: absolute; z-index: 20; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%) scale(.6);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(9, 11, 31, .7);
  display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--pop);
}
.stage-exit svg { width: 20px; height: 20px; }
/* the exit button only shows in full screen, and never while the player is busy playing */
.stage.immersive:not(.gameplay) .stage-exit, .stage.is-fs:not(.gameplay) .stage-exit { opacity: 1; pointer-events: auto; transform: translateX(-50%); }

.stage.immersive { position: fixed; inset: 0; z-index: 1000; height: auto; border-radius: 0; }
.stage.immersive::before, .stage.immersive::after, .stage.is-fs::before, .stage.is-fs::after { display: none; }
.stage.immersive .stage-inner, .stage.is-fs .stage-inner { inset: 0; border-radius: 0; }
.stage.is-fs { border-radius: 0; height: 100%; background: #0d1020; }

.play-info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-top: 28px; }
.panel { padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.panel h2 { font-size: 1.45rem; margin-bottom: 12px; }
.panel p { color: #d6dcff; }
.highlights { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.highlights li { position: relative; padding-left: 26px; font-weight: 700; }
.highlights li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--accent), var(--accent2)); transform: rotate(45deg); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 800; font-size: .88rem; }
.meta-row svg { width: 16px; height: 16px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.chip-btn { position: relative; overflow: hidden; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 800; color: var(--muted); transition: all .2s; }
.chip-btn[aria-selected="true"] { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.kv:last-child { border-bottom: 0; }
kbd { font: 700 .85rem var(--font-display); padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); border-bottom: 3px solid rgba(0, 0, 0, .35); white-space: nowrap; }
.kv span { color: var(--muted); font-weight: 700; text-align: right; }
.more { margin-top: 56px; }
.more h2 { font-size: 1.9rem; margin-bottom: 20px; }

@media (max-width: 860px) {
  .play-info { grid-template-columns: 1fr; }
  .tagline { display: none; }
  .play { padding-top: 10px; }
  .play-head { margin-bottom: 10px; gap: 10px; }
  .stage { height: calc(100svh - var(--header-h) - env(safe-area-inset-top) - 74px); min-height: 380px; border-radius: 20px; }
  .stage-inner { border-radius: 17px; }
}

/* ---------------- demo ad ---------------- */
.demo-ad { width: min(440px, 100%); animation: adIn .4s var(--pop); }
.demo-ad.out { animation: adOut .25s ease forwards; }
@keyframes adIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
@keyframes adOut { to { opacity: 0; transform: scale(.92); } }
.demo-ad-card { position: relative; padding: 26px 24px 20px; border-radius: 22px; background: linear-gradient(160deg, #1d2266, #11143a); border: 1px solid rgba(255, 255, 255, .16); text-align: center; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); }
.demo-ad-tag { position: absolute; top: 12px; left: 14px; font: 700 .68rem var(--font-display); letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: var(--yellow); color: #2a1600; }
.demo-ad-art { position: relative; height: 90px; margin: 10px auto 14px; width: 90px; }
.demo-ad-art i { position: absolute; width: 34px; height: 34px; border-radius: 50%; animation: dotpulse 1.6s ease-in-out infinite; }
.demo-ad-art i:nth-child(1) { background: var(--pink); left: 28px; top: 0; }
.demo-ad-art i:nth-child(2) { background: var(--cyan); right: 0; top: 28px; animation-delay: .2s; }
.demo-ad-art i:nth-child(3) { background: var(--yellow); left: 28px; bottom: 0; animation-delay: .4s; }
.demo-ad-art i:nth-child(4) { background: var(--green); left: 0; top: 28px; animation-delay: .6s; }
.demo-ad-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.demo-ad-card p { color: var(--muted); font-size: .95rem; }
.demo-ad-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin: 18px 0 14px; overflow: hidden; }
.demo-ad-bar span { display: block; height: 100%; width: 0; background: var(--rainbow); background-size: 200% 100%; animation: slide 2s linear infinite; }
.demo-ad-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.demo-ad-count { color: var(--muted); font-weight: 800; font-size: .9rem; }

/* ---------------- toasts ---------------- */
.toasts { position: fixed; z-index: 3000; top: calc(var(--header-h) + 14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; }
.toast {
  --tc: var(--pink);
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(16, 19, 52, .92); border: 1px solid color-mix(in srgb, var(--tc) 60%, transparent);
  box-shadow: 0 14px 40px -12px var(--tc); font: 700 1rem var(--font-display);
  animation: toastIn .45s var(--pop);
}
.toast.out { animation: toastOut .4s ease forwards; }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 12px var(--tc); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.85); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* ---------------- text pages & 404 ---------------- */
.text-page { max-width: 860px; }
.text-page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 8px; }
.prose { margin-top: 24px; }
.prose h2 { font-size: 1.25rem; margin: 22px 0 6px; }
.prose p { line-height: 1.7; }
.prose a { color: var(--cyan); }
.lost { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; min-height: 60svh; justify-content: center; }
.lost h1 { font-size: clamp(3rem, 9vw, 5.5rem); background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 5s linear infinite; }
.lost .lead { margin-bottom: 8px; }
.lost-critter { position: relative; width: 120px; height: 96px; border-radius: 55% 55% 42% 42%; background: var(--purple); animation: squish 1.6s ease-in-out infinite; box-shadow: inset -10px -14px 0 rgba(0, 0, 0, .18); }
.lost-critter i, .lost-critter::before, .lost-critter::after { content: ''; position: absolute; }
.lost-critter::before, .lost-critter::after { top: 30px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 60% 60%, #1b1430 38%, #fff 40%); animation: look 3s ease-in-out infinite; }
.lost-critter::before { left: 26px; } .lost-critter::after { right: 26px; }
.lost-critter i { left: 50%; bottom: 22px; width: 22px; height: 10px; margin-left: -11px; border-radius: 0 0 12px 12px; background: #1b1430; }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.08, .9) translateY(6px); } }
@keyframes look { 0%, 40%, 100% { transform: translateX(0); } 50%, 90% { transform: translateX(5px); } }

/* ---------------- footer ---------------- */
.site-footer { position: relative; margin-top: 30px; padding: 84px max(clamp(16px, 5vw, 64px), env(safe-area-inset-left)) calc(26px + env(safe-area-inset-bottom)); overflow: hidden; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 58px; height: 2px; background: var(--rainbow); background-size: 200% 100%; opacity: .35; animation: slide 10s linear infinite; }
.critters { position: absolute; left: 0; right: 0; top: 24px; height: 36px; pointer-events: none; }
.critter { position: absolute; left: 0; bottom: 0; width: 34px; height: 28px; animation: walk var(--dur) linear infinite; animation-delay: var(--del); }
.critter.small { width: 24px; height: 20px; }
.critter i {
  position: absolute; inset: 0; border-radius: 55% 55% 40% 40%; background: var(--c);
  box-shadow: inset -4px -5px 0 rgba(0, 0, 0, .18); animation: crit-hop .46s ease-in-out infinite alternate; transform-origin: bottom;
}
.critter i::before, .critter i::after { content: ''; position: absolute; top: 28%; width: 30%; height: 34%; border-radius: 50%; background: radial-gradient(circle at 65% 55%, #1b1430 40%, #fff 42%); }
.critter i::before { left: 18%; } .critter i::after { right: 18%; }
@keyframes walk { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw + 60px)); } }
@keyframes crit-hop { from { transform: translateY(0) scale(1.08, .9); } to { transform: translateY(-9px) scale(.95, 1.05); } }
.footer-inner { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-logo { font: 700 1.5rem var(--font-display); }
.footer-logo span { color: var(--muted); }
.footer-brand p { color: var(--muted); margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 800; transition: color .2s; }
.footer-nav a:hover { color: var(--ink); }
.copyright { max-width: 1320px; margin: 26px auto 0; color: rgba(170, 179, 230, .6); font-size: .9rem; }
body.playing-page .site-footer { margin-top: 0; }
.noscript { text-align: center; padding: 40px; }

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .bot .a, .bot .flash { display: none; }
}
