/* ============ FUGCAT — plush toy aesthetic ============ */
:root {
  --sky: #8dcafe;
  --sky-soft: #a9d8ff;
  --sky-deep: #6fb3ee;
  --plush: #62b2eb;
  --gum: #e8809b;
  --gum-deep: #d3697f;
  --tooth: #ffffff;
  --ink: #2c3e55;
  --ink-soft: rgba(44, 62, 85, 0.68);
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --r: 26px;
  --lift: 0 8px 0 rgba(44, 62, 85, 0.16);
  --lift-sm: 0 5px 0 rgba(44, 62, 85, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gum); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 4px solid var(--gum); outline-offset: 3px; border-radius: 8px; }

/* soft paw-print wallpaper */
.paws {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%236fb3ee' fill-opacity='0.55'%3E%3Cellipse cx='60' cy='72' rx='17' ry='14'/%3E%3Cellipse cx='38' cy='47' rx='8' ry='10'/%3E%3Cellipse cx='58' cy='39' rx='8' ry='10'/%3E%3Cellipse cx='78' cy='47' rx='8' ry='10'/%3E%3Cellipse cx='190' cy='196' rx='17' ry='14'/%3E%3Cellipse cx='168' cy='171' rx='8' ry='10'/%3E%3Cellipse cx='188' cy='163' rx='8' ry='10'/%3E%3Cellipse cx='208' cy='171' rx='8' ry='10'/%3E%3C/g%3E%3C/svg%3E");
}
.wrap { position: relative; z-index: 1; }

.label {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

/* ============ intro ============ */
.intro {
  position: relative; width: 100%; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; padding: 2rem;
  opacity: 0; transition: opacity 0.7s ease;
}
.intro.on { opacity: 1; }
.intro-face {
  width: min(56vw, 270px); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 8px solid #fff;
  box-shadow: 0 14px 0 rgba(44,62,85,0.16);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-1.5deg);} 50%{transform:translateY(-16px) rotate(1.5deg);} }
.loadbox { width: min(86vw, 30rem); display: flex; flex-direction: column; gap: 0.7rem; }
.loadbox-row { display: flex; justify-content: space-between; align-items: baseline; }
.loadbox-pct { font-family: var(--display); font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
/* progress bar drawn as a stitched seam */
.seam {
  position: relative; height: 20px; border-radius: 999px;
  background: rgba(255,255,255,0.55); border: 3px solid #fff; overflow: hidden;
}
.seam-fill {
  position: absolute; inset: 0; width: 0; border-radius: 999px;
  background: var(--gum);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.85) 0 7px, transparent 7px 20px);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ============ header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.6rem;
  background: rgba(141, 202, 254, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid #fff;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }
.brand span { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: #fff; letter-spacing: 0.02em; text-shadow: 0 3px 0 rgba(44,62,85,0.18); }
.header-right { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }

.ca-chip {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0;
  background: #fff; color: var(--ink);
  border: none; border-radius: 999px; padding: 0.5rem 1rem;
  font-family: var(--body); font-weight: 800; cursor: pointer;
  box-shadow: var(--lift-sm); transition: transform 0.18s, box-shadow 0.18s;
}
.ca-chip:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(44,62,85,0.16); }
.ca-chip .ca-label { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-soft); }
.ca-chip .ca-value { font-size: 0.76rem; }
.ca-chip .ca-copy { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--gum-deep); }

.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a {
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; text-decoration: none; text-shadow: 0 2px 0 rgba(44,62,85,0.18);
}
.nav-links a:hover { color: var(--ink); text-shadow: none; }
.nav-links a.buy {
  color: #fff; background: var(--gum); padding: 0.55rem 1.15rem; border-radius: 999px;
  box-shadow: var(--lift-sm); text-shadow: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.nav-links a.buy:hover { background: var(--gum-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 rgba(44,62,85,0.16); }

/* ============ hero ============ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding: 7rem 1.6rem 4rem; }
.hero-inner {
  width: 100%; max-width: 74rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: 3rem; align-items: center;
}
.hero-kicker {
  display: inline-block; background: #fff; color: var(--ink);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border-radius: 999px; box-shadow: var(--lift-sm); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 8.2vw, 7.2rem); line-height: 0.9; color: #fff; white-space: nowrap;
  text-shadow: 0 10px 0 rgba(44,62,85,0.18);
}
.hero-title span {
  display: inline-block; opacity: 0; transform: translateY(0.3em) rotate(-6deg);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2,1.5,0.4,1);
}
.hero-title.in span { opacity: 1; transform: none; }
.hero-tag { margin-top: 1.6rem; }
.hero-tag .lead { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; color: var(--ink); }
.hero-tag .accent { margin-top: 0.35rem; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; color: var(--gum-deep); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.1rem;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: #fff; background: var(--gum); padding: 1rem 2rem; border-radius: 999px;
  text-decoration: none; box-shadow: var(--lift);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.hero-cta:hover { background: var(--gum-deep); transform: translateY(-3px); box-shadow: 0 11px 0 rgba(44,62,85,0.18); }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hero-face {
  width: 100%; max-width: 27rem; border-radius: var(--r);
  border: 10px solid #fff; box-shadow: var(--lift); display: block;
  animation: sway 6s ease-in-out infinite;
}
@keyframes sway { 0%,100%{transform:rotate(-1.2deg) translateY(0);} 50%{transform:rotate(1.2deg) translateY(-10px);} }

/* swing tag */
.swing-tag {
  position: relative; z-index: 3;
  width: min(19rem, 88%); background: #fff; border-radius: 18px;
  box-shadow: var(--lift); padding: 1rem 1.2rem; transform: rotate(-1.6deg);
}
.swing-tag::before {
  content: ""; position: absolute; top: -0.7rem; left: 50%; margin-left: -0.65rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--sky); border: 4px solid #fff;
}
.swing-tag h3 { font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.14em; margin-bottom: 0.6rem; color: var(--gum-deep); }
.tag-row { display: flex; justify-content: space-between; gap: 0.7rem; font-size: 0.68rem; font-weight: 700; padding: 0.28rem 0; border-bottom: 2px dotted rgba(44,62,85,0.18); }
.tag-row:last-child { border-bottom: none; }
.tag-row .k { color: var(--ink-soft); letter-spacing: 0.06em; }
.tag-row .v { color: var(--ink); text-align: right; }
.tag-row .v.hot { color: var(--gum-deep); }

.hero-scroll { position: absolute; bottom: 1.5rem; inset-inline: 0; text-align: center; }
.hero-scroll .label { color: rgba(255,255,255,0.9); animation: nudge 2s ease-in-out infinite; display: inline-block; }
@keyframes nudge { 0%,100%{transform:translateY(0);} 50%{transform:translateY(5px);} }

/* ============ ticker ============ */
.ticker-clip { overflow: hidden; position: relative; z-index: 5; }
.ticker { background: #fff; padding: 0.9rem 0; transform: rotate(-1.4deg) scale(1.04); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: roll 26s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 1.1rem; padding: 0 0.6rem;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.ticker-item .paw { color: var(--gum); }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ sections ============ */
.section { position: relative; z-index: 1; padding: 6.5rem 1.6rem; max-width: 74rem; margin: 0 auto; }
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1; color: #fff;
  text-shadow: 0 8px 0 rgba(44,62,85,0.16); margin-bottom: 0.7rem;
}
.section-title span { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2,1.4,0.4,1); }
.section-title.in span { opacity: 1; transform: none; }
.section-sub { margin-bottom: 2.8rem; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

.btn {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); background: #fff; border: none; border-radius: 999px;
  padding: 0.85rem 1.8rem; cursor: pointer; box-shadow: var(--lift-sm);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(44,62,85,0.16); }
.btn-primary { background: var(--gum); color: #fff; }
.btn-primary:hover { background: var(--gum-deep); color: #fff; }

/* ============ care label ============ */
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px,100%),1fr)); gap: 1.4rem; }
.care-card { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--lift); padding: 1.8rem 1.5rem; }
.care-card .code { font-family: var(--display); font-size: 2.2rem; color: rgba(44,62,85,0.14); line-height: 1; }
.care-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0.4rem 0 0.6rem; }
.care-card p { font-size: 0.86rem; line-height: 1.85; color: var(--ink-soft); font-weight: 600; }
.care-card.flag { background: var(--gum); }
.care-card.flag .code { color: rgba(255,255,255,0.4); }
.care-card.flag h3, .care-card.flag p { color: #fff; }
.care-note { margin-top: 1.5rem; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.95); }

/* ============ the stitching ============ */
.stitch-list { list-style: none; position: relative; padding-left: 3.4rem; }
.stitch-list::before {
  content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 1.2rem; width: 4px;
  background: repeating-linear-gradient(to bottom, #fff 0 12px, transparent 12px 22px);
  border-radius: 4px;
}
.stitch-item { position: relative; margin-bottom: 1.2rem; }
.stitch-item:last-child { margin-bottom: 0; }
.stitch-item .dot {
  position: absolute; left: -3.4rem; top: 1.1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--lift-sm);
}
.stitch-card { background: #fff; border-radius: 20px; box-shadow: var(--lift-sm); padding: 1.2rem 1.4rem; }
.stitch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.stitch-head .what { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.stitch-head .when { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.stitch-card p { font-size: 0.86rem; line-height: 1.85; color: var(--ink-soft); font-weight: 600; }
.stitch-card .credit {
  display: inline-block; margin-top: 0.7rem; font-family: var(--display); font-weight: 600;
  font-size: 0.85rem; color: #fff; background: var(--ink); padding: 0.3rem 0.8rem; border-radius: 999px;
}
.stitch-item.turn .dot { background: var(--gum); color: #fff; }
.stitch-item.turn .stitch-card { background: var(--gum); }
.stitch-item.turn .stitch-head .what, .stitch-item.turn p { color: #fff; }
.stitch-item.turn .stitch-head .when { color: rgba(255,255,255,0.75); }

/* makers */
.makers { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.maker {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none;
  background: #fff; border-radius: 999px; padding: 0.6rem 1.2rem 0.6rem 0.7rem;
  box-shadow: var(--lift-sm); transition: transform 0.18s, box-shadow 0.18s;
}
.maker:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(44,62,85,0.16); }
.maker .ig { width: 2rem; height: 2rem; border-radius: 50%; background: var(--gum); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex: none; }
.maker b { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--ink); display: block; }
.maker small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ============ sightings ============ */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(325px,100%),1fr)); gap: 1.4rem; justify-items: center; }
.feed-item { width: 100%; max-width: 340px; background: #fff; border-radius: 20px; box-shadow: var(--lift); padding: 0.5rem; overflow: hidden; }
.feed-item iframe, .feed-item blockquote { display: block; margin: 0 !important; max-width: 100% !important; min-width: 0 !important; border-radius: 14px; }
.feed-empty {
  grid-column: 1/-1; max-width: 34rem; margin-inline: auto; text-align: center;
  background: #fff; border-radius: var(--r); box-shadow: var(--lift); padding: 3rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.feed-empty img { width: 92px; height: 92px; border-radius: 50%; border: 5px solid var(--sky); animation: bob 3s ease-in-out infinite; }
.feed-empty p { font-size: 0.9rem; line-height: 1.9; color: var(--ink-soft); font-weight: 700; }

/* ============ pfp factory ============ */
.pfp-wrap { display: flex; gap: 3.5rem; flex-wrap: wrap; align-items: flex-start; }
.pfp-col { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
#pfpPreview {
  width: min(74vw, 320px); height: min(74vw, 320px); border-radius: 50%;
  border: 10px solid #fff; box-shadow: var(--lift); background: var(--sky);
}
.pfp-controls { display: flex; flex-direction: column; gap: 1.6rem; min-width: 17rem; max-width: 26rem; }
.pfp-controls h3 { margin-bottom: 1rem; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 4.2rem; background: none; border: none; padding: 0; cursor: pointer; }
.swatch i { display: block; width: 3.3rem; height: 3.3rem; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--lift-sm); transition: transform 0.18s, box-shadow 0.18s; }
.swatch:hover i { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(44,62,85,0.16); }
.swatch.active i { border-color: var(--gum); box-shadow: 0 0 0 3px var(--gum), var(--lift-sm); }
.swatch span { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.95); }
.swatch.active span { color: var(--ink); }

/* ============ footer ============ */
.site-footer { position: relative; z-index: 1; margin-top: 4rem; padding: 3.5rem 1.6rem 0; background: #fff; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.footer-grid { max-width: 74rem; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; padding-bottom: 3rem; }
.footer-col h2 { margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; margin-bottom: 0.7rem; }
.footer-col a:hover { color: var(--gum-deep); }
.footer-copy { text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-soft); padding-bottom: 6rem; }
.footer-mark {
  position: absolute; inset-inline: 0; bottom: -0.28em; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 16vw, 15rem); line-height: 1;
  color: rgba(141,202,254,0.35); pointer-events: none; user-select: none; white-space: nowrap;
}
.disclaimer { max-width: 74rem; margin: 0 auto; padding: 0 0 2rem; font-size: 0.68rem; line-height: 1.9; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* toast */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translate(-50%, 260%); z-index: 110;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.85rem 1.7rem; border-radius: 999px;
  transition: transform 0.32s cubic-bezier(0.2,1.4,0.4,1);
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .intro-face, .hero-face, .feed-empty img, .hero-scroll .label { animation: none; }
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .hero { padding: 6.5rem 1.2rem 3rem; }
  .hero-face { max-width: 21rem; }
  .hero-scroll { display: none; }
  .makers { justify-content: center; }
}
@media (max-width: 720px) {
  .site-header { padding: 0.7rem 1rem; }
  .header-right { gap: 0.6rem; }
  .ca-chip { min-width: 0; }
  .ca-chip .ca-label { display: none; }
  .ca-chip .ca-value { overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
  .nav-links a:not(.buy) { display: none; }
  .section { padding: 4.5rem 1.1rem; }
  .stitch-list { padding-left: 2.9rem; }
  .stitch-item .dot { left: -2.9rem; width: 2.1rem; height: 2.1rem; font-size: 0.82rem; }
  .pfp-wrap { gap: 2.2rem; justify-content: center; }
  .pfp-controls { width: 100%; min-width: 0; align-items: center; }
  .swatch-row { justify-content: center; }
}
