/* Pipe Rush - full-window canvas + HUD + menu / cards. Everything scales with rem / clamp from phones to 4K. */
:root { --pr-sun: #FFD23F; --pr-ink: #0F0C22; --wacc: #FFD23F; }
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; }
kbd { font: inherit; font-weight: 800; padding: .05em .45em; border-radius: 6px; background: rgba(255, 255, 255, .16); }

.pr { 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); }
.pr-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- top bar ---------- */
.pr-top { position: absolute; z-index: 45; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(10px, var(--safe-t)) max(12px, var(--safe-r)) 0 max(12px, var(--safe-l)); pointer-events: none; }
.pr-top > * { pointer-events: auto; }
.pr-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; }
.pr-brand:hover { background: rgba(15, 12, 34, .8); transform: translateY(-1px); }
.pr-brand img { width: 34px; height: 34px; }
.pr-brand b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.pr-brand b i { font-style: normal; color: var(--lime); }
.pr.is-play .pr-brand { display: none; }
.pr-tools { display: flex; gap: 8px; margin-left: auto; }
.pr-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, .12) inset; transition: background .15s, transform .12s; text-decoration: none; color: #fff; }
.pr-tool:hover { background: rgba(15, 12, 34, .85); transform: translateY(-1px); }
.pr-tool svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pr.is-menu .pr-tool--home, .pr.is-menu #bPause { display: none; }
.pr.is-play .pr-tool--home { display: grid; }
.pr.has-ov.is-play #bPause { visibility: hidden; }
@media (pointer: coarse) { .pr-tool { width: 50px; height: 50px; } .pr-tool--full { display: none; } }

/* ---------- play HUD: portrait = top info / board slot / dock ---------- */
.pr-play { position: absolute; inset: 0; z-index: 10; pointer-events: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; color: #fff; font-size: 1rem; padding: calc(max(10px, var(--safe-t)) + 54px) max(10px, var(--safe-r)) max(10px, var(--safe-b)) max(10px, var(--safe-l)); }
.pr-play[hidden] { display: none; }
.pr-play > * { pointer-events: none; }
.pr-info { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); grid-template-areas: "lvl moves fill"; gap: .5rem; align-items: stretch; width: min(100%, 36em); margin: 0 auto; }
.pr-lvl { grid-area: lvl; display: grid; align-content: center; line-height: 1.05; padding: 0 .2em; min-width: 0; }
.pr-lvl small { font-size: max(12px, .7rem); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wacc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.pr-lvl b { font-family: var(--font-d); font-weight: 400; font-size: 1.3rem; text-shadow: 0 3px 0 rgba(0, 0, 0, .4); white-space: nowrap; }
.pr-stat { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: .4em .9em .5em; border-radius: 14px; 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, .1) inset; line-height: 1; min-width: 0; }
.pr-stat small { font-size: max(11px, .62rem); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.pr-stat b { font-family: var(--font-d); font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-moves { grid-area: moves; min-width: 6.4em; text-align: center; align-items: center; }
.pr-moves b { font-size: 1.9rem; color: var(--pr-sun); transition: color .2s; }
.pr-moves[data-tier="2"] b { color: #fff; } .pr-moves[data-tier="1"] b { color: #FF9A7A; }
.pr-lim { display: flex; align-items: center; gap: .35em; margin-top: .25em; font-size: max(11px, .62rem); font-weight: 800; color: #CFC9F5; white-space: nowrap; }
.pr-ministars { display: inline-flex; } .pr-ministars .star { width: .85rem; height: .85rem; }
.pr-fill { grid-area: fill; }
.pr-sbar { position: relative; height: .5rem; margin-top: .35em; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.pr-sbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--wacc) 70%, #000), var(--wacc)); box-shadow: 0 0 .8em var(--wacc); transition: width .35s var(--ease); }
.pr-slot { min-height: 0; min-width: 0; }
.pr-dock { display: flex; justify-content: center; gap: .6rem; }
.pr-boost { pointer-events: auto; position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .5rem; min-width: 7.4rem; min-height: 3.4rem; padding: .35em .9em .35em .55em; border: 0; border-radius: 16px; color: #fff; text-align: left; background: linear-gradient(180deg, rgba(60, 48, 130, .9), rgba(30, 24, 76, .92)); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset, 0 .3em 0 rgba(0, 0, 0, .35); transition: transform .12s var(--ease), box-shadow .15s, filter .15s; }
.pr-boost:hover { transform: translateY(-2px); filter: brightness(1.12); }
.pr-boost:active { transform: translateY(2px); }
.pr-boost .ic { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 30% 25%, #fff3, transparent 60%), var(--bc, #FF9A1F); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .3) inset; }
.pr-boost#bHint { --bc: #FFB223; } .pr-boost#bUndo { --bc: #2FD6FF; } .pr-boost#bRestart { --bc: #FF5B8A; }
.pr-boost .ic svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pr-boost small { font-weight: 800; font-size: max(12px, .74rem); letter-spacing: .02em; white-space: nowrap; }
.pr-boost .n { position: absolute; right: -.35rem; top: -.5rem; min-width: 1.55rem; height: 1.55rem; padding: 0 .3em; display: grid; place-items: center; border-radius: 99px; background: var(--pr-sun); color: #2A1B00; font-family: var(--font-d); font-weight: 400; font-size: .85rem; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.pr-boost kbd { display: none; position: absolute; left: .35rem; bottom: .12rem; font-size: .6rem; opacity: .6; background: none; padding: 0; }
.pr:not(.is-touch) .pr-boost kbd { display: block; }
.pr-boost.empty { filter: saturate(.3) brightness(.7); } .pr-boost.empty .n { background: #555; color: #bbb; }
.pr.has-ov .pr-boost { pointer-events: none; }
@keyframes prblink { 50% { opacity: .5; } }
@keyframes prpulse { 50% { transform: scale(1.05); } }

/* landscape: info panel left, board centre, dock right */
@media (min-aspect-ratio: 23/20) {
  .pr-play { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(.8rem, 2.4vw, 2.6rem); padding: max(12px, var(--safe-t)) max(12px, var(--safe-r)) max(12px, var(--safe-b)) max(12px, var(--safe-l)); align-items: center; }
  .pr-slot { height: 100%; aspect-ratio: var(--ar, 1); max-height: 100%; }
  .pr-info { width: min(100%, 17em); margin: 0 0 0 auto; grid-template-columns: 1fr; grid-template-areas: "lvl" "moves" "fill"; align-content: center; }
  .pr-lvl { padding: 0 .2em .3em; } .pr-lvl b { font-size: 1.6rem; }
  .pr-moves { min-width: 0; }
  .pr-dock { flex-direction: column; align-items: flex-start; justify-self: start; gap: .9rem; }
  .pr-boost { min-width: 9.5em; }
}
@media (min-aspect-ratio: 23/20) and (max-height: 520px) {
  .pr-info { width: min(100%, 13.5em); gap: .3rem; } .pr-lvl b { font-size: 1.1rem; } .pr-stat { padding: .3em .7em .4em; } .pr-stat b { font-size: 1.1rem; } .pr-moves b { font-size: 1.5rem; }
  .pr-boost { min-width: 0; min-height: 3rem; padding: .25em .55em .25em .4em; } .pr-boost small { display: none; } .pr-boost kbd { display: none !important; }
  .pr-dock { gap: .7rem; }
}
@media (max-aspect-ratio: 23/20) and (max-height: 700px) {
  .pr-play { padding-top: calc(max(8px, var(--safe-t)) + 50px); gap: 6px; } .pr-lvl b { font-size: 1.05rem; } .pr-stat b { font-size: 1.15rem; } .pr-moves b { font-size: 1.5rem; }
  .pr-boost { min-height: 3rem; min-width: 6.6rem; }
}


/* ---------- banners ---------- */
.pr-banner { --bc: #FFD23F; position: absolute; z-index: 20; left: 50%; top: 14%; width: min(92vw, 40em); transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; }
.pr-banner small { display: block; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.7rem, .6rem + .5vw, 1rem); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.pr-banner h2 { margin: .1em 0 .12em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(1.6rem, .9rem + 3.2vw, 3.8rem); 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); }
.pr-banner p { display: inline-block; margin: .2em 0 0; padding: .35em 1.1em; border-radius: 99px; background: rgba(15, 12, 34, .6); font-weight: 800; font-size: clamp(.8rem, .6rem + .6vw, 1.15rem); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; }
.pr-banner.show { animation: prbanner 2.8s var(--ease) forwards; }
@keyframes prbanner { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.82); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
.pr-pop { position: absolute; z-index: 21; left: 50%; top: 44%; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; font-family: var(--font-d); text-transform: uppercase; font-size: clamp(1.8rem, 1rem + 3.6vw, 4rem); white-space: nowrap; color: #fff; background: linear-gradient(180deg, #fff, #FFE56B 45%, #FF9A3D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 .06em 0 rgba(90, 20, 0, .8)) drop-shadow(0 0 .35em rgba(255, 160, 40, .7)); }
.pr-pop.show { animation: prpopb 1.25s var(--ease) forwards; }
@keyframes prpopb { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-6deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(-2deg); } 26% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); } 74% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1) rotate(-2deg); } }
.pr-toast { position: absolute; z-index: 22; left: 50%; bottom: max(14%, calc(var(--safe-b) + 90px)); transform: translate(-50%, 12px); max-width: min(92vw, 34em); padding: .6em 1.3em; border-radius: 18px; text-align: center; font-weight: 800; font-size: clamp(.85rem, .6rem + .6vw, 1.15rem); line-height: 1.3; background: rgba(15, 12, 34, .88); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.pr-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pr-toast.new { box-shadow: 0 0 0 2px var(--pr-sun) inset, 0 0 1.4em rgba(255, 210, 63, .35); }

/* ---------- overlays ---------- */
.pr-ov { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.pr-ov::-webkit-scrollbar { display: none; }
.pr-ov.show { display: block; animation: prfade .3s ease; }
.pr-ov--screen.show { background: rgba(10, 8, 28, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pr-ov--center.show { background: rgba(15, 12, 34, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pr-ov--final.show { background: radial-gradient(ellipse at 50% 40%, rgba(40, 14, 90, .18), rgba(15, 12, 34, .4)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pr-ov--menu.show { background: linear-gradient(90deg, rgba(15, 12, 34, .9) 0%, rgba(15, 12, 34, .6) 30%, rgba(15, 12, 34, .05) 50%, rgba(15, 12, 34, 0) 70%), linear-gradient(0deg, rgba(15, 12, 34, .5), rgba(15, 12, 34, 0) 28%); overflow: hidden; pointer-events: none; }
.pr-ov--menu .pr-menu__l { pointer-events: auto; }
@keyframes prfade { from { opacity: 0; } }
@keyframes prpop2 { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.pr-fade { position: absolute; inset: 0; z-index: 60; background: #0F0C22; opacity: 0; pointer-events: none; transition: opacity .4s; }

/* ---------- menu ---------- */
.pr-menu { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(64px, 9vh, 120px) clamp(20px, 5vw, 110px) clamp(16px, 3vh, 40px) max(clamp(20px, 5vw, 110px), var(--safe-l)); }
.pr-menu__l { animation: prpop2 .5s var(--ease); max-width: min(34em, 100%, 46vw); min-width: 0; }
.pr-kicker { display: inline-flex; align-items: center; gap: .6em; flex-wrap: wrap; font-weight: 800; font-size: clamp(.7rem, .55vw + .45rem, 1rem); letter-spacing: .16em; text-transform: uppercase; color: var(--pr-sun); }
.pr-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.pr-kicker span { color: #CFC9F5; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.pr-title { margin: .08em 0 .14em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3rem, min(8vw, 15vh), 10rem); letter-spacing: .005em; display: grid; justify-items: start; }
.pr-title b { font-weight: 400; display: block; background: linear-gradient(100deg, #2FD6FF 0%, #8AF0FF 22%, #FFFFFF 40%, #35D6FF 60%, #FFD23F 82%, #FF9A3D 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: prslide 8s linear infinite; filter: drop-shadow(0 .05em 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 .4em rgba(47, 214, 255, .4)); }
.pr-title b.b2 { margin-left: .35em; animation-delay: -1.5s; }
@keyframes prslide { to { background-position: -240% 0; } }
.pr-tag { margin: 0 0 clamp(14px, 2.4vh, 28px); font-size: clamp(.95rem, .5vw + .75rem, 1.35rem); font-weight: 600; color: #DCD7FF; max-width: 28em; line-height: 1.45; }
.pr-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(6px, 1.6vh, 20px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.f { fill: currentColor; stroke: none; }
.btn em { font-style: normal; font-size: .7em; opacity: .75; }
.pr-cta .btn--big { font-size: clamp(1.05rem, .5vw + .9rem, 1.6rem); }
.pr-btn-rush { --bg: #E83A7A; --sh: #8F1448; --fg: #fff; }
.pr-sub { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.pr-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(14px, 2.4vh, 28px); }
.pr-chip { padding: .5em 1em; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; text-align: left; }
.pr-chip small { display: block; font-size: max(11px, .6rem); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.pr-chip b { font-family: var(--font-d); font-weight: 400; font-size: 1.3rem; } .pr-chip b i { font-style: normal; font-size: .62em; color: var(--mute); }

/* ---------- world map ---------- */
.pr-screen { position: relative; min-height: 100%; padding: max(72px, calc(var(--safe-t) + 64px)) max(16px, var(--safe-r)) max(30px, var(--safe-b)) max(16px, var(--safe-l)); }
.pr-screen--center { display: grid; place-items: center; padding-top: max(24px, var(--safe-t)); }
.pr-head { position: sticky; top: calc(max(10px, var(--safe-t)) + 50px); z-index: 5; padding: .45rem 0 .7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(80em, 100%); margin: 0 auto .5rem; background: linear-gradient(180deg, rgba(10, 8, 28, .93) 72%, rgba(10, 8, 28, 0)); }
.pr-head h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.8vw, 3rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .4); }
.pr-pill { display: inline-flex; flex-direction: column; gap: 2px; padding: .4em .9em; border-radius: 14px; background: rgba(15, 12, 34, .6); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1; }
.pr-pill small { font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); } .pr-pill b { font-family: var(--font-d); font-weight: 400; font-size: 1.05rem; }
.pr-worlds { width: min(80em, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21em), 1fr)); gap: 1rem; }
.pr-world { --acc: #FFD23F; position: relative; isolation: isolate; padding: .9rem 1rem 1rem; border-radius: 22px; overflow: hidden; background: var(--img) center / cover, #181338; box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 60%, transparent) inset, 0 .4em 0 rgba(0, 0, 0, .35); }
.pr-world::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 12, 34, .35), rgba(15, 12, 34, .8)); }
.pr-world.lock { filter: saturate(.45) brightness(.8); }
.pr-world__h { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .8rem; }
.pr-world__h small { display: block; font-size: max(11px, .62rem); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--acc); text-shadow: 0 1px 4px #000; }
.pr-world__h b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.pr-world__h span { display: block; font-size: .8rem; font-weight: 700; color: #E5E0FF; text-shadow: 0 1px 4px #000; }
.pr-world__h em { font-style: normal; font-family: var(--font-d); font-size: 1rem; padding: .25em .7em; border-radius: 99px; background: rgba(15, 12, 34, .7); white-space: nowrap; } .pr-world__h em i { font-style: normal; font-size: .7em; color: var(--mute); }
.pr-nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.pr-node { --acc: inherit; display: grid; justify-items: center; gap: .25em; border: 0; background: none; padding: .2em 0; color: #fff; }
.pr-node .num { width: 3.1em; height: 3.1em; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-d); font-size: 1.1rem; color: #1B1340; background: radial-gradient(circle at 35% 28%, #fff, color-mix(in srgb, var(--acc) 75%, #fff) 38%, var(--acc) 75%); box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(15, 12, 34, .75), 0 0 16px color-mix(in srgb, var(--acc) 50%, transparent); transition: transform .14s var(--ease); }
.pr-node:hover .num { transform: translateY(-3px) scale(1.06); }
.pr-node .num svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pr-node .sts { display: flex; gap: 0; } .pr-node .sts svg { width: .95rem; height: .95rem; }
.pr-node.lock .num { background: #3a3566; color: #9a94c7; box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(15, 12, 34, .75); } .pr-node.lock { cursor: not-allowed; } .pr-node.lock:hover .num { transform: none; }
.pr-node.cur .num { animation: prpulse2 1.4s ease-in-out infinite; }
.pr-node.shake { animation: prshake .35s; }
@keyframes prpulse2 { 50% { box-shadow: 0 4px 0 rgba(0, 0, 0, .4), 0 0 0 3px rgba(15, 12, 34, .75), 0 0 0 9px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 28px var(--acc); } }
@keyframes prshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.pr-mapfoot { width: min(80em, 100%); margin: 1.2rem auto 0; display: flex; justify-content: center; }
.star { width: 1.5em; height: 1.5em; fill: rgba(255, 255, 255, .2); stroke: none; } .star.on { fill: #FFD23F; filter: drop-shadow(0 0 .35em rgba(255, 200, 40, .6)); }

/* ---------- cards ---------- */
.pr-card { --acc: #FFD23F; width: min(34em, 100%); text-align: center; padding: 1.8rem 1.8rem 1.5rem; border-radius: 28px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 30px 80px rgba(0, 0, 0, .55); animation: prpop2 .4s var(--ease); margin: auto; }
.pr-card h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.7rem, 1.1rem + 1.7vw, 3rem); line-height: 1; margin: .1em 0 .3em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.pr-card h3, .pr-h3 { font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: 1rem; color: var(--pr-sun); margin: 1.1em 0 .5em; text-align: left; }
.pr-k { display: block; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--acc); }
.pr-sub2 { margin: 0 0 1rem; color: #CFC9F5; font-weight: 600; }
.pr-note { margin: .8rem 0 0; font-size: .82rem; color: var(--mute); font-weight: 600; }
.pr-p { margin: 0; font-weight: 600; color: #E2DEFF; font-size: .95rem; line-height: 1.45; text-align: left; }
.pr-hint { margin: .9rem 0 0; padding: .6em 1em; border-radius: 14px; background: rgba(255, 210, 63, .12); box-shadow: 0 0 0 1.5px rgba(255, 210, 63, .35) inset; font-weight: 700; font-size: .92rem; color: #FFEFA8; }
.pr-acts { display: grid; gap: .65rem; margin-top: 1.1rem; }
.pr-acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.pr-acts .btn { width: 100%; }
.pr-danger { --bg: #5a1a3a; --sh: #2d0a1d; opacity: .85; }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4em, 1fr)); gap: .6rem; margin: 1rem 0 .4rem; }
.pr-stats .pr-chip { text-align: center; padding: .6em .4em; } .pr-mini { display: inline-flex; } .pr-mini .star { width: 1.1rem; height: 1.1rem; }
.pr-goallist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; text-align: left; }
.pr-goallist li { display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: center; padding: .4em .9em .4em .5em; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .09) inset; font-weight: 700; }
.pr-goallist img { width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); } .pr-goallist b { font-family: var(--font-d); font-weight: 400; color: var(--acc); }
.pr-big { font-family: var(--font-d); font-size: clamp(3.2rem, 2rem + 5vw, 5.4rem); line-height: 1; color: var(--pr-sun); text-shadow: 0 5px 0 rgba(0, 0, 0, .4); } .pr-biglab { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.pr-rec { display: inline-block; margin: .6rem 0 0; padding: .35em 1em; border-radius: 99px; background: var(--pr-sun); color: var(--pr-ink); font-family: var(--font-d); font-size: .9rem; transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; animation: prpop2 .5s .3s both var(--ease); }
.pr-bigstars { display: flex; justify-content: center; gap: .4rem; margin: .5rem 0 .2rem; }
.pr-bigstars .bs { display: inline-block; transform: scale(0); animation: prstar .6s var(--d) forwards cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); }
.pr-bigstars .bs:nth-child(2) { margin-top: -.9rem; }
.pr-bigstars .bs svg { width: clamp(3.4rem, 2.4rem + 3vw, 5.2rem); height: clamp(3.4rem, 2.4rem + 3vw, 5.2rem); } .pr-bigstars--sm .bs svg { width: 3rem; height: 3rem; }
@keyframes prstar { 0% { transform: scale(0) rotate(-60deg); } 100% { transform: scale(1) rotate(0); } }
.pr-gains { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin-top: .7rem; } .pr-gains small { width: 100%; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.pr-gain { display: inline-flex; align-items: center; gap: .45em; padding: .3em .9em .3em .35em; border-radius: 99px; background: rgba(61, 224, 122, .16); box-shadow: 0 0 0 1.5px rgba(61, 224, 122, .5) inset; font-weight: 800; font-size: .85rem; animation: prpop2 .5s .9s both var(--ease); }
.pr-gain .ic { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: #3DE07A; } .pr-gain .ic svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #0F0C22; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.pr-progress { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; } .pr-progress li { display: flex; justify-content: space-between; padding: .5em 1em; border-radius: 12px; background: rgba(255, 255, 255, .07); font-weight: 700; } .pr-progress li b { font-family: var(--font-d); font-weight: 400; color: #FF8F7A; } .pr-progress li.ok b { color: #5CFF9A; }
.pr-best { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pr-best li { display: flex; justify-content: space-between; padding: .35em 1em; border-radius: 10px; background: rgba(255, 255, 255, .06); font-weight: 700; } ol.pr-best li.me { background: rgba(255, 210, 63, .22); box-shadow: 0 0 0 1.5px var(--pr-sun) inset; } ol.pr-best li b { font-family: var(--font-d); font-weight: 400; }
.pr-trophy .trophy { width: 6rem; height: 6rem; margin: -.4rem auto .2rem; filter: drop-shadow(0 .5em 0 rgba(0, 0, 0, .3)) drop-shadow(0 0 1em rgba(255, 200, 60, .5)); animation: prtrophy 2.4s ease-in-out infinite; }
@keyframes prtrophy { 50% { transform: translateY(-.3em) rotate(2deg); } }
.pr-card--final { width: min(36em, 100%); box-shadow: 0 0 0 3px #FFD23F inset, 0 30px 80px rgba(0, 0, 0, .55), 0 0 100px rgba(255, 200, 60, .35); }
.pr-card--how { text-align: left; width: min(42em, 100%); } .pr-card--how h2 { text-align: center; }
.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pr-steps li { display: grid; grid-template-columns: 2.2em 1fr; gap: .8rem; align-items: center; } .pr-steps li b { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--pr-sun); color: var(--pr-ink); font-family: var(--font-d); font-weight: 400; }
.pr-steps p, .pr-twists p { margin: 0; font-weight: 600; color: #E2DEFF; font-size: .93rem; line-height: 1.38; }
.pr-twists { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; } .pr-twists li { display: grid; grid-template-columns: 3.2rem 1fr; gap: .8rem; align-items: center; } .pr-twists .ic { display: grid; place-items: center; } .pr-twists img, .pr-twists canvas { width: 2.9rem; height: 2.9rem; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.pr-opt { text-align: left; margin: .7rem 0; display: grid; gap: .35rem; } .pr-opt small { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pr-seg { display: flex; gap: 6px; flex-wrap: wrap; } .pr-seg button { flex: 1; min-width: 4.4em; min-height: 44px; padding: .55em .9em; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .9rem; color: #D6D1FA; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; transition: background .15s, transform .1s; }
.pr-seg button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); } .pr-seg button.on { background: var(--pr-sun); color: var(--pr-ink); box-shadow: none; }
.pr-setbox--mini { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .pr-setbox--mini .pr-opt { margin: 0; }
.pr-card--clear .pr-acts .btn svg, .pr-card--over .btn svg.s { width: 1.2em; height: 1.2em; }

/* ---------- responsive ---------- */
@media (max-aspect-ratio: 23/20) {
  .pr-ov--menu.show { background: linear-gradient(180deg, rgba(15, 12, 34, .72), rgba(15, 12, 34, 0) 32%), linear-gradient(0deg, rgba(15, 12, 34, .9) 0%, rgba(15, 12, 34, .55) 24%, rgba(15, 12, 34, 0) 42%); }
  .pr-menu { padding: max(66px, calc(var(--safe-t) + 58px)) max(18px, var(--safe-r)) max(18px, var(--safe-b)) max(18px, var(--safe-l)); text-align: center; }
  .pr-menu__l { display: flex; flex-direction: column; align-items: center; height: 100%; width: 100%; max-width: 30em; margin: 0 auto; }
  .pr-title { justify-items: center; font-size: clamp(3.2rem, 17vw, 6.4rem); } .pr-title b.b2 { margin-left: 0; }
  .pr-kicker { justify-content: center; } .pr-kicker span { display: none; }
  .pr-tag, .pr-chips { display: none; }
  .pr-cta { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; } .pr-cta .btn { width: 100%; padding-left: .6em; padding-right: .6em; font-size: clamp(.95rem, 4vw, 1.3rem); }
  .pr-cta .btn { grid-column: 1 / -1; }
  .pr-sub { justify-content: center; margin-top: .9rem; flex-wrap: nowrap; } .pr-sub .btn { padding-left: .7em; padding-right: .7em; font-size: .75rem; }
  .pr-brand b { display: none; } .pr-brand { padding: 6px; }
  .pr-toast { bottom: calc(max(10px, var(--safe-b)) + 5.4rem); }
  .pr-banner { top: 25%; }
}
@media (max-height: 560px) and (min-aspect-ratio: 23/20) {
  .pr-menu { padding-top: 56px; } .pr-tag, .pr-chips, .pr-kicker span { display: none; } .pr-title { font-size: clamp(2.4rem, 17vh, 4.4rem); } .pr-sub { margin-top: .6rem; }
  .pr-cta .btn--big { font-size: 1rem; padding: .6em 1.2em; }
  .pr-card { padding: 1rem 1.2rem; border-radius: 22px; } .pr-acts { margin-top: .6rem; } .pr-bigstars svg { width: 2.6rem !important; height: 2.6rem !important; } .pr-bigstars .bs:nth-child(2) { margin-top: -.5rem; }
  .pr-stats { margin: .5rem 0 .2rem; } .pr-trophy .trophy { width: 3.6rem; height: 3.6rem; } .pr-big { font-size: 2.6rem; } .pr-card h2 { margin-bottom: .1em; } .pr-sub2 { margin-bottom: .4rem; font-size: .85rem; }
  .pr-screen { padding-top: 60px; } .pr-head { margin-bottom: .6rem; } .pr-goallist { margin-top: .5rem; } .pr-goallist li { padding-top: .2em; padding-bottom: .2em; } .pr-hint { display: none; }
  .pr-banner { top: 10%; }
}

/* short landscape phones: tools move to the top-left, cards turn compact */
@media (min-aspect-ratio: 23/20) and (max-width: 760px) {
  .pr.is-play .pr-top { justify-content: flex-start; } .pr.is-play .pr-tools { margin-left: 0; }
  .pr-tool { width: 40px; height: 40px; border-radius: 11px; } .pr-tool svg { width: 18px; height: 18px; }
}
@media (min-aspect-ratio: 23/20) and (max-height: 460px) {
  .pr-screen--center { padding: 8px max(12px, var(--safe-r)) 8px max(12px, var(--safe-l)); }
  .pr-card { padding: .7rem 1.1rem .8rem; border-radius: 20px; width: min(36em, 100%); }
  .pr-card h2 { font-size: 1.5rem; margin: 0 0 .15em; } .pr-k { font-size: .62rem; }
  .pr-bigstars .bs svg { width: 2.4rem; height: 2.4rem; } .pr-bigstars .bs:nth-child(2) { margin-top: -.4rem; } .pr-bigstars { margin: .2rem 0 0; }
  .pr-stats { margin: .4rem 0 .1rem; gap: .4rem; } .pr-stats .pr-chip { padding: .35em .3em; } .pr-chip b { font-size: 1.05rem; }
  .pr-gains { margin-top: .4rem; } .pr-note, .pr-rec { display: none; } .pr-big { font-size: 2.4rem; }
  .pr-acts { grid-template-columns: 1.5fr 1fr 1fr; align-items: center; gap: .45rem; margin-top: .5rem; } .pr-acts .row { display: contents; } .pr-acts .btn { font-size: .78rem; padding: .6em .5em; }
  .pr-goallist { margin-top: .4rem; gap: .3rem; } .pr-goallist li { grid-template-columns: 2rem 1fr; padding: .15em .6em .15em .3em; } .pr-goallist img { width: 2rem; height: 2rem; }
  .pr-progress { margin-top: .4rem; gap: .25rem; } .pr-progress li { padding: .25em .8em; }
  .pr-card--how { padding: .8rem 1.1rem; } .pr-best li { padding: .15em .8em; } .pr-h3 { margin: .5em 0 .3em; }
  .pr-setbox--mini { margin-top: .5rem; } .pr-sub2 { margin: 0 0 .3rem; }
  .pr-acts .btn--big { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .pr-title b, .pr-node.cur .num, .pr-trophy .trophy, .pr-boost.on, .pr-moves.low b { animation: none; } }
@media (max-width: 520px) { .pr-stats { grid-template-columns: 1fr 1fr; } .pr-setbox--mini { grid-template-columns: 1fr; } .pr-card { padding: 1.3rem 1.1rem 1.1rem; } }
