{
  "id": 92,
  "slug": "tocaboca-candy-stickers",
  "name": "Toca Boca Candy Stickers",
  "kind": "style",
  "family": "Playful & Hand-Drawn",
  "sourceSite": {
    "name": "Toca Boca",
    "url": "https://www.tocaboca.com/",
    "verifiedStatus": 200
  },
  "tagline": "Joyful Scandinavian toybox sticker collage with chunky bouncy pill cards, confetti shapes, and candy-bright color blocks.",
  "whyUnique": "Celebrates pure tactile play with oversized rounded cards, thick ink-bordered sticker badges, bouncy hover physics, and an interactive playmat where visitors stamp stickers directly onto the page.",
  "theme": "light",
  "mobileStrength": "native-first",
  "tags": [
    "sticker-collage",
    "toybox-playful",
    "candy-palette",
    "bouncy-cards",
    "scandinavian-play",
    "interactive-toy"
  ],
  "bestFor": [
    "Kids' games & creative toy studios",
    "Playful consumer apps & avatar builders",
    "Sticker packs & merch drops",
    "Cheerful community event microsites"
  ],
  "palette": [
    {
      "role": "canvas",
      "hex": "#FFFDF5",
      "name": "Marshmallow Cream"
    },
    {
      "role": "surface",
      "hex": "#FFE9F3",
      "name": "Bubblegum Blush"
    },
    {
      "role": "ink",
      "hex": "#1E1633",
      "name": "Plum Ink"
    },
    {
      "role": "accent",
      "hex": "#FF3B8B",
      "name": "Candy Pop Pink"
    },
    {
      "role": "muted",
      "hex": "#6B5E85",
      "name": "Soft Grape"
    }
  ],
  "typography": {
    "display": "Bricolage Grotesque, sans-serif",
    "body": "Nunito, -apple-system, sans-serif",
    "mono": "Space Mono, ui-monospace, monospace",
    "googleFontsUrl": "https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@700;800&family=Nunito:wght@500;700;800&family=Space+Mono:wght@700&display=swap",
    "scaleNotes": "Bouncy high-personality Bricolage Grotesque headings (36–58px) with thick 16px Nunito labels and chunky uppercase sticker badges."
  },
  "layoutNotes": "Chunky 24px-radius cards framed with 3px plum ink outlines and crisp offset shadows, surrounding a live interactive sticker-stamp playmat and character customizer.",
  "interactionNotes": "Pick from 5 candy SVG stickers (star, rainbow, cat, crown, pizza) and tap/click anywhere on the playmat to stamp rotated stickers; live toybox character accessory toggles.",
  "mobileNotes": "Oversized >=48px tactile sticker buttons and bouncy cards fit comfortably at 390px with zero overflow and immediate tap feedback.",
  "agentGuardrails": {
    "do": [
      "Use thick 2.5–3px plum-ink outlines with crisp solid offset shadows (0 6px 0 #1E1633) for tactile toybox depth.",
      "Give interactive buttons a satisfying press-down translateY transition on active state.",
      "Keep color blocks joyful and high-contrast while anchoring text in dark plum ink."
    ],
    "dont": [
      "Do not use thin corporate 1px gray borders or muted monochrome minimalism.",
      "Do not create tiny fiddly hit targets—every toy control should feel chunky and pressable."
    ]
  },
  "demoFile": "demos/tocaboca-candy-stickers.html",
  "thumbDesktop": "thumbs/tocaboca-candy-stickers-desktop.webp",
  "thumbMobile": "thumbs/tocaboca-candy-stickers-mobile.webp",
  "urls": {
    "page": "https://templates.michaelpitts.net/t/tocaboca-candy-stickers",
    "markdown": "https://templates.michaelpitts.net/t/tocaboca-candy-stickers.md",
    "api": "https://templates.michaelpitts.net/api/templates/tocaboca-candy-stickers",
    "demo": "https://templates.michaelpitts.net/demos/tocaboca-candy-stickers.html",
    "thumbDesktop": "https://templates.michaelpitts.net/thumbs/tocaboca-candy-stickers-desktop.webp",
    "thumbMobile": "https://templates.michaelpitts.net/thumbs/tocaboca-candy-stickers-mobile.webp"
  },
  "agentPrompt": "Design & build using template #092 \"Toca Boca Candy Stickers\" (style / Playful & Hand-Drawn, light theme).\nFull AI blueprint & standalone starter code: https://templates.michaelpitts.net/t/tocaboca-candy-stickers.md\nLive demo: https://templates.michaelpitts.net/demos/tocaboca-candy-stickers.html\nReal-world inspiration: Toca Boca (https://www.tocaboca.com/)\n\nCore aesthetic: Celebrates pure tactile play with oversized rounded cards, thick ink-bordered sticker badges, bouncy hover physics, and an interactive playmat where visitors stamp stickers directly onto the page.\nPalette: canvas: #FFFDF5 (Marshmallow Cream), surface: #FFE9F3 (Bubblegum Blush), ink: #1E1633 (Plum Ink), accent: #FF3B8B (Candy Pop Pink), muted: #6B5E85 (Soft Grape)\nTypography: Display=\"Bricolage Grotesque, sans-serif\", Body=\"Nunito, -apple-system, sans-serif\", Mono=\"Space Mono, ui-monospace, monospace\"\nLayout: Chunky 24px-radius cards framed with 3px plum ink outlines and crisp offset shadows, surrounding a live interactive sticker-stamp playmat and character customizer.\nInteractions: Pick from 5 candy SVG stickers (star, rainbow, cat, crown, pizza) and tap/click anywhere on the playmat to stamp rotated stickers; live toybox character accessory toggles.\nMobile: Oversized >=48px tactile sticker buttons and bouncy cards fit comfortably at 390px with zero overflow and immediate tap feedback.\n\nGuardrails:\n- DO: Use thick 2.5–3px plum-ink outlines with crisp solid offset shadows (0 6px 0 #1E1633) for tactile toybox depth.\n- DO: Give interactive buttons a satisfying press-down translateY transition on active state.\n- DO: Keep color blocks joyful and high-contrast while anchoring text in dark plum ink.\n- DON'T: Do not use thin corporate 1px gray borders or muted monochrome minimalism.\n- DON'T: Do not create tiny fiddly hit targets—every toy control should feel chunky and pressable.",
  "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <title>KandiBox — Playful Sticker Playmat &amp; Toybox World</title>\n  <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n  <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n  <link href=\"https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@700;800&family=Nunito:wght@600;800&family=Space+Mono:wght@700&display=swap\" rel=\"stylesheet\">\n  <style>\n    :root {\n      --bg: #FFFDF5;\n      --surface: #FFE9F3;\n      --ink: #1E1633;\n      --accent: #FF3B8B;\n      --muted: #6B5E85;\n      --lemon: #FFE14D;\n      --mint: #4BE3B0;\n      --sky: #59C8FF;\n      --tangerine: #FF8C42;\n      --border: 3.5px solid #1E1633;\n      --shadow-chunky: 0 6px 0 #1E1633;\n    }\n\n    *, *::before, *::after {\n      box-sizing: border-box;\n    }\n\n    html, body {\n      margin: 0;\n      padding: 0;\n      background-color: var(--bg);\n      color: var(--ink);\n      font-family: 'Nunito', system-ui, -apple-system, sans-serif;\n      line-height: 1.5;\n      overflow-x: hidden;\n    }\n\n    body {\n      background-image:\n        radial-gradient(circle at 12% 14%, rgba(255, 225, 77, 0.32) 0 42px, transparent 43px),\n        radial-gradient(circle at 90% 20%, rgba(89, 200, 255, 0.25) 0 58px, transparent 59px),\n        radial-gradient(circle at 84% 78%, rgba(75, 227, 176, 0.24) 0 48px, transparent 49px);\n      background-repeat: no-repeat;\n    }\n\n    h1, h2, h3, .toy-head {\n      font-family: 'Bricolage Grotesque', system-ui, sans-serif;\n      margin: 0;\n      line-height: 1.06;\n    }\n\n    .mono {\n      font-family: 'Space Mono', ui-monospace, monospace;\n    }\n\n    a {\n      color: inherit;\n      text-decoration: none;\n    }\n\n    button {\n      font-family: inherit;\n      cursor: pointer;\n      color: inherit;\n      border: none;\n      background: transparent;\n    }\n\n    .container {\n      width: 100%;\n      max-width: 1120px;\n      margin: 0 auto;\n      padding: 0 20px;\n    }\n\n    /* Chunky Bouncy Buttons */\n    .toy-btn {\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      gap: 8px;\n      min-height: 46px;\n      min-width: 46px;\n      padding: 10px 20px;\n      border: var(--border);\n      border-radius: 999px;\n      background: var(--lemon);\n      font-weight: 800;\n      font-size: 0.96rem;\n      box-shadow: 0 5px 0 var(--ink);\n      transition: transform 0.12s ease, box-shadow 0.12s ease;\n    }\n\n    .toy-btn:hover {\n      transform: translateY(-2px);\n      box-shadow: 0 7px 0 var(--ink);\n    }\n\n    .toy-btn:active {\n      transform: translateY(3px);\n      box-shadow: 0 2px 0 var(--ink);\n    }\n\n    .toy-btn.pink {\n      background: var(--accent);\n      color: #FFF;\n    }\n\n    .toy-btn.mint {\n      background: var(--mint);\n    }\n\n    .toy-btn.white {\n      background: #FFF;\n    }\n\n    /* Header */\n    header {\n      position: sticky;\n      top: 0;\n      z-index: 60;\n      background: rgba(255, 253, 245, 0.94);\n      backdrop-filter: blur(8px);\n      border-bottom: 3px solid var(--ink);\n    }\n\n    .nav-bar {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      min-height: 74px;\n      gap: 16px;\n    }\n\n    .brand {\n      display: inline-flex;\n      align-items: center;\n      gap: 10px;\n      font-family: 'Bricolage Grotesque', sans-serif;\n      font-size: 1.6rem;\n      font-weight: 800;\n    }\n\n    .brand-pill {\n      width: 40px;\n      height: 40px;\n      border-radius: 14px;\n      background: var(--accent);\n      border: 3px solid var(--ink);\n      display: inline-flex;\n      align-items: center;\n      justify-content: center;\n      box-shadow: 0 3px 0 var(--ink);\n      transform: rotate(-6deg);\n    }\n\n    .nav-links {\n      display: flex;\n      align-items: center;\n      gap: 18px;\n    }\n\n    .nav-links a {\n      font-weight: 800;\n      min-height: 44px;\n      display: inline-flex;\n      align-items: center;\n      padding: 6px 12px;\n      border-radius: 999px;\n      transition: background 0.15s;\n    }\n\n    .nav-links a:hover {\n      background: var(--surface);\n    }\n\n    .menu-toggle {\n      display: none;\n      width: 46px;\n      height: 46px;\n      border: var(--border);\n      border-radius: 14px;\n      background: var(--lemon);\n      box-shadow: 0 3px 0 var(--ink);\n      align-items: center;\n      justify-content: center;\n    }\n\n    .mobile-nav {\n      display: none;\n      flex-direction: column;\n      gap: 10px;\n      padding: 14px 20px 20px;\n      background: var(--surface);\n      border-top: 3px solid var(--ink);\n    }\n\n    .mobile-nav.open {\n      display: flex;\n    }\n\n    .mobile-nav a {\n      min-height: 44px;\n      display: flex;\n      align-items: center;\n      padding: 10px 14px;\n      border: 3px solid var(--ink);\n      border-radius: 16px;\n      background: #FFF;\n      font-weight: 800;\n    }\n\n    /* Hero */\n    .hero {\n      padding: 40px 0 34px;\n      text-align: center;\n    }\n\n    .sticker-kicker {\n      display: inline-flex;\n      align-items: center;\n      gap: 8px;\n      background: var(--mint);\n      border: 3px solid var(--ink);\n      border-radius: 999px;\n      padding: 6px 16px;\n      font-weight: 800;\n      font-size: 0.88rem;\n      box-shadow: 0 4px 0 var(--ink);\n      transform: rotate(-2deg);\n      margin-bottom: 18px;\n    }\n\n    .hero h1 {\n      font-size: clamp(2.5rem, 6vw, 4.4rem);\n      max-width: 15ch;\n      margin: 0 auto 14px;\n    }\n\n    .pink-pop {\n      color: var(--accent);\n    }\n\n    .hero p {\n      color: var(--muted);\n      font-size: 1.12rem;\n      max-width: 50ch;\n      margin: 0 auto 24px;\n    }\n\n    /* Interactive Sticker Stamp Playmat */\n    .section {\n      padding: 36px 0;\n    }\n\n    .toybox-card {\n      background: var(--surface);\n      border: var(--border);\n      border-radius: 34px;\n      padding: 24px;\n      box-shadow: 0 10px 0 var(--ink);\n    }\n\n    .card-top {\n      display: flex;\n      flex-wrap: wrap;\n      align-items: center;\n      justify-content: space-between;\n      gap: 14px;\n      margin-bottom: 18px;\n    }\n\n    .sticker-tray {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 10px;\n      margin-bottom: 16px;\n    }\n\n    .sticker-pick {\n      min-height: 52px;\n      min-width: 52px;\n      padding: 8px 14px;\n      border: 3px solid var(--ink);\n      border-radius: 20px;\n      background: #FFF;\n      display: inline-flex;\n      align-items: center;\n      gap: 8px;\n      font-weight: 800;\n      box-shadow: 0 4px 0 var(--ink);\n      transition: transform 0.12s, background 0.12s;\n    }\n\n    .sticker-pick.active {\n      background: var(--lemon);\n      transform: translateY(-2px) rotate(-2deg);\n    }\n\n    .playmat {\n      position: relative;\n      height: 340px;\n      border-radius: 26px;\n      border: var(--border);\n      background-color: #FFFDF5;\n      background-image:\n        radial-gradient(rgba(255, 59, 139, 0.16) 2px, transparent 2px);\n      background-size: 26px 26px;\n      overflow: hidden;\n      cursor: copy;\n      user-select: none;\n    }\n\n    .playmat-hint {\n      position: absolute;\n      inset: 0;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      pointer-events: none;\n      font-family: 'Bricolage Grotesque', sans-serif;\n      font-size: 1.4rem;\n      color: rgba(107, 94, 133, 0.45);\n      text-align: center;\n      padding: 20px;\n    }\n\n    .stamped-item {\n      position: absolute;\n      transform: translate(-50%, -50%) scale(0.4);\n      pointer-events: none;\n      animation: popIn 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;\n      filter: drop-shadow(0 4px 0 rgba(30, 22, 51, 0.25));\n    }\n\n    @keyframes popIn {\n      to {\n        transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg));\n      }\n    }\n\n    .mat-actions {\n      display: flex;\n      flex-wrap: wrap;\n      justify-content: space-between;\n      align-items: center;\n      gap: 12px;\n      margin-top: 16px;\n    }\n\n    /* World-Builder Character Customizer */\n    .builder-grid {\n      display: grid;\n      grid-template-columns: 0.95fr 1.05fr;\n      gap: 28px;\n      align-items: center;\n    }\n\n    .doll-stage {\n      background: var(--sky);\n      border: var(--border);\n      border-radius: 30px;\n      padding: 28px;\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      justify-content: center;\n      box-shadow: 0 8px 0 var(--ink);\n      min-height: 310px;\n    }\n\n    .customizer-controls {\n      background: #FFF;\n      border: var(--border);\n      border-radius: 30px;\n      padding: 26px;\n      box-shadow: 0 8px 0 var(--ink);\n      display: flex;\n      flex-direction: column;\n      gap: 18px;\n    }\n\n    .control-group label {\n      display: block;\n      font-family: 'Space Mono', monospace;\n      font-size: 0.78rem;\n      color: var(--muted);\n      margin-bottom: 8px;\n    }\n\n    .choice-row {\n      display: flex;\n      flex-wrap: wrap;\n      gap: 8px;\n    }\n\n    .choice-chip {\n      min-height: 44px;\n      padding: 8px 14px;\n      border: 3px solid var(--ink);\n      border-radius: 16px;\n      background: var(--bg);\n      font-weight: 800;\n      font-size: 0.9rem;\n    }\n\n    .choice-chip.active {\n      background: var(--accent);\n      color: #FFF;\n    }\n\n    footer {\n      margin-top: 48px;\n      background: var(--ink);\n      color: var(--bg);\n      padding: 36px 0 44px;\n      border-top: 5px solid var(--accent);\n    }\n\n    .footer-flex {\n      display: flex;\n      flex-wrap: wrap;\n      align-items: center;\n      justify-content: space-between;\n      gap: 16px;\n    }\n\n    @media (max-width: 820px) {\n      .builder-grid {\n        grid-template-columns: 1fr;\n      }\n      .nav-links, .nav-cta {\n        display: none;\n      }\n      .menu-toggle {\n        display: inline-flex;\n      }\n      .playmat {\n        height: 280px;\n      }\n    }\n  </style>\n</head>\n<body>\n  <header>\n    <div class=\"container nav-bar\">\n      <a href=\"#top\" class=\"brand\">\n        <span class=\"brand-pill\" aria-hidden=\"true\">\n          <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"2.2\">\n            <polygon points=\"12,2 15,9 22,9.5 16.5,14 18.2,21 12,17.2 5.8,21 7.5,14 2,9.5 9,9\"/>\n          </svg>\n        </span>\n        <span>KandiBox</span>\n      </a>\n\n      <nav class=\"nav-links\" aria-label=\"Main\">\n        <a href=\"#playmat-zone\">Sticker Playmat</a>\n        <a href=\"#builder-zone\">Character Toybox</a>\n      </nav>\n\n      <div class=\"nav-cta\">\n        <a href=\"#playmat-zone\" class=\"toy-btn pink\">Stamp Stickers!</a>\n      </div>\n\n      <button class=\"menu-toggle\" id=\"menuToggle\" aria-expanded=\"false\" aria-controls=\"mobileNav\" aria-label=\"Open menu\">\n        <svg width=\"22\" height=\"22\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#1E1633\" stroke-width=\"3\" stroke-linecap=\"round\">\n          <path d=\"M4 7h16M4 12h16M4 17h16\"/>\n        </svg>\n      </button>\n    </div>\n\n    <div class=\"mobile-nav\" id=\"mobileNav\">\n      <a href=\"#playmat-zone\">Sticker Playmat</a>\n      <a href=\"#builder-zone\">Character Toybox</a>\n    </div>\n  </header>\n\n  <main id=\"top\">\n    <section class=\"hero\">\n      <div class=\"container\">\n        <span class=\"sticker-kicker\">★ No rules, no high scores — just joyful play!</span>\n        <h1>Build a <span class=\"pink-pop\">candy-colored</span> sticker world.</h1>\n        <p>\n          Pick chunky vinyl stickers to stamp all over the playmat, then mix and match silly outfits for your own Scandinavian toybox character.\n        </p>\n      </div>\n    </section>\n\n    <section class=\"section\" id=\"playmat-zone\">\n      <div class=\"container\">\n        <div class=\"toybox-card\">\n          <div class=\"card-top\">\n            <div>\n              <span class=\"mono\" style=\"font-size:0.78rem; color:var(--accent);\">INTERACTIVE PLAYMAT</span>\n              <h2 style=\"font-size:clamp(1.7rem, 4vw, 2.4rem);\">Tap anywhere to stamp a sticker!</h2>\n            </div>\n            <span class=\"mono\" id=\"stickerCount\" style=\"background:#FFF; border:3px solid var(--ink); border-radius:999px; padding:6px 14px; font-size:0.82rem;\">3 STAMPED</span>\n          </div>\n\n          <div class=\"sticker-tray\" role=\"radiogroup\" aria-label=\"Choose a sticker\">\n            <button class=\"sticker-pick active\" data-sticker=\"star\" aria-checked=\"true\">★ Star</button>\n            <button class=\"sticker-pick\" data-sticker=\"rainbow\" aria-checked=\"false\">🌈 Rainbow</button>\n            <button class=\"sticker-pick\" data-sticker=\"cat\" aria-checked=\"false\">🐱 Cat</button>\n            <button class=\"sticker-pick\" data-sticker=\"crown\" aria-checked=\"false\">👑 Crown</button>\n            <button class=\"sticker-pick\" data-sticker=\"pizza\" aria-checked=\"false\">🍕 Pizza</button>\n          </div>\n\n          <div class=\"playmat\" id=\"playmat\" tabindex=\"0\" role=\"application\" aria-label=\"Sticker stamp board. Click or tap to stamp the chosen sticker.\">\n            <div class=\"playmat-hint\" id=\"matHint\">Click or tap anywhere on the mat to stamp!</div>\n          </div>\n\n          <div class=\"mat-actions\">\n            <div style=\"display:flex; flex-wrap:wrap; gap:10px;\">\n              <button class=\"toy-btn mint\" id=\"scatterBtn\">Surprise Scatter</button>\n              <button class=\"toy-btn white\" id=\"undoStickerBtn\">Undo</button>\n            </div>\n            <button class=\"toy-btn pink\" id=\"clearMatBtn\">Clear Playmat</button>\n          </div>\n        </div>\n      </div>\n    </section>\n\n    <section class=\"section\" id=\"builder-zone\">\n      <div class=\"container\">\n        <div style=\"margin-bottom:22px;\">\n          <span class=\"mono\" style=\"font-size:0.78rem; color:var(--accent);\">WORLD-BUILDER TOYBOX</span>\n          <h2 style=\"font-size:clamp(1.8rem, 4vw, 2.6rem);\">Mix &amp; Match Your Buddy</h2>\n        </div>\n\n        <div class=\"builder-grid\">\n          <div class=\"doll-stage\">\n            <svg id=\"buddySvg\" width=\"220\" height=\"230\" viewBox=\"0 0 220 230\" fill=\"none\" role=\"img\" aria-label=\"Customizable toybox character\">\n              <!-- Shadow -->\n              <ellipse cx=\"110\" cy=\"214\" rx=\"54\" ry=\"10\" fill=\"rgba(30,22,51,0.18)\"/>\n              <!-- Shirt / Body -->\n              <rect id=\"buddyShirt\" x=\"62\" y=\"132\" width=\"96\" height=\"72\" rx=\"34\" fill=\"#FF3B8B\" stroke=\"#1E1633\" stroke-width=\"5\"/>\n              <!-- Shirt Stripe -->\n              <rect x=\"65\" y=\"162\" width=\"90\" height=\"14\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"3\"/>\n              <!-- Arms -->\n              <circle cx=\"52\" cy=\"166\" r=\"14\" fill=\"#FFD6BA\" stroke=\"#1E1633\" stroke-width=\"4.5\"/>\n              <circle cx=\"168\" cy=\"166\" r=\"14\" fill=\"#FFD6BA\" stroke=\"#1E1633\" stroke-width=\"4.5\"/>\n              <!-- Head -->\n              <circle cx=\"110\" cy=\"96\" r=\"46\" fill=\"#FFD6BA\" stroke=\"#1E1633\" stroke-width=\"5\"/>\n              <!-- Rosy Cheeks -->\n              <circle cx=\"80\" cy=\"106\" r=\"7\" fill=\"#FF85B3\" opacity=\"0.7\"/>\n              <circle cx=\"140\" cy=\"106\" r=\"7\" fill=\"#FF85B3\" opacity=\"0.7\"/>\n              <!-- Eyes -->\n              <circle cx=\"93\" cy=\"94\" r=\"5\" fill=\"#1E1633\"/>\n              <circle cx=\"127\" cy=\"94\" r=\"5\" fill=\"#1E1633\"/>\n              <!-- Smile -->\n              <path d=\"M97 110c6 8 20 8 26 0\" stroke=\"#1E1633\" stroke-width=\"4.5\" stroke-linecap=\"round\"/>\n              <!-- Dynamic Hat / Hair Layer -->\n              <g id=\"buddyHat\"></g>\n              <!-- Dynamic Glasses Layer -->\n              <g id=\"buddyGlasses\"></g>\n            </svg>\n            <strong id=\"buddyName\" class=\"toy-head\" style=\"font-size:1.35rem; margin-top:8px; background:#FFF; border:3px solid var(--ink); border-radius:999px; padding:4px 16px;\">Momo the Star Baker</strong>\n          </div>\n\n          <div class=\"customizer-controls\">\n            <div class=\"control-group\">\n              <label>1. PICK A HAT OR HAIR</label>\n              <div class=\"choice-row\" data-part=\"hat\">\n                <button class=\"choice-chip active\" data-val=\"beanie\">Mint Beanie</button>\n                <button class=\"choice-chip\" data-val=\"crown\">Gold Crown</button>\n                <button class=\"choice-chip\" data-val=\"puffs\">Space Puffs</button>\n              </div>\n            </div>\n\n            <div class=\"control-group\">\n              <label>2. SWEATER COLOR</label>\n              <div class=\"choice-row\" data-part=\"shirt\">\n                <button class=\"choice-chip active\" data-val=\"#FF3B8B\">Candy Pink</button>\n                <button class=\"choice-chip\" data-val=\"#4BE3B0\">Mint Fizz</button>\n                <button class=\"choice-chip\" data-val=\"#FF8C42\">Tangerine</button>\n                <button class=\"choice-chip\" data-val=\"#9B72FF\">Grape Pop</button>\n              </div>\n            </div>\n\n            <div class=\"control-group\">\n              <label>3. FUNNY GLASSES</label>\n              <div class=\"choice-row\" data-part=\"glasses\">\n                <button class=\"choice-chip active\" data-val=\"none\">No Glasses</button>\n                <button class=\"choice-chip\" data-val=\"round\">Round Specs</button>\n                <button class=\"choice-chip\" data-val=\"shades\">Star Shades</button>\n              </div>\n            </div>\n\n            <button class=\"toy-btn\" id=\"randomBuddyBtn\">🎲 Randomize Buddy</button>\n          </div>\n        </div>\n      </div>\n    </section>\n  </main>\n\n  <footer>\n    <div class=\"container footer-flex\">\n      <div>\n        <strong class=\"toy-head\" style=\"font-size:1.5rem;\">KandiBox Studio</strong>\n        <div style=\"color:#C9BFE0; font-size:0.92rem;\">Stockholm-inspired digital toybox &bull; Made for playful curiosity</div>\n      </div>\n      <div class=\"mono\" style=\"font-size:0.78rem; color:var(--lemon);\">ZERO ADS &bull; INFINITE STICKERS</div>\n    </div>\n  </footer>\n\n  <script>\n    // Mobile Nav\n    const menuToggle = document.getElementById('menuToggle');\n    const mobileNav = document.getElementById('mobileNav');\n    menuToggle.addEventListener('click', () => {\n      const open = mobileNav.classList.toggle('open');\n      menuToggle.setAttribute('aria-expanded', String(open));\n    });\n    mobileNav.querySelectorAll('a').forEach(a => {\n      a.addEventListener('click', () => {\n        mobileNav.classList.remove('open');\n        menuToggle.setAttribute('aria-expanded', 'false');\n      });\n    });\n\n    // Sticker SVG Catalog\n    const stickerSVGs = {\n      star: `<svg width=\"68\" height=\"68\" viewBox=\"0 0 72 72\" fill=\"none\"><polygon points=\"36,6 45,25 66,27 50,41 54,62 36,52 18,62 22,41 6,27 27,25\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"4\" stroke-linejoin=\"round\"/><circle cx=\"30\" cy=\"34\" r=\"3\" fill=\"#1E1633\"/><circle cx=\"42\" cy=\"34\" r=\"3\" fill=\"#1E1633\"/><path d=\"M32 41c2 3 6 3 8 0\" stroke=\"#1E1633\" stroke-width=\"2.6\" stroke-linecap=\"round\"/></svg>`,\n      rainbow: `<svg width=\"78\" height=\"58\" viewBox=\"0 0 84 62\" fill=\"none\"><path d=\"M12 48a30 30 0 0160 0\" stroke=\"#FF3B8B\" stroke-width=\"9\" stroke-linecap=\"round\"/><path d=\"M20 48a22 22 0 0144 0\" stroke=\"#FFE14D\" stroke-width=\"8\" stroke-linecap=\"round\"/><path d=\"M28 48a14 14 0 0128 0\" stroke=\"#59C8FF\" stroke-width=\"8\" stroke-linecap=\"round\"/><circle cx=\"14\" cy=\"48\" r=\"9\" fill=\"#FFF\" stroke=\"#1E1633\" stroke-width=\"3.5\"/><circle cx=\"70\" cy=\"48\" r=\"9\" fill=\"#FFF\" stroke=\"#1E1633\" stroke-width=\"3.5\"/></svg>`,\n      cat: `<svg width=\"68\" height=\"68\" viewBox=\"0 0 72 72\" fill=\"none\"><polygon points=\"16,32 18,12 32,24\" fill=\"#FF8C42\" stroke=\"#1E1633\" stroke-width=\"3.8\" stroke-linejoin=\"round\"/><polygon points=\"56,32 54,12 40,24\" fill=\"#FF8C42\" stroke=\"#1E1633\" stroke-width=\"3.8\" stroke-linejoin=\"round\"/><circle cx=\"36\" cy=\"40\" r=\"22\" fill=\"#FF8C42\" stroke=\"#1E1633\" stroke-width=\"4\"/><circle cx=\"28\" cy=\"38\" r=\"3.2\" fill=\"#1E1633\"/><circle cx=\"44\" cy=\"38\" r=\"3.2\" fill=\"#1E1633\"/><polygon points=\"36,43 32,47 40,47\" fill=\"#FF3B8B\"/></svg>`,\n      crown: `<svg width=\"72\" height=\"58\" viewBox=\"0 0 76 62\" fill=\"none\"><path d=\"M10 48L16 18L30 32L38 12L46 32L60 18L66 48Z\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"4\" stroke-linejoin=\"round\"/><circle cx=\"38\" cy=\"36\" r=\"4.5\" fill=\"#FF3B8B\"/><circle cx=\"23\" cy=\"38\" r=\"3.5\" fill=\"#59C8FF\"/><circle cx=\"53\" cy=\"38\" r=\"3.5\" fill=\"#4BE3B0\"/></svg>`,\n      pizza: `<svg width=\"68\" height=\"68\" viewBox=\"0 0 72 72\" fill=\"none\"><path d=\"M14 20Q36 8 58 20L36 62Z\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"4\" stroke-linejoin=\"round\"/><path d=\"M12 20Q36 6 60 20\" stroke=\"#FF8C42\" stroke-width=\"9\" stroke-linecap=\"round\"/><circle cx=\"32\" cy=\"32\" r=\"5\" fill=\"#FF3B8B\" stroke=\"#1E1633\" stroke-width=\"2.5\"/><circle cx=\"44\" cy=\"35\" r=\"4.5\" fill=\"#FF3B8B\" stroke=\"#1E1633\" stroke-width=\"2.5\"/><circle cx=\"36\" cy=\"47\" r=\"4.5\" fill=\"#FF3B8B\" stroke=\"#1E1633\" stroke-width=\"2.5\"/></svg>`\n    };\n\n    let activeSticker = 'star';\n    const playmat = document.getElementById('playmat');\n    const matHint = document.getElementById('matHint');\n    const stickerCount = document.getElementById('stickerCount');\n    const stampedNodes = [];\n\n    function updateCount() {\n      stickerCount.textContent = `${stampedNodes.length} STAMPED`;\n      matHint.style.opacity = stampedNodes.length > 0 ? '0' : '1';\n    }\n\n    function stampAt(xPct, yPct, type) {\n      const el = document.createElement('div');\n      el.className = 'stamped-item';\n      const rot = (Math.random() * 28 - 14).toFixed(1);\n      el.style.left = `${xPct}%`;\n      el.style.top = `${yPct}%`;\n      el.style.setProperty('--rot', `${rot}deg`);\n      el.innerHTML = stickerSVGs[type];\n      playmat.appendChild(el);\n      stampedNodes.push(el);\n      updateCount();\n    }\n\n    playmat.addEventListener('click', (e) => {\n      const rect = playmat.getBoundingClientRect();\n      const xPct = ((e.clientX - rect.left) / rect.width) * 100;\n      const yPct = ((e.clientY - rect.top) / rect.height) * 100;\n      stampAt(xPct, yPct, activeSticker);\n    });\n\n    document.querySelectorAll('.sticker-pick').forEach(btn => {\n      btn.addEventListener('click', () => {\n        activeSticker = btn.dataset.sticker;\n        document.querySelectorAll('.sticker-pick').forEach(b => {\n          const active = b === btn;\n          b.classList.toggle('active', active);\n          b.setAttribute('aria-checked', String(active));\n        });\n      });\n    });\n\n    document.getElementById('undoStickerBtn').addEventListener('click', () => {\n      const last = stampedNodes.pop();\n      if (last) last.remove();\n      updateCount();\n    });\n\n    document.getElementById('clearMatBtn').addEventListener('click', () => {\n      while (stampedNodes.length) stampedNodes.pop().remove();\n      updateCount();\n    });\n\n    document.getElementById('scatterBtn').addEventListener('click', () => {\n      const keys = Object.keys(stickerSVGs);\n      for (let i = 0; i < 4; i++) {\n        const key = keys[Math.floor(Math.random() * keys.length)];\n        stampAt(14 + Math.random() * 72, 18 + Math.random() * 64, key);\n      }\n    });\n\n    // Seed 3 starter stickers\n    stampAt(24, 48, 'rainbow');\n    stampAt(52, 42, 'cat');\n    stampAt(78, 56, 'star');\n\n    // Character Toybox Customizer\n    const hatSVGs = {\n      beanie: '<path d=\"M64 82c0-28 20-44 46-44s46 16 46 44Z\" fill=\"#4BE3B0\" stroke=\"#1E1633\" stroke-width=\"5\"/><rect x=\"58\" y=\"72\" width=\"104\" height=\"16\" rx=\"8\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"4.5\"/><circle cx=\"110\" cy=\"32\" r=\"10\" fill=\"#FF3B8B\" stroke=\"#1E1633\" stroke-width=\"4\"/>',\n      crown: '<path d=\"M74 62L80 28L98 44L110 22L122 44L140 28L146 62Z\" fill=\"#FFE14D\" stroke=\"#1E1633\" stroke-width=\"4.5\" stroke-linejoin=\"round\"/>',\n      puffs: '<circle cx=\"66\" cy=\"54\" r=\"22\" fill=\"#1E1633\"/><circle cx=\"154\" cy=\"54\" r=\"22\" fill=\"#1E1633\"/><path d=\"M68 78c8-24 76-24 84 0\" fill=\"#1E1633\"/>'\n    };\n\n    const glassesSVGs = {\n      none: '',\n      round: '<circle cx=\"93\" cy=\"94\" r=\"14\" fill=\"rgba(255,255,255,0.45)\" stroke=\"#1E1633\" stroke-width=\"4\"/><circle cx=\"127\" cy=\"94\" r=\"14\" fill=\"rgba(255,255,255,0.45)\" stroke=\"#1E1633\" stroke-width=\"4\"/><line x1=\"107\" y1=\"94\" x2=\"113\" y2=\"94\" stroke=\"#1E1633\" stroke-width=\"4\"/>',\n      shades: '<rect x=\"75\" y=\"83\" width=\"32\" height=\"22\" rx=\"8\" fill=\"#1E1633\"/><rect x=\"113\" y=\"83\" width=\"32\" height=\"22\" rx=\"8\" fill=\"#1E1633\"/><line x1=\"107\" y1=\"92\" x2=\"113\" y2=\"92\" stroke=\"#1E1633\" stroke-width=\"4\"/><circle cx=\"91\" cy=\"94\" r=\"4\" fill=\"#FFE14D\"/><circle cx=\"129\" cy=\"94\" r=\"4\" fill=\"#FFE14D\"/>'\n    };\n\n    const buddyNames = ['Momo the Star Baker', 'Pippa the Cloud Skater', 'Bobo the Pizza Captain', 'Lulu the Sticker Mayor'];\n    const buddyState = { hat: 'beanie', shirt: '#FF3B8B', glasses: 'none' };\n\n    const buddyHat = document.getElementById('buddyHat');\n    const buddyShirt = document.getElementById('buddyShirt');\n    const buddyGlasses = document.getElementById('buddyGlasses');\n    const buddyName = document.getElementById('buddyName');\n\n    function renderBuddy() {\n      buddyHat.innerHTML = hatSVGs[buddyState.hat];\n      buddyShirt.setAttribute('fill', buddyState.shirt);\n      buddyGlasses.innerHTML = glassesSVGs[buddyState.glasses];\n    }\n\n    document.querySelectorAll('.choice-row').forEach(row => {\n      const part = row.dataset.part;\n      row.querySelectorAll('.choice-chip').forEach(chip => {\n        chip.addEventListener('click', () => {\n          buddyState[part] = chip.dataset.val;\n          row.querySelectorAll('.choice-chip').forEach(c => c.classList.toggle('active', c === chip));\n          renderBuddy();\n        });\n      });\n    });\n\n    document.getElementById('randomBuddyBtn').addEventListener('click', () => {\n      document.querySelectorAll('.choice-row').forEach(row => {\n        const chips = Array.from(row.querySelectorAll('.choice-chip'));\n        const pick = chips[Math.floor(Math.random() * chips.length)];\n        pick.click();\n      });\n      buddyName.textContent = buddyNames[Math.floor(Math.random() * buddyNames.length)];\n    });\n\n    renderBuddy();\n  </script>\n</body>\n</html>\n"
}
