/* EurekaBot — a simple place to share bot ideas.
   Soft pastels: pink, aqua, and the butter-yellow accent. Rounded and friendly.
   Light and dark palettes via html[data-theme]. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-theme="light"] {
  --page: #ffffff;
  --surface: #ffffff;
  --soft: #fff8fb;
  --ink: #2b2433;
  --ink-soft: #463d50;
  --muted: #6e6578;
  --hairline: #eee3ec;
  --line: #e7d7e3;
  --pink: #ffc8dd;
  --pink-soft: #ffeef5;
  --pink-ink: #b03a6e;
  --aqua: #bdebe6;
  --aqua-soft: #e9faf7;
  --yellow: #fff1a0;
  --yellow-soft: #fffbe0;
  --on-pastel: #2b2433;
  --card: #ffffff;
  --shadow: 0 6px 22px rgba(176, 58, 110, 0.10);
  --shadow-sm: 0 2px 10px rgba(176, 58, 110, 0.08);
  --scheme: light;
  --display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 72rem;
  --gutter: 1.25rem;
  --radius: 22px;
}

html[data-theme="dark"] {
  --page: #17141c;
  --surface: #221e29;
  --soft: #1d1923;
  --ink: #f7f1f8;
  --ink-soft: #e2d9e6;
  --muted: #b3a8ba;
  --hairline: #352e3f;
  --line: #463c52;
  --pink: #ffc8dd;
  --pink-soft: #3a2533;
  --pink-ink: #ffb3d1;
  --aqua: #bdebe6;
  --aqua-soft: #1f3533;
  --yellow: #fff1a0;
  --yellow-soft: #2e2536;
  --on-pastel: #2b2433;
  --card: #221e29;
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: var(--scheme); }
html, body { background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  min-height: 100%;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); }
a { color: var(--pink-ink); text-underline-offset: 0.18em; text-decoration-thickness: 2px; text-decoration-color: var(--pink); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--page); padding: 0.5rem 0.85rem; border-radius: 999px;
}
.skip-link:focus { top: 0.5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: var(--page);
  border-top: 6px solid var(--yellow);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 30;
}
.header-inner {
  max-width: var(--measure); margin: 0 auto; padding: 0.55rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap;
}
.wordmark { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.wordmark-text { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.005em; }
.wm-bot { color: var(--pink-ink); }
.bot-mark { flex-shrink: 0; }
.bot-mark-sm { width: 36px; height: 36px; }
.bot-mark-xs { width: 44px; height: 44px; margin: 0 auto 0.5rem; }
.bot-mark-md { width: 140px; height: 140px; margin: 0 auto 0.6rem; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.35rem; font-weight: 700; font-size: 0.95rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.site-nav a:hover { background: var(--pink-soft); }
.site-nav a.is-active { background: var(--yellow); color: var(--on-pastel); }
.site-nav a[href$="idea.html"] { background: var(--aqua); color: var(--on-pastel); }
.theme-toggle {
  display: inline-flex; border-radius: 999px; background: var(--soft);
  border: 1px solid var(--line); padding: 3px; font-size: 0.82rem; font-weight: 700;
}
.theme-btn {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  font: inherit; padding: 0.22rem 0.7rem; border-radius: 999px; cursor: pointer;
}
.theme-btn[aria-pressed="true"] { background: var(--pink); color: var(--on-pastel); }

/* Layout */
main { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter) 4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem;
  border: 0; border-radius: 999px; padding: 0.6rem 1.2rem;
  background: var(--yellow); color: var(--on-pastel); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 rgba(43, 36, 51, 0.14);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(43, 36, 51, 0.14); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(43, 36, 51, 0.14); }
.btn-big { font-size: 1.12rem; padding: 0.8rem 1.45rem; }
.btn-pink { background: var(--pink); }
.btn-aqua { background: var(--aqua); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.link-btn {
  appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--pink-ink); text-decoration: underline; text-decoration-color: var(--pink);
  text-decoration-thickness: 2px; text-underline-offset: 0.18em;
}

/* Hero */
.hero { padding: 2.2rem 0 1.2rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: center;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--yellow-soft) 55%, var(--aqua-soft) 100%);
  border-radius: 32px; padding: 2.2rem 2.4rem;
}
.hero-kicker {
  display: inline-block; margin: 0 0 0.8rem; font-weight: 800; font-size: 0.85rem;
  background: var(--surface); color: var(--ink-soft); border-radius: 999px; padding: 0.25rem 0.8rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 0.7rem; }
.tagline { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-mascot { position: relative; display: flex; flex-direction: column; align-items: center; }
.mascot-btn {
  position: relative; appearance: none; border: 0; background: transparent; padding: 0;
  cursor: pointer; width: min(320px, 80vw); aspect-ratio: 1; border-radius: 50%;
  perspective: 900px;
}
.mascot-halo {
  position: absolute; inset: 7%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, var(--pink) 70%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.55), var(--shadow);
}
html[data-theme="dark"] .mascot-halo {
  background: radial-gradient(circle at 50% 45%, #fff6fa 0%, var(--pink) 72%);
  box-shadow: 0 0 0 10px rgba(255, 200, 221, 0.18), var(--shadow);
}
.mascot-img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  animation: eb-spin 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.mascot-btn:hover .mascot-img, .mascot-btn:focus-visible .mascot-img { animation-duration: 3.5s; }
.mascot-btn:focus-visible { outline-offset: 6px; border-radius: 50%; }
@keyframes eb-spin {
  0%   { transform: translateY(0) rotateY(0deg); }
  20%  { transform: translateY(-8px) rotateY(0deg); }
  40%  { transform: translateY(0) rotateY(0deg); }
  70%  { transform: translateY(-4px) rotateY(360deg); }
  100% { transform: translateY(0) rotateY(360deg); }
}
.eureka-bubble {
  position: absolute; top: 2%; left: -2%; z-index: 2; margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--on-pastel);
  background: var(--yellow); border-radius: 22px; padding: 0.35rem 1rem;
  box-shadow: var(--shadow-sm); transform: rotate(-6deg);
  animation: eb-pop 3.5s ease-in-out infinite;
}
.eureka-bubble::after {
  content: ""; position: absolute; right: 18px; bottom: -11px;
  border-width: 12px 10px 0 4px; border-style: solid; border-color: var(--yellow) transparent transparent transparent;
}
@keyframes eb-pop {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(-3deg) scale(1.06); }
}
.mascot-hint {
  margin: 0.4rem 0 0; font-weight: 800; font-size: 0.92rem; color: var(--ink-soft);
  background: var(--surface); border-radius: 999px; padding: 0.2rem 0.8rem; box-shadow: var(--shadow-sm);
}

/* Search */
.search-wrap { max-width: 40rem; margin: 1.6rem auto 0.6rem; }
.search-label { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.4rem 0.4rem; }
.search-box {
  display: flex; border-radius: 999px; background: var(--surface);
  border: 2px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm);
}
.search-box:focus-within { border-color: var(--pink-ink); }
.search-box input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; padding: 0.75rem 1.1rem; outline: none;
}
.search-box input::placeholder { color: var(--muted); }
.search-go {
  border: 0; margin: 5px; border-radius: 999px; background: var(--pink); color: var(--on-pastel);
  font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 0 1.2rem; cursor: pointer;
}
.search-results {
  max-width: 40rem; margin: 0.8rem auto 1rem; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: 0.9rem 1.2rem; box-shadow: var(--shadow-sm);
}
.search-results h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.search-results ul { margin: 0; padding: 0; list-style: none; }
.search-results li { padding: 0.45rem 0; border-top: 1px solid var(--hairline); }
.search-results li:first-of-type { border-top: 0; }
.search-results .hit-name { font-weight: 800; }
.search-results .hit-meta { display: block; font-size: 0.9rem; color: var(--muted); }

.how-steps {
  list-style: none; padding: 0; margin: 1.2rem auto 0; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.6rem 1.4rem; font-weight: 700; color: var(--ink-soft);
}
.how-steps li { display: flex; align-items: center; gap: 0.45rem; }
.step-num {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--aqua); color: var(--on-pastel); font-family: var(--display); font-weight: 700;
}
.how-steps li:nth-child(2) .step-num { background: var(--pink); }
.how-steps li:nth-child(3) .step-num { background: var(--yellow); }

/* Tool Tattle cross-link */
.tt-strip {
  margin: 1rem auto 0;
  max-width: 42rem;
  padding: 0.7rem 1.25rem;
  text-align: center;
  background: linear-gradient(90deg, var(--aqua-soft) 0%, var(--pink-soft) 100%);
  border: 2px solid var(--aqua);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.tt-strip p {
  margin: 0;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.45;
}
.tt-strip a {
  font-weight: 800;
  white-space: nowrap;
}

/* Idea box (home) */
.idea-box {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.6rem; align-items: start;
  margin: 2rem 0 1rem; padding: 1.8rem 2rem; border-radius: 32px;
  background: var(--aqua-soft); border: 2px dashed var(--aqua);
}
.idea-box h2 { font-size: 1.9rem; margin: 0 0 0.5rem; }
.idea-box-pitch p { margin: 0 0 0.8rem; color: var(--ink-soft); }
.idea-box-mascot { width: 84px; height: 84px; margin-bottom: 0.4rem; }
.idea-box-pitch p.kicker { color: var(--on-pastel); }
.idea-box-small { font-size: 0.92rem; color: var(--muted) !important; }
.idea-box-form .share-form { background: var(--surface); }

.kicker {
  display: inline-block; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.03em;
  color: var(--on-pastel); background: var(--yellow); border-radius: 999px; padding: 0.15rem 0.7rem; margin: 0 0 0.6rem;
}

/* Sections */
.ready-section, .topics-section { margin-top: 2.6rem; }
.section-head { margin: 0 0 1.1rem; }
.section-head h2, .page-head h2 { font-size: 1.9rem; margin: 0 0 0.3rem; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-sub { color: var(--ink-soft); margin-top: -0.3rem; }

/* Bot cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin: 0 0 1.8rem;
}
.bot-card {
  position: relative; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bot-card::before { content: ""; display: block; height: 8px; background: var(--pink); }
.bot-card:nth-child(3n+2)::before { background: var(--aqua); }
.bot-card:nth-child(3n)::before { background: var(--yellow); }
.bot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bot-card-link {
  display: flex; flex-direction: column; height: 100%; padding: 0.9rem 1.05rem 1rem;
  color: var(--ink); text-decoration: none;
}
.bot-card-soon { padding: 0.9rem 1.05rem 1rem; box-shadow: none; background: var(--soft); }
.bot-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.bot-no { font-weight: 800; font-size: 0.8rem; color: var(--muted); }
.bot-no-idea { background: var(--yellow); color: var(--on-pastel); border-radius: 999px; padding: 0 0.55rem; }
.bot-card-title { font-size: 1.22rem; margin: 0 0 0.35rem; }
.bot-card-task { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.bot-card-topic {
  display: inline-block; align-self: flex-start; margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 800;
  background: var(--pink-soft); color: var(--ink); border-radius: 999px; padding: 0.1rem 0.65rem;
}
.bot-card-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; margin-bottom: 0.5rem; }
.free-pill {
  align-self: flex-start; font-weight: 800; font-size: 0.82rem; color: var(--on-pastel);
  background: var(--aqua); border-radius: 999px; padding: 0.12rem 0.7rem; margin-bottom: 0.55rem;
}
.see-bot { font-family: var(--display); font-weight: 600; color: var(--pink-ink); }
.soon-label { margin: 0; font-size: 0.86rem; color: var(--muted); font-weight: 700; }

.grid-empty {
  text-align: center; padding: 1.8rem 1rem 2rem; margin: 0 0 1.8rem;
  border-radius: var(--radius); background: var(--pink-soft);
}
.grid-empty img { margin: 0 auto 0.6rem; width: 96px; height: 96px; }
.grid-empty h3 { font-size: 1.4rem; margin: 0 0 0.3rem; }
.grid-empty p { margin: 0 0 0.9rem; color: var(--ink-soft); }

/* Stars */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 0.05em; color: #e7a400; }
.stars-lg { font-size: 1.45rem; }
.stars-md { font-size: 1.05rem; }
.stars-bg { color: var(--line); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #e7a400; pointer-events: none; }
.stars-empty .stars-fg { width: 0 !important; }
.unrated-note, .opening-soon { font-size: 0.86rem; color: var(--muted); margin: 0.35rem 0 0; }
.bot-card .unrated-note { margin: 0; }

/* Topics */
.topic-bank { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.8rem; }
.topic-chip {
  display: flex; flex-direction: column; gap: 0.1rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; box-shadow: var(--shadow-sm); transition: transform 0.15s ease;
  border-left: 8px solid var(--pink);
}
.topic-chip:nth-child(3n+2) { border-left-color: var(--aqua); }
.topic-chip:nth-child(3n) { border-left-color: var(--yellow); }
.topic-chip:hover { transform: translateY(-2px); }
.topic-label { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.topic-meta { font-size: 0.88rem; color: var(--muted); font-weight: 700; }

/* Page heads, crumbs */
.page-head { padding: 2rem 0 1rem; max-width: 46rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 0.5rem; }
.page-head-mascot { text-align: left; }
.head-mascot { width: 120px; height: 120px; margin: 0 0 0.4rem; animation: eb-bob 3.5s ease-in-out infinite; }
@keyframes eb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.9rem; font-weight: 700; color: var(--muted); margin: 1.4rem 0 0.8rem; }
.crumbs a { color: var(--muted); }

/* Bot page */
.botpage { max-width: 50rem; margin: 0 auto; }
.botpage-card {
  background: linear-gradient(135deg, var(--pink-soft), var(--yellow-soft) 60%, var(--aqua-soft));
  border-radius: 28px; padding: 1.5rem 1.6rem 1.4rem; margin-bottom: 1.6rem;
}
.botpage-top { margin-bottom: 0.4rem; }
.botpage-header h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0 0 0.8rem; }
.botpage-fields { margin: 0 0 0.9rem; display: grid; gap: 0.5rem; }
.botpage-fields > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.8rem; }
.botpage-fields dt { font-weight: 800; color: var(--ink); }
.botpage-fields dd { margin: 0; color: var(--ink-soft); }
.botpage-rating { display: flex; align-items: center; gap: 0.6rem; }
.botpage-rating p { margin: 0; color: var(--muted); font-weight: 700; }
.botpage h2 { font-size: 1.45rem; margin: 0 0 0.4rem; }
.jobs-done, .reviews, .disclaimer { margin: 1.6rem 0; }
.jobs-tally { margin: 0 0 0.3rem; font-weight: 700; }
.honesty { font-size: 0.92rem; color: var(--muted); margin: 0; }
.playful-lede, .disclaimer {
  background: var(--yellow-soft); border-radius: var(--radius); padding: 0.9rem 1.1rem; color: var(--ink-soft);
}
.disclaimer h2 { font-size: 1.15rem; }
.disclaimer p { margin: 0; }

.getbot-wrap { margin-top: 2rem; }
.getbot {
  background: var(--surface); border: 2px solid var(--pink); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.getbot summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem;
}
.getbot summary::-webkit-details-marker { display: none; }
.getbot summary .btn { background: var(--pink); font-size: 1.12rem; padding: 0.75rem 1.4rem; }
.summary-hint { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.getbot-body { border-top: 2px dashed var(--pink-soft); padding: 1.1rem 1.25rem 1.4rem; }
.getbot-lead { max-width: 42rem; }
.getbot-body h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }
.copy-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 0.6rem; right: 0.6rem; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  background: var(--yellow); color: var(--on-pastel); border: 0; border-radius: 999px; padding: 0.4rem 0.95rem;
  box-shadow: 0 2px 0 rgba(43, 36, 51, 0.15);
}
.copy-btn.is-copied { background: var(--aqua); }
.instructions {
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  background: var(--soft); color: var(--ink); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 3rem 1.1rem 1.1rem; max-height: 28rem; overflow: auto;
}
.howto { padding-left: 1.3rem; }
.howto li { margin: 0.35rem 0; }
.example {
  margin: 0; padding: 0.9rem 1.1rem; border-radius: 18px; background: var(--aqua-soft);
  border-left: 6px solid var(--aqua); color: var(--ink-soft);
}
.rate-wrap { margin-top: 1.2rem; }
.rate-btn {
  font-family: var(--display); font-weight: 600; font-size: 1rem; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem;
}
.rate-btn[disabled] { opacity: 0.65; cursor: not-allowed; }

/* Tweak box */
.tweak-box {
  max-width: 50rem; margin: 2.2rem auto 0; padding: 1.4rem 1.5rem 1.5rem; border-radius: 28px;
  background: var(--aqua-soft); border: 2px dashed var(--aqua);
}
.tweak-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.tweak-head img { width: 48px; height: 48px; }
.tweak-box h2 { font-size: 1.4rem; margin: 0; }
.tweak-box > p { margin: 0 0 1rem; color: var(--ink-soft); }
.tweak-form { background: var(--surface); }

/* Forms */
.share-form {
  max-width: 42rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px;
  padding: 1.2rem 1.3rem 1.3rem; box-shadow: var(--shadow-sm); color: var(--ink);
}
.idea-box .share-form, .tweak-box .share-form { max-width: none; }
.form-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.idea-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-fields label { display: block; font-weight: 800; margin-bottom: 0.25rem; }
.field-hint { font-weight: 600; color: var(--muted); font-size: 0.88rem; }
.share-form input[type="text"], .share-form input[type="email"], .share-form input[type="password"],
.share-form textarea, .share-form select {
  width: 100%; font: inherit; color: var(--ink); background: var(--soft);
  border: 2px solid var(--line); border-radius: 14px; padding: 0.6rem 0.8rem;
}
.share-form textarea { resize: vertical; }
.share-form input:focus, .share-form textarea:focus, .share-form select:focus {
  outline: none; border-color: var(--pink-ink); background: var(--surface);
}
.share-form ::placeholder { color: var(--muted); }
.check-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-row label { font-weight: 600; }
.btn-submit { margin-top: 1rem; background: var(--pink); }
.form-footnote { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.92rem; }
.share-form.is-hidden { display: none; }
.share-form[aria-disabled="true"] input, .share-form[aria-disabled="true"] select,
.share-form[aria-disabled="true"] textarea, .share-form[aria-disabled="true"] button { pointer-events: none; }
.share-form[aria-disabled="true"] { opacity: 0.85; }
.opening-soon-banner {
  max-width: 42rem; background: var(--yellow-soft); border: 2px dashed var(--yellow); border-radius: 18px;
  padding: 0.7rem 1rem; margin: 0 0 1rem; font-weight: 700;
}
.idea-also { color: var(--ink-soft); max-width: 42rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks {
  max-width: 36rem; margin-top: 1rem; background: var(--surface); border-radius: 24px;
  padding: 1.4rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.thanks h2 { font-size: 1.4rem; margin: 0 0 0.3rem; }
.thanks-mascot { width: 72px; height: 72px; margin: 0 auto 0.4rem; }
.thanks-badge {
  display: inline-block; font-family: var(--display); font-weight: 700; background: var(--yellow);
  color: var(--on-pastel); border-radius: 999px; padding: 0.2rem 0.9rem; margin: 0 0 0.6rem; transform: rotate(-3deg);
}
.tweak-box .thanks { text-align: left; }
.is-hidden { display: none !important; }

/* Review inbox */
.review-list { list-style: none; padding: 0; margin: 1.2rem 0 0; max-width: 42rem; }
.review-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 1rem 1.1rem 1.15rem; margin: 0 0 1rem; }
.review-item h2 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.review-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.45rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }

/* About */
.about-prose { max-width: 44rem; }
.about-prose p { margin: 0 0 1rem; }
.about-points { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.about-points li { margin: 0.6rem 0; }

/* Footer */
.site-footer { border-top: 6px solid var(--pink-soft); background: var(--soft); margin-top: 2rem; }
.footer-inner { max-width: 44rem; margin: 0 auto; padding: 1.8rem var(--gutter) 2.2rem; text-align: center; color: var(--ink-soft); }
.footer-inner p { margin: 0 0 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; font-weight: 700; }

/* ---------- Card flipper (Rolodex) ---------- */
html.flipper-open { overflow: hidden; }
.flipper {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: min(34rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); overflow: visible;
}
.flipper::backdrop { background: rgba(43, 36, 51, 0.45); backdrop-filter: blur(3px); }
.flipper-inner {
  background: var(--page); border-radius: 30px; padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-height: calc(100dvh - 1.5rem); overflow: auto;
  border-top: 8px solid var(--yellow);
}
.flipper-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.flipper-head h2 { font-size: 1.35rem; margin: 0; flex: 1; }
.flipper-close {
  appearance: none; border: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; cursor: pointer;
  background: var(--pink-soft); color: var(--ink); font-size: 1.6rem; line-height: 1;
}
.rolodex { position: relative; padding: 1.2rem 0 1.4rem; perspective: 1100px; }
.rolodex-stack { top: 1.2rem !important; }
.rolodex-stack span {
  position: absolute; left: 5%; right: 5%; top: 0; bottom: 1.4rem; border-radius: 22px;
  background: var(--aqua); transform: translateY(-9px);
}
.rolodex-stack span + span { left: 10%; right: 10%; background: var(--yellow); transform: translateY(-18px); z-index: -1; }
.rolodex-stack { position: absolute; inset: 0; z-index: 0; }
.flip-card {
  position: relative; z-index: 1; min-height: 20rem; display: flex; flex-direction: column; align-items: flex-start;
  background: #ffffff; color: #2b2433; border-radius: 22px; padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 8px 24px rgba(43, 36, 51, 0.16);
  border-top: 14px solid var(--pink);
  transform-origin: 50% 100%;
  transition: transform 0.17s ease-in, opacity 0.17s ease-in;
  touch-action: pan-y;
}
.flip-card[data-tone="1"] { border-top-color: var(--aqua); }
.flip-card[data-tone="2"] { border-top-color: var(--yellow); }
.flip-notch {
  position: absolute; left: 50%; bottom: -1px; width: 3.4rem; height: 0.9rem; transform: translateX(-50%);
  background: var(--page); border-radius: 1rem 1rem 0 0;
}
.flip-card.is-flip-out-next { transform: rotateX(-80deg); opacity: 0; }
.flip-card.is-flip-out-prev { transform: rotateX(80deg); opacity: 0; }
.flip-card.is-flip-in-next { transform: rotateX(80deg); opacity: 0; transition: none; }
.flip-card.is-flip-in-prev { transform: rotateX(-80deg); opacity: 0; transition: none; }
.flip-topic {
  margin: 0 0 0.5rem; font-weight: 800; font-size: 0.8rem; background: #ffeef5; color: #2b2433;
  border-radius: 999px; padding: 0.1rem 0.65rem;
}
.flip-card[data-tone="1"] .flip-topic { background: #e9faf7; }
.flip-card[data-tone="2"] .flip-topic { background: #fffbe0; }
.flip-name { font-size: 1.8rem; margin: 0 0 0.5rem; color: #2b2433; }
.flip-idea { margin: 0 0 1.2rem; font-size: 1.12rem; color: #463d50; flex: 1; line-height: 1.55; padding-top: 0.6rem; border-top: 2px dashed #f3e4ee; width: 100%; }
.flip-copy { width: 100%; font-size: 1.2rem; padding: 0.95rem 1.2rem; }
.flip-copy.is-copied { background: var(--aqua); }
.flip-status { min-height: 1.3rem; margin: 0.45rem 0 0.2rem; font-size: 0.9rem; font-weight: 700; color: #6e6578; }
.flip-link { font-weight: 800; color: #b03a6e; }
.rolodex-rail {
  position: absolute; left: 12%; right: 12%; bottom: 0.35rem; height: 0.8rem; border-radius: 999px;
  background: var(--line); z-index: 2;
}
.rolodex-rail::before, .rolodex-rail::after {
  content: ""; position: absolute; top: 50%; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--pink); transform: translateY(-50%); box-shadow: var(--shadow-sm);
}
.rolodex-rail::before { left: -0.8rem; }
.rolodex-rail::after { right: -0.8rem; background: var(--aqua); }
.flipper-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.7rem; }
.flip-arrow {
  appearance: none; border: 0; cursor: pointer; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--yellow); color: var(--on-pastel); font-size: 2.2rem; line-height: 1; font-family: var(--display);
  box-shadow: 0 3px 0 rgba(43, 36, 51, 0.15); display: grid; place-items: center; padding-bottom: 0.2rem;
}
.flip-arrow:hover { background: var(--pink); }
.flip-count { margin: 0; font-weight: 800; color: var(--ink-soft); }
.flipper-help { margin: 0.8rem 0 0.2rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.flipper-idea-link { margin: 0; text-align: center; font-weight: 700; }

/* Mobile */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding: 1.4rem 1.2rem 1.6rem; text-align: center; }
  .hero-mascot { order: -1; }
  .mascot-btn { width: min(230px, 64vw); }
  .eureka-bubble { left: 4%; font-size: 1.15rem; }
  .hero-actions { justify-content: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  .idea-box { grid-template-columns: 1fr; padding: 1.3rem 1.1rem; }
}
@media (max-width: 640px) {
  .tt-strip { border-radius: 18px; padding: 0.7rem 0.9rem; max-width: none; }
  .tt-strip p { font-size: 0.98rem; }
  body { font-size: 1rem; }
  .header-inner { padding: 0.5rem 0.9rem; }
  .header-tools { display: contents; }
  .theme-toggle { order: 1; }
  .site-nav { order: 2; width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0.15rem; }
  .site-nav a { white-space: nowrap; }
  .site-nav a[href$="share.html"] { display: none; }
  .theme-toggle { flex-shrink: 0; font-size: 0.75rem; }
  .theme-btn { padding: 0.2rem 0.5rem; }
  .idea-row { grid-template-columns: 1fr !important; }
  .wordmark-text { font-size: 1.25rem; }
  .site-nav { font-size: 0.88rem; }
  .site-nav a { padding: 0.25rem 0.55rem; }
  .site-header { position: static; }
  .botpage-fields > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .copy-btn { position: static; margin-bottom: 0.5rem; }
  .instructions { padding-top: 0.9rem; }
  .flip-name { font-size: 1.5rem; }
  .flip-card { min-height: 18rem; padding: 1.2rem 1.1rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot-img, .eureka-bubble, .head-mascot { animation: none !important; }
  .bot-card, .topic-chip, .btn, .flip-card { transition: none !important; }
  .bot-card:hover, .topic-chip:hover, .btn:hover { transform: none; }
}

/* card polish */
.bot-card-task { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bot-card-soon::before { margin: -0.9rem -1.05rem 0.7rem; }
