/* ========================
   もこもこパステル — base styles
   ======================== */
:root {
  --ink: #3d2a2f;
  --ink-soft: #6b4d54;
  --pink-50: #fff5fa;
  --pink-100: #fde6f1;
  --pink-200: #fbd0e6;
  --pink-300: #f5b6d6;
  --pink-400: #ec96bf;
  --pink-500: #db7aab;
  --blue-100: #e3f1f8;
  --blue-200: #bfe2f1;
  --blue-300: #9bd0e6;
  --cream: #fff9f4;
  --paper: #fffaf6;
  --shadow: 0 8px 24px rgba(219, 122, 171, 0.18);
  --shadow-soft: 0 4px 16px rgba(219, 122, 171, 0.12);
  --radius: 28px;
  --radius-lg: 40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===========================================
   App container + variation theme switcher
   =========================================== */
.app { position: relative; min-height: 100vh; overflow-x: clip; }

/* ====== floating character helpers ====== */
@keyframes float-y { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-14px) rotate(var(--r,0deg)); } }
@keyframes float-y-slow { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-22px) rotate(var(--r,0deg)); } }
@keyframes drift { 0%,100% { transform: translate(0,0) rotate(var(--r,0deg)); } 50% { transform: translate(8px,-12px) rotate(calc(var(--r,0deg) + 3deg)); } }
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes twinkle { 0%,100% { opacity:.35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes wiggle { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

.floaty { animation: float-y 4.5s ease-in-out infinite; }
.floaty-slow { animation: float-y-slow 6s ease-in-out infinite; }
.drifty { animation: drift 7s ease-in-out infinite; }

@keyframes outro-rise-up {
  0%   { opacity: 0; transform: translateY(70vh); }
  18%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0); }
}
/* `both` (= forwards + backwards) ensures the 0% keyframe values apply
   immediately when the class is added, eliminating the 1-frame gap where
   the element would otherwise flash at its default position (opacity 1,
   no transform) between the inline style being removed and the animation
   engine ticking its first frame. */
.outro-char { will-change: opacity, transform; }
.outro-char.outro-rise { animation: outro-rise-up 3200ms ease-in-out both; }
.twinkly { animation: twinkle 3s ease-in-out infinite; }
.no-float .floaty, .no-float .floaty-slow, .no-float .drifty, .no-float .twinkly { animation: none; }

/* ===========================================
   Scroll progress bar (top)
   =========================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500), var(--blue-200));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 80;
  transition: transform .15s ease-out;
}

/* ===========================================
   Global parallax background layers
   =========================================== */
.global-parallax {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.gp-layer { position: absolute; inset: 0; will-change: transform; }
.gp-deep .puff,
.cloud {
  position: absolute;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  filter: blur(2px);
}
.gp-deep .puff::before,
.gp-deep .puff::after {
  content: ""; position: absolute;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
}
.gp-deep .puff::before { width: 60%; height: 90%; top: -30%; left: 15%; }
.gp-deep .puff::after  { width: 50%; height: 80%; top: -20%; right: 10%; }

.theme-pop .gp-deep .puff { background: rgba(255,255,255,.85); }
.theme-pop .gp-deep .puff::before, .theme-pop .gp-deep .puff::after { background: rgba(255,255,255,.85); }
.theme-sticker .gp-deep .puff { background: rgba(255,255,255,.4); }
.theme-sticker .gp-deep .puff::before, .theme-sticker .gp-deep .puff::after { background: rgba(255,255,255,.4); }
.theme-tile .gp-deep .puff { background: #fde6f1; opacity: .6; }
.theme-tile .gp-deep .puff::before, .theme-tile .gp-deep .puff::after { background: #fde6f1; }
.theme-sky .gp-deep .puff { background: rgba(255,255,255,.5); }
.theme-sky .gp-deep .puff::before, .theme-sky .gp-deep .puff::after { background: rgba(255,255,255,.5); }

.gp-near .peek {
  position: absolute;
  width: 90px;
  filter: drop-shadow(0 8px 16px rgba(219,122,171,.2));
  animation: float-y 5s ease-in-out infinite;
}
.peek-l { display: none; }
.no-float .gp-near .peek { animation: none; }
.no-parallax .gp-layer { transform: none !important; }

/* side peeks within sections */
.side-peek {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(219,122,171,.18));
  opacity: .85;
}

/* ===========================================
   THEME 1 — Cloud Dream (default, natural)
   =========================================== */
.theme-cloud {
  --bg: linear-gradient(180deg, #fff8fb 0%, #fdebf3 40%, #f4e4ee 100%);
  --section-bg: #fffaf6;
  --accent: var(--pink-300);
}
.theme-cloud .app { background: var(--bg); }

/* ===========================================
   THEME 2 — Bubble Pop (vivid pastel pop)
   =========================================== */
.theme-pop {
  --bg: #ffd9ec;
  --section-bg: #ffe9f4;
  --accent: var(--pink-500);
}
.theme-pop .app { background: var(--bg); }

/* ===========================================
   THEME 3 — Sticker Sheet (paper journal)
   =========================================== */
.theme-sticker {
  --bg: #f6efe3;
  --section-bg: #fbf6ec;
  --accent: var(--pink-400);
}
.theme-sticker .app {
  background:
    radial-gradient(circle at 20% 10%, #fde6ef 0, transparent 30%),
    radial-gradient(circle at 80% 60%, #d8ecf4 0, transparent 30%),
    #f6efe3;
  background-attachment: fixed;
}
.theme-sticker .app::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(61,42,47,.08) 1px, transparent 0);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}

/* ===========================================
   THEME 4 — Soft Tile (clean grid magazine)
   =========================================== */
.theme-tile {
  --bg: #fffaf6;
  --section-bg: #ffffff;
  --accent: var(--pink-300);
}
.theme-tile .app { background: var(--bg); }

/* ===========================================
   THEME 5 — Sweet Sky (night dreamy)
   =========================================== */
.theme-sky {
  --bg: linear-gradient(180deg, #b9c6f0 0%, #e2bedc 45%, #fbd0e6 100%);
  --section-bg: rgba(255,255,255,0.55);
  --accent: #c9a6e4;
  --ink: #3a2a4d;
  --ink-soft: #6a597a;
}
.theme-sky .app { background: var(--bg) fixed; color: var(--ink); }
.theme-sky .app::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 40% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 55%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 65%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 60% 38%, #fff 50%, transparent 51%);
  opacity: .6;
}

/* ====== shared layout ====== */
.wrap {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section { position: relative; padding: 80px 0; }
section + section { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pink-500);
}
.theme-sky .eyebrow { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.15); }

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(40px, 11vw, 72px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 7vw, 44px); }
h3 { font-size: clamp(20px, 5vw, 26px); }
p  { line-height: 1.85; font-size: 16px; color: var(--ink-soft); }

/* small decorative blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ===========================================
   Hero
   =========================================== */
.hero {
  padding-top: 16px;
  text-align: center;
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
  align-self: center;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--pink-400);
  box-shadow: 0 0 0 4px rgba(245,182,214,.4);
}

.hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 20vh;
  /* Auto-fit: shrink font when viewport is narrow so the longest catch line
     (about 9 full-width chars) stays on a single line. */
  font-size: clamp(28px, calc((100vw - 32px) / 9), 72px);
}
/* Force the two catch lines to stay on a single line each */
.hero-title > div > span {
  white-space: nowrap;
}
.hero-title .accent { color: var(--pink-500); }
.theme-sky .hero-title .accent { color: #fff; }

.hero-sub {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--ink-soft);
}

.hero-stage {
  position: relative;
  width: min(420px, 80%);
  margin: -8px auto 0;
  aspect-ratio: 1;
}
.hero-stage .main-char {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(219,122,171,.3));
}
.hero-stage .star {
  position: absolute;
  font-family: 'Caveat', cursive;
  pointer-events: none;
}

/* hero floating mini chars */
.mini-char {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(219,122,171,.2));
}

@media (min-width: 720px) {
  .hero-stage { width: min(480px, 60%); margin-top: -16px; }
}

/* hero outro: big character bridging to marquee */
.hero-outro {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: -80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-outro .outro-char {
  max-width: 60vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(219,122,171,.25));
}
@media (min-width: 720px) {
  .hero-outro { margin-top: -140px; }
}

/* Mobile-only top-right mini char on the hero (hidden on desktop) */
.hero-corner-mini { display: none; }

/* ============================================================
   Mobile-specific layout overrides (≤719px)
   ============================================================ */
@media (max-width: 719px) {
  /* Top view: title closer to vertical middle of viewport */
  .hero-title {
    margin-top: 26vh;
  }

  /* Top view: show the new corner mini just above the logo's top-right,
     and hide the in-stage char-12 (which we cannot pull out of hero-stage
     to a screen corner cleanly) */
  .hero-corner-mini {
    display: block;
    position: absolute;
    top: 26vh;
    right: 4vw;
    width: 64px;
    height: auto;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 6px 12px rgba(219,122,171,.2));
  }
  .hero-stage .mini-char.floaty-slow {
    display: none !important;
  }
  /* Hero stage left mini char (char-09): pull in slightly so it stays inside viewport */
  .hero-stage .mini-char.drifty {
    left: -8% !important;
    top: -4% !important;
    width: 75px !important;
  }

  /* Outro mini chars: split across corners (char-16 → upper-right,
     char-02 → below char-05) */
  .outro-mini-tl {
    top: -55% !important;
    right: 3% !important;
    left: auto !important;
    width: 68px !important;
  }
  .outro-mini-bl {
    bottom: -35% !important;
    left: 3% !important;
    width: 72px !important;
  }

  /* Outro tags: spread vertically so they don't bunch up around char-05's mid-line */
  .outro-tag-fluffy {
    top: -25% !important;
    left: 30% !important;
    font-size: 30px !important;
  }
  .outro-tag-sweet {
    top: 48% !important;
    right: 2% !important;
    font-size: 24px !important;
  }
  .outro-tag-airy {
    top: 22% !important;
    bottom: auto !important;
    left: 1% !important;
    font-size: 22px !important;
  }
  .outro-tag-dreamy {
    top: 105% !important;
    right: 6% !important;
    font-size: 26px !important;
  }

  /* Hide the global "peek" parallax characters on mobile — they overlap
     the centered char-05 view and add clutter */
  .gp-near { display: none; }

  /* CTA stripe: push the text group below the top-left .cta-char on mobile */
  .cta-stripe {
    padding-top: 220px !important;
  }

  /* Lift the bottom-right small char up by ~half its height */
  .cta-char-sm {
    bottom: 0px !important;
  }

  /* Profile avatar: keep char-04 inside the back circle */
  .profile-avatar img {
    inset: 4px !important;
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
  }

  /* Likes grid chips: shrink the Caveat label so "sky blue" stays on one line
     and all chips have equal height */
  .like-chip .ico {
    font-size: 22px !important;
    white-space: nowrap !important;
  }
}

/* scroll cue */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ink-soft);
}
.scroll-cue .line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--ink-soft), transparent);
  animation: drop 1.6s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================================
   Marquee strip
   =========================================== */
.marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--pink-200);
  padding: 14px 0;
  margin: 32px 0;
}
.theme-pop .marquee { background: #fff; }
.theme-sky .marquee { background: rgba(255,255,255,.7); border-color: rgba(58,42,77,.3); }
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: scroll-x 24s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: 'Caveat', cursive;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ===========================================
   Profile section
   =========================================== */
.profile {
  position: relative;
}
.profile-card {
  background: var(--section-bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.theme-sky .profile-card {
  border-color: rgba(58,42,77,.3);
  box-shadow: 6px 6px 0 rgba(58,42,77,.3);
  backdrop-filter: blur(10px);
}
.theme-tile .profile-card {
  box-shadow: var(--shadow);
  border-style: solid;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 110px; height: 110px;
  flex-shrink: 0;
  position: relative;
}
.profile-avatar::before {
  content: ""; position: absolute; inset: 0;
  background: var(--pink-100);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.profile-avatar img {
  position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px);
  object-fit: contain; z-index: 1;
}
.profile-name {
  font-size: 28px;
  margin: 0;
}
.profile-name small {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--pink-500);
  font-weight: 400;
  margin-bottom: 2px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 24px;
}
.stat {
  background: var(--pink-100);
  border-radius: 18px;
  padding: 12px 14px;
  border: 1.5px dashed var(--pink-400);
  /* Establish a query container so the value can auto-fit when narrow */
  container-type: inline-size;
  overflow: hidden;
}
.stat .label {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stat .value {
  /* Auto-fit single-line value (max ~8 全角 chars) based on the stat's
     own width. Subtract horizontal padding (28px) from the container's
     inline size, then divide by char count for the per-char font size. */
  font-size: clamp(10px, calc((100cqi - 32px) / 8), 16px);
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.like-chip {
  background: var(--blue-100);
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  border: 1.5px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  position: relative;
}
.like-chip .ico {
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
  white-space: nowrap;
  margin-bottom: 4px;
  font-family: 'Caveat', cursive;
  color: var(--pink-500);
}

/* ===========================================
   Story section
   =========================================== */
.story {
  position: relative;
}
.story-art {
  width: min(380px, 80%);
  margin: 0 auto 24px;
  position: relative;
}
.story-art img { width: 100%; }
.story-frames {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}
.story-frame {
  position: relative;
  padding-left: 64px;
  padding-right: 80px;
}
.story-frame .frame-mini {
  position: absolute;
  right: 0; top: -8px;
  width: 64px;
  filter: drop-shadow(0 6px 12px rgba(219,122,171,.2));
  animation: float-y 4s ease-in-out infinite;
}
.no-float .story-frame .frame-mini { animation: none; }
.story-frame .num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink-300);
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.story-frame::before {
  content: "";
  position: absolute;
  left: 19px; top: 44px;
  width: 1.5px; height: calc(100% - 28px);
  background: repeating-linear-gradient(180deg, var(--ink) 0 4px, transparent 4px 10px);
}
.story-frame:last-child::before { display: none; }
.story-frame h3 { margin-bottom: 6px; }

/* ===========================================
   Color world section
   =========================================== */
.world {
  background: var(--section-bg);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  margin: 80px 0;
  padding: 80px 0;
  position: relative;
}
.world::before, .world::after {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--section-bg);
  border: 1.5px solid var(--ink);
}
.world::before { top: -30px; }
.world::after  { bottom: -30px; }
.theme-tile .world { border: none; background: var(--pink-100); border-radius: 40px; margin: 80px 16px; }
.theme-tile .world::before, .theme-tile .world::after { display: none; }
.theme-sky .world { border-color: rgba(58,42,77,.2); background: rgba(255,255,255,.45); backdrop-filter: blur(10px); }
.theme-sky .world::before, .theme-sky .world::after { background: rgba(255,255,255,.7); border-color: rgba(58,42,77,.3); }

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1.5px solid var(--ink);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s ease;
}
.swatch:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.swatch::before {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--ink);
}
.theme-sky .swatch { border-color: rgba(58,42,77,.4); box-shadow: 3px 3px 0 rgba(58,42,77,.4); }

/* ===========================================
   Gallery / character expressions
   =========================================== */
.gallery {
  margin-top: 40px;
}
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 24px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
@keyframes gallery-pop {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}
.gallery-card-anim {
  animation: gallery-pop .8s cubic-bezier(.22,1,.36,1) backwards;
}
.gallery-card {
  flex: 0 0 220px;
  aspect-ratio: 4/5;
  background: var(--section-bg);
  border-radius: 28px;
  border: 1.5px solid var(--ink);
  position: relative;
  scroll-snap-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
}
.gallery-card .tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}
.gallery-card .num {
  position: absolute;
  top: 12px; right: 12px;
  font-family: 'Caveat', cursive;
  font-size: 28px;
  color: var(--pink-400);
}

/* ===========================================
   Footer / SNS
   =========================================== */
.footer {
  text-align: center;
  padding: 60px 0 80px;
  position: relative;
}
.sns-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sns-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.sns-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--ink); }
.theme-sky .sns-btn { border-color: rgba(58,42,77,.4); box-shadow: 3px 3px 0 rgba(58,42,77,.4); }

.footer-mark {
  font-family: 'Caveat', cursive;
  font-size: 36px;
  color: var(--pink-500);
}

.footer-tiny {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--ink-soft);
  margin-top: 32px;
}

/* ===========================================
   THEME-specific overrides
   =========================================== */

/* Pop — chunky / candy */
.theme-pop .hero-title .accent {
  background: #fff;
  display: inline-block;
  padding: 0 12px;
  border-radius: 22px;
  border: 2px solid var(--ink);
  color: var(--pink-500);
}
.theme-pop .profile-card,
.theme-pop .gallery-card,
.theme-pop .like-chip,
.theme-pop .stat {
  border-width: 2px;
}
.theme-pop .profile-card {
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
}

/* Sticker — washi tape on cards */
.theme-sticker .profile-card::before,
.theme-sticker .gallery-card::after {
  content: "";
  position: absolute;
  width: 80px; height: 22px;
  background: rgba(245,182,214,.7);
  top: -10px; left: 30px;
  transform: rotate(-4deg);
  border: 1px dashed rgba(61,42,47,.2);
}
.theme-sticker .gallery-card::after {
  background: rgba(191,226,241,.7);
  left: auto; right: 30px; transform: rotate(5deg);
}
.theme-sticker .profile-card,
.theme-sticker .gallery-card {
  box-shadow: 4px 4px 0 var(--ink), 0 12px 24px rgba(0,0,0,.06);
}

/* Tile — cleaner, no double border */
.theme-tile .hero-badge { background: #fff; }
.theme-tile .marquee { background: var(--pink-100); border-color: var(--pink-300); }
.theme-tile .like-chip,
.theme-tile .stat,
.theme-tile .gallery-card,
.theme-tile .sns-btn {
  border-color: var(--pink-300);
  box-shadow: var(--shadow-soft);
}
.theme-tile .sns-btn { box-shadow: var(--shadow-soft); }
.theme-tile .story-frame .num { background: var(--pink-400); }

/* Sky — translucent, glowy */
.theme-sky .hero-badge,
.theme-sky .stat,
.theme-sky .like-chip,
.theme-sky .gallery-card,
.theme-sky .sns-btn {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  border-color: rgba(58,42,77,.35);
}
.theme-sky .marquee-track span { color: var(--ink); }

/* ===========================================
   Tweaks panel teaser when off
   =========================================== */
.tweaks-hint {
  position: fixed;
  bottom: 16px;
  right: 16px;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-soft);
  background: rgba(255,255,255,.85);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  z-index: 50;
  pointer-events: none;
}

/* ===========================================
   Hero variant-specific layouts
   =========================================== */
.hero-cloud-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-cloud-bg .cloud {
  position: absolute;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  filter: blur(2px);
}

/* Sweet sky moon */
.moon {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffe9c8 60%, #f5c89d 100%);
  box-shadow: 0 0 40px rgba(255,235,200,.6);
  top: 40px; right: 30px;
  z-index: 0;
}

/* Tablet / desktop */
@media (min-width: 720px) {
  .wrap { width: min(100% - 64px, 880px); }
  section { padding: 120px 0; }
  .hero-title { gap: 6px; }
  .profile-stats { grid-template-columns: repeat(4, 1fr); }
  .swatches { grid-template-columns: repeat(6, 1fr); gap: 18px; max-width: 760px; }
  .likes-grid { grid-template-columns: repeat(6, 1fr); }
  .story-frames { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
}

/* ===========================================
   CTA stripe — full bleed, parallax
   =========================================== */
.cta-stripe {
  position: relative;
  margin: 80px 0 0;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-bg {
  position: absolute; inset: -10% -5%;
  background: linear-gradient(135deg, var(--pink-400) 0%, var(--pink-500) 50%, #c9a6e4 100%);
  border-radius: 60px;
  z-index: 0;
  will-change: transform;
}
.theme-pop .cta-bg { background: linear-gradient(135deg, #ff9bc8, #db7aab); }
.theme-tile .cta-bg { background: linear-gradient(135deg, #fbd0e6, #bfe2f1); }
.theme-sticker .cta-bg { background: linear-gradient(135deg, #f5b6d6, #ec96bf); }
.theme-sky .cta-bg { background: linear-gradient(135deg, #b9c6f0, #e2bedc, #fbd0e6); }
.cta-char {
  position: absolute;
  width: 220px;
  top: -40px; left: -40px;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.15));
  will-change: transform;
}
.cta-char-sm {
  position: absolute;
  width: 140px;
  bottom: -30px; right: -20px;
  z-index: 1;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.15));
  will-change: transform;
}
.cta-h {
  color: #fff;
  font-size: clamp(36px, 9vw, 56px);
  line-height: 1.2;
  text-shadow: 0 4px 16px rgba(0,0,0,.1);
  letter-spacing: -0.01em;
  font-weight: 900;
}
@media (min-width: 720px) {
  .cta-char { width: 320px; top: -60px; left: 4%; }
  .cta-char-sm { width: 200px; bottom: -40px; right: 8%; }
  .cta-stripe { padding: 160px 0; margin: 120px 0 0; }
}

/* gallery section needs higher z than parallax peeks */
.gallery-section { position: relative; z-index: 2; }

/* sections need z-index above global parallax */
section, footer { position: relative; z-index: 1; }
.app > section, .app > footer { z-index: 1; }

/* ========== Game banner (mini game embed) ========== */
.game-banner-section {
  width: 100%;
  overflow: hidden;
  padding: 60px 0;
  position: relative;
  z-index: 2;
}
.game-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #d6e9f5 0%, #f0d8ee 50%, #ffe2ee 100%);
  height: 480px;
  cursor: pointer;
  user-select: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  margin: 0 auto;
  max-width: 1200px;
}
@media (min-width: 720px) {
  .game-banner { height: 380px; border-radius: 32px; margin: 0 24px; }
}
@media (min-width: 1248px) {
  .game-banner { margin: 0 auto; }
}
.game-banner:hover { transform: translateY(-2px); }
.game-banner:hover .gb-cta { transform: translateY(-2px) scale(1.04); }
.game-banner:active { transform: translateY(0); }

.gb-clouds, .gb-decor {
  position: absolute; inset: 0; pointer-events: none;
}
.gb-clouds > div {
  animation: gbFloat 6s ease-in-out infinite;
}
.gb-clouds > div:nth-child(2) { animation-delay: -1.5s; animation-duration: 7s; }
.gb-clouds > div:nth-child(3) { animation-delay: -3s; animation-duration: 8s; }
.gb-clouds > div:nth-child(4) { animation-delay: -2s; animation-duration: 6.5s; }
.gb-clouds > div:nth-child(5) { animation-delay: -4s; animation-duration: 7.5s; }
@keyframes gbFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.gb-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  z-index: 2;
}
@media (min-width: 720px) {
  .gb-inner {
    flex-direction: row;
    gap: 60px;
    padding: 0 80px;
  }
}
.gb-copy {
  display: flex; flex-direction: column; gap: 14px;
  text-align: center; align-items: center;
  order: 2;
  max-width: 100%;
}
@media (min-width: 720px) {
  .gb-copy {
    gap: 24px; text-align: left; align-items: flex-start;
    order: 1; max-width: 480px;
  }
}
.gb-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: #ec96bf;
  background: rgba(255,255,255,.65);
  border: 1.5px solid #fff;
  border-radius: 999px;
  padding: 6px 14px;
}
.gb-title {
  margin: 0;
  font-size: 26px; font-weight: 900; line-height: 1.25;
  letter-spacing: .02em;
  color: #3d2a2f;
  text-shadow: 0 2px 0 rgba(255,255,255,.8);
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", system-ui, sans-serif;
}
@media (min-width: 720px) { .gb-title { font-size: 38px; } }
.gb-title-pink { color: #ec96bf; }
.gb-sub {
  margin: 0; font-size: 13px; line-height: 1.7;
  color: rgba(61,42,47,.6); font-weight: 500;
}
@media (min-width: 720px) { .gb-sub { font-size: 15px; } }
.gb-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #ec96bf;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 16px; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 6px 0 #3d2a2f, 0 12px 24px rgba(236,150,191,.4);
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 720px) { .gb-cta { padding: 14px 36px; font-size: 18px; } }

.gb-char {
  position: relative; width: 160px; height: 160px;
  order: 1;
  animation: gbCharFloat 3.4s ease-in-out infinite;
}
@media (min-width: 720px) {
  .gb-char { width: 220px; height: 220px; order: 2; }
}
@keyframes gbCharFloat {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
}
.gb-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(255,214,240,.7), transparent 60%);
  border-radius: 50%;
}
.gb-char-img {
  width: 100%; height: 100%;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 8px 18px rgba(236,150,191,.4));
  pointer-events: none;
}
.gb-spark { position: absolute; }
.gb-spark-a { left: -16px; bottom: 10px; }
.gb-spark-b { right: -10px; top: 10px; }
