/* Scratch That. Bright colors only: no cream, beige, ivory or off-white. Pure white is fine. */

@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink: #ff3d8b;
  --purple: #7b2ff7;
  --yellow: #ffd23f;
  --teal: #00c2a8;
  --sky: #4cc9f0;
  --orange: #ff9f1c;
  --ink: #1a1033;
  --ink-2: #4a3f6b;
  --line: #e4dcff;
  --white: #ffffff;
  --danger: #e0144c;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(60, 20, 120, 0.18);
  --font-fun: 'Fredoka', 'Arial Rounded MT Bold', ui-rounded, system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img,
svg {
  display: block;
}
a {
  color: var(--purple);
}
h1,
h2,
h3,
.fun {
  font-family: var(--font-fun);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
}
h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(720px, 100% - 32px);
  margin-inline: auto;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* Header and footer ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--teal), var(--sky), var(--purple)) 1;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}
.logo {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  width: 30px;
  height: 30px;
}
.site-footer {
  margin-top: 64px;
  padding: 36px 0 48px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--yellow);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.test-banner {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--pink);
  --btn-ink: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--purple {
  --btn-bg: var(--purple);
}
.btn--yellow {
  --btn-bg: var(--yellow);
  --btn-ink: var(--ink);
}
.btn--teal {
  --btn-bg: var(--teal);
  --btn-ink: #ffffff;
}
.btn--white {
  --btn-bg: #ffffff;
  --btn-ink: var(--ink);
}
.btn--outline {
  --btn-bg: #ffffff;
  --btn-ink: var(--purple);
  box-shadow: inset 0 0 0 3px var(--purple);
}
.btn--small {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

/* Landing ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: url('/art/birthday.svg'), linear-gradient(135deg, #ff3d8b 0%, #b13cf2 55%, #7b2ff7 100%);
  background-size: 300px 300px, cover;
  padding: 44px 0 56px;
}
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
  .hero {
    padding: 70px 0 84px;
  }
}
.hero p.lead {
  font-size: 1.2rem;
  max-width: 34ch;
}
.hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}
.hero .price-note {
  font-weight: 600;
  opacity: 0.95;
}
.section {
  padding: 56px 0 8px;
}
.section-title {
  text-align: center;
  margin-bottom: 28px;
}
.section-title p {
  color: var(--ink-2);
  max-width: 54ch;
  margin-inline: auto;
}
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  color: #ffffff;
}
.step:nth-child(1) {
  background: var(--pink);
}
.step:nth-child(2) {
  background: var(--purple);
}
.step:nth-child(3) {
  background: var(--teal);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.step p {
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
}
.chips li:nth-child(6n + 1) {
  background: var(--pink);
}
.chips li:nth-child(6n + 2) {
  background: var(--orange);
}
.chips li:nth-child(6n + 3) {
  background: var(--teal);
}
.chips li:nth-child(6n + 4) {
  background: var(--purple);
}
.chips li:nth-child(6n + 5) {
  background: var(--sky);
  color: var(--ink);
}
.chips li:nth-child(6n + 6) {
  background: var(--yellow);
  color: var(--ink);
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .theme-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.theme-tile {
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  padding: 12px;
  border-radius: 18px;
  background-image: var(--art), var(--bg);
  background-size: 180px 180px, cover;
  color: var(--ink-on);
  text-decoration: none;
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.theme-tile span {
  background: #ffffff;
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.prices {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .prices {
    grid-template-columns: 1fr 1fr;
  }
}
.price-card {
  padding: 26px;
  border-radius: var(--radius);
  border: 3px solid var(--line);
  background: #ffffff;
  text-align: center;
}
.price-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow);
}
.price-card .amount {
  font-family: var(--font-fun);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin: 8px 0 6px;
}
.price-card s {
  color: var(--ink-2);
  font-size: 1.1rem;
  margin-right: 6px;
}
.price-card ul {
  text-align: left;
  padding-left: 1.2em;
  margin: 14px 0 18px;
}
.faq details {
  border-radius: 16px;
  border: 2px solid var(--line);
  margin-bottom: 12px;
  background: #ffffff;
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  float: right;
  font-family: var(--font-fun);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pink);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  padding: 0 18px 16px;
  margin: 0;
}
.cta-band {
  margin-top: 56px;
  padding: 44px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color: #ffffff;
}

/* Reveal card (shared by demo, preview and recipient) -------------------- */
.reveal-card {
  --bg: linear-gradient(160deg, #ff5fa2, #4cc9f0);
  --art: none;
  --ink-on: #ffffff;
  --card: #ffffff;
  --card-ink: #b5176a;
  --accent: #3ddc97;
  --accent-ink: #0b3d2a;
  position: relative;
  border-radius: 28px;
  padding: 22px 18px 20px;
  background-image: var(--art), var(--bg);
  background-size: 260px 260px, cover;
  color: var(--ink-on);
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.reveal-card .rc-to {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0 0 2px;
}
.reveal-card .rc-headline {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  margin: 0 0 14px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}
.scratch {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  color: var(--card-ink);
  aspect-ratio: 5 / 3;
  max-width: 460px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}
.scratch__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px 18px;
}
.scratch__surprise {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: clamp(1.25rem, 5.4vw, 1.9rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.scratch canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.6s ease;
}
.scratch canvas:active {
  cursor: grabbing;
}
.scratch.is-revealed canvas {
  opacity: 0;
  pointer-events: none;
}
.rc-sticker {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 16px auto 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  transform: scale(0);
  opacity: 0;
}
.rc-sticker svg {
  width: 40px;
  height: 40px;
}
.rc-after {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.rc-detail {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px auto 4px;
  max-width: 34ch;
  overflow-wrap: anywhere;
}
.rc-from {
  font-family: var(--font-fun);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 6px 0 0;
}
.reveal-card.is-revealed .rc-sticker {
  animation: pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}
.reveal-card.is-revealed .rc-after {
  opacity: 1;
  transform: none;
}
.reveal-card.is-revealed .rc-hint {
  visibility: hidden;
}
.rc-hint {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.rc-hint .linkish {
  color: inherit;
}
@keyframes pop {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-card.is-revealed .rc-sticker {
    animation: fadein 0.8s ease forwards;
  }
  .rc-after,
  .scratch canvas {
    transition-duration: 0.9s;
  }
  @keyframes fadein {
    from {
      opacity: 0;
      transform: scale(1);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* Builder ---------------------------------------------------------------- */
.page-head {
  padding: 30px 0 8px;
}
.page-head p {
  color: var(--ink-2);
}
.builder {
  display: grid;
  gap: 28px;
  align-items: start;
}
@media (min-width: 960px) {
  .builder {
    grid-template-columns: 1fr 440px;
  }
  .builder .preview-col {
    position: sticky;
    top: 82px;
  }
}
.field {
  margin-bottom: 18px;
}
.field label,
.field .label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  margin-bottom: 6px;
}
.field .count {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.field .hint {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 4px 0 0;
}
input[type='text'],
input[type='datetime-local'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.18);
}
textarea {
  resize: vertical;
  min-height: 84px;
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}
.error {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 6px 0 0;
}
.error:empty {
  display: none;
}
.form-card {
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 3px solid var(--line);
  background: #ffffff;
  margin-bottom: 20px;
}
.form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.row2 {
  display: grid;
  gap: 0 14px;
}
@media (min-width: 560px) {
  .row2 {
    grid-template-columns: 1fr 1fr;
  }
}
.theme-picker,
.sticker-picker,
.product-picker {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}
.theme-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 560px) {
  .theme-picker {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sticker-picker {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice .face {
  display: flex;
  align-items: flex-end;
  min-height: 68px;
  padding: 8px;
  border-radius: 14px;
  background-image: var(--art), var(--bg);
  background-size: 120px 120px, cover;
  border: 3px solid transparent;
  box-shadow: 0 0 0 2px var(--line);
}
.choice .face span {
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 9px;
}
.sticker-picker .face {
  min-height: 0;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--purple);
}
.sticker-picker .face svg {
  width: 26px;
  height: 26px;
}
.choice input:checked + .face {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--purple);
}
.choice input:focus-visible + .face {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}
.sticker-picker .choice input:checked + .face {
  background: var(--purple);
  color: #ffffff;
}
.product-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-picker .face {
  display: block;
  min-height: 0;
  padding: 14px;
  background: #ffffff;
  text-align: center;
}
.product-picker .face strong {
  display: block;
  font-family: var(--font-fun);
  font-size: 1.6rem;
  color: var(--purple);
}
.product-picker .face small {
  display: block;
  color: var(--ink-2);
  font-weight: 600;
}
.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--purple);
}
.unlock-fields[hidden] {
  display: none;
}
.credit-banner,
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 18px;
}
.notice--warn {
  background: var(--yellow);
  color: var(--ink);
}
.notice--pink {
  background: var(--pink);
}
.form-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 600;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.turnstile-box {
  min-height: 70px;
  margin: 14px 0 8px;
}
.preview-label {
  font-family: var(--font-fun);
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  margin: 0 0 10px;
}
.preview-col .reveal-card {
  min-height: 440px;
}

/* Done page -------------------------------------------------------------- */
.done-hero {
  text-align: center;
  padding: 34px 0 10px;
}
.wrapping {
  text-align: center;
  padding: 80px 0;
}
.spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 8px solid var(--line);
  border-top-color: var(--pink);
  border-right-color: var(--purple);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.share-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0 14px;
}
.share-box input {
  flex: 1;
  font-weight: 600;
  min-width: 0;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button-row .btn {
  flex: 1 1 140px;
}
.status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--sky);
  color: var(--ink);
}
.status-pill.opened {
  background: var(--teal);
  color: #ffffff;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}
.kv dt {
  font-weight: 700;
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Recipient -------------------------------------------------------------- */
.recipient {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image: var(--art), var(--bg);
  background-size: 300px 300px, cover;
  background-attachment: scroll;
  color: var(--ink-on);
}
.recipient main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.recipient .stage {
  width: min(480px, 100%);
  text-align: center;
}
.recipient .reveal-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.cover h1 {
  font-size: clamp(2rem, 9vw, 3rem);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.14);
}
.cover .gift-icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 36px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.15);
  animation: wiggle 2.4s ease-in-out infinite;
}
.cover .gift-icon svg {
  width: 64px;
  height: 64px;
}
@keyframes wiggle {
  0%,
  80%,
  100% {
    transform: rotate(0);
  }
  85% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(8deg);
  }
  95% {
    transform: rotate(-4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cover .gift-icon {
    animation: none;
  }
}
.cover .btn {
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  font-size: 1.35rem;
  min-height: 62px;
  padding-inline: 38px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}
.countdown div {
  min-width: 70px;
  padding: 10px 6px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--card-ink);
}
.countdown b {
  display: block;
  font-family: var(--font-fun);
  font-size: 2rem;
  line-height: 1;
}
.countdown small {
  font-weight: 700;
  font-size: 0.8rem;
}
.recipient-footer {
  padding: 18px 16px 26px;
  text-align: center;
  font-size: 0.95rem;
}
.recipient-footer a,
.recipient-footer button {
  color: inherit;
  font-weight: 700;
}
.recipient-footer .make-own {
  display: inline-block;
  margin-bottom: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}
.sound-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  padding: 8px 60px 8px 12px;
  font-size: 0.92rem;
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 22px;
  width: min(420px, 100% - 32px);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(26, 16, 51, 0.6);
}
.radio-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-weight: 600;
}
.radio-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--purple);
}
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

/* Legal and simple pages ------------------------------------------------- */
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.6em;
}
.prose ul {
  padding-left: 1.3em;
}
.ended {
  text-align: center;
  padding: 80px 0;
}

/* Admin ------------------------------------------------------------------ */
.admin table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin th,
.admin td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
.admin .stat {
  padding: 14px;
  border-radius: 16px;
  background: var(--purple);
  color: #ffffff;
}
.admin .stat b {
  display: block;
  font-family: var(--font-fun);
  font-size: 1.9rem;
}
.admin .scroll {
  overflow-x: auto;
}

/* Grid and fieldset overflow fixes on small screens */
.builder > *,
fieldset {
  min-width: 0;
}
.preview-jump {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 15;
  box-shadow: 0 6px 18px rgba(60, 20, 120, 0.35);
}
@media (min-width: 960px) {
  .preview-jump {
    display: none;
  }
}
.preview-col {
  scroll-margin-top: 76px;
}
