/* ── How Well Do You Know Us? — scrapbook photo album ───────────────
   Kraft paper page, brush-marker hand lettering, washi tape strips,
   photo-corner mounted cards, pastel sticky-note answers, doodled
   hearts, instant-photo result frame with marker scrawl. */

:root {
  --kraft: #d9c39f;
  --kraft-deep: #cbb48d;
  --card: #fffdf7;
  --marker: #3f3229;
  --peach: #f7c8b2;
  --mint: #bfe3cd;
  --butter: #fbe6a2;
  --lilac: #ddd0f0;
  --pink-pop: #e26d8f;
  --ink-soft: #8a7a64;
  --err: #cf4a33;
  --hand: 'Gochi Hand', cursive;
  --sans: 'Quicksand', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

body {
  font-family: var(--sans);
  color: var(--marker);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(2deg, transparent 0 5px, rgba(63, 50, 41, 0.02) 5px 6px),
    linear-gradient(180deg, var(--kraft), var(--kraft-deep));
  background-attachment: fixed;
  min-height: 100vh;
}

.album { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.doodle {
  position: fixed;
  font-size: 2rem;
  color: rgba(63, 50, 41, 0.25);
  pointer-events: none;
}

.d-heart { top: 18vh; left: 5vw; transform: rotate(-16deg); }
.d-star { top: 40vh; right: 6vw; transform: rotate(12deg); }
.d-heart2 { bottom: 16vh; left: 8vw; transform: rotate(8deg); font-size: 1.4rem; }

.wrap { width: 100%; max-width: 580px; margin: 0 auto; padding: 0 24px; }

main { flex: 1 0 auto; padding-bottom: 60px; }

/* ── Washi tape ───────────────────────────────────────────────────── */
.washi {
  position: absolute;
  width: 110px;
  height: 26px;
  opacity: 0.85;
  pointer-events: none;
}

.washi-a {
  top: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-radial-gradient(circle at 8px 13px, rgba(226, 109, 143, 0.7) 0 3px, transparent 3px 12px), var(--peach);
}

.washi-b {
  top: -13px;
  right: 30px;
  transform: rotate(4deg);
  background: repeating-linear-gradient(90deg, rgba(63, 122, 87, 0.35) 0 8px, transparent 8px 16px), var(--mint);
}

.washi-c {
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: repeating-linear-gradient(90deg, rgba(63, 122, 87, 0.35) 0 8px, transparent 8px 16px), var(--mint);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 74px 24px 8px; }

.kicker {
  font-family: var(--hand);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--pink-pop);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.3rem, 9vw, 3.6rem);
  line-height: 1.06;
  color: var(--marker);
}

.underlined {
  position: relative;
  white-space: nowrap;
}

.underlined::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: 2px;
  height: 7px;
  background: var(--pink-pop);
  opacity: 0.5;
  border-radius: 999px;
  transform: rotate(-1deg);
}

.sub { color: rgba(63, 50, 41, 0.75); font-weight: 600; max-width: 430px; margin: 14px auto 0; }

/* ── Photo card ───────────────────────────────────────────────────── */
.photo-card {
  position: relative;
  background: var(--card);
  border-radius: 6px;
  padding: 32px 30px 28px;
  margin-top: 30px;
  transform: rotate(-0.6deg);
  box-shadow: 0 12px 26px rgba(63, 50, 41, 0.25);
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  background: rgba(63, 50, 41, 0.85);
}

.c-tl { top: -6px; left: -6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.c-tr { top: -6px; right: -6px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.c-bl { bottom: -6px; left: -6px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.c-br { bottom: -6px; right: -6px; clip-path: polygon(100% 0, 0 100%, 100% 100%); }

.progress-scrawl {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--pink-pop);
  text-align: center;
  margin-bottom: 16px;
}

/* question */
.q-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 20px;
}

.choices { display: grid; gap: 10px; }

.choice-btn {
  width: 100%;
  text-align: left;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--marker);
  border: none;
  border-radius: 3px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  box-shadow: 0 3px 8px rgba(63, 50, 41, 0.18);
}

.choice-btn:nth-child(4n+1) { background: var(--butter); transform: rotate(-0.7deg); }
.choice-btn:nth-child(4n+2) { background: var(--mint); transform: rotate(0.6deg); }
.choice-btn:nth-child(4n+3) { background: var(--peach); transform: rotate(-0.4deg); }
.choice-btn:nth-child(4n)   { background: var(--lilac); transform: rotate(0.8deg); }

.choice-btn:hover:not(:disabled) { transform: rotate(0deg) translateY(-3px); box-shadow: 0 7px 14px rgba(63, 50, 41, 0.24); }
.choice-btn:disabled { cursor: default; }

.choice-btn.picked {
  outline: 3px solid var(--pink-pop);
  outline-offset: 2px;
  transform: rotate(0deg) scale(1.02);
}

/* ── Gate ─────────────────────────────────────────────────────────── */
.gate { text-align: center; }

.gate h2 { font-family: var(--hand); font-weight: 400; font-size: 2rem; }

.lead { color: var(--ink-soft); font-weight: 600; margin: 6px 0 22px; }

.field { margin-bottom: 16px; text-align: left; }

label {
  display: block;
  font-family: var(--hand);
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--marker);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--marker);
  background: #fff;
  border: none;
  border-bottom: 2.5px dashed rgba(63, 50, 41, 0.35);
  border-radius: 4px 4px 0 0;
  transition: border-color 0.15s ease;
}

input:focus { outline: none; border-bottom-color: var(--pink-pop); border-bottom-style: solid; }
input.error { border-bottom-color: var(--err); border-bottom-style: solid; }
input::placeholder { color: #c3b49b; }

/* ── Button ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: #fff;
  background: var(--pink-pop);
  border: none;
  border-radius: 999px;
  padding: 13px 32px;
  cursor: pointer;
  transition: transform 0.12s ease;
  box-shadow: 0 5px 0 #b64a6b;
}

.btn:hover:not(:disabled) { transform: translateY(-2px) rotate(-1deg); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }

.btn-block { width: 100%; }

.form-error { color: var(--err); font-weight: 700; text-align: center; margin-top: 14px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Polaroid result ──────────────────────────────────────────────── */
.polaroid {
  position: relative;
  background: #fff;
  max-width: 320px;
  margin: 34px auto 0;
  padding: 14px 14px 18px;
  transform: rotate(1.5deg);
  box-shadow: 0 14px 30px rgba(63, 50, 41, 0.3);
}

.polaroid-photo {
  background: linear-gradient(160deg, #f3d9c8, #e8b8a4);
  text-align: center;
  padding: 36px 20px;
}

.photo-score {
  font-family: var(--hand);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--marker);
}

.photo-caption {
  font-family: var(--hand);
  font-size: 1rem;
  color: rgba(63, 50, 41, 0.6);
  margin-top: 4px;
}

.polaroid-scrawl {
  font-family: var(--hand);
  font-size: 1.5rem;
  text-align: center;
  margin-top: 12px;
  color: var(--pink-pop);
}

.result-desc {
  text-align: center;
  color: rgba(63, 50, 41, 0.8);
  font-weight: 600;
  max-width: 420px;
  margin: 18px auto 0;
}

/* review sticky notes */
.review { display: grid; gap: 10px; margin-top: 22px; }

.review-card {
  background: var(--card);
  border-radius: 4px;
  padding: 13px 16px;
  box-shadow: 0 4px 10px rgba(63, 50, 41, 0.16);
  border-left: 5px solid var(--mint);
}

.review-card.missed { border-left-color: var(--pink-pop); }

.review-q { font-weight: 700; font-size: 0.95rem; }

.review-a { font-family: var(--hand); font-size: 1.05rem; margin-top: 3px; color: var(--ink-soft); }

.review-a .yay { color: #3f7a57; }
.review-a .nope { color: var(--pink-pop); }

.challenge-line {
  font-family: var(--hand);
  font-size: 1.15rem;
  text-align: center;
  color: rgba(63, 50, 41, 0.7);
  margin-top: 24px;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 30px 20px;
  color: rgba(63, 50, 41, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
}

#wbx-powered-by-slot { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .photo-card { padding: 26px 18px 22px; }
  .doodle { display: none; }
}
