/* Fonts: Latin files load for the page text, the -ext files only when a Latin Extended character shows up */
@font-face { font-family: "Lalezar"; src: url(/fonts/lalezar-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lalezar"; src: url(/fonts/lalezar-400-ext.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-600-ext.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-700-ext.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-800.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; src: url(/fonts/baloo2-800-ext.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* The album's and the ticket's Japanese line on every page (.album-jp, .tk-jp): M PLUS Rounded 1c, cut to its letters
   (written here by tools/lang-fonts.mjs between the marks) */
/* brand-jp:start */
@font-face { font-family: "LP Brand JP"; src: url(/fonts/letters-jp-brand-74c2cafb25.woff2) format("woff2"); font-weight: 800; font-display: swap; }
/* brand-jp:end */

:root {
  --yellow: #ffbd04;
  --paper: #f6f6f6;
  --ink: #000;
  /* one outline for every sticker, card, button and the ticket */
  --line: 3px;
  /* snappy bounce for the album, likes and the loop popup: ~13% overshoot, settles fast */
  --bounce: cubic-bezier(.3, 1.45, .45, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --bounce: linear(0, .045 2%, .18 5%, .62 13%, .92 19%, 1.08 25%, 1.13 29%, 1.12 33%, 1.06 40%, .99 50%, .975 56%, .985 65%, 1.003 78%, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font: 12px sans-serif; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
img, video, canvas { display: block; }
button { font: inherit; color: inherit; }
/* Keyboard focus: a black ring a little away from the control, clear of the black outline every button, sticker and
   pill already has (on the black bar: a yellow one, inside it) */
:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* Text: display headings in Lalezar, copy in Baloo 2 */
h1, h2, h3 { font-family: "Lalezar", sans-serif; font-weight: 400; line-height: 1; }
p { font-family: "Baloo 2", sans-serif; line-height: 1.2; }

/* Page frame: sections stack in one centred column */
.page { display: flex; flex-direction: column; align-items: center; width: 100%; overflow-x: clip; }

/* Rive canvases fill their box */
.rive { position: relative; }
.rive canvas { width: 100%; height: 100%; }
/* (the parade's first frame as a picture, under its canvas until the canvas has drawn: site.js is-live; the compact
   title screens show only the picture) */
.ts-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.ts-parade canvas { position: relative; }
.ts-parade.is-live .ts-poster { visibility: hidden; }

/* Yellow title screen (home) and its compact version (other pages): sun rays, the logo in the corner,
   the white outlined title and the parade walking behind the road line */
/* --pw: parade width; the road line is as thick as the characters' outline at that size (0.62%) */
.ts { --ray-y: 271px; --pw: 760px; position: relative; width: 100%; height: 900px; overflow: hidden; background: var(--yellow); }
.ts-rays {
  position: absolute; left: 50%; top: var(--ray-y); width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: repeating-conic-gradient(var(--yellow) 0 7.5deg, #ffc93a 7.5deg 15deg);
}
/* they start turning after the first paint (site.js sets rays-on) */
.rays-on .ts-rays { animation: ts-spin 120s linear infinite; }
@keyframes ts-spin { to { transform: rotate(360deg); } }
.ts-emblem {
  position: absolute; z-index: 3; left: 24px; top: 20px; display: block; width: 56px; height: 56px;
  transform: rotate(-6deg); filter: drop-shadow(0 4px 0 #000); transition: transform .42s var(--bounce);
}
.ts-emblem img { width: 100%; height: 100%; }
@media (hover: hover) { .ts-emblem:hover { transform: rotate(6deg) scale(1.1); } }
.ts-emblem:active { transform: scale(1.1, .86); transition-duration: 80ms; }
/* The title screen's corner, across from the emblem (the home page, /loop/N, a player's page /p/N):
     <div class="ts-corner">
       <a class="mine-go" href="/p/N" hidden><span class="mine-face" data-no data-build data-walk style="--c"><canvas></canvas></span><span class="mine-go-l">My loop</span></a>
       <a class="ts-tally" href="/#players" data-n="35"><span class="ts-faces"></span><span class="ts-tally-l">The whole parade</span><b class="ts-n">35</b></a>
     </div>
   Everyone on parade: a white pill (the site's 3 px line and black drop) with the three newest players' faces in a row
   (.ts-face, each a round sticker in its colour, drawn live by gallery/app.js or profile.js once an engine is in), the
   words, and how many on parade on a black tag, counting up once the world has said (site.js). Beside it, a visitor's
   way to their own loop: the same pill with its face and the words (site.js shows it) */
.ts-corner { position: absolute; z-index: 3; right: 30px; top: 28px; display: flex; align-items: center; gap: 10px; }
.ts-tally, .mine-go {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border: var(--line) solid #000; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 #000;
  color: #000; font: 800 15px/1 "Baloo 2", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .42s var(--bounce); -webkit-tap-highlight-color: transparent;
}
.mine-go { padding-right: 16px; }
.mine-go[hidden] { display: none; }
.ts-tally-l, .mine-go-l { padding-top: 3px; }
.ts-tally.is-tight .ts-tally-l { display: none; }
.ts-tally.is-tighter .ts-faces { display: none; }
/* (a visitor without a loop: the way to make one, a white face with a «?» as the album's make tile has) */
.mine-go.is-make .mine-face { display: grid; place-items: center; background: #fff; }
.mine-face i { padding-top: .14em; font: 400 22px/1 Lalezar, sans-serif; font-style: normal; color: #000; }
.ts-n { display: grid; place-items: center; min-width: 38px; height: 34px; padding: 4px 9px 0; box-sizing: border-box; border-radius: 17px; background: #000; color: var(--yellow); font: 400 20px/1 Lalezar, sans-serif; letter-spacing: 0; font-variant-numeric: tabular-nums; }
@media (hover: hover) { :is(.ts-tally, .mine-go):hover { transform: translateY(-3px); } }
:is(.ts-tally, .mine-go):active { transform: translateY(4px); box-shadow: none; transition: none; }
/* A visitor whose loop sleeps: a window over the page (site.js), a white card in the site's line and drop with the
   loop's face as a round sticker, what an email does, the yellow way to the make page and a quiet «not now» */
.wake { position: fixed; z-index: 400; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .55); }
.wake-card { display: grid; justify-items: center; gap: 14px; width: min(100%, 380px); padding: 28px 24px 20px; border: var(--line) solid #000; border-radius: 28px; background: #fff; box-shadow: 0 6px 0 #000; text-align: center; }
.wake .wake-face { width: 104px; height: 104px; border-width: var(--line); }
.wake-t { font: 400 30px/1.05 Lalezar, sans-serif; letter-spacing: .01em; text-wrap: balance; }
.wake-l { max-width: 30ch; font: 600 16px/1.35 "Baloo 2", sans-serif; text-wrap: pretty; }
.wake-go { display: inline-flex; align-items: center; margin-top: 4px; padding: 13px 22px 10px; border: var(--line) solid #000; border-radius: 999px; background: var(--yellow); box-shadow: 0 4px 0 #000; color: #000; font: 800 17px/1 "Baloo 2", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .42s var(--bounce); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .wake-go:hover { transform: translateY(-3px); } }
.wake-go:active { transform: translateY(4px); box-shadow: none; transition: none; }
.wake-later { padding: 6px 12px; border: 0; background: none; color: #000; opacity: .6; font: 700 14px/1 "Baloo 2", sans-serif; letter-spacing: .04em; cursor: pointer; }
.wake-later:hover { opacity: 1; }
/* (the faces overlapping in a row, round stickers in their colours till they are drawn) */
.ts-faces { display: flex; padding-left: 8px; }
.ts-faces:empty { display: none; }
.ts-face, .mine-face { position: relative; flex: none; display: block; width: 36px; height: 36px; box-sizing: border-box; border: 2.5px solid #000; border-radius: 50%; overflow: hidden; background: var(--c, var(--yellow)); }
.ts-face { margin-left: -8px; }
.ts-face canvas, .mine-face canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
:is(.ts-face, .mine-face).is-live canvas { opacity: 1; }
.ts-home { color: inherit; text-decoration: none; }
.ts-title {
  position: absolute; z-index: 2; left: 50%; top: 150px; display: grid; justify-items: center; transform: translateX(-50%);
  font: 400 132px/.92 "Lalezar", sans-serif; color: #fff; white-space: nowrap; filter: drop-shadow(0 8px 0 #000);
}
.ts-title span { display: block; -webkit-text-stroke: 12px #000; paint-order: stroke fill; animation: ts-pop .6s var(--bounce) both; }
.ts-title span:first-child { rotate: -2deg; }
.ts-title span:last-child { rotate: 2deg; animation-delay: .08s; }
/* the letters ride a slow wave, one after another */
.ts-title i { display: inline-block; font-style: normal; animation: ts-wave 1.6s ease-in-out calc((var(--n, 0) + var(--o, 0)) * .09s) infinite; }
.ts-title span:last-child { --o: 1.5; }
.ts-title i:nth-child(2) { --n: 1; } .ts-title i:nth-child(3) { --n: 2; } .ts-title i:nth-child(4) { --n: 3; }
.ts-title i:nth-child(5) { --n: 4; } .ts-title i:nth-child(6) { --n: 5; }
@keyframes ts-wave { 0%, 100% { transform: none; } 50% { transform: translateY(-.06em); } }
@keyframes ts-pop { from { transform: scale(.4); opacity: 0; } }
/* (the words stay; the arrow beside them hops on the site's bounce) */
.ts-start {
  position: absolute; z-index: 2; left: 50%; top: 470px; display: flex; align-items: center; gap: 10px; transform: translateX(-50%);
  color: #000; text-decoration: none; white-space: nowrap; font: 800 17px/1 "Baloo 2", sans-serif; letter-spacing: .22em; text-transform: uppercase;
}
.ts-start::after { content: ""; margin-top: 8px; border: 7px solid transparent; border-top: 9px solid #000; animation: ts-hop 1.4s var(--bounce) infinite; }
@media (hover: hover) { .ts-start:hover::after { animation: none; transform: translateY(5px); } }
@keyframes ts-hop { 0%, 55%, 100% { transform: none; } 30% { transform: translateY(7px); } }
.ts-parade { position: absolute; z-index: 2; left: 50%; bottom: -24px; width: var(--pw); aspect-ratio: 1.9047619047619047; transform: translateX(-50%); }
.ts-road { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 81px; background: var(--paper); border-top: max(2px, calc(var(--pw) * .0062)) solid #000; }
.ts-compact { --ray-y: 206px; --pw: 640px; height: 640px; }
.ts-compact .ts-title { top: 110px; font-size: 104px; }
.ts-compact .ts-parade { bottom: -20px; }
.ts-compact .ts-road { height: 70px; }
@media (min-width: 810px) and (max-width: 1199.98px) {
  .ts { --ray-y: 260px; --pw: 700px; }
  .ts-compact { --ray-y: 206px; --pw: 640px; }
  .ts-title { font-size: 120px; }
}
@media (min-width: 810px) and (max-width: 999.98px) {
  .ts-start { top: 498px; }
}
@media (max-width: 809.98px) {
  /* phones: a shorter screen, no scroll hint; the title lower, nearer the parade, so no empty band of rays lies
     between them; the corner's pills smaller */
  .ts { --ray-y: 150px; --pw: 96vw; height: 520px; }
  .ts-emblem { left: 14px; top: 14px; width: 42px; height: 42px; }
  .ts-corner { right: 12px; top: 14px; gap: 8px; }
  .ts-tally { gap: 7px; padding: 4px 6px 4px 4px; font-size: 13px; }
  .ts-face, .mine-face { width: 30px; height: 30px; }
  .ts-n { min-width: 34px; height: 30px; font-size: 18px; }
  /* («My loop» its face only: both pills and their words would reach the emblem) */
  .mine-go { padding: 4px; }
  .mine-go-l { display: none; }
  /* (the ways to make a loop and to wake a sleeping one keep their words: a face alone wouldn't say it) */
  .mine-go:is(.is-make, .is-wake) { padding-right: 12px; }
  .mine-go:is(.is-make, .is-wake) .mine-go-l { display: inline; font-size: 12px; letter-spacing: .04em; }
  .mine-face i { font-size: 18px; }
  .ts-title { top: 118px; font-size: 72px; filter: drop-shadow(0 5px 0 #000); }
  .ts-title span { -webkit-text-stroke: 8px #000; }
  .ts-start { display: none; }
  /* feet just behind the road line, as on desktop: the artboard keeps 12.6% of its width under the feet */
  .ts-parade { bottom: calc(60px - var(--pw) * .138); }
  .ts-road { height: 60px; }
  .ts-compact { --ray-y: 132px; --pw: 92vw; height: 420px; }
  .ts-compact .ts-title { top: 74px; font-size: 64px; }
  .ts-compact .ts-parade { bottom: calc(56px - var(--pw) * .138); }
  .ts-compact .ts-road { height: 56px; }
}

/* Footer: a yellow parade ticket, tilted, straightens on hover. The main part and the stub are cut
   with round notches at the perforation (masks), the stub carries the credits */
.tk-wrap { width: 100%; display: flex; justify-content: center; padding: 50px 20px 80px; }
/* laid out and painted only once it nears the viewport; until then it stands in at about its size */
.tk-wrap { content-visibility: auto; contain-intrinsic-size: auto 330px; }
/* tilted; its hard shadow is a shape of its own with the same notches (a filter would render the tilted text soft) */
.tk { position: relative; isolation: isolate; width: min(1160px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 230px; rotate: -1.5deg; transition: rotate .42s var(--bounce); }
@media (hover: hover) { .tk:hover { rotate: 0deg; } }
.tk::before {
  content: ""; position: absolute; inset: 9px 0 -9px; z-index: -1; border-radius: 26px; background: #000;
  -webkit-mask: radial-gradient(circle 18px at calc(100% - 230px) 0, transparent 17px, #000 18px), radial-gradient(circle 18px at calc(100% - 230px) 100%, transparent 17px, #000 18px);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle 18px at calc(100% - 230px) 0, transparent 17px, #000 18px), radial-gradient(circle 18px at calc(100% - 230px) 100%, transparent 17px, #000 18px);
  mask-composite: intersect;
}
.tk-main, .tk-stub { position: relative; background: var(--yellow); border: var(--line) solid #000; }
.tk-main {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; padding: 30px 40px 30px; border-right: 0; border-radius: 26px 0 0 26px;
  -webkit-mask: radial-gradient(circle 18px at 100% 0, transparent 17px, #000 18px) top right / 100% 51% no-repeat, radial-gradient(circle 18px at 100% 100%, transparent 17px, #000 18px) bottom right / 100% 51% no-repeat;
  mask: radial-gradient(circle 18px at 100% 0, transparent 17px, #000 18px) top right / 100% 51% no-repeat, radial-gradient(circle 18px at 100% 100%, transparent 17px, #000 18px) bottom right / 100% 51% no-repeat;
}
.tk-stub {
  display: grid; align-content: space-between; justify-items: center; gap: 14px; padding: 26px 20px; text-align: center;
  border-left: var(--line) dashed #000; border-radius: 0 26px 26px 0;
  -webkit-mask: radial-gradient(circle 18px at 0 0, transparent 17px, #000 18px) top left / 100% 51% no-repeat, radial-gradient(circle 18px at 0 100%, transparent 17px, #000 18px) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle 18px at 0 0, transparent 17px, #000 18px) top left / 100% 51% no-repeat, radial-gradient(circle 18px at 0 100%, transparent 17px, #000 18px) bottom left / 100% 51% no-repeat;
}
.tk-admit { font: 800 14px/1 "Baloo 2", sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.tk-title { font-size: 96px; line-height: .95; color: #fff; -webkit-text-stroke: 10px #000; paint-order: stroke fill; text-wrap: balance; }
/* (its Japanese in the site's own Japanese face, cut to these letters for every page: tools/lang-fonts.mjs) */
.tk-jp { font: 800 26px/1 "LP Brand JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif; letter-spacing: .1em; }
.tk-stamps { display: flex; flex-wrap: wrap; gap: 14px; }
.tk-stamp {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 7px 10px; border: 3px solid #000; border-radius: 999px; background: #fff; box-shadow: 0 3px 0 #000;
  color: #000; text-decoration: none; font: 800 15px/1 "Baloo 2", sans-serif; -webkit-tap-highlight-color: transparent; transition: transform .42s var(--bounce);
}
.tk-stamp svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tk-stamp:hover { transform: translateY(-4px) rotate(-3deg); } }
.tk-stamp:active { transform: scale(1.08, .86); transition-duration: 80ms; }
.tk-lead { font-size: 17px; font-weight: 700; }
.tk-no { font: 400 30px/1 Lalezar, sans-serif; }
.tk-fine { font: 700 12px/1.5 "Baloo 2", sans-serif; }
.tk-fine a { display: inline-block; padding: 3px 0; color: #000; } /* (24 px tall to press, in the small print) */
/* vector bars: a striped gradient breaks into steps once the ticket is tilted */
.tk-bars { display: block; width: 140px; height: 74px; fill: #000; }
@media (max-width: 809.98px) {
  .tk-wrap { padding: 40px 16px 60px; contain-intrinsic-size: auto 560px; }
  .tk { grid-template-columns: minmax(0, 1fr); rotate: -1deg; }
  .tk::before { -webkit-mask: none; mask: none; border-radius: 22px; }
  .tk-main { padding: 22px 18px; border-right: var(--line) solid #000; border-radius: 22px 22px 0 0; -webkit-mask: none; mask: none; }
  .tk-stub { grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; gap: 10px; border-left: var(--line) solid #000; border-top: var(--line) dashed #000; border-radius: 0 0 22px 22px; -webkit-mask: none; mask: none; }
  .tk-stub > .tk-fine { grid-column: 1 / -1; }
  .tk-title { font-size: 58px; -webkit-text-stroke: 7px #000; }
  .tk-jp { font-size: 18px; }
  .tk-admit { font-size: 11px; letter-spacing: .16em; }
  .tk-stamps { gap: 10px; }
  .tk-lead { font-size: 15px; }
  .tk-bars { width: 110px; height: 50px; }
}

/* Likes: heart + count on a loop (site.js adds the button), a pop and sparks on like,
   a big heart on double tap */
.like {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 7px;
  border: 0; border-radius: 15px; background: rgba(255, 255, 255, .92); color: #000; cursor: pointer;
  font: 700 15px/1 "Baloo 2", sans-serif;
  -webkit-tap-highlight-color: transparent;
  transition: transform .42s var(--bounce);
}
.like.is-empty { padding: 0 6px; }
.like-n { padding-top: 2px; font-variant-numeric: tabular-nums; }
.like-n:empty { display: none; }
.like svg { width: 18px; height: 18px; overflow: visible; }
.like path, .like-big path { stroke: #000; stroke-linejoin: round; }
.like path { fill: transparent; stroke-width: 2.2; transition: fill .2s; }
.like[aria-pressed="true"] path { fill: var(--yellow); }
@media (hover: hover) { .like:hover { transform: scale(1.08); } }
.like:active { transform: scale(1.08, .86); transition-duration: 80ms; }
.like.is-pop svg { animation: like-pop .46s cubic-bezier(.3, 0, .2, 1); }
@keyframes like-pop { 20% { transform: scale(1.4, .66); } 45% { transform: scale(.82, 1.28); } 70% { transform: scale(1.08, .94); } 100% { transform: none; } }
.like-burst { position: absolute; left: 16px; top: 15px; pointer-events: none; }
.like-burst i {
  position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 1.5px #000;
  transform: rotate(var(--a)); animation: like-spark .55s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes like-spark { to { transform: rotate(var(--a)) translateY(-20px) scale(.3); opacity: 0; } }
.like-big { position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px; pointer-events: none; animation: like-big .8s forwards; }
.like-big svg { width: 100%; height: 100%; overflow: visible; }
.like-big path { fill: var(--yellow); stroke-width: 1.4; }
@keyframes like-big {
  0% { transform: scale(.2); opacity: 0; }
  18% { transform: scale(1.15); opacity: 1; }
  32% { transform: scale(.95); }
  45%, 75% { transform: scale(1); opacity: 1; }
  100% { transform: translateY(-14px) scale(1.05); opacity: 0; }
}

/* Pages in another language (lang.js): the words site.js changes wait unseen for it, and the Latin labels' wide
   letter-spacing is narrowed for Japanese, Chinese and Korean letters */
.tr-wait [data-t], .tr-wait [data-t-html], .tr-wait [data-tr], .tr-wait [data-tr-html], .tr-wait time[data-date] { visibility: hidden; }
:root:is([lang="ja"], [lang="zh"], [lang="ko"]) :is(.ts-count, .ts-start, .tk-admit, .album-sub, .tix-kick, .ts-tally-l, .mine-go, .heap-k) { letter-spacing: .06em; }
/* (lines break between phrases, not inside a word: Japanese by phrase where the browser can, Korean by word; the
   intro's title, one line in English, may take two) */
:root[lang="ja"] { word-break: auto-phrase; }
:root[lang="ko"] { word-break: keep-all; }
:root:is([lang="ja"], [lang="zh"], [lang="ko"], [lang="ru"], [lang="es"]) .intro h2 { white-space: normal; text-align: center; text-wrap: balance; }
@media (max-width: 809.98px) { :root:is([lang="ja"], [lang="zh"], [lang="ko"], [lang="ru"], [lang="es"]) .intro h2 { font-size: 40px; } }

/* What's new (build.mjs): the newest as a black bar over every page but /news (closed, it stays away till a newer one:
   lang.js marks the page with the one closed), and the latest few as cards above the footer's ticket */
.nw-bar { position: relative; z-index: 10; display: flex; align-items: center; width: 100%; background: #000; }
.nw-bar-go { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 8px 7px 48px; color: var(--yellow); text-decoration: none; font: 800 15px/1.2 "Baloo 2", sans-serif; }
.nw-bar-new { flex: none; padding: 5px 10px 3px; border-radius: 999px; background: var(--yellow); color: #000; font-size: 11px; letter-spacing: .14em; }
.nw-bar-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-bar-arrow { flex: none; width: 16px; height: 12px; transition: transform .3s var(--bounce); }
.nw-bar-arrow path { fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .nw-bar-go:hover .nw-bar-arrow { transform: translateX(4px); } .nw-bar-go:hover .nw-bar-line { text-decoration: underline; } }
.nw-bar-x { flex: none; display: grid; place-items: center; width: 40px; height: 36px; margin-right: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.nw-bar-x svg { width: 16px; height: 16px; }
.nw-bar :focus-visible { outline-color: var(--yellow); outline-offset: -4px; }
.nw-recent { width: min(1160px, 100%); box-sizing: border-box; padding: 40px 20px 0; }
.nw-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 6px 16px; }
.nw-recent-head h2 { font-size: 44px; }
.nw-all { font: 800 15px/1 "Baloo 2", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #000; }
.nw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.nw-card { display: grid; gap: 8px; align-content: start; padding: 14px 16px 16px; background: #fff; border: var(--line) solid #000; border-radius: 18px; box-shadow: 0 5px 0 #000; color: #000; text-decoration: none; transition: transform .42s var(--bounce); }
@media (hover: hover) { .nw-card:hover { transform: translateY(-4px); } }
.nw-card time { justify-self: start; padding: 5px 10px 3px; border-radius: 999px; background: var(--yellow); border: 2.5px solid #000; font: 800 12px/1 "Baloo 2", sans-serif; letter-spacing: .08em; rotate: -3deg; }
.nw-card b { font: 400 22px/1.1 Lalezar, sans-serif; text-wrap: balance; }
/* (one entry so far: a narrow row, not a block of one card) */
.nw-recent:has(.nw-card:only-child) { padding-top: 26px; }
.nw-recent:has(.nw-card:only-child) .nw-recent-head { margin-bottom: 10px; }
.nw-recent:has(.nw-card:only-child) .nw-recent-head h2 { font-size: 30px; }
.nw-cards:has(> .nw-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.nw-card:only-child { display: flex; align-items: center; gap: 14px; padding: 10px 16px; box-shadow: 0 4px 0 #000; }
.nw-card:only-child time { flex: none; }
.nw-card:only-child b { font-size: 20px; }
@media (max-width: 809.98px) {
  .nw-bar-go { padding-left: 12px; justify-content: flex-start; font-size: 14px; }
  .nw-recent { padding: 30px 16px 0; }
  .nw-recent-head h2 { font-size: 34px; }
  .nw-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nw-card b { font-size: 20px; }
}

/* A word for a moment over what it is about («Link copied!», a heart the server didn't take): a white speech bubble as a
   player's page's notes are (3 px line, a flat drop), its tail one piece with it, pointing down at the thing. .lp-tip
   sits in its button (hidden till it shows), .lpg-say is put over the page (gallery/app.js) */
.lp-tip, .lpg-say { position: absolute; z-index: 5; padding: 7px 13px 4px; border: var(--line) solid #000; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 #000; color: #000; font: 800 13px/1.2 "Baloo 2", sans-serif; letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.lp-tip { left: 50%; bottom: calc(100% + 16px); transform: translateX(-50%); }
.lp-tip[hidden] { display: none; }
.lpg-say { z-index: 40; transform: translate(-50%, -100%); white-space: normal; width: max-content; max-width: min(240px, 80vw); text-align: center; }
.lp-tip::after, .lpg-say::after {
  content: ""; position: absolute; left: calc(50% - 17px); top: calc(100% - 1px); width: 34px; height: 34px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-17 -1 34 34'%3E%3Cpath d='M-14 4.5L0 24L14 4.5Z'/%3E%3Cpath d='M-14 -1H14V1.5L0 21L-14 1.5Z' fill='%23fff'/%3E%3Cpath d='M-14 1.5L0 21L14 1.5' fill='none' stroke='%23000' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* (the films playing for the canvases that show them: site.js) */
.film-deck { position: fixed; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.film-deck video { width: 1px; height: 1px; }
/* What's new: the site's title screen on top (a lower one), then the entries on the page's paper, newest first, each
   a ticket with its date on the stub (build.mjs {{news}}; the bar and the cards to it: site.css) */
.page-news .ts-compact { height: 470px; --ray-y: 170px; }
.page-news .ts-compact .ts-title { top: 70px; font-size: 92px; }
.nws { width: 100%; max-width: 800px; box-sizing: border-box; margin: 0 auto; padding: 36px 20px 40px; }
.nws-back {
  display: inline-flex; align-items: center; padding: 9px 16px 6px; border: var(--line) solid #000; border-radius: 999px; background: #fff;
  box-shadow: 0 4px 0 #000; color: #000; text-decoration: none; font: 800 15px/1 "Baloo 2", sans-serif; transition: transform .42s var(--bounce);
}
@media (hover: hover) { .nws-back:hover { transform: translateY(-3px); } }
.nws-title { margin: 22px 0 0; font-size: 64px; line-height: 1; }
.nws-list { display: grid; gap: 22px; margin-top: 26px; }

/* one entry: the stub with its date, the perforation, then the words, a film, its parts and where to go */
.nw {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); background: #fff; border: var(--line) solid #000; border-radius: 22px;
  box-shadow: 0 6px 0 #000; overflow: hidden; scroll-margin-top: 24px;
}
.nw-stub { display: grid; align-items: start; justify-items: center; padding: 24px 8px 14px; background: var(--yellow); border-right: var(--line) dashed #000; }
.nw-stub time { font: 400 26px/1 Lalezar, sans-serif; text-align: center; }
.nw-body { display: grid; gap: 12px; justify-items: start; padding: 20px 24px 22px; }
.nw-title { font-size: 34px; line-height: 1.05; text-wrap: balance; }
.nw-lead { font: 700 19px/1.4 "Baloo 2", sans-serif; }
.nw-part { display: grid; gap: 6px; margin-top: 14px; }
.nw-part h3 { font-size: 24px; line-height: 1.1; }
.nw-part p { font: 600 17px/1.45 "Baloo 2", sans-serif; }
.nw-film { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: var(--line) solid #000; border-radius: 14px; background: #eee; }
/* (a part's film under its words; one taller than wide no wider than a phone's) */
.nw-part .nw-film { margin-top: 6px; }
.nw-film-tall { width: min(100%, 320px); }
.nw-go {
  display: inline-flex; align-items: center; height: 44px; margin-top: 16px; padding: 3px 18px 0; border: var(--line) solid #000; border-radius: 22px;
  background: var(--yellow); box-shadow: 0 4px 0 #000; color: #000; text-decoration: none; font: 800 16px/1 "Baloo 2", sans-serif; transition: transform .42s var(--bounce);
}
@media (hover: hover) { .nw-go:hover { transform: translateY(-3px); } }

@media (max-width: 809.98px) {
  .page-news .ts-compact { height: 330px; --ray-y: 110px; }
  .page-news .ts-compact .ts-title { top: 56px; font-size: 56px; }
  .nws { padding: 24px 16px 30px; }
  .nws-title { margin-top: 18px; font-size: 44px; }
  .nws-list { gap: 18px; margin-top: 20px; }
  .nw { grid-template-columns: minmax(0, 1fr); }
  .nw-stub { justify-items: start; padding: 10px 18px 7px; border-right: 0; border-bottom: var(--line) dashed #000; }
  .nw-stub time { font-size: 20px; }
  .nw-body { padding: 14px 18px 18px; }
  .nw-title { font-size: 26px; }
  .nw-lead { font-size: 16px; }
  .nw-part h3 { font-size: 21px; }
  .nw-part p { font-size: 15px; }
}
/* (the places Loop Parade is at, linked in an entry's words) */
.nw-body p a { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) { .nw-body p a:hover { background: var(--yellow); } }
