#app-tabbar { display: none; }
.app-edge { display: none; }

/* Games page: compact hero, no duplicate heading, so the leaderboard sits right under the title */
.section-page[data-page="games"] .sp-intro { min-height: 230px; padding-top: 76px; padding-bottom: 28px; }
.section-page[data-page="games"] #games { padding-top: 1.5rem; border-top: 0; }
.section-page[data-page="games"] #games > div > .reveal.max-w-2xl { display: none; }

/* Hero canvas backgrounds */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .95; }
.sp-intro::before { z-index: -2; }
.sp-intro h1 { background: linear-gradient(100deg, #fff 30%, #b8ff1f 48%, #19d3ff 52%, #fff 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: hero-shine 6s ease-in-out 1.2s infinite; filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); }
@keyframes hero-shine { 0%,40% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.sp-eyebrow { letter-spacing: .32em; animation: hero-eyebrow 1s cubic-bezier(.2,.8,.2,1) .15s both; }
@keyframes hero-eyebrow { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .32em; } }
.sp-intro::after { background-image: linear-gradient(rgba(184,255,31,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(184,255,31,.05) 1px, transparent 1px); }
.pc-hero { position: relative; isolation: isolate; overflow: hidden; margin: 1.5rem 0 1rem; padding: 2.2rem 1.4rem 1.6rem; min-height: 190px; border-radius: 1.2rem; border: 1px solid rgba(184,255,31,.2); background: rgba(10,12,10,.6); display: flex; flex-direction: column; justify-content: center; }
.pc-hero #pc-title { margin-top: 0; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.pc-hero #pc-sub { margin-bottom: 0; max-width: 40rem; }

/* Scroll-in: depth rise with a neon edge wipe */
.section-page .sp-content .sp-reveal { transform: translate3d(0,34px,0) scale(.97) !important; transform-origin: 50% 100%; clip-path: inset(0 0 12% 0 round 14px); transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1), clip-path .8s cubic-bezier(.16,1,.3,1) !important; }
.section-page .sp-content .sp-reveal.sp-visible { transform: none !important; clip-path: inset(-20px -20px -20px -20px round 14px); }
@media (prefers-reduced-motion: reduce) { .hero-canvas { display: none; } .sp-intro h1 { animation: none; } .section-page .sp-content .sp-reveal { transform: none !important; clip-path: none; } }

/* Leaderboard: top-of-page podium list */
.lb-box { margin: 0 0 2rem; padding: 1.25rem 1.25rem 1rem; border-radius: 1.1rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(184,255,31,.09), rgba(255,255,255,.03) 55%, rgba(0,229,255,.06));
  border: 1px solid rgba(184,255,31,.25); box-shadow: 0 0 36px rgba(184,255,31,.07); }
.lb-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translate3d(-120%,0,0);
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%); animation: lb-sheen 5s ease-in-out 1s infinite; }
@keyframes lb-sheen { 0%,60% { transform: translate3d(-120%,0,0); } 100% { transform: translate3d(120%,0,0); } }
.lb-list { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.lb-list li::before { content: none !important; }
.lb-row { position: relative; display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: .8rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); overflow: hidden;
  opacity: 0; transform: translate3d(0,14px,0); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.lb-row.in { opacity: 1; transform: none; }
.lb-row em { font-style: normal; font-weight: 800; text-align: center; color: #9ca3af; }
.lb-row span { z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row b { z-index: 1; color: #bef264; font-variant-numeric: tabular-nums; }
.lb-row i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #b8ff1f, #00e5ff); box-shadow: 0 0 10px rgba(184,255,31,.6); transition: width 1s cubic-bezier(.2,.8,.2,1) .25s; }
.lb-row.in i { width: var(--w); }
.lb-top1 { background: rgba(255,200,40,.1); border-color: rgba(255,200,40,.35); }
.lb-top1 em, .lb-top2 em, .lb-top3 em { font-size: 1.25rem; }
.lb-top2 { border-color: rgba(200,210,225,.28); }
.lb-top3 { border-color: rgba(214,140,80,.3); }
.lb-skel { height: 2.6rem; border-radius: .8rem; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: lb-skel 1.1s linear infinite; }
@keyframes lb-skel { to { background-position: -200% 0; } }
.lb-empty { padding: .8rem; color: #9ca3af; text-align: center; }

/* Shop toolbar */
.pc-toolbar { display: grid; gap: .7rem; margin: 0 0 1.2rem; }
.pc-chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.pc-chips::-webkit-scrollbar { display: none; }
.pc-chip { flex: 0 0 auto; padding: .45rem .95rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #cbd5e1; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.pc-chip:active { transform: scale(.95); }
.pc-chip[aria-pressed="true"] { color: #0a0c0a; background: #b8ff1f; border-color: #b8ff1f; box-shadow: 0 0 16px rgba(184,255,31,.35); }
.pc-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pc-search, .pc-sort { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #e5e7eb; border-radius: .7rem; padding: .55rem .8rem; font-size: .85rem; min-width: 0; }
.pc-search { flex: 1 1 180px; }
.pc-search:focus, .pc-sort:focus { outline: none; border-color: #b8ff1f; box-shadow: 0 0 0 3px rgba(184,255,31,.15); }
.pc-sort option { background: #121412; }
.pc-count { font-size: .75rem; color: #9ca3af; margin-left: auto; }
#pc-grid .pc-card { animation: pc-pop .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pc-pop { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }

@keyframes app-in-next { from { opacity: 0; transform: translateX(38px); } to { opacity: 1; transform: none; } }
@keyframes app-in-prev { from { opacity: 0; transform: translateX(-38px); } to { opacity: 1; transform: none; } }
.app-enter-next body > main, .app-enter-next body > #top, .app-enter-next body > .page-shell { animation: app-in-next .5s cubic-bezier(.2,.8,.2,1) both; }
.app-enter-prev body > main, .app-enter-prev body > #top, .app-enter-prev body > .page-shell { animation: app-in-prev .5s cubic-bezier(.2,.8,.2,1) both; }

@media (max-width: 820px) {
  body.has-app-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* Keep the cookie banner above the tab bar so it never covers the Games/Shop/etc. tabs. */
  body.has-app-nav #l3on-consent-dialog { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  #app-tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
    display: flex; justify-content: flex-start; gap: 2px; padding: 6px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; scroll-snap-type: x proximity; touch-action: pan-x;
    border: 1px solid rgba(184,255,31,.28); border-radius: 20px;
    background: rgba(14,16,14,.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 0 22px rgba(184,255,31,.08);
    animation: app-in-prev .5s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom;
  }
  #app-tabbar a {
    flex: 1 0 64px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px;
    border-radius: 14px; color: #9ca3af; text-decoration: none; font: 600 10px/1.1 'Inter', sans-serif; letter-spacing: .02em;
    transition: color .25s, background .25s, transform .2s; -webkit-tap-highlight-color: transparent;
  }
  #app-tabbar::-webkit-scrollbar { display: none; }
  #app-tabbar a i { font-style: normal; font-size: 18px; line-height: 1; }
  #app-tabbar a:active { transform: scale(.92); }
  #app-tabbar a[aria-current="page"] { color: #b8ff1f; background: rgba(184,255,31,.12); text-shadow: 0 0 12px rgba(184,255,31,.5); }
}

@media (min-width: 821px) and (hover: hover) {
  .app-edge {
    position: fixed; top: 50%; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    transform: translateY(-50%); color: #e5e7eb; text-decoration: none; font: 600 12px 'JetBrains Mono', monospace; letter-spacing: .12em; text-transform: uppercase;
    border: 1px solid rgba(184,255,31,.25); background: rgba(14,16,14,.7); backdrop-filter: blur(10px);
    opacity: .5; transition: opacity .25s, border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
  }
  .app-edge b { color: #b8ff1f; font-size: 22px; line-height: 1; }
  .app-edge span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s ease, opacity .25s; }
  .app-edge:hover, .app-edge:focus-visible { opacity: 1; border-color: #b8ff1f; box-shadow: 0 0 24px rgba(184,255,31,.25); }
  .app-edge:hover span, .app-edge:focus-visible span { max-width: 140px; opacity: 1; }
  .app-edge-prev { left: 0; border-left: 0; border-radius: 0 14px 14px 0; }
  .app-edge-next { right: 0; flex-direction: row-reverse; border-right: 0; border-radius: 14px 0 0 14px; }
}

/* Music bubble with mini visualizer */
.sm-fab, .md-fab { position: fixed; left: 16px; bottom: 16px; z-index: 95; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 14px 0; background: rgba(8,12,20,.9); border: 1px solid rgba(25,211,255,.5); box-shadow: 0 0 14px rgba(25,211,255,.35); backdrop-filter: blur(10px); cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .25s; animation: sm-pop .6s cubic-bezier(.2,.8,.2,1) both; }
.sm-fab[hidden] { display: none; }
.sm-fab:active, .md-fab:active { transform: scale(.9); }
.sm-fab i { display: block; width: 3px; height: 18px; border-radius: 2px; background: #b8ff1f; box-shadow: 0 0 6px #b8ff1f; transform: scaleY(.33); transform-origin: bottom; transition: transform .3s; }
.sm-fab.on { border-color: #b8ff1f; box-shadow: 0 0 20px rgba(184,255,31,.6); }
.sm-fab.on::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(184,255,31,.45); animation: sm-ring 1.8s ease-out infinite; }
.sm-fab.on i { animation: md-eq .9s ease-in-out infinite; }
.sm-fab.on i:nth-child(2) { animation-delay: .2s; } .sm-fab.on i:nth-child(3) { animation-delay: .4s; } .sm-fab.on i:nth-child(4) { animation-delay: .1s; }
@keyframes md-eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes sm-ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes sm-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) { body.has-app-nav .sm-fab, body.has-app-nav .md-fab { bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* Premium page transition and scroll polish */
html { scroll-behavior: smooth; }
::view-transition-old(site-page) { animation: px-out .26s cubic-bezier(.4,0,.6,1) both; }
::view-transition-new(site-page) { animation: px-in .6s cubic-bezier(.16,1,.3,1) both; }
@keyframes px-out { to { opacity: 0; transform: translate3d(0,-8px,0); } }
@keyframes px-in { from { opacity: 0; transform: translate3d(0,18px,0); } to { opacity: 1; transform: none; } }
/* Smoother scroll reveals: no blur filters, GPU-friendly transform and opacity only */
.section-page .sp-content .sp-reveal { filter: none !important; transform: translate3d(0,26px,0); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.section-page .sp-content .sp-reveal.sp-visible { transform: none; }
.section-page .sp-content > section.sp-scene, .section-page .sp-content > footer.sp-scene { filter: none !important; }html, body { background-color: #0a0c0a; overscroll-behavior-y: none; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #2b3a12 #0a0c0a; }
.px-item { opacity: 0; transform: translate3d(0, 28px, 0); filter: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: var(--px-d, 0ms); will-change: opacity, transform; backface-visibility: hidden; }
.px-item.px-in { opacity: 1; transform: none; will-change: auto; }
.sp-intro-inner { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .px-item { opacity: 1; transform: none; filter: none; transition: none; }
  .sm-fab, .md-fab, .sm-fab.on::before { animation: none; }
  
  #app-tabbar, .app-enter-next body > *, .app-enter-prev body > * { animation: none !important; }
}

/* Promoted video strip + packages search */
.pc-search-quote { display: block; width: 100%; max-width: 420px; margin: 0 0 1rem; }
.pc-promo { margin: 0 0 1.4rem; }
.pc-promo[hidden] { display: none; }
.pc-promo-title { font-family: 'Orbitron', system-ui, sans-serif; font-size: 1rem; letter-spacing: .06em; margin: 0 0 .6rem; color: #b8ff1f; }
.pc-promo-track { display: flex; gap: .8rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .3rem; }
.pc-promo-track::-webkit-scrollbar { display: none; }
.pc-promo-card { flex: 0 0 auto; height: clamp(230px, 62vw, 320px); max-width: 88vw; position: relative; border-radius: .9rem; overflow: hidden; border: 1px solid rgba(184,255,31,.25); background: #0b0f14; color: #fff; text-decoration: none; aspect-ratio: var(--r, 9 / 13); }
.pc-promo-card video { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; background: #000; }
.pc-promo-info { position: absolute; inset: auto 0 0 0; padding: .7rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); display: flex; flex-direction: column; gap: .1rem; }
.pc-promo-info strong { font-size: .9rem; line-height: 1.2; }
.pc-promo-info span { color: #b8ff1f; font-weight: 700; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .pc-promo-track { scroll-behavior: auto; } }
/* Smoothness pass: cheaper effects so swiping and scrolling hold 60fps */
.section-page .sp-content .sp-reveal { clip-path: none !important; transition: opacity .5s ease-out, transform .55s cubic-bezier(.2,.8,.2,1) !important; will-change: opacity, transform; }
.section-page .sp-content .sp-reveal.sp-visible { will-change: auto; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-title-enter { from { opacity: 0; transform: translate3d(0,18px,0); } to { opacity: 1; transform: none; } }
.sp-intro h1 { filter: none; animation-iteration-count: 2; }
.app-enter-next body > main, .app-enter-prev body > main, .app-enter-next body > #top, .app-enter-prev body > #top, .app-enter-next body > .page-shell, .app-enter-prev body > .page-shell { animation-duration: .35s; will-change: transform, opacity; }
.sp-nav, #app-tabbar, .app-edge { backface-visibility: hidden; transform: translateZ(0); }
@media (max-width: 820px), (pointer: coarse) {
  header.glass, .sp-nav, #app-tabbar, .app-edge, .btn-ghost, .sm-fab, .md-fab { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .sp-nav { background: rgba(14,16,14,.96) !important; }
  #app-tabbar { background: rgba(14,16,14,.97) !important; }
  .section-page .sp-intro::before, .home-hub::before { animation: none !important; }
  .sp-content .service-card:hover, .sp-content .gm-card:hover, .sp-content .pf-item:hover, .sp-content .pc-card:hover, .pt-card:hover { transform: none; box-shadow: none; }
  .sp-intro h1 { animation: none; }
}

/* Blur-dissolve page entry */
@keyframes app-in-next { from { opacity: 0; transform: scale(.97); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes app-in-prev { from { opacity: 0; transform: scale(1.03); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
.app-enter-next body > main, .app-enter-prev body > main, .app-enter-next body > #top, .app-enter-prev body > #top, .app-enter-next body > .page-shell, .app-enter-prev body > .page-shell { animation-duration: .55s; animation-timing-function: cubic-bezier(.22,.8,.3,1); }
/* Match the home look: near-black base, faint lime/blue glow, subtle grid */
.section-page .sp-intro { background: #0a0c0a; }
.section-page .sp-intro::before {
  background:
    radial-gradient(ellipse at 14% 78%, rgba(184,255,31,.07), transparent 42%),
    radial-gradient(ellipse at 88% 70%, rgba(61,107,255,.09), transparent 44%) !important;
}
.section-page .sp-intro::after {
  opacity: .5;
  background-image: linear-gradient(rgba(184,255,31,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(184,255,31,.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.section-page .hero-canvas { opacity: .3; }
.section-page .sp-content > section::before { opacity: .06; }
.section-page .sp-intro { border-bottom: 1px solid rgba(255,255,255,.05); }
/* Same near-black grid + glow backdrop on every page (static, cheap on phones) */
html, body.section-page, body[data-mode] { background-color: #0a0c0a !important; }
body.section-page, body[data-mode] {
  background-image:
    radial-gradient(ellipse 60% 40% at 14% 12%, rgba(184,255,31,.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 88% 55%, rgba(61,107,255,.07), transparent 70%),
    linear-gradient(rgba(184,255,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,255,31,.035) 1px, transparent 1px) !important;
  background-size: auto, auto, 58px 58px, 58px 58px !important;
  background-attachment: scroll !important;
}
.section-page .sp-content > section, .section-page .sp-content { background-color: transparent; }
@media (max-width: 820px), (pointer: coarse) {
  .section-page .hero-canvas { display: none; }
  .section-page .sp-intro::before, .section-page .sp-intro::after { animation: none !important; }
}
.lb-champ{display:flex;align-items:center;gap:10px;padding:12px 14px;margin-bottom:8px;border:1px solid rgba(184,255,31,.45);border-radius:12px;background:linear-gradient(90deg,rgba(184,255,31,.14),rgba(61,107,255,.08));list-style:none;font-weight:700}
.lb-champ em{font-style:normal;font-size:1.3rem}.lb-champ span{flex:1;color:#f4f7ee}.lb-champ b{color:#b8ff1f;font-family:'JetBrains Mono',monospace}
.qa-row{display:flex;flex-wrap:wrap;gap:8px}.qa-chip{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:999px;border:1px solid rgba(184,255,31,.35);background:rgba(184,255,31,.06);color:#e5e7eb;font-size:13px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s}.qa-chip:first-child{background:#b8ff1f;color:#0a0c0a;border-color:#b8ff1f}.qa-chip:hover{background:rgba(184,255,31,.18)}.qa-chip:first-child:hover{background:#d4ff5a}@media(max-width:480px){.qa-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-16px;padding-right:16px}.qa-row::-webkit-scrollbar{display:none}.qa-chip{white-space:nowrap;flex:0 0 auto}}
