/* GROOW website: the styles shared by every page. Everything is served from this folder, by relative paths. */

/* The one font of the site, in its one weight. License: fonts/DepartureMono-OFL.txt. */
@font-face{font-family:'Departure Mono';font-display:swap;src:url('fonts/DepartureMono-Regular.otf') format('opentype')}

:root{--night:#0b0b14;--cream:#f4ecd8;--gold:#f2c230;--gold-light:#fff3a8;--blue:#2266c4;--royal:#2d4f9e;--green:#48c774;--track:#2a2a40;
  /* One pixel of a drawing is --u points on screen, always a whole number: 2 on a small phone, one more for every 80 points
     of height from 630, up to 6. The height is the one with the browser's bars shown (svh): it stays the same when they fold
     away as the page scrolls, so a drawing never changes size under the reader's thumb.
     A browser without round() (before 2024) gets the same steps from the height of its window, just below. */
  --u:2px;--odd:0px;color-scheme:dark}
@media (min-height:630px){:root{--u:3px}}
@media (min-height:710px){:root{--u:4px}}
@media (min-height:790px){:root{--u:5px}}
@media (min-height:870px){:root{--u:6px}}
@supports (width:round(down,1px,1px)){:root{--u:clamp(2px,round(down,calc((100svh - 390px) / 80),1px),6px)}}
@media (min-width:1100px) and (min-height:1100px){:root{--u:8px}}
/* A letter made of pixels is sharp only if it starts on a whole point. A centered line does when the line and the room it has are
   both an even number of points wide: on a screen an odd number of points wide (375, 393), --odd is the point too many, kept out
   of that room, on the right. A browser without mod() (before 2024) keeps it: its letters may be half a point off, a little soft. */
@supports (width:mod(1%,2px)){:root{--odd:mod(100%,2px)}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--night);color:var(--cream);font:1rem/1.5 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif}
h1,h2,h3,p,ul,ol{margin:0;padding:0}
ul,ol{list-style:none}
img{display:block;max-width:100%}
a{color:var(--cream)}
:focus-visible{outline:2px solid var(--cream);outline-offset:3px}

/* Titles, buttons, game words, figures: Departure Mono. It is drawn on a grid of 11 pixels: sharp at 11, 22 and 33 points only,
   so these sizes are in points, not in rem; its lines are 14 of its pixels apart, so every pixel of a letter lands on a whole
   point. One weight: never a fake bold. Each letter is 7 pixels wide (14 points at 22, 21 at 33).
   scripts/site-vitrine.test.ts keeps every size of this font on its grid.
   22 for buttons, links and small titles, 33 for the titles of the page (13 letters a line on the narrowest phone). Sentences
   and small labels (13 points at least): the system font. */
h1,h2,h3,.pix,.btn,.link{font:400 22px/calc(14 / 11) 'Departure Mono',ui-monospace,Menlo,monospace;font-synthesis:none;text-wrap:balance}
/* At 33 a letter is 21 points wide, an odd number: one point more between two letters, and a line is always even. */
h1,h2{font-size:33px;letter-spacing:1px}

/* One gold button per screen. Every other link: cream words in a thin blue frame. At least 44 points to touch. */
.btn,.link{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.25rem .75rem;text-align:center;text-decoration:none}
.btn{min-width:min(11rem,100%);min-height:3rem;background:var(--gold);color:var(--night)}
.btn:hover{background:var(--gold-light)}
.link{min-width:2.75rem;border:2px solid var(--blue);background:var(--night)}
.link:hover{border-color:var(--cream)}

/* ---------- Pixel drawings: real pixels, scaled by a whole number ---------- */
.ico,.hero,.alfred,.cyclist,.moon{background-repeat:no-repeat;image-rendering:pixelated}
/* The sheet of icons, 8 pixels each, --at counts them: the runner, the check, the padlock closed then open, the flame, the bike, then
   the four sports of the week (run, bike, swim, strength), in night. */
.ico{display:inline-block;flex:none;width:var(--ico,16px);height:var(--ico,16px);background-image:url('img/icons.png');background-size:1000% 100%;background-position:calc(var(--ico,16px) * var(--at,0) * -1) 0}
.check{--at:1}
.lock{--at:3}
.flame{--at:4}
.ride{--at:5}

/* A quest card, as in the app: the color of its sport on the left, its icon, its name, its box to check. */
.quest{position:relative;display:flex;align-items:center;gap:.5em;padding:.375em .5em .375em .875em;border:2px solid var(--blue);background:var(--night);text-align:left;line-height:1.2}
.quest::before{content:'';position:absolute;inset:0 auto 0 0;width:.375em;background:var(--gold)}
.quest.done{border-color:var(--green)}
.box{flex:none;width:calc(var(--ico,16px) + 4px);height:calc(var(--ico,16px) + 4px);margin-left:auto;border:2px solid var(--cream)}
.box .ico{display:block}
/* The name of a quest and its measures are small: in the system font. */
.quest b{font-weight:600}
/* The XP bar of the app: gold squares on a dark track. */
.bar{display:flex;gap:.125em}
.bar i{width:.5em;height:.5em;background:var(--track)}
.bar .on{background:var(--gold)}
.xp{color:var(--gold)}

/* ---------- The title screen: the texts, then the scene, at the bottom of the first screen ----------
   The sky fades over the whole screen in real pixels, from the night down to the dawn on the horizon: thin bands with a dither
   between them, at the scale of the scene. */
.title{position:relative;z-index:0;display:flex;flex-direction:column;align-items:center;overflow:hidden;min-height:100vh;min-height:100svh;text-align:center;image-rendering:pixelated;
  background:url('img/title-sky.png') left bottom / calc(var(--u) * 4) calc(var(--u) * 256) repeat-x var(--night)}
/* The room left on a tall screen goes above and below the texts, one part above for three below. */
.title-text{display:flex;flex:1 0 auto;flex-direction:column;align-items:center;gap:.75rem;width:calc(100% - var(--odd));max-width:42rem;margin-right:var(--odd);padding:.25rem 1rem .5rem}
.title-text::before,.title-text::after{content:'';flex:1;align-self:stretch}
.title-text::after{flex:3}
/* Stars all over the sky but never behind a text, as in the mini game: beside the texts, above and below them, above the horizon. */
.title::before,.title::after,.title-text::before,.title-text::after,.scene::before{background:url('img/title-stars.png') center bottom / calc(var(--u) * 160) calc(var(--u) * 64)}
.title::before,.title::after{content:'';position:absolute;z-index:-1;top:0;bottom:calc(var(--u) * 60);left:0;width:max(0px,calc(50% - 21rem))}
.title::after{left:auto;right:0}
.title h1{width:100%}
/* The logo file has wide margins: only the band where it is drawn is shown. */
.logo{width:min(100%,26rem);height:auto;margin:0 auto;aspect-ratio:1600 / 330;object-fit:cover;object-position:50% 57%;image-rendering:auto}
.title p{text-wrap:balance}
.title .btn{margin-top:.25rem}
/* A moon beside the texts, where there is room for it. */
.moon{display:none;position:absolute;top:calc(var(--u) * 10);left:calc(50% + 23rem);width:calc(var(--u) * 16);height:calc(var(--u) * 16);background-image:url('img/title-moon.png');background-size:100% 100%}
@media (min-width:1100px){.moon{display:block}}
@media (min-width:1100px) and (min-height:1100px){
  .title-text{font-size:1.25rem}
  .logo{width:min(100%,34rem)}
  .slogan,.title .btn{font-size:33px;letter-spacing:1px}
  .title .btn{min-width:13rem;min-height:3.5rem}
}

/* The scene: the « Road » of the mini game. From the ground up, in pixels of the drawing: 16 of road, the hills (22 at most) in
   front of the dawn, then the sky. The scene is 76 pixels high: no text ever sits lower, on the light of the horizon.
   At the bottom of the page it is hills and road only, 38 pixels: the sky sits 38 lower there, its light under the ground.
   Without animation it is a still picture that shows everything; the animations come last in this file. */
.scene{position:relative;overflow:hidden;flex:none;width:100%;height:calc(var(--u) * 76)}
.scene::before{content:'';position:absolute;inset:0 max(0px,calc(50% - 21rem)) auto;height:calc(var(--u) * 16)}
.hills,.road,.hero,.alfred,.cyclist{position:absolute;left:0;bottom:calc(var(--u) * 16)}
/* Hills and road: a strip wider than the screen by one pattern (--tile pixels), which moves back one pixel at a time. */
.hills,.road{width:calc(100% + var(--u) * var(--tile))}
.hills{--tile:672;height:calc(var(--u) * 22);background:url('img/title-hills.png') 0 0 / calc(var(--u) * 672) 100% repeat-x}
.road{--tile:32;bottom:0;height:calc(var(--u) * 16);
  background:linear-gradient(var(--royal) 0 var(--u),transparent 0),
    linear-gradient(90deg,var(--royal) 0 calc(var(--u) * 10),transparent 0) 0 calc(var(--u) * 8) / calc(var(--u) * 32) calc(var(--u) * 2) repeat-x,
    #15152a}
/* Two heroes side by side: one row of the sheet each, the four frames of the stride. Alfred by the road, a cyclist behind. */
.hero,.alfred{width:calc(var(--u) * 16);height:calc(var(--u) * 24)}
.hero{--sheet:64;left:calc(50% - var(--u) * 19);background-image:url('img/title-heroes.png');background-size:calc(var(--u) * 64) calc(var(--u) * 48)}
.hero + .hero{left:calc(50% + var(--u) * 1);background-position-y:calc(var(--u) * -24)}
.alfred{left:calc(50% + var(--u) * 20);background-image:url('img/alfred.png');background-size:100% 100%}
.cyclist{--sheet:96;display:none;left:calc(50% - var(--u) * 62);width:calc(var(--u) * 24);height:calc(var(--u) * 24);background-image:url('img/title-cyclist.png');background-size:calc(var(--u) * 96) 100%}
@media (min-width:760px){.cyclist{display:block}}
/* Above the runners: a quest gets checked, it earns XP, the bar gains a square. The only gold of the scene, kept small.
   Its words are small labels of the drawing (the label of the scene says them): Departure Mono at 11 points, one pixel of a
   letter being --fp points; 22 on a large screen, 33 on a very large one. The card is measured in the same pixels. */
.mini{--fp:1px;--ico:calc(8px + var(--fp) * 8);position:absolute;left:0;bottom:calc(var(--u) * 45);right:var(--odd);display:flex;flex-direction:column;align-items:center;gap:.25em;width:max-content;margin:auto;font-size:calc(var(--fp) * 16)}
@media (min-width:700px) and (min-height:790px){.mini{--fp:2px}}
@media (min-width:1100px) and (min-height:1100px){.mini{--fp:3px}}
.mini .pix{font-size:calc(var(--fp) * 11)}
/* One pixel more on the right: the card is an even number of points wide (its 15 letters are not), and stays centered on a whole point. */
.mini .quest{padding-right:.5625em}
/* Each on a night plate, so that no star passes behind the figures. */
.gain{display:flex;align-items:center;gap:.25em;line-height:1.2}
.gain .bar{padding:.25em}
.gain .bar,.gain .xp{background:var(--night)}
.gain .xp{padding:0 .25em}

/* ---------- The sections of the home page ----------
   The ground of the title screen goes on under it: the road, the hills, then a lighter blue and Alfred's violet. At the end of the
   page the night again, down to another dawn: the sky of the title screen, held by the bottom of the page. */
.home{background:url('img/title-sky.png') left 0 bottom calc(var(--u) * -38) / calc(var(--u) * 4) calc(var(--u) * 256) repeat-x var(--night);image-rendering:pixelated}
.section{position:relative;padding:3.5rem calc(1rem + var(--odd)) 3.5rem 1rem;text-align:center}
.section > *{max-width:38rem;margin-left:auto;margin-right:auto}
.section h2 + p,.section p + p{margin-top:.75rem}
.section > .link{margin-top:1.25rem}
.small{font-size:.8125rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* A dither between two sections, in the color of the lower one (--c): one pixel in four, one in two, three in four. */
.fade{background:var(--c)}
.fade::before,.data::before{content:'';position:absolute;inset:auto 0 100%;height:calc(var(--u) * 6);
  background:conic-gradient(var(--c) 25%,#0000 0) 0 0 / calc(var(--u) * 2) calc(var(--u) * 2) repeat-x,
    conic-gradient(var(--c) 25%,#0000 0 50%,var(--c) 0 75%,#0000 0) 0 calc(var(--u) * 2) / calc(var(--u) * 2) calc(var(--u) * 2) repeat-x,
    conic-gradient(#0000 25%,var(--c) 0) 0 calc(var(--u) * 4) / calc(var(--u) * 2) calc(var(--u) * 2) repeat-x}

/* « Every workout is a quest »: three steps, each with its drawing. */
.how{padding-bottom:calc(2rem + var(--u) * 22);background:#15152a}
.steps{display:grid;gap:2.5rem;max-width:22rem;margin-top:2rem;padding:0;counter-reset:step}
/* The title comes first, for the eye on a phone and for VoiceOver; side by side, the drawings go back on top, aligned. */
.steps li{display:flex;flex-direction:column}
.steps h3{margin:0 0 1rem;counter-increment:step}
.steps h3::before{content:counter(step) '. '}
.art{display:flex;flex-direction:column;align-items:center;gap:.625rem;margin-bottom:1rem}
/* A drawing is measured in points, like a picture: its small words do not grow with the reader's text size, its label says it all.
   The week at a glance: seven days; a quest is a square in the color of its sport, as in the app (run gold, bike sky blue, swim
   turquoise, strength violet), with its box, checked once done; a rest day is a dot. */
.week{display:grid;grid-template-columns:repeat(7,1fr);width:100%;padding:8px 2px;border:2px solid var(--blue);background:var(--night)}
.day{display:flex;flex-direction:column;align-items:center;gap:6px}
.day .box{margin:0}
.day{font-size:13px}
.q{display:grid;place-items:center;width:32px;height:32px;background:var(--c)}
.q:empty{width:4px;height:4px;margin:14px;background:#55556e}
.q .ico{--ico:24px}
.run{--c:var(--gold);--at:6}
.bike{--c:#8fb0ff;--at:7}
.swim{--c:#5fd3c4;--at:8}
.gym{--c:#b39ef0;--at:9}
/* The level won, as the app celebrates it: the hero in the object of that level, and that object as the app's wardrobe shows it
   (the hero's head, 12 rows of the same drawing) with its padlock, open. */
.levelup{display:flex;align-items:center;justify-content:center;gap:12px;--px:4px}
.lvl{display:flex;flex-direction:column;align-items:center;gap:8px}
.level{white-space:nowrap}
.gear{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:13px;--px:3px}
.gear .h{height:calc(var(--px) * 12);animation:none}
.gear .ico{position:absolute;top:24px;right:-6px}
.steps .quest{width:100%;font-size:1.0625rem}
.quest-name{display:flex;flex:1;flex-direction:column;gap:.125em}
.won{display:flex;flex-wrap:wrap;justify-content:center;gap:0 14px;color:var(--green)}
.lv{display:inline-grid}
.lv span{grid-area:1 / 1}
.lv-old{opacity:0}
.steps .bar{gap:2px;font-size:24px}
@media (min-width:820px){
  /* Three columns an even number of points wide each, so that their centered words stay sharp. */
  .steps{grid-template-columns:repeat(3,1fr);grid-template-columns:repeat(3,round(down,calc((100% - 3.75rem) / 3),2px));justify-content:center;gap:1.875rem;max-width:60rem}
  .art{order:-1;justify-content:center;min-height:13rem}
  .steps h3{margin-bottom:.375rem}
  .steps li:nth-child(3){--d:1.4s}
}

/* The heroes of the app, seen from the front: one column of the sheet each (--i), eyes open then closed. */
.cast,.talk,.shield{--px:4px}
@media (min-width:380px){.cast,.talk,.shield{--px:5px}}
@media (min-width:700px){.cast,.talk,.shield{--px:6px}}
.h,.sage{display:block;flex:none;position:relative;width:calc(var(--px) * 16);height:calc(var(--px) * 24);background:url('img/heroes.png') calc(var(--px) * -16 * var(--i)) 0 / calc(var(--px) * 96) calc(var(--px) * 48) no-repeat;image-rendering:pixelated}
.yours{padding-top:2rem;background:#16244a}
.yours::before{content:'';position:absolute;inset:auto 0 100%;height:calc(var(--u) * 22);background:url('img/title-hills.png') 0 0 / calc(var(--u) * 672) 100% repeat-x}
.cast{display:grid;grid-template-columns:repeat(auto-fit,minmax(4.25rem,1fr));gap:1rem .25rem;margin-top:2rem;font-size:.875rem}
.cast li{display:flex;flex-direction:column;align-items:center;gap:.5rem}
@media (min-width:23.75em){.cast{grid-template-columns:repeat(auto-fit,minmax(5.25rem,1fr));font-size:1rem}}

/* A friend's card, as the app shows it, and only what it shows: the hero in the outfit of the day, the first name, the level, the
   streak, the week (a green square for a day with a workout, a dot otherwise), the last workout, and the button to cheer: a
   drawing of a button, grey outline as in the app, not one to press. In points, like a picture. */
.friends{--c:#1d3168}
.friend{display:flex;flex-direction:column;align-items:center;gap:10px;width:min(100%,17rem);margin-top:1.5rem;margin-bottom:1rem;padding:16px;border:2px solid var(--blue);background:var(--night);font-size:14px;line-height:1.2;--px:4px}
.friend > b{font-size:18px;font-weight:600}
.friend > .xp{margin-top:-6px}
/* Two figures side by side, each in its half of the card, its words on one line. */
.figs{display:flex;color:#c9c1ad;font-size:13px}
.figs span{display:flex;flex-direction:column;align-items:center;gap:2px;width:118px;white-space:nowrap}
.figs b{color:var(--cream)}
.dots{display:flex;gap:9px;color:#c9c1ad;font-size:13px}
.dots span{display:flex;flex-direction:column;align-items:center;gap:5px;width:14px}
.dots i{width:4px;height:4px;margin:5px;background:#55556e}
.dots .on{width:14px;height:14px;margin:0;background:var(--green)}
.last{display:flex;align-items:center;gap:8px}
.cheer{display:flex;align-items:center;justify-content:center;align-self:stretch;min-height:44px;margin-top:4px;border:2px solid #8d877a}

/* Under the card, three short sentences: a line breaks between two of them first. */
.friends p span{display:inline-block;text-wrap:wrap}

/* Alfred and what he says: a cream frame, one pixel wide, on the night. */
.coach{--c:#3d2868}
.talk{display:flex;align-items:flex-start;justify-content:center;gap:1.25rem;margin-top:2rem;text-align:left}
.sage{background:url('img/alfred.png') 0 0 / 100% 100% no-repeat}
.bubble{position:relative;flex:0 1 22rem;padding:.75rem 1rem;border:2px solid var(--cream);background:var(--night)}
.bubble::before{content:'';position:absolute;top:1.25rem;right:calc(100% + 6px);width:6px;height:6px;background:var(--cream)}

/* Under Alfred the sky comes back: his violet thins out into it, the same dither upside down. */
.data::before{--c:#3d2868;inset:0 0 auto;transform:scaleY(-1)}
.data .shield{width:calc(var(--px) * 27);height:auto;margin-bottom:1.5rem}

/* The bottom of the page: the links, then the road again, still. */
.foot .section{padding-bottom:2.5rem}
.foot .logo{width:min(60%,12rem);margin-bottom:1.5rem}
.foot nav{margin-top:1.25rem;margin-bottom:1.5rem}
.foot .small a{display:inline-block;padding:.8rem 0}
.foot .legal{display:flex;flex-wrap:wrap;justify-content:center;gap:0 1.5rem}
/* Four networks: two rows of two on a phone, one row where there is room. */
.foot ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;max-width:20rem;margin:0 auto}
@media (min-width:700px){.foot ul{max-width:none}}
.foot ul + ul{margin-top:1.5rem}
.foot .scene{height:calc(var(--u) * 38)}
.foot .scene::before{content:none}
.foot .hills,.foot .road{animation:none}

/* A page of text (privacy): one column, as wide as a line reads well. */
.text{max-width:38rem;margin:0 auto;margin-left:max(0px,round(down,calc(50% - 19rem),1px));padding:2.5rem 1rem 3.5rem;overflow-wrap:break-word}
.text > * + *{margin-top:1rem}
.text ul{padding-left:1.25rem;list-style:square}
.text .link{margin-top:1.5rem}

/* A page of one sentence (page not found). */
.page{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;min-height:100vh;min-height:100svh;padding:2rem calc(1rem + var(--odd)) 2rem 1rem;text-align:center}

/* ---------- Animations: only when the visitor has not asked for less motion ---------- */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  /* The ground moves 20 pixels a second: the road, and Alfred who stands on it. */
  .hills{animation:slide 112s steps(672) infinite}
  .road{animation:slide 1.6s steps(32) infinite}
  .hero,.cyclist{animation:frames .4s steps(4) infinite}
  .hero + .hero{animation-delay:-.2s}
  /* One thing at a time, on a loop of 20 seconds: Alfred goes by with the road, the quest gets checked, a cyclist overtakes, the quest again.
     Alfred's way is --tile pixels, at the speed of the road; the loop lasts as long as it takes. */
  .alfred,.cyclist{--tile:240;--loop:calc(var(--tile) / 12 * 1s)}
  .alfred{left:100%;animation:pass var(--loop) steps(var(--tile)) infinite}
  .cyclist{display:block;left:calc(var(--u) * -24);animation:frames .4s steps(4) infinite,ride var(--loop) linear infinite}
  /* The scene measures itself in pixels of the drawing (it is 76 of them high): on a wider one, a longer way and a longer loop,
     so that Alfred always leaves the screen, and has left it by half of the loop, when the cyclist sets off.
     shortcut: a browser without container queries (before 2023) keeps the short way, where Alfred stops on a wide screen. */
  .scene{container-type:size}
  @container (min-aspect-ratio:185 / 76){.alfred,.cyclist{--tile:480}}
  @container (min-aspect-ratio:385 / 76){.alfred,.cyclist{--tile:960}}
  @container (min-aspect-ratio:785 / 76){.alfred,.cyclist{--tile:1920}}
  .mini .quest{animation:quest-frame 10s steps(1) infinite}
  .mini .check{animation:appear 10s steps(1) infinite}
  .mini .xp{animation:appear-2 10s steps(1) infinite}
  .mini .new{animation:square 10s steps(1) infinite}
  /* Now and then: a hero blinks, Alfred breathes. */
  .h{animation:blink 4.6s steps(1) calc(var(--i) * -1.3s) infinite}
  .sage{animation:bob 1.6s steps(1) infinite}
  /* Once, when a drawing comes on screen (site.js marks it .in): the quest gets checked, then its XP; the days of the week get checked
     one after the other; the bar fills, the level goes up, then the padlock opens and the hero hops twice, as in the app. */
  .play.in .quest{transition:border-color 0s .5s}
  .play.in .check,.play.in .won .pix{transition:opacity 0s .5s}
  .play.in .won .xp{transition:opacity 0s 1.1s}
  .play.in .new{transition:background-color 0s calc(var(--d,0s) + .4s)}
  .play.in .new + .new{transition-delay:calc(var(--d,0s) + .65s)}
  .play.in .new + .new + .new{transition-delay:calc(var(--d,0s) + .9s)}
  .play.in .lv span{transition:opacity 0s calc(var(--d,0s) + 1.3s)}
  .play.in .day .check{transition-delay:calc(.4s + var(--n) * .3s)}
  .play.in .lock{transition:background-position 0s calc(var(--d,0s) + 1.7s)}
  .play.in .gear .h{transition:opacity 0s calc(var(--d,0s) + 1.7s)}
  .play.in > .h{animation:blink 4.6s steps(1) infinite,hop .4s ease-out calc(var(--d,0s) + 1.7s) 2}
  .js .play:not(.in) .lock{--at:2}
  .js .play:not(.in) .gear .h{opacity:.4}
  .js .play:not(.in) .quest{border-color:var(--blue)}
  .js .play:not(.in) :is(.check,.won span,.lv-new){opacity:0}
  .js .play:not(.in) .lv-old{opacity:1}
  .js .play:not(.in) .new{background:var(--track)}
  .js .bubble:not(.in){color:transparent}
}
@keyframes slide{to{transform:translateX(calc(var(--u) * var(--tile) * -1))}}
@keyframes pass{60%,to{transform:translateX(calc(var(--u) * var(--tile) * -1))}}
@keyframes frames{to{background-position-x:calc(var(--u) * var(--sheet) * -1)}}
@keyframes ride{0%,50%{left:calc(var(--u) * -24)}70%,to{left:100%}}
@keyframes quest-frame{0%{border-color:var(--blue)}50%,to{border-color:var(--green)}}
@keyframes appear{0%{opacity:0}50%,to{opacity:1}}
@keyframes appear-2{0%{opacity:0}56%,to{opacity:1}}
@keyframes square{0%{background:var(--track)}62%,to{background:var(--gold)}}
@keyframes blink{96%{background-position-y:calc(var(--px) * -24)}}
@keyframes bob{50%{transform:translateY(calc(var(--px) * -1))}}
@keyframes hop{45%{transform:translateY(calc(var(--px) * -4))}}
