/* Party Characters for Kids · the party: the header pill, the drawer, the booking fields and the ticket. */

/* ---------- Toast action ("Open") ---------- */
.toast-act { margin-left: 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-weight: 640; cursor: pointer; }
.toast-act:hover, .toast-act:focus-visible { background: rgba(255, 255, 255, .28); }

/* ---------- Header pill: takes the place of "Plan your party" once a character is in ---------- */
.party-pill { --pp-bg: var(--lilac); --pp-ink: var(--ink); display: none; align-items: center; gap: 8px; height: 44px; padding: 0 7px; border: 0; border-radius: 999px; background: var(--pp-bg); color: var(--pp-ink); font: inherit; font-size: 15px; font-weight: 640; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .2s ease; }
.has-party .party-pill { display: inline-flex; }
.has-party .hdr-cta, body.nav-open .party-pill { display: none; }
.site-header.is-stuck .party-pill, body:not(.has-hero) .site-header .party-pill { --pp-bg: var(--dusk); --pp-ink: #fff; }
.party-pill:hover { --pp-bg: #CFC0FF; }
.site-header.is-stuck .party-pill:hover, body:not(.has-hero) .site-header .party-pill:hover { --pp-bg: var(--dusk-2); }
.party-pill:active { scale: .97; }
.pp-faces { display: flex; }
.pp-faces:empty { display: none; }
.pp-faces img { display: block; width: 30px; height: 30px; margin-left: -10px; border: 2px solid var(--pp-bg); border-radius: 50%; background: var(--lilac-2); object-fit: cover; transition: border-color .2s ease; }
.pp-faces img:first-child { margin-left: 0; }
.pp-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--cape-deep); color: #fff; font-size: 13px; font-weight: 700; }
.pp-count[hidden] { display: none; }
.party-pill.is-pop .pp-count { animation: pp-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pp-pop { 40% { scale: 1.45; } }
/* The face on its way from the card to the pill */
.pp-fly { position: fixed; z-index: 80; margin: 0; object-fit: cover; pointer-events: none; box-shadow: 0 14px 30px -12px rgba(42, 26, 62, .55); will-change: transform; }

/* Phone dock: "Your party · $86.70 today" */
.sticky [data-party-dock] { min-width: 0; }
.dock-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.has-party .menu-toggle { flex: none; }
.pp-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

/* Phones: the pill is a face with the count on it, beside the menu button, like a cart */
@media (max-width: 760px) {
  .party-pill { position: relative; flex: none; justify-content: center; width: 44px; padding: 0; }
  .pp-label, .pp-faces img + img { display: none; }
  .pp-faces img { width: 36px; height: 36px; }
  .pp-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 11.5px; box-shadow: 0 0 0 2px #fff; }
  .has-party .hdr-inner { gap: 10px; }
}
@media (max-width: 359px) {
  .has-party .site-header .logo-word { font-size: 15px; }
  .has-party .site-header .logo-hand { font-size: 18px; }
}
@media (min-width: 761px) {
  .party-pill { flex: none; height: 40px; padding: 0 6px 0 5px; }
}
/* The full menu and the phone number leave room for two faces until the widest screens */
@media (min-width: 1100px) and (max-width: 1279px) {
  .party-pill { gap: 6px; }
  .pp-faces img:nth-child(3) { display: none; }
}

/* ---------- Handwriting that writes itself (the drawer, the party page, the ticket) ---------- */
.writes .hw { display: inline-block; clip-path: inset(-.5em 100% -.5em -.5em); }
.writes.is-in .hw { clip-path: inset(-.5em); transition: clip-path var(--t, .3s) linear var(--d, 0s); }
.writes.is-done .hw { clip-path: none; }

/* ---------- The drawer: a side sheet on wide screens, a bottom sheet on phones ---------- */
html:has(.party-drawer[open]) { overflow: hidden; }
.party-drawer { inset: 0 0 0 auto; width: min(440px, 100%); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.party-drawer[open] { display: flex; }
.party-drawer [hidden] { display: none !important; }
.party-drawer::backdrop { background: rgba(29, 20, 44, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: pd-fade .3s ease; }
.party-drawer.is-closing::backdrop { animation: pd-fade .24s ease reverse forwards; }
.pd-sheet { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 26px 0 0 26px; background: radial-gradient(110% 55% at 100% 0%, rgba(255, 201, 163, .5), transparent 62%), radial-gradient(90% 45% at 0% 0%, rgba(220, 208, 255, .95), transparent 70%), var(--lilac-2); box-shadow: -24px 0 60px -30px rgba(42, 26, 62, .55); animation: pd-in .42s cubic-bezier(.2, .8, .2, 1); }
.party-drawer.is-closing .pd-sheet { animation: pd-out .24s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes pd-in { from { translate: 100% 0; } }
@keyframes pd-out { to { translate: 100% 0; } }
@keyframes pd-up { from { translate: 0 100%; } }
@keyframes pd-down { to { translate: 0 100%; } }
@keyframes pd-fade { from { opacity: 0; } }

.pd-head { position: relative; padding: 26px 76px 12px 24px; }
.pd-title { margin: 0; font-family: var(--hand); font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--dusk); rotate: -2deg; transform-origin: left center; }
.pd-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px -10px rgba(42, 26, 62, .5); }
.pd-close:hover { background: var(--lilac); }
.pd-note { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pd-hand { display: block; font-family: var(--hand); font-size: 24px; font-weight: 700; line-height: 1.05; color: var(--cape); }

.pd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 22px; }
.pd-sec + .pd-sec { margin-top: 22px; }
.pd-h { margin: 0 0 10px; font-size: 15px; font-weight: 640; letter-spacing: -.01em; color: var(--ink-2); }
.pd-hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }

.pd-coming, .pd-maybe { margin: 0; padding: 0; list-style: none; }
.pd-coming { display: grid; gap: 8px; }
.pd-char { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px -20px rgba(42, 26, 62, .6); }
.pd-face img { display: block; width: 56px; height: 56px; border-radius: 14px; background: var(--lilac); object-fit: cover; }
.pd-name { display: block; overflow: hidden; font-size: 16.5px; font-weight: 640; letter-spacing: -.015em; color: var(--ink); text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.pd-name:hover { text-decoration: underline; }
.pd-who small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--green-ink); }
.pd-remove { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--canvas); color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.pd-remove:hover { background: #FFE3E3; color: var(--cape); }

.pd-maybe { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 42px; padding: 0 8px 0 6px; border: 1.5px dashed #BDB0E4; border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease, scale .15s ease; }
.pd-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pd-chip img { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lilac); object-fit: cover; }
.pd-chip b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--dusk); color: #fff; font-size: 16px; line-height: 1; }
.pd-chip:hover { border-color: var(--dusk); background: #fff; }
.pd-chip:disabled { opacity: .5; cursor: not-allowed; }

/* Length chips, shared by the drawer and the booking fields */
.lengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Four length chips sit in one row where the card is wide enough, two by two where it is not. */
@container (min-width: 440px) { .lengths { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lengths > button, .len-step { display: grid; align-content: center; justify-items: start; gap: 1px; min-width: 0; height: 56px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, scale .15s ease; }
.lengths b { max-width: 100%; overflow: hidden; font-size: 15px; font-weight: 620; white-space: nowrap; text-overflow: ellipsis; }
.lengths small { max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--green-ink); white-space: nowrap; text-overflow: ellipsis; }
.lengths > button:hover { border-color: #C9BFE6; }
.lengths > [aria-pressed="true"], .len-step { border-color: var(--dusk); background: var(--dusk); color: #fff; }
.lengths > [aria-pressed="true"] small, .len-step small { color: #A8F0C8; }
.lengths > .len-longer { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; height: 46px; }
.len-longer small { color: var(--ink-3); }
.len-step { grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; justify-items: center; padding: 0 6px; cursor: default; }
.len-now { display: grid; justify-items: center; }
.len-step-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.len-step-btn:hover { background: rgba(255, 255, 255, .26); }
.len-step-btn:disabled { opacity: .35; cursor: not-allowed; }
.lengths button:active { scale: .96; }
.pd-chip:active, .pd-remove:active { scale: .96; }

.pd-when { margin: 0; font-size: 15.5px; line-height: 1.45; }
.pd-known { font-weight: 600; }
.pd-link { margin-left: 8px; font-weight: 600; color: var(--violet); }
.pd-link:first-child { margin-left: 0; }

.pd-price { margin: 22px 0 0; padding: 12px 16px; border: 1.5px dashed #CFC4EE; border-radius: 18px; background: rgba(255, 255, 255, .8); }
.pd-price div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14.5px; color: var(--ink-2); }
.pd-price dt, .pd-price dd { margin: 0; }
.pd-price dd { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.pd-price .pd-today { font-size: 17px; font-weight: 700; color: var(--ink); }

.pd-empty { display: grid; justify-items: start; gap: 16px; padding: 14px 0 6px; }
.pd-empty p { margin: 0; font-size: 18px; line-height: 1.4; }
.pd-empty .ic { width: 20px; height: 20px; color: var(--cape); fill: var(--cape); vertical-align: -4px; }

.pd-foot { display: grid; gap: 8px; padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(42, 26, 62, .08); background: rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-left-radius: inherit; }
.pd-foot .btn-soft { border-color: var(--line); background: #fff; }

@media (max-width: 760px) {
  .party-drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: calc(100dvh - 36px); }
  .pd-sheet { height: auto; max-height: calc(100dvh - 36px); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 50px -28px rgba(42, 26, 62, .6); animation-name: pd-up; }
  .party-drawer.is-closing .pd-sheet { animation-name: pd-down; }
  .pd-sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(42, 26, 62, .18); }
  .pd-head { padding: 26px 70px 10px 20px; }
  .pd-title { font-size: 42px; }
  .pd-body { padding: 6px 20px 18px; }
  .pd-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-bottom-left-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-sheet, .party-drawer::backdrop, .party-pill.is-pop .pp-count { animation: none !important; }
}

/* ---------- Booking fields: the ticket and the party page ---------- */
.pf { display: grid; gap: 20px; container-type: inline-size; }
.pf-row { min-width: 0; }
.pf-label { display: block; margin: 0 0 8px; font-size: 14.5px; font-weight: 620; color: var(--ink); }
.pf-native { width: 100%; height: 52px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.pf [hidden] { display: none !important; }
.pf-status { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); }
.pf-status:empty { display: none; }
.pf-status.is-yes { display: flex; align-items: center; gap: 8px; color: var(--green-ink); font-weight: 600; }
.pf-status.is-yes::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B7D42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.4 4.4L19 7.4'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pf-status.is-new::before { animation: pf-check .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pf-check { from { scale: .2; opacity: 0; } }

/* Days: two weeks of chips, weekends tinted peach, then the month calendar */
.pf-days { display: flex; align-items: stretch; gap: 6px; margin: -8px calc(var(--pf-bleed, 0px) * -1) 0; padding: 10px var(--pf-bleed, 0px) 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--pf-bleed, 0px); }
.pf-days::-webkit-scrollbar { display: none; }
.pf-day { position: relative; flex: none; display: grid; align-content: center; justify-items: center; gap: 1px; width: 54px; height: 62px; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; scroll-snap-align: start; transition: border-color .2s ease, background .2s ease, color .2s ease, scale .15s ease; }
.pf-day small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pf-day[data-month]::before { content: attr(data-month); position: absolute; top: -8px; left: 50%; translate: -50% 0; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 15px; }
.pf-day b { font-size: 19px; font-weight: 680; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pf-day.is-weekend { border-color: #FFDCC6; background: #FFF4EC; }
.pf-day:hover { border-color: #C9BFE6; }
.pf-day[aria-pressed="true"] { border-color: var(--dusk); background: var(--dusk); color: #fff; }
.pf-day[aria-pressed="true"] small { color: #CFC4EE; }
.pf-more { flex: none; height: 62px; padding: 0 14px; border: 1.5px dashed #BDB0E4; border-radius: 14px; background: #fff; color: var(--violet); font: inherit; font-size: 14px; font-weight: 640; white-space: nowrap; cursor: pointer; }
.pf-more[aria-pressed="true"] { border-style: solid; border-color: var(--dusk); background: var(--dusk); color: #fff; }
.pf-cal { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -28px rgba(42, 26, 62, .5); }
.pf-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pf-cal-title { font-size: 15.5px; font-weight: 650; }
.pf-cal-nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: var(--lilac-2); color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.pf-cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.pf-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pf-cal-wd { display: grid; place-items: center; height: 24px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.pf-cal-day { height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pf-cal-day.is-weekend { background: #FFF4EC; }
.pf-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--violet); }
.pf-cal-day:hover:not(:disabled) { background: var(--lilac-2); }
.pf-cal-day[aria-pressed="true"] { background: var(--dusk); color: #fff; }
.pf-cal-day:disabled { background: transparent; color: #C5C1CF; cursor: default; }

/* Start time: a three-way switch over half-hour chips */
.pf-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--lilac-2); }
.pf-part { height: 38px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pf-part[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(42, 26, 62, .35); }
.pf-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pf-slot { min-width: 0; height: 44px; padding: 0 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, scale .15s ease; }
.pf-slot:hover { border-color: #C9BFE6; }
.pf-slot[aria-pressed="true"] { border-color: var(--dusk); background: var(--dusk); color: #fff; }
.pf-day:active, .pf-slot:active, .pf-more:active { scale: .96; }

/* A field the booking still needs: a gentle shake and a red edge */
.pf-row.is-missing { animation: pf-shake .42s ease; }
/* Narrow tickets (phones under 390px): three start times a row, and tighter length chips */
@container (max-width: 297px) {
  .pf-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf .lengths > button, .pf .len-step { padding: 0 8px; }
  .pf .lengths b { font-size: 14px; }
}
@container (max-width: 249px) {
  .pf .lengths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pf-row.is-missing .find-box, .pf-row.is-missing .pf-day, .pf-row.is-missing .pf-slot { border-color: #F2A9AB; }
.pf-say { margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; color: #B4232A; }
.pf-say[hidden] { display: none; }
@keyframes pf-shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }

/* ---------- The ticket on a character page ---------- */
.ticket { --pf-bleed: 20px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -44px rgba(42, 26, 62, .55); scroll-margin-top: 90px; }
.ticket [hidden] { display: none !important; }
.tk-h { margin: 0 0 10px; font-size: 14.5px; font-weight: 620; letter-spacing: 0; line-height: 1.3; color: var(--ink); }
.tk-coming { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tk-char { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px; border-radius: 16px; background: var(--lilac-2); }
.tk-char img { display: block; width: 48px; height: 48px; border-radius: 12px; background: var(--lilac); object-fit: cover; }
.tk-who-name { display: grid; min-width: 0; }
.tk-who-name b { overflow: hidden; font-size: 15.5px; font-weight: 640; white-space: nowrap; text-overflow: ellipsis; }
.tk-who-name small { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.tk-char:not(.is-here) .tk-who-name small { color: var(--ink-3); }
.tk-remove { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease; }
.tk-remove:hover { background: #FFE3E3; color: var(--cape); }
.tk-note { margin: 8px 0 0; font-size: 14px; color: var(--cape); }
.tk-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 16px; border-radius: 18px; background: var(--lilac-2); }
.tk-today { display: grid; margin: 0; }
.tk-today span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.tk-today b { font-size: 34px; font-weight: 680; line-height: 1.05; letter-spacing: -.03em; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.tk-rest { display: grid; flex: 1 1 190px; gap: 3px; max-width: 280px; margin: 0; }
.tk-rest div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink-2); }
.tk-rest dt, .tk-rest dd { margin: 0; }
.tk-rest dd { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tk-book { height: 58px; font-size: 17px; }
.tk-add .ic { color: var(--cape); }
.tk-add[aria-pressed="true"] .ic { fill: currentColor; }
.tk-fine { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); text-align: center; text-wrap: pretty; }
.tk-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: -8px 0 0; font-size: 14.5px; color: var(--ink-3); text-align: center; }
.tk-alt a { color: var(--violet); font-weight: 560; text-decoration: none; }
.tk-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pf-row.is-missing, .pf-status.is-new::before { animation: none !important; }
}

/* ---------- Character hero: a framed panel in the character's own colors ----------
   Two colors from data/palettes.json, softened toward lilac and white, glow and drift slowly under a film grain
   (the homepage .aurora mechanics). The theme texture is tinted from one color to the other and gathers in two
   corners. The performer photo sits straight in a white frame, with notes that write themselves (character.js). */
.ch-hero { padding: 8px 8px 0; }
.ch-stage { --c1: #8F7CFF; --c2: #FF9E68; --gutter: 14px; position: relative; isolation: isolate; padding: 72px 0 26px; border-radius: 22px; background: var(--lilac-2); background: linear-gradient(165deg, color-mix(in oklab, var(--c1) 20%, #fff), var(--lilac-2) 50%, color-mix(in oklab, var(--c2) 22%, var(--lilac-2))); }
.ch-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
/* The glows sit by the top and the lower right; the grain covers the whole panel, so no edge shows */
.ch-glow { --grain: .2; }
.ch-glow i:nth-child(1) { --c: color-mix(in oklab, var(--c1) 48%, #fff); --s: 78%; --x: -28%; --y: -260px; --o: .9; --t: 27s; --spin: 8deg; }
.ch-glow i:nth-child(2) { --c: color-mix(in oklab, var(--c2) 48%, #fff); --s: 70%; --x: 52%; --y: 34%; --o: .8; --t: 33s; --d: -11s; }
.ch-glow i:nth-child(3) { --c: #fff; --s: 46%; --x: 16%; --y: 60px; --o: .7; --t: 23s; --d: -6s; }
.ch-tex { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent min(88vw, 640px)), radial-gradient(circle at 0 100%, #000, transparent min(80vw, 560px)); mask-image: radial-gradient(circle at 100% 0, #000, transparent min(88vw, 640px)), radial-gradient(circle at 0 100%, #000, transparent min(80vw, 560px)); }
.ch-tex i { position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: var(--tex-o, .3); -webkit-mask: var(--tex) 0 0 / var(--tex-s) repeat; mask: var(--tex) 0 0 / var(--tex-s) repeat; }
.tex-halftone { --tex-o: .2; }
.tex-polka { --tex-o: .14; }
.tex-confetti { --tex-o: .36; }
.tex-halftone { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='4' cy='4' r='2.3'/%3E%3Ccircle cx='12' cy='12' r='2.3'/%3E%3C/svg%3E"); --tex-s: 16px; }
.tex-sparkle { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cpath d='M26 22Q27.6 30.4 36 32Q27.6 33.6 26 42Q24.4 33.6 16 32Q24.4 30.4 26 22Z'/%3E%3Cpath d='M104 14.5Q104.9 19.1 109.5 20Q104.9 20.9 104 25.5Q103.1 20.9 98.5 20Q103.1 19.1 104 14.5Z' opacity='0.8'/%3E%3Cpath d='M74 69Q76.1 79.9 87 82Q76.1 84.1 74 95Q71.9 84.1 61 82Q71.9 79.9 74 69Z'/%3E%3Cpath d='M132 105Q133.1 110.9 139 112Q133.1 113.1 132 119Q130.9 113.1 125 112Q130.9 110.9 132 105Z' opacity='0.85'/%3E%3Cpath d='M30 116Q31 121 36 122Q31 123 30 128Q29 123 24 122Q29 121 30 116Z' opacity='0.7'/%3E%3Ccircle cx='60' cy='44' r='1.8' opacity='0.7'/%3E%3Ccircle cx='118' cy='62' r='1.5' opacity='0.6'/%3E%3Ccircle cx='96' cy='136' r='1.8' opacity='0.7'/%3E%3Ccircle cx='10' cy='80' r='1.4' opacity='0.6'/%3E%3C/svg%3E"); --tex-s: 150px; }
.tex-waves { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='96'%3E%3Cpath d='M8 20q5 -5 10 0t10 0t10 0M72 12q5 -5 10 0t10 0t10 0M38 52q5 -5 10 0t10 0t10 0M96 46q5 -5 10 0t10 0t10 0M12 82q5 -5 10 0t10 0t10 0M78 80q5 -5 10 0t10 0t10 0' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); --tex-s: 132px; }
.tex-snow { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M18 30L34 30M22 23.1L30 36.9M30 23.1L22 36.9'/%3E%3Cpath d='M97 22L107 22M99.5 17.7L104.5 26.3M104.5 17.7L99.5 26.3'/%3E%3Cpath d='M60 82L80 82M65 73.3L75 90.7M75 73.3L65 90.7'/%3E%3Cpath d='M123.5 104L136.5 104M126.8 98.4L133.2 109.6M133.2 98.4L126.8 109.6'/%3E%3Cpath d='M20.5 120L31.5 120M23.2 115.2L28.8 124.8M28.8 115.2L23.2 124.8'/%3E%3C/g%3E%3Ccircle cx='56' cy='46' r='2'/%3E%3Ccircle cx='114' cy='64' r='1.6' opacity='0.8'/%3E%3Ccircle cx='92' cy='134' r='2'/%3E%3Ccircle cx='140' cy='146' r='1.5' opacity='0.7'/%3E%3Ccircle cx='8' cy='78' r='1.8' opacity='0.8'/%3E%3C/svg%3E"); --tex-s: 150px; }
.tex-confetti { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Crect x='16.5' y='23.8' width='11' height='4.4' rx='2.2' transform='rotate(28 22 26)'/%3E%3Crect x='92.5' y='15.8' width='11' height='4.4' rx='2.2' transform='rotate(-34 98 18)' opacity='0.8'/%3E%3Crect x='60.5' y='69.8' width='11' height='4.4' rx='2.2' transform='rotate(64 66 72)'/%3E%3Crect x='118.5' y='93.8' width='11' height='4.4' rx='2.2' transform='rotate(-12 124 96)' opacity='0.9'/%3E%3Crect x='22.5' y='107.8' width='11' height='4.4' rx='2.2' transform='rotate(-52 28 110)' opacity='0.75'/%3E%3Crect x='78.5' y='123.8' width='11' height='4.4' rx='2.2' transform='rotate(18 84 126)' opacity='0.85'/%3E%3Ccircle cx='56' cy='30' r='3' opacity='0.85'/%3E%3Ccircle cx='112' cy='58' r='2.6' opacity='0.7'/%3E%3Ccircle cx='16' cy='70' r='2.6' opacity='0.8'/%3E%3Ccircle cx='132' cy='132' r='3'/%3E%3C/svg%3E"); --tex-s: 140px; }
.tex-stars { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cpath d='M24 22L26.2 27L31.6 27.5L27.5 31.1L28.7 36.5L24 33.7L19.3 36.5L20.5 31.1L16.4 27.5L21.8 27Z'/%3E%3Cpath d='M104 17L105.4 20.1L108.8 20.5L106.2 22.7L106.9 26L104 24.3L101.1 26L101.8 22.7L99.2 20.5L102.6 20.1Z' opacity='0.8'/%3E%3Cpath d='M70 73L73 79.9L80.5 80.6L74.8 85.6L76.5 92.9L70 89.1L63.5 92.9L65.2 85.6L59.5 80.6L67 79.9Z'/%3E%3Cpath d='M130 105.5L131.8 109.6L136.2 110L132.8 112.9L133.8 117.3L130 115L126.2 117.3L127.2 112.9L123.8 110L128.2 109.6Z' opacity='0.85'/%3E%3Cpath d='M28 119L29.4 122.1L32.8 122.5L30.2 124.7L30.9 128L28 126.3L25.1 128L25.8 124.7L23.2 122.5L26.6 122.1Z' opacity='0.7'/%3E%3Ccircle cx='58' cy='46' r='1.6' opacity='0.7'/%3E%3Ccircle cx='116' cy='66' r='1.4' opacity='0.6'/%3E%3Ccircle cx='94' cy='138' r='1.7' opacity='0.75'/%3E%3Ccircle cx='8' cy='82' r='1.4' opacity='0.6'/%3E%3C/svg%3E"); --tex-s: 150px; }
.tex-polka { --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3Ccircle cx='36' cy='36' r='5.5'/%3E%3C/svg%3E"); --tex-s: 48px; }
.ch-stage .breadcrumbs { margin-top: 0; color: var(--ink-2); }
.ch-stage .breadcrumbs a { color: var(--ink); }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 14px; }
.ch-media { position: relative; min-width: 0; }
.ch-photo { position: relative; margin: 0; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(31, 18, 60, .08), 0 34px 60px -40px rgba(31, 18, 60, .6); }
.ch-photo img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 17px; background: color-mix(in oklab, var(--c1) 14%, #fff); }
.ch-note { position: absolute; max-width: calc(100% - 40px); padding: 1px 12px 3px; border-radius: 12px; background: #fff; font-family: var(--hand); font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--ink); white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(31, 18, 60, .6); }
.ch-note-real { left: 20px; bottom: 20px; }
.ch-note-come { top: 20px; right: 20px; color: var(--violet); }
.ch-copy { min-width: 0; }
.ch-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--ink-2); }
.ch-kicker a { padding: 5px 13px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 620; text-decoration: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c1) 34%, transparent); transition: background-color .2s; }
.ch-kicker a:hover { background: color-mix(in oklab, var(--c1) 12%, #fff); }
.ch-lede { max-width: 36em; margin-top: 12px; color: var(--ink-2); text-wrap: pretty; }
.ch-hour-link { margin: 10px 0 0; font-size: 15px; }
.ch-hour-link a { color: var(--violet); font-weight: 600; text-underline-offset: 3px; }
.js [data-ch-note]:not(.writes), .js [data-ch-write]:not(.writes) { clip-path: inset(-.6em 100% -.6em -.6em); }

/* About the visit: a handwritten heading, and the ideas to talk through as notes pinned up in the character's colors */
.ch-about-h { max-width: 100%; font-family: var(--hand); font-size: clamp(42px, 6vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: 0; text-wrap: balance; }
.char-about .char-about-grid { margin-top: 16px; }
.char-about .prose { margin-top: 0; }
.char-about-side .fine { margin-top: 16px; }
.ch-ideas { margin-top: 34px; }
.ch-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ch-notes li { position: relative; padding: 18px 13px 14px; border-radius: 3px 3px 16px 3px; background: color-mix(in oklab, var(--c1, #8F7CFF) 18%, #fff); font-family: var(--hand); font-size: 19px; font-weight: 600; line-height: 1.16; color: var(--ink); text-wrap: pretty; box-shadow: 0 1px 1px rgba(31, 18, 60, .06), 0 16px 24px -20px rgba(31, 18, 60, .6); }
.ch-notes li:nth-child(4n + 2), .ch-notes li:nth-child(4n + 3) { background: color-mix(in oklab, var(--c2, #FF9E68) 18%, #fff); }
.ch-notes li::before { content: ''; position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; translate: -50% 0; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 3px rgba(31, 18, 60, .14); }
@media (max-width: 359px) {
  .ch-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) {
  .ch-stage { --gutter: 24px; padding: 86px 0 36px; }
  .ch-photo img { aspect-ratio: 3 / 2; }
  .ch-note { font-size: 24px; }
  .ch-notes { gap: 20px 16px; }
  .ch-notes li { padding: 22px 18px 18px; font-size: 21px; }
}
@media (min-width: 1100px) {
  .ch-stage { --gutter: 40px; padding-bottom: 52px; }
  .ch-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 52px; align-items: start; margin-top: 18px; }
  .ch-media { position: sticky; top: 96px; }
  .ch-photo img { aspect-ratio: 4 / 5; }
  .ch-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-ch-note]:not(.writes), .js [data-ch-write]:not(.writes) { clip-path: none; }
}

/* ---------- "Who should come?": three chip questions and a good place to start ---------- */
html:not(.js) [data-party-quiz], html:not(.js) .quiz-door { display: none; }
.quiz { display: grid; gap: 16px; min-width: 0; }
.quiz-h { font-family: var(--hand); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: 0; outline: none; }
.quiz-lede { margin: -8px 0 0; font-size: 15px; color: var(--ink-2); }
.quiz-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-q legend { margin: 0 0 8px; padding: 0; font-size: 14.5px; font-weight: 620; color: var(--ink); }
.quiz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-chip { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease, scale .15s ease; }
.quiz-ages .quiz-chip { min-width: 40px; padding: 0; font-variant-numeric: tabular-nums; }
.quiz-chip:hover { border-color: #C9BFE6; }
.quiz-chip:active { scale: .96; }
.quiz-chip[aria-pressed="true"] { border-color: var(--dusk); background: var(--dusk); color: #fff; }
.quiz-result { display: grid; gap: 10px; }
.quiz-label { margin: 0; font-family: var(--hand); font-size: 25px; font-weight: 700; line-height: 1.1; color: var(--violet); }
.quiz-picks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.quiz-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 8px; border-radius: 18px; background: var(--lilac-2); }
.quiz-pick.is-loading { min-height: 68px; animation: quiz-wait 1.2s ease-in-out infinite alternate; }
@keyframes quiz-wait { to { opacity: .55; } }
.quiz-faces { display: flex; }
.quiz-faces img { width: 52px; height: 52px; border: 2px solid #fff; border-radius: 14px; background: var(--lilac); object-fit: cover; object-position: 50% 22%; }
.quiz-faces img + img { margin-left: -14px; }
.quiz-names { display: grid; min-width: 0; }
.quiz-names b { font-size: 15px; font-weight: 640; line-height: 1.25; overflow-wrap: anywhere; }
.quiz-names small { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.quiz-add { grid-column: 1 / -1; height: 40px; padding: 0 14px; background: #fff; font-size: 14.5px; }
.quiz-add[aria-pressed="true"] { background: var(--green-2); color: var(--green-ink); }
.quiz-none { padding: 12px 14px; border-radius: 16px; background: var(--lilac-2); font-size: 14.5px; color: var(--ink-2); }
.quiz-all { justify-self: start; font-size: 14.5px; font-weight: 600; color: var(--violet); text-underline-offset: 3px; }
@media (min-width: 420px) {
  .quiz-pick { grid-template-columns: auto minmax(0, 1fr) auto; }
  .quiz-add { grid-column: auto; }
}
.pd-empty .quiz { justify-self: stretch; margin-top: 4px; }
/* The catalog keeps it behind one line until a parent asks */
.quiz-door { margin: 0 0 26px; border-radius: 22px; background: var(--lilac-2); }
.quiz-door summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 15px; color: var(--ink-2); cursor: pointer; list-style: none; }
.quiz-door summary::-webkit-details-marker { display: none; }
.quiz-door summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-left: auto; border: solid var(--ink-2); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -3px; transition: rotate .2s ease; }
.quiz-door[open] summary::after { rotate: 225deg; translate: 0 2px; }
.quiz-door summary .ic { flex: none; width: 22px; height: 22px; color: var(--cape); fill: var(--cape); }
.quiz-door summary b { display: block; font-size: 16px; font-weight: 640; color: var(--ink); }
.quiz-door .quiz { padding: 0 18px 20px; }
@media (min-width: 900px) {
  .quiz-door .quiz { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 44px; padding: 0 26px 26px; }
  .quiz-door .quiz > * { grid-column: 1; }
  .quiz-door .quiz-result { grid-column: 2; grid-row: 1 / span 5; align-self: start; padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-pick.is-loading { animation: none; }
}

/* ---------- The party page: a handwritten head, sections that tick as they fill, and the ticket as a poster ----------
   The head reuses the character hero's panel in the house lilac (glow and grain, no texture). */
.yp-stage { padding-bottom: 30px; }
.yp-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 26px; margin-top: 14px; }
.yp-title { margin: 0; font-family: var(--hand); font-size: clamp(58px, 10vw, 96px); font-weight: 700; line-height: .95; letter-spacing: 0; color: var(--dusk); rotate: -2deg; transform-origin: left bottom; overflow-wrap: anywhere; }
.yp-note { position: relative; display: grid; margin: 0 0 6px; padding: 12px 16px 12px; border-radius: 3px 3px 16px 3px; background: #fff; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); rotate: 1.5deg; box-shadow: 0 14px 28px -18px rgba(31, 18, 60, .55); }
.yp-note::before { content: ''; position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; translate: -50% 0; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 3px rgba(31, 18, 60, .14); }
.yp-note-hand { font-family: var(--hand); font-size: 25px; font-weight: 700; line-height: 1.05; color: var(--cape); }
.js [data-yp-title]:not(.writes), .js [data-yp-note]:not(.writes) { clip-path: inset(-.6em 100% -.6em -.6em); }

.yp-body { padding: 18px 0 72px; }
.yp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.yp-main { display: grid; gap: 14px; min-width: 0; }
.yp-sec { --pf-bleed: 18px; min-width: 0; padding: 20px 18px 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -50px rgba(42, 26, 62, .5); scroll-margin-top: 96px; }
.yp-sec[hidden], .yp-sec [hidden] { display: none !important; }
.yp-sec.is-missing { animation: pf-shake .42s ease; }
.yp-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.yp-sec-head h2 { margin: 0; font-size: 21px; font-weight: 660; line-height: 1.2; letter-spacing: -.02em; outline: none; }
.yp-sec-meta { margin: 0 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.yp-tick { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 50%; color: transparent; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.yp-tick .ic { width: 14px; height: 14px; }
.yp-sec.is-done .yp-tick { border-color: var(--green); background: var(--green); color: #fff; }
.is-live .yp-sec.is-done .yp-tick { animation: yp-tick .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes yp-tick { from { scale: .5; } }
.yp-sub { margin: 18px 0 8px; font-size: 14.5px; font-weight: 620; color: var(--ink-2); }
.yp-lede { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.yp-fine { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.yp-full, .yp-none { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* Who's coming: straight cards on lilac, the maybes as chips, and tiles to pick from */
.yp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.yp-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; background: var(--lilac-2); }
.yp-card-face img { display: block; width: 64px; height: 64px; border-radius: 14px; background: var(--lilac); object-fit: cover; }
.yp-card-who { min-width: 0; }
.yp-card-name { display: block; overflow: hidden; font-size: 16.5px; font-weight: 640; letter-spacing: -.015em; color: var(--ink); text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.yp-card-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.yp-card-who small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--green-ink); }
.yp-x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink-2); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.yp-x:hover { background: #FFE3E3; color: var(--cape); }
.yp-x:active { scale: .96; }
.yp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yp-empty { display: grid; gap: 4px; }
.yp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.yp-tiles:empty { display: none; }
.yp-tile { position: relative; display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.yp-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; background: var(--lilac); object-fit: cover; object-position: 50% 18%; transition: box-shadow .2s ease, scale .15s ease; }
.yp-tile span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yp-tile:hover img { box-shadow: 0 0 0 3px var(--lilac); }
.yp-tile:active img { scale: .96; }
.yp-tile[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--green); }
.yp-tile[aria-pressed="true"]::after { content: ''; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.yp-main .btn-soft { border-color: var(--lilac-2); background: var(--lilac-2); }
.yp-main .btn-soft:hover { border-color: var(--lilac); background: var(--lilac); }
.yp-add { margin-top: 12px; }
.yp-add::before { content: '+'; margin-right: 2px; font-size: 21px; font-weight: 500; line-height: 1; }
.yp-finder { display: grid; gap: 4px; margin-top: 16px; }
.yp-finder .quiz { margin-top: 14px; padding: 18px 16px; border-radius: 20px; background: var(--lilac-2); }
.yp-finder .quiz-pick { background: #fff; }
.yp-finder .quiz-chip { border-color: #DCD3F2; }

/* How long: the length chips, the number of kids and the hour */
.yp-kids { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; }
.yp-kids-label { font-size: 15px; font-weight: 600; }
.yp-kids-label small { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.yp-stepper { display: inline-flex; align-items: center; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.yp-stepper button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--lilac-2); color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .2s ease; }
.yp-stepper button:hover { background: var(--lilac); }
.yp-stepper button:active { scale: .96; }
.yp-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.yp-stepper input { width: 56px; height: 42px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.yp-stepper input::-webkit-inner-spin-button, .yp-stepper input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.yp-hour { margin-top: 20px; padding: 2px 16px 8px; border-radius: 18px; background: var(--lilac-2); }
.yp-hour .yp-sub { margin: 14px 0 2px; font-size: 16px; color: var(--ink); }
.yp-hour-note { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.yp-acts { margin: 0; padding: 0; list-style: none; }
.yp-acts .pl-act { border-top-color: rgba(42, 26, 62, .1); }
.yp-hour .yp-fine { margin: 4px 0 8px; }

/* For the performer */
.yp-q { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.yp-q legend { margin: 0 0 8px; padding: 0; font-size: 15px; font-weight: 600; }
.yp-sec .field:first-of-type { margin-top: 16px; }
.yp-share .btn { margin-top: 14px; }
.yp-ask .error-notice { margin: 16px 0 0; }
.yp-ask .btn-dusk { margin-top: 18px; }

/* A plan someone shared, offered above the party until the parent chooses */
.yp-shared { display: grid; gap: 8px; padding: 20px 18px; border-radius: 24px; background: var(--dusk); color: #fff; box-shadow: 0 30px 60px -40px rgba(42, 26, 62, .8); }
.yp-shared h2 { margin: 0; font-family: var(--hand); font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--peach); outline: none; }
.yp-shared p { margin: 0; font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.yp-shared-faces { display: flex; }
.yp-shared-faces img { width: 48px; height: 48px; border: 2px solid var(--dusk); border-radius: 50%; background: var(--lilac); object-fit: cover; }
.yp-shared-faces img + img { margin-left: -12px; }
.yp-shared-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.yp-shared-keep { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.yp-shared-keep:hover { background: rgba(255, 255, 255, .1); }

/* The poster: the party's faces and name over a perforation, then the facts, the price and the two ways on */
html:not(.js) .yp-ticket { display: none; }
.yp-ticket { min-width: 0; scroll-margin-top: 90px; }
.yp-poster { display: grid; gap: 16px; overflow: hidden; padding: 0 0 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -44px rgba(42, 26, 62, .55); }
.yp-poster > :not(.yp-poster-top) { margin-inline: 20px; }
.yp-poster [hidden] { display: none !important; }
.yp-poster-top { position: relative; padding: 20px 20px 18px; border-bottom: 2px dashed rgba(42, 26, 62, .14); background: linear-gradient(165deg, color-mix(in oklab, #8F7CFF 18%, #fff), var(--lilac-2) 55%, color-mix(in oklab, #FF9E68 20%, var(--lilac-2))); }
.yp-poster-top::before, .yp-poster-top::after { content: ''; position: absolute; bottom: -11px; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; background: var(--canvas); }
.yp-poster-top::before { left: -11px; }
.yp-poster-top::after { right: -11px; }
.yp-faces { display: flex; min-height: 64px; }
.yp-faces:empty::before { content: ''; width: 60px; height: 60px; border: 2px dashed rgba(42, 26, 62, .22); border-radius: 50%; }
.yp-faces img { flex: none; width: 64px; height: 64px; border: 3px solid #fff; border-radius: 50%; background: var(--lilac); object-fit: cover; box-shadow: 0 8px 18px -10px rgba(31, 18, 60, .5); }
.yp-faces img + img { margin-left: -16px; }
.yp-ticket-title { margin: 10px 0 0; font-family: var(--hand); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--dusk); rotate: -2deg; transform-origin: left center; overflow-wrap: anywhere; }
.yp-facts { display: grid; gap: 9px; margin-block: 0; }
.yp-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.yp-facts dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.yp-facts dd { margin: 0; font-size: 15px; font-weight: 620; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.yp-facts dd.is-empty { font-weight: 500; color: var(--ink-3); }
.yp-price { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--lilac-2); }
.yp-today { display: grid; margin: 0; }
.yp-today span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.yp-today b { font-size: 36px; font-weight: 680; line-height: 1.05; letter-spacing: -.03em; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.yp-rest { display: grid; gap: 3px; margin: 0; }
.yp-rest div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink-2); }
.yp-rest dt, .yp-rest dd { margin: 0; }
.yp-rest dd { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.yp-poster .error-notice { margin-block: 0; }
.yp-poster > .btn { width: auto; }
.yp-hold { height: 58px; font-size: 17px; }
.yp-poster .btn-soft { margin-top: -6px; border-color: var(--line); background: #fff; }
.yp-poster .btn-soft:hover { background: var(--lilac-2); }
.yp-poster .yp-fine { text-align: center; }

@media (min-width: 360px) {
  .yp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Phones: the hour reads as a short list of what happens when */
@media (max-width: 760px) {
  .yp-acts .pl-act { grid-template-columns: 58px minmax(0, 1fr) auto; align-items: baseline; padding: 10px 0; }
  .yp-acts .pl-body span { display: none; }
  .yp-acts .pl-body b { font-size: 15px; }
  .yp-acts .pl-len { grid-column: auto; }
}
@media (min-width: 761px) {
  .yp-body { padding-top: 26px; }
  .yp-sec { --pf-bleed: 26px; padding: 24px 26px 26px; }
  .yp-sec-head h2 { font-size: 23px; }
}
@media (min-width: 1000px) {
  .yp-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .yp-main { gap: 18px; }
}
@media (min-width: 1000px) and (min-height: 760px) {
  .yp-ticket { position: sticky; top: 96px; }
}
@media (min-width: 1200px) {
  .yp-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-yp-title]:not(.writes), .js [data-yp-note]:not(.writes) { clip-path: none; }
  .yp-sec.is-missing, .is-live .yp-sec.is-done .yp-tick { animation: none; }
}

/* ---------- A parent's words under the Book buttons: one short text as a chat bubble, with its town and month ---------- */
.pw { display: grid; justify-items: start; gap: 5px; margin: 0; }
.pw[hidden] { display: none; }
.pw-text { max-width: 100%; margin: 0; padding: 10px 14px 11px; border-radius: 18px 18px 18px 5px; background: var(--lilac-2); color: var(--ink); rotate: -.6deg; }
.pw-text p { margin: 0; font-size: 14.5px; line-height: 1.4; white-space: pre-line; text-wrap: pretty; overflow-wrap: anywhere; }
.pw-where { margin-left: 10px; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }

/* ---------- The hold step (checkout): only what booking needs around the form ----------
   The header keeps the logo, the way back to the party and the phone; the footer keeps its policy row. */
.hdr-back { display: none; }
.ic-back { rotate: 180deg; }
.is-focused .nav, .is-focused .hdr-cta, .is-focused .party-pill, .is-focused .menu-toggle, .is-focused .sticky,
.is-focused .foot-top, .is-focused .foot-places { display: none !important; }
.is-focused .hdr-tel { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.is-focused .hdr-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-focused .foot { margin-top: 24px; padding: 6px 0 30px; }
.is-focused .foot-base { margin-top: 0; border-top: 0; }

/* ---------- The hold step, laid out like a travel checkout ---------- */
/* The head: the way back (the header carries it on wider screens), "Hold the date" and the deposit it takes. */
.ck-head { padding: 84px 0 2px; }
.ck-head-in { display: flex; align-items: flex-start; gap: 14px; }
.ck-back { display: grid; flex: none; place-items: center; width: 40px; height: 40px; margin-top: 1px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.ck-back:hover { border-color: var(--ink-3); }
.ck-back .ic { width: 18px; height: 18px; }
.ck-head-copy { min-width: 0; }
.ck-title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.ck-lede { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.ck-note { display: inline-block; margin: 0 6px 2px 0; padding: 3px 10px; border-radius: 999px; background: var(--lilac-2); color: var(--ink); font-size: 13px; font-weight: 650; vertical-align: 1px; }

/* The form in white sections; the summary card beside it, above it on phones and tablets. */
.ck-body { padding: 18px 0 48px; }
.ck-body .planner-main { display: grid; gap: 14px; padding: 0; border: 0; background: none; }
.ck-body [hidden] { display: none !important; }
.ck-body #party-checkout { display: grid; gap: 14px; }
.ck-body .notice, .ck-body .error-notice { margin: 0; }
.ck-sec, .ck-body .test-payment, .ck-body .checkout-empty { min-width: 0; margin: 0; padding: 22px 20px 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
#party-checkout .ck-sec h2, .ck-body .test-payment h2, .ck-body .checkout-empty h2 { margin: 0 0 4px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.ck-hint { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.ck-agree .checkbox-field:first-child { margin-top: 0; }
.ck-agree .btn { width: 100%; height: 56px; margin-top: 20px; border-radius: 14px; font-size: 17px; }

/* The summary card: the party's faces and name, the plan line by line with a way to change each, the price and the
   cancellation terms. */
.ck-body .ck-ticket { padding: 0; border: 0; background: none; }
.ck-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -40px rgba(42, 26, 62, .5); }
.ck-card-top { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.ck-faces { display: flex; flex: none; }
.ck-faces:empty { display: none; }
.ck-faces img { width: 58px; height: 58px; border: 3px solid #fff; border-radius: 16px; object-fit: cover; background: var(--lilac-2); box-shadow: 0 4px 12px -5px rgba(29, 27, 44, .4); }
.ck-faces img + img { margin-left: -20px; }
.ck-card-name { min-width: 0; }
.ck-card-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ck-card-sub { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ck-card-sub:empty { display: none; }
.ck-part { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.ck-part h3 { margin: 0 0 4px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.ck-rows { margin: 0; padding: 0; list-style: none; }
.ck-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 9px 0; }
.ck-rows b { font-size: 15px; font-weight: 600; }
.ck-rows span { grid-column: 1; font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.ck-change { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ck-change:hover { color: var(--violet); }
.ck-edit { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--ink-3); text-underline-offset: 3px; }
.ck-edit:hover { color: var(--violet); }
.ck-cancel p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ck-cancel a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
/* Price details: what is paid today, then the lines of the price. With the plan listed above, its one-line summary
   from the quote would say it twice. */
.ck-summary { display: grid; margin: 0; }
.is-rowed .ck-summary .price-summary-item { display: none; }
.ck-summary .price-summary-item { padding: 0 0 6px; }
.ck-summary .price-summary-item b { font-size: 16px; }
.ck-summary .quote-today { margin: 6px 0 6px; padding: 12px 16px 14px; border-radius: 16px; }
.ck-summary .quote-today strong { font-size: 26px; }
.ck-summary .quote-line { padding: 10px 0; font-size: 15px; }
.ck-summary .quote-line.total strong { font-size: 19px; }
.ck-summary .quote-subnote { margin-top: 6px; font-size: 13.5px; }

/* ---------- The confirmation: the party's poster on the card, stamped once a request or a deposit is on record ---------- */
.confirmation-card { overflow: hidden; }
/* Buttons keep their own display, so hidden ones need saying. */
.confirmation-card [hidden], .inv [hidden] { display: none !important; }
.cf-top { margin: -24px -24px 22px; text-align: left; }
.cf-top .yp-ticket-title { padding-right: 150px; }
.cf-stamp { position: absolute; top: 50%; right: 18px; margin: 0; padding: 8px 14px 6px; border: 4px solid currentColor; border-radius: 12px; background: rgba(255, 255, 255, .5); color: var(--green-ink); font-family: var(--hand); font-size: 32px; font-weight: 700; line-height: 1; white-space: nowrap; opacity: 0; translate: 0 -50%; rotate: -9deg; scale: 1.8; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.cf-stamp.is-in { opacity: .94; scale: 1; transition: opacity .16s ease-out, scale .34s cubic-bezier(.2, 1.5, .4, 1); }

/* The invitation maker */
.inv { padding-top: 0; }
.inv[hidden] { display: none; }
.inv-layout { display: grid; gap: 20px; }
.inv-main { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 22px 18px 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -50px rgba(42, 26, 62, .5); }
.inv-main .field, .inv-main .field-row .field { margin-top: 0; }
.inv-main .field-row { gap: 14px; }
.inv-h { margin: 0; font-family: var(--hand); font-size: clamp(40px, 6vw, 56px); font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--dusk); rotate: -1.5deg; transform-origin: left center; }
.inv-lede { margin: 0; color: var(--ink-2); }
.inv-styles { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.inv-styles legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.inv-styles label { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.inv-styles input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.inv-styles label:has(input:checked) { border-color: var(--dusk); box-shadow: inset 0 0 0 1px var(--dusk); }
.inv-styles label:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.inv-styles label:active { scale: .96; }
.inv-swatch { width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.inv-swatch.is-dusk { background: linear-gradient(160deg, #2A1A3E, #6A4FD6); }
.inv-swatch.is-lilac { background: linear-gradient(160deg, #F7F4FF, #DCD0FF); }
.inv-swatch.is-sunset { background: linear-gradient(160deg, #FFE3CF, #F3B6D6); }
.inv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-actions .btn-soft { background: var(--lilac-2); }
.inv-fine { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.inv-preview { order: -1; margin: 0; }
.inv-preview canvas { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: 0 40px 70px -40px rgba(42, 26, 62, .65); }
/* Print: the picture alone on a Letter page. invite.js adds the picture and the class just before printing. */
.inv-print { display: none; }
@page invitation { size: letter portrait; margin: .5in; }
@media print {
  body.is-printing-invite { background: #fff; }
  body.is-printing-invite > :not(.inv-print) { display: none !important; }
  /* The party kit's print rule hides everything in the body; the picture says otherwise. */
  body.is-printing-invite > .inv-print { page: invitation; display: block; visibility: visible; width: 100%; height: auto; margin: 0 auto; }
}

@media (min-width: 761px) {
  .is-focused .hdr-tel { display: inline-flex; width: auto; height: auto; border: 0; background: none; }
  .is-focused .hdr-tel span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .is-focused .hdr-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .72); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
  .is-focused .hdr-back:hover { background: #fff; color: var(--violet); }
  .ck-head { padding-top: 104px; }
  .ck-back { display: none; }
  .ck-body { padding-top: 26px; }
  .ck-sec, .ck-body .test-payment, .ck-body .checkout-empty { padding: 26px 28px 28px; }
  .ck-card-top { padding: 22px 24px 18px; }
  .ck-part { padding: 18px 24px 22px; }
  .cf-top { margin: -32px -32px 26px; }
  .cf-stamp { right: 28px; font-size: 38px; }
  .inv-main { padding: 28px 28px 30px; }
  .inv-main .field-row { grid-template-columns: minmax(0, 1fr) 140px; }
}
/* Phones: the confirmation keeps its stamp clear of the party name. */
@media (max-width: 760px) {
  .cf-top .yp-ticket-title { padding-right: 120px; font-size: 36px; }
  .cf-stamp { right: 14px; font-size: 26px; }
}
@media (min-width: 900px) {
  .inv-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
  .inv-preview { order: 0; position: sticky; top: 96px; }
  .inv-preview canvas { max-width: none; }
}
@media (min-width: 1100px) {
  .ck-body .planner-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  /* The summary card stays in view beside the form; on a short screen it scrolls on its own. */
  .ck-body .ck-ticket { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-stamp, .cf-stamp.is-in { transition: none; }
}
