/* laidoodle — shared styles, following the Laidoodle brand kit (Paper, Ink Cobalt, Marker Pink, one tangerine detail;
   Varesco headlines, DM Sans body, Cheesay Bold handwriting; torn paper instead of boxes, no rounded corners). */

@font-face { font-family: "Varesco"; src: url("assets/fonts/varesco.woff2") format("woff2"); font-display: swap; size-adjust: 88%; }
@font-face { font-family: "Cheesay Bold"; src: url("assets/fonts/cheesay-bold.woff2") format("woff2"); font-display: swap; size-adjust: 140%; }

:root {
  --paper: #F7EFDF;
  --scrap: #ECE0C8;
  --cobalt: #1F35B3;
  --pink: #E4566A;
  --tang: #E8792B;
  --cobalt-soft: rgba(31, 53, 179, .72);   /* secondary text: still cobalt */
  --cobalt-faint: rgba(31, 53, 179, .3);   /* dividers */
  --shadow: drop-shadow(1.5px 2px 0 rgba(31, 53, 179, .16));

  --display: "Varesco", "Cheesay Bold", "DM Sans", sans-serif; /* ' and ? fall through to Cheesay */
  --body: "DM Sans", system-ui, sans-serif;
  --hand: "Cheesay Bold", "DM Sans", cursive;

  --sheet: url("assets/paper/torn-sheet.png") center / 100% 100% no-repeat;
  --strip: url("assets/paper/torn-strip.png") center / 100% 100% no-repeat;
  --tag: url("assets/paper/torn-tag.png") center / 100% 100% no-repeat;
  --hatch: repeating-linear-gradient(135deg, var(--scrap) 0 7px, #F2E8D4 7px 14px);
  --torn-edge: polygon(0% 12%,6% 4%,13% 10%,21% 2%,30% 8%,38% 0%,47% 7%,55% 3%,64% 9%,72% 1%,81% 8%,90% 2%,100% 10%,98% 50%,100% 88%,92% 97%,84% 91%,75% 100%,66% 93%,57% 99%,48% 92%,39% 98%,30% 91%,21% 99%,12% 93%,4% 100%,0% 90%,2% 50%);
  --torn-card: polygon(0% 6%,4% 2%,9% 5%,15% 0%,22% 4%,28% 1%,35% 5%,42% 0%,49% 4%,56% 1%,63% 5%,70% 0%,77% 4%,84% 1%,91% 5%,96% 1%,100% 5%,98% 20%,100% 35%,97% 50%,100% 65%,98% 80%,100% 95%,95% 99%,89% 95%,82% 100%,75% 96%,68% 100%,61% 95%,54% 99%,47% 95%,40% 100%,33% 96%,26% 100%,19% 95%,12% 99%,6% 95%,0% 98%,2% 82%,0% 66%,3% 50%,0% 34%,2% 18%);
  --torn-photo: polygon(0% 3%,8% 0%,17% 2%,26% 0%,36% 2.5%,47% .5%,58% 2%,69% 0%,80% 2.5%,90% .5%,100% 2%,99% 25%,100% 50%,98.5% 75%,100% 98%,90% 100%,80% 97.5%,70% 99.5%,59% 97.5%,48% 100%,37% 98%,26% 100%,15% 97.5%,6% 99.5%,0% 97%,1.5% 75%,0% 50%,1% 25%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--cobalt);
  font: 500 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 700; }

.screen {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  overflow: clip;
}
@media (min-width: 480px) {
  body { padding: 24px 0; background: var(--scrap); }
  .screen { min-height: calc(100vh - 48px); box-shadow: 0 0 0 1.5px rgba(31, 53, 179, .1), 4px 5px 0 rgba(31, 53, 179, .1); }
}

.hand { font-family: var(--hand); }
.h-section { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--cobalt); }
.h-sub { font-family: var(--display); font-weight: 400; font-size: 26px; }
.h-step { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; margin: 0; }

.placeholder {
  background: var(--hatch);
  display: flex; align-items: center; justify-content: center;
  font: 17px var(--hand);
  color: var(--cobalt-soft);
  background-size: cover;
  background-position: center;
}

.tape {
  display: inline-block;
  background: var(--tag);
  filter: var(--shadow);
}

/* buttons: a torn cobalt scrap, paper text, never rounded */
.pill {
  display: inline-block;
  padding: 9px 18px 10px;
  font: 700 15px/1 var(--body);
  letter-spacing: .02em;
  clip-path: var(--torn-edge);
  cursor: pointer;
}
.pill--blue, .pill--ink { background: var(--cobalt); color: var(--paper); }
.pill--orange { background: var(--cobalt); color: var(--paper); }
.pill--full { background: var(--scrap); color: var(--cobalt-soft); }
.pill:active { transform: translateY(1px); }
.pill:disabled { opacity: .6; cursor: default; }
button.pill { border: 0; }

/* ---------- home ---------- */

.hero {
  position: relative;
  min-height: 400px;
  padding: 70px 24px 56px;
  display: flex; align-items: center; justify-content: center;
  /* hand-drawn people around the title (one tangerine detail: the pencil) */
  background:
    url("assets/doodles/figure-hello.png") right 14px top 66px / 74px auto no-repeat,
    url("assets/doodles/figure-doodling.png") left 8px bottom 6px / 92px auto no-repeat,
    url("assets/doodles/sparkle.png") left 28px top 78px / 30px auto no-repeat,
    url("assets/doodles/heart.png") right 34px bottom 22px / 34px auto no-repeat;
}
.topbar {
  position: absolute;
  top: 14px; left: 18px; right: 18px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2;
}
.topbar__mark { display: block; height: 34px; width: auto; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 0 4px; font: 30px/1 var(--hand); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  right: -6px; top: 36px;
  min-width: 190px;
  padding: 16px 8px 14px;
  background: var(--sheet);
  filter: var(--shadow);
  transform: rotate(1.5deg);
  display: flex; flex-direction: column;
}
.menu nav a { padding: 6px 14px; font: 700 15px var(--body); }
.menu nav a:hover { color: var(--pink); }

.title-card { position: relative; transform: rotate(-2deg); perspective: 1000px; }
/* the card turns over by itself: front (logo + third place) ↔ back (doodle is our language) */
.title-card__flip {
  display: grid;
  transform-style: preserve-3d;
  animation: card-flip 12s cubic-bezier(.65, 0, .35, 1) 2s infinite;
}
.title-card__face {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  filter: var(--shadow);
}
.title-card__face--back { transform: rotateY(180deg) rotate(2.5deg); }
@keyframes card-flip {
  0%, 42% { transform: rotateY(0); }
  50%, 92% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) { /* no turning: the faces fade into each other instead */
  .title-card__flip { animation: none; }
  .title-card__face--back { transform: rotate(2.5deg); animation: card-fade 12s ease-in-out infinite; }
  .title-card__face:not(.title-card__face--back) { animation: card-fade 12s ease-in-out -6s infinite; }
  @keyframes card-fade { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
}
.title-card__paper {
  background: var(--sheet);
  padding: 34px 30px 32px;
  text-align: center;
  width: 280px;
}
.title-card h1 { margin: 0; line-height: 0; }
.title-card h1 img { width: 200px; height: auto; }
.title-card__h { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.title-card__note { font-size: 14px; line-height: 1.5; margin: 14px auto 0; max-width: 224px; }

.keywords {
  padding: 18px 16px 6px;
  display: flex; flex-wrap: wrap;
  gap: 8px 6px;
  justify-content: center;
}
.keywords .tape { padding: 9px 18px 11px; font: 20px/1 var(--hand); }
.keywords .tape:nth-child(even) { background: var(--strip); }

.section-head { padding: 26px 18px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section-head a { font-size: 14px; color: var(--cobalt-soft); }

.event-list { padding: 0 14px; display: flex; flex-direction: column; gap: 12px; }
.event-row {
  display: flex; gap: 12px; align-items: center;
  padding: 16px 16px 16px 14px;
  background: var(--sheet);
  filter: var(--shadow);
}
.event-row:nth-child(odd) { transform: rotate(-.8deg); }
.event-row:nth-child(even) { transform: rotate(.7deg); }
.event-row--thumb { flex-wrap: wrap; padding-top: 12px; }
.event-row__thumb { flex: 0 0 100%; height: 140px; margin-bottom: 4px; clip-path: var(--torn-photo); }
.event-row__date { width: 50px; flex: none; text-align: center; border-right: 2px dotted var(--cobalt-faint); padding-right: 10px; }
.event-row__mon { font: 700 11px var(--body); letter-spacing: .16em; color: var(--pink); }
.event-row__day { font: 34px/1 var(--hand); margin-top: 2px; }
.event-row__body { flex: 1; min-width: 0; }
.event-row__title { font: 700 16px/1.25 var(--body); }
.event-row__meta { font-size: 13px; line-height: 1.35; color: var(--cobalt-soft); margin-top: 2px; }
.event-row .pill { transform: rotate(-3deg); }

.past {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 18px 6px;
}
.past::-webkit-scrollbar { display: none; }
.past::after { content: ""; flex: none; width: 4px; }
.past__item { flex: none; width: 176px; scroll-snap-align: start; }
.past__photo { height: 132px; clip-path: var(--torn-photo); }
.past__item:nth-child(odd) .past__photo { transform: rotate(-1.5deg); }
.past__item:nth-child(even) .past__photo { transform: rotate(1.2deg); }
.past__title { font: 700 15px var(--body); margin-top: 8px; }
.past__meta { font: 17px var(--hand); color: var(--cobalt-soft); }

.rules { position: relative; padding: 34px 18px 0; }
.rules::after { /* someone grabbing a coffee, by the café rule */
  content: ""; position: absolute; right: 22px; top: 8px;
  width: 58px; height: 64px;
  background: url("assets/doodles/figure-coffee.png") center / contain no-repeat;
}
.rules__note {
  position: relative;
  margin: 14px 2px 0;
  padding: 30px 22px 24px;
  background: var(--sheet);
  filter: var(--shadow);
  transform: rotate(-1deg);
}
.rules__note::before { /* torn strip holding the note */
  content: "";
  position: absolute; top: -10px; left: 50%;
  width: 96px; height: 24px; margin-left: -48px;
  background: var(--strip);
  transform: rotate(3deg);
}
.rules__note ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rules__note li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.rules__note li::before { content: "✎"; position: absolute; left: 0; top: 0; color: var(--pink); }
.rules__note li.is-key { font-size: 16px; padding-bottom: 12px; border-bottom: 2px dotted var(--cobalt-faint); }
.rules__note li.is-key::before { content: "📌"; font-size: 13px; top: 2px; }
.rules__note mark { /* pink marker scribble */
  background: linear-gradient(-1.5deg, transparent 18%, rgba(228, 86, 106, .38) 20%, rgba(228, 86, 106, .38) 86%, transparent 88%);
  color: inherit;
  padding: 0 3px;
}
.rules__emoji { font-size: 18px; vertical-align: -2px; }

.faq { position: relative; padding: 34px 18px 40px; }
.faq::after { /* two people chatting, by the questions */
  content: ""; position: absolute; right: 18px; top: 18px;
  width: 78px; height: 82px;
  background: url("assets/doodles/figure-chatting.png") center / contain no-repeat;
}
.faq details { border-bottom: 2px solid var(--scrap); padding: 12px 0; }
.faq details:first-of-type { margin-top: 18px; }
.faq summary { font: 700 15px/1.35 var(--body); cursor: pointer; list-style: none; position: relative; padding-right: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font: 700 22px/1 var(--body); color: var(--pink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 14.5px; line-height: 1.5; margin: 8px 0 2px; color: var(--cobalt-soft); }

/* ---------- jam details (jam/) ---------- */

.carousel {
  position: relative;
  height: 270px;
  clip-path: polygon(0 0,100% 0,100% 95%,93% 98%,86% 95.5%,78% 99%,70% 96%,61% 98.5%,52% 95.5%,43% 99%,34% 96%,25% 98.5%,16% 95.5%,8% 99%,0 96%);
}
.carousel__track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: none; width: 100%; height: 100%; scroll-snap-align: start; }
.carousel__back {
  position: absolute; top: 14px; left: 12px;
  width: 50px; height: 34px;
  background: var(--tag);
  filter: var(--shadow);
  transform: rotate(-4deg);
  display: flex; align-items: center; justify-content: center;
  font: 700 18px var(--body); color: var(--cobalt);
}
.carousel__dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; pointer-events: none; }
.carousel__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--cobalt); transition: width .2s; }
.carousel__dots span.is-active { width: 20px; border-radius: 4px; background: var(--cobalt); }

.detail-head { padding: 14px 18px 0; }
.detail-head__kicker { font: 700 12px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.detail-head h1 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.detail-head .tape { margin-top: 12px; padding: 7px 16px 9px; font: 18px/1 var(--hand); transform: rotate(-2deg); }

.info {
  margin: 18px 12px 0;
  padding: 14px 18px;
  background: var(--sheet);
  filter: var(--shadow);
  transform: rotate(-.5deg);
}
.info__row { display: flex; gap: 12px; padding: 10px 2px; align-items: center; }
.info__row + .info__row { border-top: 2px dotted var(--cobalt-faint); }
.info__label { width: 52px; flex: none; font: 700 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-soft); }
.info__value { font-size: 15px; line-height: 1.4; }
.info__value a { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cost-remark { display: block; margin-top: 4px; padding-left: 8px; border-left: 3px solid var(--pink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.cost-remark[hidden] { display: none; }
.cost-note { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--cobalt-soft); }
.info__value .map-link {
  display: inline-block;
  margin: 2px 0 0 4px;
  padding: 4px 12px 5px;
  background: var(--cobalt); color: var(--paper);
  clip-path: var(--torn-edge);
  font: 700 13px var(--body);
  text-decoration: none;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.spots { flex: 1; height: 12px; border: 2px solid var(--cobalt); background: var(--paper); overflow: hidden; }
.spots span { display: block; height: 100%; background: var(--pink); }

/* payment step callouts */
.fee-remark {
  margin: 12px auto 2px; padding: 9px 12px;
  background: rgba(228, 86, 106, .12);
  border: 2px dashed var(--pink);
  font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center;
}
.fee-remark[hidden] { display: none; }
.fee-why {
  margin: 12px auto 2px; padding: 9px 12px;
  border: 2px dotted var(--cobalt-faint);
  font-size: 14.5px; line-height: 1.45; text-align: left;
}

.block { padding: 26px 18px 0; }
.block p { font-size: 15px; line-height: 1.5; margin: 6px 0 0; }
.cafe-photos { margin-top: 10px; }
.cafe-photos__item { flex: none; width: 200px; scroll-snap-align: start; }
.cafe-photos .past__photo { height: 150px; }
.bring { font-size: 15px; line-height: 1.7; margin-top: 4px; }
.bring span { white-space: nowrap; margin-right: 14px; }
.no-mess { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--pink); }

.join-bar {
  position: sticky; bottom: 0;
  margin-top: 40px;
  padding: 16px 16px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -2px 0 var(--scrap);
  display: flex; gap: 10px; align-items: center;
  z-index: 5;
}
.join-bar__info { flex: 1; font-size: 13px; color: var(--cobalt-soft); }
.join-bar__info strong { display: block; font: 20px/1.15 var(--hand); color: var(--cobalt); margin-top: 2px; }
.join-bar .pill { padding: 13px 22px 14px; font-size: 16px; transform: rotate(-2deg); }
.join-bar .pill[aria-disabled="true"] { background: var(--scrap); color: var(--cobalt-soft); pointer-events: none; }

/* ---------- sign-up form (join/) ---------- */

.form-screen { display: flex; flex-direction: column; }
.form-top { padding: 16px 18px 12px; display: flex; justify-content: space-between; font: 700 14px var(--body); }
.form-top button { background: none; border: 0; padding: 0; cursor: pointer; font: 700 14px var(--body); }
.form-top #counter { font: 19px/1 var(--hand); }
.progress { margin: 0 18px; height: 12px; border: 2px solid var(--cobalt); background: var(--paper); overflow: hidden; }
.progress div { height: 100%; background: var(--pink); transition: width .25s; }

.signup { flex: 1; display: flex; flex-direction: column; }
.signup[hidden] { display: none; }
.step { flex: 1; display: flex; flex-direction: column; }
.step[hidden] { display: none; }
.step__body { padding: 30px 22px 0; flex: 1; display: flex; flex-direction: column; }
.step__body--gap { gap: 20px; }
.step__hint { font: 19px/1.2 var(--hand); color: var(--cobalt-soft); margin-top: 8px; transform: rotate(-1deg); transform-origin: left; }
.step__foot { padding: 18px 16px 22px; }
.step__foot .pill { display: block; width: 100%; text-align: center; padding: 15px 12px 16px; font-size: 16px; }

.field label { display: block; font: 700 15px var(--body); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  display: block; width: 100%; height: 40px;
  border: 0; border-bottom: 2px solid var(--cobalt);
  background: transparent;
  font: 500 16px var(--body); color: var(--cobalt);
  padding: 8px 0 4px; border-radius: 0; outline: none;
  -webkit-appearance: none; /* iPhone gives email boxes its own white rounded look otherwise */
  appearance: none; box-shadow: none;
}
.field input::placeholder { color: rgba(31, 53, 179, .4); }
.field input:focus { border-bottom-color: var(--pink); }
.spam-note {
  display: inline-block; margin-top: 8px; padding: 4px 10px;
  background: rgba(228, 86, 106, .12);
  border: 1.5px dashed var(--pink);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.done .spam-note { font-size: 14px; padding: 8px 12px; margin: 4px 0 0; }
.field small { display: block; font-size: 13px; color: var(--cobalt-soft); margin-top: 6px; line-height: 1.35; }
.field.is-invalid input { border-bottom-color: var(--pink); }
.err, .field small.err { display: none; }
.field.is-invalid small.err, .err.is-shown { display: block; color: var(--pink); font-size: 13px; font-weight: 700; margin-top: 6px; }

.choices { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; border: 0; padding: 0; }
.choice {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 16px;
  background: var(--sheet);
  filter: var(--shadow);
  cursor: pointer;
  font: 700 16px var(--body);
}
.choice:nth-of-type(odd) { transform: rotate(-.6deg); }
.choice:nth-of-type(even) { transform: rotate(.5deg); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.step__q { margin-top: 30px; font: 700 16px var(--body); }
.choices--pair { flex-direction: row; margin-top: 12px; }
.choices--pair .choice { flex: 1; justify-content: center; text-align: center; padding: 15px 10px; font-size: 15px; }
.choice__face { width: 40px; height: 40px; border: 2px solid currentColor; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.choice__face svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.choice:has(input:checked) { background: var(--cobalt); color: var(--paper); clip-path: var(--torn-card); filter: none; margin-inline: 8px; padding-inline: 8px; }
.choice:has(input:focus-visible) { outline: 2px dashed var(--pink); outline-offset: 3px; }

.fee-card {
  margin-top: 20px; padding: 32px 28px 28px;
  background: var(--sheet);
  filter: var(--shadow);
  text-align: center;
}
.fee-card__name { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt-soft); }
.fee-card__amount { font: 42px/1.1 var(--hand); margin-top: 4px; }
.fee-card__qr { margin: 14px auto 0; width: 156px; height: 156px; border: 2px solid var(--cobalt); font-size: 15px; }
.fee-card__qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fee-card__qr-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; } /* QR codes scan best on white */
.qr-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.qr-btn {
  border: 0; padding: 7px 14px 8px;
  background: var(--tag);
  font: 700 13px var(--body); color: var(--cobalt);
  cursor: pointer;
}
.qr-btn--ink { background: var(--cobalt); color: var(--paper); clip-path: var(--torn-edge); }
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(31, 53, 179, .72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__card {
  width: 100%; max-width: 380px;
  padding: 26px 20px 22px;
  background: var(--sheet);
  text-align: center;
}
.lightbox__card img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #fff; display: block; }
.lightbox__tip { font-size: 13px; color: var(--cobalt-soft); margin: 12px 0 0; }
.upload.is-invalid { border-color: var(--pink); color: var(--pink); }
.fee-card__bank { font-size: 13px; color: var(--cobalt-soft); margin-top: 8px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: none; width: 21px; height: 21px; margin-top: 0;
  border: 2px solid var(--cobalt);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font: 700 13px var(--body); color: var(--paper);
}
.check input:checked + .check__box { background: var(--cobalt); }
.check input:checked + .check__box::after { content: "✓"; }
.check input:focus-visible + .check__box { outline: 2px dashed var(--pink); outline-offset: 2px; }
.check--big { margin-top: 18px; align-items: center; font: 700 16px var(--body); }
.check--big .check__box { width: 23px; height: 23px; font-size: 14px; }
.check.is-invalid .check__box { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(228, 86, 106, .3); }

.upload {
  display: block; margin-top: 12px; padding: 12px;
  border: 2px dashed var(--cobalt);
  font: 700 14px var(--body); color: var(--cobalt);
  text-align: center; cursor: pointer;
}
.upload input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }

.notes label { display: block; font: 700 15px var(--body); }
.notes small { display: block; font-size: 12.5px; color: var(--cobalt-soft); line-height: 1.35; margin-top: 2px; }
.notes textarea {
  display: block; width: 100%; height: 76px; margin-top: 8px;
  border: 2px solid var(--cobalt); border-radius: 0;
  background: rgba(236, 224, 200, .45);
  font: 500 15px var(--body); color: var(--cobalt);
  padding: 9px 11px; resize: vertical; outline: none;
}
.notes textarea:focus { border-color: var(--pink); }

.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; gap: 14px; }
.done p { font-size: 15px; line-height: 1.5; margin: 0; }
.done .pill { transform: rotate(-2deg); }

/* ---------- loader ---------- */
.loader { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 0 18px; }
.loader__text { font: 22px var(--hand); transform: rotate(-1.5deg); }
.loader__text::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: loader-dots 1.2s steps(4, end) infinite; }
.loader__bar {
  position: relative;
  width: min(240px, 72%); height: 30px; padding: 6px 8px;
  background: var(--sheet);
  filter: var(--shadow);
}
.loader__fill {
  height: 100%; width: 20%;
  background: repeating-linear-gradient(-55deg, var(--cobalt) 0 5px, var(--pink) 5px 9px);
  background-size: 22px 100%;
  clip-path: var(--torn-edge);
  animation: loader-fill 2.4s ease-in-out infinite, loader-stripes .6s linear infinite;
}
@keyframes loader-fill { 0% { width: 12%; } 60% { width: 88%; } 100% { width: 12%; } }
@keyframes loader-stripes { to { background-position: 22px 0; } }
@keyframes loader-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .loader__fill { animation: none; width: 60%; } }
.loader-overlay .loader { padding: 26px 0 30px; background: var(--sheet); }

.uat-ribbon {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 3px 14px 5px;
  background: var(--strip);
  font: 15px var(--hand);
  white-space: nowrap; pointer-events: none;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- where we've explored (map.js) ---------- */

.explored { padding: 34px 18px 8px; }
.explored__sub { margin: 6px 0 16px; font-size: 14px; color: var(--cobalt-soft); }
.kv-frame {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--sheet);
  filter: var(--shadow);
  transform: rotate(-.6deg);
}
.kv-frame::before {
  content: ""; position: absolute; top: -10px; left: 22px;
  width: 84px; height: 24px;
  background: var(--strip);
  transform: rotate(-5deg);
  z-index: 3;
}
.kv-map { position: relative; aspect-ratio: 480 / 380; overflow: visible; }
.kv-svg { display: block; width: 100%; height: 100%; overflow: visible; }

.kv-sea { fill: rgba(31, 53, 179, .09); }
.kv-wave { fill: none; stroke: rgba(31, 53, 179, .3); stroke-width: 1.4; stroke-linecap: round; }
.kv-coast { fill: none; stroke: var(--cobalt); stroke-width: 2; stroke-linecap: round; }
.kv-river { fill: none; stroke: rgba(31, 53, 179, .4); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.kv-hill { fill: none; stroke: rgba(31, 53, 179, .55); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kv-tree { fill: var(--paper); stroke: var(--cobalt); stroke-width: 1.3; }
.kv-ink { fill: none; stroke: var(--cobalt); stroke-width: 1.3; stroke-linecap: round; }
.kv-towers path { fill: var(--paper); stroke: var(--cobalt); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.kv-compass circle { fill: var(--paper); stroke: var(--cobalt); stroke-width: 1.4; }
.kv-compass path { fill: var(--pink); stroke: var(--cobalt); stroke-width: 1.2; stroke-linejoin: round; }
.kv-compass text { font: 20px var(--hand); fill: var(--cobalt); }
.kv-dot { fill: rgba(31, 53, 179, .5); }
.kv-label { font: 22px var(--hand); fill: rgba(31, 53, 179, .62); }
.kv-sea-label { font: 19px var(--hand); fill: rgba(31, 53, 179, .45); }
.kv-journey { fill: none; stroke: var(--pink); stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.kv-journey-reveal { fill: none; stroke: #fff; stroke-width: 10; stroke-dasharray: 1; stroke-dashoffset: 0; } /* mask only, never seen */

.kv-map:not(.is-in) .kv-river, .kv-map:not(.is-in) .kv-journey-reveal { stroke-dashoffset: 1; }
.kv-map.is-in .kv-river { animation: kv-draw 1.6s ease-out both; }
.kv-map.is-in .kv-journey-reveal { animation: kv-draw 2.2s .6s ease-in-out both; }
@keyframes kv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.kv-pin {
  position: absolute; width: 28px; height: 38px; margin: 0; padding: 0;
  background: none; border: 0; cursor: pointer;
  transform: translate(-50%, -100%); transform-origin: 50% 100%;
  z-index: 1; -webkit-tap-highlight-color: transparent;
}
.kv-pin::after { content: ""; position: absolute; inset: -8px -6px; }
.kv-pin__svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 92%; }
.kv-pin__body { fill: var(--pink); stroke: var(--cobalt); stroke-width: 2; stroke-linejoin: round; filter: url(#kv-wobble); }
.kv-pin__dot { fill: var(--paper); stroke: var(--cobalt); stroke-width: 1.5; }
.kv-pin__shadow { fill: rgba(31, 53, 179, .18); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 14px 35px; }
.kv-pin--next .kv-pin__body { fill: var(--paper); stroke-dasharray: 3 2.5; }
.kv-pin--next .kv-pin__dot { fill: var(--pink); }
.kv-pin__count {
  position: absolute; top: -8px; right: -12px;
  min-width: 22px; height: 20px; padding: 2px 5px 0;
  background: var(--tag);
  font: 16px/18px var(--hand); color: var(--cobalt);
  pointer-events: none;
}
.kv-pin:hover .kv-pin__svg, .kv-pin.is-active .kv-pin__svg, .kv-pin:focus-visible .kv-pin__svg { transform: translateY(-5px) rotate(-8deg) scale(1.12); }
.kv-pin:hover .kv-pin__shadow, .kv-pin.is-active .kv-pin__shadow { transform: translateY(5px) scale(.7); }
.kv-pin.is-active { z-index: 4; }
.kv-pin:focus-visible { outline: none; }
.kv-pin:focus-visible .kv-pin__body { stroke-width: 3; }
.kv-map:not(.is-in) .kv-pin { opacity: 0; }
.kv-map.is-in .kv-pin { animation: kv-drop .6s calc(.9s + var(--i) * .09s) cubic-bezier(.34, 1.56, .64, 1) both; }
.kv-map.is-in .kv-pin--next .kv-pin__svg { animation: kv-bob 2.4s 2s ease-in-out infinite; }
@keyframes kv-drop {
  0% { opacity: 0; transform: translate(-50%, -100%) translateY(-34px) scale(.6); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translate(-50%, -100%); }
}
@keyframes kv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.kv-card {
  position: absolute; z-index: 5;
  width: 190px;
  padding: 14px 12px 12px;
  background: var(--sheet);
  filter: var(--shadow);
  opacity: 0;
  transform: scale(.6) rotate(-6deg);
}
.kv-card[hidden] { display: none; }
.kv-card.is-open { animation: kv-pop .42s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes kv-pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(-1.5deg); } }
.kv-card::before {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 60px; height: 20px; margin-left: -30px;
  background: var(--strip);
  transform: rotate(3deg);
}
.kv-card__img {
  height: 100px; overflow: hidden;
  clip-path: var(--torn-photo);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--cobalt-soft);
}
.kv-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .4s ease, transform .6s ease; }
.kv-card__img.is-loading img { opacity: 0; transform: scale(1.06); }
.kv-card__venue { margin: 8px 2px 0; font: 700 15px/1.2 var(--body); }
.kv-card__jams { list-style: none; margin: 4px 0 0; padding: 0; }
.kv-card__jams a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; align-items: baseline; padding: 3px 2px; font-size: 13px; line-height: 1.4; }
.kv-card__jams a:hover, .kv-card__jams a:focus-visible { background: rgba(228, 86, 106, .14); outline: none; }
.kv-card__jams a span { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kv-card__jams small { flex: none; font: 15px/1.2 var(--hand); color: var(--cobalt-soft); margin-top: 4px; }

.kv-empty {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  padding: 8px 18px 10px;
  background: var(--tag); filter: var(--shadow);
  font: 22px var(--hand);
}
.kv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 2px 0; font-size: 13px; color: var(--cobalt-soft); align-items: center; }
.kv-key { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border: 1.5px solid var(--cobalt); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pink); vertical-align: -1px; }
.kv-key--next { background: var(--paper); border-style: dashed; }
.kv-count { width: 100%; font: 21px var(--hand); color: var(--cobalt); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .kv-map.is-in .kv-river, .kv-map.is-in .kv-journey-reveal, .kv-map.is-in .kv-pin, .kv-map.is-in .kv-pin--next .kv-pin__svg, .kv-card.is-open { animation: none; }
  .kv-map .kv-river, .kv-map .kv-journey-reveal { stroke-dashoffset: 0 !important; }
  .kv-map .kv-pin { opacity: 1 !important; }
  .kv-card.is-open { opacity: 1; transform: rotate(-1.5deg); }
  .kv-pin__svg, .kv-pin__shadow { transition: none; }
}
.kv-card--dock {
  position: relative; width: auto;
  margin: 14px 0 2px;
  display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; align-items: start;
}
.kv-card--dock[hidden] { display: none; }
.kv-card--dock .kv-card__img { grid-row: span 2; height: 84px; }
.kv-card--dock .kv-card__venue { margin-top: 0; }
.kv-card--dock.is-open { animation-name: kv-dock; }
@keyframes kv-dock { from { opacity: 0; transform: translateY(-10px) scale(.85) rotate(-3deg); } to { opacity: 1; transform: rotate(-.8deg); } }
