    :root {
      --rose:       #ff6b8a;
      --blush:      #ffb3c6;
      --deep:       #c9184a;
      --petal:      #fff0f3;
      --gold:       #ffd6a5;
      --glow:       rgba(255,107,138,0.35);
      --dark:       #1a0a0e;
      --text-main:  #3d0c1a;
      --text-soft:  #7a3048;
      --font-body:  'Lora', serif;
      --font-display: 'Playfair Display', serif;
      --font-accent: 'Dancing Script', cursive;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    html, body {
      width: 100%; height: 100%;
      min-height: 100dvh;
      overflow: hidden;
      font-family: var(--font-body);
      background: var(--dark);
      color: var(--text-main);
      cursor: none;
    }

    @media (hover: none), (pointer: coarse) {
      html, body { cursor: auto; }
      #cursor { display: none; }
    }

    #cursor {
      position: fixed; top: 0; left: 0;
      width: 18px; height: 18px;
      background: var(--rose);
      border-radius: 50%;
      pointer-events: none;
      transition: transform .12s, background .2s;
      will-change: transform;
      z-index: 9999;
      box-shadow: 0 0 12px var(--rose);
    }

    .screen {
      position: fixed; inset: 0;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity .9s ease;
      overflow: hidden;
    }
    .screen.active { opacity: 1; pointer-events: all; }

    .btn-back {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 20;
      border: 1px solid rgba(255,255,255,.25);
      background: rgba(0,0,0,.28);
      color: #fff;
      border-radius: 999px;
      padding: .45rem .95rem;
      font-family: var(--font-body);
      font-size: .95rem;
      letter-spacing: .04em;
      cursor: pointer;
      backdrop-filter: blur(4px);
      transition: transform .2s, background .2s, border-color .2s;
    }

    .btn-back:hover {
      transform: translateX(-2px);
      background: rgba(255,107,138,.2);
      border-color: rgba(255,107,138,.6);
    }

    .screen.scrollable-screen {
      justify-content: flex-start;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      padding-top: max(2rem, env(safe-area-inset-top));
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    #particleCanvas {
      position: fixed; inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    .ambient-heart {
      position: fixed;
      font-size: 1.4rem;
      animation: floatUp linear infinite;
      opacity: 0;
      pointer-events: none;
      z-index: 1;
    }
    @keyframes floatUp {
      0%   { transform: translateY(0) rotate(0deg); opacity: .7; }
      100% { transform: translateY(-110vh) rotate(30deg); opacity: 0; }
    }

    #screen-landing {
      background: radial-gradient(ellipse at 50% 60%, #3d0c1a 0%, #1a0a0e 70%);
      z-index: 10;
    }

    .landing-bg-glow {
      position: absolute;
      width: 600px; height: 600px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(201,24,74,.18) 0%, transparent 70%);
      animation: pulseGlow 4s ease-in-out infinite;
    }
    @keyframes pulseGlow {
      0%,100% { transform: scale(1); opacity: .6; }
      50%      { transform: scale(1.15); opacity: 1; }
    }

    .landing-content {
      position: relative; z-index: 2;
      text-align: center;
      padding: 2rem;
    }

    .landing-eyebrow {
      font-family: var(--font-accent);
      font-size: clamp(1.1rem, 3vw, 1.6rem);
      color: var(--blush);
      letter-spacing: .12em;
      margin-bottom: 1.2rem;
      opacity: 0;
      animation: fadeSlideDown .8s .4s forwards;
    }

    .landing-title {
      font-family: var(--font-display);
      font-size: clamp(2.4rem, 8vw, 5.5rem);
      font-weight: 700;
      line-height: 1.1;
      color: #fff;
      text-shadow: 0 0 60px var(--rose), 0 0 120px var(--deep);
      opacity: 0;
      animation: fadeSlideDown .9s .7s forwards;
    }
    .landing-title span { color: var(--rose); font-style: italic; }

    .landing-heart {
      display: block;
      font-size: clamp(2.5rem, 8vw, 5rem);
      margin: 1rem auto;
      animation: heartBeat 1.4s ease-in-out infinite;
      opacity: 0;
      animation: heartBeat 1.4s 1.4s ease-in-out infinite, fadeIn .6s 1.2s forwards;
    }
    @keyframes heartBeat {
      0%,100% { transform: scale(1); }
      14%      { transform: scale(1.2); }
      28%      { transform: scale(1); }
      42%      { transform: scale(1.12); }
      70%      { transform: scale(1); }
    }

    .landing-sub {
      font-style: italic;
      font-size: clamp(1rem, 2.5vw, 1.35rem);
      color: var(--blush);
      margin: 1rem 0 2.5rem;
      opacity: 0;
      animation: fadeSlideDown .8s 1.5s forwards;
    }

    .btn-start {
      font-family: var(--font-body);
      font-size: 1.15rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: #fff;
      background: linear-gradient(135deg, var(--deep), var(--rose));
      border: none; border-radius: 50px;
      padding: .85rem 2.8rem;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 30px var(--glow), 0 4px 20px rgba(0,0,0,.4);
      transition: transform .2s, box-shadow .2s;
      opacity: 0;
      animation: fadeIn .8s 1.9s forwards;
    }
    .btn-start::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, #fff2 0%, transparent 60%);
      border-radius: inherit;
    }
    .btn-start:hover {
      transform: scale(1.06);
      box-shadow: 0 0 50px var(--glow), 0 8px 30px rgba(0,0,0,.5);
    }

    @keyframes fadeSlideDown {
      from { opacity: 0; transform: translateY(-18px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    #screen-question {
      background: radial-gradient(ellipse at 40% 50%, #2a0810 0%, #120408 80%);
      z-index: 9;
    }

    .question-wrap {
      position: relative; z-index: 2;
      text-align: center;
      padding: 2rem;
      max-width: 600px;
    }

    .question-emoji {
      font-size: 4rem;
      display: block;
      margin-bottom: 1rem;
      animation: swingBounce 2s ease-in-out infinite;
    }
    @keyframes swingBounce {
      0%,100% { transform: rotate(-8deg) scale(1); }
      50%      { transform: rotate(8deg) scale(1.1); }
    }

    .question-text {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 6vw, 3.5rem);
      color: #fff;
      text-shadow: 0 0 40px var(--rose);
      margin-bottom: .6rem;
    }

    .question-sub {
      font-style: italic;
      color: var(--blush);
      font-size: clamp(.95rem, 2.5vw, 1.2rem);
      margin-bottom: 2.5rem;
      min-height: 1.6em;
      transition: color .4s;
    }

    .btn-row {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      position: relative;
    }

    .btn-yes {
      font-family: var(--font-body);
      font-size: 1.2rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: #fff;
      background: linear-gradient(135deg, #c9184a, #ff6b8a);
      border: none; border-radius: 50px;
      padding: .8rem 2.5rem;
      cursor: pointer;
      box-shadow: 0 0 30px rgba(201,24,74,.5);
      transition: transform .25s, box-shadow .25s, font-size .4s, padding .4s;
    }
    .btn-yes:hover {
      transform: scale(1.08);
      box-shadow: 0 0 55px rgba(201,24,74,.8);
    }

    .btn-no {
      font-family: var(--font-body);
      font-size: 1.2rem;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: #fff;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 50px;
      padding: .8rem 2.5rem;
      cursor: pointer;
      position: absolute;
      transition: font-size .4s, padding .4s, opacity .4s;
    }

    #screen-celebrate {
      background: radial-gradient(ellipse at 50% 40%, #3d0c1a 0%, #1a0a0e 80%);
      z-index: 8;
    }

    .celebrate-inner {
      position: relative; z-index: 2;
      text-align: center;
      padding: 2rem 1.5rem;
      max-width: 700px;
    }

    .celebrate-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 7vw, 4.5rem);
      color: #fff;
      text-shadow: 0 0 60px var(--rose), 0 0 120px #ff0055;
      animation: rainbowGlow 3s ease-in-out infinite;
    }
    @keyframes rainbowGlow {
      0%,100% { text-shadow: 0 0 60px #ff6b8a, 0 0 120px #c9184a; }
      33%      { text-shadow: 0 0 60px #ffd6a5, 0 0 120px #ff8c42; }
      66%      { text-shadow: 0 0 60px #b5ead7, 0 0 120px #6bcbaa; }
    }

    .celebrate-msg {
      font-family: var(--font-accent);
      font-size: clamp(1.3rem, 4vw, 2.2rem);
      color: var(--gold);
      margin: 1rem 0 .5rem;
    }

    .celebrate-sub {
      font-style: italic;
      color: var(--blush);
      font-size: clamp(.9rem, 2.5vw, 1.15rem);
      line-height: 1.7;
      margin-bottom: 2rem;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: .75rem;
      margin: 1.5rem 0;
      max-width: 480px;
      margin-inline: auto;
    }
    .gallery-item {
      aspect-ratio: 1;
      border-radius: 14px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,107,138,.25);
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      overflow: hidden;
      transition: transform .25s;
    }
    .gallery-item:hover { transform: scale(1.05) rotate(1.5deg); }
    .gallery-item span { display: none; }

    .gallery.is-focused .gallery-item {
      filter: saturate(.55) brightness(.55) blur(.3px);
      transform: scale(.9);
      opacity: .22;
      transition: transform .28s ease, filter .28s ease, opacity .28s ease;
    }

    .gallery.is-focused .gallery-item.is-focused-item {
      filter: saturate(1.05) brightness(1.05);
      transform: scale(1.28);
      opacity: 1;
      z-index: 2;
      box-shadow: 0 20px 45px rgba(0,0,0,.45), 0 0 0 1px rgba(255,214,165,.45);
    }

    .gallery.is-focused .gallery-item.is-focused-item:hover {
      transform: scale(1.28);
    }

    .btn-continue {
      font-family: var(--font-body);
      font-size: 1rem;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--rose);
      background: transparent;
      border: 1px solid var(--rose);
      border-radius: 50px;
      padding: .65rem 2rem;
      cursor: pointer;
      transition: background .25s, color .25s;
      margin-top: 1rem;
    }
    .btn-continue:hover { background: var(--rose); color: #fff; }

    #screen-letter {
      background: radial-gradient(ellipse at 60% 30%, #2a0810 0%, #0e0406 80%);
      z-index: 7;
      overflow-y: auto;
      align-items: flex-start;
      padding: 3rem 1.5rem 5rem;
    }
    #screen-letter.active { overflow-y: auto; }

    .letter-inner {
      position: relative; z-index: 2;
      max-width: 680px;
      width: 100%;
      margin: 0 auto;
    }

    .letter-header {
      text-align: center;
      margin-bottom: 3rem;
    }
    .letter-header h2 {
      font-family: var(--font-display);
      font-size: clamp(1.8rem, 5vw, 3rem);
      color: #fff;
      text-shadow: 0 0 40px var(--rose);
    }
    .letter-header p {
      font-style: italic;
      color: var(--blush);
      margin-top: .4rem;
    }

    .reasons-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 3rem;
    }
    .reason-card {
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,107,138,.2);
      border-radius: 16px;
      padding: 1.25rem 1rem;
      text-align: center;
      transition: transform .25s, background .25s;
    }
    .reason-card:hover {
      transform: translateY(-4px);
      background: rgba(255,107,138,.08);
    }
    .reason-card .icon { font-size: 2rem; display: block; margin-bottom: .5rem; }
    .reason-card p {
      color: var(--blush);
      font-size: .95rem;
      line-height: 1.5;
    }

    .timeline { position: relative; padding-left: 2rem; margin-bottom: 3rem; }
    .timeline::before {
      content: '';
      position: absolute; left: 0; top: 0; bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, transparent, var(--rose), transparent);
    }
    .timeline-item {
      position: relative;
      margin-bottom: 2rem;
      padding-left: 1rem;
    }
    .timeline-item::before {
      content: '❤';
      position: absolute;
      left: -1.55rem;
      top: .1rem;
      font-size: .85rem;
      color: var(--rose);
    }
    .timeline-date {
      font-family: var(--font-body);
      font-style: italic;
      font-weight: 600;
      color: var(--gold);
      font-size: 1rem;
      margin-bottom: .2rem;
    }
    .timeline-desc {
      color: rgba(255,255,255,.75);
      font-size: .95rem;
      line-height: 1.6;
    }

    .surprise-trigger {
      text-align: center;
      margin: 2rem 0 1rem;
    }
    .surprise-trigger button {
      background: none;
      border: 1px dashed rgba(255,107,138,.4);
      border-radius: 50px;
      color: rgba(255,255,255,.3);
      font-size: .85rem;
      padding: .5rem 1.5rem;
      cursor: pointer;
      transition: all .3s;
      font-family: var(--font-body);
    }
    .surprise-trigger button:hover { color: var(--rose); border-color: var(--rose); }

    .surprise-box {
      display: none;
      background: linear-gradient(135deg, rgba(201,24,74,.12), rgba(255,107,138,.06));
      border: 1px solid rgba(255,107,138,.3);
      border-radius: 20px;
      padding: 1.5rem;
      text-align: center;
      margin: 1rem 0;
      animation: fadeIn .6s forwards;
    }
    .surprise-box.shown { display: block; }
    .surprise-box p {
      font-family: var(--font-display);
      font-style: italic;
      color: #fff;
      font-size: clamp(1rem, 2.5vw, 1.3rem);
      line-height: 1.8;
    }

    .final-msg {
      text-align: center;
      padding: 2rem 1rem;
      border-top: 1px solid rgba(255,107,138,.15);
    }
    .final-msg h3 {
      font-family: var(--font-body);
      font-weight: 700;
      font-size: clamp(1.5rem, 4vw, 2.5rem);
      color: var(--rose);
      margin-bottom: .75rem;
    }
    .final-msg p {
      color: rgba(255,255,255,.65);
      font-style: italic;
      line-height: 1.8;
      font-size: .95rem;
    }

    #settings-wrap {
      position: fixed;
      top: 1.2rem;
      right: 1.2rem;
      z-index: 1000;
    }

    #settings-toggle {
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,107,138,.3);
      border-radius: 50%;
      width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem;
      cursor: pointer;
      transition: background .25s, transform .2s;
      color: var(--rose);
    }
    #settings-toggle:hover { background: rgba(255,107,138,.15); transform: scale(1.1); }

    #settings-panel {
      position: absolute;
      top: 3rem;
      right: 0;
      min-width: 180px;
      border-radius: 14px;
      background: rgba(16,6,10,.92);
      border: 1px solid rgba(255,107,138,.25);
      box-shadow: 0 8px 25px rgba(0,0,0,.35);
      padding: .6rem;
      display: grid;
      gap: .45rem;
      backdrop-filter: blur(8px);
    }

    .settings-hidden {
      display: none !important;
    }

    #music-toggle,
    #performance-toggle {
      width: 100%;
      border: 1px solid rgba(255,107,138,.3);
      border-radius: 999px;
      background: rgba(255,255,255,.07);
      color: var(--rose);
      cursor: pointer;
      transition: background .25s, transform .2s;
      font-family: var(--font-body);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1;
      padding: 0 .7rem;
    }

    #music-toggle {
      height: 34px;
      font-size: 1rem;
      display: none;
    }
    #music-toggle:hover { background: rgba(255,107,138,.15); transform: scale(1.02); }

    #performance-toggle {
      height: 34px;
      padding: 0 .7rem;
      display: flex; align-items: center; justify-content: center;
      font-size: .85rem;
    }
    #performance-toggle:hover { background: rgba(255,107,138,.15); transform: scale(1.02); }

    #music-hint {
      margin-top: .15rem;
      font-size: .82rem;
      color: rgba(255,255,255,.8);
      font-style: italic;
      text-align: left;
      max-width: 100%;
      min-height: 1.2em;
      padding: 0 .2rem;
    }

    .gallery-note {
      font-size: .78rem;
      color: rgba(255,255,255,.25);
      font-style: italic;
      margin-bottom: 1rem;
    }

    .story-heading {
      font-family: var(--font-display);
      font-weight: 700;
      font-style: italic;
      color: var(--gold);
      font-size: 1.7rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }

    .signature-line {
      color: var(--rose);
      font-family: var(--font-accent);
      font-size: 1.5rem;
    }

    .btn-start:focus-visible,
    .btn-back:focus-visible,
    .btn-yes:focus-visible,
    .btn-no:focus-visible,
    .btn-continue:focus-visible,
    #settings-toggle:focus-visible,
    #music-toggle:focus-visible,
    #performance-toggle:focus-visible,
    #surprise-btn:focus-visible {
      outline: 2px solid var(--gold);
      outline-offset: 3px;
      box-shadow: 0 0 0 4px rgba(255,214,165,.25);
    }

    .screen { transition: opacity .9s ease; }

    .ripple {
      position: absolute;
      border-radius: 50%;
      background: rgba(255,255,255,.3);
      transform: scale(0);
      animation: rippleAnim .6s linear;
      pointer-events: none;
    }
    @keyframes rippleAnim {
      to { transform: scale(4); opacity: 0; }
    }

    @keyframes shake {
      0%,100% { transform: translateX(0); }
      20%      { transform: translateX(-10px); }
      40%      { transform: translateX(10px); }
      60%      { transform: translateX(-8px); }
      80%      { transform: translateX(8px); }
    }
    .shake { animation: shake .4s ease; }

    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 3px; }

    @media (max-width: 480px) {
      .gallery { grid-template-columns: repeat(2, 1fr); }
      .btn-row { gap: 1rem; }
      #screen-letter { padding: 2rem 1rem 4rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
      }

      #cursor,
      #particleCanvas,
      .landing-bg-glow,
      .question-emoji {
        display: none !important;
      }
    }