/* Plushstop — tokens from the Plushstop Playbook V1.0 (Kinoto Studio, July 2026)
   Layout: one centred column, 8px spacing scale, one primary action. */

@font-face {
  font-family: "Printvetica";
  src: url("/fonts/printvetica.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The home headline is vector artwork (assets/headline-too-cute.svg) set in the
   brand faces — City Boy TM over Rodger Black — so no headline webfont is needed.
   For other live-text headlines, drop a web-licensed cityboy-regular.woff2 in
   /public/fonts and uncomment; Baloo 2 stands in (used on the 404 page). */
/*
@font-face { font-family: "City Boy"; src: url("/fonts/cityboy-regular.woff2") format("woff2"); font-display: swap; }
*/

:root {
  --butter: #FFF8A6;
  --blue: #5C63BC;        /* Plushstop Blue */
  --blue-deep: #3F4594;   /* hover only */
  --off-white: #F8F5E8;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px;
  --column: 640px;

  --font-head: "City Boy", "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Printvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
body > * { flex-shrink: 0; }   /* never squeeze the bar, header or footer */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--butter);
  color: var(--blue);
  font: 400 18px/1.5 var(--font-body);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; }
p { margin: 0; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* Top marquee: the playbook's "too cute ☁ to be true" strip, scrolling */
.marquee { flex-shrink: 0; overflow: hidden; background: var(--off-white); border-bottom: 2px solid var(--blue); padding: 10px 0; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track img { height: 18px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Header */
.header { padding: var(--s4) var(--s3) 0; display: flex; justify-content: center; }
.logo { height: clamp(96px, 14vw, 128px); width: auto; }

/* Main column */
.main {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: var(--s6) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Floating brand stickers around the hero, in mirrored left/right pairs.
   On desktop they sit outside the 640px column; on small screens a few
   shrink into the corners and the rest are hidden. */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.main > :not(.deco) { position: relative; z-index: 1; }
.deco__item { position: absolute; height: auto; }
.deco__pin      { left: -170px; top: 24px;  width: 132px; --r: -10deg; animation: wobble 6s ease-in-out infinite; }
.deco__sparkle  { right: -130px; top: 28px;  width: 72px;  animation: twinkle 3s ease-in-out infinite; }
.deco__heart    { left: -96px;  top: 260px; width: 64px;  --r: -12deg; animation: float 5s ease-in-out infinite; }
.deco__star     { right: -110px; top: 250px; width: 56px;  --r: 14deg; animation: float 4.5s ease-in-out -1s infinite; }
.deco__flower   { left: -150px; bottom: 64px; width: 56px; animation: spin-slow 14s linear infinite; }
.deco__swirl    { right: -160px; bottom: 72px; width: 72px; --r: 8deg; animation: float 5.5s ease-in-out -2s infinite; }
.deco__sparkle2 { left: -24px;  bottom: 16px; width: 44px; animation: twinkle 3.6s ease-in-out -1.2s infinite; }
.deco__star2    { right: -24px; bottom: 20px; width: 40px; --r: -10deg; animation: float 4s ease-in-out -.5s infinite; }
@keyframes float   { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(var(--r, 0deg)); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(.82) rotate(12deg); } }
@keyframes wobble  { 0%, 100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) * -0.6)) translateY(-6px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .deco__pin, .deco__flower, .deco__sparkle2, .deco__star2 { display: none; }
  .deco__heart   { left: 12px;  top: 10px;  width: 36px; }
  .deco__sparkle { right: 12px; top: 6px;   width: 40px; }
  .deco__swirl   { left: 12px;  right: auto; bottom: -2px; width: 36px; }
  .deco__star    { right: 12px; top: auto; bottom: 0; width: 28px; }
}

/* Mascots: widths match each drawing's real width, so all four bodies are the
   same size and their feet sit on one line. */
.cast { width: min(100%, 400px); display: flex; align-items: flex-end; gap: var(--s1); margin-bottom: var(--s4); }
.cast img { min-width: 0; height: auto; animation: bob 3.2s ease-in-out infinite; }
.cast__frog  { flex: 329 1 0; }
.cast__bunny { flex: 329 1 0; animation-delay: -.8s !important; }
.cast__kitty { flex: 329 1 0; animation-delay: -1.6s !important; }
.cast__bear  { flex: 456 1 0; animation-delay: -2.4s !important; }
@keyframes bob { 50% { transform: translateY(-4px); } }

.title {
  margin: 0 0 var(--s2);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(48px, 11vw, 88px);
  line-height: .9;
  text-transform: uppercase;
}
.title { width: 100%; }
.title img { width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.sub { margin-bottom: var(--s4); }

/* One primary action, wrapped in a spinning rainbow ring (brand pop colours) */
.cta-ring {
  position: relative;
  width: 100%; max-width: 330px;
  padding: 5px;
  border-radius: 999px;
  isolation: isolate;
}
/* the moving rainbow stroke: an oversized conic gradient spinning behind the button */
.cta-ring__spin {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1;
}
.cta-ring__spin::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 130%; aspect-ratio: 1;
  background: conic-gradient(#FF8DC1, #FCC172, #FFED63, #97EF97, #8CD1F2, #AFBEFF, #FF8DC1);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: spin 3s linear infinite;
}
/* soft glow in the same colours */
.cta-ring::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, #FF8DC1, #FFED63, #97EF97, #8CD1F2, #FF8DC1);
  filter: blur(16px);
  opacity: .55;
  z-index: -2;
  animation: glow 3s ease-in-out infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes glow { 50% { opacity: .85; } }

.cta {
  display: flex; align-items: center; justify-content: center; gap: var(--s1);
  width: 100%; min-height: 56px; padding: 0 var(--s3);
  border-radius: 999px;
  background: var(--blue); color: var(--off-white);
  font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s ease;
}
.cta-ring { transition: transform .2s ease; }
.cta-ring:hover { transform: translateY(-2px) scale(1.02); }
.cta:hover { background: var(--blue-deep); color: var(--off-white); }
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* TikTok wheel */
.tiktok { width: 100%; padding: var(--s2) 0 var(--s8); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.tiktok__head { position: relative; display: flex; justify-content: center; }
.tiktok__title { margin: 0; }
.tiktok__title img { width: 266px; height: auto; transform: rotate(-3deg); }
.tiktok__new { position: absolute; right: -44px; top: -22px; width: 64px; height: auto; animation: spin-slow 18s linear infinite; }
.tiktok__label { margin-top: calc(var(--s2) * -1); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.wheel { position: relative; width: 100%; }
.wheel__track {
  display: flex; gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: var(--s3) calc(50% - 120px);
  perspective: 1200px;
  scrollbar-width: none;
}
.wheel__track::-webkit-scrollbar { display: none; }
.wheel__card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  display: flex; flex-direction: column; gap: var(--s1);
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
  will-change: transform;
}
.wheel__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--off-white);
  border: 4px solid var(--blue);
}
.wheel__card:nth-child(4n+1) .wheel__frame { background: #FFC7E0; }
.wheel__card:nth-child(4n+2) .wheel__frame { background: #DDF3FE; }
.wheel__card:nth-child(4n+3) .wheel__frame { background: #B9FBC5; }
.wheel__card:nth-child(4n+4) .wheel__frame { background: #FBD4AF; }
.wheel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wheel__caption { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.wheel__nav { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s1); }
.wheel__btn {
  width: 48px; height: 48px; border-radius: 999px;
  border: 2px solid var(--blue); background: var(--off-white); color: var(--blue);
  display: grid; place-items: center; cursor: pointer;
}
.wheel__btn:hover { background: var(--blue); color: var(--off-white); }
.wheel__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wheel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.wheel__sound {
  min-height: 48px; padding: 0 var(--s3);
  display: inline-flex; align-items: center; gap: var(--s1);
  border-radius: 999px; border: 2px solid var(--blue);
  background: var(--off-white); color: var(--blue);
  font: inherit; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
}
.wheel__sound:hover { background: var(--blue); color: var(--off-white); }
.wheel__sound:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wheel__sound[aria-pressed="true"] { background: var(--blue); color: var(--off-white); }
.wheel__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wheel__sound .wheel__sound-on, .wheel__sound[aria-pressed="true"] .wheel__sound-off { display: none; }
.wheel__sound[aria-pressed="true"] .wheel__sound-on { display: block; }

/* Secondary: a quiet text link */
.follow {
  padding: var(--s1) var(--s2);
  min-height: 44px;
  display: inline-flex; align-items: center;
  color: var(--blue);
  font-size: 15px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.follow:hover { color: var(--blue-deep); }

@media (max-width: 560px) {
  .wheel__track { padding-inline: calc(50% - 105px); gap: var(--s2); }
  .wheel__card { flex-basis: 210px; }
}

/* Footer */
.footer { padding: var(--s4) var(--s3) var(--s6); display: flex; flex-direction: column; align-items: center; gap: var(--s2); border-top: 2px solid var(--blue); background: var(--off-white); }
.footer__loved { width: min(100%, 360px); height: auto; }
.footer__copy { width: min(100%, 280px); height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wheel__track { scroll-behavior: auto; }
}
