
:root{
    --paper:#fbf3df;
    --paper2:#fff9ec;
    --ink:#241b14;
    --muted: rgba(36,27,20,.70);
  
    --rose:#ff4d88;
    --rose2:#ff7bb1;
  
    --line: rgba(60,120,255,.10);
    --margin: rgba(255,77,136,.22);
  
    --shadowSoft: 0 18px 50px rgba(0,0,0,.10);
    --shadowLite: 0 10px 24px rgba(0,0,0,.10);
  }
  
  *{ box-sizing:border-box; }
  html, body{ height:100%; }
  
  body{
    margin:0;
    display:grid;
    place-items:center;
    color:var(--ink);
  
    /* PAPER + NOTEBOOK LINES + WARM LIGHT */
    background:
      radial-gradient(1200px 900px at 20% 10%, rgba(255,77,136,.14), transparent 60%),
      radial-gradient(900px 700px at 85% 20%, rgba(255,210,138,.18), transparent 65%),
      repeating-linear-gradient(
        to bottom,
        var(--line) 0px,
        var(--line) 1px,
        transparent 1px,
        transparent 34px
      ),
      linear-gradient(180deg, var(--paper2), var(--paper));
  
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  
    overflow-x:hidden;
    padding: 26px 0;
  }
  
  /* SUBTLE GRAIN (less digital) */
  body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
      radial-gradient(circle at 25% 15%, rgba(0,0,0,.05), transparent 35%),
      radial-gradient(circle at 80% 25%, rgba(0,0,0,.04), transparent 40%),
      radial-gradient(circle at 45% 85%, rgba(0,0,0,.03), transparent 45%);
    mix-blend-mode:multiply;
    opacity:.55;
  }
  
  /* NOTEBOOK MARGIN LINE ON THE PAGE (not a card) */
  body::after{
    content:"";
    position:fixed;
    top:0; bottom:0;
    left: calc(50% - 380px); /* aligns with centered content width */
    width: 2px;
    background: var(--margin);
    opacity: .9;
    pointer-events:none;
    border-radius: 999px;
  }
  
  /* TURN OFF vignette entirely (optional but helps eliminate template feel) */
  .vignette{ display:none; }
  
  /* STAGE: centered content block */
  .stage{
    width: min(760px, 94vw);
    padding: 10px 0 24px;
  }
  
  /* PAGE FLIP transition between scenes */
  .scene{
    display:block;
    transform-origin: left center;
    animation: pageFlipIn .55s ease both;
  }
  .hidden{ display:none; }
  
  @keyframes pageFlipIn{
    from{
      opacity:0;
      transform: perspective(1200px) rotateY(-10deg) translateY(10px);
      filter: blur(2px);
    }
    to{
      opacity:1;
      transform: perspective(1200px) rotateY(0deg) translateY(0);
      filter: blur(0);
    }
  }
  
  /* REMOVE ALL CARD/BOX LOOK */
  .card{
    position:relative;
    padding: 6px 6px 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .card::before,
  .card::after{ content:none; }
  .card.cinematic{
    background: transparent;
    border: 0;
  }
  
  /* BADGE (small label, not a pill UI) */
  .badge{
    display:inline-block;
    font-size: .88rem;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255,77,136,.10);
    border: 1px dashed rgba(255,77,136,.28);
    color: rgba(36,27,20,.82);
  }
  
  /* TYPOGRAPHY */
  .title{
    margin: 10px 0 8px;
    text-align:center;
    font-family: "Caveat", cursive;
    font-size: clamp(2.2rem, 5vw, 3.0rem);
    letter-spacing: .01em;
    line-height: 1.05;
    color: rgba(36,27,20,.92);
  }
  
  .headline{
    margin: 0 0 8px;
    text-align:center;
    font-family: "Caveat", cursive;
    font-size: clamp(2.0rem, 4.8vw, 2.8rem);
    line-height: 1.08;
    color: rgba(36,27,20,.92);
  }
  
  .sub{
    margin: 0 0 14px;
    text-align:center;
    color: var(--muted);
    font-size: 1.02rem;
  }
  
  .tiny{
    margin: 12px 0 0;
    text-align:center;
    color: rgba(36,27,20,.58);
    font-size: .95rem;
  }
  
  .name{
    color: rgba(255,77,136,.95);
    font-weight: 800;
  }
  
  /* SCRIBBLE UNDERLINE for headline text (wrap with <span class="scribble">) */
  .scribble{
    position:relative;
    display:inline-block;
    padding: 0 6px 10px;
  }
  .scribble::after{
    content:"";
    position:absolute;
    left:-2px;
    right:-2px;
    bottom: 3px;
    height: 16px;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(255,77,136,.32) 0 10px,
        rgba(255,77,136,.10) 10px 18px
      );
    border-radius: 999px;
    transform: rotate(-1.5deg);
    z-index:-1;
    opacity:.95;
  }
  
  /* TYPEWRITER TEXT */
  .typewriter{
    min-height: 78px;
    text-align:center;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(36,27,20,.78);
    margin: 8px auto 14px;
    max-width: 64ch;
    white-space: pre-line;
  }
  
  /* TOP ROW */
  .top-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 10px;
    flex-wrap:wrap;
    margin-top: 2px;
  }
  
  /* INTRO ACTIONS */
  .intro-actions{
    display:flex;
    gap: 10px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top: 10px;
  }
  
  /* BUTTON ROW gets a subtle highlight (NOT a box) */
  .btn-row{
    display:flex;
    gap: 12px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    margin-top: 10px;
    position:relative;
    min-height: 96px;
  
    padding: 10px 8px;
    background:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,.55), transparent 60%),
      radial-gradient(circle at 80% 40%, rgba(255,255,255,.40), transparent 65%);
    border-radius: 18px;
  }
  
  /* BUTTON BASE */
  .btn{
    border:0;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 900;
    cursor:pointer;
    user-select:none;
    transition: transform .12s ease, filter .12s ease;
    letter-spacing: .01em;
    background: transparent;
  }
  .btn:hover{ transform: translateY(-2px); }
  .btn:active{ transform: translateY(0) scale(.99); }
  
  /* YES = sticker */
  .primary{
    color:#fff;
    background: linear-gradient(135deg, var(--rose), var(--rose2));
    border: 1px solid rgba(255,255,255,.55);
    position: relative;
    box-shadow: 0 14px 30px rgba(255,77,136,.18);
  }
  .primary::before{
    content:"";
    position:absolute;
    inset:-3px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,.55), transparent 45%),
      radial-gradient(circle at 80% 30%, rgba(255,255,255,.35), transparent 55%);
    opacity:.55;
    pointer-events:none;
  }
  .primary:hover{
    transform: translateY(-2px) rotate(-.6deg);
    filter: saturate(1.05);
  }
  .primary.big{
    font-family: "Caveat", cursive;
    font-size: 1.35rem;
    transform-origin:center;
  }
  
  /* NO = pencil scribble */
  .danger{
    color: rgba(36,27,20,.90);
    background:
      repeating-linear-gradient(
        45deg,
        rgba(36,27,20,.06) 0 6px,
        rgba(36,27,20,.03) 6px 12px
      ),
      rgba(255,255,255,.62);
    border: 1px solid rgba(58,43,34,.16);
    border-radius: 18px;
    position: relative;
  }
  .danger::after{
    content:"";
    position:absolute;
    left:10px;
    right:10px;
    bottom:10px;
    height:10px;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(36,27,20,.22) 0 10px,
        transparent 10px 14px
      );
    opacity:.22;
    border-radius: 999px;
    transform: rotate(-1deg);
    pointer-events:none;
  }
  .danger:hover{
    transform: translateY(-2px) rotate(.6deg);
    filter: contrast(1.03);
  }
  
  /* GHOST (outline note) */
  .ghost{
    color: rgba(36,27,20,.84);
    background: rgba(255,255,255,.35);
    border: 1px dashed rgba(58,43,34,.22);
    border-radius: 18px;
  }
  .ghost:hover{ filter: brightness(1.02); }
  
  /* LOVE LETTER: soft highlight for readability, still not a “card” */
  .love-letter{
    margin: 10px auto 16px;
    max-width: 64ch;
    white-space: pre-line;
  
    text-align:center;
    color: rgba(36,27,20,.88);
    font-size: 1.06rem;
    line-height: 1.9;
  
    padding: 10px 10px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.22));
    border-radius: 14px;
    border: 1px solid rgba(58,43,34,.06);
  }
  
  /* POLAROID STACK (two photos peeking behind) */
  .slideshow{
    position:relative;
    width:100%;
    margin-top: 12px;
    border-radius: 18px;
  }
  
  /* back layers */
  .slideshow::before,
  .slideshow::after{
    content:"";
    position:absolute;
    inset: 10px 12px 22px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(58,43,34,.10);
    transform: rotate(-2deg);
    z-index:0;
    box-shadow: var(--shadowLite);
    opacity:.75;
  }
  .slideshow::after{
    inset: 16px 16px 26px 16px;
    transform: rotate(2.2deg);
    opacity:.55;
  }
  
  /* main polaroid */
  .slideshow img{
    position:relative;
    z-index:1;
    width:100%;
    height:auto;
    display:block;
    object-fit: cover;
  
    border-radius: 16px;
    border: 10px solid rgba(255,255,255,.92);
    border-bottom-width: 44px;
    box-shadow: var(--shadowSoft);
    transition: opacity .25s ease;
  }
  
  /* caption in polaroid bottom */
  .slideshow-caption{
    position:absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    z-index:2;
  
    text-align:center;
    color: rgba(36,27,20,.70);
    font-size: .98rem;
    background: transparent;
    border: 0;
    padding: 0;
  }
  
  /* END NOTE */
  .endcard{
    margin-top: 16px;
    text-align:center;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,.22);
    border: 1px dashed rgba(58,43,34,.16);
  }
  .end-title{
    font-family: "Caveat", cursive;
    font-size: 1.75rem;
    letter-spacing: .12em;
    color: rgba(36,27,20,.78);
  }
  .end-sub{ color: rgba(36,27,20,.64); margin-top: 6px; }
  .credits{ color: rgba(36,27,20,.55); margin-top: 10px; font-size: .95rem; }
  
  /* HEARTS */
  #hearts{
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden;
  }
  .heart{
    position:absolute;
    will-change: transform, opacity;
    animation: floatUp linear forwards;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.14));
  }
  @keyframes floatUp{
    from{ transform: translateY(30px) scale(1); opacity:1; }
    to{ transform: translateY(-120vh) scale(1.7); opacity:0; }
  }
  
  /* ROTATE sideways photo only */
  .rotate-image{
    transform: rotate(-90deg);
    max-height: 80vh;
    width: auto;
    margin: 0 auto;
    display: block;
  }
  
  /* MOBILE: keep margin line aligned nicely */
  @media (max-width: 820px){
    body::after{
      left: 6vw;           /* margin line shifts implying notebook margin */
      opacity: .65;
    }
  }
  
  
  