/* Single Player (sp.js). Built from the theme's tokens, so a world looks like its theme; the round level buttons are
   glossy balls like Home's, and the characters and the boss's crown are the 3D art. */
.sphub .label { margin-top: 1rem; }
.spstreak { color: var(--hot); }
.spworld { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .6rem; border-radius: 18px; border: 2px solid var(--panel-edge);
  background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; margin-bottom: .5rem; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.spworld:disabled { opacity: .5; }
.spworld-art { width: 5.5rem; height: 3.6rem; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--sunk); }
.spworld-art svg { width: 100%; height: 100%; }
.spworld-t { flex: 1; display: grid; gap: .1rem; min-width: 0; }
.spworld-t small { font-weight: 800; font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.spworld-t b { font-family: var(--display); font-size: 1.35rem; font-weight: 400; }
.spworld-t .dim { font-size: .8rem; }
.spworld-go { font-weight: 900; color: var(--hot); padding-right: .4rem; }
.spcards { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.spcard { display: grid; justify-items: center; gap: .25rem; padding: .9rem .5rem; border-radius: 18px; border: 2px solid var(--panel-edge); background: var(--panel);
  color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.spcard .ic, .spcard .tic { width: 2.6rem; height: 2.6rem; }
.spcard b { font-size: 1.05rem; }
.spcard small { font-weight: 700; opacity: .75; font-size: .78rem; }
.spgoals { display: grid; gap: .45rem; }
.spgoal { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: 14px; background: var(--panel); border: 1.5px solid var(--panel-edge); }
.spgoal.done { border-color: var(--zest); }
.spgoal-r { display: grid; justify-items: end; font-weight: 900; }
.spgoal-r small { font-weight: 800; opacity: .8; font-size: .75rem; }
.spbar { display: block; height: .5rem; border-radius: 99px; background: var(--sunk); margin-top: .3rem; overflow: hidden; }
.spbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--hot)); }
.spstars { display: inline-flex; gap: .1rem; font-style: normal; }
.spstars i { font-style: normal; color: rgba(0, 0, 0, .28); font-size: 1rem; text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
.spstars i.on { color: #ffd23d; text-shadow: 0 2px 0 #b8860b, 0 0 8px rgba(255, 210, 61, .6); }
.spstars.big i { font-size: 2.4rem; }
.sphearts { display: inline-flex; gap: .15rem; }
.sphearts i { width: 2rem; height: 1.9rem; display: block; }
.sphearts svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
.sphearts svg path:first-child { fill: #c9cfdd; stroke: #8c93a8; stroke-width: 2.4; stroke-linejoin: round; }
.sphearts i.on svg path:first-child { fill: #ff4d6d; stroke: #a3122e; }
.sphearts svg .hl { stroke: rgba(255, 255, 255, .75); stroke-width: 2.6; }
.sphearts i:not(.on) svg .hl { stroke: rgba(255, 255, 255, .5); }

/* the map: a winding path, level 1 at the bottom and the boss at the top */
.spmap-title { display: grid; justify-items: center; font-size: 2rem; margin: .2rem 0 .4rem; }
.spmap-title small { font: 800 .75rem var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.spmap { position: relative; width: 100%; max-width: 30rem; margin: 3rem auto 6rem; }
.sppath { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sppath path { fill: none; stroke: color-mix(in srgb, #fff 70%, transparent); stroke-width: 7px; stroke-dasharray: 2px 14px; stroke-linecap: round;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35)); }
.spnode { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: .15rem; border: 0; background: none; color: var(--ink);
  font: inherit; cursor: pointer; padding: 0; }
.spnode-ball { width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.8rem; color: #fff;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--hot) 40%, #fff), var(--hot) 55%, color-mix(in srgb, var(--hot) 60%, black));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), 0 0 0 3.5px #fff, 0 6px 0 3.5px rgba(0, 0, 0, .25), 0 12px 18px -4px rgba(0, 0, 0, .5);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.spnode-ball b { font-weight: 400; }
.spnode.done .spnode-ball { --hot: var(--gold); }
.spnode.locked .spnode-ball { --hot: #8a8fa3; filter: saturate(.3); }
.spnode.locked .spnode-ball .ic { width: 45%; height: 45%; }
.spnode.open:not(.done) .spnode-ball { animation: sppulse 1.6s ease-in-out infinite; }
@keyframes sppulse { 50% { transform: scale(1.08); } }
.spnode-t { font: 800 .72rem var(--body); white-space: nowrap; padding: .1rem .45rem; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; }
.spnode-t .ic { width: .9rem; height: .9rem; vertical-align: -.15em; }
.spnode-ball.big { width: 5rem; height: 5rem; margin: 0 auto; font-size: 2.2rem; }
.spme { position: absolute; bottom: calc(100% - 1.4rem); left: 50%; width: 4.6rem; height: 4.6rem; transform: translateX(-50%); animation: hbob 2.4s ease-in-out infinite;
  pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .4)); z-index: 3; }
.spme svg, .spfriend svg { width: 100%; height: 100%; }
.spfriend { position: absolute; top: .2rem; left: calc(100% + .2rem + var(--k) * 2.6rem); width: 2.6rem; display: grid; justify-items: center; pointer-events: none; }
.spfriend svg { width: 2.6rem; height: 2.6rem; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.spfriend b { font: 800 .6rem var(--body); max-width: 4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; background: rgba(0, 0, 0, .55);
  border-radius: 99px; padding: 0 .3rem; }

/* the boss: a big version of a character, with the 3D crown and a red glow */
.spboss-art { position: relative; display: block; width: 8rem; height: 8rem; filter: drop-shadow(0 0 14px rgba(255, 40, 60, .55)) drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.spboss-art svg { width: 100%; height: 100%; }
.spcrown3d { position: absolute; left: -40%; top: -64%; width: 180%; height: 180%; pointer-events: none; }
.spboss-art.big { width: 9.5rem; height: 9.5rem; margin: 2rem auto .4rem; }
.spboss-art.small { width: 3.6rem; height: 3.6rem; flex: none; margin-top: .8rem; }
.spboss-art.beaten { filter: grayscale(.6) drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); transform: rotate(-12deg); }
.spboss.locked .spboss-art { filter: grayscale(.75) brightness(.85) drop-shadow(0 8px 8px rgba(0, 0, 0, .45)); }
.spboss-name { font-family: var(--display); font-size: 1.2rem; color: #fff; padding: .15rem .8rem; border-radius: 99px; background: linear-gradient(180deg, #ff5a6e, #c4122e);
  box-shadow: 0 3px 0 #7d0a1c; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); white-space: nowrap; }
.spgate { font: 800 .8rem var(--body); color: #fff; background: rgba(0, 0, 0, .55); padding: .15rem .5rem; border-radius: 99px; }
.spgate .ic { width: .9rem; height: .9rem; vertical-align: -.15em; }

/* playing a level */
.sphead { align-items: center; gap: .5rem; }
.sphead-t { display: grid; }
.sphead-t b { font-size: 1rem; }
.sphead-t small { font-weight: 800; opacity: .75; font-size: .75rem; }
.sphead-t .ic { width: .9rem; height: .9rem; vertical-align: -.15em; }
.spclock { font-family: var(--display); font-size: 2rem; color: var(--ink); min-width: 3rem; text-align: center; display: inline-block; }
.spclock.low { color: var(--opt-0); animation: shake .5s infinite; }
.spclaim { margin-top: .7rem; font-size: 1.3rem; font-weight: 800; text-align: center; padding: .7rem; border-radius: 14px; background: var(--sunk); }
.spclaim b { color: var(--hot); }
.spbossbar { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem; border-radius: 16px; background: var(--panel); border: 2px solid #c4122e; margin-bottom: .5rem; position: relative; }
.spbossbar.hit { animation: shake .4s; }
.sphp { display: block; height: .8rem; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; margin-top: .3rem; }
.sphp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(180deg, #ff7a8a, #e0213d); transition: width .5s; }
.sphit { position: absolute; right: 1rem; top: -.6rem; font-family: var(--display); font-size: 1.8rem; color: #ffd23d; text-shadow: 0 2px 0 #7d0a1c; }
.sptrick { text-align: center; font-weight: 900; color: #fff; background: #c4122e; border-radius: 12px; padding: .4rem; margin-bottom: .5rem; }
.spink { background: #120a1e; color: transparent; border-radius: 40% 60% 55% 45%; box-shadow: 0 0 0 4px #120a1e; }
.spfog .abtn { animation: spfog 2s steps(1) forwards; }
@keyframes spfog { 0% { visibility: hidden; } 100% { visibility: visible; } }
.spdone { padding: 1.2rem; }
.spdone.won .title { color: var(--zest); }
.sprewards { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; margin: .5rem 0; }
.spitem { margin-top: .4rem; font-weight: 800; }
.spvs { margin-top: .6rem; font-weight: 800; }
.splevel > .btn.wide { margin-top: .5rem; }
html.tabland .spmap { max-width: 44rem; }
/* above the theme's scenery (the moon, lights) */
.splevel, .spmapview, .sphub { position: relative; z-index: 4; }
/* friends stand just below their level, so they never cover you */
.spfriend { top: calc(100% - .2rem); left: calc(50% - 1.3rem + (var(--k) - .5) * 2.8rem); }

/* the 3D world map (sp.js viewSPMap3D, spworld3d.js): the whole screen, edge to edge, nothing of the theme round it,
   no page scrolling (you move along the world by dragging it) */
html.spmapon #stage-bg, html.spmapon .scene, html.spmapon #scene { display: none !important; }
html.spmapon, html.spmapon body { background: #dceaff !important; overflow: hidden; overscroll-behavior: none; }
html.spmapon #app { padding-bottom: 0; }
.sp3dview { position: fixed; inset: 0; z-index: 4; background: #dceaff; }
.sp3dhost { position: absolute; inset: 0; }
.sp3d-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.sp3head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: max(10px, env(safe-area-inset-top)) 14px 1.4rem;
  background: linear-gradient(rgba(20, 40, 80, .5), transparent); pointer-events: none; }
.sp3head > * { pointer-events: auto; }
.sp3head b { color: #fff; font-size: 1.15rem; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }

/* levels against the computer (sp.js spVsBar): the scoreboard, its "answered!" ping, Knockout's line-up, Crown Hunt,
   Closest Wins' number box, and the rival named on a level's card */
.spvsbar { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: 16px; background: var(--panel);
  border: 2px solid var(--line, rgba(0, 0, 0, .12)); margin-bottom: .5rem; position: relative; }
.spvsbar.boss { border-color: #c4122e; }
.spvs-side { flex: 1; display: flex; align-items: center; gap: .45rem; min-width: 0; }
.spvs-side.them { justify-content: flex-end; text-align: right; position: relative; }
.spvs-side .av { width: 2.4rem; height: 2.4rem; flex: none; position: relative; }
.spvs-side .av svg { width: 100%; height: 100%; }
.spvs-side b { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spvs-n { display: flex; align-items: center; gap: .15rem; font: 1.3rem/1 'Lilita One', var(--display), sans-serif; }
.spvs-side.them .spvs-n { justify-content: flex-end; }
.spvs-n .ic { width: 1rem; height: 1rem; color: #f2b300; }
.spvs-mid { font: 1rem 'Lilita One', var(--display), sans-serif; opacity: .55; }
.spping { position: absolute; top: -.55rem; right: 2.6rem; font: 800 .65rem var(--body); font-style: normal; color: #fff; background: #ff4d6d;
  border-radius: 99px; padding: .1rem .45rem; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; pointer-events: none; }
.spping.on { opacity: 1; transform: none; }
.spko { display: grid; grid-template-columns: repeat(6, 1fr); gap: .25rem; padding: .4rem; border-radius: 16px; background: var(--panel); margin-bottom: .5rem; }
.spko-p { display: grid; justify-items: center; gap: .1rem; min-width: 0; transition: opacity .4s, filter .4s; }
.spko-p .av { width: 2.3rem; height: 2.3rem; }
.spko-p .av svg { width: 100%; height: 100%; }
.spko-p b { font-size: .58rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spko-p.out { opacity: .35; filter: grayscale(1); }
.spguess { display: flex; gap: .5rem; margin-top: .7rem; }
.spguess input { flex: 1; min-width: 0; font: 800 1.3rem var(--body); padding: .7rem .9rem; border-radius: 14px; border: 2px solid var(--line, rgba(0, 0, 0, .15));
  background: var(--panel); color: inherit; }
.spdouble { background: #ffc93d !important; color: #4a3000 !important; }
.sprival { display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 0; font-weight: 700; }
.sprival .av { width: 2rem; height: 2rem; }
.sprival .av svg { width: 100%; height: 100%; }

/* what the boss says */
.sptaunt { position: relative; align-self: center; max-width: 92%; margin: .3rem auto; padding: .4rem .8rem; border-radius: 14px; background: var(--sunk); border: 2px solid var(--gold); color: var(--ink); font-weight: 800; font-size: .92rem; text-align: center; }

/* lives */
.spheart { width: 1.05em; height: 1.05em; vertical-align: -.18em; }
.splives small { opacity: .8; font-weight: 800; margin-left: .15rem; }
.splives-big { display: flex; justify-content: center; gap: .3rem; margin: .2rem 0 .4rem; }
.splives-big .spheart { width: 2.2rem; height: 2.2rem; }
.spheart.empty path:first-child { fill: #6b6f80; }

/* Single Player prize reveal (sp.js spReveal): Neon City's hologram crate glitches open, Retro Arcade's claw drops a capsule,
   the Festive Event's present bursts open */
.sprv .sprv-box { overflow: hidden; }
.sprv-stage { position: relative; height: 13rem; margin: -.2rem 0 .4rem; }
.sprv-stage img { position: absolute; display: block; pointer-events: none; }
.sprv-item { position: absolute; left: 50%; bottom: 1.2rem; width: 8.5rem; height: 8.5rem; margin-left: -4.25rem; display: grid; place-items: center;
  transform: scale(0); opacity: 0; animation: sprvItem .6s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.sprv-item > svg, .sprv-item > img { width: 100%; height: 100%; object-fit: contain; }
.sprv-title { font: 900 1.3rem var(--display, var(--body)); color: var(--r-legendary, var(--gold)); padding: .5rem .9rem; border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 16%, var(--sunk)); border: 2px solid var(--gold); white-space: nowrap; }
.sprv-beam { position: absolute; left: 50%; bottom: 1rem; width: 7rem; height: 12rem; margin-left: -3.5rem; opacity: 0; transform-origin: bottom;
  background: linear-gradient(0deg, rgba(255, 255, 255, .7), transparent); filter: blur(6px); border-radius: 50% 50% 0 0; animation: sprvBeam 1.2s ease-out forwards; }
.sprv-text { opacity: 0; animation: sprvFade .4s ease-out forwards; }
@keyframes sprvItem { from { transform: scale(0) translateY(2rem); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes sprvBeam { 0% { opacity: 0; transform: scaleY(.2); } 30% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1.1); } }
@keyframes sprvFade { to { opacity: 1; } }

/* Neon City: the crate floats in, glitches (slices jump, cyan and pink ghosts), the lid blows off, the prize comes up */
.sprv.neon .sprv-beam { background: linear-gradient(0deg, rgba(51, 225, 255, .8), rgba(255, 61, 139, .2), transparent); animation-delay: 1.25s; }
.sprv.neon .sprv-item { animation-delay: 1.45s; }
.sprv.neon .sprv-text { animation-delay: 1.75s; }
.sprv-crate { position: absolute; left: 50%; bottom: .6rem; width: 9rem; height: 9rem; margin-left: -4.5rem; animation: sprvCrate 1.9s ease-in-out forwards; }
.sprv-crate img { inset: 0; width: 100%; height: 100%; }
.sprv-crg { opacity: 0; mix-blend-mode: screen; }
.sprv-crg.g1 { filter: sepia(1) hue-rotate(150deg) saturate(4); animation: sprvGlitch1 1.2s steps(1) forwards; }
.sprv-crg.g2 { filter: sepia(1) hue-rotate(290deg) saturate(4); animation: sprvGlitch2 1.2s steps(1) forwards; }
.sprv-crb { animation: sprvSlice 1.2s steps(1) forwards; }
.sprv-lid { animation: sprvLid .7s ease-in 1.15s forwards; }
@keyframes sprvCrate { 0% { transform: translateY(-2rem) scale(.6); opacity: 0; } 18% { transform: translateY(0) scale(1); opacity: 1; }
  70% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(1rem) scale(.9); opacity: 0; } }
@keyframes sprvSlice { 0%, 30% { clip-path: none; transform: none; } 35% { clip-path: inset(20% 0 55% 0); transform: translateX(-8%); }
  40% { clip-path: none; transform: translateX(4%); } 48% { clip-path: inset(55% 0 10% 0); transform: translateX(7%); } 54% { clip-path: none; transform: none; }
  66% { clip-path: inset(0 0 70% 0); transform: translateX(-5%); } 72% { clip-path: none; transform: translateX(2%) skewX(-6deg); } 80%, 100% { clip-path: none; transform: none; } }
@keyframes sprvGlitch1 { 0%, 30% { opacity: 0; } 35% { opacity: .8; transform: translate(-7%, 2%); } 45% { opacity: 0; } 62% { opacity: .9; transform: translate(-4%, -3%); } 70%, 100% { opacity: 0; } }
@keyframes sprvGlitch2 { 0%, 38% { opacity: 0; } 42% { opacity: .8; transform: translate(6%, -2%); } 50% { opacity: 0; } 72% { opacity: .9; transform: translate(5%, 3%); } 80%, 100% { opacity: 0; } }
@keyframes sprvLid { to { transform: translate(30%, -120%) rotate(28deg); opacity: 0; } }

/* Retro Arcade: the claw lowers the capsule, lets go, it bounces, its top pops off, the prize comes up */
.sprv.arcade .sprv-beam { background: linear-gradient(0deg, rgba(255, 210, 31, .85), rgba(255, 111, 209, .25), transparent); animation-delay: 1.65s; }
.sprv.arcade .sprv-item { animation-delay: 1.8s; }
.sprv.arcade .sprv-text { animation-delay: 2.1s; }
.sprv-claw { left: 50%; top: -8.4rem; width: 4.2rem; margin-left: -2.1rem; transform: translateY(-100%); animation: sprvClaw 1.6s ease-in-out forwards; }   /* (13.8rem tall: its prongs grip the capsule's top) */
.sprv-cap { position: absolute; left: 50%; top: 0; width: 5.6rem; height: 5.6rem; margin-left: -2.8rem; transform: translateY(-8rem); animation: sprvCap 1.6s forwards; }
.sprv-cap img { inset: 0; width: 100%; height: 100%; }
.sprv-capt { animation: sprvCapTop .6s ease-in 1.55s forwards; }
.sprv-capb { animation: sprvCapBot .5s ease-in 1.75s forwards; }
@keyframes sprvClaw { 0% { transform: translateY(-100%); } 40%, 50% { transform: translateY(0); } 100% { transform: translateY(-110%); } }
@keyframes sprvCap { 0% { transform: translateY(-8rem); animation-timing-function: ease-in-out; } 40% { transform: translateY(4.2rem); }
  50% { transform: translateY(4.2rem); animation-timing-function: ease-in; } 72% { transform: translateY(6.6rem); animation-timing-function: ease-out; }
  82% { transform: translateY(5.4rem); animation-timing-function: ease-in; } 92%, 100% { transform: translateY(6.6rem); } }
@keyframes sprvCapTop { to { transform: translate(-20%, -140%) rotate(-30deg); opacity: 0; } }
@keyframes sprvCapBot { to { transform: translateY(20%) scale(.8); opacity: 0; } }
/* the Festive Event's (owner, 8 Nov): a present drops in, shakes harder and harder, then its lid and bow fly off and scraps
   of its paper burst out; the box sinks away and the prize rises from it */
.sprv.present .sprv-beam { background: linear-gradient(0deg, rgba(255, 214, 90, .85), rgba(255, 74, 90, .25), transparent); animation-delay: 1.45s; }
.sprv.present .sprv-item { animation-delay: 1.6s; }
.sprv.present .sprv-text { animation-delay: 1.9s; }
.sprv-gift { position: absolute; left: 50%; bottom: .4rem; width: 9.5rem; height: 9.5rem; margin-left: -4.75rem; transform-origin: 50% 85%;
  animation: sprvGiftIn .35s ease-out both, sprvGiftShake 1.05s ease-in-out .35s; }
.sprv-gift img { inset: 0; width: 100%; height: 100%; }
.sprv-gbase, .sprv-glid, .sprv-gbow { opacity: 0; }
.sprv-gwhole { animation: sprvHide 0s 1.4s forwards; }
.sprv-gbase { animation: sprvShow 0s 1.4s forwards, sprvGBase .5s ease-in 1.75s forwards; }
.sprv-glid { animation: sprvShow 0s 1.4s forwards, sprvGLid .75s cubic-bezier(.2, .8, .4, 1) 1.4s forwards; }
.sprv-gbow { animation: sprvShow 0s 1.4s forwards, sprvGBow .8s cubic-bezier(.2, .8, .4, 1) 1.4s forwards; }
.sprv-paper { left: 50%; bottom: 5.6rem; width: 2.6rem; margin-left: -1.3rem; opacity: 0; animation: sprvPaper .85s cubic-bezier(.15, .75, .4, 1) 1.4s forwards; }
.sprv-paper.s0 { --dx: -7rem; --dy: -3.5rem; --r: -220deg; }
.sprv-paper.s1 { --dx: 6.5rem; --dy: -4.5rem; --r: 260deg; width: 2.2rem; }
.sprv-paper.s2 { --dx: -4.5rem; --dy: -6.5rem; --r: 180deg; width: 2rem; }
.sprv-paper.s3 { --dx: 4rem; --dy: -7rem; --r: -200deg; width: 2.3rem; }
.sprv-paper.s4 { --dx: -8rem; --dy: 1rem; --r: 150deg; width: 2rem; }
.sprv-paper.s5 { --dx: 7.5rem; --dy: 1.5rem; --r: -160deg; }
@keyframes sprvGiftIn { from { transform: translateY(-2.5rem) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sprvGiftShake { 0%, 100% { transform: none; } 10% { transform: rotate(-3deg); } 20% { transform: rotate(3deg); }
  30% { transform: rotate(-5deg) translateY(-2%); } 40% { transform: rotate(5deg); } 50% { transform: rotate(-7deg) translateY(-4%); }
  60% { transform: rotate(7deg); } 70% { transform: rotate(-9deg) scale(1.03); } 80% { transform: rotate(9deg) scale(1.05); } 90% { transform: rotate(-5deg) scale(1.08); } }
@keyframes sprvShow { to { opacity: 1; } }
@keyframes sprvHide { to { opacity: 0; } }
@keyframes sprvGBase { to { opacity: 0; transform: translateY(12%) scale(.85); } }
@keyframes sprvGLid { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(-48%, -95%) rotate(-38deg); } }
@keyframes sprvGBow { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(42%, -120%) rotate(200deg) scale(.8); } }
@keyframes sprvPaper { 0% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
.sprv-item .sprv-bub { font-size: 1.1rem; padding: .5rem 1rem; max-width: none; }
@media (prefers-reduced-motion: reduce) { .sprv * { animation-duration: .01s !important; animation-delay: 0s !important; } }
/* (15 Nov) shown while the 3D map's lands load */
.sp3dload { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1.1rem; border-radius: 999px; background: rgba(27, 16, 51, .78); color: #fff; font-weight: 800; animation: sp3dpulse 1.4s ease-in-out infinite; }
.sp3dload svg { width: 1.3em; height: 1.3em; }
@keyframes sp3dpulse { 50% { opacity: .6; } }
