/* ==========================================================================
   UNLUCKYBOX — design tokens (light glass)
   ========================================================================== */

@font-face {
  font-family: 'Bowlby One';
  src: url('../assets/fonts/BowlbyOne.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Titan One';
  src: url('../assets/fonts/TitanOne.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('../assets/fonts/WorkSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f1e6;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(27, 23, 48, 0.12);
  --text: #1b1730;
  --text-dim: #5c5578;
  --pink: #e8127e;
  --blue: #4169ff;
  --gold: #ffd60a;

  --font-display: 'Titan One', 'Anton', sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius: 18px;
  --container: 1140px;
  /* shared side gutter: banner, cast grid and footer all line up on it */
  --gutter: clamp(16px, 4.5vw, 64px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.4) 0%, rgba(248, 242, 228, 0.62) 100%),
    url('../assets/img/bg-blur.webp') center / cover no-repeat;
  /* own compositing layer: without it the fixed backdrop repaints on every
     scroll frame and tears against the blurred panels above it */
  transform: translateZ(0);
  will-change: transform;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
  letter-spacing: 0.02em;
}

p {
  max-width: 58ch;
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  background: #fffdf8;
  color: #171522;
  border: 1px solid rgba(27, 23, 48, 0.1);
  box-shadow: 0 10px 22px rgba(27, 23, 48, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #171522;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 22px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* pushes the buy widget + cart button snug together on the right,
   leaving the open space between them and the logo instead */
.site-header .logo {
  margin-right: auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo span {
  color: var(--pink);
}

.logo-kana {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-left: 4px;
}

/* search pill */
.header-search {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-inline: auto;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.72);
}

.header-search svg {
  flex-shrink: 0;
  color: var(--text-dim);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
}

.header-search input::placeholder {
  color: var(--text-dim);
}

.header-search:focus-within {
  border-color: var(--pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* compact variant of .buy-widget that fits inside the pill navbar */
.header-buy {
  gap: 10px;
}

.header-buy .qty {
  padding: 3px;
  gap: 2px;
}

.header-buy .qty-btn {
  width: 24px;
  height: 24px;
  font-size: 0.95rem;
}

.header-buy .qty-value {
  min-width: 16px;
  font-size: 0.82rem;
}

.header-buy .buy-price {
  min-width: auto;
  font-size: 0.82rem;
}

.header-buy .btn {
  padding: 4px 4px 4px 14px;
  font-size: 0.8rem;
  gap: 8px;
}

.header-buy .btn-arrow {
  width: 30px;
  height: 30px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.icon-btn:hover {
  background: #fff;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.72rem;
}

/* ==========================================================================
   Hero — banner
   ========================================================================== */

/* hero + explainer read as one stacked block */
.hero-block {
  max-width: none;
  padding: 18px var(--gutter) 0;
  margin: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  max-width: none;
  padding: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  min-height: clamp(400px, 46vw, 560px);
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-bottom: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* the art already leaves the left third empty, so this only deepens it */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(9, 14, 28, 0.55) 0%,
    rgba(9, 14, 28, 0.28) 38%,
    transparent 62%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px clamp(28px, 5vw, 64px);
}

.hero-copy {
  max-width: 46%;
}

.hero-title {
  font-family: 'Bowlby One', var(--font-display);
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #f7f3e6;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #f7f3e6;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
  margin: 14px 0 0;
}

/* ==========================================================================
   Section shell
   ========================================================================== */

section {
  padding: 68px 24px;
  max-width: var(--container);
  margin-inline: auto;
}

/* the cast grid shares the banner/footer gutter so all three line up */
.figures {
  max-width: none;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.howto-panel {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 34px clamp(28px, 5vw, 64px) 38px;
  box-shadow: 0 24px 50px rgba(27, 23, 48, 0.16);
}

.howto-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 26px;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.howto-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.howto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #171522;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
}

.howto-step strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 5px;
}

.howto-step p {
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ==========================================================================
   Auto carousel — 4-up, self-advancing
   ========================================================================== */

.auto-carousel {
  /* runs full-width like .figures, sharing the same gutter as the header/footer/hero */
  max-width: none;
  padding-block: 8px;
  padding-inline: var(--gutter);
  /* --ac-total: real slides + leading clones appended by JS for the loop.
     --ac-visible: how many slides fit on screen; JS keeps it in sync with
     the breakpoints below. Both drive the track/item widths so an item is
     always exactly 100% / visible of the viewport, regardless of how many
     total slides (real + cloned) exist in the track. */
  --ac-total: 14;
  --ac-visible: 4;
  --ac-index: 0;
}

.auto-carousel-stage {
  position: relative;
}

.auto-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: grab;
  touch-action: pan-y;
}

.auto-carousel-viewport:active {
  cursor: grabbing;
}

.auto-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(27, 23, 48, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auto-carousel-arrow:hover {
  background: #fff;
}

.auto-carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.auto-carousel-arrow--prev {
  left: 12px;
}

.auto-carousel-arrow--next {
  right: 12px;
}

@media (max-width: 640px) {
  .auto-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .auto-carousel-arrow--prev {
    left: 6px;
  }

  .auto-carousel-arrow--next {
    right: 6px;
  }
}

.auto-carousel-track {
  display: flex;
  width: calc(var(--ac-total) / var(--ac-visible) * 100%);
  transform: translateX(calc(var(--ac-index) * -100% / var(--ac-total)));
  transition: transform 0.6s ease;
}

/* JS applies this while it snaps the track back to index 0 once the
   trailing clones have scrolled fully into view, so the loop never shows
   a seam or a reverse-direction jump */
.auto-carousel-track.no-transition {
  transition: none;
}

.auto-carousel-item {
  flex: 0 0 calc(100% / var(--ac-total));
  margin: 0;
  padding: 10px;
  text-align: center;
}

.auto-carousel-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(27, 23, 48, 0.12);
}

.auto-carousel-item figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.section-divider {
  max-width: none;
  margin-top: 8px;
  padding-inline: var(--gutter);
}

.section-divider::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--glass-border);
}

/* ==========================================================================
   Figuras reveladas
   ========================================================================== */

/* fixed 4-up: auto-fill would keep adding columns as the grid widens */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.figure-grid-more {
  margin-top: 32px;
}

.figure-grid-more[hidden] {
  display: none;
}

.figures-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn-more .btn-arrow {
  transition: transform 0.2s ease;
}

.btn-more[aria-expanded='true'] .btn-arrow {
  transform: rotate(180deg);
}

.figure-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px 12px 18px;
  box-shadow: 0 14px 30px rgba(27, 23, 48, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.figure-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(27, 23, 48, 0.18);
}

.figure-bust {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: #f4f1ea;
  overflow: hidden;
  margin-bottom: 14px;
}

.figure-bust img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7%;
}

.figure-name {
  font-size: 1.05rem;
  margin-bottom: 4px;
  padding-inline: 4px;
}

.figure-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72em;
  color: var(--pink);
  margin-right: 5px;
}

.figure-lore {
  color: var(--text-dim);
  font-size: 0.86rem;
  padding-inline: 4px;
}

/* ==========================================================================
   Parade — draggable looping carousel
   ========================================================================== */

.parade {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--glass-border);
}

/* Series 1 banner, flush against the parade above it */
.series-banner {
  max-width: none;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.series-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.parade-title {
  max-width: none;
  margin: 0;
  padding: 54px var(--gutter) 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  color: var(--text);
}

.parade-stage {
  position: relative;
  padding: 12px 0 56px;
  overflow: hidden;
}

.parade-watermark {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 17vw, 15rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(27, 23, 48, 0.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.parade-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  /* overflow-x: auto forces overflow-y to auto too, so the scrollport itself
     clips the scaled centre item — this padding is the room it grows into.
     It has to live on the track, not on .parade-stage outside it. */
  padding-top: 56px;
  /* the drag handler drives scrollLeft; native snapping would fight it */
  overscroll-behavior-x: contain;
}

.parade-track::-webkit-scrollbar {
  display: none;
}

.parade-track.is-dragging {
  cursor: grabbing;
}

.parade-track.is-dragging .parade-item {
  /* stop images from being picked up as native drag ghosts */
  pointer-events: none;
}

.parade-item {
  flex: 0 0 20%;
  margin: 0;
  padding-inline: 12px;
  text-align: center;
  transition: transform 0.28s ease;
  transform-origin: bottom center;
}

.parade-item img {
  width: 100%;
  /* capped so the figure keeps a sane size once the column gets wide, and so
     the scaled-up centre still clears the stage */
  max-height: 200px;
  aspect-ratio: 1;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.parade-item figcaption {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.28s ease, font-weight 0.28s ease;
}

/* the item nearest the centre reads as the current pick */
.parade-item.is-center {
  transform: scale(1.18);
}

.parade-item.is-center figcaption {
  color: var(--text);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .parade-item {
    transition: none;
  }
}

/* ==========================================================================
   Buy widget — the qty stepper + price + "Comprar caja" trio, reused in the
   header, the footer and the floating bar
   ========================================================================== */

.buy-widget {
  display: flex;
  align-items: center;
  gap: 18px;
}

.buy-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  min-width: 4.6ch;
}

/* floating variant: fixed pill that follows the scroll */
.buy-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 10px 10px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(27, 23, 48, 0.28);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* tucked away once the footer is on screen, so it never overlaps it */
.buy-bar.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(24px);
}

/* quantity stepper */
.qty {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(27, 23, 48, 0.05);
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(27, 23, 48, 0.14);
  transition: background 0.15s ease, color 0.15s ease;
}

.qty-btn:hover:not(:disabled) {
  background: var(--pink);
  color: #fff;
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.qty-value {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin: 24px var(--gutter) 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  box-shadow: 0 20px 44px rgba(27, 23, 48, 0.14);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-fine {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: rgba(245, 242, 255, 0.95);
  backdrop-filter: blur(12px);
  color: #171522;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  /* the banner art can't share the frame with the copy at this width, so the
     text gets its own darkened band across the whole hero */
  .hero {
    min-height: 380px;
  }

  .hero-media img {
    object-position: 68% center;
  }

  .hero-media::after {
    background: linear-gradient(
      180deg,
      rgba(10, 16, 34, 0.32) 0%,
      rgba(10, 16, 34, 0.72) 62%,
      rgba(10, 16, 34, 0.9) 100%
    );
  }

  .hero {
    align-items: flex-end;
  }

  .hero-copy {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .howto-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .howto-panel {
    padding: 26px 22px 30px;
  }

  section {
    padding: 44px 20px;
  }

  .figures {
    padding-inline: var(--gutter);
  }

  .logo-kana {
    display: none;
  }

  /* the buy widget can't share a single pill row with the logo and cart
     button at this width, so it wraps onto its own centred row below */
  .site-header {
    flex-wrap: wrap;
    row-gap: 10px;
    border-radius: 26px;
  }

  .header-buy {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
  }
}

@media (max-width: 1000px) {
  .figure-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .parade-item {
    flex-basis: 33.333%;
  }
}

@media (max-width: 560px) {
  /* stays odd so one item is genuinely centred; an even count would put the
     midpoint on the gap between two */
  .parade-item {
    padding-inline: 6px;
  }

  .parade-item img {
    max-height: 132px;
  }

  .parade-track {
    padding-top: 36px;
  }

  .parade-title {
    padding-top: 42px;
  }

  .parade-stage {
    padding: 10px 0 44px;
  }
}

@media (max-width: 700px) {
  .figure-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .buy-bar {
    left: 12px;
    right: 12px;
    bottom: 14px;
    transform: none;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    justify-content: space-between;
  }

  .buy-bar.is-hidden {
    transform: translateY(24px);
  }

  .buy-bar .btn {
    padding: 6px 6px 6px 16px;
    font-size: 0.88rem;
    gap: 8px;
  }

  .buy-bar .btn-arrow {
    width: 34px;
    height: 34px;
  }

  .buy-bar .buy-price {
    font-size: 0.92rem;
  }
}
