:root {
  --bg: #0e0718;
  --bg2: #170d29;
  --panel: #1d1233;
  --line: rgba(255, 255, 255, .1);
  --ink: #f7f1ff;
  --muted: #b9abd3;
  --red: #ef2b2d;
  --red-d: #a8141b;
  --purple: #7e3fe0;
  --purple-d: #4d2199;
  --yellow: #ffd60a;
  --pink: #e6197e;
  --teal: #2ec4b6;
  --orange: #ff7a1a;
  --blue: #3b2bb8;
  --display: "Bungee", "Rubik", system-ui, sans-serif;
  --ar: "Lalezar", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[lang="ar"] { font-family: var(--ar); font-weight: 400; letter-spacing: 0; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--bg); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }

/* grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 90; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-4%) } 60% { transform: translate(-4%,-1%) } 80% { transform: translate(3%,3%) } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0; transition: opacity .3s; }
  .cursor.on { opacity: 1; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; will-change: transform; }
  .cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--yellow); }
  .cursor-ring {
    width: 44px; height: 22px; margin: -11px 0 0 -22px; border-radius: 99px;
    background: linear-gradient(90deg, var(--red) 50%, var(--purple) 50%);
    opacity: .55; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .25s;
  }
  .cursor.hover .cursor-ring { width: 70px; height: 34px; margin: -17px 0 0 -35px; opacity: .35; }
  .cursor.down .cursor-ring { width: 30px; height: 16px; margin: -8px 0 0 -15px; opacity: .9; }
}

/* ---------- buttons ---------- */
.btn {
  --bgc: var(--ink); --fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 16px 28px; border-radius: 999px; border: 0;
  background: var(--bgc); color: var(--fg);
  font: 700 16px/1 var(--body); text-decoration: none; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.25); transform: translateX(-101%) skewX(-20deg);
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateX(101%) skewX(-20deg); }
.btn:active { box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-red { --bgc: var(--red); --fg: #fff; }
.btn-purple { --bgc: var(--purple); --fg: #fff; }
.btn-yellow { --bgc: var(--yellow); --fg: #1a0e00; }
.btn-ghost { --bgc: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line), 0 0 0 rgba(0,0,0,0); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- supplied logo ---------- */
.brand-logo {
  display: block; position: relative; width: 130px; aspect-ratio: 4442 / 2265; overflow: hidden;
}
/* Frame the artwork's transparent margins without changing the supplied image. */
.brand-logo img {
  position: absolute; width: 112.562%; max-width: none; height: auto;
  left: -7.452%; top: -60.132%;
}
.brand-logo.big { width: 170px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 80;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: rgba(20, 11, 36, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translate(-50%, -140%); }
.nav-logo { text-decoration: none; margin-right: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 99px;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(255,255,255,.08); }
.burger { display: none; }

@media (max-width: 760px) {
  .nav { padding-left: 16px; gap: 8px; }
  .nav-cta { display: none; }
  .burger {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--yellow); cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 2px; background: var(--bg); transition: transform .3s var(--ease); }
  .nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 10px;
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { font-family: var(--display); font-size: 26px; padding: 14px 18px; color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { height: 220vh; position: relative; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  --p: 0;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(40vw 40vw at 30% 55%, rgba(239,43,45,.35), transparent 70%),
    radial-gradient(40vw 40vw at 70% 45%, rgba(126,63,224,.4), transparent 70%),
    radial-gradient(60vw 30vw at 50% 110%, rgba(230,25,126,.25), transparent 70%);
  filter: blur(10px);
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: scale(1.12) rotate(4deg); } }

.hero-title {
  position: absolute; top: clamp(90px, 15vh, 150px); left: 0; right: 0; margin: 0;
  text-align: center; font: 400 clamp(2rem, min(8.6vw, 12vh), 8rem)/.95 var(--display);
  text-transform: uppercase; letter-spacing: -.02em; padding-inline: 16px;
  opacity: calc(1 - var(--p) * 1.8);
  transform: translateY(calc(var(--p) * -80px)) scale(calc(1 + var(--p) * .15));
}
.ht-line { display: block; }
.ht-line em { font-style: normal; }
.neon {
  color: #fff6c2;
  text-shadow: 0 0 6px rgba(255,214,10,.9), 0 0 22px rgba(255,214,10,.6), 0 0 60px rgba(255,122,26,.5);
  animation: flicker 5s linear infinite;
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .45; text-shadow: none; }
}
.hero-title .ht-line { animation: rise 1s var(--ease) backwards; }
.hero-title .ht-line:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; clip-path: inset(0 0 100% 0); } to { transform: none; opacity: 1; clip-path: inset(0 0 -20% 0); } }

.capsule-wrap {
  --cw: min(560px, 80vw, 58vh);
  position: relative; width: var(--cw); aspect-ratio: 4442 / 2265; margin-top: 16vh;
  animation: drop-in 1.2s .2s var(--ease) backwards;
}
@keyframes drop-in { from { transform: translateY(-60vh) rotate(40deg); opacity: 0; } }
.capsule {
  position: absolute; inset: 0;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .6s var(--ease);
}
.half {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  will-change: transform;
}
.half.left {
  transform: translateX(calc(var(--p) * -34vw)) rotate(calc(var(--p) * -28deg));
}
.half.right {
  transform: translateX(calc(var(--p) * 34vw)) rotate(calc(var(--p) * 28deg));
}

.inside { position: absolute; inset: 0; pointer-events: none; }
.bit {
  position: absolute; left: 50%; top: 50%;
  opacity: clamp(0, calc((var(--p) - .12) * 4), 1);
  transform: translate(-50%, -50%) translate(calc(var(--tx) * var(--p)), calc(var(--ty) * var(--p))) rotate(calc(var(--rot) * var(--p))) scale(calc(.2 + var(--p) * .9));
}
.card {
  width: clamp(70px, 11vw, 120px); aspect-ratio: 5 / 7; border-radius: 12px;
  display: grid; place-items: center; font-size: clamp(16px, 2.4vw, 26px); color: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,.45), inset 0 0 0 4px rgba(255,255,255,.18);
}
.c-blue { background: linear-gradient(160deg, #5b49e6, var(--blue)); }
.c-orange { background: linear-gradient(160deg, #ff9a4d, var(--orange)); }
.c-teal { background: linear-gradient(160deg, #5fe0d3, var(--teal)); color: #06302c; }
.c-yellow { background: linear-gradient(160deg, #ffe45c, #f5b800); color: #3b2500; }
.chip { width: clamp(30px, 4vw, 48px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b6b, #c0161c 70%); box-shadow: inset 0 0 0 4px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.4); }
.star { color: var(--yellow); font-size: clamp(30px, 5vw, 60px); text-shadow: 0 0 20px var(--yellow); }
.bit:nth-child(1) { --tx: -24vw; --ty: -26vh; --rot: -30deg; }
.bit:nth-child(2) { --tx: 22vw;  --ty: -28vh; --rot: 24deg; }
.bit:nth-child(3) { --tx: -14vw; --ty: 24vh;  --rot: 18deg; }
.bit:nth-child(4) { --tx: 16vw;  --ty: 22vh;  --rot: -16deg; }
.bit:nth-child(5) { --tx: -36vw; --ty: 4vh;   --rot: 90deg; }
.bit:nth-child(6) { --tx: 36vw;  --ty: -6vh;  --rot: 90deg; }
.bit:nth-child(7) { --tx: 4vw;   --ty: -34vh; --rot: 0deg; }
.bit:nth-child(8) { --tx: -2vw;  --ty: 34vh;  --rot: 180deg; }

.inside-text {
  position: absolute; top: 50%; left: 50%; margin: 0; text-align: center; width: min(90vw, 560px);
  font-size: clamp(18px, 2.2vw, 24px); color: var(--muted);
  opacity: clamp(0, calc((var(--p) - .45) * 3), 1);
  transform: translate(-50%, calc(-50% + 12vh - var(--p) * 10vh));
}
.inside-text strong { display: block; margin-top: 8px; font: 400 clamp(1.5rem, 4vw, 2.8rem)/1.05 var(--display); color: var(--ink); text-transform: uppercase; }

.hero-bottom {
  position: absolute; bottom: clamp(20px, 5vh, 50px); left: 0; right: 0; padding-inline: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  opacity: calc(1 - var(--p) * 3);
  animation: rise 1s .5s var(--ease) backwards;
}
.eyebrow { margin: 0; color: var(--muted); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scroll-hint { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.scroll-hint span { width: 22px; height: 34px; border-radius: 99px; border: 2px solid var(--muted); position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .hero { height: 190vh; }
  .capsule-wrap { margin-top: 0; }
  .bit:nth-child(5), .bit:nth-child(6) { --ty: 28vh; }
}
@media (max-width: 760px) and (max-height: 720px) { .hero-bottom .scroll-hint { display: none; } } /* no room on short phones */

/* ---------- ticker ---------- */
.ticker {
  background: var(--yellow); color: #1a0e00; overflow: hidden; transform: rotate(-2deg);
  margin-block: -20px; position: relative; z-index: 2; border-block: 3px solid #1a0e00;
}
.ticker-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker-track span { font: 400 clamp(20px, 3vw, 34px)/1 var(--display); padding: 18px 22px; white-space: nowrap; text-transform: uppercase; }
.ticker-track span[lang="ar"] { font-family: var(--ar); font-size: clamp(26px, 3.6vw, 42px); padding-block: 12px; }
.ticker-track i { font-style: normal; align-self: center; color: var(--red); font-size: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- type ---------- */
.kicker { margin: 0 0 12px; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.kicker::before { content: ""; display: inline-block; width: 26px; height: 12px; border-radius: 99px; margin-right: 10px; vertical-align: -1px; background: linear-gradient(90deg, var(--red) 50%, var(--purple) 50%); }
.h2 { margin: 0 0 clamp(40px, 6vw, 70px); font: 400 clamp(2.1rem, 6vw, 4.8rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; max-width: 16ch; }
.h3 { font: 400 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); text-transform: uppercase; margin: 0; }
.lead { font-size: clamp(24px, 3vw, 34px); margin: -40px 0 50px; color: var(--muted); }
.scribble { position: relative; color: var(--yellow); white-space: nowrap; }
.scribble::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -.08em; height: .28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 40 2, 80 18, 120 8 S 180 4, 198 12' fill='none' stroke='%23ef2b2d' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s .4s var(--ease);
}
.in .scribble::after, .scribble.in::after { clip-path: inset(0 0 0 0); }
.neon-y { color: var(--yellow); text-shadow: 0 0 24px rgba(255,214,10,.45); }

.tag { display: inline-block; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--muted); }

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

/* ---------- pillars ---------- */
.pillars { padding-top: clamp(120px, 14vw, 180px); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 34px 30px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(126,63,224,.45), transparent 70%); transition: transform .6s var(--ease);
}
.pillar:nth-child(2)::before { background: radial-gradient(circle, rgba(239,43,45,.4), transparent 70%); }
.pillar:nth-child(3)::before { background: radial-gradient(circle, rgba(255,214,10,.3), transparent 70%); }
.pillar:hover::before { transform: scale(1.6); }
.pillar-num { font: 400 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); margin-bottom: 30px; }
.pillar h3 { font: 400 24px/1.1 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

/* tilt */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt:not(.reveal) { transition: transform .5s var(--ease); }
.tilt-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), transparent 50%); opacity: 0; transition: opacity .3s; z-index: 3; }
.tilt:hover .tilt-glare { opacity: 1; }

/* ---------- products ---------- */
.games { background: linear-gradient(180deg, var(--bg), var(--bg2) 30%, var(--bg2) 70%, var(--bg)); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; margin-bottom: clamp(80px, 10vw, 130px); }
.product.flip .product-media { order: 2; }
.product-media { position: relative; border-radius: 28px; }
.product-media img { width: 100%; border-radius: 28px; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.product.flip .product-media img { aspect-ratio: 4 / 3.4; }
.product-media::before {
  content: ""; position: absolute; inset: -14px; border-radius: 36px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), var(--red), var(--yellow), var(--purple), var(--pink), var(--red));
  filter: blur(24px); opacity: .5; animation: spin 6s linear infinite;
}
.js .product-media:not(.glow-on)::before { animation-play-state: paused; } /* main.js runs it only on screen */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.sticker {
  position: absolute; bottom: -22px; right: 24px; padding: 10px 22px 6px; border-radius: 14px;
  font-size: clamp(26px, 3vw, 36px); color: #fff; transform: rotate(-6deg) translateZ(40px);
  box-shadow: 0 10px 0 rgba(0,0,0,.35); animation: bob 3s ease-in-out infinite;
}
.s-red { background: var(--red); }
.s-purple { background: var(--purple); left: 24px; right: auto; transform: rotate(5deg) translateZ(40px); }
@keyframes bob { 50% { translate: 0 -8px; } }
.product-title { font: 400 clamp(2rem, 4.4vw, 4rem)/.95 var(--display); overflow-wrap: anywhere; text-transform: uppercase; margin: 16px 0 6px; }
.product-info .product-ar { font-size: clamp(24px, 3vw, 32px); color: var(--yellow); margin: 0 0 16px; text-align: left; }
.product-info > p { color: var(--muted); margin: 0 0 24px; }
.product-info strong { color: var(--ink); }
.features { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.features li { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.35; }
.features b { display: block; font: 400 22px/1.1 var(--display); color: var(--ink); margin-bottom: 4px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product.flip .product-media { order: 0; }
  .features { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* ---------- deal ---------- */
.deal {
  position: relative; overflow: hidden; text-align: center; border-radius: 36px;
  padding: clamp(50px, 8vw, 90px) 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.2), transparent 40%),
    linear-gradient(135deg, var(--pink), var(--red) 45%, var(--purple));
  box-shadow: 0 40px 80px rgba(230,25,126,.25);
}
.deal-flash { display: inline-block; font: 400 clamp(18px, 2.4vw, 24px)/1 var(--display); text-transform: uppercase; background: #1a0e00; color: var(--yellow); padding: 10px 18px; border-radius: 99px; transform: rotate(-3deg); animation: shake 2.4s ease-in-out infinite; }
@keyframes shake { 0%, 80%, 100% { transform: rotate(-3deg); } 84% { transform: rotate(4deg) scale(1.06); } 88% { transform: rotate(-6deg) scale(1.06); } 92% { transform: rotate(3deg); } }
.deal-title { font-size: clamp(34px, 6vw, 64px); margin: 22px 0 4px; font-weight: 400; line-height: 1.2; }
.deal-title em { font-style: normal; color: var(--yellow); }
.deal-price { display: flex; justify-content: center; align-items: flex-start; gap: 10px; font-family: var(--display); line-height: .85; }
.deal-price .num { font-size: clamp(90px, 18vw, 200px); color: #fff; text-shadow: 6px 6px 0 #1a0e00; }
.deal-price .le { font-size: clamp(24px, 4vw, 40px); margin-top: .6em; color: var(--yellow); }
.deal-free { display: inline-block; margin-top: 16px; font: 400 clamp(18px, 2.6vw, 26px)/1 var(--display); text-transform: uppercase; padding: 10px 18px; border: 3px dashed #1a0e00; background: var(--yellow); color: #1a0e00; transform: rotate(2deg); }
.deal-note { margin: 22px auto 26px; max-width: 42ch; color: rgba(255,255,255,.85); font-size: 15px; }
.pct { position: absolute; font: 400 clamp(80px, 14vw, 180px)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 4px #1a0e00; text-shadow: 6px 6px 0 #1a0e00; pointer-events: none; animation: float 5s ease-in-out infinite; }
.p1 { left: 3%; top: 8%; rotate: -18deg; }
.p2 { right: 4%; bottom: 6%; rotate: 16deg; animation-delay: -2s; }
.p3 { right: 12%; top: 4%; font-size: clamp(40px, 6vw, 80px); rotate: 8deg; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-20px) scale(1.05); } }
@media (max-width: 600px) { .p1 { top: auto; bottom: 30%; left: -4%; opacity: .7; } .p2 { opacity: .7; right: -6%; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { padding: 26px 20px; border-radius: var(--r); border: 1px solid var(--line); text-align: center; }
.stat > b { display: block; font: 400 clamp(36px, 5vw, 56px)/1 var(--display); color: var(--yellow); }
.stat > span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- play ---------- */
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 860px) { .play-grid { grid-template-columns: 1fr; } }
.panel { padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.panel-head h3 { font: 400 clamp(24px, 3vw, 32px)/1.05 var(--display); text-transform: uppercase; margin: 14px 0 6px; }
.panel-head p { margin: 0; color: var(--muted); }
.panel-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.status { margin: 0; font-weight: 500; min-height: 1.6em; }

.liar-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 26px; perspective: 800px; }
.lcard { aspect-ratio: 5 / 7; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .6s var(--ease); position: relative; }
.lcard:hover:not(.open) { transform: translateY(-8px) rotate(-2deg); }
.lcard.open { transform: rotateY(180deg); cursor: default; }
.lcard > span { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; display: grid; place-items: center; text-align: center; padding: 6px; }
.lcard .back { background: repeating-linear-gradient(45deg, var(--red) 0 10px, var(--red-d) 10px 20px); box-shadow: inset 0 0 0 4px rgba(255,255,255,.2); font: 400 clamp(22px, 4vw, 38px)/1 var(--display); color: var(--yellow); }
.lcard .front { transform: rotateY(180deg); background: #f4ede0; color: #2b1a3d; font-size: clamp(16px, 2vw, 22px); line-height: 1.1; }
.lcard .front small { display: block; font: 700 10px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.lcard.liar .front { background: var(--yellow); color: #1a0e00; animation: pop .5s .4s var(--ease); }
@keyframes pop { 50% { scale: 1.12; } }
.lcard.nope { animation: nope .45s .4s; } /* innocent card shakes after flipping */
@keyframes nope { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

.role-stage { display: grid; place-items: center; margin-top: 26px; perspective: 1000px; }
.role-card { width: min(220px, 60vw); aspect-ratio: 5 / 7; border: 0; padding: 0; background: none; cursor: pointer; }
.role-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.role-card.drawn .role-inner { transform: rotateY(180deg); }
.role-card:not(.drawn):hover .role-inner { transform: rotateY(-14deg) rotateX(6deg) translateY(-6px); }
.role-face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; display: grid; place-items: center; align-content: center; gap: 16px; box-shadow: 0 24px 40px rgba(0,0,0,.4), inset 0 0 0 6px rgba(255,255,255,.2); }
.role-back { background: linear-gradient(150deg, var(--blue), #1b1266); color: var(--muted); }
.role-back::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(255,255,255,.2); border-radius: 12px; }
.role-back small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.role-front { transform: rotateY(180deg); color: #fff; }
.role-front.cop { background: linear-gradient(150deg, #5b49e6, var(--blue)); }
.role-front.thief { background: linear-gradient(150deg, #ff9a4d, var(--orange)); }
.role-front .role-icon { font-size: 70px; line-height: 1; }
.role-front .role-ar { font-size: 44px; line-height: 1; }
.role-front .role-en { font: 400 16px/1 var(--display); text-transform: uppercase; }

.catch { margin-top: 0; }
.score { font-family: var(--display); display: flex; align-items: baseline; gap: 6px; }
.score b { font-weight: 400; font-size: 64px; line-height: 1; color: var(--yellow); display: inline-block; }
.score b.bump { animation: pop .35s var(--ease); }
.score span { color: var(--muted); font-size: 22px; }
.arena {
  position: relative; height: clamp(300px, 45vh, 440px); margin-top: 24px; border-radius: 20px; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 50% 50%, rgba(126,63,224,.25), transparent 70%), #120a22;
  border: 1px dashed rgba(255,255,255,.15); touch-action: manipulation;
}
.runner {
  position: absolute; left: 50%; top: 50%; border: 0; padding: 10px; background: none; cursor: pointer;
  transform: translate(-50%, -50%);
  transition: left .28s var(--ease), top .28s var(--ease);
}
.runner .brand-logo { width: 150px; transition: transform .2s; animation: wobble 1.2s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(8deg) scale(1.05); } }
.runner.caught .brand-logo { animation: none; transform: scale(1.5) rotate(-20deg); }
.arena-msg { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font: 400 clamp(18px, 3vw, 28px)/1.2 var(--display); text-transform: uppercase; padding-inline: 16px; pointer-events: none; }
.arena-msg a { pointer-events: auto; color: var(--yellow); }
.arena.won .runner { display: none; }

/* ---------- events ---------- */
.events { background: radial-gradient(80vw 50vw at 90% 0%, rgba(126,63,224,.18), transparent 70%); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service { padding: 28px 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .3s; }
.service:hover { border-color: rgba(255,214,10,.5); }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--purple)); margin-bottom: 22px; }
.svc-icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font: 400 20px/1.1 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

.been-at { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.been-at > span { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.been-at ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.been-at li { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); font-weight: 500; position: relative; background: var(--bg); transition: transform .3s var(--ease), background .3s, color .3s; }
.been-at li:hover { transform: translateY(-4px) rotate(-2deg); background: var(--yellow); color: #1a0e00; }

.gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: clamp(70px, 9vw, 110px); margin-bottom: 24px; }
.drag-hint { margin: 0; color: var(--muted); font-size: 14px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  --gut: max(20px, calc((100vw - 1180px) / 2 + 20px));
  padding: 10px var(--gut) 40px; scroll-padding-inline: var(--gut);
  scrollbar-width: none; cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.dragging .reel { pointer-events: none; }
.reel {
  flex: 0 0 clamp(200px, 22vw, 260px); aspect-ratio: 9 / 16; scroll-snap-align: start;
  position: relative; border-radius: 22px; overflow: hidden; text-decoration: none;
  box-shadow: 0 20px 40px rgba(0,0,0,.4); transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease);
}
.reel:nth-child(odd) { --r: -2deg; }
.reel:nth-child(even) { --r: 2deg; margin-top: 30px; }
.reel:hover { transform: rotate(0) scale(1.04); }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); -webkit-user-drag: none; user-select: none; }
.reel:hover img { transform: scale(1.08); }
.reel::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 50%, rgba(14,7,24,.9)); }
.reel::after { /* play button */
  content: ""; position: absolute; z-index: 2; left: 50%; top: 45%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  background: rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") no-repeat 55% 50% / 26px;
  backdrop-filter: blur(6px); transform: scale(.6); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
}
.reel:hover::after { transform: none; opacity: 1; }
.reel-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; font-weight: 700; line-height: 1.25; }

/* Managed events and Instagram feed */
.instagram { padding-top: 30px; }
.instagram .gallery-head { margin-top: 0; }
.reel-category { display: block; margin-bottom: 8px; color: #f4da87; font-size: 11px; font-weight: 500; }
.reel-draft, .event-draft { padding: 5px 10px; background: var(--yellow); color: var(--bg); border-radius: 6px; font-size: 12px; font-weight: 700; }
.reel-draft { position: absolute; z-index: 3; top: 14px; left: 14px; }
.feed-empty { color: var(--muted); max-width: 48ch; padding-block: 30px; }
.event-showcase { margin-top: 64px; }
.event-showcase-head { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.event-showcase-head .kicker { margin-bottom: 9px; color: var(--muted); font: 400 14px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
.event-showcase-head .h3 { margin: 0; font-size: clamp(22px, 3vw, 35px); }
.event-arrows { display: flex; gap: 10px; }
.event-arrow { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--ink); font: 400 23px/1 var(--body); cursor: pointer; }
.event-arrow:hover { background: var(--purple); border-color: var(--purple); }
.event-arrow:disabled { opacity: .3; cursor: default; }
.event-viewport { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.event-track { display: flex; transition: transform .5s var(--ease); touch-action: pan-y; }
.event-slide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); flex: 0 0 100%; min-width: 0; }
.event-photo { width: 100%; height: 440px; object-fit: cover; object-position: 50% 40%; background: var(--bg2); }
.event-copy { padding: clamp(25px, 4vw, 50px); align-self: center; }
.event-category { display: inline-block; padding: 6px 12px; margin-bottom: 18px; border: 1px solid rgba(255,214,10,.4); border-radius: 99px; color: var(--yellow); font-size: 12px; }
.event-draft { margin-left: 8px; }
.event-featured { display: inline-block; margin-left: 8px; color: var(--yellow); font-size: 12px; }
.event-copy h4 { margin: 0 0 14px; font: 400 clamp(24px, 3vw, 40px)/1.15 var(--display); overflow-wrap: anywhere; }
.event-copy p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.event-copy .event-location { margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 500; }
.event-meta { margin-bottom: 20px; }
.event-meta:empty { display: none; }
.event-date { display: block; margin-bottom: 8px; color: var(--yellow); font-size: 13px; }
.event-copy .btn { margin-top: 4px; }
.event-showcase-foot { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.event-showcase-foot > p { color: var(--muted); font-size: 12px; margin: 0 0 0 auto; }
.event-dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 75%; }
.event-dot { display: grid; place-items: center; width: 25px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; }
.event-dot::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: #736487; transition: background .2s, width .2s; }
.event-dot.active::before { width: 23px; background: var(--yellow); }
.event-pause { padding: 8px 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font: 400 12px var(--body); cursor: pointer; }
.image-fallback { object-fit: contain !important; background: var(--bg2); }
.product-price { color: var(--yellow) !important; font-size: 22px; font-weight: 700; }
.pick.unavailable { opacity: .5; }
.pick.unavailable .pick-box { cursor: default; }
.stock-note { display: block; font-size: 11px; padding-top: 7px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; cursor: default; pointer-events: none; }
.order-result { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-result p { color: var(--muted); font-size: 14px; }
.order-result textarea { font-size: 13px; }
.site-preview-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 110; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; padding: 10px 18px; background: #ffd60a; color: #1a0e00; font: 500 12px/1.5 var(--body); }
.site-preview-banner a { font-weight: 700; text-underline-offset: 3px; }
.site-preview .nav { top: 65px; }
.admin-link { font-size: 13px; }
@media (max-width: 700px) {
  .event-slide { grid-template-columns: 1fr; }
  .event-photo { height: clamp(250px, 60vw, 350px); }
  .event-copy { padding: 25px; }
  .event-copy h4 { font-size: 27px; }
  .event-showcase-head { gap: 12px; }
  .event-showcase-head .h3 { font-size: 22px; }
  .event-arrow { width: 38px; height: 38px; }
  .event-arrows { gap: 6px; }
  .site-preview .nav { top: 100px; }
  .event-showcase-foot { flex-wrap: wrap; gap: 0 10px; }
}

/* ---------- order ---------- */
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0 0 30px; counter-reset: s; }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li > b { font: 400 34px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--yellow); min-width: 64px; }
.steps h3 { margin: 0 0 4px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }
.steps strong { color: var(--ink); }

.order-form h3 { font: 400 28px/1 var(--display); text-transform: uppercase; margin: 0 0 22px; }
.order-form fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form legend { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 10px; padding: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-box { display: block; padding: 18px; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; transition: transform .3s var(--ease), border-color .2s, background .2s; position: relative; }
.pick-box b { display: block; font: 400 17px/1.1 var(--display); text-transform: uppercase; }
.pick-box small { font-size: 22px; color: var(--muted); }
.pick-box::after { content: "+"; position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-weight: 700; transition: transform .3s var(--ease), background .2s; }
.pick:hover .pick-box { transform: translateY(-3px); }
.pick input:checked + .pick-box.c-red { border-color: var(--red); background: rgba(239,43,45,.15); }
.pick input:checked + .pick-box.c-purple { border-color: var(--purple); background: rgba(126,63,224,.18); }
.pick input:checked + .pick-box::after { content: "✓"; transform: rotate(360deg); background: var(--yellow); color: #1a0e00; }
.pick input:focus-visible + .pick-box { outline: 3px solid var(--yellow); outline-offset: 3px; }
.bundle-hint { margin: 0 0 14px; color: var(--yellow); font-weight: 500; animation: rise .5s var(--ease); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row, .order-form fieldset { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg);
  color: var(--ink); font: 400 16px/1.3 var(--body); transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.form-error { color: #ff8a8a; min-height: 1.4em; margin: 0 0 10px; font-size: 14px; }
.form-small { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-small a { color: var(--yellow); }
.events-cta { margin: -20px 0 50px; }
.book-grid { margin-top: clamp(70px, 10vw, 130px); scroll-margin-top: 100px; }
.booking-done { color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
.footer { padding-block: 80px 30px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-word { display: block; width: min(680px, 100%); margin: 0 auto 40px; text-decoration: none; }
.footer-word .brand-logo { width: 100%; transition: transform .5s var(--ease); }
.footer-word:hover .brand-logo { transform: rotate(-3deg) scale(1.03); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--yellow); }
.copy { margin: 30px 0 0; font-size: 13px; color: rgba(185,171,211,.6); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 99; max-width: calc(100% - 32px);
  padding: 14px 22px; border-radius: 99px; background: var(--yellow); color: #1a0e00; font-weight: 700;
  transform: translate(-50%, calc(100% + 40px)); transition: transform .5s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- motion polish ---------- */
/* headline words rise one by one (split in main.js) */
.js .h2.split { opacity: 1; transform: none; }
.h2.split .w {
  display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0s) + var(--i) * 70ms);
}
.h2.split.in .w { opacity: 1; transform: none; }

/* press feedback; matters most on touch, where tilt and magnetic are off */
.btn:active, .lcard:not(.open):active, .role-card:active, .pick-box:active, .reel:active, .runner:active { scale: .95; }

/* product photos drift against the scroll (no JS; skipped where unsupported) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .product-media img { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { translate: 0 32px; } to { translate: 0 -32px; } }
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; min-height: 100vh; }
  .js .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* play panels: fill equal-height grid cells */
.play-grid .panel { display: flex; flex-direction: column; }
.play-grid .liar-cards, .play-grid .role-stage { flex: 1; align-content: center; }
.product.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 860px) { .product, .product.flip { grid-template-columns: minmax(0, 1fr); } }
.score, .drag-hint { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 600px) {
  .score b { font-size: 48px; }
  .p1 { display: none; }
  .p2 { bottom: 2%; font-size: 70px; }
}
