/* Home: mashrabiya gate → cinematic Dubai night → Golden Key → Build the Burj → boarding pass → lifestyle → token → final */

/* ---------- the gate (first visit): two lattice doors slide apart */
.gate { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: block; }
.gate[hidden] { display: none; }
.gate-p { position: absolute; top: 0; bottom: 0; width: 50.5%; background-color: #070604; border: 0 solid #d9a94a; will-change: transform;
  transition: transform 1.35s cubic-bezier(.77, 0, .18, 1); box-shadow: inset 0 0 120px #000; }
.gate-p::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 50%, #f0c76618, transparent 60%); }
.gate-l { left: 0; border-right-width: 2px; }
.gate-r { right: 0; border-left-width: 2px; }
.gate-h { position: absolute; top: 50%; width: 10px; height: 120px; margin-top: -60px; border-radius: 6px; background: linear-gradient(90deg, #8f6a26, #ffe7a6, #8f6a26); box-shadow: 0 0 30px #f0c76680; }
.gate-l .gate-h { right: 22px; } .gate-r .gate-h { left: 22px; }
.gate-w { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 clamp(64px, 14vw, 170px)/1 'Kufi', serif; color: #f0c766;
  text-shadow: 0 0 60px #f0c76699; transition: opacity .5s ease, transform 1.3s var(--ease); }
.gate.open .gate-l { transform: translateX(-101%); }
.gate.open .gate-r { transform: translateX(101%); }
.gate.open .gate-w { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }

/* ---------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 110px 0 90px; }
.hero-bg, .hero-bg img, .hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-bg img { object-position: 60% 50%; animation: kenburns 30s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero-vid { z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.hero-vid.on { opacity: 1; }
.hero.vid .hero-bg img { animation: none; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, #050505f2 0%, #050505b8 32%, #05050522 62%, #05050500 80%),
  linear-gradient(0deg, #050505 0%, #05050500 28%), linear-gradient(180deg, #050505cc 0%, #05050500 22%); }
html[dir=rtl] .hero-shade { background: linear-gradient(270deg, #050505f2 0%, #050505b8 32%, #05050522 62%, #05050500 80%), linear-gradient(0deg, #050505 0%, #05050500 28%), linear-gradient(180deg, #050505cc 0%, #05050500 22%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 30px; }
.hero-txt { max-width: 640px; }
.hero h1 { font: 500 clamp(52px, 8.4vw, 118px)/.92 var(--disp); letter-spacing: -.035em; margin: 22px 0 14px; text-wrap: balance; }
.hero h1 em { padding-inline-end: .06em; font-weight: 600; }
html[dir=rtl] .hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.15; font-size: clamp(48px, 7.6vw, 104px); }
.hero-alt { font: 600 clamp(22px, 2.6vw, 30px)/1.3 'Kufi', var(--disp); color: var(--sand); opacity: .9; margin-bottom: 18px; }
.hero-alt .alt-en { display: none; font: italic 500 clamp(22px, 2.6vw, 30px)/1.3 'Bodoni', serif; }
html[dir=rtl] .hero-alt .alt-ar { display: none; } html[dir=rtl] .hero-alt .alt-en { display: inline; }
.hero .lede { font-size: clamp(16px, 1.5vw, 19px); color: #e4dccd; max-width: 540px; margin-bottom: 30px; }
.lede b { color: var(--gold); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.cta .arr { display: inline-block; transition: transform .3s var(--spring); }
.cta .btn:hover .arr { transform: translateX(4px); }
html[dir=rtl] .arr { transform: scaleX(-1); }
html[dir=rtl] .cta .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.ic { width: 20px; height: 20px; }
/* intro: hero text rises after the gate */
.up { opacity: 0; transform: translateY(24px); animation: up 1s var(--ease) forwards; }
.u1 { animation-delay: .25s; } .u2 { animation-delay: .38s; } .u3 { animation-delay: .52s; } .u4 { animation-delay: .66s; } .u5 { animation-delay: .8s; }
.gated .up { animation-delay: calc(var(--d, 0s) + 1.1s); }
.gated .u1 { --d: .25s; } .gated .u2 { --d: .38s; } .gated .u3 { --d: .52s; } .gated .u4 { --d: .66s; } .gated .u5 { --d: .8s; }
@keyframes up { to { opacity: 1; transform: none; } }

/* the 3D coin: two faces + a gold edge, slow flip, pointer tilt */
.coin3d { position: relative; justify-self: center; width: min(420px, 34vw); aspect-ratio: 1; perspective: 1100px; opacity: 0; animation: coinin 1.4s .4s var(--spring) forwards; }
.gated .coin3d { animation-delay: 1.4s; }
@keyframes coinin { from { opacity: 0; transform: translateY(40px) scale(.7); } to { opacity: 1; transform: none; } }
.coin-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.coin-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 9s cubic-bezier(.65, 0, .35, 1) infinite, bob 6s ease-in-out infinite; }
@keyframes spin { 0%, 38% { transform: rotateY(0); } 50%, 88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { transform: translateZ(7px); }
.face.back { transform: rotateY(180deg) translateZ(7px); }
.edge { position: absolute; inset: 1.5%; border-radius: 50%; background: radial-gradient(circle, #9b6f22 60%, #e8b956 92%, #7a5719); }
.e1 { transform: translateZ(5px); } .e2 { transform: translateZ(2.5px); } .e3 { transform: translateZ(0); } .e4 { transform: translateZ(-2.5px); } .e5 { transform: translateZ(-5px); }
.coin-glow { position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #f0c76659 0%, #f0c76614 40%, transparent 68%); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .55; transform: scale(.92); } }

/* gold dust: a few CSS particles (composited, no JS loop) */
.dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dust i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px #f0c766; opacity: 0;
  animation: rise var(--t) linear var(--dl) infinite; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: var(--o); } 85% { opacity: var(--o); } 100% { transform: translate3d(var(--x), -88vh, 0); opacity: 0; } }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line2); border-radius: 20px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- live strip */
.strip { position: relative; border-block: 1px solid var(--line); background: linear-gradient(90deg, #0b0907, #120e08 50%, #0b0907); overflow: hidden; padding: 16px 0; }
.strip::before, .strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.strip::before { left: 0; background: linear-gradient(90deg, #0b0907, transparent); } .strip::after { right: 0; background: linear-gradient(270deg, #0b0907, transparent); }
.strip-run { display: flex; width: max-content; gap: 30px; animation: marquee 50s linear infinite; font-size: 14px; color: var(--mut); white-space: nowrap; }
html[dir=rtl] .strip-run { animation-name: marquee-r; }
.strip-run span b { color: var(--ink); } .strip-run span em { font-style: normal; color: var(--gold); font-weight: 700; }
.strip-run i { color: var(--gold2); font-style: normal; font-size: 10px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-r { to { transform: translateX(50%); } }

/* ---------- sections */
section h2 { font: 500 clamp(38px, 5.4vw, 72px)/1 var(--disp); letter-spacing: -.03em; margin: 16px 0 18px; text-wrap: balance; }
html[dir=rtl] section h2 { font-weight: 700; letter-spacing: 0; line-height: 1.25; }
section .lede { color: var(--mut); font-size: 17px; max-width: 560px; }

/* ---------- Golden Key */
.keysec { overflow: hidden; overflow: clip; overflow-clip-margin: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(80px, 12vw, 150px) 0; }
.key-art { position: relative; perspective: 1000px; }
.rays { position: absolute; inset: -20%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 8%, #f0c76612 10% 12%, transparent 14% 24%, #f0c7660f 26% 28%, transparent 30% 40%, #f0c76612 42% 44%, transparent 46% 56%, #f0c7660f 58% 60%, transparent 62% 72%, #f0c76612 74% 76%, transparent 78% 88%, #f0c7660f 90% 92%, transparent 94%);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: rays 40s linear infinite; }
@keyframes rays { to { transform: rotate(360deg); } }
.nft { position: relative; width: min(460px, 100%); margin-inline: auto; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.nft-in { position: relative; border-radius: 26px; padding: 12px; background: linear-gradient(145deg, #3a2a10, #110c05 40%, #2a1e0b); border: 1px solid var(--line2);
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px #00000080, 0 0 70px -10px #f0c76640; overflow: hidden; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.nft-in img { border-radius: 18px; width: 100%; height: auto; }
.nft-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 8px 4px; font-size: 14px; }
.nft-cap b { font: 600 18px/1 var(--disp); color: var(--sand); } .nft-cap .mono { color: var(--gold); font-size: 12px; }
.nft-shine { position: absolute; inset: 0 auto 0 -70%; width: 45%; background: linear-gradient(100deg, transparent, #fff3c94d, transparent); transform: skewX(-18deg); animation: nftshine 6s 2s ease-in-out infinite; pointer-events: none; }
@keyframes nftshine { 0%, 60% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(520%) skewX(-18deg); } }
.feats { list-style: none; display: grid; gap: 12px; margin: 26px 0; }
.feats li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--sand); }
.feats i { color: var(--gold); font-style: normal; }
.kstats { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.kstats div { flex: 1 1 160px; padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.kstats dd { font: 600 34px/1.1 var(--disp); color: var(--gold); font-variant-numeric: tabular-nums; }
.kstats dt { font-size: 13px; color: var(--mut); order: 2; }
.kstats div { display: flex; flex-direction: column-reverse; }

/* ---------- game teaser */
.gamesec { position: relative; padding: clamp(70px, 10vw, 130px) 0; background: radial-gradient(70% 60% at 75% 50%, #19b37f14, transparent 70%), linear-gradient(180deg, #050505, #07100c 50%, #050505); border-block: 1px solid #19b37f1f; }
.game-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.steps3 { list-style: none; counter-reset: s; display: grid; gap: 14px; margin: 26px 0 32px; }
.steps3 li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; color: #d8cfbf; font-size: 17px; }
.steps3 li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #19b37f66; color: var(--emer); font: 700 14px/1 var(--text); transform: translateY(4px); }
.phone { justify-self: center; display: block; width: min(300px, 74vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #2b2b2b, #0d0d0d); box-shadow: 0 0 0 1px #3a3a3a, 0 50px 90px -30px #000, 0 0 80px -20px #19b37f55; }
.phone-scr { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #050507; }
.demo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.demo-tower { position: absolute; left: 0; right: 0; bottom: 9%; height: 70%; }
.fl { position: absolute; left: 50%; height: 7.6%; border-radius: 2px; transform: translate(-50%, -260%); opacity: 0;
  background: linear-gradient(90deg, #8f6a26, #f6d27a 30%, #fff1c2 46%, #d9a94a 70%, #8f6a26), repeating-linear-gradient(90deg, transparent 0 8px, #0000002e 8px 9px);
  background-blend-mode: multiply; box-shadow: inset 0 -2px 0 #00000055, inset 0 1px 0 #ffffff66; animation: drop 9s var(--ease) infinite; }
.f0 { width: 64%; } .f1 { width: 58%; } .f2 { width: 52%; } .f3 { width: 46%; } .f4 { width: 39%; } .f5 { width: 32%; } .f6 { width: 25%; } .f7 { width: 18%; }
.f0 { animation-delay: 0s; } .f1 { animation-delay: .45s; } .f2 { animation-delay: .9s; } .f3 { animation-delay: 1.35s; } .f4 { animation-delay: 1.8s; } .f5 { animation-delay: 2.25s; } .f6 { animation-delay: 2.7s; } .f7 { animation-delay: 3.15s; }
.f0 { top: calc(100% - 7.6%); } .f1 { top: calc(100% - 15.2%); } .f2 { top: calc(100% - 22.8%); } .f3 { top: calc(100% - 30.4%); } .f4 { top: calc(100% - 38%); } .f5 { top: calc(100% - 45.6%); } .f6 { top: calc(100% - 53.2%); } .f7 { top: calc(100% - 60.8%); }
@keyframes drop { 0% { opacity: 0; transform: translate(-50%, -300%); } 4% { opacity: 1; transform: translate(-50%, 0); } 5.5% { transform: translate(-50%, 6%); } 7% { transform: translate(-50%, 0); } 86% { opacity: 1; transform: translate(-50%, 0); } 94%, 100% { opacity: 0; transform: translate(-50%, 0); } }
.spire { position: absolute; left: 50%; top: calc(100% - 60.8% - 22%); width: 4%; height: 22%; margin-left: -2%; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(#fff6d6, #f0c766 40%, #8f6a26); opacity: 0; transform: scaleY(0); transform-origin: bottom; animation: spire 9s var(--ease) infinite; }
@keyframes spire { 0%, 40% { opacity: 0; transform: scaleY(0); } 46% { opacity: 1; transform: scaleY(1.08); } 49% { transform: scaleY(1); } 86% { opacity: 1; transform: scaleY(1); } 94%, 100% { opacity: 0; } }
.demo-m { position: absolute; top: 9%; left: 0; right: 0; text-align: center; color: var(--sand); font-size: 13px; opacity: 0; animation: dm 9s infinite; }
.demo-m b { display: block; font: 600 46px/1 var(--disp); color: var(--gold); }
@keyframes dm { 0%, 42% { opacity: 0; transform: scale(.8); } 48%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.demo-tap { position: absolute; left: 50%; bottom: 14%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 2px solid #ffffffb0; opacity: 0; animation: tapc .45s ease-out 8 both; animation-delay: .1s; }
@keyframes tapc { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.4); } }


/* ---------- casino teaser */
.cssec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(80px, 11vw, 140px) 0 20px; }
.cs-art { position: relative; height: 420px; }
.mini-wheel { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, #120d07 38%, transparent 38.5%), repeating-conic-gradient(#8e1b1f 0 9.73deg, #141414 9.73deg 19.46deg); border: 6px solid #b8862f; box-shadow: 0 0 80px -20px #f0c76666, inset 0 0 0 2px #d9a94a;
  animation: mw 30s linear infinite; opacity: .55; }
@keyframes mw { to { transform: rotate(360deg); } }
.fan { position: absolute; left: 50%; top: 50%; }
.pc { position: absolute; width: 120px; height: 172px; margin: -86px 0 0 -60px; border-radius: 12px; background: linear-gradient(160deg, #fffdf6, #efe6d2); color: #141414; box-shadow: 0 20px 40px -12px #000; transform-origin: 50% 120%; }
.pc.red { color: #b3262b; }
.pc b { position: absolute; top: 10px; left: 12px; font: 800 22px/1 var(--text); } .pc i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 54px; }
.c1 { transform: rotate(-16deg) translateX(-34px); animation: fan1 6s ease-in-out infinite; } .c2 { transform: rotate(0); animation: fan2 6s ease-in-out infinite; } .c3 { transform: rotate(16deg) translateX(34px); animation: fan3 6s ease-in-out infinite; }
@keyframes fan1 { 50% { transform: rotate(-20deg) translateX(-44px); } } @keyframes fan2 { 50% { transform: translateY(-10px); } } @keyframes fan3 { 50% { transform: rotate(20deg) translateX(44px); } }
.pchips { position: absolute; right: 12%; bottom: 8%; }
.pchips i { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, var(--cc) 52%, transparent 53%), repeating-conic-gradient(var(--cc) 0 30deg, #fff 30deg 45deg); box-shadow: 0 8px 16px -6px #000; }
.k1 { --cc: #b8862f; } .k2 { --cc: #b3262b; top: -12px; left: 8px; } .k3 { --cc: #0f8a5f; top: -24px; left: -4px; } .k4 { --cc: #1f5fbf; top: -36px; left: 6px; animation: chipb 3s ease-in-out infinite; }
@keyframes chipb { 50% { transform: translateY(-8px) rotate(20deg); } }
@media (max-width: 900px) { .cssec { grid-template-columns: 1fr; } .cs-art { height: 320px; } .mini-wheel { width: 260px; height: 260px; margin: -130px 0 0 -130px; } .pc { width: 92px; height: 132px; margin: -66px 0 0 -46px; } }

/* ---------- how (arches) */
.how { padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); text-align: center; }
.how .eyebrow { justify-content: center; }
.arches { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; }
.arch { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 70px 26px 34px; border-radius: 999px 999px 22px 22px / 320px 320px 22px 22px;
  background: linear-gradient(180deg, #1a140b, #0d0a06 70%); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.arch::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: url(/media/lattice.svg); background-size: 64px; opacity: .12; -webkit-mask: linear-gradient(#000, transparent 60%); mask: linear-gradient(#000, transparent 60%); }
.arch .an { font: italic 600 64px/1 var(--disp); background: var(--goldg); -webkit-background-clip: text; background-clip: text; color: transparent; }
.arch b { font: 600 24px/1.2 var(--disp); color: var(--ink); }
.arch > span:last-child { color: var(--mut); font-size: 15px; max-width: 260px; }

/* ---------- lifestyle */
.life { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 100px 0 80px; }
.life-bg, .life-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.life-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #050505 0%, #050505d0 30%, #05050540 65%, #050505 100%); }
@supports (animation-timeline: view()) {
  .life-bg img { animation: par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes par { from { transform: scale(1.18) translateY(-6%); } to { transform: scale(1.18) translateY(6%); } }
}

/* ---------- token */
.token { padding: clamp(70px, 10vw, 120px) 0; }
.tk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.tk div { padding: 24px 26px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tk div:nth-child(3n) { border-inline-end: 0; } .tk div:nth-last-child(-n+3) { border-bottom: 0; }
.tk dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
html[dir=rtl] .tk dt { letter-spacing: 0; font-size: 14px; }
.tk dd { font: 600 22px/1.3 var(--disp); color: var(--ink); word-break: break-word; }
.tk dd.mono { font: 500 15px/1.5 var(--mono); }
.tk dd a { color: var(--gold); }

/* ---------- final */
.final { position: relative; padding: clamp(90px, 12vw, 160px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; opacity: .12; -webkit-mask: radial-gradient(60% 70% at 50% 50%, #000, transparent); mask: radial-gradient(60% 70% at 50% 50%, #000, transparent); }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final .cta { justify-content: center; margin-top: 10px; }
.falcon { width: min(300px, 64vw); height: auto; margin-bottom: -10px; animation: fly 6s ease-in-out infinite; -webkit-mask: radial-gradient(closest-side, #000 72%, transparent); mask: radial-gradient(closest-side, #000 72%, transparent); }
@keyframes fly { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }

/* ---------- pop-ups (keys won / airdrops landed) */
.popwrap { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; pointer-events: none; }
html[dir=rtl] .popwrap { left: auto; right: 16px; }
.livepop { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #120e08f2; border: 1px solid var(--line2); font-size: 14px; color: var(--sand); box-shadow: 0 20px 40px -20px #000; animation: popin .5s var(--spring); }
.livepop.out { opacity: 0; transform: translateY(10px); transition: .4s; }
.livepop b { color: var(--ink); }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes popin { from { opacity: 0; transform: translateY(16px) scale(.96); } }

@media (max-width: 900px) {
  .hero { align-items: flex-end; padding: 96px 0 70px; }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .coin3d { position: absolute; top: 104px; right: 14px; width: 108px; z-index: -1; }
  html[dir=rtl] .coin3d { right: auto; left: 12px; }
  .hero-shade { background: linear-gradient(0deg, #050505 0%, #050505e6 38%, #05050566 62%, #05050500 78%), linear-gradient(180deg, #050505b0 0%, #05050500 18%) !important; }
  .keysec, .game-in { grid-template-columns: 1fr; }
  .key-art { order: -1; }
  .game-txt { order: 2; }
  .arches { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .tk { grid-template-columns: 1fr 1fr; }
  .tk div:nth-child(3n) { border-inline-end: 1px solid var(--line); } .tk div:nth-child(2n) { border-inline-end: 0; }
  .tk div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .tk div:nth-last-child(-n+2) { border-bottom: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(46px, 13.5vw, 64px); }
  html[dir=rtl] .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .cta .btn { flex: 1 1 100%; }
  .tk { grid-template-columns: 1fr; }
  .tk div { border-inline-end: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .tk div:last-child { border-bottom: 0 !important; }
  .kstats dd { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate { display: none !important; }
  .up, .coin3d { opacity: 1; transform: none; animation: none; }
}
