/* ============================================================
     DESIGN TOKENS
     Edit these to retheme the whole app fast.
  ============================================================ */
  :root {
    --c-bg-1: #ffd6a5;       /* peach */
    --c-bg-2: #ffadad;       /* coral */
    --c-bg-3: #bdb2ff;       /* lavender */
    --c-bg-4: #a0e7e5;       /* mint */
    --c-bg-5: #ffc6ff;       /* pink */

    --c-ink:    #1d1730;     /* near-black aubergine */
    --c-ink-2:  #4a3f63;
    --c-paper:  #fff8ef;     /* warm off-white */
    --c-accent: #ff5d8f;     /* hot pink */
    --c-accent-2: #6a4cff;   /* electric purple */
    --c-yellow: #ffd23f;
    --c-mint:   #2ecc9f;

    --shadow-1: 0 6px 0 var(--c-ink);
    --shadow-2: 0 12px 30px rgba(29, 23, 48, 0.18);

    --radius: 22px;
    --radius-pill: 999px;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
  }

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

  body {
    font-family: var(--font-body);
    color: var(--c-ink);
    min-height: 100vh;
    overflow-x: hidden;
    background:
      radial-gradient(1200px 600px at 10% -10%, var(--c-bg-1) 0%, transparent 60%),
      radial-gradient(900px 700px at 110% 10%, var(--c-bg-5) 0%, transparent 55%),
      radial-gradient(1000px 800px at 50% 110%, var(--c-bg-3) 0%, transparent 55%),
      linear-gradient(180deg, #ffe7d1 0%, #ffd6e7 50%, #d9d0ff 100%);
    background-attachment: fixed;
  }

  /* Subtle grain to fight flatness */
  body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  }

  /* ============================================================
     FLOATING BACKGROUND BLOBS
  ============================================================ */
  .blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: float 16s ease-in-out infinite;
  }
  .blob.b1 { width: 360px; height: 360px; background: var(--c-bg-1); top: -80px; left: -80px; }
  .blob.b2 { width: 280px; height: 280px; background: var(--c-bg-4); top: 30%; right: -60px; animation-delay: -4s; }
  .blob.b3 { width: 320px; height: 320px; background: var(--c-bg-5); bottom: -100px; left: 20%; animation-delay: -8s; }
  .blob.b4 { width: 220px; height: 220px; background: var(--c-bg-3); top: 10%; left: 40%; animation-delay: -12s; }

  @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 30px) scale(0.95); }
  }

  /* ============================================================
     LAYOUT
  ============================================================ */
  .stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
  }

  .card {
    width: 100%;
    max-width: 680px;
    background: var(--c-paper);
    border: 3px solid var(--c-ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1), var(--shadow-2);
    padding: 44px 40px;
    position: relative;
  }

  /* little decorative tape on the card */
  .card::before {
    content: "";
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 140px; height: 26px;
    background: var(--c-yellow);
    border: 2px solid var(--c-ink);
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--c-ink);
  }

  /* ============================================================
     BRAND WORDMARK
  ============================================================ */
  .brand-logo {
    display: block;
    width: fit-content;
    margin: 0 auto 28px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -0.02em;
    color: var(--c-ink);
    background: var(--c-yellow);
    border: 3px solid var(--c-ink);
    border-radius: var(--radius-pill);
    padding: 10px 28px;
    box-shadow: 5px 5px 0 var(--c-ink);
    transform: rotate(-2deg);
  }

  /* ============================================================
     INTRO SCREEN
  ============================================================ */
  .intro h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 8px 0 18px;
    text-align: center;
  }
  .intro h1 em {
    font-style: italic;
    color: var(--c-accent);
    font-weight: 600;
  }
  .intro .lede {
    text-align: center;
    font-size: 1.12rem;
    color: var(--c-ink-2);
    line-height: 1.55;
    max-width: 520px;
    margin: 0 auto 28px;
  }

  /* ============================================================
     POLAROID CAROUSEL
     Sits absolutely inside its parent card.
     Two position variants:
       .pos-bottom-left → intro page
       .pos-top-right   → form & thanks pages
  ============================================================ */
  .polaroid-carousel {
    position: absolute;
    width: 160px;
    z-index: 4;
  }
  .polaroid-carousel.pos-bottom-left {
    bottom: -28px;
    left: -22px;
  }
  .polaroid-carousel.pos-top-right {
    top: -28px;
    right: -22px;
    width: 130px;
  }
  .polaroid-carousel.pos-bottom-right {
    top: -100px;
    left: -80px;
    width: 160px;
  }

  .polaroid-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25; /* slightly taller than wide, room for caption */
  }

  .polaroid-slide {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 2.5px solid var(--c-ink);
    border-radius: 6px;
    padding: 10px 10px 14px;
    box-shadow: 0 8px 0 var(--c-ink), 0 14px 24px rgba(29, 23, 48, 0.25);
    transform: rotate(var(--rot, 6deg)) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 0.45s ease;
    display: flex;
    flex-direction: column;
  }
  .polaroid-slide.active {
    transform: rotate(var(--rot, 6deg)) scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  .polaroid-slide.exit {
    transform: rotate(calc(var(--rot, 6deg) - 14deg)) scale(0.85) translateX(-20px);
    opacity: 0;
  }

  .polaroid-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--c-bg-1), var(--c-bg-5));
  }

  .polaroid-caption {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    text-align: center;
    margin: 8px 0 0;
    color: var(--c-ink);
    line-height: 1.2;
  }

  /* Placeholder fallback when no media set */
  .polaroid-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--c-bg-1), var(--c-bg-5));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    border-radius: 2px;
    color: var(--c-ink);
    border: 1.5px dashed rgba(29, 23, 48, 0.3);
  }

  /* Arrows */
  .polaroid-nav {
    position: absolute;
    top: 45%;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--c-ink);
    background: var(--c-paper);
    box-shadow: 0 3px 0 var(--c-ink);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    z-index: 5;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    color: var(--c-ink);
    font-family: var(--font-body);
  }
  .polaroid-nav:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--c-ink); }
  .polaroid-nav:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-ink); }
  .polaroid-nav.prev { left: -14px; }
  .polaroid-nav.next { right: -14px; }

  /* Dots */
  .polaroid-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .polaroid-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--c-ink);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.15s ease;
  }
  .polaroid-dot:hover { transform: scale(1.2); }
  .polaroid-dot.active { background: var(--c-ink); }

  @media (max-width: 600px) {
    .polaroid-carousel.pos-bottom-left {
      width: 110px;
      bottom: -16px;
      left: -8px;
    }
    .polaroid-carousel.pos-top-right {
      width: 95px;
      top: -16px;
      right: -8px;
    }
    .polaroid-carousel.pos-bottom-right {
      width: 95px;
      bottom: -16px;
      right: -8px;
    }
    .polaroid-caption { font-size: 0.72rem; }
    .polaroid-nav { width: 24px; height: 24px; font-size: 0.85rem; }
    .polaroid-nav.prev { left: -10px; }
    .polaroid-nav.next { right: -10px; }
  }

  .badges {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin-bottom: 30px;
  }
  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-pill);
    background: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 3px 3px 0 var(--c-ink);
    transform: rotate(var(--r, 0deg));
  }
  .badge:nth-child(1) { --r: -2deg; background: var(--c-bg-1); }
  .badge:nth-child(2) { --r: 1.5deg; background: var(--c-bg-4); }
  .badge:nth-child(3) { --r: -1deg; background: var(--c-bg-5); }
  .badge:nth-child(4) { --r: 2deg; background: var(--c-bg-3); }

  .cta-row { display: flex; justify-content: center; }

  /* ============================================================
     BUTTONS
  ============================================================ */
  .btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    border: 3px solid var(--c-ink);
    background: var(--c-accent);
    color: var(--c-paper);
    cursor: pointer;
    box-shadow: 0 6px 0 var(--c-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--c-ink); }
  .btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--c-ink); }
  .btn.big { font-size: 1.2rem; padding: 20px 40px; }

  .btn.ghost {
    background: transparent;
    color: var(--c-ink);
    box-shadow: 0 4px 0 var(--c-ink);
  }
  .btn.ghost:hover { background: #fff; }

  .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 0 var(--c-ink) !important;
  }

  .btn .arrow { transition: transform 0.2s ease; }
  .btn:hover .arrow { transform: translateX(4px); }

  /* ============================================================
     FORM SCREEN
  ============================================================ */
  .form-screen { display: none; }
  .form-screen.active { display: block; }

  .progress {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 28px;
  }
  .progress-track {
    flex: 1; height: 10px;
    background: #fff;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2));
    border-radius: var(--radius-pill);
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .progress-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--c-ink-2);
    white-space: nowrap;
  }

  .slides {
    position: relative;
    min-height: 320px;
  }

  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(60px) scale(0.97);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }
  .slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    position: relative;
  }
  .slide.exit-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.97);
  }

  .q-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-accent-2);
    background: var(--c-yellow);
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .q-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
  }
  .q-help {
    color: var(--c-ink-2);
    margin: 0 0 20px;
    font-size: 0.98rem;
  }

  /* Inputs */
  .field {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 14px 18px;
    border: 2.5px solid var(--c-ink);
    border-radius: 14px;
    background: #fff;
    color: var(--c-ink);
    box-shadow: 0 4px 0 var(--c-ink);
    transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .field:focus {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 0 var(--c-accent);
    border-color: var(--c-accent);
  }
  textarea.field { resize: vertical; min-height: 110px; font-family: var(--font-body); }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  @media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
  }

  .field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-ink-2);
    margin-bottom: 6px;
  }

  /* Pill option group (radios/checkboxes styled as chips) */
  .options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .options input { position: absolute; opacity: 0; pointer-events: none; }
  .options label {
    cursor: pointer;
    padding: 10px 18px;
    border: 2.5px solid var(--c-ink);
    border-radius: var(--radius-pill);
    background: #fff;
    font-weight: 500;
    box-shadow: 0 3px 0 var(--c-ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
    user-select: none;
  }
  .options label:hover { transform: translateY(-1px); }
  .options input:checked + label {
    background: var(--c-accent);
    color: var(--c-paper);
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--c-ink);
  }

  /* Star rating — text-based pills */
  .stars { display: flex; flex-wrap: wrap; gap: 8px; }
  .stars input { position: absolute; opacity: 0; pointer-events: none; }
  .stars label {
    cursor: pointer;
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2.5px solid var(--c-ink);
    border-radius: 12px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 3px 0 var(--c-ink);
    transition: transform 0.12s ease, background 0.15s ease;
    user-select: none;
    white-space: nowrap;
  }
  .stars label:hover { transform: translateY(-2px); }
  .stars input:checked + label {
    background: var(--c-yellow);
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--c-ink);
  }
  .stars-hint { font-size: 0.85rem; color: var(--c-ink-2); margin-top: 8px; }

  /* Nav buttons row */
  .nav-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 28px; gap: 12px;
  }
  .nav-row .spacer { flex: 1; }

  /* ============================================================
     THANKS SCREEN
  ============================================================ */
  .thanks { text-align: center; }
  .thanks .emoji {
    font-size: 4rem;
    display: inline-block;
    animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  @keyframes pop {
    0% { transform: scale(0) rotate(-30deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
  }
  .thanks h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin: 12px 0 14px;
    font-weight: 700;
  }
  .thanks > p {
    color: var(--c-ink-2);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
  }

  .thanks-summary {
    background: #fff;
    border: 2.5px solid var(--c-ink);
    border-radius: 16px;
    padding: 18px 22px;
    margin: 22px auto 4px;
    max-width: 460px;
    text-align: left;
    box-shadow: 0 4px 0 var(--c-ink);
  }
  .thanks-summary h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
  }
  .thanks-summary ul {
    list-style: none;
    padding: 0; margin: 0;
    font-size: 0.95rem;
  }
  .thanks-summary li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(29, 23, 48, 0.15);
    gap: 12px;
  }
  .thanks-summary li:last-child { border-bottom: none; }
  .thanks-summary li .k { color: var(--c-ink-2); font-weight: 500; }
  .thanks-summary li .v { font-weight: 600; text-align: right; word-break: break-word; }

  /* --- divider --- */
  .thanks-divider {
    margin: 36px auto 24px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-ink-2);
  }
  .thanks-divider::before,
  .thanks-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--c-ink);
    opacity: 0.2;
    border-radius: 2px;
  }
  .thanks-divider span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  /* --- psychology CTA card --- */
  .psico-card {
    position: relative;
    margin: 0 auto;
    max-width: 520px;
    text-align: left;
    background: linear-gradient(135deg, var(--c-bg-3) 0%, var(--c-bg-4) 100%);
    border: 2.5px solid var(--c-ink);
    border-radius: var(--radius);
    box-shadow: 0 6px 0 var(--c-ink);
    padding: 24px 26px;
    overflow: hidden;
  }
  .psico-card::after {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 140px; height: 140px;
    background: var(--c-yellow);
    border: 2.5px solid var(--c-ink);
    border-radius: 50%;
    opacity: 0.85;
    z-index: 0;
  }
  .psico-card > * { position: relative; z-index: 1; }
  .psico-card .eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-ink);
    background: #fff;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    margin-bottom: 12px;
  }
  .psico-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 700;
    max-width: 360px;
  }
  .psico-card p {
    color: var(--c-ink);
    margin: 0 0 18px;
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 380px;
  }
  .psico-card .btn {
    background: var(--c-ink);
    color: var(--c-paper);
  }
  .psico-card .btn:hover { background: var(--c-accent-2); }

  .restart-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--c-ink-2);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: rgba(29, 23, 48, 0.3);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
  }
  .restart-link:hover { color: var(--c-accent); }

  /* ============================================================
     ENTRY ANIMATION
  ============================================================ */
  .reveal > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .reveal > *:nth-child(1) { animation-delay: 0.05s; }
  .reveal > *:nth-child(2) { animation-delay: 0.18s; }
  .reveal > *:nth-child(3) { animation-delay: 0.32s; }
  .reveal > *:nth-child(4) { animation-delay: 0.46s; }
  .reveal > *:nth-child(5) { animation-delay: 0.6s; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }

  /* small footer */
  .footer-note {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--c-ink-2);
    text-align: center;
    opacity: 0.8;
  }

  /* error shake */
  .shake { animation: shake 0.4s ease; }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
  }
  .error-msg {
    display: none;
    margin-top: 10px;
    color: #c0392b;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .error-msg.show { display: block; }

  /* ============================================================
     BIRTHDAY GIFT BOX
  ============================================================ */
  .gift-box {
    margin: 24px 0 8px;
    text-align: center;
  }

  .gift-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: var(--c-yellow);
    color: var(--c-ink);
    border: 3px solid var(--c-ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    justify-content: center;
    letter-spacing: -0.01em;
  }
  .gift-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 var(--c-ink);
  }
  .gift-trigger:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--c-ink);
  }

  /* Overlay */
  .gift-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29, 23, 48, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
  }

  .gift-modal {
    position: relative;
    background: var(--c-paper);
    border: 3px solid var(--c-ink);
    border-radius: var(--radius);
    box-shadow: 0 16px 0 var(--c-ink), var(--shadow-2);
    padding: 48px 40px 40px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .gift-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 2px solid var(--c-ink);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-ink);
    transition: background 0.15s;
  }
  .gift-close:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

  .gift-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--c-ink);
  }

  .gift-list {
    padding-left: 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .gift-list li {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-ink);
  }

  @media (max-width: 480px) {
    .gift-modal { padding: 40px 24px 32px; }
    .gift-modal-title { font-size: 1.3rem; }
    .gift-trigger { font-size: 1.05rem; padding: 16px 20px; }
  }
