:root {
  --bg: #0B0716;
  --bg2: #140B26;
  --fg: #F6F2FF;
  --muted: rgba(246, 242, 255, 0.64);
  --line: rgba(255, 255, 255, 0.1);
  --pink: #FF6FA3;
  --violet: #8B5CFF;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--fg); background: var(--bg); font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--pink); margin: 0 0 12px; }
.muted { color: var(--muted); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); transition: background .3s; }
.nav.scrolled { background: rgba(11, 7, 22, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand.small { font-size: .95rem; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav nav a:hover { color: var(--fg); }

/* hero */
.hero { position: relative; min-height: 88svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 100px 0 50px;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, #2A1550 0%, transparent 70%), var(--bg); }
#ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.squid-wrap { width: 150px; height: 150px; margin-bottom: 18px; animation: swim 5s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(139, 92, 255, .45)); }
.squid { width: 100%; height: 100%; }
@keyframes swim { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-22px) rotate(4deg) scaleY(1.04); } }
h1 { font-size: clamp(2.6rem, 7.5vw, 5.8rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; max-width: 900px; }
.grad { background: linear-gradient(90deg, var(--pink), var(--violet), var(--pink)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 620px; margin: 0 0 30px; }
.cta { text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--violet)); box-shadow: 0 12px 40px rgba(139, 92, 255, .4); transition: transform .2s; }
.cta:hover { transform: translateY(-2px); }
.cta span { display: inline-block; animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* games */
.games { padding: 40px 0 100px; }
.section-head { margin-bottom: 34px; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; letter-spacing: -.02em; line-height: 1.05; }

.game-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px;
  min-height: 620px; padding: clamp(28px, 5vw, 64px); border-radius: 36px; margin-bottom: 28px; isolation: isolate;
  background: var(--gbg); border: 1px solid color-mix(in srgb, var(--gu), transparent 70%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5), inset 0 0 120px rgba(0, 0, 0, .5); }
.gc-anim { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gbg), transparent 10%) 0%, color-mix(in srgb, var(--gbg), transparent 60%) 45%, transparent 75%); }
.gc-copy { position: relative; max-width: 500px; }
.gc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.gc-icon { width: 88px; height: 88px; border-radius: 22%; box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--gu), transparent 70%); }
.pill { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 5px 11px; border-radius: 99px; color: var(--gu); background: color-mix(in srgb, var(--gu), transparent 86%); }
.game-card h3 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; margin: 0 0 10px; letter-spacing: -.02em; }
.gc-tag { font-size: 1.2rem; color: rgba(255, 255, 255, .78); margin: 0 0 18px; }
.gc-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.gc-list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); }
.gc-list li::before { content: ""; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--gu); transform: rotate(90deg); flex: none; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 11px 16px; border-radius: 15px; text-decoration: none; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22); transition: transform .2s, box-shadow .3s; }
.store svg { width: 28px; height: 28px; flex: none; }
.store > span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.store small { font-size: .7rem; font-weight: 400; opacity: .8; }
.store.primary { border-color: var(--gu); box-shadow: 0 0 0 0 var(--gu); animation: glow 2.6s infinite; }
.store.primary:hover { transform: translateY(-2px); }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gu), transparent 40%); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.store.soon { background: rgba(0,0,0,.35); color: rgba(255,255,255,.7); border-style: dashed; }
.gc-more { display: inline-flex; gap: 8px; text-decoration: none; font-weight: 700; color: var(--gu); }
.gc-more span { transition: transform .2s; }
.gc-more:hover span { transform: translateX(5px); }

.gc-media { position: relative; height: 540px; }
.phone { position: absolute; width: 250px; aspect-ratio: 600 / 1303; padding: 9px; border-radius: 40px; background: #050505; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 30px 80px rgba(0,0,0,.65); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.phone.p0 { left: 50%; top: 50%; translate: -30% -50%; rotate: 5deg; animation: bobA 7s ease-in-out infinite; z-index: 2; }
.phone.p1 { left: 50%; top: 50%; translate: -95% -46%; rotate: -8deg; scale: .86; opacity: .85; animation: bobB 8s ease-in-out infinite; }
@keyframes bobA { 50% { transform: translateY(-14px); } }
@keyframes bobB { 50% { transform: translateY(12px); } }

.soon-card { display: flex; align-items: center; gap: 22px; padding: 30px; border-radius: 28px; border: 1px dashed var(--line); background: linear-gradient(120deg, rgba(255,111,163,.08), rgba(139,92,255,.08)); }
.soon-card img { animation: swim 5s ease-in-out infinite; }
.soon-card h3 { margin: 0 0 4px; font-size: 1.4rem; }
.soon-card p { margin: 0; color: var(--muted); }
.soon-card a { color: var(--pink); }

/* legal */
.legal { padding: 120px 0 80px; max-width: 800px; }
.legal-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 50px); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.legal h2 { font-size: 1.25rem; color: var(--pink); margin-top: 2em; }
.legal a { color: var(--pink); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.foot p { margin: 0; color: var(--muted); font-size: .85rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .game-card { grid-template-columns: 1fr; min-height: 0; padding: 26px 22px 28px; gap: 6px; border-radius: 30px; }
  .game-card::after { background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--gbg), transparent 30%) 45%, color-mix(in srgb, var(--gbg), transparent 5%) 70%); }
  .gc-media { order: -1; height: 400px; }
  .phone { width: 185px; border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 25px; }
  .phone.p0 { translate: -25% -50%; }
  .phone.p1 { translate: -88% -46%; }
  .gc-head { margin-bottom: 12px; }
  .gc-icon { width: 64px; height: 64px; }
  .gc-actions { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .store.primary { padding: 14px 22px; }
  .store.primary > span { font-size: 1.35rem; }
  .gc-more { justify-content: center; width: 100%; padding: 6px 0; }
  .squid-wrap { width: 110px; height: 110px; }
  .soon-card { flex-direction: column; text-align: center; }
}

/* game reel: every game in the first screen */
.reel { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1200px, 100% - 40px); margin: 34px auto 0; text-align: left; }
.slide { position: relative; overflow: hidden; border-radius: 26px; background: var(--gbg); border: 1px solid color-mix(in srgb, var(--gu), transparent 60%); box-shadow: 0 20px 50px rgba(0,0,0,.45); display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.slide:hover { transform: translateY(-6px) rotate(-.5deg); }
.slide-shot { display: block; aspect-ratio: 300 / 255; overflow: hidden; position: relative; }
.slide-shot canvas { display: block; width: 100%; height: 100%; }
.slide-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transform: scale(1.02); animation: pan 9s ease-in-out infinite alternate; }
.slide:nth-child(2) .slide-shot img { animation-delay: -2s; } .slide:nth-child(3) .slide-shot img { animation-delay: -4s; } .slide:nth-child(4) .slide-shot img { animation-delay: -6s; }
@keyframes pan { to { object-position: 50% 42%; } }
.slide-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 14%; background: linear-gradient(transparent, var(--gbg)); }
.slide-body { padding: 12px 16px 16px; margin-top: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.slide-head { display: flex; gap: 12px; align-items: center; }
.slide-icon { border-radius: 22%; box-shadow: 0 6px 18px rgba(0,0,0,.5); flex: none; }
.slide-head b { display: block; font-size: 1.15rem; line-height: 1.15; }
.slide-head small { color: rgba(255,255,255,.75); font-size: .85rem; }
.slide-actions { display: flex; gap: 8px; }
.slide-actions .get { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fff; color: #111; font-weight: 800; text-decoration: none; font-size: .95rem; }
.slide-actions .get svg { width: 18px; height: 18px; }
.slide-actions .more { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--gu), transparent 40%); color: var(--gu); font-weight: 700; text-decoration: none; font-size: .95rem; }
.reel-hint { display: none; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 86px 0 34px; justify-content: flex-start; }
  .squid-wrap { width: 72px; height: 72px; margin-bottom: 8px; }
  .hero .eyebrow { margin-bottom: 6px; }
  h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); margin-bottom: 10px; }
  .lead { font-size: 1rem; margin: 0 20px 0; }
  .reel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; width: 100%; padding: 0 20px 6px; margin-top: 22px; scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .slide { flex: 0 0 76%; scroll-snap-align: center; }
  .slide-shot { aspect-ratio: 300 / 255; }
  .reel-hint { display: block; margin: 10px 0 0; color: var(--muted); font-size: .85rem; animation: nudgeX 1.6s ease-in-out infinite; }
  @keyframes nudgeX { 50% { transform: translateX(6px); } }
  /* detailed cards: compact on phones */
  .games { padding: 30px 0 60px; }
  .gc-media { height: 300px; }
  .phone { width: 140px; border-radius: 26px; padding: 6px; }
  .phone img { border-radius: 20px; }
  .gc-list { display: none; }
  .gc-tag { font-size: 1rem; margin-bottom: 14px; }
  .game-card h3 { font-size: 2.2rem; }
  .gc-icon { width: 56px; height: 56px; }
}

@media (min-width: 901px) {
  .squid-wrap { width: 110px; height: 110px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
  .hero .lead { margin-bottom: 0; }
}
html, body { overflow-x: clip; }
