/* ==========================================================================
   JaleTweaks – motion + polish layer (loaded after app.css / jale-theme.css)
   Everything bouncy lives here. Springs are plain cubic-beziers with overshoot.
   ========================================================================== */

:root {
  --spring:      cubic-bezier(.34, 1.56, .64, 1);   /* strong overshoot – pops, jumps   */
  --spring-soft: cubic-bezier(.22, 1.28, .36, 1);   /* gentle overshoot – bars, panels  */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);       /* silky deceleration               */
  --violet:      #8a2be2;
  --violet-hi:   #b583f2;
}

html.jale-smooth { scroll-behavior: auto !important; }
body { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
a, button { touch-action: manipulation; }
[data-count] { font-variant-numeric: tabular-nums; }

/* ---- scroll progress -------------------------------------------------- */
#jale-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #8a2be2, #c58bf7 60%, #ff8ae8);
  box-shadow: 0 0 14px rgba(181, 131, 242, .9);
}

/* ---- header ----------------------------------------------------------- */
#main-navbar { padding-top: env(safe-area-inset-top, 0px); transition: background-color .4s, box-shadow .4s, transform .6s var(--ease-out); }
#main-navbar.jale-scrolled { background: rgba(6, 5, 6, .92); box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .85); }
.js #main-navbar { animation: jale-drop .9s var(--spring) both; }


/* ---- logo ------------------------------------------------------------- */
.jale-logo-wrap { display: block; line-height: 0; }
.jale-logo {
  display: block; width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(157, 85, 236, .7));
  animation: jale-hop 6s var(--ease-out) 1.6s infinite;
  transition: rotate .7s var(--spring), scale .7s var(--spring);
  will-change: transform;
}
.jale-logo--footer { width: 52px; height: 52px; animation: none; }
@media (hover: hover) {
  #navbar-brand-logo:hover .jale-logo { rotate: -14deg; scale: 1.16; }
}

/* ---- buttons ---------------------------------------------------------- */
.jale-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .95rem 1.7rem; border-radius: .95rem; white-space: nowrap;
  font-weight: 900; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.jale-btn svg { width: 1rem; height: 1rem; flex: none; transition: translate .4s var(--spring); }
.jale-btn img { width: 18px; height: 18px; object-fit: contain; }
.jale-btn--primary {
  background: linear-gradient(135deg, #a251f3, #8a2be2 55%, #7322c0);
  box-shadow: 0 12px 30px rgba(138, 43, 226, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.jale-btn--ghost { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); }
.jale-btn--primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
}
.jale-pop { transition: transform .45s var(--spring), box-shadow .35s ease, background-color .25s, border-color .25s; will-change: transform; }
.jale-pop:active { transform: scale(.93) !important; transition-duration: .12s; }
@media (hover: hover) {
  .jale-pop:hover { transform: translateY(-4px) scale(1.045); }
  .jale-btn--primary:hover { box-shadow: 0 18px 44px rgba(157, 85, 236, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
  .jale-btn--primary:hover::after { transform: translateX(130%) skewX(-22deg); transition: transform .8s ease; }
  .jale-btn:hover svg { translate: 4px 0; }
  .jale-btn--ghost:hover { border-color: rgba(181, 131, 242, .55); background: rgba(138, 43, 226, .12); }
}
[data-buy] { position: relative; overflow: hidden; }

/* ---- hero entrance ---------------------------------------------------- */
.js .jale-hero-copy > * { animation: jale-rise .95s var(--spring) both; animation-delay: calc(var(--n, 0) * 95ms + 220ms); }
.jale-hero-copy > :nth-child(1) { --n: 0; } .jale-hero-copy > :nth-child(2) { --n: 1; }
.jale-hero-copy > :nth-child(3) { --n: 4; } .jale-hero-copy > :nth-child(4) { --n: 5; }
.jale-hero-copy > :nth-child(5) { --n: 6; } .jale-hero-copy > :nth-child(6) { --n: 7; }
.js .jale-hero-copy > h1 { animation: none; }
.jw { display: inline-block; }
.js .jw { animation: jale-word 1s var(--spring) both; animation-delay: calc(var(--i) * 115ms + 300ms); }
.js .jale-bob { animation: jale-rise-right 1.1s var(--spring) both, jale-bob 6.5s ease-in-out 1.4s infinite; }
.js .jale-bob:nth-child(2) { animation-delay: .35s, 2.1s; }
.jale-hero-cta .jale-btn { flex: 0 1 auto; }


/* ---- scroll reveal (classes added by jale-fx.js, removed again when done) */
.js .jr { opacity: 0; transform: translate3d(0, 46px, 0) scale(.93); will-change: transform, opacity; }
.js .jr.jr-pop { transform: scale(.7); }
.js .jr.jr-left { transform: translate3d(-56px, 0, 0) scale(.96); }
.js .jr.jr-right { transform: translate3d(56px, 0, 0) scale(.96); }
.js .jr.in {
  opacity: 1; transform: none;
  transition: opacity .6s ease calc(var(--d, 0) * 1ms), transform 1.1s var(--spring) calc(var(--d, 0) * 1ms);
}

/* ---- cards ------------------------------------------------------------ */
.jale-card {
  transition: translate .6s var(--spring), scale .6s var(--spring), border-color .3s ease, box-shadow .45s ease, background-color .3s;
}
@media (hover: hover) {
  .jale-card:hover { translate: 0 -9px; scale: 1.012; box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(138, 43, 226, .22); border-color: rgba(181, 131, 242, .55); }
  .jale-lift:hover { translate: 0 -.9rem; scale: 1.02; }
}
.jale-card:active { scale: .985; transition-duration: .15s; }

.jale-plan-desc { font-size: 13px !important; line-height: 1.6 !important; }
.jale-feats { display: flex; flex-direction: column; gap: .72rem; }
.jale-feat { display: flex; align-items: flex-start; gap: .7rem; font-size: 13px; line-height: 1.35; color: #e6e0f2; }
.jale-feat > div { margin-top: 1px; }
.jale-feat > div svg { width: 12px; height: 12px; }
@media (hover: hover) { .jale-card:hover .jale-feat > div { background: rgba(138, 43, 226, .35); } }

.jale-badge-jump { display: inline-flex; animation: jale-jump 2.6s var(--ease-out) infinite; box-shadow: 0 0 18px rgba(197, 139, 247, .7); }

/* number "pop" once a counter lands */
.jale-numpop { display: inline-block; animation: jale-numpop .75s var(--spring); }

/* progress bars overshoot a little before settling */
[data-bar] { transition: width 1.7s var(--spring-soft) !important; }

/* ---- FAQ / menu / toast springs --------------------------------------- */
.jale-faq-answer { transition: grid-template-rows .6s var(--spring-soft) !important; }
.jale-faq-chev { transition: transform .6s var(--spring), color .2s !important; }
.jale-faq-item { transition: background-color .3s, border-color .3s, box-shadow .4s, translate .5s var(--spring); }
@media (hover: hover) { .jale-faq-item:hover { translate: 6px 0; } }
#mobile-menu { transition: opacity .35s ease, translate .65s var(--spring) !important; }
.jale-mm-link { opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .6s var(--spring); }
#mobile-menu.is-open .jale-mm-link { opacity: 1; transform: none; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(1) { transition-delay: .06s; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(2) { transition-delay: .10s; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(3) { transition-delay: .14s; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(4) { transition-delay: .18s; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(5) { transition-delay: .22s; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(6) { transition-delay: .26s; }
#mobile-menu.is-open .jale-mm-link:nth-of-type(7) { transition-delay: .30s; }
#jale-toast { transition: opacity .3s, transform .6s var(--spring) !important; }

/* ==========================================================================
   NEWS-STYLE GAME TICKER
   ========================================================================== */
.jale-ticker-holder { margin: 0 0 1.5rem; }
.jale-ticker {
  position: relative; display: flex; align-items: stretch;
  border: 1px solid rgba(157, 85, 236, .3); border-radius: 1rem; overflow: hidden;
  background: linear-gradient(90deg, rgba(138, 43, 226, .16), rgba(12, 8, 20, .9) 22%, rgba(12, 8, 20, .9) 78%, rgba(138, 43, 226, .16));
  box-shadow: inset 0 0 40px rgba(138, 43, 226, .12), 0 0 40px rgba(138, 43, 226, .1);
}
.jale-ticker__label {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: .55rem;
  padding: 0 1.9rem 0 1.15rem; color: #fff;
  font: 800 11px/1 var(--font-sans, system-ui), sans-serif; letter-spacing: .16em; white-space: nowrap;
  background: linear-gradient(135deg, #9d4cf0, #7322c0);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: 8px 0 30px rgba(138, 43, 226, .45);
}
.jale-ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: jale-blink 1.3s ease-in-out infinite; }
.jale-ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.jale-ticker__track { display: flex; width: max-content; animation: jale-marquee var(--ticker-dur, 42s) linear infinite; will-change: transform; }
.jale-ticker__group { display: flex; gap: 14px; margin: 0; padding: 12px 14px 12px 14px; list-style: none; }
@media (hover: hover) { .jale-ticker:hover .jale-ticker__track { animation-play-state: paused; } }

.jale-tile {
  display: flex; align-items: center; gap: .75rem; flex: none; padding: .6rem 1rem .6rem .65rem; border-radius: .85rem;
  border: 1px solid rgba(157, 85, 236, .28);
  background: linear-gradient(180deg, rgba(138, 43, 226, .16), rgba(15, 11, 22, .92));
  transition: translate .5s var(--spring), border-color .3s, box-shadow .3s;
}
.jale-tile__ico {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: .6rem;
  background: rgba(138, 43, 226, .2); border: 1px solid rgba(181, 131, 242, .38);
  box-shadow: 0 0 14px rgba(138, 43, 226, .25) inset;
}
.jale-tile__ico img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(181, 131, 242, .55)); }
.jale-tile__txt { display: flex; flex-direction: column; gap: .22rem; text-align: left; }
.jale-tile__txt b { font: 700 12px/1.1 var(--font-sans, system-ui), sans-serif; color: #fff; white-space: nowrap; }
.jale-tile__txt i {
  font: 600 9px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal;
  letter-spacing: .08em; text-transform: uppercase; color: #b9a6d8; white-space: nowrap;
}
@media (hover: hover) { .jale-tile:hover { translate: 0 -4px; border-color: rgba(197, 139, 247, .65); box-shadow: 0 10px 26px rgba(138, 43, 226, .3); } }

/* game picker tiles go purple too */
.jale-game .jale-game__ico, .jale-game [class*="bg-black/40"] {
  background: rgba(138, 43, 226, .16) !important; border-color: rgba(181, 131, 242, .35) !important;
}
.jale-game img { filter: drop-shadow(0 0 6px rgba(181, 131, 242, .5)); }

/* ==========================================================================
   Bottom CTA
   ========================================================================== */
.jale-cta-card { position: relative; overflow: hidden; }
.jale-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.jale-cta__copy { flex: 1 1 320px; min-width: 0; }
.jale-cta h4 { font-size: clamp(1.2rem, 3.4vw, 1.6rem); font-weight: 900; letter-spacing: -.02em; color: #fff; margin: 0 0 .4rem; }
.jale-cta p { font-size: .9rem; line-height: 1.6; color: #a79fb8; margin: 0 0 .9rem; max-width: 40rem; }
.jale-cta__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.jale-cta__chips span {
  font-size: 11px; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; color: #d8c4fa;
  background: rgba(138, 43, 226, .14); border: 1px solid rgba(181, 131, 242, .3);
}

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes jale-rise       { from { opacity: 0; transform: translate3d(0, 44px, 0) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes jale-rise-right { from { opacity: 0; transform: translate3d(50px, 20px, 0) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes jale-word       { from { opacity: 0; transform: translate3d(0, .7em, 0) rotate(5deg) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes jale-drop       { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes jale-bob        { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes jale-drift      { from { translate: 0 0; } to { translate: -40px 34px; } }
@keyframes jale-glow       { 0%, 100% { filter: drop-shadow(0 0 6px rgba(157, 85, 236, .55)); } 50% { filter: drop-shadow(0 0 15px rgba(197, 139, 247, .95)); } }
@keyframes jale-hop        { 0%, 55%, 100% { transform: none; } 62% { transform: translateY(-9px) scale(1.05, .96); } 70% { transform: translateY(0) scale(.96, 1.05); } 76% { transform: translateY(-4px); } 82% { transform: none; } }
@keyframes jale-jump       { 0%, 50%, 100% { transform: translateY(0); } 58% { transform: translateY(-9px) scale(1.06); } 66% { transform: translateY(0) scale(.97); } 72% { transform: translateY(-4px); } 80% { transform: translateY(0); } }
@keyframes jale-numpop     { 0% { transform: scale(1); } 38% { transform: scale(1.2); } 68% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes jale-sheen      { 0%, 60% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(140%) skewX(-20deg); } }
@keyframes jale-blink      { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes jale-marquee    { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   MOBILE – phones first
   ========================================================================== */
@media (max-width: 1023px) {
  section[id], div[id="home"] { scroll-margin-top: 108px; }
}

@media (max-width: 639px) {
  /* tighter vertical rhythm: the page was ~20k px tall on a phone */
  section.py-24, #games.py-24 { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; }
  #home { padding-top: 8.2rem !important; }
  #home h1 { font-size: clamp(2.7rem, 13.4vw, 3.5rem) !important; line-height: .95 !important; }
  #home h2 { font-size: 1.05rem !important; }
  #home .jale-hero-copy p { font-size: .98rem !important; margin-bottom: 1.4rem !important; }
  .jale-hero-cta { display: grid !important; grid-template-columns: 1fr; width: 100%; gap: .7rem !important; }
  .jale-hero-cta .jale-btn { width: 100%; }
  #home .flex.flex-wrap.items-center.gap-5 { gap: .55rem 1rem !important; font-size: 11.5px; }
  #home [class*="max-w-[315px]"] { max-width: 100% !important; }
  #home [class*="max-w-[315px]"] > div { padding: 1rem !important; }
  #home .mt-16 { margin-top: 2.25rem !important; padding-top: 1.5rem !important; }

  h2.text-3xl, h2[class*="sm:text-5xl"] { font-size: 1.85rem !important; line-height: 1.08 !important; }
  .max-w-3xl.mx-auto p { font-size: .95rem !important; }

  /* pricing */
  .jale-plans { gap: 2rem; }
  .jale-card .p-6 { padding: 1.35rem !important; }
  .jale-plan-desc { font-size: 13px !important; }
  .jale-feat { font-size: 13.5px; }
  [data-buy] { min-height: 54px; font-size: .85rem !important; }

  /* capability cards: 2-up compact grid instead of 9 tall cards */
  #why-us .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem !important; }
  #why-us .jale-card { padding: 1rem !important; }
  #why-us .jale-card h3 { font-size: .92rem !important; }
  #why-us .jale-card p { font-size: .75rem !important; line-height: 1.45 !important; }
  #why-us .jale-card [class*="tracking-widest"], #why-us .jale-card .mt-auto { display: none; }

  /* games picker: 3 compact tiles per row */
  .jale-picker { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: .55rem !important; }
  .jale-picker button.jale-game { padding: .6rem .35rem !important; }
  .jale-picker button.jale-game span { font-size: 10px !important; line-height: 1.2 !important; }
  .jale-picker button .absolute { font-size: 8px !important; padding: .12rem .5rem !important; line-height: 1.2 !important; }
  .jale-picker .w-12 { width: 2.5rem !important; height: 2.5rem !important; }

  /* ticker */
  .jale-ticker-holder { margin-bottom: 1.1rem; }
  .jale-ticker__label { padding: 0 1.5rem 0 .85rem; font-size: 9.5px; letter-spacing: .12em; }
  .jale-tile { padding: .5rem .85rem .5rem .55rem; }

  /* dashboard demo */
  #dashboard-preview .overflow-x-auto { -webkit-overflow-scrolling: touch; }

  .jale-cta { flex-direction: column; align-items: stretch; text-align: left; gap: 1.1rem; }
  .jale-cta__copy { flex: 0 0 auto; }
  .jale-cta .jale-btn { width: 100%; }
  #jale-toast { width: calc(100% - 2rem); text-align: center; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
  footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
  /* blur filters this large are expensive on phones */
  #home [class*="blur-[160px]"], #home [class*="blur-[140px]"], #products [class*="blur-[150px]"] { filter: blur(70px) !important; }
}

/* 360px-class phones */
@media (max-width: 380px) {
  .jale-ticker__label span:last-child { font-size: 9px; }
  .jale-picker { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* touch devices: no hover-only affordances, keep taps snappy */
@media (hover: none) {
  .jale-card:hover, .jale-pop:hover { transform: none; translate: none; scale: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .jr { opacity: 1 !important; transform: none !important; }
  .jale-ticker__track { animation: none !important; overflow-x: auto; }
}

/* mobile menu: solid enough that hero text never bleeds through */
#mobile-menu { background: rgba(8, 6, 12, .97) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ==========================================================================
   v2 additions
   ========================================================================== */

/* ---- plan card: "View Package Details" -------------------------------- */
.jale-details {
  display: block; width: 100%; margin-top: .85rem; padding: .35rem; background: none; border: 0; cursor: pointer;
  font: 600 11.5px/1 var(--font-sans, system-ui), sans-serif; letter-spacing: .02em; color: #9d93ad;
  transition: color .25s, letter-spacing .4s var(--spring);
}
.jale-details:hover, .jale-details:focus-visible { color: #d8c4fa; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 3px; }

/* ---- jumping performance cards ---------------------------------------- */
.js .jale-perf.jr { transform: translate3d(0, 70px, 0) scale(.9); }
.js .jale-perf.jr.in { transition: opacity .5s ease calc(var(--d, 0) * 1ms), transform 1.25s cubic-bezier(.3, 1.9, .5, 1) calc(var(--d, 0) * 1ms); }
.jale-perf-badge { display: inline-block; animation: jale-badge-bounce 3.4s var(--ease-out) infinite; animation-delay: calc(var(--bi, 0) * .45s + 1s); }
.jale-perf .p-3, .jale-perf [class*="rounded-xl"][class*="border"] svg { transform-origin: 50% 80%; }
.jale-perf .flex.items-center.gap-3 > div:first-child { animation: jale-icon-hop 4.2s var(--ease-out) infinite; animation-delay: calc(var(--bi, 0) * .6s + 1.4s); }
@media (hover: hover) {
  .jale-perf:hover .jale-perf-badge { animation: jale-numpop .7s var(--spring); }
}

/* ---- reviews marquee -------------------------------------------------- */
.jale-review-sub { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; font-size: 12px; color: #8f869f; }
.jale-review-sub b { color: #34d399; font-weight: 700; }
.jale-review-sub i { width: 4px; height: 4px; border-radius: 50%; background: #5b5368; }
.jale-review-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: jale-blink 1.6s ease-in-out infinite; }
.jale-reviews {
  position: relative; overflow: hidden; padding: 6px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.jale-reviews__track { display: flex; width: max-content; animation: jale-marquee var(--rev-dur, 260s) linear infinite; will-change: transform; }
.jale-reviews__group { display: flex; gap: 20px; padding-right: 20px; }
@media (hover: hover) { .jale-reviews:hover .jale-reviews__track { animation-play-state: paused; } }
.jale-review {
  flex: none; width: 380px; display: flex; flex-direction: column; gap: 1rem; padding: 1.35rem 1.4rem 1.2rem;
  border-radius: 1.1rem; border: 1px solid rgba(157, 85, 236, .16); background: linear-gradient(180deg, #120d19, #0c0911);
  transition: translate .55s var(--spring), border-color .3s, box-shadow .4s;
}
@media (hover: hover) { .jale-review:hover { translate: 0 -8px; border-color: rgba(181, 131, 242, .5); box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 34px rgba(138, 43, 226, .2); } }
.jale-review__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.jale-stars { color: #fbbf24; font-size: 17px; letter-spacing: .14em; text-shadow: 0 0 12px rgba(251, 191, 36, .55); line-height: 1; }
.jale-review__tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .6rem; border-radius: .5rem;
  font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: #c9a9f7;
  background: rgba(138, 43, 226, .14); border: 1px solid rgba(181, 131, 242, .32);
}
.jale-review__text { flex: 1; margin: 0; font-style: italic; font-size: 14.5px; line-height: 1.62; color: #d3cde0; }
.jale-review__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .07); }
.jale-review__who { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.jale-review__who b { color: #fff; font-size: 15px; font-weight: 800; }
.jale-flag { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .55rem .18rem .4rem; border-radius: 999px; font-size: 10.5px; color: #c7c0d6; background: rgba(255, 255, 255, .04); border: 1px solid rgba(181, 131, 242, .22); }
.jale-flag img { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.jale-review small { display: block; margin-top: .4rem; font-size: 12px; color: #a39bb4; }
.jale-review__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; text-align: right; }
.jale-review__meta em { font: normal 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #6f677e; letter-spacing: .02em; }
.jale-verified { display: inline-flex; align-items: center; gap: .3rem; font-size: 11.5px; font-weight: 700; color: #34d399; white-space: nowrap; }

/* ---- game card swap --------------------------------------------------- */
#featured-game-profile { transition: opacity .22s ease, filter .22s ease, translate .6s var(--spring), scale .6s var(--spring), border-color .3s, box-shadow .45s; }
#featured-game-profile.gp-out { opacity: 0; filter: blur(5px); translate: 0 10px; }
#featured-game-profile.gp-in { animation: jale-card-in .65s var(--spring) both; }
#featured-game-profile.gp-in #gp-icon { animation: jale-numpop .7s var(--spring); }
.jale-picker button.is-active { border-color: rgba(181, 131, 242, .75) !important; background: rgba(138, 43, 226, .17) !important; box-shadow: 0 0 24px rgba(138, 43, 226, .38), inset 0 0 0 1px rgba(181, 131, 242, .25); }
.jale-picker button.is-active .jale-game__ico { border-color: rgba(181, 131, 242, .55) !important; }
.jale-picker button.is-active .jale-game__ico img { animation: jale-numpop .6s var(--spring); }

/* ---- dashboard demo --------------------------------------------------- */
#dashboard-preview .jd-card, #jd-status, #jd-log, #jd-badge, .jd-toggle, .jd-nav { transition: background-color .5s, border-color .5s, box-shadow .5s, color .4s, opacity .3s, scale .45s var(--spring); }
.jd-flash #jd-status, .jd-flash .jd-card { animation: jale-card-in .6s var(--spring) both; }
.jd-flash .jd-card:nth-child(2) { animation-delay: .04s } .jd-flash .jd-card:nth-child(3) { animation-delay: .08s }
.jd-flash .jd-card:nth-child(4) { animation-delay: .12s } .jd-flash .jd-card:nth-child(5) { animation-delay: .16s } .jd-flash .jd-card:nth-child(6) { animation-delay: .2s }
.jd-nav { border: 1px solid transparent; }
.jd-nav.is-active { background: rgba(138, 43, 226, .16) !important; color: #dcc8fb !important; border-color: rgba(181, 131, 242, .42) !important; box-shadow: 0 0 15px rgba(157, 85, 236, .22); }
@media (hover: hover) { .jd-nav:not(.is-active):hover { translate: 4px 0; } }
.jd-nav:active { scale: .96; }

/* red "stock Windows" look */
.jd-bad #jd-status { background: linear-gradient(90deg, #2a0d12, #190a0e) !important; border-color: rgba(239, 68, 68, .5) !important; box-shadow: 0 0 26px rgba(239, 68, 68, .14) !important; }
.jd-bad #jd-badge { background: #3b0d12 !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, .55) !important; }
.jd-bad #jd-title-icon { color: #f87171 !important; }
.jd-bad .jd-card { background: #1f0d11 !important; border-color: rgba(239, 68, 68, .32) !important; }
.jd-bad .jd-card .jd-ico { color: #f87171 !important; }
.jd-bad .jd-sub { color: #f87171 !important; }
.jd-bad .jd-val.text-cyan-400 { color: #f87171 !important; }
.jd-bad #jd-log { border-color: rgba(239, 68, 68, .25) !important; }
.jd-bad .jd-line { color: #fca5a5 !important; }
.jd-bad .jd-mark, .jd-bad #jd-log-status { color: #f87171 !important; }
.jd-bad .jd-toggle { background: #2a0d12 !important; border-color: rgba(239, 68, 68, .55) !important; color: #fca5a5 !important; box-shadow: none !important; }
.jd-bad #jd-dot { background: #ef4444 !important; }
.jd-bad #jd-engine { color: #f87171 !important; }
.jd-busy:not(.jd-bad) #jd-status { border-color: rgba(181, 131, 242, .6) !important; }
.jd-run[disabled], .jd-toggle[disabled] { cursor: not-allowed; }
.jd-run[disabled] { background: #1d2230 !important; color: #94a3b8 !important; box-shadow: none !important; transform: none !important; }
.jd-toggle[disabled] { opacity: .55; }
.jd-spin { animation: jale-spin 1s linear infinite; transform-origin: 50% 50%; }
.jd-progress { padding: .85rem 1.05rem; border-radius: .95rem; border: 1px solid rgba(157, 85, 236, .4); background: rgba(138, 43, 226, .09); margin-top: -.5rem; }
.jd-progress[hidden] { display: none; }
.jd-progress--in { animation: jale-card-in .5s var(--spring) both; }
.jd-progress--out { animation: jd-fade-out .28s ease both; }
.jd-progress__top { display: flex; justify-content: space-between; gap: 1rem; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: #c9a9f7; margin-bottom: .65rem; }
.jd-progress__track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.jd-progress__bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #8a2be2, #c58bf7); box-shadow: 0 0 14px rgba(181, 131, 242, .8); transition: width .64s linear; }
.jd-mod { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9rem; padding: 1rem; }
.jd-mod[hidden], #jd-view-dash[hidden] { display: none; }
.jd-mod__icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 1rem; color: #c9a9f7; background: rgba(138, 43, 226, .14); border: 1px solid rgba(181, 131, 242, .4); box-shadow: 0 0 26px rgba(138, 43, 226, .25); }
.jd-mod__icon svg { width: 26px; height: 26px; }
.jd-mod h3 { margin: 0; font-size: 1.15rem; font-weight: 900; color: #fff; }
.jd-mod p { margin: 0; max-width: 27rem; font-size: 12.5px; line-height: 1.6; color: #a79fb8; }
.jd-mod__btn { margin-top: .4rem; padding: .65rem 1.2rem; border-radius: .7rem; cursor: pointer; font-size: 12px; font-weight: 700; color: #d8c4fa; background: rgba(138, 43, 226, .14); border: 1px solid rgba(181, 131, 242, .4); transition: transform .45s var(--spring), background .25s; }
.jd-mod__btn:hover { transform: translateY(-3px) scale(1.04); background: rgba(138, 43, 226, .26); }
.jd-enter { animation: jale-card-in .6s var(--spring) both; }

/* ---- package details modal ------------------------------------------- */
html.jale-lock { overflow: hidden; padding-right: var(--sbw, 0px); }
html.jale-lock #main-navbar { padding-right: var(--sbw, 0px); }
.jale-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.jale-modal[hidden] { display: none; }
.jale-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 2, 8, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s ease; }
.jale-modal.open .jale-modal__backdrop { opacity: 1; }
.jale-modal__dialog {
  position: relative; width: min(100%, 640px); max-height: min(92vh, 900px); display: flex; flex-direction: column; outline: 0;
  border-radius: 1.4rem; border: 1px solid rgba(157, 85, 236, .4); background: linear-gradient(180deg, #140d1d, #0b0710);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .8), 0 0 70px rgba(138, 43, 226, .22);
  opacity: 0; transform: translateY(40px) scale(.9);
  transition: opacity .3s ease, transform .55s var(--spring);
}
.jale-modal.open .jale-modal__dialog { opacity: 1; transform: none; }
.jale-modal__close {
  position: absolute; top: 1.05rem; right: 1.05rem; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  color: #cfc4e4; border-radius: .8rem; background: rgba(138, 43, 226, .14); border: 1px solid rgba(181, 131, 242, .35); transition: transform .45s var(--spring), background .25s;
}
.jale-modal__close:hover { transform: rotate(90deg) scale(1.1); background: rgba(138, 43, 226, .3); }
.jale-modal__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 1.7rem 1.7rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(157, 85, 236, .5) transparent; }
.jale-modal__foot { padding: 1rem 1.7rem 1.4rem; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(8, 5, 12, .6); border-radius: 0 0 1.4rem 1.4rem; }
.jale-modal__foot .jale-btn { width: 100%; }
#jm-body > * { opacity: 0; transform: translateY(16px); }
.jale-modal.open #jm-body > * { opacity: 1; transform: none; transition: opacity .4s ease, transform .7s var(--spring); }
.jale-modal.open #jm-body > :nth-child(1) { transition-delay: .08s } .jale-modal.open #jm-body > :nth-child(2) { transition-delay: .13s }
.jale-modal.open #jm-body > :nth-child(3) { transition-delay: .18s } .jale-modal.open #jm-body > :nth-child(4) { transition-delay: .23s }
.jale-modal.open #jm-body > :nth-child(5) { transition-delay: .28s } .jale-modal.open #jm-body > :nth-child(n+6) { transition-delay: .33s }
.jm-head { display: flex; align-items: flex-start; gap: 1rem; padding-right: 3rem; }
.jm-icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 1rem; color: #c9a9f7; background: rgba(138, 43, 226, .16); border: 1px solid rgba(181, 131, 242, .4); }
.jm-icon svg { width: 24px; height: 24px; }
.jm-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .6rem; border-radius: .5rem; font: 800 10px/1 ui-monospace, monospace; letter-spacing: .08em; color: #d8c4fa; background: rgba(138, 43, 226, .2); border: 1px solid rgba(181, 131, 242, .4); }
.jm-head h3 { margin: .5rem 0 .25rem; font-size: clamp(1.45rem, 4.5vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.jm-sub { margin: 0; color: #a79fb8; font-size: 14px; }
.jm-video { display: flex; gap: .9rem; margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: .9rem; background: rgba(138, 43, 226, .1); border: 1px solid rgba(181, 131, 242, .3); }
.jm-video__ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: .6rem; color: #c9a9f7; background: rgba(138, 43, 226, .18); }
.jm-video b { display: block; font-size: 11.5px; letter-spacing: .03em; color: #d8c4fa; margin-bottom: .25rem; }
.jm-video p { margin: 0; font-size: 13px; line-height: 1.55; color: #c1b9d1; }
.jm-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1.05rem 1.2rem; border-radius: .9rem; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .08); }
.jm-price span { display: block; font-size: 13px; color: #8f869f; margin-bottom: .3rem; }
.jm-price b { font-size: 12.5px; color: #34d399; font-weight: 700; }
.jm-price__n { display: flex; align-items: baseline; gap: .6rem; }
.jm-price strong { font: 900 clamp(1.6rem, 6vw, 2rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff; }
.jm-price s { font: 600 14px/1 ui-monospace, monospace; color: #7d748c; }
.jm-desc { margin: 1.2rem 0 0; font-size: 14.5px; line-height: 1.65; color: #cfc8dc; }
.jm-h { margin: 1.4rem 0 .8rem; font: 800 11.5px/1 var(--font-sans, system-ui), sans-serif; letter-spacing: .08em; color: #b583f2; }
.jm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .62rem; }
.jm-list li { display: flex; align-items: center; gap: .7rem; font-size: 13.5px; color: #e6e0f2; line-height: 1.35; }
.jm-list li span { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #c9a9f7; background: rgba(138, 43, 226, .2); border: 1px solid rgba(181, 131, 242, .4); }
.jm-recv { margin-top: 1.5rem; padding: 1.1rem 1.2rem; border-radius: .9rem; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .08); }
.jm-recv h4 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font: 800 11.5px/1.3 var(--font-sans, system-ui), sans-serif; letter-spacing: .05em; color: #e6e0f2; }
.jm-file { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .75rem .9rem; border-radius: .7rem; background: rgba(138, 43, 226, .09); border: 1px solid rgba(181, 131, 242, .25); font-size: 13px; color: #d8c4fa; }
.jm-file span { display: inline-flex; align-items: center; gap: .55rem; }
.jm-file i { width: 6px; height: 6px; border-radius: 50%; background: #b583f2; }
.jm-file em { font: normal 700 10.5px/1 ui-monospace, monospace; padding: .35rem .6rem; border-radius: .5rem; color: #34d399; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.jm-recv ul { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.jm-recv li { font-size: 13px; color: #b9b1c9; padding-left: 1.1rem; position: relative; line-height: 1.4; }
.jm-recv li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: #8a2be2; }
.jm-verified { display: flex; gap: .7rem; margin: 1rem 0 .4rem; padding: .9rem 1.1rem; border-radius: .9rem; font-size: 13px; line-height: 1.5; color: #c1b9d1; background: rgba(52, 211, 153, .06); border: 1px solid rgba(52, 211, 153, .22); }
.jm-verified svg { flex: none; color: #34d399; margin-top: 2px; }
.jm-verified b { color: #e6e0f2; }

/* ---- more keyframes --------------------------------------------------- */
@keyframes jale-card-in { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes jale-badge-bounce { 0%, 58%, 100% { transform: translateY(0); } 66% { transform: translateY(-6px) scale(1.07); } 74% { transform: translateY(0) scale(.96); } 80% { transform: translateY(-2px); } 86% { transform: none; } }
@keyframes jale-icon-hop { 0%, 55%, 100% { transform: none; } 63% { transform: translateY(-8px) scale(1.06, .95); } 71% { transform: translateY(0) scale(.95, 1.06); } 78% { transform: translateY(-3px); } 85% { transform: none; } }
@keyframes jale-spin { to { transform: rotate(360deg); } }
@keyframes jd-fade-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---- v2 mobile -------------------------------------------------------- */
@media (max-width: 767px) {
  /* side menu becomes a swipeable pill row */
  #dashboard-preview .md\:col-span-3 { padding: .75rem !important; border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  #dashboard-preview .md\:col-span-3 > .space-y-1 { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .15rem; -webkit-overflow-scrolling: touch; }
  #dashboard-preview .md\:col-span-3 > .space-y-1::-webkit-scrollbar { display: none; }
  #dashboard-preview .md\:col-span-3 > .space-y-1 > div { display: none; }
  #dashboard-preview .jd-nav { width: auto; flex: none; white-space: nowrap; padding: .6rem .9rem !important; }
  #dashboard-preview .md\:col-span-3 > .mt-6 { display: none; }
  #dashboard-preview .md\:col-span-9 { padding: 1rem !important; }
  #dashboard-preview [class*="min-h-[560px]"] { min-height: 0 !important; }
  .jd-mod { min-height: 280px; }
}
@media (max-width: 639px) {
  .jale-review { width: min(82vw, 330px); padding: 1.15rem 1.15rem 1rem; }
  .jale-review__text { font-size: 14px; }
  .jale-review__foot { flex-direction: column; align-items: flex-start; }
  .jale-review__meta { flex-direction: row-reverse; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
  .jale-reviews { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  #reviews .jale-review-sub { flex-wrap: wrap; justify-content: center; }
  .jale-modal { padding: 0; align-items: flex-end; }
  .jale-modal__dialog { width: 100%; max-height: 94vh; border-radius: 1.4rem 1.4rem 0 0; transform: translateY(70px); }
  .jale-modal__scroll { padding: 1.3rem 1.15rem .8rem; }
  .jale-modal__foot { padding: .85rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px)); border-radius: 0; }
  .jm-price { flex-direction: column; align-items: flex-start; }
  .jm-head { gap: .8rem; }
  .jm-icon { width: 46px; height: 46px; }
  .jm-file { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   v3 – calmer, simpler motion (later rules win over the v1/v2 ones above)
   ========================================================================== */
:root { --spring: cubic-bezier(.22, 1, .36, 1); --spring-soft: cubic-bezier(.22, 1, .36, 1); }

@keyframes jale-rise       { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes jale-rise-right { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes jale-card-in    { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }

/* nothing loops or hops any more (only the two marquees and the live numbers move) */
#jale-progress { display: none; }
.js #main-navbar { animation: none; }
.jale-logo { animation: none; will-change: auto; }
@media (hover: hover) { #navbar-brand-logo:hover .jale-logo { rotate: 0deg; scale: 1.05; } }
.jale-badge-jump, .jale-perf-badge, .jale-numpop, .jale-ticker__dot, .jale-review-dot { animation: none; }
.jale-perf .flex.items-center.gap-3 > div:first-child { animation: none; }
@media (hover: hover) { .jale-perf:hover .jale-perf-badge { animation: none; } }
#featured-game-profile.gp-in #gp-icon, .jale-picker button.is-active .jale-game__ico img { animation: none; }

/* hero: one quick fade-up, no word-by-word, no floating cards */
.js .jale-hero-copy > * { animation: jale-rise .5s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 50ms + 60ms); }
.jale-hero-copy > :nth-child(1) { --n: 0; } .jale-hero-copy > :nth-child(2) { --n: 1; } .jale-hero-copy > :nth-child(3) { --n: 2; }
.jale-hero-copy > :nth-child(4) { --n: 3; } .jale-hero-copy > :nth-child(5) { --n: 4; } .jale-hero-copy > :nth-child(6) { --n: 5; }
.js .jale-hero-copy > h1 { animation: jale-rise .5s var(--ease-out) both; animation-delay: 110ms; }
.js .jw { animation: none; }
.js .jale-bob { animation: jale-rise .5s var(--ease-out) both; animation-delay: .1s; }
.js .jale-bob:nth-child(2) { animation-delay: .18s; }

/* scroll reveal: fade + 14px rise, fast */
.js .jr, .js .jr.jr-pop, .js .jr.jr-left, .js .jr.jr-right, .js .jale-perf.jr { transform: translate3d(0, 14px, 0); }
.js .jr.in, .js .jale-perf.jr.in { transition: opacity .45s ease calc(var(--d, 0) * 1ms), transform .55s var(--ease-out) calc(var(--d, 0) * 1ms); }
[data-bar] { transition: width .9s var(--ease-out) !important; }

/* cards & buttons: colour/shadow only – nothing slides or scales under the cursor */
.jale-card { transition: border-color .3s ease, box-shadow .35s ease, background-color .3s; }
@media (hover: hover) {
  .jale-card:hover { translate: none; scale: none; border-color: rgba(181, 131, 242, .45); box-shadow: 0 14px 36px rgba(0, 0, 0, .45), 0 0 26px rgba(138, 43, 226, .14); }
  .jale-lift:hover { translate: 0 -.5rem; scale: none; }
  .jale-pop:hover { transform: translateY(-2px); }
  .jale-btn:hover svg { translate: 2px 0; }
  .jale-review:hover { translate: none; }
  .jale-faq-item:hover { translate: none; }
  .jd-nav:not(.is-active):hover { translate: none; }
  .jale-tile:hover { translate: none; }
}
.jale-card:active { scale: none; }
.jale-pop { transition: transform .25s ease, box-shadow .3s ease, background-color .25s, border-color .25s; will-change: auto; }
.jale-pop:active { transform: scale(.985) !important; transition-duration: .1s; }

/* the ticker keeps moving when hovered */
@media (hover: hover) { .jale-ticker:hover .jale-ticker__track { animation-play-state: running; } }

/* "View Package Details": big, stable click target (the old one sat on a card that shrank while pressed) */
.jale-details {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: .55rem; padding: .8rem 1rem;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #b9aed0; border-radius: .8rem; position: relative;
  border: 1px solid rgba(181, 131, 242, .18); background: rgba(138, 43, 226, .06);
  transition: color .2s, background-color .2s, border-color .2s;
}
.jale-details:hover, .jale-details:focus-visible { letter-spacing: .02em; text-decoration: none; color: #fff; background: rgba(138, 43, 226, .18); border-color: rgba(181, 131, 242, .5); }
.jale-details::before { content: ""; position: absolute; inset: -8px -4px; }   /* invisible extra hit area */
.jale-details:active { background: rgba(138, 43, 226, .26); }

/* menus, dashboard, modal: plain fades */
.jale-mm-link { transform: translateY(8px); transition: opacity .25s ease, transform .3s var(--ease-out); }
#mobile-menu.is-open .jale-mm-link:nth-of-type(n) { transition-delay: 0s; }
.jd-flash #jd-status, .jd-flash .jd-card, .jd-enter, .jd-progress--in { animation: jale-card-in .35s ease both; }
.jd-flash .jd-card:nth-child(n) { animation-delay: 0s; }
.jale-modal__dialog { transform: translateY(14px) scale(.985); transition: opacity .25s ease, transform .3s var(--ease-out); }
.jale-modal.open #jm-body > :nth-child(n) { transition-delay: 0s; }
#jm-body > * { transform: translateY(6px); }
.jale-modal.open #jm-body > * { transition: opacity .3s ease, transform .35s var(--ease-out); }
.jale-modal__close:hover { transform: none; }
@media (max-width: 639px) { .jale-modal__dialog { transform: translateY(40px); } }

/* ---- "Ready to transform your PC?" bar: full width, tidy at every size ---- */
.jale-cta-card { display: block !important; text-align: left !important; }
.jale-cta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.jale-cta__copy { flex: 1 1 340px; min-width: 0; }
.jale-cta .jale-btn { flex: 0 0 auto; }
@media (max-width: 767px) {
  .jale-cta { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .jale-cta__copy { flex: 0 0 auto; }
  .jale-cta .jale-btn { width: 100%; }
}

/* ==========================================================================
   v4 – a small, brief, fast bounce (overshoot ≈ 4px, ≤ 0.42s) on top of the calm base
   ========================================================================== */
:root { --pop: cubic-bezier(.34, 1.4, .64, 1); }

/* entrances */
.js .jale-hero-copy > *, .js .jale-hero-copy > h1, .js .jale-bob { animation-duration: .42s; animation-timing-function: var(--pop); }
.js .jr.in, .js .jale-perf.jr.in { transition: opacity .3s ease calc(var(--d, 0) * 1ms), transform .42s var(--pop) calc(var(--d, 0) * 1ms); }
.jd-flash #jd-status, .jd-flash .jd-card, .jd-enter, .jd-progress--in, #featured-game-profile.gp-in { animation: jale-card-in .32s var(--pop) both; }
.jale-mm-link { transition: opacity .22s ease, transform .32s var(--pop); }
#jale-toast { transition: opacity .22s, transform .32s var(--pop) !important; }
.jale-modal__dialog { transition: opacity .22s ease, transform .32s var(--pop); }
.jale-faq-chev { transition: transform .3s var(--pop), color .2s !important; }

/* buttons, tiles: quick spring on hover and press */
.jale-pop { transition: transform .26s var(--pop), box-shadow .3s ease, background-color .25s, border-color .25s; }
@media (hover: hover) { .jale-pop:hover { transform: translateY(-2px) scale(1.03); } }
.jale-pop:active { transform: scale(.96) !important; transition-duration: .1s; }
.jale-logo { transition: scale .28s var(--pop), rotate .28s var(--pop); }
@media (hover: hover) { #navbar-brand-logo:hover .jale-logo { scale: 1.08; } }
.jale-modal__close:hover { transform: scale(1.08); }

/* a picked game tile and a finished counter give one tiny pop */
.jale-picker button.is-active { animation: jale-tap .3s var(--pop); }
.jale-numpop { animation: jale-numpop2 .3s var(--pop); }
@keyframes jale-tap { 0% { scale: 1; } 45% { scale: 1.05; } 100% { scale: 1; } }
@keyframes jale-numpop2 { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* reviews keep scrolling when hovered */
@media (hover: hover) { .jale-reviews:hover .jale-reviews__track { animation-play-state: running; } }

/* ---- package modal: header bar holds the close button so it never sits on top of content ---- */
.jale-modal__dialog { overflow: hidden; }
.jale-modal__bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: .65rem .8rem .65rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(8, 5, 12, .55); }
.jale-modal__bar span { font: 800 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8f869f; }
.jale-modal__close { position: static; flex: none; width: 36px; height: 36px; border-radius: .7rem; }
.jale-modal__scroll { margin-right: 3px; padding-top: 1.25rem; }
.jm-head { padding-right: 0; }
.jm-guarantee { margin-top: .6rem; background: rgba(138, 43, 226, .09); border-color: rgba(181, 131, 242, .28); }
.jm-guarantee svg { color: #c9a9f7; }
@media (max-width: 639px) { .jale-modal__bar { padding: .5rem .7rem .5rem 1.15rem; } }

/* ==========================================================================
   v5 – no overshoot on reveals, hover pauses while scrolling, quicker counters
   ========================================================================== */
:root { --out: cubic-bezier(.22, 1, .36, 1); }

/* reveals: 12px fade-up, settles exactly at 0 (overshoot was the "pop a few px up") */
.js .jr, .js .jr.jr-left, .js .jr.jr-right, .js .jale-perf.jr { transform: translate3d(0, 12px, 0); }
.js .jr.jr-pop { transform: scale(.94); }
.js .jr.in, .js .jale-perf.jr.in {
  transition: opacity .4s ease calc(var(--d, 0) * 1ms), transform .5s var(--out) calc(var(--d, 0) * 1ms);
}
.jd-flash #jd-status, .jd-flash .jd-card, .jd-enter, .jd-progress--in, #featured-game-profile.gp-in { animation: jale-card-in .3s var(--out) both; }

/* bars fill quickly, no springy overshoot */
[data-bar] { transition: width .7s var(--out) !important; }

/* counters: soft glow when they land, no scaling */
.jale-numpop { animation: jale-glowpop .5s ease-out; }
@keyframes jale-glowpop { 0% { text-shadow: 0 0 0 rgba(197,139,247,0); } 40% { text-shadow: 0 0 14px rgba(197,139,247,.8); } 100% { text-shadow: 0 0 0 rgba(197,139,247,0); } }
.jale-picker button.is-active { animation: none; }

/* hover lifts: smooth, small, and paused while the page is scrolling */
.jale-pop { transition: transform .25s var(--out), box-shadow .3s ease, background-color .25s, border-color .25s; }
@media (hover: hover) {
  .jale-card { transition: translate .35s var(--out), border-color .3s ease, box-shadow .35s ease, background-color .3s; }
  .jale-card:hover { translate: 0 -4px; }
  .jale-pop:hover { transform: translateY(-2px); }
  .jale-lift:hover { translate: 0 -.35rem; }
  html.jale-scrolling .jale-card, html.jale-scrolling .jale-pop, html.jale-scrolling .jale-review,
  html.jale-scrolling .jale-tile, html.jale-scrolling .jale-faq-item, html.jale-scrolling .jale-game,
  html.jale-scrolling .jd-nav, html.jale-scrolling .jale-details { pointer-events: none; }
}

/* thin scroll-progress line (kept cheap: one transform) */
#jale-progress { display: block; height: 2px; }

/* ==========================================================================
   v6 – performance cards stay perfectly still
   ========================================================================== */
/* no hover lift on cards: glow/border only (a card sliding under the cursor read as "moving up for no reason") */
@media (hover: hover) {
  .jale-card:hover, .jale-lift:hover { translate: none !important; }
  .jale-perf:hover .group-hover\:scale-105, .jale-perf .group-hover\:scale-105:hover { transform: none; scale: none; }
  .group:hover > div > div > .group-hover\:scale-105 { transform: none !important; }
}
.group-hover\:scale-105 { transform: none !important; }

/* footer note always reserves two lines, so every divider sits on the same line
   whether the sentence wraps or not (the Input Delay card used to sit ~16px higher) */
.jale-perf > div:last-child { min-height: 3.4rem; align-items: flex-start; line-height: 1.5; }
.jale-perf > div:last-child > svg { margin-top: .12rem; }
/* head row + bars keep a fixed height too */
.jale-perf .jale-perf-badge { white-space: nowrap; }

/* ==========================================================================
   v7 – NOTHING slides on load: every entrance is a pure fade, zero movement
   ========================================================================== */
.js .jr, .js .jr.jr-pop, .js .jr.jr-left, .js .jr.jr-right, .js .jale-perf.jr,
.js .jr.in, .js .jale-perf.jr.in { transform: none !important; }
.js .jr.in, .js .jale-perf.jr.in { transition: opacity .35s ease calc(var(--d, 0) * 1ms) !important; }

@keyframes jale-rise       { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes jale-rise-right { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes jale-card-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes jale-word       { from { opacity: 0; transform: translate3d(0, .7em, 0) rotate(5deg) scale(.85); } to { opacity: 1; transform: none; } }
#jm-body > *, .jale-mm-link { transform: none !important; }
#featured-game-profile.gp-out { translate: none; }
.jale-modal__dialog { transform: none !important; }

/* ==========================================================================
   v8 – game card: swap text in place, card never moves, scrolls or resizes
   ========================================================================== */
#featured-game-profile, #featured-game-profile.gp-out, #featured-game-profile.gp-in {
  opacity: 1 !important; filter: none !important; translate: none !important; scale: none !important; animation: none !important;
  display: flex; flex-direction: column; justify-content: center;
}
#featured-game-profile > .grid { transition: opacity .16s ease; }
#featured-game-profile.gp-out > .grid { opacity: 0 !important; transform: none !important; }
#featured-game-profile.gp-in > .grid { opacity: 1 !important; }
#featured-game-profile #gp-icon { transform: none !important; animation: none !important; }
.jale-picker button.is-active, .jale-picker button { animation: none !important; }

/* v9 – hero section: original load animation restored (hero stats keep their original reveal) */
.js #home .jr, .js #home .jr.jr-pop { transform: translate3d(0, 14px, 0) !important; }
.js #home .jr.in { transform: none !important; transition: opacity .3s ease calc(var(--d, 0) * 1ms), transform .42s var(--pop) calc(var(--d, 0) * 1ms) !important; }
