/* 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; }

: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; }

/* 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%; }

/* 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); 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; }
.ts-count { position: absolute; z-index: 3; right: 30px; top: 38px; font: 800 14px/1 "Baloo 2", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.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-size: 132px; line-height: .92; 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; } }
.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;
  animation: ts-blink 1.2s steps(1) infinite;
}
.ts-start::after { content: ""; margin-top: 8px; border: 7px solid transparent; border-top: 9px solid #000; transition: transform .42s var(--bounce); }
@media (hover: hover) { .ts-start:hover { animation: none; } .ts-start:hover::after { transform: translateY(5px); } }
@keyframes ts-blink { 50% { opacity: 0; } }
.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-bubble {
  position: absolute; z-index: 4; right: 5%; bottom: 150px; width: 270px; padding: 12px 16px 9px;
  background: #fff; border: 3px solid #000; border-radius: 22px; box-shadow: 0 5px 0 #000;
  font: 700 17px/1.3 "Baloo 2", sans-serif; rotate: -3deg; animation: ts-pop .5s .45s var(--bounce) both;
}
.ts-bubble b { font-weight: 800; }
.ts-bubble::after {
  content: ""; position: absolute; left: 26px; bottom: -13px; width: 22px; height: 22px; transform: rotate(45deg);
  background: #fff; border-right: 3px solid #000; border-bottom: 3px solid #000; border-radius: 0 0 5px 0;
}
.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; }
  .ts-bubble { right: 4%; bottom: 350px; width: 240px; font-size: 15px; }
}
@media (max-width: 809.98px) {
  /* phones: shorter screen, the bubble sits under the title and points at the parade, no scroll hint */
  .ts { --ray-y: 140px; --pw: 96vw; height: 560px; }
  .ts-emblem { left: 14px; top: 14px; width: 42px; height: 42px; }
  .ts-count { right: 16px; top: 28px; font-size: 11px; }
  .ts-title { top: 74px; 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-bubble { left: 50%; right: auto; bottom: auto; top: 236px; width: 272px; margin-left: -136px; padding: 10px 14px 7px; font-size: 14px; text-align: center; rotate: -2deg; }
  .ts-bubble::after { left: 46%; }
  .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; }
/* 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; 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-shadow: 0 7px 0 #000; }
.tk-jp { font: 900 26px/1 "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;
  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 { color: #000; }
/* 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; }
  .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; text-shadow: 0 5px 0 #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; box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  -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; }
}
