/* Qrookies — bright, chunky, kid-friendly */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&display=swap');

:root {
  --ink: #2b2350;
  --muted: #6b6584;
  --pink: #ff5da2;
  --purple: #7c5cff;
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #ff8a3d;
  --yellow: #ffc93c;
  --card: #ffffff;
  --bg: #fff6e9;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Baloo 2', 'Comic Sans MS', 'Chalkboard SE', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--purple); }
img { max-width: 100%; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #fff; border-bottom: 4px solid #ffe3ef;
  position: sticky; top: 0; z-index: 10;
}
.logo { font-size: 28px; font-weight: 800; text-decoration: none; color: var(--ink); }
.logo span { color: var(--pink); }
.nav-links a {
  margin-left: 14px; text-decoration: none; font-weight: 700; font-size: 18px;
  color: var(--ink); padding: 8px 14px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { background: #f1eaff; color: var(--purple); }
.nav-cta { background: var(--pink) !important; color: #fff !important; }

/* Hero */
.hero {
  text-align: center; padding: 56px 20px 40px;
  background: linear-gradient(180deg, #e9e4ff 0%, #ffe9f4 55%, var(--bg) 100%);
}
.hero h1 { font-size: 56px; line-height: 1.05; margin: 0 0 10px; }
.hero h1 .pop { color: var(--pink); }
.hero p { font-size: 22px; color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 800; font-size: 22px; color: #fff;
  background: var(--pink); padding: 16px 34px; border-radius: 999px;
  box-shadow: 0 6px 0 #d63d83; transition: transform .05s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #d63d83; }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 #d63d83; }
.btn.purple { background: var(--purple); box-shadow: 0 6px 0 #5a3fd6; }
.btn.blue { background: var(--blue); box-shadow: 0 6px 0 #1d5fc4; }
.btn.green { background: var(--green); box-shadow: 0 6px 0 #159243; }
.btn.small { font-size: 18px; padding: 11px 24px; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
h2 { font-size: 36px; text-align: center; margin: 44px 0 8px; }
.sub { text-align: center; font-size: 20px; color: var(--muted); margin: 0 0 26px; }

/* Character grid */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
  .nav-links a { font-size: 15px; margin-left: 6px; padding: 6px 10px; }
}
.char-card {
  background: var(--card); border-radius: 28px; padding: 16px 14px 18px;
  text-align: center; border: 4px solid var(--c, #eee);
  box-shadow: 0 6px 18px rgba(43,35,80,.08);
}
.char-card img { height: 150px; object-fit: contain; }
.char-card h3 { margin: 8px 0 2px; font-size: 21px; }
.char-card p { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.char-card .mini-btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 16px;
  color: #fff; background: var(--c, var(--purple)); padding: 8px 18px; border-radius: 999px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border-radius: 28px; padding: 22px; text-align: center;
  border: 4px solid #ffe3ef;
}
.step .num {
  display: inline-block; width: 52px; height: 52px; line-height: 52px;
  border-radius: 50%; background: var(--yellow); font-size: 26px; font-weight: 800;
}
.step h3 { margin: 12px 0 4px; font-size: 22px; }
.step p { color: var(--muted); font-size: 18px; margin: 0; }

/* Parents strip */
.parents {
  background: #e8f7ee; border: 4px solid #bfe8cd; border-radius: 28px;
  padding: 26px 30px; margin-top: 50px;
}
.parents h2 { margin-top: 0; text-align: left; }
.parents p, .parents li { font-size: 19px; color: #3d5a47; }
.parents ul { margin: 8px 0; }

/* Creator */
/* Creator: one centered column — never two cards side by side */
.creator { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.creator .panel { width: 100%; max-width: 640px; box-sizing: border-box; }
.creator .preview canvas { display: block; margin: 0 auto; }
.panel { background: #fff; border-radius: 28px; padding: 24px; border: 4px solid #e9e4ff; }
.panel h3 { margin-top: 0; font-size: 24px; }
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pick {
  border: 3px solid #eee; border-radius: 20px; background: #fff; cursor: pointer;
  padding: 8px 4px 6px; font-family: inherit;
}
.pick img { height: 74px; object-fit: contain; }
.pick span { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; }
.pick.sel { border-color: var(--pink); background: #fff0f6; box-shadow: 0 0 0 3px #ffd3e8; }
.field label { display: block; font-weight: 800; font-size: 19px; margin: 14px 0 6px; }
.field input {
  width: 100%; font-family: inherit; font-size: 19px; padding: 13px 16px;
  border: 3px solid #e5e0ff; border-radius: 16px; outline: none;
}
.field input:focus { border-color: var(--purple); }
.chosen { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.chosen img { height: 92px; }
.chosen div b { font-size: 22px; }
.chosen div p { margin: 0; color: var(--muted); font-size: 17px; }
.preview { text-align: center; }
.preview canvas { width: 100%; max-width: 460px; height: auto; border-radius: 24px; }
.note { font-size: 16px; color: var(--muted); text-align: center; }
.share-tip {
  background: #fffbe6; border: 3px dashed #f2c94c; border-radius: 20px;
  padding: 14px 18px; font-size: 18px; margin-top: 18px;
}

footer {
  text-align: center; padding: 30px 20px 40px; color: var(--muted); font-size: 17px;
}
footer a { font-weight: 700; }

/* Nav wrapping for the extra pages */
.nav { flex-wrap: wrap; gap: 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* Treasure hunt */
.progress-box {
  background: #fff; border: 4px solid #ffe3ef; border-radius: 28px;
  padding: 22px 26px; text-align: center; margin-bottom: 22px;
}
.progress-box p { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.bar { background: #f1eaff; border-radius: 999px; height: 26px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--pink), var(--purple)); height: 100%; width: 0%; transition: width .4s ease; }
.shelf {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px;
}
.shelf img { height: 74px; object-fit: contain; background: #fff; border: 3px solid #ffe3ef; border-radius: 18px; padding: 6px; }
.hunt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .hunt-grid { grid-template-columns: 1fr; } }
.stop-card {
  background: #fff; border-radius: 28px; padding: 22px; border: 4px solid #e9e4ff;
}
.stop-card.found { border-color: var(--green); background: #f2fbf5; }
.stop-card h3 { margin: 0 0 4px; font-size: 24px; }
.stop-card .clue { font-size: 19px; color: var(--muted); margin: 0 0 14px; }
.stop-card .found-row { display: flex; align-items: center; gap: 14px; }
.stop-card .found-row img { height: 96px; }
.stop-card .found-row p { margin: 0; font-size: 17px; color: #3d5a47; }
.badge-star { display: inline-block; background: var(--yellow); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: 16px; }

/* Business page */
.biz-hero { background: linear-gradient(180deg, #d9f5e3 0%, #fff6e9 100%); }
.example-strip { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.example-strip .ex {
  background: #fff; border: 3px dashed #f2c94c; border-radius: 20px;
  padding: 12px 20px; font-size: 19px; font-weight: 700;
}

/* Dress-up swatches + sticker/shop additions */
.swatches{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 18px}
.swatch{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 8px rgba(43,35,80,.25);cursor:pointer;padding:0}
.swatch.sel{outline:4px solid #2b2350;outline-offset:2px}
.checker-bg{background:repeating-conic-gradient(#f2f0ff 0% 25%, #fff 0% 50%) 0 0/32px 32px;border-radius:16px;padding:16px}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.product-card{background:#fff;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(43,35,80,.10);text-align:center}
.product-card h3{font-size:20px;margin-bottom:8px}
.product-card p{color:#555}
.price{font-size:26px;font-weight:800;color:#2b2350;margin:14px 0}
.field select,.field textarea{width:100%;padding:12px 14px;border:2px solid #e3e0f5;border-radius:12px;font-size:16px;font-family:inherit;background:#fff}
.field textarea{resize:vertical}
.use-card{display:flex;gap:16px;align-items:center;background:#fff;border-radius:16px;padding:16px;margin-bottom:16px;box-shadow:0 4px 16px rgba(43,35,80,.08)}
.use-card img{width:72px;height:72px;object-fit:contain}
.use-card b{display:block;font-size:18px}
.use-card p{color:#555;margin:0}

/* Deals + account additions */
.search-bar{max-width:560px;margin:0 auto}
.search-bar input{width:100%;padding:14px 18px;border:3px solid #e3e0f5;border-radius:999px;font-size:17px;font-family:inherit}
.chip{border:2px solid #e3e0f5;background:#fff;border-radius:999px;padding:8px 18px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit}
.chip.sel{background:#2b2350;color:#fff;border-color:#2b2350}
.deal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.deal-card{background:#fff;border-radius:18px;padding:22px;box-shadow:0 8px 24px rgba(43,35,80,.10);text-align:center}
.deal-card img{width:110px;height:110px;object-fit:contain}
.deal-card b{display:block;font-size:19px;margin:8px 0 4px}
.deal-card p{color:#555}
.deal-code{font-weight:800;color:#2b2350!important}
.badge{display:inline-block;background:#ffe45c;color:#2b2350;font-weight:800;border-radius:999px;padding:8px 16px;margin:4px}
.profile-card{display:flex;gap:18px;align-items:center}
.profile-card img{width:96px;height:96px;object-fit:contain}
.profile-card b{font-size:24px;display:block}
.profile-card p{color:#555}

/* Home: characters first, whole, upright, moving */
.hero-home { padding: 28px 20px 10px; }
.hero-home h1 { font-size: 44px; }
.hero-home p { margin-bottom: 16px; }
.char-card { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.char-card img {
  height: 190px; width: 100%; object-fit: contain;
  animation: q-bob 3.2s ease-in-out infinite;
}
.char-card:nth-child(3n+2) img { animation-delay: .45s; }
.char-card:nth-child(3n) img { animation-delay: .9s; }
.char-card:hover img { animation: q-jump .6s ease; }
@keyframes q-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes q-jump {
  0% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-18px) rotate(-3deg); }
  60% { transform: translateY(0) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.ground {
  width: 70%; height: 14px; border-radius: 50%; margin: 2px auto 6px;
  background: radial-gradient(ellipse at center, rgba(43,35,80,.20), transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .char-card img { animation: none; } }

/* Download / share / text on every Qrookie card */
.card-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.mini-act {
  font-size: 14px; font-weight: 800; font-family: inherit; color: var(--purple);
  background: #f1eaff; border: 0; cursor: pointer; text-decoration: none;
  padding: 6px 12px; border-radius: 999px;
}
.mini-act:hover { background: #e4dcff; }

/* Ideas page */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.idea-card {
  background: #fff; border-radius: 28px; padding: 20px; text-align: center;
  border: 4px solid #ffe3ef; box-shadow: 0 6px 18px rgba(43,35,80,.08);
}
.idea-card img { height: 120px; object-fit: contain; }
.idea-card h3 { margin: 10px 0 4px; font-size: 22px; }
.idea-card p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }

/* Alive grid: speech bubbles + waving */
.char-card { position: relative; overflow: hidden; } /* bubbles stay inside the card */
.bubble {
  position: absolute; top: 8px; left: 50%; z-index: 2; white-space: nowrap;
  transform: translateX(-50%) scale(0); transition: transform .25s ease;
  background: #fff; border: 3px solid var(--c, #7c5cff); border-radius: 16px;
  padding: 6px 12px; font-weight: 800; font-size: 15px; color: var(--ink);
}
.bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px;
  background: #fff; border-right: 3px solid var(--c, #7c5cff); border-bottom: 3px solid var(--c, #7c5cff);
  transform: translateX(-50%) rotate(45deg);
}
.bubble.show, .char-card:hover .bubble { transform: translateX(-50%) scale(1); }
.bubble.show { animation: q-bubble-jump 1s ease-in-out infinite; }
@keyframes q-bubble-jump {
  0%, 100% { transform: translateX(-50%) scale(1) translateY(0); }
  30% { transform: translateX(-50%) scale(1) translateY(-10px); }
  60% { transform: translateX(-46%) scale(1) translateY(-3px); }
}
.char-card img.waving { animation: q-wave 1.2s ease; }
@keyframes q-wave {
  0%, 100% { transform: rotate(0deg) translateY(-6px); }
  20% { transform: rotate(-10deg) translateY(-6px); }
  40% { transform: rotate(10deg) translateY(-6px); }
  60% { transform: rotate(-10deg) translateY(-6px); }
  80% { transform: rotate(10deg) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .char-card img.waving { animation: none; } }

/* Each card moves differently */
.char-card.move-bob img { animation: q-bob 3.2s ease-in-out infinite; }
.char-card.move-sway img { animation: q-sway 3.6s ease-in-out infinite; }
.char-card.move-wiggle img { animation: q-wiggle 2.2s ease-in-out infinite; }
.char-card.move-float img { animation: q-float 4.5s ease-in-out infinite; }
.char-card.move-hop img { animation: q-hop 2.4s ease-in-out infinite; }
.char-card.move-bounce img { animation: q-bounce 1.8s ease-in-out infinite; }
.char-card.move-spin img { animation: q-spin 6s linear infinite; }
.char-card.move-slide img { animation: q-slide 2.8s ease-in-out infinite; }
.char-card.move-pulse img { animation: q-pulse 2.4s ease-in-out infinite; }
.char-card.move-shake img { animation: q-shake 2.6s ease-in-out infinite; }
.char-card.move-dance img { animation: q-dance 2s ease-in-out infinite; }
.char-card.move-flip img { animation: q-flip 3.6s ease-in-out infinite; }
@keyframes q-sway { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes q-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes q-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes q-hop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-18px); } 50% { transform: translateY(0); } 70% { transform: translateY(-10px); } }
@keyframes q-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes q-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes q-slide { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
@keyframes q-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes q-shake { 0%, 100% { transform: translateX(0); } 10% { transform: translateX(-4px); } 20% { transform: translateX(4px); } 30% { transform: translateX(-4px); } 40% { transform: translateX(0); } }
@keyframes q-dance { 0%, 100% { transform: rotate(-8deg) translateY(0); } 25% { transform: rotate(8deg) translateY(-10px); } 50% { transform: rotate(-8deg) translateY(0); } 75% { transform: rotate(8deg) translateY(-10px); } }
@keyframes q-flip { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
/* Hover jump + bubble wave still win over the signature moves */
.char-card:hover img { animation: q-jump .6s ease; }
.char-card img.waving { animation: q-wave 1.2s ease; }
@media (prefers-reduced-motion: reduce) { .char-card img { animation: none !important; } }

/* Compact nav: slim bar + hamburger menu on small screens */
.nav { padding: 10px 16px; }
.logo { font-size: 24px; }
.nav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { font-size: 16px; padding: 6px 10px; margin-left: 8px; white-space: nowrap; }
.nav-toggle {
  display: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 18px;
  color: #fff; background: var(--pink); padding: 8px 18px; border-radius: 999px;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; flex-direction: column; width: 100%; overflow: visible; }
  .nav-links.open { display: flex; }
  .nav-links a { margin-left: 0; }
}

/* Keep speech bubbles clear of the characters' heads */
.char-card { padding-top: 44px; }

/* Qrookie centered in the middle of its card */
.char-card { justify-content: center; }

/* Centering fixes (user report 2026-10-26: text not centered where it should be) */
.parents { text-align: center; }
.parents h2 { text-align: center; }
.parents ul { display: inline-block; text-align: left; margin: 8px auto; }
.mini-act { white-space: nowrap; padding: 6px 10px; font-size: 13px; }
.nav-links.open a { text-align: center; }
.creator .panel h3 { text-align: center; }
.field label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 8px; }

/* Front page: Qrookies on top, small cards, six across = two rows on desktop */
#charGrid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
#charGrid .char-card { padding: 44px 10px 14px; }
#charGrid .char-card img { height: 120px; }
#charGrid .char-card h3 { font-size: 17px; }
#charGrid .char-card p { font-size: 14px; }
.char-card[href] { text-decoration: none; color: inherit; }
@media (max-width: 1100px) { #charGrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { #charGrid { grid-template-columns: repeat(3, 1fr); } #charGrid .char-card img { height: 100px; } }
@media (max-width: 480px) { #charGrid { grid-template-columns: repeat(2, 1fr); } }

/* Home options line: choices below the Qrookies, not another set of cards */
.opt-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 10px; }
.opt-row a { display: inline-block; text-decoration: none; font-weight: 800; font-size: 19px; color: var(--ink); background: #fff; border: 3px solid #ffe3ef; border-radius: 999px; padding: 10px 22px; box-shadow: 0 4px 12px rgba(43,35,80,.08); }
.opt-row a:hover { background: #fff0f6; border-color: var(--pink); }

/* Phone: condensed — only create + send by text (everything else stays in the menu) */
@media (max-width: 700px) {
  .hero-home { padding: 16px 16px 6px; }
  .hero-home h1 { font-size: 32px; }
  .wrap { padding: 0 14px 40px; }
  h2 { font-size: 28px; margin: 28px 0 6px; }
  #howTitle, #howSteps, #moreTitle, .opt-row, .parents, .path-business { display: none; }
  #charGrid { gap: 10px; }
  #actions .btn.green, #actions .btn.blue, #actions .copy-btn, #actions .share-tip { display: none; }
}

/* Creator tidy (user 2026-10-26: maker fonts too large, even one-line choice boxes) */
.creator .panel h3 { font-size: 20px; }
.creator .field label { font-size: 16px; margin: 10px 0 5px; }
.creator .field input { font-size: 16px; padding: 11px 14px; }
.creator .field select { font-size: 15px; padding: 11px 14px; }
.creator .chosen img { height: 76px; }
.creator .chosen div b { font-size: 19px; }
.creator .chosen div p { font-size: 15px; }
.creator .note { font-size: 14px; }
.creator .btn { font-size: 19px; }
.creator-hero p { font-size: 17px; }
.creator .field.choice { background: #faf8ff; border: 3px solid #e9e4ff; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.creator .field.choice > label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.creator .field.choice input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 auto; padding: 0; margin: 0; border: none; accent-color: var(--purple); }

/* Gallery: kids' own-URL posts, on-device only */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery-card { background: #fff; border: 4px solid #ffe3ef; border-radius: 20px; padding: 16px; text-align: center; box-shadow: 0 6px 18px rgba(43,35,80,.08); overflow-wrap: anywhere; }
.gallery-card img { height: 200px; object-fit: contain; }
.gallery-card h3 { margin: 10px 0 2px; font-size: 20px; }
.gallery-fam { color: var(--muted); margin: 0 0 10px; }
.gallery-card canvas { height: 200px; }

/* Phone small menu (user 2026-10-26: keep it clean, simple, ready for smartphone — on a phone the kid picks from a small menu, images need not be large) */
@media (max-width: 700px) {
  /* Front page: compact 4-across menu — small picture + name only, no job text, no bubbles */
  #charGrid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  #charGrid .char-card { padding: 10px 4px 8px; }
  #charGrid .char-card img { height: 64px; }
  #charGrid .char-card h3 { font-size: 13px; margin: 6px 0 0; }
  #charGrid .char-card p, #charGrid .bubble { display: none; }
  /* Creator picker: the same small menu */
  .picker { gap: 8px; }
  .pick img { height: 56px; }
  .pick span { font-size: 12px; }
}

/* ---- Phone homepage grid: big personas (2026-10-27) ----
   User's phone screenshot showed 4-across 64px pills: the colorful persona
   shrank under the big white board, the "Book Appointment" label clipped
   mid-word, and a mid-spin character sat tilted. Narrow phones go 2-across
   with large images; wider phones 3-across. This block comes last so it
   wins over the small-menu rules above. Maker picker (.picker/.pick) is
   untouched — this is #charGrid only. */
@media (max-width: 700px) {
  #charGrid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  #charGrid .char-card { padding: 14px 10px 12px; border-radius: 24px; }
  #charGrid .char-card img { height: 132px; }
  #charGrid .char-card h3 { font-size: 16px; line-height: 1.2; margin: 8px 0 0; overflow-wrap: break-word; }
}
@media (max-width: 480px) {
  #charGrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #charGrid .char-card img { height: 150px; }
}

/* Grid motion: never tilted. Rotation/mirror moves are redefined
   vertical-only (later @keyframes win); translation-only moves untouched. */
@keyframes q-wiggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes q-spin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes q-flip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes q-dance { 0%, 100% { transform: translateY(0); } 25%, 75% { transform: translateY(-10px); } 50% { transform: translateY(0); } }
@keyframes q-wave { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(-16px); } }
@keyframes q-jump { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-18px); } 60% { transform: translateY(0); } }

/* Phone: nav scrolls with the page so headings can never slide under the
   sticky header and get sliced (phone screenshot 2026-10-27). */
@media (max-width: 700px) {
  .nav { position: static; }
}
html { scroll-padding-top: 84px; }
