.sprite { position: absolute; width: 0; height: 0; }
.bb-tag { font-size: 12px; font-style: normal; color: var(--green); margin-left: 6px; }
.small { font-size: 13px; }
.h3 { font: 800 28px var(--display); margin: 56px 0 18px; }

/* Mark colors are driven by custom properties inherited through <use>. */
.m-tile { fill: var(--tile, #006B50); }
.m-chev { fill: none; stroke: var(--mark, #F0E9D8); stroke-width: 94; stroke-linecap: round; stroke-linejoin: round; }
.m-ms { fill: var(--mark, #F0E9D8); }
.mk { width: 64px; height: 64px; display: block; }
.mk.big { width: min(180px, 60%); height: auto; aspect-ratio: 1; margin: 0 auto 18px; }
.inv { --tile: #F0E9D8; --mark: #006B50; }
.mono-ink { --tile: #1D1B17; --mark: #FFFCF4; }
.blink .m-chev, .blink.m-chev { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Paper cards */
.card, .sw, .tcard, .m-item, .digital figure {
  position: relative; isolation: isolate; margin: 0;
  filter: drop-shadow(3px 5px 6px rgba(40, 30, 10, .16));
}
.card::before, .tcard::before, .m-item::before, .digital figure::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper); clip-path: var(--torn-a);
}
.card:nth-child(even)::before, .m-item:nth-child(even)::before, .digital figure:nth-child(even)::before { clip-path: var(--torn-b); }
.card { padding: 30px 26px 24px; }
figcaption { font-size: 15px; line-height: 1.5; }
figcaption b { display: block; font: 800 20px var(--display); }

.cover { position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.cover-mark { position: absolute; right: clamp(16px, 5vw, 64px); bottom: 8%; width: clamp(120px, 20vw, 240px); height: auto; aspect-ratio: 1; transform: rotate(6deg); filter: drop-shadow(5px 7px 0 rgba(0,0,0,.15)); }
.cover-mark.reveal.in { transform: rotate(6deg); }

.grid3, .grid2 { display: grid; gap: 32px; margin-top: 36px; }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid3 figure { text-align: center; }

.clearspace { display: grid; place-items: center; margin: 0 auto 18px; width: 200px; height: 200px; border: 2px dashed var(--tomato); background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(224, 88, 60, .08) 8px 16px); }
.clearspace .mk { width: 120px; height: 120px; }
.sizes { display: flex; align-items: flex-end; gap: 22px; height: 200px; padding-bottom: 50px; margin-bottom: 18px; justify-content: center; }

.donts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.donts figure { margin: 0; position: relative; display: grid; place-items: center; gap: 10px; padding: 24px; border: 2px dashed rgba(29, 27, 23, .3); }
.donts figure::after {
  content: ""; position: absolute; inset: 18px;
  background: linear-gradient(45deg, transparent 48%, var(--tomato) 48% 52%, transparent 52%);
  pointer-events: none;
}
.donts figcaption { font-family: var(--mono); font-size: 13px; }

/* Color */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.sw { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 230px; padding: 22px; color: var(--t); }
.sw::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); clip-path: var(--torn-b); }
.sw:nth-child(odd)::before { clip-path: var(--torn-c); }
.sw.sm { min-height: 140px; }
.sw b { font: 800 30px var(--display); }
.sw i { opacity: .7; font-size: 14px; }

/* Type */
.types { display: grid; gap: 28px; margin-top: 36px; }
.tcard { padding: 28px 30px; }
.tcard > span { color: var(--green); }
.t-disp { font: 800 clamp(48px, 8vw, 96px)/1 var(--display); margin: 10px 0 0; }
.t-body { font-size: 20px; max-width: 640px; margin: 10px 0 0; }
.t-mono { font: 500 clamp(26px, 4vw, 40px) var(--mono); margin: 10px 0 0; color: var(--green); }

/* Splash screen demo */
.screen {
  position: relative; margin-top: 36px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #000;
  border: 10px solid var(--ink); box-shadow: 6px 10px 0 rgba(0,0,0,.15);
}
/* Splash: every animated layer gets its own wrapper so transforms never fight. */
.splash { position: absolute; inset: 0; container-type: size; }
.sp-type { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); color: var(--ivory); font-size: 3.2cqw; white-space: nowrap; }
.sp-type span { display: inline-block; box-sizing: content-box; overflow: hidden; vertical-align: bottom; width: 0; border-right: .55em solid var(--marker); padding-right: .25em; }
.sp-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqh; }
.sp-collage { position: relative; width: 24cqw; aspect-ratio: 1; }
.sp-slam { position: absolute; inset: 0; }
.sp-tile { width: 100%; height: 100%; display: block; --tile: #F0E9D8; --mark: #006B50; filter: drop-shadow(.5cqw .8cqw 0 rgba(0,0,0,.28)); }
.sp-slam { transform: rotate(-3deg); }

.sp-scrap { position: absolute; display: block; transform: rotate(var(--r)); opacity: 0; }
.sp-scrap.a { --r: -12deg; --fx: -70cqw; --fy: -20cqh; --fr: -200deg; left: -26%; top: 6%; width: 62%; height: 58%; background: var(--kraft); clip-path: var(--torn-a); }
.sp-scrap.b { --r: 10deg; --fx: 60cqw; --fy: -60cqh; --fr: 160deg; right: -22%; top: -12%; width: 52%; height: 44%; background: var(--tomato); clip-path: var(--torn-b); }
.sp-scrap.c { --r: 4deg; --fx: -20cqw; --fy: 70cqh; --fr: -120deg; left: 4%; bottom: -16%; width: 86%; height: 30%; background: var(--marker); clip-path: var(--torn-c); }
.sp-scrap.d { --r: -7deg; --fx: 70cqw; --fy: 40cqh; --fr: 220deg; right: -18%; bottom: 0%; width: 40%; height: 58%; clip-path: var(--torn-a);
  background: repeating-linear-gradient(transparent 0 12%, rgba(0, 107, 80, .25) 12% 13.5%), var(--paper); }

.sp-tape { position: absolute; width: 34%; height: 11%; background: rgba(245, 211, 90, .75); transform: scaleX(0); display: block;
  clip-path: polygon(0 10%, 5% 0, 10% 12%, 15% 0, 85% 0, 90% 12%, 95% 0, 100% 10%, 100% 90%, 95% 100%, 90% 88%, 85% 100%, 15% 100%, 10% 88%, 5% 100%, 0 90%); }
.sp-tape.l { left: -10%; top: 2%; rotate: -38deg; transform-origin: left; }
.sp-tape.r { right: -10%; bottom: 4%; rotate: -38deg; transform-origin: right; }

.sp-bits { position: absolute; left: 50%; top: 50%; }
.sp-bits i { position: absolute; width: 1.1cqw; height: 1.6cqw; opacity: 0; background: var(--ivory); clip-path: var(--torn-b); }
.sp-bits i:nth-child(3n+1) { background: var(--tomato); }
.sp-bits i:nth-child(3n+2) { background: var(--marker); }
.sp-bits i:nth-child(1) { --dx: -22cqw; --dy: -14cqh; }
.sp-bits i:nth-child(2) { --dx: 20cqw; --dy: -18cqh; }
.sp-bits i:nth-child(3) { --dx: -26cqw; --dy: 10cqh; }
.sp-bits i:nth-child(4) { --dx: 25cqw; --dy: 14cqh; }
.sp-bits i:nth-child(5) { --dx: -8cqw; --dy: -30cqh; }
.sp-bits i:nth-child(6) { --dx: 10cqw; --dy: 30cqh; }
.sp-bits i:nth-child(7) { --dx: -30cqw; --dy: -2cqh; }
.sp-bits i:nth-child(8) { --dx: 31cqw; --dy: 0cqh; }
.sp-bits i:nth-child(9) { --dx: -16cqw; --dy: 26cqh; }
.sp-bits i:nth-child(10) { --dx: 16cqw; --dy: -28cqh; }

.sp-name { display: flex; gap: .5cqw; margin: 0; font: 800 5.4cqw/1 var(--display); }
.sp-name i { font-style: normal; display: block; padding: .08em .16em .14em; opacity: 0; background: var(--paper); color: var(--ink); clip-path: var(--torn-a); }
.sp-name i:nth-child(2) { background: var(--ink); color: var(--ivory); clip-path: var(--torn-b); --r: 5deg; }
.sp-name i:nth-child(1) { --r: -6deg; }
.sp-name i:nth-child(3) { background: var(--kraft); --r: -2deg; clip-path: var(--torn-c); }
.sp-name i:nth-child(4) { --r: 7deg; font-style: italic; }
.sp-name i:nth-child(5) { background: var(--tomato); color: var(--paper); --r: -4deg; clip-path: var(--torn-b); }
.sp-name i:nth-child(6) { background: var(--marker); --r: 3deg; clip-path: var(--torn-c); }
.sp-name i:nth-child(7) { background: var(--green); color: var(--ivory); --r: -5deg; }

.sp-fade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }

/* Timeline (~3.7 s) */
.play .sp-type span { animation: sp-type .5s steps(13) .05s forwards; }
.play .sp-type { animation: sp-enter .2s ease-in .6s forwards; }
.play .sp-scrap { animation: sp-fly .45s cubic-bezier(.2, 1.2, .4, 1) forwards; }
.play .sp-scrap.a { animation-delay: .65s; }
.play .sp-scrap.b { animation-delay: .7s; }
.play .sp-scrap.c { animation-delay: .75s; }
.play .sp-scrap.d { animation-delay: .8s; }
.play .sp-slam { animation: sp-slam .35s cubic-bezier(.5, 0, .7, .4) .9s both; }
.play .sp-stage { animation: sp-shake .3s linear 1.25s; }
.play .sp-bits i { animation: sp-burst .7s cubic-bezier(.1, .8, .3, 1) 1.25s forwards; }
.play .sp-chev-wrap { transform-box: fill-box; animation: sp-slide .25s cubic-bezier(.2, 1.4, .4, 1) 1.35s both, sp-blink .3s steps(1) 1.6s 2; }
.play .sp-wipe { transform-box: fill-box; transform-origin: left; transform: scaleX(0); animation: sp-write .5s cubic-bezier(.6, 0, .3, 1) 1.55s forwards; }
.play .sp-tape { animation: sp-tape .2s ease-out forwards; }
.play .sp-tape.l { animation-delay: 2s; }
.play .sp-tape.r { animation-delay: 2.07s; }
.play .sp-name i { animation: sp-letter .35s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.play .sp-name i:nth-child(1) { animation-delay: 2.05s; }
.play .sp-name i:nth-child(2) { animation-delay: 2.1s; }
.play .sp-name i:nth-child(3) { animation-delay: 2.15s; }
.play .sp-name i:nth-child(4) { animation-delay: 2.2s; }
.play .sp-name i:nth-child(5) { animation-delay: 2.25s; }
.play .sp-name i:nth-child(6) { animation-delay: 2.3s; }
.play .sp-name i:nth-child(7) { animation-delay: 2.35s; }
.play.splash { animation: sp-out .5s cubic-bezier(.5, 0, .8, .5) 3.2s forwards; }
.play .sp-fade { animation: sp-fadeout .45s linear 3.25s forwards; }

@keyframes sp-type { to { width: 13ch; } }
@keyframes sp-enter { to { opacity: 0; transform: translate(-50%, -120%) scale(.9); } }
@keyframes sp-fly {
  from { opacity: 1; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.7); }
  to { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes sp-slam {
  0% { opacity: 0; transform: scale(3) rotate(-24deg); }
  80% { opacity: 1; transform: scale(.94, 1.04) rotate(-2deg); }
  90% { transform: scale(1.04, .96) rotate(-3.5deg); }
  100% { opacity: 1; transform: rotate(-3deg); }
}
@keyframes sp-shake {
  20% { transform: translate(-1.2cqw, .6cqh); } 40% { transform: translate(1cqw, -.8cqh); }
  60% { transform: translate(-.6cqw, .4cqh); } 80% { transform: translate(.3cqw, -.2cqh); }
}
@keyframes sp-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(540deg); }
}
@keyframes sp-slide { from { opacity: 0; transform: translateX(-60%); } to { opacity: 1; transform: none; } }
@keyframes sp-blink { 50% { opacity: 0; } }
@keyframes sp-write { to { transform: scaleX(1); } }
@keyframes sp-tape { to { transform: scaleX(1); } }
@keyframes sp-letter {
  from { opacity: 0; transform: translateY(-14cqh) rotate(calc(var(--r, 0deg) * -4)) scale(1.4); }
  to { opacity: 1; transform: rotate(var(--r, 0deg)); }
}
@keyframes sp-out { to { transform: scale(.94); } }
@keyframes sp-fadeout { to { opacity: 1; } }
.replay { position: absolute; right: 16px; bottom: 14px; background: var(--ivory); color: var(--ink); border: 0; padding: 6px 14px; cursor: pointer; clip-path: var(--torn-c); }
.screen-tag { position: absolute; left: 16px; bottom: 16px; color: rgba(240, 233, 216, .5); font-size: 12px; }
.motion-notes ul { padding-left: 18px; margin: 10px 0 0; }
.loader { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 18px; background: #063E32; color: var(--ivory); border-radius: 10px; }
.loader .mk { width: 44px; height: 44px; }

/* Merch */
.merch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px; margin-top: 36px; }
.m-item { padding: 26px 22px 20px; text-align: center; }
.m-item figcaption { margin-top: 14px; font-style: italic; }
.m-item > div { height: 230px; display: grid; place-items: center; position: relative; }

.tee { width: 220px; margin: 0 auto; }
.tee-body { width: 220px; height: 230px; fill: #006B50; }
.tee.light .tee-body { fill: #F7F2E6; stroke: rgba(0,0,0,.15); stroke-width: 3; }
.tee-mark { position: absolute; top: 62px; left: 50%; width: 64px !important; height: 64px !important; transform: translateX(-50%); }
.tee:not(.light) .tee-mark { --tile: transparent; }
.tee.light .tee-mark { --tile: #006B50; --mark: #F0E9D8; }
.tee-text { position: absolute; top: 136px; left: 0; right: 0; font-size: 11px; color: var(--green); }

.mug { display: flex !important; align-items: center; justify-content: center; }
.mug-body { width: 130px; height: 150px; background: var(--paper); border: 4px solid var(--ink); border-radius: 8px 8px 24px 24px; display: grid; place-items: center; }
.mug-body .mk { width: 70px; height: 70px; }
.mug-handle { width: 46px; height: 76px; border: 12px solid var(--ink); border-left: 0; border-radius: 0 40px 40px 0; margin-left: -4px; }

.cap { display: flex !important; flex-direction: column; align-items: center; justify-content: center; }
.cap-crown { width: 190px; height: 100px; background: var(--ink); border-radius: 100px 100px 6px 6px; display: grid; place-items: center; }
.cap-crown .mk { width: 54px; height: 54px; outline: 4px solid var(--paper); outline-offset: 0; border-radius: 12px; margin-top: 18px; }
.cap-brim { width: 240px; height: 26px; background: #2c2a25; border-radius: 0 0 120px 120px / 0 0 26px 26px; margin-left: 70px; }

.tote { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end; }
.tote-strap { width: 90px; height: 60px; border: 9px solid #b9a37a; border-bottom: 0; border-radius: 60px 60px 0 0; }
.tote-body { width: 170px; height: 160px; background: var(--kraft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%); }
.tote-body .mk { width: 72px; height: 72px; }
.tote-body span { font-size: 11px; }

.stickers-sheet { background: #fff; border-radius: 8px; width: 210px; height: 200px !important; margin: 0 auto; display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.stk { display: grid; place-items: center; filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.stk.round .mk { width: 70px; height: 70px; border: 5px solid #fff; border-radius: 18px; transform: rotate(-8deg); }
.stk.round.t .mk { transform: rotate(10deg); }
.stk.word { background: var(--ink); color: var(--marker); font: 800 18px var(--display); padding: 6px 10px; border: 4px solid #fff; border-radius: 30px; transform: rotate(6deg); }
.stk.word.g { background: var(--tomato); color: #fff; font-size: 13px; transform: rotate(-5deg); }

/* Business card flip */
.bcard-wrap { perspective: 1400px; display: flex; justify-content: center; margin-top: 36px; }
.bcard {
  position: relative; width: min(440px, 90vw); aspect-ratio: 85 / 55;
  border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1);
  transform: rotate(-2deg);
}
.bcard:hover, .bcard.flip { transform: rotateY(180deg) rotate(2deg); }
.bc-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 6px;
  display: flex; flex-direction: column; justify-content: center; padding: 8% 9%; text-align: left;
  box-shadow: 4px 8px 18px rgba(40, 30, 10, .25);
}
.bc-front { background: var(--paper); }
.bc-front .mk { width: 54px; height: 54px; margin-bottom: auto; }
.bc-name { font: 800 32px var(--display); }
.bc-role { font-style: italic; }
.bc-line { margin-top: 10px; font-size: 13px; color: var(--green); }
.bc-back { background: var(--green); color: var(--ivory); transform: rotateY(180deg); align-items: center; text-align: center; }
.bc-ms { width: 70%; height: 70%; fill: var(--ivory); }

/* Digital */
.digital { display: grid; grid-template-columns: 300px 1fr; gap: 34px; margin-top: 36px; }
.digital figure { padding: 22px; }
.digital figcaption { margin-top: 12px; font-style: italic; text-align: center; }
.digital .wide { grid-column: 1 / -1; }
.dig-col { display: grid; gap: 34px; }

.phone { width: 230px; height: 440px; margin: 0 auto; border: 10px solid var(--ink); border-radius: 36px; padding: 40px 16px; background: linear-gradient(160deg, #d8c39b, #b99b6c); }
.ph-grid { display: grid; grid-template-columns: repeat(4, 34px); justify-content: space-between; gap: 18px 0; }
.ph-grid i, .ph-app .mk { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.45); display: block; }
.ph-grid i:nth-child(3n) { background: rgba(29, 27, 23, .25); }
.ph-app { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-app .mk { background: none; animation: pop 2.4s ease-in-out infinite; }
.ph-app em { font: 600 10px var(--body); font-style: normal; }
@keyframes pop { 0%, 80%, 100% { transform: none; } 88% { transform: scale(1.15) rotate(-4deg); } }

.browser { background: #ddd5c3; border-radius: 10px; overflow: hidden; }
.br-tabs { display: flex; gap: 4px; padding: 8px 8px 0; }
.br-tab { display: flex; align-items: center; gap: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px 8px 0 0; font-size: 14px; white-space: nowrap; overflow: hidden; }
.br-tab .mk { width: 16px; height: 16px; flex: none; }
.br-tab.dim { background: transparent; opacity: .6; }
.br-url { background: var(--paper); padding: 10px 16px; border-top: 1px solid rgba(0,0,0,.06); font-size: 13px; }

.profile { background: var(--paper); border-radius: 10px; overflow: hidden; position: relative; padding-bottom: 16px; }
.pr-banner { height: 110px; background: var(--green); display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-right: 24px; font: 800 26px var(--display); }
.pr-banner .scrap { --r: -3deg; }
.pr-banner .scrap:nth-child(2) { --r: 4deg; }
.pr-banner .scrap:nth-child(3) { --r: -1deg; background: var(--kraft); }
.pr-avatar { position: absolute; top: 66px; left: 22px; width: 84px; height: 84px; border: 5px solid var(--paper); border-radius: 22px; }
.pr-info { padding: 46px 22px 0; }
.pr-info b { font: 800 22px var(--display); margin-right: 8px; }
.pr-info span { opacity: .6; }
.pr-info p { margin: 4px 0 0; font-size: 15px; }

.capsule { aspect-ratio: 460 / 215; max-height: 300px; margin: 0 auto; border-radius: 6px; display: flex; align-items: center; gap: 5%; padding: 0 7%; color: var(--ivory); background: linear-gradient(115deg, #063E32 0 55%, #006B50 55% 72%, var(--tomato) 72% 74%, #006B50 74%); }
.capsule .mk { width: 22%; height: auto; aspect-ratio: 1; --tile: #F0E9D8; --mark: #006B50; transform: rotate(-4deg); }
.capsule span { display: block; color: var(--marker); }
.capsule b { font: 800 clamp(26px, 4.5vw, 56px)/1 var(--display); }

.sig { background: #fff; border-radius: 8px; padding: 22px 28px; max-width: 520px; margin: 0 auto; font-size: 15px; }
.sig p { margin: 0 0 12px; }
.sig-row { display: flex; gap: 14px; align-items: center; border-top: 2px solid var(--green); padding-top: 12px; }
.sig-row .mk { width: 52px; height: 52px; }
.sig-row div { display: flex; flex-direction: column; line-height: 1.35; }
.sig-row b { font: 800 18px var(--display); }
.sig-row .mono { color: var(--green); font-size: 12px; }

@media (max-width: 760px) {
  .swatches { grid-template-columns: 1fr 1fr; }
  .digital { grid-template-columns: 1fr; }
  .cover-mark { position: static; margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-type { display: none; }
  .sp-scrap, .sp-name i { opacity: 1; }
  .sp-wipe, .sp-tape { transform: none !important; }
}

/* Splash B: quick pop, no text */
.spb.play { animation: none; }
.spb-out { position: absolute; left: 39cqw; top: calc(50cqh - 11cqw); width: 22cqw; height: 22cqw; }
.spb-pop { width: 100%; height: 100%; transform: scale(0); }
.spb-ring { position: absolute; left: 50%; top: 50%; width: 22cqw; height: 22cqw; margin: -11cqw 0 0 -11cqw; border: .6cqw solid var(--ivory); border-radius: 26%; opacity: 0; }
/* --pop is the entrance, --hit is the impact moment everything else keys off. */
.spb { --pop: spb-mix .75s linear; --hit: .52s; }
.spb.play .spb-pop { animation: var(--pop) forwards, spb-wiggle .45s ease-in-out calc(var(--hit) + .55s); }
.spb.play .spb-ring { animation: spb-ring .55s cubic-bezier(.1, .8, .3, 1) var(--hit); }
.spb.play .sp-bits i { animation-delay: var(--hit); }
.spb.play .spb-chev { transform-box: fill-box; transform-origin: center; animation: spb-chev .2s cubic-bezier(.3, 1.8, .5, 1) calc(var(--hit) + .09s) both, sp-blink .3s steps(1) calc(var(--hit) + .55s); }
.spb.play .spb-wipe { transform-box: fill-box; transform-origin: left; transform: scaleX(0); animation: sp-write .35s cubic-bezier(.6, 0, .3, 1) calc(var(--hit) + .15s) forwards; }
.spb.play .spb-out { animation: spb-out .3s cubic-bezier(.6, -.6, .7, 0) calc(var(--hit) + 1.05s) forwards; }
.tb { margin-top: 14px; }
/* Spin + morph: a dot spirals in, grows into a circle, corners emerge mid-spin */
@keyframes spb-mix {
  0% { clip-path: inset(46% round 50%); transform: rotate(-220deg); animation-timing-function: cubic-bezier(.3, .6, .5, 1); }
  40% { clip-path: inset(14% round 50%); transform: rotate(-90deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  70% { clip-path: inset(0% round 17.5%); transform: scale(1.06) rotate(6deg); animation-timing-function: cubic-bezier(.2, 1.3, .4, 1); }
  100% { clip-path: inset(0% round 17.5%); transform: rotate(-3deg); }
}
@keyframes spb-wiggle { 30% { transform: rotate(4deg) scale(1.04); } 65% { transform: rotate(-7deg); } 100% { transform: rotate(-3deg); } }
@keyframes spb-ring { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.9); } }
@keyframes spb-chev { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes spb-out { to { transform: scale(0) rotate(15deg); } }

@media (prefers-reduced-motion: reduce) {
  .spb-pop { transform: rotate(-3deg); }
  .spb-wipe { transform: none !important; }
}
