/* Advent Calendar 24/25 — the same design as adventcalendar2048.com (copied from sites/adventcalendar2048/pages/src/site.css; only --hero differs). Keep both in step.
 * Palette and fonts: the owner's spec of 2026-12-02. Keep text contrast at WCAG AA and every control ≥ 44 px. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
}

:root {
  --ivory: #fbf3e4;
  --card: #fffaf0;
  --ink: #2b1a12;
  --muted: #6b5444;
  --line: #e8d9bf;
  --berry: #b3261e;
  --pine: #2f6b4a;
  --pine-deep: #1f3d2b;
  --honey: #e0a526;
  --gold: #f0c057;
  --blush: #f3c9b5;
  --sage: #c9d8b6;
  --wine: #5e1914;
  --on-dark: #fff8ea;
  --on-dark-soft: #e9dec8;
  --hero: var(--pine-deep);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  margin: 0;
  line-height: 1.1;
}
p {
  margin: 0;
}
a {
  color: var(--ink);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--pine);
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 12px 16px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- hero band (lights, header, first screen) ---------- */
.band {
  background: var(--hero);
  color: var(--on-dark);
}
.band a {
  color: var(--on-dark);
}
.lights {
  display: block;
  width: 100%;
  height: 40px;
}
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  background: var(--honey);
  color: var(--ink);
  border-radius: 8px;
  font: 800 13px/1 var(--serif);
}
.brand-name {
  font: 700 18px/1.2 var(--serif);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
}
.nav a:hover {
  background: rgba(255, 248, 234, 0.12);
  color: var(--on-dark);
}
.nav .sister {
  border: 1px solid rgba(255, 248, 234, 0.5);
}
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  padding-top: 32px;
  padding-bottom: 72px;
}
.hero-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: block;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--on-dark-soft);
  max-width: 520px;
}
.hero .small {
  font-size: 15px;
  color: var(--on-dark-soft);
  max-width: 520px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stat {
  flex: 1 1 120px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.stat b {
  font: 800 26px/1.15 var(--serif);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-gold {
  background: var(--honey);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--ink);
}
.btn-pine {
  background: var(--pine);
  color: #fff;
}
.btn-pine:hover {
  background: var(--pine-deep);
  color: #fff;
}
.btn-berry {
  background: var(--berry);
  color: #fff;
}
.btn-berry:hover {
  background: var(--wine);
  color: #fff;
}
.btn-line {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover {
  background: #fff;
  color: var(--ink);
}
.band .btn-gold,
.band .btn-gold:hover {
  color: var(--ink);
}

/* ---------- game panel ---------- */
.game {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 470px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.game a {
  color: var(--ink);
}
.game-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.game-head h2 {
  font-size: 23px;
  font-weight: 700;
}
.game-head p {
  font-size: 14px;
  color: var(--muted);
}
.game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e4edd9;
  color: #22543a;
}
.chip.neutral {
  background: #f3e8d4;
  color: var(--ink);
}
.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--pine-deep);
  padding: 8px;
  border-radius: 14px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.board:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}
.cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #2c5240;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 clamp(22px, 7vw, 34px) / 1 var(--serif);
}
.cell.big {
  font-size: clamp(17px, 5vw, 25px);
}
.cell.new {
  animation: pop 0.16s ease-out;
}
.cell.merged {
  animation: bump 0.16s ease-out;
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0.2;
  }
}
@keyframes bump {
  50% {
    transform: scale(1.1);
  }
}
.t2 {
  background: #fff8ea;
  color: var(--ink);
}
.t4 {
  background: #f6e3c0;
  color: var(--ink);
}
.t8 {
  background: #f2cc8a;
  color: var(--ink);
}
.t16 {
  background: #edb04f;
  color: var(--ink);
}
.t32 {
  background: #e58a3c;
  color: var(--ink);
}
.t64 {
  background: #c2452b;
  color: #fff8ea;
}
.t128 {
  background: #b3261e;
  color: #fff8ea;
}
.t256 {
  background: #8a1c22;
  color: #fff8ea;
}
.t512 {
  background: #5e1914;
  color: #fff8ea;
}
.t1024 {
  background: #2b1a12;
  color: #f0c057;
}
.t2048,
.tmax {
  background: #e0a526;
  color: #2b1a12;
  box-shadow: 0 0 0 2px #f0c057 inset;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.arrows {
  display: flex;
  gap: 8px;
}
.arrow {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.arrow:hover {
  background: #fff;
}
.arrow svg {
  width: 22px;
  height: 22px;
}
.note {
  font-size: 14px;
  color: var(--muted);
}
.result {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.result[hidden] {
  display: none;
}
.result.win {
  background: #e4edd9;
}
.result.lose {
  background: #f9e1d6;
}
.result h3 {
  font-size: 22px;
  font-weight: 800;
}
.result.win h3 {
  color: #22543a;
}
.result.lose h3 {
  color: #8e1c16;
}
.result .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.status {
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 600;
  color: #22543a;
}

/* ---------- sections ---------- */
.section {
  padding: 72px 0;
}
.section.alt {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.dark {
  background: var(--pine-deep);
  color: var(--on-dark);
}
.section.dark a {
  color: var(--on-dark);
}
.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin-bottom: 32px;
}
.section-head p {
  font-size: 18px;
  color: #4a382c;
}
.section.dark .section-head p {
  color: var(--on-dark-soft);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section.alt .card {
  background: var(--ivory);
}
.card h3 {
  font-size: 21px;
  font-weight: 700;
}
.card p {
  font-size: 16px;
  color: #4a382c;
}
.step-n {
  font: 800 34px/1 var(--serif);
  color: var(--berry);
}
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.split > * {
  flex: 1 1 380px;
  min-width: 0;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #8fb09a;
  font-size: 15px;
  font-weight: 500;
}
.sister-box {
  background: #f9e1d6;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.sister-box > div {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sister-box .eyebrow {
  color: #8e1c16;
}
.sister-box h2 {
  font-size: clamp(26px, 3.4vw, 38px);
}
.sister-box p {
  color: #4a382c;
}

/* ---------- doors ---------- */
.doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 760px) {
  .doors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.door {
  border-radius: 999px 999px 10px 10px;
  padding: 26px 6px 14px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--sans);
  width: 100%;
}
button.door {
  cursor: pointer;
}
button.door:disabled {
  cursor: default;
}
.door .n {
  font: 800 clamp(22px, 2.6vw, 32px) / 1 var(--serif);
}
.door .tag {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.door.c0 {
  background: var(--berry);
  color: var(--on-dark);
}
.door.c1 {
  background: var(--pine);
  color: var(--on-dark);
}
.door.c2 {
  background: var(--blush);
  color: var(--ink);
}
.door.c3 {
  background: var(--sage);
  color: var(--ink);
}
.door.open {
  background: var(--card);
  color: #22543a;
  border: 2px dashed var(--pine);
}
.door.today {
  background: var(--ink);
  color: var(--gold);
  border: 3px solid var(--honey);
}
.door.gold {
  background: var(--honey);
  color: var(--ink);
  border: 3px solid var(--gold);
}
.door.current {
  box-shadow:
    0 0 0 3px var(--card),
    0 0 0 6px var(--ink);
}
button.door:not(:disabled):hover {
  transform: translateY(-2px);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- faq & prose ---------- */
.faq {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 0;
  min-height: 44px;
}
.faq details p {
  padding: 0 0 18px;
  color: #4a382c;
}
.prose {
  max-width: 760px;
  padding: 56px 24px 80px;
  margin: 0 auto;
}
.prose h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
}
.prose h2 {
  font-size: 26px;
  margin: 36px 0 12px;
}
.prose p,
.prose li {
  color: #3d2c21;
}
.prose p + p {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose .updated {
  color: var(--muted);
  font-size: 15px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.page-band .top {
  padding-bottom: 16px;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--card);
}
.foot .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot p {
  font-size: 14px;
  color: var(--muted);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}
.foot .sister-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot nav a {
  min-width: 44px;
  justify-content: center;
}
.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font-weight: 600;
}
noscript p {
  background: #f9e1d6;
  padding: 14px;
  border-radius: 12px;
  color: var(--ink);
}
@media (max-width: 860px) {
  /* Phones and small tablets: the board right under the headline, the explanations after it. */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .hero-copy {
    display: contents;
  }
  .hero .eyebrow {
    order: 1;
  }
  .hero h1 {
    order: 2;
  }
  .hero .game {
    order: 3;
    max-width: none;
    flex: none;
  }
  .hero .lede {
    order: 4;
  }
  .hero .stats {
    order: 5;
  }
  .hero .small {
    order: 6;
  }
  /* 24/25: headline, pitch, buttons, then the sample calendar. */
  .hero .row {
    order: 4;
  }
  .hero .demo-wrap {
    order: 5;
    flex: none;
  }
  .stat {
    flex-basis: 90px;
  }
}
@media (max-width: 560px) {
  .hero {
    padding-top: 12px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .nav a {
    padding: 0 10px;
  }
  .game {
    padding: 14px;
  }
  .section {
    padding: 56px 0;
  }
  .sister-box {
    padding: 24px;
  }
  .lede {
    font-size: 18px;
  }
}

/* ---------- 24/25: maker, editor, recipient, edit page ---------- */
.app-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 120px;
}
.app-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.app-head h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label,
.editor label {
  font-weight: 600;
  font-size: 15px;
}
input[type='text'],
input[type='date'],
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9b79a;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 46px;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  align-items: center;
}
.quick button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.maker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .maker-grid {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.panel-head h2 {
  font-size: 24px;
}
.editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.editor-head h3 {
  font-size: 24px;
}
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kind {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--card);
  cursor: pointer;
  font-weight: 600 !important;
}
.kind input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.kind.on {
  background: var(--pine-deep);
  color: #fff;
}
.kind:focus-within {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  background: #f3e8d4;
  border-radius: 12px;
  padding: 10px 14px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--pine);
}
.target {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.target select {
  width: auto;
}
.photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.photo-row:empty {
  display: none;
}
.photo-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}
.consent {
  font-size: 14px;
  color: var(--muted);
}
.create-box {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.status {
  min-height: 1.4em;
  font-weight: 600;
  color: #22543a;
}
.linkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.linkbox input {
  flex: 1 1 260px;
  font-size: 15px;
}
.door-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.door-content h3 {
  font-size: 26px;
}
.door-content p {
  white-space: pre-line;
}
.door-content .eyebrow {
  color: var(--berry);
}
.door-photo {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  background: #f3e8d4;
}
.ticket {
  border: 2px dashed var(--berry);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ticket-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
}
.kind-challenge {
  border-left: 6px solid var(--honey);
  padding-left: 16px;
}
.lock-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 480px;
  width: calc(100% - 24px);
}
.lock-dialog::backdrop {
  background: rgba(31, 22, 15, 0.7);
}
.lock-dialog .game {
  max-width: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: 12px;
  max-width: calc(100% - 32px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.bad {
  background: #8e1c16;
}
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pine-deep);
  color: var(--on-dark);
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 40;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}
.cta-bar p {
  font-size: 15px;
}
.made-with {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}
.demo-wrap {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-wrap .doors {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.demo-wrap .door {
  min-height: 70px;
  padding: 16px 4px 8px;
}
.demo-wrap .door .n {
  font-size: 22px;
}
.demo-wrap .door .tag {
  font-size: 11px;
}
.demo-panel {
  min-height: 120px;
  background: var(--ivory);
  border-radius: 14px;
  padding: 16px;
}
.kinds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.ideas-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ideas-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.ideas-list .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--berry);
}
.ideas-list b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  margin: 4px 0;
}
[hidden] {
  display: none !important;
}
