/* TheDrawingKit: the purikura booth.
   Grape booth interior, glossy kiss-cut sheets, gel-pen ink.
   Lime means one thing only: active / selected / open right now. */

:root {
  --grape-950: #12051f;
  --grape-900: #1c0a30;
  --grape-850: #241040;
  --grape-800: #2e1550;
  --grape-700: #43206f;
  --grape-600: #5b2a96;
  --grape-300: #b9a2d9;
  --ink: #23103a;
  --ink-soft: #4d3a66;

  --magenta: #ff2e93;
  --magenta-ink: #d1006c;   /* magenta text on white, 5.2:1 */
  --magenta-tint: #ffd1e8;
  --cyan: #19d3f0;
  --cyan-ink: #007386;      /* cyan text on white, 5.1:1 */
  --cyan-tint: #c9f6fd;
  --lime: #c6ff3d;          /* active only */

  --paper: #ffffff;
  --backing: #f6f1fb;       /* sheet backing paper, a lilac white */
  --backing-dot: #e7dcf3;
  --cut: #cdb9e6;           /* die-cut line */

  --f-booth: "Mochiy Pop One", "M PLUS Rounded 1c", system-ui, sans-serif;
  --f-gel: "Gochi Hand", "M PLUS Rounded 1c", cursive;
  --f-body: "M PLUS Rounded 1c", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --sheet-pad: clamp(16px, 3.4vw, 44px);
  --radius-sheet: clamp(22px, 3vw, 34px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sheet: 0 2px 0 rgba(255,255,255,.6) inset, 0 30px 60px -24px rgba(5, 0, 12, .75), 0 10px 22px -10px rgba(5, 0, 12, .6);
  --shadow-sticker: 0 1px 1px rgba(35,16,58,.10), 0 10px 18px -8px rgba(35,16,58,.42);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #f4ecff;
  background-color: var(--grape-900);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 46, 147, .22), transparent 60%),
    radial-gradient(80% 50% at 100% 40%, rgba(25, 211, 240, .10), transparent 70%),
    radial-gradient(70% 50% at 0% 80%, rgba(91, 42, 150, .45), transparent 70%);
  background-attachment: fixed;
  overflow-x: clip;
  caret-color: var(--magenta);
}

::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
.sheet :focus-visible, .link-tray :focus-visible, .strip :focus-visible, .print-view :focus-visible { outline-color: var(--grape-600); }
html { scrollbar-color: var(--magenta) var(--grape-950); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--grape-950); }
::-webkit-scrollbar-thumb { background: var(--magenta); border-radius: 999px; border: 3px solid var(--grape-950); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Gel pen ink: colored stroke wrapped in a white outline ---------- */
.gel {
  font-family: var(--f-gel);
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-text-stroke: .2em #fff;
  paint-order: stroke fill;
  filter: drop-shadow(0 3px 4px rgba(18, 5, 31, .35));
  line-height: 1;
}
.gel--magenta { color: var(--magenta); }
.gel--cyan { color: var(--cyan); }
.gel--grape { color: var(--grape-600); }

/* ---------- Candy booth buttons ---------- */
.candy {
  --candy: var(--grape-700);
  --candy-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.15em;
  border: 0; border-radius: 999px;
  background: var(--candy); color: var(--candy-ink);
  font-family: var(--f-booth); font-size: .95rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.22), 0 6px 14px -6px rgba(5,0,12,.7);
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s var(--ease-out);
}
.candy:hover { transform: translateY(-2px); background: color-mix(in oklab, var(--candy) 82%, #fff); }
.candy:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
.candy[aria-pressed="true"], .candy[aria-current] { --candy: var(--lime); --candy-ink: var(--ink); }
.candy--magenta { --candy: var(--magenta-ink); }
.candy--cyan { --candy: var(--cyan); --candy-ink: var(--ink); }
.candy--ghost { --candy: transparent; --candy-ink: var(--ink); box-shadow: inset 0 0 0 2px var(--cut); }
.candy--ghost:hover { background: var(--backing); }
.candy--icon { padding: 0; width: 48px; }
.candy .count { font-family: var(--f-body); font-weight: 800; font-size: .8em; opacity: .75; }
.candy[disabled], .candy[aria-disabled="true"] { --candy: #cfc4dc; --candy-ink: #5d4e70; cursor: not-allowed; transform: none; }

/* ---------- Booth bar ---------- */
.booth-bar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(var(--grape-950), color-mix(in oklab, var(--grape-950) 88%, transparent));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.booth-bar__inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
}
.logo-sticker {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 16px 4px 4px; border-radius: 999px;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 3px var(--grape-950), 0 0 0 4.5px var(--cut), var(--shadow-sticker);
  transform: rotate(-2deg);
  transition: transform .35s var(--ease-out);
}
.logo-sticker:hover { transform: rotate(0deg) scale(1.03); }
.logo-sticker img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--magenta); }
.logo-sticker__name { font-family: var(--f-booth); font-size: 1rem; letter-spacing: -.01em; }

.booth-nav { display: flex; justify-content: center; gap: 8px; }
.booth-nav .candy { font-size: .85rem; min-height: 40px; padding-inline: 1em; }

/* Commission status readout: one cell, restyled by state */
.readout {
  --state: var(--magenta);
  display: inline-grid; grid-auto-flow: row; justify-items: start; gap: 2px;
  min-width: 132px; padding: 7px 14px 8px;
  border-radius: 14px;
  background: #07020d;
  box-shadow: inset 0 0 0 2px #2c1a45, inset 0 6px 14px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.08);
  text-decoration: none; color: #fff;
}
.readout__label { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--grape-300); }
.readout__state {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-booth); font-size: 1rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  color: var(--state);
}
.readout__state::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--state); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.6);
}
.readout[data-status="open"] { --state: var(--lime); }
.readout[data-status="waitlist"] { --state: var(--cyan); }
.readout[data-status="open"] .readout__state::before { animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
a.readout:hover { box-shadow: inset 0 0 0 2px var(--state), inset 0 6px 14px rgba(0,0,0,.65); }

.print-slot {
  height: 10px; max-width: calc(1320px - 2 * var(--gutter)); margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: #050009;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06);
}

@media (max-width: 860px) {
  .booth-bar__inner { grid-template-columns: 1fr auto; row-gap: 10px; padding-block: 10px; }
  .booth-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; }
  .booth-nav::-webkit-scrollbar { display: none; }
  .booth-nav { gap: 6px; }
  .booth-nav .candy { font-size: clamp(.7rem, 3.3vw, .85rem); padding-inline: .8em; min-height: 40px; }

  .readout { min-width: 0; padding: 6px 12px; }
  .readout__state { font-size: .88rem; }
}
@media (max-width: 400px) {
  .logo-sticker__name { font-size: .9rem; }
}

/* ---------- Sheets: glossy sticker paper on printed backing ---------- */
.sheet {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: var(--sheet-pad);
  border-radius: var(--radius-sheet);
  color: var(--ink);
  background-color: var(--backing);
  /* gloss sweep sits in the paper itself, under every word */
  background-image:
    linear-gradient(118deg, rgba(255,255,255,0) 26%, rgba(255,255,255,.75) 36%, rgba(255,255,255,0) 44%),
    linear-gradient(118deg, rgba(255,255,255,0) 47%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 53%),
    radial-gradient(var(--backing-dot) 1.3px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  box-shadow: var(--shadow-sheet);
}
/* registration ticks in the four corners */
.sheet::before {
  --t: 16px; --o: 14px; --w: 1.5px; --c: var(--cut);
  content: ""; position: absolute; inset: var(--o); pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) 0 calc(var(--t) / 2) / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) calc(var(--t) / 2) 0 / var(--w) var(--t),
    linear-gradient(var(--c), var(--c)) 100% calc(var(--t) / 2) / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) calc(100% - var(--t) / 2) 0 / var(--w) var(--t),
    linear-gradient(var(--c), var(--c)) 0 calc(100% - var(--t) / 2) / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) calc(var(--t) / 2) 100% / var(--w) var(--t),
    linear-gradient(var(--c), var(--c)) 100% calc(100% - var(--t) / 2) / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) calc(100% - var(--t) / 2) 100% / var(--w) var(--t);
  background-repeat: no-repeat;
}

/* ---------- Stickers ---------- */
.sticker {
  --tilt: 0deg;
  position: relative; display: block;
  padding: clamp(6px, .8vw, 9px);
  border: 0; border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--tilt));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  cursor: pointer;
}
/* die-cut line around the kiss-cut border */
.sticker::before {
  content: ""; position: absolute; inset: -6px; border-radius: 24px; pointer-events: none;
  border: 1.5px dashed var(--cut);
}
.sticker img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
/* peel: the corner lifts and shows the paper's back */
.sticker::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px;
  border-radius: 0 0 18px 0;
  background: linear-gradient(315deg, transparent 50%, #efe7f8 50%, #d9cbea 100%);
  box-shadow: -3px -3px 8px -2px rgba(35,16,58,.35);
  transform: scale(0); transform-origin: 100% 100%;
  transition: transform .4s var(--ease-out);
}
.sticker:hover, .sticker:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 2px 2px rgba(35,16,58,.1), 0 22px 30px -12px rgba(35,16,58,.5); z-index: 2; }
.sticker:hover::after, .sticker:focus-visible::after { transform: scale(1); }
.sticker .shine {
  position: absolute; inset: clamp(6px, .8vw, 9px); border-radius: 11px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 48%, transparent 62%);
  background-size: 250% 250%;
  background-position: var(--mx, 120%) 50%;
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s;
}
.sticker:hover .shine { opacity: 1; }
.sticker--mini { width: 92px; padding: 5px; border-radius: 12px; }
.sticker--mini img { border-radius: 8px; aspect-ratio: 396/720; }
.sticker--mini::before { inset: -5px; border-radius: 16px; }

/* ---------- Hero sheet ---------- */
.hero { padding: clamp(16px, 2.2vw, 28px) var(--gutter) 0; }
.sheet--hero { animation: print-out 1.1s var(--ease-out) both; }
@keyframes print-out {
  from { transform: translateY(-36px); clip-path: inset(0 0 100% 0 round var(--radius-sheet)); }
  to { transform: none; clip-path: inset(0 0 0 0 round var(--radius-sheet)); }
}
@media (prefers-reduced-motion: reduce) { .sheet--hero { animation: none; } }

.hero__grid {
  display: grid;
  grid-template-columns: var(--frame-w) minmax(0, 1fr);
  grid-template-areas: "frame copy" "frame links";
  --frame-w: clamp(260px, min(42vw, calc((100svh - 250px) * .64)), 540px);
  gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 56px);
  align-items: start;
}
.hero__frame { grid-area: frame; margin: 0; position: relative; width: var(--frame-w); }
.catframe { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 22px rgba(35,16,58,.32)); transform: rotate(-1.5deg); }
.catframe__cut { stroke: var(--cut); stroke-dasharray: 9 7; }

.hero__copy { grid-area: copy; padding-top: 58px; position: relative; container-type: inline-size; }
.hero__grid { container: herogrid / inline-size; }
.hero__hi { font-size: clamp(2.6rem, 5.4vw, 4.4rem); transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: .1em; display: inline-block; }
.hero__name {
  font-family: var(--f-booth);
  font-size: min(4.8rem, 12.6cqi);
  line-height: 1; letter-spacing: -.03em;
  color: var(--ink);
  white-space: nowrap;
}
.hero__lede { margin-top: .9rem; font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 800; line-height: 1.35; color: var(--magenta-ink); max-width: 26ch; }
.hero__sub { margin-top: .8rem; max-width: 40ch; color: var(--ink-soft); font-weight: 500; }
.hero__sub a { color: var(--ink); font-weight: 800; text-decoration-color: var(--magenta); }
.pronouns { display: inline-block; margin-left: .3em; padding: 0 .55em; border-radius: 999px; background: var(--cyan-tint); color: var(--cyan-ink); font-weight: 800; font-size: .82em; }

@container herogrid (min-width: 900px) {
  .hero__copy > * { max-width: none; }
  .hero__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(16px, 2.4vw, 32px); align-items: start; }
  .hero__hi, .hero__name { grid-column: 1 / -1; justify-self: start; }
  .hero__lede { grid-column: 1; }
  .hero__sub { grid-column: 1; }
  .process { grid-column: 2; grid-row: 3 / span 2; align-self: center; margin-top: 10px; }
}
.process { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px); margin-top: clamp(16px, 2.2vw, 26px); }
.process__frame {
  position: relative; flex: none; width: clamp(92px, 9.4vw, 132px); padding: 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-sticker); transform: rotate(-3deg);
  transition: transform .45s var(--ease-out);
}
.process__frame + .process__arrow + .process__frame { transform: rotate(2.5deg); }
.process__frame::before { content: ""; position: absolute; inset: -5px; border-radius: 16px; border: 1.5px dashed var(--cut); pointer-events: none; }
.process__frame img { width: 100%; aspect-ratio: 2/3; object-fit: cover; object-position: 50% 0; border-radius: 7px; }
.process__frame:hover { transform: rotate(0deg) translateY(-3px); }
.process__label { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); white-space: nowrap; rotate: -4deg; }
.process__arrow { width: clamp(38px, 4vw, 56px); height: 30px; flex: none; stroke: var(--cyan); }
.hero__links { grid-area: links; align-self: end; }

/* Link stickers (shared by hero + tray) */
.link-stickers, .hero__links, .link-tray { list-style: none; margin: 0; padding: 0; }
.hero__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 16px 14px; padding-bottom: 6px; }
.link-sticker--compact { min-height: 58px; padding: 8px 12px 8px 8px; gap: 10px; }
.link-sticker--compact .link-sticker__badge { width: 40px; height: 40px; border-radius: 13px; }
.link-sticker--compact .link-sticker__label { font-size: .95rem; white-space: nowrap; }
.link-sticker {
  --tone: var(--magenta); --tone-ink: #fff;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 16px 10px 10px;
  border-radius: 22px;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-sticker);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.link-sticker::before { content: ""; position: absolute; inset: -6px; border-radius: 28px; border: 1.5px dashed var(--cut); pointer-events: none; }
.link-sticker::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 0 0 22px 0;
  background: linear-gradient(315deg, transparent 50%, #efe7f8 50%, #d9cbea 100%);
  box-shadow: -3px -3px 8px -2px rgba(35,16,58,.35);
  transform: scale(0); transform-origin: 100% 100%;
  transition: transform .4s var(--ease-out);
}
.link-sticker:hover, .link-sticker:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 2px 2px rgba(35,16,58,.1), 0 22px 30px -12px rgba(35,16,58,.5); }
.link-sticker:hover::after, .link-sticker:focus-visible::after { transform: scale(1); }
.link-sticker__badge {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--tone); color: var(--tone-ink);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.15);
}
.link-sticker__badge .icon { width: 22px; height: 22px; }
.link-sticker__text { display: grid; line-height: 1.2; min-width: 0; }
.link-sticker__label { font-family: var(--f-booth); font-size: .98rem; }
.link-sticker__handle { font-size: .8rem; font-weight: 700; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-sticker[data-tone="cyan"] { --tone: var(--cyan); --tone-ink: var(--ink); }
.link-sticker[data-tone="grape"] { --tone: var(--grape-600); }

@media (max-width: 700px) {
  /* Phones: name first, then the art, then the rest of the intro. */
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; row-gap: 0; }
  .hero__copy { display: contents; }
  .hero__hi { order: 1; justify-self: start; }
  .hero__name { order: 2; }
  .hero__lede { order: 3; }
  .hero__frame { order: 4; margin-top: 28px; grid-area: auto; }
  .hero__sub { order: 5; margin-top: 22px; }
  .process { order: 6; }
  .hero__links { order: 7; margin-top: 30px; grid-area: auto; }
  .hero__frame { max-width: 480px; width: 100%; justify-self: center; }
}
@media (max-width: 420px) {
  .hero__links { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .link-sticker--compact .link-sticker__label { font-size: .86rem; }
  .link-sticker { padding: 8px 10px 8px 8px; gap: 8px; min-height: 56px; }
  .link-sticker__badge { width: 36px; height: 36px; border-radius: 11px; }
  .link-sticker__label { font-size: .86rem; }
  .link-sticker__handle { font-size: .72rem; }
}
@media (max-width: 360px) {
  .hero__links { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Doodle (rakugaki) ---------- */
.doodle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; z-index: 5; touch-action: none; }
.sheet.is-doodling .doodle-canvas { pointer-events: auto; cursor: crosshair; }
.doodle-tools {
  position: absolute; z-index: 6; top: calc(var(--sheet-pad) * .5); right: calc(var(--sheet-pad) * .5);
  display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-start;
  max-width: calc(100% - var(--sheet-pad));
}
.pen-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff;
  font-family: var(--f-booth); font-size: .82rem;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 8px 16px -8px rgba(35,16,58,.7);
  transition: transform .25s var(--ease-out);
}
.pen-toggle:hover { transform: translateY(-2px) rotate(-2deg); }
.pen-toggle[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.pen-tray { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sticker); }
.pen-tray[hidden] { display: none; }
.pen {
  --pen: var(--ink);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pen);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--cut);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.pen--stamp, .pen--clear { background: var(--backing); color: var(--ink); }
.pen--stamp .icon, .pen--clear .icon { width: 18px; height: 18px; }
.pen[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--lime); transform: scale(1.08); }
.pen:hover { transform: scale(1.1); }
@media (max-width: 700px) {
  .doodle-tools { top: auto; bottom: calc(var(--sheet-pad) * .5 + 34px); right: 50%; transform: translateX(50%); flex-direction: column-reverse; width: max-content; }
  [data-doodle-sheet] { padding-bottom: calc(var(--sheet-pad) + 74px); }
  [data-doodle-sheet].is-doodling { padding-bottom: calc(var(--sheet-pad) + 128px); }
}

/* ---------- Section rhythm ---------- */
.booth-section { padding: clamp(72px, 10vw, 136px) var(--gutter) 0; }
.section-head { max-width: 1240px; margin: 0 auto clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; }
.section-head h2 { font-family: var(--f-booth); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em; color: #fff; }
.section-head h2 .gel { font-size: 1.12em; display: inline-block; transform: rotate(-3deg); }
.section-head p { color: var(--grape-300); font-weight: 700; }

/* ---------- Gallery ---------- */
.frame-picks { max-width: 1240px; margin: 0 auto 22px; display: flex; flex-wrap: wrap; gap: 10px; }
/* One counted module: every sticker sits in the same square cell; rows always finish flush. */
.sticker-grid {
  --gap: clamp(22px, 3vw, 38px);
  --size: clamp(136px, calc((100vw - 2 * var(--gutter) - 2 * var(--sheet-pad) - var(--gap)) / 2), 196px);
  list-style: none; margin: 0; padding: 18px 0 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--size));
  grid-auto-rows: var(--size);
  gap: var(--gap);
  justify-content: center;
}
.sticker-grid > li { position: relative; }
.sticker-grid .sticker { width: 100%; height: 100%; }
.sticker-grid .sticker img { object-position: 50% 28%; }
.sticker-grid .sticker[data-ring="magenta"] img { box-shadow: 0 0 0 3px var(--magenta); }
.sticker-grid .sticker[data-ring="cyan"] img { box-shadow: 0 0 0 3px var(--cyan); }
/* circle cut */
.sticker--circle, .sticker--circle img, .sticker--circle .shine { border-radius: 50%; }
.sticker--circle::before { border-radius: 50%; }
.sticker--circle::after { display: none; }
.sticker--circle img { box-shadow: 0 0 0 3px var(--cyan); }
/* cat-ear cut */
.sticker--cat { border-radius: 22px; }
.sticker--cat .ears { position: absolute; left: 0; top: -15%; width: 100%; height: 16%; overflow: visible; pointer-events: none; }
.sticker--cat::before { border-top-color: transparent; }
.sticker--cat img { box-shadow: 0 0 0 3px var(--magenta); }
/* postage-stamp cut: perforated edge */
.sticker--stamp {
  --r: 5px;
  border-radius: 0; padding: calc(var(--r) * 2.6);
  -webkit-mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
          mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  box-shadow: none;
}
.sticker-grid > li[data-cut="stamp"] { filter: drop-shadow(0 8px 10px rgba(35,16,58,.32)); }
.sticker--stamp::before, .sticker--stamp::after { display: none; }
.sticker--stamp img { border-radius: 2px; }
.sticker--stamp .shine { inset: calc(var(--r) * 2.6); border-radius: 2px; }
/* decorative stamps that finish the last row, and the "more" sticker */
.stamp-sticker, .more-sticker {
  --tone: var(--magenta);
  display: grid; place-items: center; align-content: center; gap: 4px;
  width: 100%; height: 100%; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sticker);
  transform: rotate(var(--tilt, 0deg)) scale(.72);
}
.stamp-sticker .icon { width: 46%; height: 46%; color: var(--tone); stroke-width: 2.4; }
.stamp-sticker[data-tone="cyan"] { --tone: var(--cyan-ink); }
.stamp-sticker[data-tone="grape"] { --tone: var(--grape-600); }
.sticker-grid > li[data-more] { grid-column: span var(--span, 1); }
.more-sticker[data-wide] { grid-auto-flow: column; justify-content: center; gap: 14px; }
.more-sticker[data-wide] .gel { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.more-sticker[data-wide] .icon { width: 44px; height: 44px; }
.more-sticker[data-wide] .more-sticker__handle { font-size: clamp(.95rem, 1.5vw, 1.2rem); }
.more-sticker { transform: rotate(var(--tilt, 0deg)); border-radius: 26px; color: var(--ink); text-decoration: none; text-align: center; padding: 12px; background: var(--magenta-tint); box-shadow: inset 0 0 0 2px #fff, var(--shadow-sticker); transition: transform .45s var(--ease-out); }
.more-sticker:hover { transform: rotate(0deg) translateY(-4px); }
.more-sticker .icon { width: 34px; height: 34px; color: var(--magenta-ink); }
.more-sticker .gel { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.more-sticker__handle { font-family: var(--f-booth); font-size: clamp(.78rem, 1.2vw, .95rem); overflow-wrap: anywhere; }
.sticker__tag {
  position: absolute; left: 50%; bottom: -14px; translate: -50% 0; z-index: 3;
  max-width: calc(100% + 20px);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
  rotate: -3deg;
  opacity: 0; translate: -50% 6px; transition: opacity .25s, translate .35s var(--ease-out);
}
.sticker:hover .sticker__tag, .sticker:focus-visible .sticker__tag { opacity: 1; translate: -50% 0; }
.sticker-grid li.is-entering { animation: stick .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes stick { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .sticker-grid li.is-entering { animation: none; } }

/* ---------- Hey, Kittie world: photo-booth strips ---------- */
.world__intro { max-width: 1240px; margin: 0 auto clamp(28px, 4vw, 44px); display: grid; grid-template-columns: auto minmax(0, 46ch); align-items: end; gap: 12px 48px; }
.world__title { font-family: var(--f-booth); font-size: clamp(3rem, 9vw, 7rem); line-height: .9; letter-spacing: -.03em; color: #fff; }
.world__title .gel { display: inline-block; font-size: .9em; transform: rotate(-6deg) translateY(-.08em); }
.world__intro p { color: #e5d8f5; font-weight: 500; padding-bottom: .5em; }
@media (max-width: 760px) { .world__intro { grid-template-columns: 1fr; } }

.strips {
  max-width: 1240px; margin: 0 auto;
  display: flex; gap: clamp(18px, 3vw, 36px); align-items: flex-start; justify-content: center; flex-wrap: wrap;
}
.strip {
  --tilt: 0deg;
  width: clamp(200px, 26vw, 290px);
  padding: 12px 12px 0;
  border-radius: 10px;
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sheet);
  transform: rotate(var(--tilt));
  transition: transform .5s var(--ease-out);
}
.strip:hover { transform: rotate(0deg) translateY(-6px); }
.strip__shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.strip__shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; overflow: hidden; }
.strip__shot img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease-out); }
.strip__cap { margin: 6px 2px 2px; font-size: .8rem; font-weight: 700; line-height: 1.35; color: var(--ink-soft); text-align: center; }
.strip__cap b { color: var(--ink); font-weight: 800; }
.strip__shot:hover img { transform: scale(1.04); }
.strip__foot { padding: 12px 4px 14px; text-align: center; }
.strip__name { font-family: var(--f-gel); font-size: 1.7rem; line-height: 1; color: var(--magenta-ink); }
.strip__who { margin-top: 4px; font-size: .84rem; font-weight: 700; color: var(--ink-soft); line-height: 1.35; }
.strip:nth-child(2) .strip__name { color: var(--cyan-ink); }
.strip:nth-child(3) .strip__name { color: var(--grape-600); }

.sugarcry {
  max-width: 1240px; margin: clamp(56px, 8vw, 96px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center;
}
.sugarcry__copy h3 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.sugarcry__copy p { margin-top: 1rem; max-width: 34ch; color: #e5d8f5; font-weight: 500; }
.sugarcry__piece img { aspect-ratio: 3/4; }
@media (max-width: 760px) {
  .sugarcry { grid-template-columns: 1fr 1fr; }
  .sugarcry__copy { grid-column: 1 / -1; }
}

/* ---------- Commission booth teaser ---------- */
.sheet--booth { background-color: #fff; }
.com-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.com-teaser__head h2 { font-family: var(--f-booth); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; }
.com-teaser__head h2 .gel { display: inline-block; font-size: 1.15em; transform: rotate(-4deg); }
.status-line { margin-top: 18px; font-family: var(--f-booth); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3; color: var(--ink); }
.state-word { font-weight: 400; color: var(--magenta-ink); }
.state-word[data-status="waitlist"] { color: var(--cyan-ink); }
.state-word[data-status="open"] { color: var(--ink); background: var(--lime); padding: 0 .3em; border-radius: .4em; }
.com-teaser__note { margin-top: 14px; max-width: 38ch; color: var(--ink-soft); font-weight: 500; }
.com-teaser__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.tier-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.tier-strip li { display: grid; gap: 12px; text-align: center; }
.tier-strip .sticker img { aspect-ratio: 3/4; }
.tier-strip__name { font-family: var(--f-booth); font-size: .95rem; }
.tier-strip__price { font-size: .8rem; font-weight: 800; color: var(--magenta-ink); }
@media (max-width: 900px) {
  .com-teaser { grid-template-columns: minmax(0, 1fr); }
  .com-teaser__actions .candy { max-width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 560px) { .tier-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Link tray ---------- */
.link-tray {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 26px 22px;
  padding: var(--sheet-pad); border-radius: var(--radius-sheet);
  background-color: var(--backing); background-image: radial-gradient(var(--backing-dot) 1.3px, transparent 1.6px); background-size: 18px 18px;
  box-shadow: var(--shadow-sheet);
}
.link-tray .link-sticker { min-height: 84px; padding: 14px 18px 14px 14px; }
.link-tray .link-sticker__badge { width: 54px; height: 54px; border-radius: 17px; }
.link-tray .link-sticker__badge .icon { width: 26px; height: 26px; }
.link-tray .link-sticker__label { font-size: 1.08rem; }
.link-sticker__note { font-family: var(--f-gel); font-size: 1.15rem; color: var(--magenta-ink); line-height: 1.1; }
.tip-jar { max-width: 1240px; margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--grape-300); font-weight: 700; }
.tip-jar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tip-jar a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 800; box-shadow: inset 0 0 0 2px var(--grape-700); transition: background-color .2s; }
.tip-jar a:hover { background: var(--grape-800); }
.tip-jar a .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--grape-700); }
.noscript-links { max-width: 1240px; margin: 20px auto; color: #fff; }

/* ---------- Footer ---------- */
.site-foot { padding: clamp(80px, 12vw, 150px) var(--gutter) 40px; }
.site-foot__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 32px; padding-top: 22px; border-top: 1.5px dashed var(--grape-700); color: var(--grape-300); font-size: .9rem; font-weight: 500; }
.site-foot__sign .gel { font-size: 2.2rem; }
.credit a { color: #fff; font-weight: 800; text-decoration-color: var(--cyan); }
.credit a:hover { color: var(--cyan); }

/* ---------- Print view (full-size) ---------- */
.print-view {
  width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 16px);
  margin: auto; padding: 0 0 16px; border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.print-view::backdrop { background: rgba(10, 2, 18, .84); backdrop-filter: blur(6px); }
.print-view__slot { height: 14px; margin: 0 -14px; border-radius: 10px; background: #050009; box-shadow: inset 0 4px 8px rgba(0,0,0,.95), 0 0 0 2px #2c1a45; position: relative; z-index: 2; }
.print-view__sheet {
  position: relative; margin: -7px 0 0; padding: 14px 14px 12px;
  border-radius: 4px 4px 22px 22px; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.print-view__sheet::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--cut); border-radius: 2px 2px 17px 17px; pointer-events: none; }
.print-view__sheet::after {
  content: ""; position: absolute; inset: 14px 14px auto; height: var(--img-h, 60%); pointer-events: none; border-radius: 8px;
  background: linear-gradient(118deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 40%, rgba(255,255,255,0) 48%);
  mix-blend-mode: overlay;
}
.print-view[open] .print-view__sheet { animation: print-down .8s var(--ease-out) both; }
@keyframes print-down { from { clip-path: inset(0 0 100% 0); transform: translateY(-48px); } to { clip-path: inset(0 0 -40px 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .print-view[open] .print-view__sheet { animation: none; } }
.print-view__figure { margin: 0; display: grid; gap: 12px; width: min-content; }
.print-view__figure img {
  display: block; width: auto; height: auto;
  max-width: min(1000px, calc(100vw - 52px)); max-height: calc(100dvh - 190px);
  border-radius: 8px; background: var(--backing);
}
.print-view__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 2px 4px 0; }
.print-view figcaption { min-width: 0; }
.print-view h2 { font-family: var(--f-booth); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.15; letter-spacing: -.01em; }
.print-view figcaption p { margin-top: 2px; font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.print-view figcaption p a { color: var(--magenta-ink); font-weight: 800; margin-left: .4em; }
.print-view__controls { display: flex; gap: 8px; flex: none; }
.print-view__controls .candy--icon { width: 44px; min-height: 44px; }
@media (max-width: 760px) {
  .print-view__figure img { max-height: calc(100dvh - 230px); }
}

/* ======================================================================
   Commissions page
   ====================================================================== */
.com-page { padding: clamp(18px, 3vw, 34px) var(--gutter) 0; }
.com-hero { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.com-hero h1 { font-family: var(--f-booth); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.com-hero h1 .gel { display: inline-block; font-size: 1.1em; transform: rotate(-4deg); }
.com-hero p { margin-top: 16px; max-width: 46ch; color: var(--ink-soft); font-weight: 500; }

.com-hero__status { display: grid; justify-items: start; gap: 14px; }
.com-hero__status p { margin: 0; max-width: 34ch; }
@media (max-width: 860px) { .com-hero { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.steps a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--backing); color: var(--ink); text-decoration: none; font-family: var(--f-booth); font-size: .88rem; box-shadow: inset 0 0 0 2px var(--cut); }
.steps a::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; }
.steps a:hover { box-shadow: inset 0 0 0 2px var(--magenta); }

.booth-step { max-width: 1240px; margin: clamp(56px, 8vw, 96px) auto 0; }
.booth-step__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: clamp(18px, 2.6vw, 28px); }
.booth-step__head h2 { font-family: var(--f-booth); font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.booth-step__head h2 .gel { display: inline-block; transform: rotate(-3deg); font-size: 1.1em; }
.booth-step__head p { color: var(--grape-300); font-weight: 700; }

.frame-choice, .lockable { border: 0; margin: 0; padding: 0; min-width: 0; }
.frame-choice__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 900px) { .frame-choice__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.frame-card { position: relative; display: grid; gap: 12px; cursor: pointer; color: #fff; }
.frame-card input { position: absolute; opacity: 0; pointer-events: none; }
.frame-card .sticker { cursor: pointer; }
.frame-card .sticker img { aspect-ratio: 3/4; }
.frame-card__text { display: grid; gap: 2px; padding: 0 4px; }
.frame-card__name { font-family: var(--f-booth); font-size: 1.05rem; }
.frame-card__price { font-weight: 800; color: var(--magenta); font-size: .9rem; }
.frame-card__blurb { font-size: .9rem; color: var(--grape-300); font-weight: 500; line-height: 1.4; }
.booth-step > .lockable .field__error { margin-top: 14px; color: var(--magenta); }
.frame-card input:checked + .sticker { box-shadow: 0 0 0 4px var(--lime), var(--shadow-sticker); transform: rotate(0deg) translateY(-4px); }
.frame-card input:checked + .sticker::before { border-color: var(--grape-600); border-style: solid; }
.frame-card input:focus-visible + .sticker { outline: 3px solid var(--cyan); outline-offset: 8px; }
.frame-card input:checked ~ .frame-card__text .frame-card__name::after { content: " · picked"; color: var(--lime); font-family: var(--f-body); font-weight: 800; font-size: .8rem; }

.form-sheet { color: var(--ink); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; }
.field-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > .field__label, .choice-group legend { font-family: var(--f-booth); font-size: .95rem; color: var(--ink); padding: 0; }
.field__hint { font-size: .84rem; color: var(--ink-soft); font-weight: 500; margin-top: -4px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="date"], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 0; border-radius: 16px;
  background: #fff; color: var(--ink);
  font: 500 1rem/1.4 var(--f-body);
  box-shadow: inset 0 0 0 2px var(--cut), inset 0 3px 6px rgba(35,16,58,.06);
  transition: box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a6a91; }
.field input:hover, .field textarea:hover, .field select:hover { box-shadow: inset 0 0 0 2px var(--grape-300); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 3px var(--magenta); }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 3px var(--magenta-ink); background: #fff5fa; }
.field__error { display: none; align-items: center; gap: 6px; font-size: .86rem; font-weight: 800; color: var(--magenta-ink); }
.field.has-error .field__error { display: flex; }

.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--cut); font-weight: 800; font-size: .92rem; color: var(--ink); transition: background-color .2s, box-shadow .2s; }
.chip input:hover + span { box-shadow: inset 0 0 0 2px var(--grape-300); }
.chip input:checked + span { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--grape-600); outline-offset: 3px; }
.chip input:checked + span::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }

.agree { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); cursor: pointer; }
.agree input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 26px; height: 26px; margin: 0; border-radius: 8px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 2px var(--cut), 0 2px 4px rgba(35,16,58,.12);
  display: grid; place-items: center; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.agree input::after { content: ""; width: 15px; height: 15px; background: var(--ink); transform: scale(0); transition: transform .25s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.agree input:hover { box-shadow: inset 0 0 0 2px var(--grape-300), 0 2px 4px rgba(35,16,58,.12); }
.agree input:checked { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); transform: rotate(-4deg); }
.agree input:checked::after { transform: scale(1); }
.agree input:disabled { background: var(--backing); box-shadow: inset 0 0 0 1.5px var(--cut); }
.field.has-error .agree input { box-shadow: inset 0 0 0 3px var(--magenta-ink); background: #fff5fa; }
.form-sheet { color-scheme: light; }
.field input[type="date"] { color: var(--ink); }
.field input[type="date"]:invalid, .field input[type="date"]:not(:focus):placeholder-shown { color: #7a6a91; }
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper { font-family: var(--f-body); }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .8; filter: invert(12%) sepia(40%) saturate(2400%) hue-rotate(250deg); padding: 4px; border-radius: 8px; }
.field input[type="date"]::-webkit-calendar-picker-indicator:hover { background: var(--magenta-tint); }

.terms { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 8px; color: var(--ink); font-weight: 500; }
.terms-empty { color: var(--ink-soft); font-weight: 600; }

.print-bar { margin-top: clamp(26px, 3vw, 36px); padding-top: 22px; border-top: 1.5px dashed var(--cut); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.print-bar__msg { display: flex; align-items: center; gap: 10px; max-width: 54ch; font-weight: 700; color: var(--ink-soft); }
.print-bar__msg .icon { color: var(--magenta-ink); }
.print-btn { font-size: 1.05rem; min-height: 54px; padding-inline: 1.5em; }
.print-btn.is-loading { pointer-events: none; }
.print-btn.is-loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

form fieldset[disabled] { opacity: .62; }
form fieldset[disabled] * { cursor: not-allowed; }
.preview-banner[hidden] { display: none; }
.preview-banner { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; padding: 14px 18px; border-radius: 18px; background: var(--magenta-tint); color: var(--ink); font-weight: 600; }
.preview-banner .icon { color: var(--magenta-ink); margin-top: 3px; }
.preview-banner a { font-weight: 800; color: var(--magenta-ink); }

.receipt { display: grid; justify-items: center; gap: 14px; padding: clamp(24px, 4vw, 48px) 12px; text-align: center; }
.receipt[hidden] { display: none; }
.receipt h3 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.receipt p { max-width: 44ch; color: var(--ink-soft); font-weight: 600; }
.form-error { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: #fff0f6; color: var(--magenta-ink); font-weight: 800; }
.form-error.is-shown { display: block; }
