/* Bubble Pop - full-window canvas + HUD + menu / world map / cards. Everything scales with rem / clamp from phones to 4K. */
:root { --bp-pink: #FF6FB5; --bp-ink: #0F0C22; --bp-glass: rgba(15, 12, 34, .62); }
html { font-size: clamp(14px, calc(9px + .45vw), 26px); height: 100%; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: #0F0C22; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; }

.bp { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0F0C22; --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --fx: 0px; --fw: 100vw; --ft: 60px; --S: 40px; --sx: 50vw; --sy: 80vh; --fy: 100px; }
.bp-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- top bar ---------- */
.bp-top { position: absolute; z-index: 45; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(12px, var(--safe-t)) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l)); pointer-events: none; }
.bp-top > * { pointer-events: auto; }
.bp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; }
.bp-brand:hover { background: rgba(15, 12, 34, .8); transform: translateY(-1px); }
.bp-brand img { width: 34px; height: 34px; }
.bp-brand b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.bp-brand b i { font-style: normal; color: var(--lime); }
.bp.is-play .bp-brand { display: none; }
.bp-tools { display: flex; gap: 8px; margin-left: auto; }
.bp-tool { width: 46px; height: 46px; border: 0; padding: 0; display: grid; place-items: center; border-radius: 13px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; transition: background .15s, transform .12s; color: #fff; }
.bp-tool:hover { background: rgba(15, 12, 34, .85); transform: translateY(-1px); }
.bp-tool svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bp-tool--pause { display: none; }
.bp.is-play .bp-tool--pause { display: grid; }
@media (pointer: coarse) { .bp-tool { width: 48px; height: 48px; } .bp-tool--full { display: none; } }
/* tall layouts: the tools sit in the HUD row, left of the score */
.bp[data-mode="tall"].is-play .bp-top { padding: 0; }
.bp[data-mode="tall"].is-play .bp-tools { position: absolute; left: calc(var(--fx) + 2px); top: calc(var(--safe-t) + 10px); margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bp[data-mode="tall"].is-play .bp-tool { width: 38px; height: 38px; border-radius: 12px; }
.bp[data-mode="tall"].is-play .bp-tool--full { display: none; }

/* ---------- HUD ---------- */
.bp-hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; color: #fff; font-size: 1rem; }
.bp-hud[hidden] { display: none; }
.bp-hud__l, .bp-hud__r { position: absolute; display: grid; gap: .55em; align-content: start; }
.bp[data-mode="wide"] .bp-hud__l { right: calc(100% - var(--fx) + 22px); top: calc(var(--ft) + 4px); width: min(15rem, calc(var(--fx) - 44px)); justify-items: stretch; }
.bp[data-mode="wide"] .bp-hud__r { left: calc(var(--fx) + var(--fw) + 22px); top: calc(var(--ft) + 66px); width: min(15rem, calc(var(--fx) - 44px)); }
.bp[data-mode="tall"] .bp-hud__l { left: calc(var(--fx) + 92px); top: calc(var(--safe-t) + 6px); width: calc(var(--fw) - 92px - 126px); }
.bp[data-mode="tall"] .bp-hud__r { left: calc(var(--fx) + var(--fw) - 120px); top: calc(var(--safe-t) + 6px); width: 120px; }
.bp-card { padding: .55em .9em; border-radius: 15px; background: var(--bp-glass); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; line-height: 1.1; min-width: 0; }
.bp-card small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.bp-card b { display: block; font-family: var(--font-d); font-weight: 400; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-lv b { font-size: 1.2rem; color: #fff; margin: .15em 0 .1em; }
.bp-lv i { font-style: normal; font-weight: 800; font-size: .72rem; color: var(--bp-pink); letter-spacing: .08em; text-transform: uppercase; }
.bp-score b { font-size: 1.75rem; font-variant-numeric: tabular-nums; margin-top: .1em; }
.bp-rate { display: flex; align-items: center; gap: .5em; margin-top: .35em; }
.bp-rate span { display: inline-flex; gap: 1px; }
.bp-rate svg { width: 1.05rem; height: 1.05rem; }
.bp-rate em { font-style: normal; font-size: .62rem; font-weight: 800; color: var(--mute); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-star { fill: #3a3468; stroke: rgba(255, 255, 255, .25); stroke-width: 1.2; stroke-linejoin: round; }
.bp-star.on { fill: #FFD23F; stroke: #B27A00; filter: drop-shadow(0 0 4px rgba(255, 210, 63, .55)); }
.bp-goal { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-areas: "i t" "b b" "x x"; gap: .35em .6em; align-items: center; }
.bp-goal__ic { grid-area: i; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; }
.bp-goal__ic canvas, .bp-goal__ic svg { width: 100%; height: 100%; }
.bp-goal__ic svg { fill: none; stroke: var(--bp-pink); stroke-width: 2; }
.bp-goal__t { grid-area: t; min-width: 0; }
.bp-goal__t b { font-size: 1.15rem; }
.bp-bar { grid-area: b; height: .5em; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--bp-pink), #FFD23F); box-shadow: 0 0 .8em rgba(255, 111, 181, .7); transition: width .35s var(--ease); }
.bp-goal p { grid-area: x; margin: 0; font-size: .72rem; font-weight: 700; color: #D9D3FF; line-height: 1.25; }
.bp-best b { font-size: 1.05rem; margin-top: .15em; }
.bp[data-mode="tall"] .bp-lv, .bp[data-mode="tall"] .bp-best, .bp[data-mode="tall"] .bp-goal p { display: none; }
.bp[data-mode="tall"] .bp-card { padding: .4em .7em; }
.bp[data-mode="tall"] .bp-score b { font-size: 1.3rem; }
.bp[data-mode="tall"] .bp-goal { grid-template-columns: 2rem 1fr; grid-template-areas: "i t" "b b"; padding: .45em .6em; }
.bp[data-mode="tall"] .bp-goal__ic { width: 2rem; height: 2rem; }
.bp[data-mode="tall"] .bp-goal__t b { font-size: .95rem; }
.bp[data-mode="tall"] .bp-rate { margin-top: .2em; }
.bp[data-mode="tall"] .bp-rate em { font-size: .56rem; }
.pulse { animation: bppulse .35s var(--ease); }
@keyframes bppulse { 0% { transform: scale(1.12); box-shadow: 0 0 0 2px var(--bp-pink), 0 0 1.4em rgba(255, 111, 181, .7); } 100% { transform: none; } }

/* ---------- banner / toast / aim hint ---------- */
.bp-banner { --bc: #FF6FB5; position: absolute; z-index: 20; left: calc(var(--fx) + var(--fw) / 2); top: calc(var(--fy) + var(--S) * 3); width: min(94vw, calc(var(--fw) + 120px)); transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; }
.bp-banner small { display: block; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.7rem, .6rem + .4vw, .95rem); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.bp-banner h2 { margin: .1em 0 .12em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(1.7rem, calc(var(--fw) * 0.13), 4.4rem); color: var(--bc); text-shadow: 0 .05em 0 rgba(0, 0, 0, .5), 0 0 .5em color-mix(in srgb, var(--bc) 55%, transparent), 0 .1em .4em rgba(0, 0, 0, .5); }
.bp-banner p { display: inline-block; margin: .2em 0 0; padding: .35em 1.1em; border-radius: 99px; background: rgba(15, 12, 34, .62); font-weight: 800; font-size: clamp(.8rem, .6rem + .5vw, 1.1rem); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; }
.bp-banner.show { animation: bpbanner 3s var(--ease) forwards; }
@keyframes bpbanner { 0% { opacity: 0; transform: translateX(-50%) scale(.7); } 10% { opacity: 1; transform: translateX(-50%) scale(1.06); } 16% { transform: translateX(-50%) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(1); } }
.bp-toast { position: absolute; z-index: 22; left: calc(var(--fx) + var(--fw) / 2); top: calc(var(--ly) - var(--S) * 3.6); transform: translateX(-50%) translateY(-8px); width: max-content; max-width: min(92vw, var(--fw) + 40px); padding: .6em 1.1em; border-radius: 16px; background: rgba(15, 12, 34, .86); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.3; text-align: center; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .18) inset, 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.bp-toast.show { opacity: 1; transform: translateX(-50%); }
.bp-toast.new { box-shadow: 0 0 0 2px var(--bp-pink) inset, 0 0 1.4em rgba(255, 111, 181, .45); }
.bp-toast.warn { box-shadow: 0 0 0 2px #FF6B5C inset, 0 0 1.2em rgba(255, 107, 92, .45); }
.bp-aim { position: absolute; z-index: 15; left: var(--sx); top: calc(var(--sy) + var(--S) * 1.1); transform: translateX(-50%); display: grid; justify-items: center; gap: .1em; pointer-events: none; text-align: center; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.bp-aim[hidden] { display: none; }
.bp-aim svg { width: 2.6rem; height: 2.6rem; animation: bpdrag 1.8s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.bp-aim b { font-family: var(--font-d); font-weight: 400; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.bp-aim span { font-size: .75rem; font-weight: 800; opacity: .9; }
@keyframes bpdrag { 0%, 100% { transform: translate(-.9rem, 0) rotate(-8deg); } 50% { transform: translate(.9rem, -.5rem) rotate(8deg); } }

/* ---------- overlay shell ---------- */
.bp-ov { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; }
.bp-ov.show { display: block; animation: bpfade .3s var(--ease); }
@keyframes bpfade { from { opacity: 0; } }
.bp-fade { position: absolute; inset: 0; z-index: 60; background: #0F0C22; opacity: 0; pointer-events: none; transition: opacity .3s; }
.bp-fade.on { opacity: 1; }

/* ---------- buttons ---------- */
.bp-btn { --bg: #2E2662; --fg: #F4F1FF; --sh: #0F0C22; display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--font-d); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; background: var(--bg); color: var(--fg); border: 0; border-radius: 15px; padding: .8em 1.3em; min-height: 48px; box-shadow: 0 5px 0 var(--sh), 0 0 0 2px rgba(255, 255, 255, .08) inset; transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .15s; text-decoration: none; }
.bp-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--sh), 0 0 0 2px rgba(255, 255, 255, .1) inset; filter: brightness(1.08); }
.bp-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sh); }
.bp-btn svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bp-btn svg.f { fill: currentColor; stroke: none; }
.bp-btn--primary { --bg: #FF6FB5; --fg: #2A0A22; --sh: #A02E73; font-size: 1.3rem; padding: .8em 1.6em; box-shadow: 0 5px 0 var(--sh), 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 0 0 4px rgba(198, 255, 61, .85); }
.bp-btn--primary:hover { box-shadow: 0 7px 0 var(--sh), 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 0 0 4px #C6FF3D; }
.bp-btn--sun { --bg: #FFD23F; --fg: #241800; --sh: #B68A00; }
.bp-btn--violet { --bg: #7C5CF0; --fg: #fff; --sh: #3B25A0; }
.bp-btn--ghost { --bg: rgba(35, 28, 77, .85); --sh: #0A0818; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bp-btn--danger { --bg: #FF4B5C; --fg: #fff; --sh: #8A1426; }
.bp-btn--sm { font-size: .88rem; padding: .6em 1em; min-height: 42px; border-radius: 12px; box-shadow: 0 3px 0 var(--sh), 0 0 0 2px rgba(255, 255, 255, .08) inset; }
.bp-shake { animation: bpnope .35s; }
@keyframes bpnope { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- main menu ---------- */
.bp-menu { min-height: 100%; display: flex; align-items: center; padding: max(76px, calc(var(--safe-t) + 66px)) max(24px, var(--safe-r)) max(24px, var(--safe-b)) max(5vw, var(--safe-l)); position: relative; }
.bp-menu::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(15, 12, 34, .78), rgba(15, 12, 34, .4) 48%, rgba(15, 12, 34, 0) 75%); }
.bp-menu__c { max-width: 38rem; width: 100%; display: grid; gap: 1rem; justify-items: start; }
.bp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6em .8em; }
.bp-eyebrow__l { width: 2.2rem; height: 3px; border-radius: 2px; background: var(--bp-pink); }
.bp-eyebrow b { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--bp-pink); }
.bp-eyebrow i { font-style: normal; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .4em .9em; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #E4DEFF; }
.bp-title { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3.4rem, 2rem + 9vw, 9.5rem); filter: drop-shadow(0 .05em 0 rgba(20, 8, 50, .6)) drop-shadow(0 .12em .3em rgba(0, 0, 0, .35)); }
.bp-title span { display: block; background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bp-title span:first-child { background-image: linear-gradient(180deg, #FFF0FA 0%, #FF8CC8 45%, #FF4FA0 100%); }
.bp-title span:last-child { background-image: linear-gradient(180deg, #E3FBFF 0%, #6FDCFF 45%, #6B8BFF 100%); margin-left: .55em; }
.bp-lede { margin: 0; max-width: 31rem; color: #E2DDFB; font-weight: 600; font-size: 1.05rem; line-height: 1.5; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); }
.bp-btns { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.bp-btns--sm { gap: .6rem; }
.bp-btns--col { flex-direction: column; align-items: stretch; width: 100%; }
.bp-btns--row { flex-direction: row; justify-content: center; }
.bp-btns--row > .bp-btn { flex: 1; }
.bp-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.bp-chip { display: inline-flex; align-items: center; gap: .6em; padding: .5em .9em; border-radius: 14px; background: rgba(15, 12, 34, .62); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bp-chip svg { width: 1.3rem; height: 1.3rem; }
.bp-chip span { display: grid; line-height: 1.1; }
.bp-chip small { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.bp-chip b { font-family: var(--font-d); font-weight: 400; font-size: 1.1rem; }
.bp-chip b em, .bp-chip em { font-style: normal; font-size: .75em; color: var(--mute); }
.bp-chip--sm b { font-size: 1rem; }
@media (max-width: 700px) and (min-aspect-ratio: 1/2) and (max-aspect-ratio: 1/1) {
  .bp-menu { align-items: flex-end; padding-top: max(70px, calc(var(--safe-t) + 62px)); }
  .bp-menu::before { background: linear-gradient(0deg, rgba(15, 12, 34, .88), rgba(15, 12, 34, .55) 55%, rgba(15, 12, 34, .1) 85%); }
  .bp-menu__c { gap: .8rem; }
  .bp-title { font-size: clamp(3.4rem, 22vw, 6rem); }
}
@media (max-height: 520px) {
  .bp-menu { padding-top: max(56px, calc(var(--safe-t) + 52px)); padding-bottom: 12px; }
  .bp-menu__c { gap: .55rem; max-width: 34rem; }
  .bp-title { font-size: clamp(2.6rem, 17vh, 5rem); }
  .bp-title span:last-child { margin-left: .4em; }
  .bp-lede { display: none; }
  .bp-btn { min-height: 44px; padding: .55em 1.1em; font-size: .95rem; }
  .bp-btn--primary { font-size: 1.1rem; }
  .bp-chips .bp-chip:nth-child(2) { display: none; }
  .bp-tool { width: 42px; height: 42px; }
}

/* ---------- screens: worlds, settings, how to ---------- */
.bp-ov.is-worlds, .bp-ov.is-settings, .bp-ov.is-how { background: radial-gradient(120% 90% at 50% 0%, rgba(40, 24, 90, .78), rgba(15, 12, 34, .93)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.bp-screen { max-width: 62rem; margin: 0 auto; padding: max(70px, calc(var(--safe-t) + 62px)) max(16px, var(--safe-r)) max(30px, var(--safe-b)) max(16px, var(--safe-l)); }
.bp-screen--narrow { max-width: 42rem; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.bp-head h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.8rem); text-shadow: 0 .06em 0 rgba(0, 0, 0, .4); }
.bp-worlds { display: grid; gap: 1rem; }
.bp-world { --wc: #FF6FB5; position: relative; border-radius: 22px; overflow: hidden; min-height: 11.5rem; display: grid; align-content: space-between; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 0 0 2px color-mix(in srgb, var(--wc) 55%, transparent), 0 14px 40px rgba(0, 0, 0, .35); isolation: isolate; }
.bp-world__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bp-world__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 30, .55), rgba(10, 6, 30, .1) 40%, rgba(10, 6, 30, .62)); }
.bp-world__top { display: flex; align-items: center; gap: .8rem; }
.bp-world__n { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-size: 1.3rem; background: var(--wc); color: #1b0f33; box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 255, 255, .5) inset; }
.bp-world__top h3 { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: 1.4rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); line-height: 1.05; }
.bp-world__top p { margin: .15em 0 0; font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.bp-world__s { margin-left: auto; display: inline-flex; align-items: center; gap: .4em; padding: .35em .8em; border-radius: 99px; background: rgba(15, 12, 34, .6); font-family: var(--font-d); font-size: .9rem; }
.bp-world__s svg { width: 1.1rem; height: 1.1rem; }
.bp-nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: 1rem; }
.bp-node { position: relative; border: 0; padding: .55em .2em .45em; border-radius: 16px; background: rgba(15, 12, 34, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; display: grid; justify-items: center; gap: .15em; color: #fff; transition: transform .12s var(--ease), background .15s; min-height: 5.4rem; }
.bp-node:hover { transform: translateY(-3px); background: rgba(15, 12, 34, .88); }
.bp-node i { font-style: normal; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-size: 1.2rem; background: var(--wc); color: #1b0f33; box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 255, 255, .45) inset; }
.bp-node i svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #fff; stroke-width: 2.4; }
.bp-node__stars { display: inline-flex; gap: 0; }
.bp-node__stars svg { width: .95rem; height: .95rem; }
.bp-node em { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bp-node.lock { opacity: .55; }
.bp-node.lock i { background: #3a3468; color: #fff; box-shadow: none; }
.bp-node.now { box-shadow: 0 0 0 2.5px var(--wc), 0 0 1.2em color-mix(in srgb, var(--wc) 60%, transparent); animation: bpnow 1.6s ease-in-out infinite; }
@keyframes bpnow { 50% { box-shadow: 0 0 0 2.5px var(--wc), 0 0 1.9em color-mix(in srgb, var(--wc) 85%, transparent); } }
.bp-world.is-locked .bp-world__bg { filter: grayscale(.45) brightness(.78); }
.bp-panel { padding: 1.1rem; border-radius: 22px; background: rgba(15, 12, 34, .72); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; display: grid; gap: .3rem; }
.bp-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .4rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bp-row:last-child { border-bottom: 0; }
.bp-row b { display: block; font-weight: 800; font-size: 1rem; }
.bp-row small { display: block; font-size: .78rem; color: var(--mute); font-weight: 600; }
.bp-row--end { justify-content: flex-end; }
.bp-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .08); gap: 2px; flex: none; }
.bp-seg button { border: 0; background: transparent; color: #CFC8F5; font-weight: 800; font-size: .85rem; padding: .55em 1em; border-radius: 9px; min-height: 40px; transition: background .15s; }
.bp-seg button.on { background: var(--bp-pink); color: #2A0A22; }
.bp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.bp-steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .9rem; align-items: center; }
.bp-steps img { width: 3.4rem; height: 3.4rem; }
.bp-steps b { font-family: var(--font-d); font-weight: 400; font-size: 1.05rem; }
.bp-steps p, .bp-note { margin: .15em 0 0; color: #D6D0F5; font-size: .92rem; line-height: 1.45; font-weight: 600; }
.bp-sub { margin: 1.1rem 0 .4rem; font-family: var(--font-d); font-weight: 400; font-size: 1.15rem; color: var(--bp-pink); }
.bp-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .8rem; }
.bp-guide div { display: grid; grid-template-columns: 3rem 1fr; grid-template-areas: "i b" "i p"; gap: 0 .7rem; align-items: center; padding: .6rem; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.bp-guide img { grid-area: i; width: 3rem; height: 3rem; }
.bp-guide b { grid-area: b; font-weight: 800; font-size: .92rem; align-self: end; }
.bp-guide p { grid-area: p; margin: 0; font-size: .78rem; color: #CFC8F5; line-height: 1.3; font-weight: 600; align-self: start; }

/* ---------- cards (pause / win / lose / final) ---------- */
.bp-ov.is-pause, .bp-ov.is-win, .bp-ov.is-lose { background: radial-gradient(90% 70% at 50% 45%, rgba(15, 12, 34, .35), rgba(15, 12, 34, .82)); }
.bp-card-ov { min-height: 100%; display: grid; place-items: center; padding: max(16px, var(--safe-t)) 16px max(16px, var(--safe-b)); }
.bp-modal { width: min(92vw, 28rem); padding: 1.5rem 1.4rem 1.3rem; border-radius: 26px; background: linear-gradient(180deg, rgba(40, 30, 92, .95), rgba(18, 14, 44, .96)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 0 0 4px rgba(255, 111, 181, .4), 0 30px 80px rgba(0, 0, 0, .5); text-align: center; display: grid; gap: .9rem; animation: bpmodal .45s var(--ease); max-height: calc(100dvh - 24px); overflow: auto; }
@keyframes bpmodal { from { opacity: 0; transform: translateY(24px) scale(.92); } }
.bp-modal h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); line-height: .95; color: #FFD23F; text-shadow: 0 .06em 0 rgba(0, 0, 0, .45), 0 0 .5em rgba(255, 210, 63, .4); }
.bp-modal--lose h2 { color: #FF8FA0; text-shadow: 0 .06em 0 rgba(0, 0, 0, .45), 0 0 .5em rgba(255, 90, 110, .35); }
.bp-modal--final h2 { background: linear-gradient(90deg, #FFD23F, #FF6FB5, #6FDCFF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 .06em 0 rgba(0, 0, 0, .5)); }
.bp-modal__eye { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--bp-pink); }
.bp-modal__sub { margin: 0; color: #D9D3FF; font-weight: 700; font-size: .95rem; line-height: 1.4; }
.bp-modal__set { display: grid; gap: .5rem; justify-items: center; }
.bp-modal__set .bp-seg button { padding: .45em .8em; font-size: .78rem; min-height: 36px; }
.bp-bigstars { display: flex; justify-content: center; gap: .4rem; }
.bp-bigstars span { display: block; width: 4.4rem; height: 4.4rem; transform: scale(0) rotate(-40deg); animation: bpstar .6s var(--ease) forwards; animation-delay: var(--d); }
.bp-bigstars span:nth-child(2) { margin-top: -.9rem; width: 5.2rem; height: 5.2rem; }
.bp-bigstars svg { width: 100%; height: 100%; }
.bp-bigstars .on svg { filter: drop-shadow(0 0 12px rgba(255, 210, 63, .8)); }
@keyframes bpstar { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.bp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bp-stats > div { padding: .55em .3em; border-radius: 14px; background: rgba(255, 255, 255, .07); display: grid; gap: .15em; }
.bp-stats small { font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.bp-stats b { font-family: var(--font-d); font-weight: 400; font-size: 1.15rem; }
.bp-stats b em { font-style: normal; font-size: .55em; color: var(--mute); display: block; }
.bp-newbest { margin: 0; color: #C6FF3D; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; animation: bppulse .6s var(--ease); }
.bp-newbest--s { color: #FFD23F; }
.bp-unlock { margin: 0; padding: .5em .8em; border-radius: 12px; background: rgba(255, 111, 181, .15); font-weight: 700; font-size: .9rem; }
.bp-tip { margin: 0; padding: .6em .9em; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: .85rem; font-weight: 600; color: #D9D3FF; text-align: left; line-height: 1.4; }
.bp-tip b { color: #FFD23F; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-right: .4em; }

@media (max-height: 560px) {
  .bp-modal { padding: 1rem 1.1rem .9rem; gap: .55rem; }
  .bp-bigstars span { width: 3rem; height: 3rem; } .bp-bigstars span:nth-child(2) { width: 3.6rem; height: 3.6rem; margin-top: -.6rem; }
  .bp-tip { display: none; }
  .bp-stats b { font-size: 1rem; }
}
@media (max-width: 560px) {
  .bp-nodes { gap: .3rem; } .bp-node { min-height: 4.8rem; } .bp-node i { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; } .bp-node__stars svg { width: .8rem; height: .8rem; } .bp-node em { font-size: .55rem; letter-spacing: .04em; }
  .bp-world__top h3 { font-size: 1.15rem; } .bp-world__s { display: none; }
  .bp-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .bp-node.now, .bp-aim svg { animation: none; } .bp-banner.show { animation-duration: 3s; } }

.bp[data-state="play"] .bp-cv { cursor: crosshair; }

.bp-score small .only-tall { display: none; }
.bp[data-mode="tall"] .bp-score small .only-tall { display: inline; color: var(--bp-pink); }

@media (max-height: 520px) { .bp-hud { font-size: .78rem; } .bp-toast { font-size: .8rem; } .bp-aim svg { width: 2rem; height: 2rem; } }
