/* The Zovy mark (s3-look 7.7, Appendix B; from scratch/mascot-page/mascot.css, "The character" on). White with one ember
   spark on the visor, no face. The mono look is the only look. Stunts snap in within about 0.1 s and end by about 1.2 s. */

/* Ink follows the theme: dark is the default, then light, then "system", then the sun-following day screen. */
:root { --k: #f4f1ea; --k2: #8d9692; --shadow: rgba(255, 120, 50, .14); --zo-slit: #ff5a1f; --zo-smoke: #9aa39f; }
:root[data-theme="light"], [data-sun="day"] { --k: #101514; --k2: #4a5350; --shadow: rgba(20, 33, 30, .14); }
[data-sun="night"] { --k: #f4f1ea; --k2: #8d9692; --shadow: rgba(255, 120, 50, .14); }
@media (prefers-color-scheme: light) {
	:root[data-theme="system"] { --k: #101514; --k2: #4a5350; --shadow: rgba(20, 33, 30, .14); }
}

.zo { display: block; overflow: visible; flex: none; -webkit-tap-highlight-color: transparent; --tyre: var(--k); }
.zo[data-tap] { cursor: pointer; }
.zo *{ transform-box: view-box; }
.zo .k { fill: var(--k); }
.zo .k2 { fill: var(--k2); }
.zo .a:not(.slit) { fill: var(--k); }
.zo .slit { fill: var(--zo-slit); }
.zo .kl { stroke: var(--k); stroke-linecap: round; }
.zo .fat { stroke-width: 10; }
.zo .mid { stroke-width: 7; }
.zo .al { stroke: var(--k); stroke-linecap: round; }
.zo .th { stroke-width: 3; }
.zo .tyre { fill: none; stroke: var(--tyre); stroke-width: 9; }
.zo .shadow { fill: var(--shadow); transform-origin: 125px 158px; }
.zo .fx { opacity: 0; }
.zo .streaks line { stroke: var(--k); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.zo .road line { stroke: var(--k); stroke-width: 4; stroke-linecap: round; }
.zo .flame path { fill: var(--k); }
.zo .smoke circle { fill: var(--zo-smoke); }
.zo .sparks line { stroke: var(--k); stroke-width: 3.5; stroke-linecap: round; }
.zo .slit { animation: zglow 1.1s ease-in-out infinite alternate; }
@keyframes zglow { to { opacity: .65; } }
.zo .ch { transform-origin: 125px 156px; }
.still .ch, .still .wh, .still .slit { animation: none !important; }

/* Riding hard: the resting state, always moving */
@keyframes zspin { to { transform: rotate(360deg); } }
.zo .wh { animation: zspin .32s linear infinite; }
.m-ride .ch { animation: zrumble .14s linear infinite alternate; }
@keyframes zrumble { from { transform: translateY(0) rotate(-.5deg); } to { transform: translateY(-1.6px) rotate(.5deg); } }
.m-ride .streaks, .m-ride .road, .m-wheelie .streaks, .m-wheelie .road, .m-stoppie .road, .m-whip .streaks { opacity: 1; animation: zpast .34s linear infinite; }
@keyframes zpast { from { transform: translateX(50px); } to { transform: translateX(-50px); } }

/* Stunts: they snap in within about 0.1 s */
.m-wheelie .ch { transform-origin: 64px 156px; animation: zwheelie 1.15s cubic-bezier(.12, .9, .2, 1) both; }
@keyframes zwheelie { 0% { transform: rotate(0); } 10% { transform: rotate(-62deg); } 16% { transform: rotate(-56deg); } 70% { transform: rotate(-60deg); } 84% { transform: rotate(0) translateY(0); } 90% { transform: translateY(-6px); } 100% { transform: none; } }
.still.m-wheelie .ch { transform-origin: 64px 156px; transform: translate(26px, 0) rotate(-52deg) scale(.82); }
.m-wheelie .flame { animation: zflash .3s steps(2) 4; }
@keyframes zflash { 0% { opacity: 0; } 50% { opacity: 1; } }

.m-stoppie .ch { transform-origin: 186px 156px; animation: zstoppie 1s cubic-bezier(.12, .9, .2, 1) both; }
@keyframes zstoppie { 0% { transform: rotate(0); } 12% { transform: rotate(50deg); } 18% { transform: rotate(44deg); } 68% { transform: rotate(46deg); } 84% { transform: rotate(0); } 92% { transform: translateY(-5px); } 100% { transform: none; } }
.still.m-stoppie .ch { transform-origin: 186px 156px; transform: translate(-30px, 0) rotate(38deg) scale(.82); }
.m-stoppie .sparks { animation: zflash .16s steps(2) 5; }

.m-whip .ch { animation: zwhip 1.05s cubic-bezier(.15, .8, .25, 1) both; }
@keyframes zwhip { 0% { transform: none; } 8% { transform: scale(1.05, .9); } 34% { transform: translateY(-78px) rotate(-22deg) skewX(-14deg); } 60% { transform: translateY(-70px) rotate(14deg) skewX(16deg); } 84% { transform: translateY(0) scale(1.08, .88); } 100% { transform: none; } }
.still.m-whip .ch { transform: translateY(-6px) rotate(-18deg) skewX(-12deg) scale(.82); }
.m-whip .shadow { animation: zjs 1.05s; }
@keyframes zjs { 34%, 60% { transform: scale(.55); opacity: .5; } }

.m-flip .ch { animation: zflip 1.2s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes zflip { 0% { transform: none; } 10% { transform: scale(1.06, .88); } 18% { transform: translateY(-40px) rotate(-30deg); } 62% { transform: translateY(-96px) rotate(-340deg) scale(.9); } 80% { transform: translateY(0) rotate(-360deg) scale(1.08, .86); } 90% { transform: translateY(-6px) rotate(-360deg); } 100% { transform: rotate(-360deg); } }
.m-flip .shadow { animation: zjs 1.2s; }

.m-burnout .ch { animation: zjit .07s linear infinite alternate; }
@keyframes zjit { from { transform: translate(-1.5px, 1px) rotate(-1.4deg); } to { transform: translate(1.5px, -1px) rotate(.4deg); } }
.m-burnout .wh:first-of-type { animation-duration: .09s; }
.m-burnout .smoke { animation: zsmoke .55s ease-out infinite; transform-origin: 44px 150px; }
@keyframes zsmoke { 0% { opacity: .95; transform: scale(.4); } 100% { opacity: 0; transform: translate(-22px, -16px) scale(1.5); } }
.m-burnout .flame { animation: zflash .2s steps(2) infinite; }

.m-rev .ch { animation: zrev .55s linear both; }
@keyframes zrev { 0% { transform: none; } 12% { transform: rotate(-9deg) translateX(-3px); } 26% { transform: rotate(2deg) translateX(2px); } 40% { transform: rotate(-7deg); } 56% { transform: rotate(1deg); } 100% { transform: none; } }
.m-rev .flame { animation: zflash .12s steps(2) 4; }

.m-donut .ch { animation: zdonut .8s cubic-bezier(.3, .7, .4, 1) both; }
@keyframes zdonut { 0% { transform: scaleX(1); } 25% { transform: scaleX(.08) skewY(14deg); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.08) skewY(-14deg); } 100% { transform: scaleX(1); } }
.m-donut .smoke { animation: zsmoke .5s ease-out 2; }

.m-stall .ch { animation: zstall 1.1s linear both; }
@keyframes zstall { 0%, 40% { transform: none; } 6% { transform: translateX(-4px); } 12% { transform: translateX(4px); } 18% { transform: translateX(-3px); } 26% { transform: translateX(3px); } 34% { transform: translateX(-2px); } 55%, 86% { transform: rotate(4deg) translateY(4px); } 100% { transform: none; } }
.m-stall .wh { animation: none; }
.m-stall .smoke { animation: zsmoke 1.1s ease-out 1; }

.m-parked .ch { transform-origin: 64px 156px; transform: rotate(-6deg); animation: ztick .1s linear infinite alternate; }
@keyframes ztick { from { transform: rotate(-6deg); } to { transform: rotate(-6deg) translateY(-.7px); } }
.m-parked .wh { animation: none; }

/* Quiet behind a safety message (SOS, crash, road warning, no signal): the mark freezes in the resting pose. */
[data-quiet] .zo * { animation: none !important; }
[data-quiet] .zo .fx { opacity: 0 !important; }

/* Reduced motion: the resting pose only, no idle, no stunts, the glow stops. */
@media (prefers-reduced-motion: reduce) {
	.zo, .zo * { animation: none !important; }
	.zo .fx { opacity: 0 !important; }
}

/* ---------- placements ---------- */
/* Title rows (6.12 placement 1): 64 px between the title and the bell, in a 64 x 48 hit area. */
.zmk { flex: none; display: flex; align-items: center; justify-content: center; min-width: 64px; min-height: 48px; }
.head .zmk { margin-right: 2px; }
/* Empty and error screens: Parked 210 px wide, Stall 120 px, centred above the words. */
.zmk.zbig { min-height: 0; margin: 0 auto 6px; }
/* The Settle up ledger (120 px) beside the ride's name. */
.ledgerhead { display: flex; align-items: center; gap: 10px; margin: -8px 0 10px; }
.ledgerhead p { flex: 1; min-width: 0; margin: 0; }
.ledgerhead .zmk { min-height: 0; min-width: 0; }
/* The profile hero, top left of your own, scrolling away with it (the glass bell and Menu are on the right). */
.pfmk { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 14px; z-index: 2; }
/* Success moment: one line and the mark, 76 px above the tab bar, 2.4 s, a tap dismisses it. */
.doneisle { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: calc(var(--col) - 24px); margin: 0 auto; background: var(--z-raised); color: var(--z-ink); box-shadow: inset 0 0 0 1px var(--z-hairline), 0 14px 30px -14px var(--z-scrim); border-radius: var(--z-r-lg); padding: 4px 16px 4px 4px; display: flex; align-items: center; gap: 8px; font-size: 15px; z-index: 90; }
.doneisle b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
