/* The numbers as red tiles. Shared by every page of direction A (see tiles.js). Uses a.css tokens.
   The band clips, so the tiles drop in through its top edge instead of crossing the section above. */
.tiles { display: flex; justify-content: center; gap: clamp(10px, 1.5vw, 22px); padding: 34px 12px 18px; overflow: hidden; }
.tile {
  --s: clamp(104px, 14.5vw, 196px);
  width: var(--s); height: var(--s); flex: none;
  background: var(--red, #ff2d20); color: var(--paper, #f3f0ea);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: calc(var(--s) * .035);
  opacity: 0; transform: translateY(-150%) rotate(-16deg);
  transform-origin: 50% 100%;
  will-change: transform;
}
.tile-n { font: 400 calc(var(--s) * .5)/.86 var(--display, 'Anton', Impact, sans-serif); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.tile-l { font: 700 clamp(13px, calc(var(--s) * .098), 19px)/1.15 var(--text, 'Space Grotesk', sans-serif); letter-spacing: .01em; padding: 0 6px; }
html.lang-ja .tile-l { font-weight: 700; letter-spacing: .04em; }

/* They fall like weighted blocks: gravity on the way down, a soft squash on landing, two shrinking bounces, then rest.
   1.6 s each, 180 ms apart. The count-up in tiles.js starts at the first landing. */
.tiles.in .tile { animation: tileDrop 1.6s both; animation-delay: calc(var(--i) * 180ms); }
@keyframes tileDrop {
  0%   { opacity: 0; transform: translateY(-150%) rotate(-16deg); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  10%  { opacity: 1; }
  40%  { opacity: 1; transform: translateY(0) rotate(2deg) scale(1.05, .93); animation-timing-function: cubic-bezier(.15, .55, .35, 1); }
  56%  { transform: translateY(-11%) rotate(-1.4deg) scale(.985, 1.02); animation-timing-function: cubic-bezier(.5, 0, .85, .5); }
  70%  { transform: translateY(0) rotate(.6deg) scale(1.025, .965); animation-timing-function: cubic-bezier(.15, .55, .35, 1); }
  80%  { transform: translateY(-3.5%) rotate(-.3deg) scale(.995, 1.005); animation-timing-function: cubic-bezier(.5, 0, .85, .5); }
  89%  { transform: translateY(0) scale(1.008, .99); animation-timing-function: cubic-bezier(.3, .6, .4, 1); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { opacity: 1; transform: none; }
  .tiles.in .tile { animation: none; }
}
