:root {
  --background: #eef7f0;
  --ink: #163d28;
  --muted: #5b7464;
  --brand: #2f9e5b;
  --brand-ink: #1f7a45;
  --brand-soft: #d8f3e2;
  --accent: #f97316;
  --surface: #ffffff;
  --wash: #f4faf6;
  --line: #d5e8db;
  --font-display: "Outfit", system-ui, "Segoe UI", sans-serif;
  --font-body: "Figtree", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(143, 219, 99, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(249, 115, 22, 0.12), transparent 45%),
    linear-gradient(180deg, #eef7f0 0%, #f7fbf8 45%, #eaf6ee 100%);
}

::selection { background: rgba(47, 158, 91, 0.22); }

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.site-main { flex: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
  }
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 4rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; transition: transform 0.3s; }
.brand:hover { transform: scale(1.02); }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-desktop a,
.nav-mobile a {
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-desktop a.active,
.nav-mobile a.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.nav-desktop a:hover { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); color: var(--ink); }

.nav-mobile {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
  .header-inner { padding: 0 1.5rem; }
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--brand-ink);
  font-weight: 600;
}

.footer-links a:hover { text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  color: var(--ink);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-md { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 158, 91, 0.28);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-ink); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover:not(:disabled) { background: var(--wash); }

.btn-ghost {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.btn-ghost:hover:not(:disabled) { background: var(--brand); color: #fff; }

.btn-danger {
  background: #fff;
  color: #e11d48;
  border: 1px solid var(--line);
}
.btn-danger:hover:not(:disabled) { background: #fff1f2; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.wrap-narrow { max-width: 56rem; }
.wrap-mid { max-width: 48rem; }

@media (min-width: 640px) {
  .wrap { padding: 2.5rem 1.5rem; }
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-title {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
}

.page-lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(47, 158, 91, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 158, 91, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-grid { padding: 4rem 1.5rem 6rem; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  margin: 1rem 0 0;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
}

.hero-title span { color: var(--brand); }

.hero-copy {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 219, 99, 0.45), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: min(300px, 80vw);
  height: auto;
  animation: float-soft 4.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-glow { display: none; }
  .hero-logo { animation: none; }
  .example-card { backdrop-filter: none; }
}

.example-card {
  position: relative;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: color-mix(in srgb, #fff 90%, transparent);
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(22, 61, 40, 0.1);
  backdrop-filter: blur(8px);
}

.example-card p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.example-card ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.example-card li {
  font-size: 0.875rem;
  font-weight: 600;
}

.feature-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(22, 61, 40, 0.06);
}

.surface-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.surface-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.template-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(22, 61, 40, 0.1);
}

.template-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.template-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--brand-soft);
  font-size: 1.5rem;
}

.template-cat {
  align-self: flex-start;
  border-radius: 999px;
  background: var(--wash);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.template-flow {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
}

.template-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.band {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  padding: 3.5rem 0;
}

.cta-banner {
  border: 1px solid var(--brand);
  border-radius: 2rem;
  background: linear-gradient(135deg, #2f9e5b, #1f7a45);
  color: #fff;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }
}

.cta-banner h2 { margin: 0; color: #fff; font-size: 1.75rem; }
.cta-banner p { margin: 0.5rem 0 0; color: rgba(255,255,255,0.85); max-width: 36rem; }
.cta-banner .btn { background: #fff; color: var(--brand-ink); }

.create-options {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .create-options { grid-template-columns: 1fr 1fr; }
}

.choice-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  padding: 1.5rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-shadow: 0 10px 40px rgba(22, 61, 40, 0.06);
  transition: transform 0.2s, border-color 0.2s;
}

.choice-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.choice-card.featured {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.choice-card .label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.choice-card h2 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
}

.choice-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover { background: var(--brand-soft); }

.studio-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .studio-layout { grid-template-columns: 1.15fr 0.85fr; }
}

.studio-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .studio-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.studio-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.flash {
  margin-bottom: 1rem;
  border: 1px solid var(--brand);
  border-radius: 1rem;
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.mobile-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--wash);
}

.mobile-tabs button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 0.5rem;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  text-transform: capitalize;
}

.mobile-tabs button.active {
  background: var(--brand);
  color: #fff;
}

@media (min-width: 640px) {
  .mobile-tabs { display: none; }
  .tab-panel,
  .tab-panel.hidden { display: block !important; }
}

.spin-stage {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  padding: 1.25rem;
  padding-top: 3.25rem;
  box-shadow: 0 16px 50px rgba(22, 61, 40, 0.08);
}

@media (min-width: 640px) {
  .spin-stage { padding: 2rem; padding-top: 3.5rem; }
}

.focus-icon-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 61, 40, 0.08);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.focus-icon-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.wheel-stage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.stage-mascot-wrap {
  display: block;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transform-origin: center bottom;
}

@media (min-width: 640px) {
  .stage-mascot-wrap {
    width: 124px;
    height: 124px;
  }
}

.stage-mascot {
  display: block;
  width: 118%;
  height: 118%;
  margin: -9%;
  object-fit: cover;
  object-position: center 42%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
  user-select: none;
}

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.flow-step {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--wash);
  color: var(--muted);
}

.flow-step.current { background: var(--accent); color: #fff; }
.flow-step.done { background: var(--brand); color: #fff; }
.flow-arrow { color: var(--muted); }

.wheel-title {
  text-align: center;
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.wheel-wrap {
  position: relative;
  margin: 0 auto;
  width: min(360px, 86vw);
  aspect-ratio: 1;
}

.wheel-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translate(-50%, -2px);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.wheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(22, 61, 40, 0.18);
  outline: 4px solid #fff;
}

.spin-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.spin-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.spin-hint {
  max-width: 28rem;
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.45;
}

.stage-toolbar {
  display: none;
}

.partial-result {
  width: 100%;
  max-width: 28rem;
}

#studio-root.studio-root-focus {
  display: block;
}

body.wl-spinner-focus {
  overflow: hidden;
}

body.wl-spinner-focus .site-footer {
  display: none !important;
}

body.wl-spinner-focus .site-main {
  min-height: calc(100vh - 4rem);
}

body.wl-spinner-focus .nav-mobile {
  display: none !important;
}

body.wl-spinner-focus .studio-head,
body.wl-spinner-focus .mobile-tabs,
body.wl-spinner-focus .section-space,
body.wl-spinner-focus [data-panel="edit"],
body.wl-spinner-focus .focus-hidden {
  display: none !important;
}

body.wl-spinner-focus [data-panel="spin"] {
  display: block !important;
}

body.wl-spinner-focus .studio-layout {
  grid-template-columns: 1fr !important;
  gap: 0;
}

.wrap-focus {
  max-width: none !important;
  width: 100%;
  padding: 0.75rem 1rem 1rem !important;
  min-height: calc(100vh - 4.5rem);
}

.studio-layout-focus {
  grid-template-columns: 1fr !important;
}

.spin-stage-focus {
  min-height: calc(100vh - 5.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 1.25rem;
  padding: 1.5rem 1rem 2rem !important;
}

.wheel-wrap-focus {
  width: min(520px, 72vw) !important;
}

@media (min-width: 900px) {
  .wheel-wrap-focus {
    width: min(560px, 58vh) !important;
  }
}

body.wl-spinner-focus .focus-icon-btn {
  position: fixed;
  top: calc(4rem + 0.75rem);
  right: 1rem;
  z-index: 60;
}

.result-card {
  width: 100%;
  max-width: 28rem;
  border: 1px solid var(--brand);
  border-radius: 1.5rem;
  background: var(--brand-soft);
  padding: 1.25rem;
  text-align: left;
}

.result-card .label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.result-row span:first-child { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.result-row strong { color: var(--ink); }

.editor-panel .field { margin-bottom: 1.25rem; }

.editor-panel label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.input:focus,
.textarea:focus { box-shadow: 0 0 0 2px var(--brand); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 1.125rem;
}

.wheel-list { display: grid; gap: 0.5rem; }

.wheel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
  padding: 0.5rem 0.75rem;
}

.wheel-item.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.wheel-item button.select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.wheel-item .name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel-item .meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.icon-btn {
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover { background: #fff; }
.icon-btn.danger { color: #e11d48; }

.option-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.option-row .icon-input {
  width: 3.5rem;
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.option-row .color-input {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
}

.theme-btn {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
  padding: 0.5rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.theme-btn.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.swatches { display: flex; gap: 0.25rem; margin-bottom: 0.35rem; }
.swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
}

.theme-btn span {
  font-size: 0.75rem;
  font-weight: 700;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toggle {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--wash);
  color: var(--muted);
}

.toggle.on {
  background: var(--brand);
  color: #fff;
}

.history-list {
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
  padding: 1rem;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.history-meta strong {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.history-meta time { color: var(--muted); }

.empty {
  border: 1px dashed var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty h2 { margin: 0; font-size: 1.25rem; }
.empty p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.875rem; }
.empty .actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.muted { color: var(--muted); }
.section-space { margin-top: 2rem; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .animate-bounce { animation: none !important; }
  html { scroll-behavior: auto; }
}

@keyframes lizard-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

.animate-bounce { animation: lizard-bounce 0.7s ease-in-out infinite; }

.hidden { display: none !important; }

details.bulk {
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--wash);
  padding: 0.75rem;
}

details.bulk summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumbs a { color: var(--brand-ink); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-card-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.blog-card-title a:hover { color: var(--brand-ink); }

.blog-card-foot {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-hero { margin-bottom: 1.5rem; }

.blog-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.blog-figure {
  margin: 0 0 2rem;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--wash);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(22, 61, 40, 0.06);
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.blog-card-image {
  display: block;
  margin: 0 0 0.85rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.blog-content > :first-child { margin-top: 0; }

.blog-content h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.blog-content h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
}

.blog-content p { margin: 0 0 1.1rem; }

.blog-content a {
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.blog-content li { margin: 0.4rem 0; }

.blog-content strong { font-weight: 700; }

.blog-cta {
  margin-top: 2.5rem;
}

.blog-cta h2 {
  margin: 0;
  font-size: 1.35rem;
}

.blog-cta p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.home-blog-list {
  display: grid;
  gap: 1rem;
}

/* Homepage instant spinner playground */
.home-spinner-section {
  width: 100%;
  padding: 0.5rem 0 2rem;
}

.home-spinner-root {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-playground {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 5.5rem);
  padding: 0.75rem 1rem 1.25rem;
  box-sizing: border-box;
}

.home-playground-loading {
  min-height: 24rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  margin: 0.75rem 1rem;
}

.home-stage {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.home-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.home-stage-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
}

.home-stage-flow {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.home-wheel-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.home-wheel-tab {
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.home-wheel-tab.active {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-color: transparent;
}

.home-wheel-tab.done {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: var(--brand-ink);
}

.home-wheel-tab:disabled {
  cursor: default;
  opacity: 0.85;
}

.home-wheel-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  flex: 1;
  width: 100%;
}

.home-wheel-wrap {
  position: relative;
  width: min(100%, 92vw, 640px);
  aspect-ratio: 1;
}

.home-wheel-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--brand);
  transform: translate(-50%, -2px);
  filter: drop-shadow(0 2px 4px rgba(22, 61, 40, 0.2));
}

.home-wheel-hit {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.home-wheel-hit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.home-wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(22, 61, 40, 0.12));
  transition: filter 0.2s;
}

.home-wheel-hit:hover .home-wheel-svg {
  filter: drop-shadow(0 16px 32px rgba(22, 61, 40, 0.16));
}

.home-wheel-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--wash);
  font-weight: 600;
}

.home-wheel-cta {
  position: absolute;
  inset: 42% 28%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--brand-ink);
  pointer-events: none;
  text-shadow: 0 1px 0 #fff;
}

.home-result {
  width: min(100%, 36rem);
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--wash);
  padding: 0.9rem 1.1rem;
  text-align: center;
}

.home-result-idle {
  color: var(--muted);
}

.home-result-idle p,
.home-result-label,
.home-result-value {
  margin: 0;
}

.home-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.home-result-value {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.home-result-final {
  background: var(--brand-soft);
  border-color: transparent;
}

.home-picks {
  width: min(100%, 36rem);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.home-picks li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.home-picks span { color: var(--muted); }

.home-stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.home-sidebar {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  width: 100%;
}

.home-sidebar-block {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--surface);
  padding: 0.95rem;
  box-shadow: 0 10px 30px rgba(22, 61, 40, 0.05);
}

.home-sidebar-block h2 {
  margin: 0;
  font-size: 1.05rem;
}

.home-sidebar-block > .muted {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.85rem;
}

.home-sidebar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.home-preset-list {
  display: grid;
  gap: 0.4rem;
  max-height: 16rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.home-preset {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 0.9rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.home-preset:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-1px);
}

.home-preset.active {
  background: var(--brand-soft);
  border-color: transparent;
}

.home-preset-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.home-preset-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.home-preset-copy strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.home-preset-copy span {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-entries {
  width: 100%;
  min-height: 12rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
}

.home-entries:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 1px;
}

.home-entries-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}

@media (min-width: 900px) {
  .home-playground {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem 1.25rem;
    padding: 0.5rem 1rem 1.25rem 0.75rem;
  }

  .home-stage {
    padding: 0.35rem 0.5rem 1rem 0.25rem;
  }

  .home-wheel-wrap {
    width: min(100%, 68vmin, 680px);
  }

  .home-sidebar {
    position: sticky;
    top: 4.75rem;
    max-height: calc(100vh - 5.5rem);
    overflow: auto;
    padding-bottom: 0.5rem;
  }

  .home-preset-list {
    max-height: min(32vh, 18rem);
  }

  .home-entries {
    min-height: 11rem;
  }
}

@media (min-width: 1200px) {
  .home-playground {
    grid-template-columns: minmax(0, 1fr) 340px;
    padding: 0.5rem 1.25rem 1.5rem 1rem;
  }

  .home-wheel-wrap {
    width: min(100%, 74vmin, 720px);
  }

  .home-preset-list {
    max-height: min(36vh, 22rem);
  }

  .home-entries {
    min-height: 13rem;
  }
}

@media (min-width: 1500px) {
  .home-playground {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .home-wheel-wrap {
    width: min(100%, 78vmin, 780px);
  }
}

