/* ==========================================================================
   Waiz Earn app sites — shared design system (Crystal Odyssey, subdomain edition, 2026-11-14).
   The same base ships with learnify/, hearnify/ and paldearn/ — keep the three copies in sync; each app's own look
   (colours, mock phone, signature effects) follows in the theme part of this file.
   Performance contract: every moving layer is decorative (aria-hidden, pointer-events:none) and animates transform or
   opacity only, on the compositor. html.fx-lite (reduced motion, Save-Data, low memory, or slow frames measured at
   runtime) and html.fx-pause (hero off screen / tab hidden) stop them; the page is then identical, only still.
   ========================================================================== */

:root {
  color-scheme: dark;
  --gutter: clamp(16px, 4.2vw, 44px);
  --wide: min(1180px, 100% - 2 * var(--gutter));
  --narrow: min(780px, 100% - 2 * var(--gutter));
  --hdr-h: 64px;
  --r-xs: 10px; --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-xl: 38px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .16);
  --glass: linear-gradient(180deg, rgb(255 255 255 / .075), rgb(255 255 255 / .025));
  --shadow-1: 0 10px 30px -14px rgb(0 0 0 / .65);
  --shadow-2: 0 30px 70px -30px rgb(0 0 0 / .85);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 14px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font); font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgb(var(--acc-rgb) / .35); color: #fff; }
:focus-visible { outline: 2px solid rgb(var(--acc-rgb)); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: #000; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: var(--wide); margin-inline: auto; }
.narrow { width: var(--narrow); margin-inline: auto; }

/* ---------- Buttons & chips ---------- */
.btn {
  --h: 48px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent; overflow: hidden;
  font: 800 15.5px/1 var(--font); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { color: var(--on-acc, #fff); background: var(--grad-btn); box-shadow: 0 12px 30px -12px rgb(var(--acc-rgb) / .8), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-primary::after { content: ""; position: absolute; inset: -2px; z-index: -1; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .38), transparent); transition: transform .7s var(--ease); }
.btn-ghost { color: var(--ink); background: rgb(255 255 255 / .06); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 18px 40px -14px rgb(var(--acc-rgb) / .95), inset 0 1px 0 rgb(255 255 255 / .4); }
  .btn-primary:hover::after { transform: translateX(120%) skewX(-18deg); }
  .btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: rgb(var(--acc-rgb) / .5); }
}
.btn:active { transform: translateY(0) scale(.98); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / .05); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid rgb(var(--acc-rgb) / .35); background: rgb(var(--acc-rgb) / .1);
  font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--acc-rgb)); box-shadow: 0 0 0 4px rgb(var(--acc-rgb) / .2), 0 0 12px rgb(var(--acc-rgb)); }
.kicker { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--acc-rgb)); }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h); transition: background-color .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .8);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.hdr-in { width: var(--wide); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--font-display); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(var(--acc-rgb) / .45)); }
.brand small { display: block; margin-top: 3px; font: 700 10.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: rgb(255 255 255 / .06); }
.hdr .btn { margin-left: 6px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu > summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .06); cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span, .menu > summary span::before, .menu > summary span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu > summary span { position: relative; }
.menu > summary span::before, .menu > summary span::after { content: ""; position: absolute; left: 0; }
.menu > summary span::before { top: -6px; } .menu > summary span::after { top: 6px; }
.menu[open] > summary span { background: transparent; }
.menu[open] > summary span::before { transform: translateY(6px) rotate(45deg); }
.menu[open] > summary span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 10px; border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 94%, #fff 6%); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); display: grid; gap: 2px; }
.menu-panel a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.menu-panel a:not(.btn):hover { background: rgb(255 255 255 / .06); color: var(--ink); }
.menu-panel .btn { margin-top: 8px; }
@media (max-width: 899.98px) { .nav, .hdr-in > .btn { display: none; } .menu { display: block; } }

/* ---------- Hero & scene ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 980px); padding: calc(var(--hdr-h) + clamp(28px, 6vh, 72px)) 0 clamp(56px, 9vh, 110px); display: flex; align-items: center; background: var(--bg-hero, var(--bg)); }
@supports not (height: 1svh) { .hero { min-height: min(100vh, 980px); } }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.scene-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (orientation: portrait) { .scene-img { object-position: 50% 22%; } }
.scene-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / 0) 24%),
  linear-gradient(90deg, rgb(0 0 0 / .62) 0%, rgb(0 0 0 / .38) 38%, rgb(0 0 0 / 0) 62%),
  radial-gradient(70% 55% at 30% 45%, rgb(0 0 0 / .35), transparent 70%),
  linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--bg) 75%, transparent) 84%, var(--bg) 100%); }
@media (max-width: 979.98px) { .scene-shade { background:
  linear-gradient(180deg, rgb(0 0 0 / .5) 0%, rgb(0 0 0 / .2) 30%, rgb(0 0 0 / .45) 60%, var(--bg) 100%),
  radial-gradient(90% 45% at 50% 30%, rgb(0 0 0 / .45), transparent 75%); } }
.hero-copy .lead, .hero-copy .tagline { text-shadow: 0 2px 18px rgb(0 0 0 / .55); }
.fx { position: absolute; pointer-events: none; }
.fx-aurora { width: 72vw; height: 92%; top: -14%; opacity: .55; mix-blend-mode: screen; will-change: transform; border-radius: 50%; }
.fx-aurora.a1 { left: -30vw; background: radial-gradient(closest-side, rgb(var(--acc-rgb) / .34), transparent 72%); animation: drift-a 22s ease-in-out infinite alternate; }
.fx-aurora.a2 { right: -32vw; background: radial-gradient(closest-side, rgb(var(--acc2-rgb) / .3), transparent 72%); animation: drift-b 27s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-4%, -2%, 0) rotate(-6deg) scale(1); } to { transform: translate3d(7%, 4%, 0) rotate(4deg) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(5%, 3%, 0) rotate(5deg) scale(1.05); } to { transform: translate3d(-6%, -3%, 0) rotate(-4deg) scale(.96); } }
.fx-rays { left: calc(50% - 75vmax); width: 150vmax; top: -30%; height: 118%; transform-origin: 50% 0; opacity: .5; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 180deg at 50% 0%, rgb(var(--acc-rgb) / 0) 0deg, rgb(var(--acc-rgb) / .1) 3deg, rgb(var(--acc-rgb) / 0) 7deg 15deg);
  -webkit-mask-image: radial-gradient(55% 72% at 50% 0%, #000 18%, transparent 74%); mask-image: radial-gradient(55% 72% at 50% 0%, #000 18%, transparent 74%);
  animation: rays 26s ease-in-out infinite alternate; }
@keyframes rays { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.fx-stars { inset: 0 0 40% 0; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent); mask-image: linear-gradient(180deg, #000 25%, transparent); }
.fx-stars.s1 { background-image: radial-gradient(1.3px 1.3px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 27% 62%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 44% 8%, #fff 60%, transparent), radial-gradient(1px 1px at 61% 41%, #fff 60%, transparent),
    radial-gradient(1.4px 1.4px at 78% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 91% 70%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 5% 84%, #fff 60%, transparent);
  background-size: 260px 220px; animation: twinkle 4.8s ease-in-out infinite alternate; }
.fx-stars.s2 { background-image: radial-gradient(1.6px 1.6px at 18% 30%, rgb(var(--acc-rgb)) 55%, transparent), radial-gradient(1.1px 1.1px at 52% 74%, #fff 60%, transparent),
    radial-gradient(1.8px 1.8px at 70% 12%, rgb(var(--acc2-rgb)) 55%, transparent), radial-gradient(1.2px 1.2px at 88% 48%, #fff 60%, transparent), radial-gradient(1px 1px at 36% 90%, #fff 60%, transparent);
  background-size: 370px 300px; background-position: 120px 60px; animation: twinkle 6.6s ease-in-out -2.2s infinite alternate; }
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }
.fx-comets { inset: 0 0 45% 0; overflow: hidden; }
.fx-comets b { position: absolute; top: 9%; right: 9%; width: 140px; height: 1.5px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, #fff, rgb(255 255 255 / .85) 25%, rgb(255 255 255 / 0)); box-shadow: 0 0 8px rgb(255 255 255 / .55); animation: comet 11s linear infinite; }
.fx-comets b:nth-child(2) { top: 22%; right: 33%; width: 96px; animation-duration: 13s; animation-delay: -4.2s; }
.fx-comets b:nth-child(3) { top: 4%; right: 60%; width: 120px; animation-duration: 17s; animation-delay: -8.4s; }
@keyframes comet { 0% { transform: translate3d(0, 0, 0) rotate(-28deg); opacity: 0; } 1% { opacity: 1; } 7% { transform: translate3d(-34vw, 18vw, 0) rotate(-28deg); opacity: 0; } 100% { transform: translate3d(-34vw, 18vw, 0) rotate(-28deg); opacity: 0; } }
.fx-caustics { left: -10%; right: -10%; bottom: 0; height: 40%; opacity: .1; mix-blend-mode: screen; will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 35%, #000 70%, transparent);
  background: repeating-linear-gradient(176deg, transparent 0 18px, rgb(var(--acc-rgb) / .9) 19px 20px, transparent 21px 44px); animation: caustic 16s linear infinite alternate; }
@keyframes caustic { from { transform: translate3d(-3%, 0, 0) skewX(-6deg); } to { transform: translate3d(3%, 6px, 0) skewX(4deg); } }
.fx-shards { inset: 0; }
.fx-shards b { position: absolute; width: 13px; height: 21px; filter: drop-shadow(0 0 6px rgb(var(--acc-rgb) / .85)); animation: shard 9s ease-in-out infinite alternate; }
.fx-shards b::before { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); background: linear-gradient(160deg, #fff, rgb(var(--acc-rgb) / .9) 45%, rgb(var(--acc2-rgb) / .6)); }
.fx-shards b:nth-child(1) { left: 7%; top: 30%; }
.fx-shards b:nth-child(2) { left: 14%; top: 68%; width: 9px; height: 14px; animation-duration: 11s; animation-delay: -3s; }
.fx-shards b:nth-child(3) { left: 46%; top: 12%; width: 10px; height: 16px; animation-duration: 13s; animation-delay: -6s; }
.fx-shards b:nth-child(4) { right: 6%; top: 26%; animation-duration: 10s; animation-delay: -2s; }
.fx-shards b:nth-child(5) { right: 13%; top: 74%; width: 10px; height: 16px; animation-duration: 12s; animation-delay: -5s; }
@keyframes shard { from { transform: translate3d(0, 0, 0) rotate(-8deg); } to { transform: translate3d(0, -22px, 0) rotate(12deg); } }
@media (max-width: 719.98px) { .fx-shards b:nth-child(n+4) { display: none; } .fx-rays { opacity: .38; } .fx-aurora { width: 110vw; } }

.hero-in { width: var(--wide); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.hero-copy { max-width: 640px; }
.hero-title { display: grid; gap: 14px; }
.wordmark { display: block; font: 800 clamp(54px, 9.2vw, 118px)/.92 var(--font-display); letter-spacing: -.045em;
  background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgb(var(--acc-rgb) / .35)); }
.tagline { display: block; font: 700 clamp(23px, 3.3vw, 40px)/1.12 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.lead { margin-top: 22px; max-width: 58ch; font-size: clamp(16.5px, 1.45vw, 19px); line-height: 1.68; color: var(--ink-2); }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / .045); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.trust li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: rgb(var(--acc-rgb) / .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3 6.9 11 11.8 5.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / .55); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
@media (max-width: 979.98px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-visual { min-height: 0; margin-top: 8px; }
}
@media (max-width: 479.98px) { .cta-row .btn { width: 100%; } }

/* ---------- Phone mockup ---------- */
.device { position: relative; z-index: 2; width: clamp(250px, 25vw, 318px); aspect-ratio: 9 / 19.2; padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #2A2F3D, #0B0D14 38%, #1B1F2B 70%, #0B0D14);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14), 0 0 0 1px rgb(0 0 0 / .6), 0 50px 90px -40px rgb(0 0 0 / .95), 0 0 90px -18px rgb(var(--acc-rgb) / .5);
  transform: perspective(1400px) rotateY(-13deg) rotateX(5deg) rotateZ(1deg); transform-style: preserve-3d; }
.device::before { content: ""; position: absolute; z-index: 4; top: 17px; left: 50%; width: 30%; height: 22px; translate: -50% 0; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); }
.device::after { content: ""; position: absolute; inset: 9px; z-index: 5; border-radius: 37px; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 34%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .05)); }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--mock-bg); contain: layout paint; text-align: left; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.orbit-ic { position: absolute; z-index: 3; width: clamp(64px, 7vw, 96px); filter: drop-shadow(0 18px 24px rgb(0 0 0 / .55)); animation: bob 6s ease-in-out infinite; }
.orbit-ic:nth-of-type(2) { animation-duration: 7.5s; animation-delay: -2s; }
.orbit-ic:nth-of-type(3) { animation-duration: 8.5s; animation-delay: -4s; }
.orbit-ic:nth-of-type(4) { animation-duration: 6.8s; animation-delay: -1s; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(0, -14px, 0) rotate(5deg); } }
@media (max-width: 979.98px) {
  .device { width: min(74vw, 300px); transform: none; }
  .orbit-ic { width: clamp(52px, 14vw, 72px); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 108px) 0; }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: clamp(40px, 5.5vw, 72px); }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--ink-2); }
.grad-text { background: var(--grad-word); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw { white-space: nowrap; }
.lazy-sec { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Glass card */
.card { position: relative; isolation: isolate; padding: 26px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), var(--shadow-1); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(120% 80% at 0% 0%, rgb(var(--acc-rgb) / .16), transparent 60%); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); border-color: rgb(var(--acc-rgb) / .38); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 24px 50px -24px rgb(0 0 0 / .8), 0 0 0 1px rgb(var(--acc-rgb) / .1); }
  .card:hover::before { opacity: 1; }
  .card:hover .card-ic { transform: translateY(-4px) rotate(-4deg) scale(1.05); }
}
.card-ic { width: 76px; height: 76px; margin: -6px 0 14px -6px; object-fit: contain; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .45)); transition: transform .45s var(--ease-out); }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin-top: 10px; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.card .tag { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 999px; background: rgb(var(--acc-rgb) / .12); border: 1px solid rgb(var(--acc-rgb) / .28); font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.cards { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards.three, .cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .cards.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899.98px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 599.98px) { .cards.six { grid-template-columns: 1fr; } }

/* Feature "spotlight": a big card with copy beside a visual */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); align-items: center; }
.spot + .spot { margin-top: clamp(56px, 8vw, 110px); }
.spot.flip .spot-copy { order: 2; }
.spot-copy h3 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.spot-copy p { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.ticks { margin-top: 22px; list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 8px;
  background: rgb(var(--acc-rgb) / .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3 6.9 11 11.8 5.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; box-shadow: inset 0 0 0 1px rgb(var(--acc-rgb) / .45); }
.ticks b { color: var(--ink); }
.stage { position: relative; isolation: isolate; min-height: 360px; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(90% 80% at 50% 110%, rgb(var(--acc-rgb) / .3), transparent 60%), radial-gradient(70% 60% at 50% 0%, rgb(var(--acc2-rgb) / .16), transparent 70%), var(--bg-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), var(--shadow-2); display: grid; place-items: center; padding: 30px; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
@media (max-width: 899.98px) { .spot { grid-template-columns: 1fr; } .spot.flip .spot-copy { order: 0; } .stage { min-height: 300px; } }
@media (max-width: 479.98px) { .stage { padding: 18px; border-radius: var(--r-lg); } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgb(var(--acc-rgb) / .55), rgb(var(--acc2-rgb) / .55), transparent); }
.step { position: relative; padding: 0 6px; text-align: center; counter-increment: step; }
.step-n { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-2) 70%, rgb(var(--acc-rgb)) 30%), var(--bg-2)); border: 1px solid rgb(var(--acc-rgb) / .45);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgb(var(--acc-rgb) / .7); font: 800 24px/1 var(--font-display); color: #fff; }
.step-n::after { content: counter(step); }
.step h3 { font-size: 18.5px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.step a { color: var(--ink); font-weight: 800; }
@media (max-width: 899.98px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 33px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, rgb(var(--acc-rgb) / .55), rgb(var(--acc2-rgb) / .55)); }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; padding: 0 0 26px; }
  .step-n { margin: 0; grid-row: span 2; }
  .step h3 { align-self: end; }
}

/* Trust / fair play */
.fair { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.fair .card { padding: 24px; }
.fair-ic { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 16px; color: #fff;
  background: linear-gradient(150deg, rgb(var(--acc-rgb) / .9), rgb(var(--acc2-rgb) / .75)); box-shadow: 0 12px 24px -12px rgb(var(--acc-rgb)); }
.fair-ic svg { width: 26px; height: 26px; }
.fair h3 { font-size: 18px; }
.fair p { font-size: 15px; }
@media (max-width: 1079.98px) { .fair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .fair { grid-template-columns: 1fr; } }
.notice { margin-top: clamp(18px, 2vw, 26px); display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); border: 1px solid rgb(255 196 87 / .35); background: rgb(255 196 87 / .07); color: var(--ink-2); font-size: 15px; }
.notice svg { width: 24px; height: 24px; flex: none; color: #FFC457; margin-top: 1px; }
.notice b { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: rgb(var(--acc-rgb) / .4); background: linear-gradient(180deg, rgb(var(--acc-rgb) / .08), rgb(255 255 255 / .02)); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font: 800 17px/1.35 var(--font-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 28px; height: 28px; flex: none; border-radius: 10px; background: rgb(255 255 255 / .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgb(var(--acc-rgb) / .3); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans a { color: var(--ink); font-weight: 700; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(42px, 6vw, 80px) clamp(22px, 5vw, 72px); border-radius: var(--r-xl);
  border: 1px solid rgb(var(--acc-rgb) / .3); text-align: center;
  background: radial-gradient(80% 120% at 50% 120%, rgb(var(--acc-rgb) / .45), transparent 60%), radial-gradient(60% 90% at 0% 0%, rgb(var(--acc2-rgb) / .3), transparent 60%), var(--bg-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), var(--shadow-2); }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; opacity: .35;
  background: repeating-conic-gradient(from 180deg at 50% 0%, rgb(255 255 255 / 0) 0deg, rgb(255 255 255 / .06) 3deg, rgb(255 255 255 / 0) 7deg 15deg); }
.cta-band img.cta-logo { width: 84px; height: 84px; margin: 0 auto 18px; object-fit: contain; filter: drop-shadow(0 14px 30px rgb(var(--acc-rgb) / .6)); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.cta-band p { margin: 14px auto 0; max-width: 56ch; color: var(--ink-2); font-size: 17px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.ftr { margin-top: 0; padding: 54px 0 34px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgb(0 0 0 / .35)); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr .brand { font-size: 20px; }
.ftr-about { margin-top: 14px; max-width: 40ch; font-size: 14.5px; color: var(--ink-3); }
.ftr h4 { font: 800 12.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.ftr ul { list-style: none; display: grid; gap: 9px; }
.ftr a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr-apps a { display: inline-flex; align-items: center; gap: 9px; }
.ftr-apps img { width: 22px; height: 22px; object-fit: contain; }
.ftr-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 899.98px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll (only with script; without it everything is simply visible) */
.js .rv { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--hdr-h) + 30px) var(--gutter) 60px; }
.lost h1 { font-size: clamp(76px, 18vw, 180px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.lost p { margin: 16px auto 0; max-width: 46ch; color: var(--ink-2); font-size: 17px; }
.lost .cta-row { justify-content: center; }

/* ---------- Effects switches ---------- */
/* Paused: hero off screen or tab hidden. Lite: reduced motion, Save-Data, low memory or slow frames. */
html.fx-pause .hero *, html.fx-pause .hero *::before, html.fx-pause .hero *::after { animation-play-state: paused !important; }
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
html.fx-lite *, html.fx-lite *::before, html.fx-lite *::after { animation: none !important; transition-duration: .01ms !important; }
html.fx-lite .fx-comets, html.fx-lite .fx-caustics, html.fx-lite .fx-rays { display: none; }
html.fx-lite .hdr.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); }
html.fx-lite .js .rv, html.fx-lite.js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media (forced-colors: active) { .fx, .scene { display: none; } .btn { border: 1px solid; } }
@media print { .hdr, .scene, .hero-visual, .cta-band, .ftr { display: none; } body { background: #fff; color: #000; } }

/* ==========================================================================
   Hearnify — "Resonance Hall" theme. Palette from the logo: mint → lavender with a warm gold arrow, the lavender glass
   and silk ribbon of the app itself, over the teal crystal hall of the Waiz Earn world.
   ========================================================================== */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  --bg: #090B16; --bg-2: #120F24; --bg-hero: #061419;
  --ink: #F3F0FF; --ink-2: #C3BDE0; --ink-3: #8C86AE;
  --acc: #8AF2D7; --acc-rgb: 138 242 215;
  --acc-2: #C4A1FF; --acc2-rgb: 196 161 255;
  --gold: #FFD18A;
  --grad-word: linear-gradient(100deg, #8AF2D7 0%, #9FD8F5 30%, #C4A1FF 64%, #FFD7A8 100%);
  --grad-btn: linear-gradient(100deg, #7C5CFF 0%, #A47BFF 50%, #E39BFF 100%);
  --mock-bg: radial-gradient(120% 55% at 80% -5%, #3A2463 0%, transparent 55%), linear-gradient(180deg, #160F2A, #0C0816 60%);
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
}
body { background:
  radial-gradient(60% 40% at 85% 30%, rgb(var(--acc2-rgb) / .08), transparent 70%),
  radial-gradient(50% 35% at 10% 70%, rgb(var(--acc-rgb) / .06), transparent 70%), var(--bg); }
.wordmark { letter-spacing: -.05em; }

/* Sound rings rippling out from the phone, and an equalizer on the water */
.ripples { position: absolute; z-index: 0; inset: 50% auto auto 50%; width: min(640px, 94vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.ripples i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgb(var(--acc-rgb) / .5); opacity: 0; animation: ripple 5.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.ripples i:nth-child(2) { animation-delay: -1.8s; border-color: rgb(var(--acc2-rgb) / .5); }
.ripples i:nth-child(3) { animation-delay: -3.6s; border-color: rgb(255 209 138 / .35); }
@keyframes ripple { 0% { transform: scale(.38); opacity: .95; } 100% { transform: scale(1.05); opacity: 0; } }
.eq { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 0 4%; opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.eq b { flex: 1; max-width: 12px; height: 100%; border-radius: 6px 6px 0 0; transform-origin: 50% 100%; background: linear-gradient(180deg, rgb(var(--acc2-rgb)), rgb(var(--acc-rgb) / .2)); animation: eq 1.6s ease-in-out infinite; }
.eq b:nth-child(3n) { animation-duration: 1.2s; } .eq b:nth-child(4n) { animation-duration: 1.9s; animation-delay: -.6s; }
.eq b:nth-child(5n) { animation-duration: 1.4s; animation-delay: -.3s; } .eq b:nth-child(7n) { animation-delay: -.9s; }
@keyframes eq { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(.85); } }
@media (max-width: 719.98px) { .eq b:nth-child(n+26) { display: none; } .eq { height: 80px; } }
.hero-visual .o1 { left: 0; top: 16%; } .hero-visual .o2 { right: 0; top: 34%; } .hero-visual .o3 { left: 6%; bottom: 12%; } .hero-visual .o4 { right: 6%; bottom: 4%; }
@media (max-width: 979.98px) { .hero-visual .o1 { left: 0; top: 6%; } .hero-visual .o2 { right: 0; top: 20%; } .hero-visual .o3 { left: 2%; bottom: 8%; } .hero-visual .o4 { right: 2%; bottom: 2%; } }
@media (max-width: 479.98px) { .hero-visual .orbit-ic { width: 46px; } .hero-visual .o1 { left: -6px; top: 34%; } .hero-visual .o2 { right: -6px; top: 58%; } .hero-visual .o3, .hero-visual .o4 { display: none; } }

/* ---------- The app, in the phone (mirrors Hearnify's home) ---------- */
.hm { position: absolute; inset: 0; padding: 40px 10px 10px; display: flex; flex-direction: column; gap: 7px; font-family: var(--font); color: #F3EEFF; font-size: 10.5px; line-height: 1.3; }
.hm-top { display: flex; align-items: center; gap: 8px; }
.hm-ava { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #1A1030; background: linear-gradient(150deg, #E9DDFF, #B794FF); }
.hm-name b { display: block; font-size: 12.5px; font-weight: 800; }
.hm-name small { color: #A79DC9; font-size: 9px; }
.hm-drop { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #1F1636; border: 1px solid #3A2C5C; font-weight: 800; }
.hm-drop i { width: 9px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(180deg, #9FD8F5, #5B8BFF); }
.hm-card { border-radius: 14px; background: linear-gradient(180deg, #1C1432, #150F28); border: 1px solid #33264F; }
.hm-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 6px; }
.hm-stats > span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hm-stats > span + span { border-left: 1px solid #33264F; }
.hm-stats img { width: 22px; height: 22px; }
.hm-stats b { display: block; font-size: 12px; font-weight: 800; }
.hm-stats small { display: block; font-size: 8.5px; color: #A79DC9; }
.hm-live { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 999px; background: #140E26; border: 1px solid #33264F; white-space: nowrap; font-size: 9px; color: #B9AEDD; }
.hm-live b { flex: none; padding: 1px 7px; border-radius: 999px; background: #3B2A66; color: #E4D7FF; font-size: 8px; letter-spacing: .08em; }
.hm-live .tk { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hm-live .tk span { display: inline-block; padding-left: 100%; animation: ticker 16s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
.hm-mission { display: flex; align-items: center; gap: 8px; padding: 7px 8px; }
.hm-mission img { width: 24px; height: 24px; }
.hm-mission b { display: block; font-size: 10.5px; }
.hm-mission .bar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: #2A2045; overflow: hidden; }
.hm-mission .bar i { display: block; width: 62%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8AF2D7, #C4A1FF); }
.hm-mission em { margin-left: auto; font-style: normal; padding: 5px 9px; border-radius: 999px; background: #2A1F45; border: 1px solid #4A3878; font-weight: 800; font-size: 9.5px; }
.hm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 999px; background: #140E26; border: 1px solid #33264F; }
.hm-tabs b { padding: 6px 0; border-radius: 999px; text-align: center; font-size: 10.5px; color: #B9AEDD; }
.hm-tabs b.on { color: #1A1030; background: linear-gradient(180deg, #F1E9FF, #CDB4FF); box-shadow: 0 4px 14px -4px rgb(196 161 255 / .8); }
.np { position: relative; flex: 1; min-height: 0; padding: 10px; overflow: hidden; display: flex; flex-direction: column; }
.np-top { display: flex; align-items: center; gap: 7px; }
.np-art { width: 30px; height: 30px; border-radius: 8px; background: conic-gradient(from 210deg, #1B0F33, #7C5CFF, #FFB38A, #8AF2D7, #1B0F33); box-shadow: inset 0 0 0 3px rgb(0 0 0 / .25); }
.np-top small { font-size: 8.5px; letter-spacing: .14em; font-weight: 800; color: #CDB8FF; }
.np-top small i { display: inline-block; width: 3px; height: 8px; margin-right: 1px; border-radius: 2px; background: #FFB38A; transform-origin: 50% 100%; animation: eq 1s ease-in-out infinite; }
.np-top small i:nth-child(2) { animation-delay: -.3s; } .np-top small i:nth-child(3) { animation-delay: -.6s; } .np-top small i:nth-child(4) { animation-delay: -.15s; }
.np h4 { margin-top: 9px; font: 800 18px/1.1 var(--font); letter-spacing: -.02em; }
.np p { color: #A79DC9; font-size: 10px; }
.np-wave { position: absolute; right: -36px; top: 74px; width: 230px; opacity: .95; animation: wave 6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); } 50% { transform: translate3d(-10px, -6px, 0) rotate(2deg); } }
.np-prog { margin-top: auto; position: relative; height: 4px; border-radius: 4px; background: #2A2045; overflow: hidden; }
.np-prog i { position: absolute; inset: 0; transform-origin: 0 50%; border-radius: 4px; background: linear-gradient(90deg, #FFB38A, #C4A1FF); animation: listen 9s linear infinite; }
@keyframes listen { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
.np-meta { margin-top: 6px; display: flex; justify-content: flex-end; font-size: 8.5px; color: #A79DC9; }
.np-chips { margin-top: 7px; display: flex; gap: 6px; }
.np-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #1E1636; border: 1px solid #3A2C5C; font-size: 9.5px; font-weight: 800; }
.np-chips img { width: 13px; height: 13px; }
.hm-play { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px; }
.hm-play .pb { padding: 9px 16px; border-radius: 999px; background: linear-gradient(180deg, #F1E9FF, #CDB4FF); color: #1A1030; font-weight: 900; font-size: 12px; box-shadow: 0 6px 18px -6px rgb(196 161 255 / .9); }
.hm-play b { display: block; font-size: 11px; }
.hm-play small { color: #A79DC9; font-size: 9px; }
.hm-play em { position: absolute; right: 8px; top: -8px; font-style: normal; padding: 2px 7px; border-radius: 999px; background: linear-gradient(180deg, #FFD7A8, #FFB38A); color: #3A1C05; font-weight: 900; font-size: 8.5px; }
.hm-play img { width: 26px; height: 26px; }
.hm-nav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px; }
.hm-nav span { display: grid; justify-items: center; gap: 2px; font-size: 8.5px; font-weight: 700; color: #C9BEEA; }
.hm-nav img { width: 22px; height: 22px; }

/* ---------- Section visuals ---------- */
.player { position: relative; z-index: 1; width: min(450px, 100%); padding: 22px 22px 60px; border-radius: 26px; background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); overflow: hidden; }
.player .np-wave { position: absolute; right: -60px; top: 40px; width: 360px; opacity: .9; }
.player-top { position: relative; display: flex; align-items: center; gap: 12px; }
.player-top img { width: 54px; height: 54px; }
.player-top small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: rgb(var(--acc2-rgb)); }
.player-top b { font-size: 20px; }
.player h4 { position: relative; margin-top: 64px; font: 800 30px/1.05 var(--font); letter-spacing: -.03em; }
.player p { position: relative; color: var(--ink-3); font-weight: 700; }
.player .np-prog { margin-top: 18px; height: 6px; }
.player-row { position: relative; margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.player-row span { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.player-row span.boost { color: #2A1405; background: linear-gradient(180deg, #FFD7A8, #FFB38A); border-color: transparent; }
.player .eq { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; opacity: .3; }

/* Pulse "try the beat" */
.beat { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; text-align: center; }
.beat-ring { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
.beat-ring::before, .beat-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--acc-rgb) / .55); opacity: 0; }
.beat-ring.go::before { animation: beatwave .75s ease-out infinite; }
.beat-ring.go::after { animation: beatwave .75s ease-out .375s infinite; border-color: rgb(var(--acc2-rgb) / .35); }
@keyframes beatwave { from { transform: scale(.45); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.beat-core { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #E6D9FF 18%, #A47BFF 60%, #5B3BD6); box-shadow: 0 0 0 10px rgb(var(--acc2-rgb) / .14), 0 20px 50px -14px rgb(164 123 255 / .9); }
.beat-ring.go .beat-core { animation: thump .75s cubic-bezier(.2, .8, .3, 1) infinite; }
@keyframes thump { 0% { transform: scale(1.12); } 30% { transform: scale(.96); } 100% { transform: scale(1); } }
.beat-core img { width: 70px; height: 70px; }
.beat-ring.flash .beat-core { box-shadow: 0 0 0 16px rgb(var(--acc-rgb) / .3), 0 20px 50px -14px rgb(164 123 255 / .9); }
.beat-ring.hit .beat-core { outline: 3px solid rgb(var(--acc-rgb)); outline-offset: 6px; }
.beat-out { min-height: 28px; font-size: 15px; color: var(--ink-2); }
.beat-out .r-p { color: #8AF2D7; } .beat-out .r-g { color: #FFD18A; } .beat-out .r-m { color: #FF8FA3; }
.beat-out b { font-size: 17px; }
.beat .btn { min-width: 210px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.beat-note { font-size: 13px; color: var(--ink-3); }
@media (max-width: 479.98px) {
  .player { padding: 18px 18px 52px; }
  .player h4 { margin-top: 52px; font-size: 26px; }
  .player-row { gap: 6px; }
  .player-row span { padding: 5px 10px; font-size: 12px; }
}
