/* Gurrulabs studio site. Home = light lavender look; Pulse page and the Pulse card = Pulse's dark look
   (tokens from Pulse's design system). Outfit is self-hosted. */
@font-face { font-family: Outfit; src: url(/assets/outfit.ttf) format('truetype'); font-weight: 100 900; font-display: swap; }
:root, .pulse-scope {
  --bg1:#141A38; --bg2:#080B1A; --surface:#141A34; --surface2:#1C2346; --line:#283058;
  --text:#F4F5FF; --text2:#B4B9DC; --text3:#868DBA; /* build value of text3 */
  --accent:#8EA2FF; --on-accent:#0A0F2A; --pass:#7EE8C2; --miss:#FF8F87; --gold:#FFD47A;
  --m-exact:#8EA2FF; --m-hidden:#C49BFF; --m-interval:#6FD6F2; --m-reaction:#FF9F8A; --m-batak:#A8E68A;
  /* app colours: Raffy from its icon, Cyberpunk Detective and Lull from their Leads */
  --raffy:#7ACFAF; --cyber:#FF2E97; --lull:#F0B48A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg2); }
body { min-height: 100vh; color: var(--text); font: 400 16px/1.5 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
       background: radial-gradient(130% 60% at 50% 0%, var(--bg1) 0%, var(--bg2) 70%) no-repeat, var(--bg2); }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; color: inherit; background: none; }
.tnum { font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Header / footer ── */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 300; letter-spacing: .01em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 20px; background: color-mix(in srgb, var(--surface2) 70%, transparent); }
.langs a { height: 32px; min-width: 40px; padding: 0 10px; border-radius: 16px; font-size: 13px; font-weight: 500; color: var(--text3); display: inline-flex; align-items: center; justify-content: center; }
.langs a.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text2); }
.crumb svg.i { width: 18px; height: 18px; }
footer { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; color: var(--text3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ── Buttons ── */
.btn { height: 54px; border-radius: 27px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 500; width: 100%;
       display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; text-align: center; line-height: 1.15; }
.btn-2 { height: 46px; color: var(--text2); font-size: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: center; }

/* Google Play badge: Google's official artwork per locale, sized by height */
.gp { display: inline-flex; align-items: center; }
.gp img { display: block; height: 62px; width: auto; }
.ic img, .ic svg, .bigic img, .bigic svg, .orbit a img, .orbit a svg { width: 100%; height: 100%; display: block; }

/* ── Studio home: light, lavender brand look. Pulse keeps its dark look on its own page
      and inside its card (.pulse-scope re-applies Pulse's tokens). Each app card shows its app's own colours. ── */
.fapps { display: flex; flex-wrap: wrap; gap: 6px 18px; } .fapps b { color: var(--text2); font-weight: 500; } .fapps a:hover { color: var(--text); }
.fbig { display: none; }
html:has(body.light) { background: #F5F4FF; }
body.light { --bg1:#FFFFFF; --bg2:#F5F4FF; --surface:#FFFFFF; --surface2:#ECEAFF; --line:#E2DFF7; --text:#1A1838; --text2:#4C4970; --text3:#6E6A92;
             --accent:#6A4CFF; --on-accent:#FFFFFF; --band:#1A1838; background: var(--bg2); }
/* Brand type: Outfit (Pulse's font) everywhere, heavier weights for display */
:root { --display: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif; }
.pulse-scope { color: var(--text); }
.light .brand { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.light .brand .dot { background: conic-gradient(var(--m-exact) 0 25%, var(--raffy) 0 50%, var(--cyber) 0 75%, var(--lull) 0); box-shadow: none; width: 14px; height: 14px; }
.hnav { display: flex; gap: 28px; margin-left: auto; margin-right: 24px; font-size: 15px; color: var(--text2); } .hnav a:hover { color: var(--text); }
.kick { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.kick::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

/* Hero */
.l-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: 580px; padding: 32px 0; }
.l-hero h1 { margin-top: 20px; font: 500 clamp(40px, 5.4vw, 72px)/1.04 var(--display); letter-spacing: -.035em; max-width: 640px; }
.l-hero h1 em { font-style: normal; color: var(--accent); }
.l-hero .intro { margin-top: 26px; font-size: 20px; line-height: 1.55; color: var(--text2); max-width: 540px; }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.hero-acts .btn { width: auto; height: 58px; border-radius: 29px; padding: 0 30px; }
.txtlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; padding-bottom: 2px; border-bottom: 1.5px solid currentColor; }
.txtlink svg.i { width: 18px; height: 18px; }
.orbit { position: relative; height: 500px; }
/* One soft glow in the palette's accent (owner: no multicolour blobs behind the icons) */
.orbit::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%); }
.orbit a { position: absolute; border-radius: 26%; overflow: hidden; animation: float 7s ease-in-out infinite;
           box-shadow: 0 34px 56px -26px rgba(21,22,27,.5), 0 0 0 1px rgba(21,22,27,.06); }
.orbit a:nth-of-type(1) { width: 176px; height: 176px; left: 24%; top: 6%; --r: -6deg; }
.orbit a:nth-of-type(2) { width: 124px; height: 124px; right: 2%; top: 26%; --r: 8deg; animation-delay: -2s; }
.orbit a:nth-of-type(3) { width: 136px; height: 136px; left: 4%; bottom: 12%; --r: 5deg; animation-delay: -4s; }
.orbit a:nth-of-type(4) { width: 108px; height: 108px; right: 20%; bottom: 4%; --r: -9deg; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(var(--r)); } }

/* Sections */
.l-sec { margin-top: 96px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.sec-h h2 { margin-top: 14px; font: 500 clamp(34px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.03em; }
.sec-h .lead { max-width: 400px; font-size: 18px; color: var(--text2); }

/* App tiles: each one shows its app's own world; colours come from the apps */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 40px; }
.tile { --fg: #fff; --fg2: rgba(255,255,255,.72); grid-column: span 6; min-height: 560px; border-radius: 32px; overflow: hidden; position: relative; isolation: isolate;
        display: flex; flex-direction: column; color: var(--fg); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.tile:hover { transform: translateY(-5px); box-shadow: 0 36px 70px -34px rgba(21,22,27,.45); }
.tile.w7 { grid-column: span 7; } .tile.w5 { grid-column: span 5; }
.tile .art { flex: 1; position: relative; min-height: 270px; display: grid; place-items: center; overflow: hidden; }
.tile .meta { padding: 0 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.tile .row { display: flex; align-items: center; gap: 12px; }
.tile .ic { width: 48px; height: 48px; border-radius: 13px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.tile .cat { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); }
.tile h3 { margin-top: 6px; font: 500 36px/1.05 var(--display); letter-spacing: -.03em; }
.tile p { max-width: 460px; font-size: 16px; color: var(--fg2); }
.tile .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.lnk { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 26px; border-radius: 27px; font-weight: 500; font-size: 16px;
       background: var(--bb, var(--accent)); color: var(--bf, var(--on-accent)); transition: gap .2s; }
.lnk:hover { gap: 12px; } .lnk svg.i { width: 18px; height: 18px; }
.tag2 { align-self: flex-start; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; font-weight: 500;
        background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.bigic { position: relative; width: 132px; height: 132px; border-radius: 30%; overflow: hidden; }

.t-pulse { background: radial-gradient(120% 90% at 70% 0%, var(--bg1), var(--bg2) 75%); --fg: var(--text); --fg2: var(--text2); --bb: var(--accent); --bf: var(--on-accent); }
.pring { position: relative; width: 260px; height: 260px; display: grid; place-items: center; text-align: center; }
.pring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pring .tr { fill: none; stroke: var(--line); stroke-width: 2; }
.pring .pg { fill: none; stroke: var(--m-exact); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 754; stroke-dashoffset: 754;
             animation: sweep 3s linear infinite; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--m-exact) 60%, transparent)); }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.pring small { display: block; font-size: 13px; color: var(--text3); }
.pring b { font: 200 66px/1 Outfit, system-ui, sans-serif; letter-spacing: -.03em; } .pring b span { margin-left: 3px; font-size: 22px; color: var(--text2); }

.t-raffy { background: linear-gradient(160deg, #EEF9F4, #CBEDDF); --fg: #12352A; --fg2: #3E6357; --bb: #12352A; --bf: #fff; }
.t-raffy .ic { box-shadow: 0 0 0 1px rgba(18,53,42,.12); }
.t-raffy .bigic { box-shadow: 0 26px 44px -22px rgba(18,53,42,.5); }
.chip2 { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; background: #fff;
         color: #12352A; font-size: 14px; font-weight: 500; box-shadow: 0 14px 26px -16px rgba(18,53,42,.45); animation: float 8s ease-in-out infinite; --r: 0deg; }
.chip2 i { width: 8px; height: 8px; border-radius: 50%; background: #2C9C78; }
.chip2:nth-of-type(1) { left: 8%; top: 20%; } .chip2:nth-of-type(2) { right: 7%; top: 42%; animation-delay: -3s; } .chip2:nth-of-type(3) { left: 16%; bottom: 12%; animation-delay: -5s; }

.t-cyber { background: radial-gradient(90% 70% at 50% 25%, color-mix(in srgb, #FF2E97 26%, #0A0E12), #0A0E12 70%); --fg: #F2F0FF; --fg2: rgba(232,232,255,.7); --bb: #00D4FF; --bf: #0A0E12; }
.t-cyber .floor { position: absolute; left: -30%; right: -30%; bottom: -10%; height: 70%; transform: perspective(320px) rotateX(62deg); transform-origin: bottom;
                  background-image: linear-gradient(rgba(255,46,151,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,.45) 1px, transparent 1px);
                  background-size: 44px 44px; -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); }
.t-cyber .sun { position: absolute; top: 12%; width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(#FF2E97, #00D4FF 90%);
                box-shadow: 0 0 80px rgba(255,46,151,.45); -webkit-mask-image: repeating-linear-gradient(#000 0 16px, transparent 16px 21px); mask-image: repeating-linear-gradient(#000 0 16px, transparent 16px 21px); }
.t-cyber .bigic { width: 112px; height: 112px; box-shadow: 0 0 0 1px rgba(0,212,255,.5), 0 0 40px rgba(0,212,255,.25); }

.t-lull { background: radial-gradient(80% 48% at 50% 36%, rgba(240,180,138,.5), transparent 72%), linear-gradient(180deg, #17121A 0%, color-mix(in srgb, #C9B6E4 24%, #17121A) 100%); --fg: #FFF4EC; --fg2: rgba(255,244,236,.76); }
.waves { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.waves span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(240,180,138,.7); opacity: 0; animation: ripple 6s ease-out infinite; }
.waves span:nth-child(2) { animation-delay: -2s; } .waves span:nth-child(3) { animation-delay: -4s; }
@keyframes ripple { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.waves .bigic { width: 84px; height: 84px; }

/* Who we are */
.about2 { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; margin-top: 128px; padding-top: 56px; border-top: 1px solid var(--line); }
.about2 .big { margin-top: 16px; font: 500 clamp(32px, 3.6vw, 46px)/1.1 var(--display); letter-spacing: -.03em; }
.about2 .big em { font-style: normal; color: var(--accent); }
.about2 .body { font-size: 20px; line-height: 1.6; color: var(--text2); }
.plist { list-style: none; margin-top: 36px; counter-reset: p; }
.plist li { display: grid; grid-template-columns: 64px 1fr; padding: 22px 0; border-top: 1px solid var(--line); counter-increment: p; }
.plist li::before { content: counter(p, decimal-leading-zero); font: 500 15px/1.6 var(--display); color: var(--accent); }
.plist b { display: block; font-size: 20px; font-weight: 500; } .plist span { color: var(--text2); }

/* Closing band → the Pulse test (the site's one funnel) */
.closer { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
          margin-top: 128px; padding: 72px 64px; border-radius: 40px; background: var(--band); color: #FFFFFF; }
.closer::before { content: ""; position: absolute; right: -140px; top: -220px; width: 560px; height: 560px; border-radius: 50%;
                  background: radial-gradient(circle, color-mix(in srgb, var(--m-exact) 50%, transparent), transparent 65%); }
.closer > * { position: relative; }
.closer h2 { font: 500 clamp(34px, 4vw, 54px)/1.05 var(--display); letter-spacing: -.03em; }
.closer p { max-width: 520px; margin-top: 14px; font-size: 19px; color: rgba(246,244,238,.72); }
.closer .lnk { --bb: #F6F4EE; --bf: #15161B; height: 62px; padding: 0 32px; font-size: 17px; }

.light footer { margin-top: 96px; border-top: 0; }
.light .fbig { display: block; flex-basis: 100%; margin-bottom: 28px; white-space: nowrap; overflow: hidden;
               font: 500 clamp(64px, 15vw, 200px)/.9 var(--display); letter-spacing: -.05em; color: var(--surface2); }
@media (prefers-reduced-motion: reduce) {
  .orbit a, .chip2, .waves span { animation: none; } .waves span { opacity: .35; } .waves span:nth-child(2) { transform: scale(.7); } .waves span:nth-child(3) { transform: scale(.45); }
  .pring .pg { animation: none; stroke-dashoffset: 196; } .tile:hover { transform: none; }
}

/* ── Pulse page ── */
.p-hero { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 56px; align-items: center; padding: 28px 0 24px; }
.p-hero .app { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.p-hero .app .ic { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; }
.p-hero .app b { font-size: 20px; font-weight: 500; display: block; } .p-hero .app span { font-size: 14px; color: var(--text3); }
.p-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 300; line-height: 1.06; letter-spacing: -.01em; }
.p-hero .sub { margin-top: 16px; font-size: 18px; color: var(--text2); max-width: 480px; }
.p-hero .cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { height: 32px; padding: 0 12px; border-radius: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text2);
        background: color-mix(in srgb, var(--surface2) 70%, transparent); }
.chip svg.i { width: 16px; height: 16px; color: var(--pass); }
section.blk { margin-top: 88px; }
section.blk > h2 { font-size: 32px; font-weight: 300; line-height: 1.15; }
section.blk > p.lead { color: var(--text2); margin-top: 8px; font-size: 17px; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-top: 24px; }
.mrow { --c: var(--accent); height: 84px; border-radius: 22px; display: flex; align-items: center; gap: 14px; padding: 0 18px 0 14px;
        background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 60%, transparent) 40%, color-mix(in srgb, var(--c) 5%, color-mix(in srgb, var(--surface) 60%, transparent))); }
.mi { width: 44px; height: 44px; border-radius: 15px; flex: none; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.mrow .tx b { display: block; font-weight: 500; font-size: 17px; } .mrow .tx span { display: block; font-size: 14px; color: var(--text3); }
.shots { display: flex; gap: 16px; overflow-x: auto; margin-top: 24px; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shot { flex: none; display: block; width: auto; height: 384px; aspect-ratio: 540 / 811; border-radius: 22px; scroll-snap-align: start; background: var(--surface); }
.band { margin-top: 88px; border-radius: 32px; padding: 40px; background: var(--surface); position: relative; overflow: hidden;
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.band > * { position: relative; } .band h2 { font-size: 32px; font-weight: 300; } .band p { color: var(--text2); margin-top: 4px; }

/* ── The test panel (game screen, web size) ── */
.game { --c: var(--m-exact); width: 384px; max-width: 100%; height: 620px; border-radius: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column;
        background: radial-gradient(130% 60% at 50% 0%, var(--bg1) 0%, var(--bg2) 70%); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.8);
        user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.game.reaction { --c: var(--m-reaction); }
.tabs { display: flex; gap: 6px; padding: 14px 14px 0; position: relative; z-index: 2; }
.tabs button { flex: 1; height: 40px; border-radius: 20px; font-size: 15px; font-weight: 500; color: var(--text3); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
               background: color-mix(in srgb, var(--surface2) 50%, transparent); }
.tabs button svg.i { width: 18px; height: 18px; }
.tabs button.on { color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
.stage { flex: 1; position: relative; display: grid; place-items: center; }
.hint { text-align: center; font-size: 14px; color: var(--text3); min-height: 21px; padding: 0 20px; position: relative; z-index: 2; }
.go { width: 124px; height: 124px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 20px; font-weight: 500; flex: none; display: block;
      margin: 22px auto 44px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 5%, transparent); position: relative; z-index: 2; }
.go:active { transform: scale(.96); }
.go:focus-visible, .btn:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.watch { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.watch .ticks { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(color-mix(in srgb, var(--c) 28%, transparent) 0 .7deg, transparent .7deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 141px, #000 142px, #000 149px, transparent 150px); mask: radial-gradient(circle, transparent 141px, #000 142px, #000 149px, transparent 150px); }
.watch svg.ring { position: absolute; inset: 14px; width: 272px; height: 272px; transform: rotate(-90deg); }
.watch .track { fill: none; stroke: color-mix(in srgb, var(--line) 80%, transparent); stroke-width: 2; }
.watch .prog { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 50%, transparent)); }
.watch.v .prog { stroke: var(--v); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--v) 50%, transparent)); } .watch.v .n { color: var(--v); }
.face { position: relative; text-align: center; }
.face small { display: block; font-size: 14px; color: var(--text3); }
.face .n { font-size: 84px; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.face .n span { font-size: 28px; margin-left: 4px; color: var(--text2); letter-spacing: 0; }
.gantry { display: flex; gap: 14px; padding: 22px; border-radius: 30px; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.lamp { width: 58px; height: 58px; border-radius: 50%; background: #0B1024; box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
.lamp.on { background: radial-gradient(circle at 40% 35%, #FFE1D8, var(--c) 45%, color-mix(in srgb, var(--c) 70%, #7A2A1E) 100%);
           box-shadow: 0 0 26px color-mix(in srgb, var(--c) 65%, transparent), 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.stage.v .lamp { animation: vglow 1.2s ease-out both; }
@keyframes vglow { 0% { background: var(--v); box-shadow: 0 0 30px var(--v); } 100% { background: color-mix(in srgb, var(--v) 22%, #0B1024); box-shadow: 0 0 0 1px color-mix(in srgb, var(--v) 40%, transparent); } }
.rface { text-align: center; margin-top: 30px; min-height: 92px; }
.rface .n { font-size: 76px; font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.rface .n span { font-size: 26px; margin-left: 4px; color: var(--text2); letter-spacing: 0; }
.rface small { display: block; font-size: 14px; color: var(--text3); margin-top: 6px; }
.col { display: flex; flex-direction: column; align-items: center; }
.tapnote { text-align: center; font-size: 15px; color: var(--text2); min-height: 190px; display: grid; place-items: center; position: relative; z-index: 2; }
.perfect { --v: var(--gold); } .pass { --v: var(--pass); } .miss { --v: var(--miss); }

/* Result sheet, as in the app; the main button sends to Play */
.scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg2) 66%, transparent); z-index: 3; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; border-radius: 32px 32px 0 0; padding: 12px 24px 20px;
         background: radial-gradient(130% 85% at 50% 0%, color-mix(in srgb, var(--v) 20%, var(--surface2)), color-mix(in srgb, var(--v) 4%, var(--surface2)) 60%, var(--surface2) 90%);
         box-shadow: inset 0 1px 0 color-mix(in srgb, var(--v) 35%, transparent); }
.slide .scrim { animation: fade .3s ease-out both; } .slide .sheet { animation: up .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .slide .scrim, .slide .sheet, .stage.v .lamp { animation: none; } }
.sheet .btn.v { background: linear-gradient(180deg, color-mix(in srgb, var(--v) 88%, white), var(--v)); color: color-mix(in srgb, var(--v) 18%, #05070F);
                box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--v) 70%, transparent); }
.grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
.vtag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 8px; border-radius: 15px; font-size: 14px; font-weight: 500;
        color: var(--v); background: color-mix(in srgb, var(--v) 14%, transparent); }
.miss .vtag { color: #FFAFA9; } /* build value for contrast */
.vtag svg { width: 18px; height: 18px; }
.sheet .big { font-size: 60px; font-weight: 200; line-height: 1.05; margin-top: 10px; letter-spacing: -.02em; }
.sheet .big span { font-size: 24px; margin-left: 4px; color: var(--text2); }
.sheet .d { color: var(--text2); font-size: 16px; }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--bg2); margin: 22px 0 10px; }
.meter .z { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.meter .t { position: absolute; top: -5px; bottom: -5px; width: 1.5px; margin-left: -.75px; background: color-mix(in srgb, var(--gold) 70%, transparent); }
.meter .y { position: absolute; top: -4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 4px var(--surface2); }
.ml { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); }
.more { margin: 16px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.sheet .btn svg { width: 20px; height: 22px; }
.nojs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; color: var(--text2); }

/* ── 390 px phones ── */
@media (max-width: 860px) {
  .p-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 8px; }
  .p-hero .game { order: 2; margin: 0 auto; }
  .p-hero .txt { display: contents; }
  .p-hero .head { order: 1; } .p-hero .cta, .p-hero .facts { order: 3; } .p-hero .cta { margin-top: 0; }
  .top { height: 60px; } .brand { font-size: 19px; }
  .langs a { min-width: 34px; padding: 0 6px; }
  section.blk { margin-top: 64px; } .band { padding: 28px 24px; margin-top: 64px; }
  .modes { grid-template-columns: 1fr; }
  .hnav { display: none; }
  .l-hero { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 20px 0 0; }
  .l-hero .intro { font-size: 18px; }
  .orbit { height: 280px; } .orbit a { scale: .6; }
  .l-sec { margin-top: 64px; }
  .bento { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .tile, .tile.w7, .tile.w5 { grid-column: auto; min-height: 0; border-radius: 28px; }
  .tile .art { min-height: 250px; } .tile .meta { padding: 0 22px 24px; } .tile h3 { font-size: 40px; }
  .chip2 { scale: .9; }
  .about2 { grid-template-columns: 1fr; gap: 20px; margin-top: 88px; padding-top: 40px; } .about2 .body { font-size: 18px; }
  .closer { grid-template-columns: 1fr; gap: 28px; margin-top: 88px; padding: 44px 24px; border-radius: 32px; }
}
@media (max-width: 400px) { .wrap { padding: 0 16px; } .game { height: 600px; } .watch { transform: scale(.94); } }
