:root {
  --bg: #fffaf2;
  --ink: #23213a;
  --muted: #6b6880;
  --brand: #6c4cf5;
  --brand-ink: #ffffff;
  --pop: #ff7a59;
  --sun: #ffd23f;
  --mint: #38c6a6;
  --card: #ffffff;
  --line: #e9e4f5;
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .logo { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.15; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-swirl { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(var(--brand), var(--pop), var(--sun), var(--mint), var(--brand)); }
nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 14px; border-radius: 999px; }
nav a:hover, nav a[aria-current="page"] { background: #f1ecff; color: var(--brand); }
.cart-btn { border: 0; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 800; padding: 8px 16px; border-radius: 999px; cursor: pointer; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.btn.secondary { background: var(--card); color: var(--brand); border: 2px solid var(--brand); }
.btn:disabled { opacity: .6; cursor: wait; }

/* image placeholder */
.ph {
  border: 3px dashed #c9bdf5;
  background: repeating-linear-gradient(45deg, #f6f2ff, #f6f2ff 14px, #fdfbff 14px, #fdfbff 28px);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #8a7bc4; font-weight: 800; padding: 16px; min-height: 180px;
}
.ph small { display: block; font-weight: 600; opacity: .8; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 12px; }
.hero h1 span { color: var(--pop); }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.hero .ph { min-height: 320px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 40px 0; }
section h2 { font-size: 2rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .dot { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 1.25rem; }
.feature p { margin: 0; color: var(--muted); }

.band { background: #f1ecff; border-radius: 28px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }

/* shop */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.card .ph, .card img { aspect-ratio: 1 / 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 14px; }
.card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.price { font-weight: 800; font-size: 1.1rem; }
.price s { color: var(--muted); font-weight: 600; margin-left: 6px; }
.ribbon { position: absolute; top: 22px; left: 22px; background: var(--pop); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.card .btn { margin-top: auto; text-align: center; }
.status { color: var(--muted); padding: 24px 0; }
.error { color: #b3261e; }

/* cart drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(35,33,58,.4); display: none; z-index: 20; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 100%); background: var(--card); z-index: 21; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-bg.open { display: block; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 1.4rem; }
.drawer .close { border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.lines { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.qty { display: flex; gap: 6px; align-items: center; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #f6f2ff; cursor: pointer; font-weight: 800; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.drawer footer { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.totals { display: flex; justify-content: space-between; font-weight: 800; }
.note { font-size: .85rem; color: var(--muted); margin: 0; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.about .ph { min-height: 360px; }
.about h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 12px; }

.site-footer { padding: 32px 0; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; font-size: .95rem; }

@media (max-width: 760px) {
  .hero .wrap, .band, .about { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero .ph { min-height: 220px; }
}

/* ===== Theme v2: neon home, yellow and gold pages ===== */
:root {
  --ink: #ffffff;
  --muted: #d7d0f0;
  --pop: #00e5ff;
  --brand: #9b5cff;
  --neon: #39ff14;
  --gold: #ffbf00;
  --card: #1a1230;
  --line: #3a2a63;
}
body.home {
  background:
    radial-gradient(circle at 12% 18%, rgba(155, 92, 255, .45), transparent 32%),
    radial-gradient(circle at 88% 30%, rgba(57, 255, 20, .28), transparent 28%),
    radial-gradient(circle at 30% 85%, rgba(57, 255, 20, .18), transparent 30%),
    radial-gradient(circle at 80% 90%, rgba(155, 92, 255, .35), transparent 30%),
    #07060c;
  background-attachment: fixed;
}
body.sun {
  background:
    radial-gradient(circle at 10% 15%, rgba(212, 160, 23, .75) 0 6%, transparent 14%),
    radial-gradient(circle at 85% 12%, rgba(255, 191, 0, .9) 0 4%, transparent 11%),
    radial-gradient(circle at 70% 60%, rgba(201, 146, 10, .6) 0 7%, transparent 16%),
    radial-gradient(circle at 20% 75%, rgba(255, 215, 90, .9) 0 5%, transparent 12%),
    radial-gradient(circle at 50% 95%, rgba(212, 160, 23, .7) 0 6%, transparent 15%),
    #ffe14d;
  background-attachment: fixed;
}
.site-header { background: rgba(10, 8, 18, .92); border-bottom: 2px solid var(--brand); backdrop-filter: blur(6px); }
.logo { color: #fff; }
.logo-swirl { background: conic-gradient(var(--brand), var(--pop), var(--neon), var(--gold), var(--brand)); animation: spin 6s linear infinite; }
nav a { color: #fff; }
nav a:hover, nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.cart-btn { background: var(--pop); color: #07060c; box-shadow: 0 0 14px rgba(0, 229, 255, .6); }

.btn { background: var(--brand); color: #fff; box-shadow: 0 0 18px rgba(155, 92, 255, .55); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 26px rgba(57, 255, 20, .6); }
.btn.secondary { background: transparent; color: var(--neon); border: 2px solid var(--neon); box-shadow: 0 0 14px rgba(57, 255, 20, .35); }

.ph { border: 3px dashed var(--neon); background: rgba(155, 92, 255, .14); color: #fff; }
body.sun .ph { border-color: #7a4dff; background: rgba(26, 18, 48, .85); }

.hero h1 { color: #fff; }
.hero h1 span { color: var(--pop); text-shadow: 0 0 18px rgba(0, 229, 255, .8); }
.hero p, .lead { color: var(--muted); }
body.home section h2 { color: #fff; }
body.home section h2::after { content: ""; display: block; width: 70px; height: 5px; border-radius: 5px; margin-top: 8px; background: linear-gradient(90deg, var(--brand), var(--neon)); }
.feature { background: rgba(26, 18, 48, .85); border: 2px solid var(--line); }
.feature:hover { border-color: var(--neon); box-shadow: 0 0 20px rgba(57, 255, 20, .35); }
.feature p { color: var(--muted); }
.band { background: rgba(155, 92, 255, .18); border: 2px solid var(--brand); }

/* yellow pages: white headings with an outline, dark panels behind body text */
body.sun h1 { color: #fff; text-shadow: 3px 3px 0 #2a1650, -1px -1px 0 #2a1650, 1px -1px 0 #2a1650, -1px 1px 0 #2a1650, 0 0 20px rgba(255, 191, 0, .8); }
body.sun .lead { color: #2a1650; font-weight: 700; }
body.sun .status { color: #2a1650; font-weight: 700; }
body.sun .about > div:last-child { background: rgba(26, 18, 48, .92); border-radius: 22px; padding: 24px; color: #fff; }
body.sun .about h1 { text-shadow: none; }
body.sun .site-footer { color: #2a1650; border-top-color: rgba(42, 22, 80, .3); font-weight: 700; }

.card { background: var(--card); border: 2px solid var(--line); color: #fff; }
.card:hover { border-color: var(--pop); box-shadow: 0 0 24px rgba(0, 229, 255, .5); animation: buzz .35s linear infinite; }
.ribbon { background: var(--pop); color: #07060c; }
.price s { color: var(--muted); }

.drawer { background: #120c22; color: #fff; }
.drawer .close { color: #fff; }
.qty button { background: var(--brand); color: #fff; border-color: var(--brand); }
.link-btn, .note { color: var(--muted); }
.error { color: #ff6b8a; }

@keyframes buzz {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-2px, 1px) rotate(-1deg); }
  40% { transform: translate(2px, -1px) rotate(1deg); }
  60% { transform: translate(-1px, -2px) rotate(-.5deg); }
  80% { transform: translate(1px, 2px) rotate(.5deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .card:hover, .logo-swirl { animation: none; }
}

/* Theme v2 tweaks: crisper gold splashes, stacked placeholder captions */
body.sun {
  background:
    radial-gradient(circle at 9% 14%, #d4a017 0 3.5%, transparent 3.8%),
    radial-gradient(circle at 13% 20%, #ffbf00 0 1.2%, transparent 1.4%),
    radial-gradient(circle at 86% 11%, #e6a800 0 4.5%, transparent 4.8%),
    radial-gradient(circle at 80% 18%, #c9920a 0 1.5%, transparent 1.7%),
    radial-gradient(circle at 70% 62%, #d4a017 0 5%, transparent 5.3%),
    radial-gradient(circle at 76% 70%, #ffbf00 0 1.8%, transparent 2%),
    radial-gradient(circle at 22% 78%, #e6a800 0 3%, transparent 3.3%),
    radial-gradient(circle at 48% 94%, #c9920a 0 4%, transparent 4.3%),
    radial-gradient(circle at 40% 40%, rgba(255, 191, 0, .35), transparent 40%),
    #ffe14d;
  background-attachment: fixed;
}
.ph { flex-direction: column; gap: 4px; }

/* customizable items */
body.sun .section-title { font-size: 2.2rem; color: #fff; text-shadow: 3px 3px 0 #2a1650, -1px -1px 0 #2a1650, 1px -1px 0 #2a1650, -1px 1px 0 #2a1650, 0 0 20px rgba(255, 191, 0, .8); }
.custom-field { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
.custom-field input { font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--brand); background: #0f0a1c; color: #fff; }
.custom-field input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 12px rgba(57, 255, 20, .5); }
.card:has(input:focus) { animation: none; }

/* Theme v3: purple with silver and neon blue splashes (shop + about) */
body.sun {
  background:
    radial-gradient(circle at 9% 14%, #d9dbe3 0 3.2%, transparent 3.5%),
    radial-gradient(circle at 13% 21%, #1f8bff 0 1.3%, transparent 1.5%),
    radial-gradient(circle at 86% 11%, #00b3ff 0 4.2%, transparent 4.5%),
    radial-gradient(circle at 80% 19%, #c0c2cc 0 1.5%, transparent 1.7%),
    radial-gradient(circle at 70% 62%, #b8bac6 0 4.8%, transparent 5.1%),
    radial-gradient(circle at 76% 71%, #00b3ff 0 1.8%, transparent 2%),
    radial-gradient(circle at 22% 78%, #1f8bff 0 3%, transparent 3.3%),
    radial-gradient(circle at 28% 72%, #e8e9f0 0 1.2%, transparent 1.4%),
    radial-gradient(circle at 48% 94%, #c0c2cc 0 4%, transparent 4.3%),
    radial-gradient(circle at 92% 82%, #00b3ff 0 2.6%, transparent 2.9%),
    radial-gradient(circle at 30% 30%, rgba(0, 179, 255, .25), transparent 40%),
    radial-gradient(circle at 75% 45%, rgba(192, 194, 204, .18), transparent 35%),
    #3b1a6b;
  background-attachment: fixed;
}
body.sun h1, body.sun .section-title { text-shadow: 3px 3px 0 #120826, -1px -1px 0 #120826, 1px -1px 0 #120826, -1px 1px 0 #120826, 0 0 20px rgba(0, 179, 255, .8); }
body.sun .lead, body.sun .status { color: #e3e5f0; }
body.sun .site-footer { color: #e3e5f0; border-top-color: rgba(192, 194, 204, .35); }
body.sun .ph { border-color: #00b3ff; }

/* Theme v4: hand-flicked paint splatters instead of round dots */
body.sun {
  background:
    url("splatter.svg") center / cover no-repeat fixed,
    radial-gradient(circle at 30% 30%, rgba(0, 179, 255, .25), transparent 40%),
    radial-gradient(circle at 75% 45%, rgba(192, 194, 204, .18), transparent 35%),
    #3b1a6b;
}

body.sun .lead, body.sun .status { text-shadow: 0 1px 4px #120826, 0 0 2px #120826; }

/* wet paint drips (shop + about) */
.paint-drips { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
body.sun main, body.sun .site-footer { position: relative; z-index: 1; }
.drip {
  position: absolute; width: var(--w); height: 0; background: var(--c);
  border-radius: 0 0 calc(var(--w) / 2) calc(var(--w) / 2);
  box-shadow: inset calc(var(--w) / -4) 0 0 rgba(0, 0, 0, .12), inset calc(var(--w) / 5) 0 0 rgba(255, 255, 255, .35);
  animation: drip-run var(--flow) cubic-bezier(.25, .7, .3, 1) var(--delay) forwards, paint-dry 4s ease var(--dry) forwards;
}
.drip::after {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--w) * -.55); width: calc(var(--w) * 1.5); height: calc(var(--w) * 1.5);
  transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--c);
}
.drop {
  position: absolute; left: 50%; bottom: calc(var(--w) * -1.2); width: var(--w); height: calc(var(--w) * 1.4);
  transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%; background: var(--c); opacity: 0;
  animation: drop-fall 1.4s cubic-bezier(.5, 0, .9, .6) var(--fall-delay) forwards;
}
@keyframes drip-run { from { height: 0; } to { height: var(--len); } }
@keyframes paint-dry { to { filter: saturate(.55) brightness(.85); opacity: .7; } }
@keyframes drop-fall {
  0% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, var(--fall)); }
}

/* splashes and drips dry together: the splatter moves onto the drip layer */
body.sun.wet {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 179, 255, .25), transparent 40%),
    radial-gradient(circle at 75% 45%, rgba(192, 194, 204, .18), transparent 35%),
    #3b1a6b;
  background-attachment: fixed;
}
body.sun.wet .paint-drips {
  background: url("splatter.svg") center / cover no-repeat;
  animation: paint-dry 4.5s ease var(--dry-at) forwards;
}
.drip { animation: drip-run var(--flow) cubic-bezier(.25, .7, .3, 1) var(--delay) forwards; }
@keyframes paint-dry { to { filter: saturate(.5) brightness(.8); } }

/* realistic drips: an organic run that slides out of the splash, bead first */
.drip { position: absolute; overflow: hidden; background: none; box-shadow: none; border-radius: 0; animation: none; }
.drip::after { content: none; }
.drip svg { display: block; transform: translateY(-100%); animation: drip-slide var(--flow) cubic-bezier(.3, .6, .35, 1) var(--delay) forwards; }
.drip .shine { opacity: 0; animation: shine-off 3s ease calc(var(--delay) + var(--flow)) forwards; }
.drop {
  position: absolute; width: var(--size); height: calc(var(--size) * 1.35); bottom: auto;
  border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; background: var(--c); opacity: 0;
  transform: translate(-50%, 0); animation: drop-fall 1.3s cubic-bezier(.5, 0, .9, .6) var(--fall-delay) forwards;
}
@keyframes drip-slide { to { transform: translateY(0); } }
@keyframes shine-off { 0% { opacity: .9; } 100% { opacity: 0; } }
/* solid panels on the paint pages, so runs behind them don't show through as dark streaks */
body.sun .about > div:last-child { background: #1a1230; }
body.sun .ph { background: #1a1230; }

/* kinetic home section (Dillinger-style moving type) */
.kinetic { padding: 20px 0 50px; overflow: hidden; position: relative; }
.marquee { overflow: hidden; white-space: nowrap; padding: 6px 0; border-block: 2px solid var(--brand); background: rgba(155, 92, 255, .12); }
.marquee.alt { border-color: var(--neon); background: rgba(57, 255, 20, .08); margin-top: -2px; }
.marquee-track { display: inline-block; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(2.4rem, 8vw, 6rem); line-height: 1.1; color: transparent; -webkit-text-stroke: 2px #fff; will-change: transform; }
.marquee.alt .marquee-track { color: var(--neon); -webkit-text-stroke: 0; font-size: clamp(1.6rem, 5vw, 3.6rem); }
.marquee-track i { font-style: normal; color: var(--pop); -webkit-text-stroke: 0; padding: 0 .3em; }
.kinetic-hint { color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-weight: 800; font-size: .85rem; margin: 36px 0 6px; }
.toy-list { list-style: none; margin: 0; padding: 0; }
.toy-list li { border-bottom: 1px solid var(--line); }
.toy-list a { display: block; padding: 6px 0; text-decoration: none; color: #fff; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(2rem, 7vw, 4.6rem); line-height: 1.1; transition: color .2s, padding-left .3s; }
.toy-list a:hover, .toy-list a:focus-visible { color: var(--pop); padding-left: 24px; text-shadow: 0 0 22px rgba(0, 229, 255, .6); }
.toy-list .ch { display: inline-block; }
.toy-list a:hover .ch, .toy-list a:focus-visible .ch { animation: letter-hop .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 30ms); }
@keyframes letter-hop { 0% { transform: none; } 40% { transform: translateY(-.28em) rotate(-6deg); } 100% { transform: none; } }
.toy-peek { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; }
.toy-peek-card {
  width: 190px; height: 190px; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 45%), var(--peek, var(--brand));
  box-shadow: 0 0 40px var(--peek, var(--brand)); color: #07060c; font-weight: 800;
  transform: scale(0); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}
.toy-peek.show .toy-peek-card { transform: scale(1); opacity: 1; }
.toy-peek-tag { align-self: flex-start; background: #07060c; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.toy-peek-photo { border: 2px dashed rgba(7, 6, 12, .55); border-radius: 14px; flex: 1; margin-top: 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .toy-list a:hover .ch { animation: none; } }

/* Christmas link in the nav */
nav a.nav-xmas { color: #ffd23f; }
nav a.nav-xmas:hover, nav a.nav-xmas[aria-current="page"] { background: #d62828; color: #fff; }
