:root {
  --ink: #0c2748;
  --cream: #fff8ee;
  --paper: #fffdf9;
  --pink: #f29ab1;
  --pink-dark: #df708d;
  --blue: #bfe5eb;
  --blue-dark: #6ebbc8;
  --peach: #ffd1b6;
  --yellow: #ffe1a3;
  --lavender: #d9d6ee;
  --mint: #c8e6df;
  --muted: #67768b;
  --border: #efc1ad;
  --shadow: 0 28px 80px rgba(39, 62, 84, .16);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #cbe9ee; font-family: "Baloo 2", system-ui, sans-serif; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.page-shell { padding: clamp(14px, 3vw, 42px); background: radial-gradient(circle at 0 0, #fbd0b2 0 7%, transparent 7.2%), radial-gradient(circle at 100% 0, #ffd8bf 0 8%, transparent 8.2%), #cbe9ee; }
.raffle-card { position: relative; max-width: 1120px; margin: auto; overflow: hidden; border: 2px solid rgba(255,255,255,.72); border-radius: 42px; background: var(--cream); box-shadow: var(--shadow); }
.raffle-card::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: radial-gradient(#0c2748 0.7px, transparent 0.7px); background-size: 12px 12px; }
.doodle { position: absolute; z-index: 3; font-family: Caveat, cursive; font-size: 54px; transform: rotate(-11deg); }
.doodle-heart { left: 3%; top: 240px; color: var(--pink-dark); }
.doodle-paw { right: 3%; top: 38px; font-size: 30px; transform: rotate(15deg); }

.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; min-height: 360px; align-items: center; padding: 42px 54px 24px; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 62%; height: 170px; left: 3%; top: 155px; border-radius: 50%; background: #f5a0b5; transform: rotate(-2deg); opacity: .92; }
.eyebrow { width: fit-content; margin: 0 0 5px; padding: 5px 14px; border-radius: 999px; background: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-family: Caveat, cursive; font-size: clamp(64px, 9vw, 112px); line-height: .75; letter-spacing: -.045em; transform: rotate(-2deg); }
h1 span { display: block; margin-left: 110px; color: var(--pink-dark); font-size: .54em; line-height: 1.05; }
.prize-brush { display: inline-block; margin: 22px 0 2px; padding: 0 28px; color: #111; font-size: clamp(48px, 7vw, 82px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; transform: rotate(-1deg); }
.hero-note { max-width: 500px; margin: 12px 0 0; font-family: Caveat, cursive; font-size: 30px; font-weight: 700; line-height: 1; }
.kitten-wrap { position: relative; align-self: end; height: 330px; display: flex; align-items: flex-end; justify-content: center; }
.kitten-wrap::before { content: ""; position: absolute; inset: 40px 8px 12px; border-radius: 47% 53% 46% 54%; background: #111; transform: rotate(6deg); }
.kitten-wrap img { position: relative; z-index: 2; width: min(100%, 370px); max-height: 330px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(20,32,40,.14)); }
.crown { position: absolute; z-index: 4; top: 8px; left: 12%; font-family: Caveat, cursive; font-size: 65px; transform: rotate(-15deg); }

.info-strip { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1fr 1.25fr; gap: 14px; padding: 8px 34px 20px; }
.price-card, .date-card, .draw-card { display: flex; align-items: center; gap: 13px; min-height: 105px; padding: 15px 17px; border: 2px solid #f0bda8; border-radius: 26px; background: rgba(255,255,255,.78); box-shadow: 0 8px 0 rgba(243,192,170,.35); }
.price-card { background: #d5eef2; transform: rotate(-1deg); }
.icon-bubble { display: grid; flex: 0 0 52px; height: 52px; place-items: center; border-radius: 50%; background: #fff; font-size: 25px; }
.icon-bubble.yellow { background: var(--yellow); }
.icon-bubble.pink { background: #ffd9e2; }
.info-strip small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.info-strip strong { display: block; font-size: clamp(24px, 3vw, 34px); line-height: 1; }
.date-card strong, .draw-card strong { font-size: 18px; line-height: 1.05; }
.date-card p, .draw-card p { margin: 2px 0 0; font-family: Caveat, cursive; font-size: 19px; font-weight: 700; line-height: 1; }

.payment-panel { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 5px 34px 22px; padding: 18px 22px; border: 2px solid var(--ink); border-radius: 25px; color: var(--ink); background: #ffe4b0; box-shadow: 0 8px 0 rgba(12,39,72,.1); }
.payment-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: 30px; font-weight: 800; }
.payment-copy h2 { font-size: clamp(22px, 3vw, 31px); }
.payment-copy > p:last-child { margin: 5px 0 0; font-size: 15px; }
.payment-copy strong { font-size: 18px; white-space: nowrap; }
.copy-payment-button { border: 2px solid var(--ink); border-radius: 14px; padding: 10px 15px; color: var(--ink); background: white; cursor: pointer; font-weight: 800; }
.copy-payment-button:hover { color: white; background: var(--ink); }

.board-section { position: relative; z-index: 2; margin: 0 34px; padding: 24px; border: 3px solid var(--border); border-radius: 32px; background: rgba(255,255,255,.7); }
.board-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.step { margin: 0; color: var(--pink-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; }
.available-dot { border: 2px solid var(--blue-dark); background: white; }
.selected-dot { background: var(--pink-dark); }
.reserved-dot { background: #b8c1ca; }
.paid-dot { background: #65b7a3; }
.number-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 9px; }
.number-button { position: relative; aspect-ratio: 1; min-width: 0; border: 0; border-radius: 39% 45% 38% 46%; color: var(--ink); background: var(--blue); cursor: pointer; font-size: clamp(15px, 2.1vw, 25px); font-weight: 800; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.number-button::before { content: "🐾"; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); font-size: clamp(8px, 1.1vw, 13px); filter: grayscale(.25); opacity: .72; }
.number-button:hover:not(:disabled) { transform: translateY(-3px) rotate(-2deg); filter: saturate(1.15); box-shadow: 0 8px 14px rgba(37,61,85,.16); }
.number-button.selected { color: white; background: var(--pink-dark); transform: translateY(-3px) scale(1.05); box-shadow: 0 7px 16px rgba(223,112,141,.35); }
.number-button:disabled { color: #82909e; background: #e5e8e9; cursor: not-allowed; text-decoration: line-through; opacity: .68; }
.number-button.paid { color: white; background: #65b7a3; text-decoration: none; opacity: 1; }
.number-button:focus-visible, .primary-button:focus-visible, input:focus-visible { outline: 4px solid rgba(12,39,72,.25); outline-offset: 2px; }

.selection-card { position: sticky; z-index: 5; bottom: 15px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 20px; margin: 22px 34px; padding: 15px 18px 15px 24px; border: 2px solid var(--ink); border-radius: 24px; color: white; background: var(--ink); box-shadow: 0 14px 34px rgba(12,39,72,.22); }
.selection-copy > p { margin: 0 0 3px; color: #bfe5eb; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.selected-list { display: flex; min-height: 30px; flex-wrap: wrap; align-items: center; gap: 7px; }
.number-chip { border: 0; border-radius: 999px; color: var(--ink); background: var(--pink); cursor: pointer; padding: 4px 10px; font-weight: 800; }
.empty-selection { color: #cad5df; font-size: 14px; }
.selection-total { min-width: 110px; text-align: right; }
.selection-total small { display: block; color: #b9dce1; font-size: 12px; }
.selection-total strong { font-size: 24px; }
.primary-button { border: 0; border-radius: 15px; padding: 13px 24px; color: var(--ink); background: var(--pink); cursor: pointer; font-weight: 800; transition: transform .15s, background .15s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: #ffabc0; }
.primary-button:disabled { cursor: not-allowed; opacity: .38; }
.primary-button.full { width: 100%; color: white; background: var(--ink); }
footer { position: relative; z-index: 2; padding: 8px 20px 28px; text-align: center; font-family: Caveat, cursive; font-size: 34px; font-weight: 700; }
footer span { color: var(--pink-dark); }

.modal { position: fixed; z-index: 30; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 20px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(12,39,72,.72); backdrop-filter: blur(7px); }
.modal-card { position: relative; z-index: 1; width: min(100%, 500px); padding: 30px; border: 3px solid var(--border); border-radius: 30px; background: var(--cream); box-shadow: var(--shadow); }
.modal-summary { margin: 12px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.35; }
.modal-payment { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: -6px 0 20px; border-radius: 15px; padding: 11px 13px; background: #ffe4b0; font-size: 13px; font-weight: 700; }
.modal-payment strong { color: var(--ink); font-size: 17px; white-space: nowrap; }
.close-button { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: var(--blue); cursor: pointer; font-size: 26px; line-height: 1; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 6px; font-weight: 800; }
label span { color: var(--muted); font-size: 13px; font-weight: 600; }
input { width: 100%; border: 2px solid #dbbbb0; border-radius: 14px; padding: 12px 14px; color: var(--ink); background: white; }
input:focus { border-color: var(--blue-dark); outline: none; }
.privacy-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.form-error { margin: 0; border-radius: 13px; padding: 10px 12px; color: #9e2947; background: #ffe3ea; font-size: 14px; font-weight: 700; }
.success-card { text-align: center; }
.success-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: white; background: #65b7a3; font-size: 38px; font-weight: 800; }
.success-card p { color: var(--muted); line-height: 1.45; }
.payment-reminder { display: grid; gap: 3px; border-radius: 18px; padding: 14px; background: var(--blue); }
.payment-reminder span { font-size: 14px; }
.payment-reminder strong { color: var(--ink); font-size: 24px; }
.payment-reminder small { font-size: 12px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; min-height: 570px; padding: 34px 28px 0; text-align: center; }
  .hero::after { width: 94%; left: 3%; top: 142px; height: 145px; }
  .eyebrow { margin-inline: auto; }
  h1 span { margin-left: 0; }
  .hero-note { margin-inline: auto; }
  .kitten-wrap { height: 245px; }
  .kitten-wrap img { max-height: 245px; }
  .crown { left: 24%; }
  .info-strip { grid-template-columns: 1fr; padding: 14px 22px 24px; }
  .payment-panel { grid-template-columns: auto 1fr; margin: 0 12px 20px; padding: 16px; }
  .copy-payment-button { grid-column: 1 / -1; width: 100%; }
  .board-section { margin: 0 12px; padding: 16px 10px; }
  .board-heading { align-items: flex-start; flex-direction: column; }
  .number-grid { gap: 6px; }
  .selection-card { grid-template-columns: 1fr auto; margin: 16px 12px; padding: 14px; }
  .selection-copy { grid-column: 1 / -1; }
  .selection-total { text-align: left; }
  footer { font-size: 28px; }
}

@media (max-width: 440px) {
  .page-shell { padding: 0; }
  .raffle-card { border: 0; border-radius: 0; }
  .hero { min-height: 530px; }
  .number-grid { gap: 4px; }
  .number-button { font-size: 14px; }
  .number-button::before { top: -2px; font-size: 8px; }
  .selection-card { bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
