    :root {
      --blush: #fff5f8;
      --rose: #d81b60;
      --petal: #ff7eb0;
      --berry: #5a1236;
      --ink-soft: #8e3860;
      --gold: #f4c242;
      --gold-light: #ffea9e;
      --mint: #2fcaa3;
      --white: #ffffff;
      --display: "Pacifico", "Pattaya", cursive;
      --body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
      color-scheme: light;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background-color: var(--blush);
      background-image:
        radial-gradient(800px 600px at 90% 0%, rgba(255, 234, 158, 0.7), transparent 70%),
        radial-gradient(700px 700px at 0% 50%, rgba(255, 126, 176, 0.3), transparent 70%),
        radial-gradient(800px 600px at 100% 100%, rgba(244, 194, 66, 0.3), transparent 70%);
      background-attachment: fixed;
      color: var(--berry);
      font-family: var(--body);
      font-size: 16px;
      line-height: 1.65;
      padding-block: 28px 64px;
      padding-left: max(20px, env(safe-area-inset-left, 0px));
      padding-right: max(20px, env(safe-area-inset-right, 0px));
      overflow-x: hidden;
      cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ff7eb0" stroke="%23d81b60" stroke-width="2"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>') 10 10, auto;
    }

    /* Hiệu ứng hạt lấp lánh theo chuột */
    .sparkle-trail {
      position: absolute;
      pointer-events: none;
      font-size: 1.2rem;
      animation: floatUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
      z-index: 9999;
      filter: drop-shadow(0 0 4px rgba(255, 126, 176, 0.8));
    }
    @keyframes floatUp {
      0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 1; }
      100% { transform: translateY(-50px) scale(1.5) rotate(45deg); opacity: 0; }
    }

    .wrap { width: min(100%, 1400px); max-width: none; margin: 0 auto; display: flex; flex-direction: column; gap: 85px; position: relative; z-index: 10; }

    h1, h2, h3 { margin: 0; text-wrap: balance; }
    p { margin: 0; }

    .eyebrow {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--rose);
      opacity: 0.9;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    html { scroll-behavior: smooth; }
    #loi-chuc { scroll-margin-top: 24px; }

    /* Hero */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, max-content) minmax(0, 400px);
      justify-content: center;
      align-items: center;
      gap: clamp(24px, 4vw, 56px);
      padding-top: 24px;
    }
    .hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
    .hero h1 {
      font-family: var(--display);
      font-weight: 400;
      line-height: 1.2;
      font-size: clamp(2.6rem, 7vw, 4.2rem);
      color: var(--berry);
    }
    .hero h1 .date {
      display: block;
      font-size: clamp(4.5rem, 16vw, 9.5rem);
      line-height: 1.1;
      color: transparent;
      background: linear-gradient(135deg, var(--rose), #ff4a85, #ff8fb8);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      background-clip: text;
      animation: gradientShift 3s ease infinite;
      text-shadow: 4px 4px 15px rgba(216, 27, 96, 0.25);
      margin-top: 5px;
    }
    @keyframes gradientShift { 
      0% { background-position: 0% 50%; } 
      50% { background-position: 100% 50%; } 
      100% { background-position: 0% 50%; } 
    }
    
    .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38ch; font-weight: 500; }
    .actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 10px; }

    .btn {
      font: inherit;
      font-weight: 700;
      font-size: 1.1rem;
      border: 0;
      border-radius: 999px;
      padding: 15px 30px;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      position: relative;
      overflow: hidden;
    }
    
    .btn::after {
      content: '';
      position: absolute;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
      transform: rotate(45deg);
      transition: all 0.3s;
      opacity: 0;
    }
    .btn:hover::after { animation: shine 1.5s ease-out infinite; opacity: 1; }
    @keyframes shine { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }

    .btn-main { 
      background: linear-gradient(135deg, var(--rose), #ff4a85); 
      color: #fff; 
      box-shadow: 0 8px 25px rgba(216, 27, 96, 0.4); 
      animation: heartbeat 2s infinite;
    }
    @keyframes heartbeat {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }
    .btn-main:hover { box-shadow: 0 12px 30px rgba(216, 27, 96, 0.5); animation: none; transform: translateY(-3px); }
    
    .btn:active { transform: translateY(0) scale(.97); }
    .btn:focus-visible, .chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

    .btn-sun { 
      background: rgba(255, 255, 255, 0.9); 
      color: var(--berry); 
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      border: 2px solid rgba(244, 194, 66, 0.5);
    }
    .btn-sun:hover { box-shadow: 0 12px 25px rgba(244, 194, 66, 0.2); transform: translateY(-3px); border-color: var(--gold); }

    .bloom-box { display: flex; justify-content: center; animation: float 5s ease-in-out infinite; cursor: pointer; transition: translate .25s ease-out, scale .25s ease; -webkit-tap-highlight-color: transparent; }
    .bloom-box:hover { scale: 1.06; }
    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-25px) rotate(3deg); }
    }
    
    .bloom { 
      width: min(100%, 400px); 
      height: auto; 
      animation: spin 35s linear infinite; 
      filter: drop-shadow(0 25px 35px rgba(216, 27, 96, 0.2));
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Cards - Glassmorphism Cute */
    .section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; text-align: center; align-items: center;}
    .section-head h2 {
      font-family: var(--display);
      font-weight: 400;
      font-size: clamp(2.2rem, 6vw, 3rem);
      line-height: 1.3;
      color: var(--rose);
      position: relative;
      display: inline-block;
    }
    .section-head h2::after {
      content: '✨';
      position: absolute;
      top: -10px; right: -30px;
      font-size: 1.5rem;
      animation: blink 1.5s infinite alternate;
    }
    @keyframes blink { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }
    
    .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; }
    
    .card { 
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 2px solid rgba(255, 255, 255, 0.9);
      border-radius: 36px; 
      padding: 40px 32px; 
      display: flex; 
      flex-direction: column; 
      gap: 18px; 
      box-shadow: 0 15px 35px rgba(216, 27, 96, 0.08);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
    }
    .card::before {
      content: '🌸';
      position: absolute;
      top: -15px; right: -15px;
      font-size: 4rem;
      opacity: 0.1;
      transform: rotate(15deg);
      transition: all 0.4s;
    }
    .card:hover {
      transform: translateY(-12px) scale(1.02);
      box-shadow: 0 25px 50px rgba(216, 27, 96, 0.15);
      background: rgba(255, 255, 255, 0.95);
      border-color: var(--petal);
    }
    .card:hover::before { transform: rotate(45deg) scale(1.2); opacity: 0.2; }
    
    .card h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.3; color: var(--rose); }
    .card p { color: var(--berry); font-size: 1.1rem; line-height: 1.7; }
    
    .chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
    .chip {
      background: linear-gradient(135deg, #fff, #ffe3ef);
      color: var(--rose);
      font-weight: 700;
      font-size: 0.9rem;
      border-radius: 999px;
      padding: 8px 18px;
      box-shadow: 0 4px 12px rgba(216, 27, 96, 0.08);
      border: 1px solid rgba(255, 126, 176, 0.3);
      transition: transform 0.2s;
    }
    .chip { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .chip:hover { transform: scale(1.1) rotate(-2deg); }

    /* Fix lỗi mất nền quote-card khi di chuột vào */
    .quote-card {
      grid-column: 1 / -1;
      text-align: center;
      background: linear-gradient(135deg, var(--rose), #ff4a85);
      color: white;
      border: none;
    }
    .quote-card:hover {
      background: linear-gradient(135deg, var(--rose), #ff4a85);
      border: none;
    }
    .quote-card h3 { color: white; font-size: 2.2rem; }
    .quote-card p { color: rgba(255,255,255,0.95); font-size: 1.25rem; font-weight: 500; font-style: italic; }
    .quote-card .chip { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(5px); }

    /* Footer */
    .foot {
      background: linear-gradient(135deg, var(--berry), #3a0a20);
      color: #ffe3ef;
      border-radius: 36px;
      padding: 45px 30px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: center;
      text-align: center;
      box-shadow: 0 20px 50px rgba(90, 18, 54, 0.25);
      position: relative;
      overflow: hidden;
    }
    .foot::after {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 10px;
      background: linear-gradient(90deg, var(--mint), var(--gold), var(--petal), var(--rose));
    }
    .foot .eyebrow { color: var(--gold); }
    .foot p { max-width: 65ch; opacity: 0.9; font-size: 1.05rem; }
    .foot .love { font-family: var(--display); font-size: 2.2rem; color: #fff; padding-top: 15px; opacity: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

    /* Hiện dần khi cuộn */
    .reveal:not(.in) { opacity: 0; translate: 0 30px; }
    .reveal.in { animation: reveal .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s) backwards; }
    @keyframes reveal { from { opacity: 0; translate: 0 30px; } }

    /* Lời chúc ngẫu nhiên */
    .wish-box { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 50px; text-align: center; }
    .wish-text {
      width: min(100%, 600px); min-height: 110px; padding: 24px 28px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,.85); border: 2px dashed rgba(244,194,66,.6); border-radius: 28px;
      box-shadow: 0 10px 30px rgba(216,27,96,.12);
      font-family: var(--display); font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.4; color: var(--rose);
    }
    .wish-text.pop { animation: wishPop .5s cubic-bezier(.2,1.4,.4,1); }
    @keyframes wishPop { from { opacity: 0; transform: scale(.85) translateY(10px); } }

    /* Chia sẻ */
    .share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 20px; }
    .share-row .btn { padding: 12px 24px; font-size: 1rem; }
    .toast {
      position: fixed; left: 50%; bottom: 28px; z-index: 30;
      translate: -50% 20px; opacity: 0; pointer-events: none;
      background: var(--berry); color: #fff; padding: 12px 22px; border-radius: 999px;
      font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25);
      transition: opacity .3s, translate .3s;
    }
    .toast.show { opacity: 1; translate: -50% 0; }

    #petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

    @media (max-width: 760px) {
      .hero { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 40px; }
      .hero-text { align-items: center; }
      .lead { text-align: center; }
      .bloom-box { order: -1; margin-bottom: 10px; }
      .bloom { width: 260px; }
      .wrap { gap: 65px; }
      .cards { grid-template-columns: minmax(0, 1fr); }
      .actions { justify-content: center; }
      .card { padding: 30px 24px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .reveal:not(.in) { opacity: 1; translate: none; }
      .reveal.in, .wish-text.pop { animation: none; }
      .bloom-box, .bloom-box:hover { scale: none; transition: none; }
      .bloom, .bloom-box, .btn-main, .sparkle-trail { animation: none; }
      .btn, .card { transition: none; }
    }
  

/* Bảng lời nhắn */
#loi-nhan { scroll-margin-top: 24px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 100%; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.wish {
  position: relative; overflow: hidden; cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid #fff; border-radius: 28px;
  padding: 28px 26px 32px;
  box-shadow: 0 12px 30px rgba(216, 27, 96, 0.1);
  transition: translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.wish::before { content: '🌸'; position: absolute; top: -10px; right: -8px; font-size: 3.2rem; opacity: .12; rotate: 15deg; transition: rotate .5s, opacity .3s; }
.wish:hover { translate: 0 -6px; box-shadow: 0 20px 40px rgba(216, 27, 96, 0.18); border-color: var(--petal); }
.wish:hover::before { rotate: 60deg; opacity: .22; }
.wish:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wish > * { position: relative; }
.wish .to { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.wish h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.3; color: var(--rose); margin: 2px 0 10px; }
.wish .msg { white-space: pre-line; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.7; }
.wish .from { margin-top: 14px; padding-right: 2.4rem; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.wish .from::before { content: '— '; }
.wish time { display: block; font-size: .78rem; color: #b58fa5; margin-top: 2px; }
.wish .fxtag { position: absolute; right: 18px; bottom: 14px; font-size: 1.5rem; transition: scale .3s cubic-bezier(.2,1.4,.4,1); }
.wish:hover .fxtag { scale: 1.35; }
.state { text-align: center; color: var(--ink-soft); margin-top: 28px; font-weight: 500; }
.more { text-align: center; margin-top: 28px; }
.more[hidden], .btn[hidden], .state:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .wish, .wish::before, .wish .fxtag { transition: none; } }
