/* Curious Corner — styled to the 2025 event decks.
   Design reference: cURIOUS cORNER/Brand/Curious Corner Brand & Design Guide.md
   Torn recycled paper, confetti dots, Stroy Jelly headings, RM price tickets. */

/* Poppins / Montserrat / Caveat / Bebas Neue / Fira Code are linked from each page head. */

@font-face {
  font-family: "Stroy Jelly";
  src: url("fonts/StroyJelly.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Paper */
  --cream: #F2F1EB;          /* the page */
  --white: #FDFBF5;          /* card / form paper */
  --kraft: #D9C9AE;          /* note cards */
  --kraft-tag: #B79768;
  --kraft-line: #C9B897;
  --paper-cream: #FBF6EA;    /* text on a coloured cut-out */

  /* Ink */
  --ink: #3C2405;
  --ink-soft: #6B5A3E;
  --olive: #254F16;
  --line: #E0D6C2;

  /* Confetti accents */
  --coral: #DE573C;          /* terracotta — the brand accent */
  --coral-dark: #BE4228;
  --mustard: #EAAD07;
  --green: #2C765A;
  --orange: #EA5B0C;
  --blue: #9AC8C8;
  --pink: #F28EAE;
  --price-grey: #5A5A5A;

  /* Pale tints, for card backgrounds and pills */
  --peach: #F7D9CB;
  --sage: #CBDED4;
  --sky: #DCEAEA;
  --butter: #FAE6AC;
  --lilac: #DBDFF0;

  --radius: 18px;
  --paper-shadow: 5px 7px 14px rgba(60, 36, 5, .16);
  --display: "Stroy Jelly", "Fredoka", sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Nunito", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--cream);
  background-image: url("img/paper-texture.jpg");
  background-size: 760px auto;
  background-repeat: repeat;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.14; font-weight: 400; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 2px; }

/* Confetti dots, scattered behind everything (injected by site.js) */
.page-confetti { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.page-confetti i { position: absolute; display: block; border-radius: 50%; }
.page-confetti i:nth-child(1) { width: 86px; height: 86px; background: var(--green);   top: -34px;  left: 36%; }
.page-confetti i:nth-child(2) { width: 82px; height: 82px; background: var(--mustard); top: 17%;    left: -38px; }
.page-confetti i:nth-child(3) { width: 66px; height: 66px; background: var(--orange);  top: 33%;    right: -30px; }
.page-confetti i:nth-child(4) { width: 76px; height: 76px; background: var(--blue);    bottom: 2%;  left: 53%; }
.page-confetti i:nth-child(5) { width: 80px; height: 80px; background: var(--green);   bottom: -34px; left: 8%; }
.page-confetti i:nth-child(6) { width: 84px; height: 84px; background: var(--mustard); bottom: -34px; right: 6%; }
@media (max-width: 700px) {
  .page-confetti i { transform: scale(.6); }
  .page-confetti i:nth-child(4) { display: none; }
}
.site-nav, .draft-banner, header, section, .strip, footer { position: relative; z-index: 1; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow { font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 8px 0 16px; }
.lead { color: var(--ink-soft); max-width: 620px; font-size: 1.06rem; }
.wrap > .eyebrow, .wrap > .section-title { text-align: center; }
.wrap > .lead { text-align: center; margin-left: auto; margin-right: auto; }

.btn { display: inline-block; background: var(--coral); color: var(--paper-cream); text-decoration: none; font: inherit; font-weight: 700; padding: 14px 28px; border: 0; border-radius: 999px; cursor: pointer; transition: background .2s, transform .2s; text-align: center; box-shadow: 2px 3px 0 rgba(60,36,5,.18); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
@media (hover: hover) {
  .btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
  .btn.ghost:hover { background: var(--ink); color: var(--paper-cream); }
}
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.small { padding: 8px 16px; font-size: .9rem; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(242,241,235,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; padding: 6px 0; font-family: var(--display); font-size: 1.35rem; white-space: nowrap; }
.logo img { height: 42px; width: auto; display: block; }
.logo span { color: var(--coral); }
.nav-links { display: flex; gap: 20px; white-space: nowrap; list-style: none; font-weight: 600; font-size: .95rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--coral-dark); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; font-size: 1.4rem; background: none; border: 2px solid var(--ink); border-radius: 12px; cursor: pointer; color: var(--ink); line-height: 1; }
@media (max-width: 1140px) {
  .logo img { height: 34px; }
  .logo { font-size: 1.15rem; }
  .nav-right .btn { padding: 10px 16px; font-size: .9rem; white-space: nowrap; }
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 14px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 0; }
}
@media (max-width: 400px) {
  .site-nav .wrap { padding: 0 12px; gap: 6px; }
  .logo img { height: 30px; }
  .logo b { display: none; }
  .nav-right { gap: 6px; }
  .nav-right .btn { padding: 9px 12px; font-size: .78rem; }
}

/* Page header on inner pages */
.page-head { padding: 54px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin: 8px 0 12px; }
.page-head .lead { margin: 0 auto; }
.after-head { padding-top: 30px; }

/* Hero — paper cut-outs instead of flat blobs */
.hero { padding: 64px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.2rem); margin: 12px 0 20px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.blobs { position: relative; aspect-ratio: 1; width: 100%; }
.blobs img { position: absolute; filter: drop-shadow(var(--paper-shadow)); }
.blobs .b1 { width: 62%; top: 2%;    left: 16%; }
.blobs .hero-photo { position: absolute; width: 64%; top: 0; left: 16%; background: #FDFDFB; padding: 10px 10px 30px; box-shadow: var(--paper-shadow); transform: rotate(-3deg); }
.blobs .hero-photo img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; filter: none; }
.blobs .b2 { width: 36%; top: 42%;   right: -2%; }
.blobs .b3 { width: 40%; bottom: 2%; left: -2%; }
.blobs .b4 { width: 23%; bottom: 8%; right: 20%; }
.photo-note { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-family: var(--hand); font-size: 1.15rem; color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero .actions { justify-content: center; }
  .blobs { max-width: 320px; margin: 24px auto 0; }
}

/* Trust strip */
.strip { background: var(--ink); color: var(--paper-cream); padding: 22px 0; }
.strip .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; font-weight: 600; text-align: center; }
@media (max-width: 760px) { .strip .wrap { flex-direction: column; align-items: center; gap: 10px; } }

/* Cards */
.grid { display: grid; gap: 24px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* Four across, then two, then one — auto-fit would leave the fourth card stranded alone */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--paper-shadow); }
.card .icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px; }
.card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); }
a.card { display: block; text-decoration: none; transition: transform .2s; }
@media (hover: hover) { a.card:hover { transform: translateY(-3px); } }

/* About */
.about { background: rgba(253,251,245,.72); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about-visual { background: var(--lilac); border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; text-align: center; padding: 20px; }
@media (max-width: 760px) { .about .wrap { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 70px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--mustard); color: var(--ink); font-family: var(--display); font-size: 1.5rem; display: grid; place-items: center; }

/* ==========================================================================
   Brand components lifted from the decks
   ========================================================================== */

/* Kraft torn-strip tag — the top-left section label */
.cc-tag {
  display: inline-block;
  font-family: var(--display); color: var(--paper-cream);
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  padding: .5em 1.6em 1em;
  background: var(--kraft-tag) url("img/kraft-strip.webp") center/100% 100% no-repeat;
  text-shadow: 1px 2px 3px rgba(60,36,5,.35);
  margin-bottom: 26px;
}

/* Kraft note card — ruled, hole-punched, torn top and bottom */
.cc-note {
  position: relative;
  background-color: var(--kraft);
  background-image: repeating-linear-gradient(to bottom, transparent 0 29px, var(--kraft-line) 29px 30px);
  padding: 58px 24px 30px;
  box-shadow: var(--paper-shadow);
  display: flex; flex-direction: column;
  clip-path: polygon(
    0% 1.1%, 6% 0.2%, 13% 1.3%, 21% 0.3%, 29% 1.4%, 37% 0.4%, 46% 1.2%, 55% 0.2%,
    64% 1.3%, 73% 0.3%, 82% 1.4%, 91% 0.4%, 100% 1.1%,
    100% 98.9%, 92% 99.8%, 84% 98.6%, 75% 99.7%, 66% 98.7%, 57% 99.8%, 48% 98.8%,
    39% 99.6%, 30% 98.6%, 21% 99.7%, 12% 98.7%, 5% 99.8%, 0% 98.9%
  );
}
.cc-note::before {
  content: ""; position: absolute; top: 22px; left: 7%; right: 7%; height: 20px;
  background-image: radial-gradient(circle at center, var(--cream) 0 9px, transparent 9px);
  background-size: 16.66% 100%; background-repeat: repeat-x;
}
.cc-note h3 { color: var(--ink); text-align: center; font-size: 1.35rem; margin: 0 0 .1em; }
.cc-note .sub { display: block; font-family: var(--display); text-align: center; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: .6em; }
.cc-note .hand { font-family: var(--hand); font-size: 1.35rem; line-height: 1.42; text-align: center; color: #100F0D; display: block; margin-bottom: 1em; }
.cc-note ul { list-style: disc; margin: .3em 0 0 1.25em; }
.cc-note li { font-size: .95rem; padding: 2px 0; color: var(--ink); }
.cc-note .includes { font-weight: 700; font-size: .95rem; }
.cc-note .ticket-row { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-end; }
.cc-note .ticket-row.two-prices { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 10px 14px; }
.cc-note .ticket-row.two-prices > div { text-align: center; }
.cc-note .ticket-row.two-prices .cc-perpax { width: 100%; }
.price-for { display: block; font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.cc-note .cc-polaroid { margin: 4px 0 16px; }
.hand-big { font-family: var(--hand); font-size: clamp(1.9rem, 5.4vw, 3rem); line-height: 1.1; margin-bottom: 6px; }

/* RM price ticket */
.cc-ticket {
  display: inline-block; position: relative;
  background: #F4F4F2;
  padding: 9px 24px 11px;
  transform: rotate(-1.4deg);
  box-shadow: 3px 4px 9px rgba(60,36,5,.2);
  -webkit-mask-image:
    radial-gradient(circle at 50% 0, transparent 0 9px, #000 9px),
    radial-gradient(circle at 50% 100%, transparent 0 9px, #000 9px);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at 50% 0, transparent 0 9px, #000 9px),
    radial-gradient(circle at 50% 100%, transparent 0 9px, #000 9px);
  mask-composite: intersect;
}
.cc-ticket .starting { display: block; text-align: center; font-family: "Fira Code", monospace; font-weight: 700; font-size: .6rem; letter-spacing: .14em; color: var(--coral); margin-bottom: 5px; }
.cc-ticket .amount { display: flex; align-items: baseline; justify-content: center; gap: .3em; border-top: 4px solid var(--coral); border-bottom: 4px solid var(--coral); padding: 2px 0 4px; }
.cc-ticket .rm { font-family: "Bebas Neue", sans-serif; color: var(--coral); font-size: 2.1rem; line-height: 1; }
.cc-ticket .num { font-family: "Fira Code", monospace; font-weight: 300; color: var(--price-grey); font-size: 2.1rem; line-height: 1; }
.cc-ticket .per { font-family: "Fira Code", monospace; font-weight: 300; color: var(--price-grey); font-size: .9rem; line-height: 1; }
.cc-ticket.small { padding: 6px 15px 8px; }
.cc-ticket.small .rm, .cc-ticket.small .num { font-size: 1.35rem; }
.cc-perpax { display: block; font-family: var(--hand); font-size: 1.2rem; color: #100F0D; text-align: right; margin-top: 4px; }

/* Polaroid */
.cc-polaroid { background: #FDFDFB; padding: 8px; box-shadow: 3px 4px 9px rgba(60,36,5,.22); transform: rotate(-.8deg); margin: 0 0 16px; }
.cc-polaroid img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* Pax / duration meta */
.cc-meta { display: flex; gap: 20px; }
.cc-meta div { text-align: center; width: 88px; }
.cc-meta svg { width: 42px; height: 42px; display: block; margin: 0 auto 4px; }
.cc-meta span { font-weight: 700; font-size: .78rem; line-height: 1.2; display: block; }

/* Package row — big cut-out on the left, details on the right */
.pkg { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 62px; }
.pkg-art { position: relative; display: grid; place-items: center; }
.pkg-art img { width: 100%; filter: drop-shadow(var(--paper-shadow)); }
.pkg-art h3 { position: absolute; width: 76%; text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--paper-cream); text-shadow: 2px 3px 5px rgba(60,36,5,.3); }
.pkg-art.on-light h3 { color: var(--ink); text-shadow: 1px 2px 4px rgba(255,255,255,.45); }
/* Spiky cut-outs (bursts and stars) carry their mass above centre, so the name sits higher */
.pkg-art.burst h3 { width: 64%; transform: translateY(-16%); }
.pkg-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pkg-head p { font-weight: 700; font-size: 1.2rem; max-width: 26em; }
.pkg-body { margin-top: 18px; display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.pkg-body ul { list-style: disc; margin-left: 1.25em; }
.pkg-body li { padding: 2px 0; }
.pkg-body li em { color: var(--ink-soft); font-size: .92rem; display: block; }
.pkg-includes { font-weight: 700; margin-bottom: 4px; }
@media (max-width: 820px) {
  .pkg { grid-template-columns: 1fr; gap: 14px; margin-bottom: 48px; }
  .pkg-art { max-width: 250px; }
  .pkg-head p { font-size: 1.06rem; }
  .pkg-body { align-items: flex-start; }
}

/* Torn paper band, used for the CTA */
.cta {
  background: var(--coral); color: var(--paper-cream); text-align: center;
  width: 100%; margin: 0 auto; padding: 78px 30px 84px; max-width: none;
  clip-path: polygon(
    0% 3%, 7% 0.6%, 15% 3.2%, 24% 0.8%, 33% 3.4%, 42% 1%, 51% 3%, 60% 0.7%,
    69% 3.3%, 78% 0.9%, 87% 3.4%, 95% 1.1%, 100% 3%,
    100% 97%, 93% 99.4%, 85% 96.8%, 76% 99.2%, 67% 96.6%, 58% 99%, 49% 97%,
    40% 99.3%, 31% 96.7%, 22% 99.1%, 13% 96.6%, 5% 99%, 0% 97%
  );
}
.cta .section-title { color: var(--paper-cream); }
.cta .lead { color: #FBE7DF; margin: 0 auto 28px; }
.cta .btn { background: var(--paper-cream); color: var(--coral-dark); }
@media (hover: hover) { .cta .btn:hover { background: #fff; } }

/* Pricing */
.price { font-family: var(--display); font-size: 2.2rem; margin: 10px 0; }
.price small { font-size: 1rem; color: var(--ink-soft); }
#pricing .card { display: flex; flex-direction: column; text-align: center; }
#pricing .card ul { flex: 1; text-align: left; }
#pricing .card .btn { display: block; }
#pricing .cc-ticket { align-self: center; margin: 14px 0 8px; }
.card.featured { border: 3px solid var(--coral); position: relative; }
.badge { position: absolute; top: -14px; right: 24px; background: var(--coral); color: var(--paper-cream); font-weight: 700; font-size: .8rem; padding: 4px 14px; border-radius: 999px; }
.card ul { list-style: none; margin: 16px 0 24px; }
.card li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-soft); }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }

/* Testimonials */
.quote { font-size: 1.05rem; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--ink); }

/* FAQ */
details { background: var(--white); border-radius: var(--radius); padding: 11px 24px; margin-bottom: 12px; box-shadow: var(--paper-shadow); }
summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; padding: 9px 0; }
details p { margin-top: 10px; color: var(--ink-soft); }
.faq-group { font-size: 1.5rem; margin: 30px 0 14px; }

footer { padding: 50px 0; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.foot-logo { display: block; margin: 0 auto 14px; height: 70px; width: auto; }
.mission { font-family: "Montserrat", sans-serif; font-weight: 500; color: var(--ink-soft); max-width: 30em; margin: 0 auto 6px; }
.mission em { font-style: italic; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 16px 0 10px; }
.draft-banner { background: var(--mustard); color: var(--ink); text-align: center; font-size: .85rem; font-weight: 700; padding: 6px 12px; }

/* Phones */
@media (max-width: 600px) {
  section { padding: 50px 0; }
  .card { padding: 22px; }
  .cta { padding: 56px 22px 62px; }
  .hero { padding: 36px 0 56px; }
}

/* Theme colours */
.t-sage { background: var(--sage); } .t-butter { background: var(--butter); } .t-sky { background: var(--sky); }
.t-peach { background: var(--peach); } .t-lilac { background: var(--lilac); }

/* Theme cards */
/* Runs edge to edge so the next card peeks in, with the scrollbar replaced by .theme-controls */
.theme-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: 16px; overflow-x: auto; margin: 24px -20px 0; padding: 6px 20px 14px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.theme-row::-webkit-scrollbar { display: none; }
.theme-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; border-radius: var(--radius); padding: 20px; cursor: pointer; scroll-snap-align: start; transition: transform .2s; box-shadow: var(--paper-shadow); }
@media (hover: hover) { .theme-card:hover { transform: translateY(-3px); } }
.theme-controls { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 8px auto 0; }
.theme-controls[hidden] { display: none; }
.theme-arrow { flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--coral); color: var(--paper-cream); font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s, transform .15s; }
.theme-arrow:active { transform: scale(.92); }
.theme-arrow[disabled] { background: var(--line); color: #A7905F; cursor: default; }
.theme-trail-box { flex: 1; min-width: 0; text-align: center; }
.theme-trail { position: relative; height: 38px; }
.theme-trail::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; border-top: 4px dotted #D8C8AE; }
.trail-walked { position: absolute; left: 0; top: 24px; height: 4px; border-radius: 4px; background: var(--coral); }
.trail-walker { position: absolute; top: 0; width: 34px; margin-left: -17px; font-size: 1.6rem; line-height: 34px; text-align: center; }
.trail-walker.hop { animation: hop .35s ease; }
@keyframes hop { 40% { transform: translateY(-9px) scale(1.2); } }
.theme-count { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.theme-card .emoji { font-size: 2.1rem; line-height: 1; }
.theme-card h3 { font-size: 1.2rem; margin: 10px 0 4px; }
.theme-card .when { font-weight: 700; font-size: .85rem; }
.theme-card p { font-size: .92rem; margin-top: 6px; }

/* Calendar */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }
.calendar { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--paper-shadow); }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-top h2 { font-size: 1.7rem; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.cal-nav[disabled] { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-weight: 700; font-size: .8rem; color: var(--ink-soft); padding-bottom: 4px; }
.cal-day { position: relative; min-height: 88px; border-radius: 14px; padding: 6px 7px; font: inherit; color: inherit; text-align: left; border: 2px solid transparent; display: flex; flex-direction: column; overflow: hidden; }
.cal-day.empty { background: rgba(217,201,174,.25); }
.cal-day.past, .cal-day.empty { color: #A7905F; }
button.cal-day { cursor: pointer; transition: transform .15s; }
button.cal-day:hover { transform: scale(1.03); }
.cal-day.selected { border-color: var(--ink); }
.cal-day.today .num { background: var(--ink); color: var(--paper-cream); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.cal-day.soldout { opacity: .55; }
.cal-day .num { font-weight: 700; font-size: .9rem; }
.cal-day .em { font-size: 1.3rem; line-height: 1.2; margin-top: 2px; }
.cal-day .nm { font-size: .7rem; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-note { margin-top: 12px; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .calendar { padding: 14px 10px; }
  .cal-grid { gap: 4px; }
  .cal-day { min-height: 60px; padding: 4px; align-items: center; }
  .cal-day .nm { display: none; }
  .cal-day .em { font-size: 1.15rem; }
}
.day-panel { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--paper-shadow); position: sticky; top: 92px; }
@media (max-width: 860px) { .day-panel { position: static; } }
.day-panel h2 { font-size: 1.4rem; margin-bottom: 4px; }
.slot { border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.slot h3 { font-size: 1.15rem; margin: 8px 0 4px; }
.slot p { font-size: .92rem; }
.slot .btn { display: block; margin-top: 12px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--white); }
.pill.warn { background: var(--ink); color: var(--paper-cream); }

/* Booking steps */
.stepper { display: flex; justify-content: center; gap: 6px 22px; flex-wrap: wrap; list-style: none; font-weight: 700; font-size: .88rem; color: var(--ink-soft); margin: 26px 0 0; }
.stepper li { display: flex; align-items: center; gap: 7px; }
.stepper span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: .78rem; }
.stepper .done span { background: var(--sage); color: var(--ink); }
.stepper .now { color: var(--ink); }
.stepper .now span { background: var(--coral); color: var(--paper-cream); }

.book-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .book-layout { grid-template-columns: minmax(0, 1fr); } .book-layout .summary { order: -1; position: static; } }
.summary { position: sticky; top: 92px; }
.summary .banner { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.summary .banner .emoji { font-size: 2rem; line-height: 1; }
.summary h3 { margin-top: 6px; }
.rows { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rows th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 4px 10px 4px 0; vertical-align: top; white-space: nowrap; }
.rows td { text-align: right; font-weight: 700; padding: 4px 0; }

/* Forms */
fieldset { border: 0; margin-bottom: 26px; }
legend { font-family: var(--display); font-size: 1.45rem; margin-bottom: 10px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-bottom: 4px; }
.field input { -webkit-appearance: none; appearance: none; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; font: inherit; color: var(--ink); padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); outline: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--coral-dark); }
.err { color: #A8371C; font-weight: 700; font-size: .9rem; margin-top: 4px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--coral-dark); }
.notice { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.notice.error { background: #F7DACF; color: #8E2F18; }
.notice.info { background: var(--butter); }
.notice.ok { background: var(--sage); }

.choice { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--white); }
.choice input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--coral-dark); }
.choice:has(input:checked) { border-color: var(--coral); background: #FCEFE7; }
.choice .grow { flex: 1; min-width: 0; }
.choice strong { display: block; }
.choice small { color: var(--ink-soft); font-size: .88rem; display: block; }
.choice .amt { font-family: var(--display); font-size: 1.35rem; white-space: nowrap; }
.pay-tag { font-weight: 800; font-size: .8rem; letter-spacing: .03em; padding: 4px 9px; border-radius: 8px; background: var(--ink); color: var(--paper-cream); margin-right: 6px; }
.fine { font-size: .84rem; color: var(--ink-soft); background: rgba(217,201,174,.4); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0; }
.btn.block { display: block; width: 100%; }
.timer { font-weight: 800; font-variant-numeric: tabular-nums; }

/* Test payment page */
.test-bar { background: var(--ink); color: var(--paper-cream); text-align: center; font-weight: 700; padding: 10px 14px; }
.gateway { max-width: 480px; margin: 36px auto; }
.gateway .amt { font-family: var(--display); font-size: 2.5rem; }
.qr-box { width: 220px; margin: 16px auto; padding: 12px; background: var(--white); border: 2px dashed var(--ink); border-radius: 16px; position: relative; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-box .stamp { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--coral-dark); }
.qr-box .stamp b { background: var(--white); padding: 2px 10px; border-radius: 8px; }
.gw-actions { display: grid; gap: 10px; margin-top: 16px; }

/* Ticket (booking confirmation) */
.ticket { max-width: 560px; margin: 0 auto; }
.ticket .top { border-radius: var(--radius) var(--radius) 0 0; padding: 26px; text-align: center; }
.ticket .top .emoji { font-size: 2.8rem; line-height: 1; }
.ticket .body { background: var(--white); border-radius: 0 0 var(--radius) var(--radius); padding: 26px; box-shadow: var(--paper-shadow); }
.ref { font-family: var(--display); font-size: 1.6rem; letter-spacing: .04em; }
.bring { list-style: none; margin: 10px 0 0; }
.bring li { padding: 3px 0; }

/* Terms */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.45rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 8px; }
.legal ol, .legal ul { padding-left: 22px; }

/* Admin */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.tile { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--paper-shadow); }
.tile b { display: block; font-family: var(--display); font-size: 1.75rem; }
.tile span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.admin-session { background: var(--white); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; display: block; box-shadow: var(--paper-shadow); }
.admin-session summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 1rem; }
.admin-session .count { margin-left: auto; font-weight: 800; }
.tag { font-size: .75rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--line); }
.tag.red { background: #F7DACF; color: #8E2F18; }
.tag.green { background: var(--sage); }
.tag.yellow { background: var(--butter); }
.roster { margin-top: 12px; display: grid; gap: 10px; }
.kid { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kid .who { font-weight: 800; }
.kid p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); }
.kid .alert { color: #8E2F18; font-weight: 700; }
.kid .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.kid .acts select { font: inherit; font-size: .85rem; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); max-width: 220px; }
.mini { font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.mini:hover { background: var(--ink); color: var(--paper-cream); }
.mini.danger { border-color: #A8371C; color: #A8371C; }
.mini.danger:hover { background: #A8371C; color: var(--paper-cream); }

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

/* Shop */
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.product { text-align: center; }
.product .card, .product .fine { text-align: left; }
.product .cc-ticket { margin-top: 10px; }
.product-name { font-size: clamp(1.9rem, 5vw, 2.5rem); margin-top: 6px; }
.product-shot { position: relative; max-width: 360px; margin: 0 auto; aspect-ratio: 1; display: grid; place-items: center; }
.product-shot .back { position: absolute; inset: 2%; width: 96%; height: 96%; object-fit: contain; transform: rotate(-8deg); }
.product-shot .star { position: absolute; width: 17%; right: 3%; top: 5%; transform: rotate(12deg); }
.product-shot .bear { position: relative; width: 70%; height: auto; filter: drop-shadow(5px 8px 9px rgba(60, 36, 5, .28)); }
.qty { display: flex; align-items: center; gap: 14px; }
.qty button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { font-family: var(--display); font-size: 2rem; min-width: 1.4em; text-align: center; }
.shop-teaser { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 24px; align-items: center; max-width: 760px; margin: 0 auto; }
.shop-teaser img { width: 100%; height: auto; filter: drop-shadow(5px 8px 9px rgba(60, 36, 5, .28)); }
@media (max-width: 600px) { .shop-teaser { grid-template-columns: minmax(0, 1fr); text-align: center; } .shop-teaser img { max-width: 170px; margin: 0 auto; } }

/* Parent page */
.code-input { font-family: "Fira Code", monospace; font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; }
.linkish { background: none; border: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 10px; }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.acct-h { font-size: 1.5rem; margin: 30px 0 12px; }
.acct-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acct-acts .btn { margin-top: 0; display: inline-block; }
.slot .move-box .btn { display: inline-block; margin-top: 0; }
#main > .slot { margin-bottom: 14px; }
.pass-card { text-align: center; background: var(--butter); }
.pass-card.none { background: var(--white); }
.pass-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.pass-card .left { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.pass-card .left b { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--coral-dark); }
.pass-card .left span { font-weight: 700; }
.pass-card .dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 12px; }
.pass-card .dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); }
.pass-card .dots i.used { background: none; border: 2px dashed var(--kraft-tag); }
.pass-card .btn { margin-top: 14px; }
.past-list > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.past-list > div:last-child { border-bottom: 0; }
.past-list span { display: block; font-size: .9rem; color: var(--ink-soft); }

/* Editing the calendar (team only) */
.edit-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: var(--butter); border: 2px dashed var(--kraft-tag); border-radius: var(--radius); padding: 12px 16px; margin-top: 18px; }
.edit-acts { display: flex; flex-wrap: wrap; gap: 8px; }
a.mini { text-decoration: none; display: inline-block; }
.mini { min-height: 36px; }
.cal-day.add { cursor: pointer; border-style: dashed; }
.cal-day.add .em { opacity: .35; }
.cal-day .star { position: absolute; top: 3px; right: 5px; font-size: .8rem; color: var(--coral-dark); }
.cal-day { position: relative; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.kind { background: var(--coral-dark); color: var(--paper-cream); }
.theme-card .pill.kind { margin-bottom: 4px; }
.slot p.slot-price { font-family: var(--display); font-size: 1.5rem; margin-top: 8px; }
.slot p.slot-price small { font-family: inherit; font-size: .85rem; }
.edit-dialog { margin: auto; border: 0; border-radius: var(--radius); padding: 24px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--white); color: var(--ink); box-shadow: 0 20px 60px rgba(60, 36, 5, .35); }
.edit-dialog::backdrop { background: rgba(60, 36, 5, .45); }
.edit-dialog h2 { font-size: 1.6rem; margin-bottom: 14px; }
.edit-dialog h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.dialog-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 84px; margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 10px; border: 2px solid var(--line); border-radius: 14px; font-weight: 700; cursor: pointer; }
.seg input:checked + span { border-color: var(--coral); background: #FCEFE7; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
.swatches { display: flex; gap: 10px; }
.swatches label { margin: 0; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatches input:checked + span { border-color: var(--ink); }
.theme-list { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chip { font: inherit; font-weight: 600; font-size: .9rem; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.choice input[type=radio] { margin-top: 3px; }

/* Team page */
.admin-top { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.team-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.team-form h3 { font-size: 1.15rem; margin-bottom: 10px; }
.log { font-size: .85rem; color: var(--ink-soft); max-height: 220px; overflow: auto; }
.log > div { padding: 3px 0; }
strong.alert { color: #8E2F18; }
.edit-dialog { overflow-x: hidden; box-sizing: border-box; }
.edit-dialog .two { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Round and square tick controls inside a form field keep their normal look. */
.field .choice input[type=radio], .field .choice input[type=checkbox] { -webkit-appearance: auto; appearance: auto; width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; margin-top: 4px; flex: none; }
.field .seg input, .field .swatches input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.field label.choice { display: flex; font-weight: 400; margin-bottom: 10px; }

/* Required marks */
.req { color: var(--coral-dark); font-weight: 800; }
.field .check { margin-bottom: 0; }
.field.bad .check span { color: #8E2F18; }

/* Party packages: ask on WhatsApp instead of a price */
.pkg-ask { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.pkg-ask .hand { font-family: var(--hand); font-size: 1.35rem; color: var(--ink-soft); }
.pkg-ask .btn { white-space: nowrap; }

/* Basics every page gets */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper-cream); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 2px; }
[hidden] { display: none !important; }
.product-card { text-align: center; }
.product-card img { width: 70%; height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(5px 8px 9px rgba(60, 36, 5, .28)); }
.product-shot .bear { max-height: 100%; object-fit: contain; }

/* ==========================================================================
   Welcome card (home page, first visit) and "opens soon" notice
   ========================================================================== */
[hidden] { display: none !important; }
body.welcome-on { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 50; }
.welcome-dim { position: absolute; inset: 0; background: rgba(60, 36, 5, .45); opacity: 0; transition: opacity .25s; }
.welcome-sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 480px;
  background: var(--white); border-radius: 26px 26px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s ease; max-height: 92vh; overflow-y: auto; }
.welcome.open .welcome-dim { opacity: 1; }
.welcome.open .welcome-sheet { transform: none; }
.welcome-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.welcome-sheet h2 { font-family: var(--display); font-weight: normal; font-size: 1.9rem; text-align: center; line-height: 1.1; }
.welcome-sub { font-family: var(--hand); font-size: 1.35rem; text-align: center; color: var(--ink-soft); margin-bottom: 12px; }
.welcome-opt { display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px;
  margin-bottom: 10px; background: var(--cream); color: var(--ink); text-decoration: none; min-height: 64px; }
.welcome-opt:hover, .welcome-opt:focus-visible { background: var(--butter); outline: none; }
.welcome-opt img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.welcome-opt b { display: block; font-size: 1rem; }
.welcome-opt small { display: block; font-size: .8rem; color: var(--ink-soft); }
.welcome-skip { display: block; margin: 8px auto 0; background: none; border: 0; font: inherit; font-size: .9rem;
  color: var(--ink-soft); text-decoration: underline; cursor: pointer; padding: 8px 12px; }
@media (min-width: 760px) {
  .welcome-sheet { bottom: auto; top: 50%; border-radius: 26px; transform: translateY(-40%); opacity: 0; transition: transform .3s ease, opacity .25s; }
  .welcome.open .welcome-sheet { transform: translateY(-50%); opacity: 1; }
  .welcome-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .welcome-dim, .welcome-sheet { transition: none; } }
.closed-note { text-align: center; }
.closed-note .section-title { font-size: 1.7rem; margin-bottom: 10px; }
.closed-note p { margin-bottom: 18px; }
