    :root {
      --bg: #fff7fb;
      --bg-soft: #ffeef9;
      --accent: #ec4899;
      --accent-soft: #fed7e2;
      --accent-dark: #be185d;
      --text: #1f2933;
      --muted: #6b7280;
      --card: #ffffff;
      --radius-xl: 18px;
      --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.15);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #ffe4f5 0, #fff7fb 45%, #ffffff 100%);
      color: var(--text);
    }

    /* GIFT GATE (HALAMAN AWAL) */
    #gift-gate {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 32px 16px;
      background: radial-gradient(circle at top, #f9a8d4 0, #fff7fb 40%, #ffffff 100%);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    #gift-gate.fade-out {
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
    }

    .gate-inner {
      max-width: 420px;
      width: 100%;
      padding: 26px 20px 24px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 26px 60px rgba(190, 24, 93, 0.38);
      border: 1px solid rgba(248, 187, 208, 0.9);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .gate-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 12px;
      background: rgba(252, 231, 243, 0.95);
      color: var(--accent-dark);
      border: 1px solid rgba(244, 114, 182, 0.4);
      backdrop-filter: blur(6px);
      margin-bottom: 16px;
    }

    .gate-title {
      font-size: 20px;
      margin: 0 0 6px;
    }

    .gate-subtitle {
      font-size: 13px;
      color: var(--muted);
      margin: 0 0 18px;
    }

    .gift-icon-wrap {
      width: 110px;
      height: 110px;
      margin: 0 auto 18px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 0, #ffe4e6, #fb7185);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 20px 45px rgba(248, 113, 113, 0.7);
      position: relative;
      cursor: pointer;
    }

    .gift-icon-wrap::after {
      position: absolute;
      bottom: -22px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 11px;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.9);
      padding: 3px 9px;
      border-radius: 999px;
      border: 1px dashed rgba(248, 187, 208, 0.9);
    }

    .gift-icon {
      font-size: 52px;
      animation: bounceGift 1.4s infinite;
    }

    @keyframes bounceGift {
      0%, 100% { transform: translateY(0); }
      30% { transform: translateY(-7px); }
      60% { transform: translateY(2px); }
    }

    .gift-icon-wrap.open {
      animation: giftOpen 0.5s forwards;
    }

    @keyframes giftOpen {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.1); opacity: 1; }
      100% { transform: scale(0); opacity: 0; }
    }

    .gate-note {
      margin-top: 22px;
      font-size: 12px;
      color: var(--muted);
    }

    .hidden-main {
      display: none;
    }

    /* HALAMAN UTAMA */
    .page {
      max-width: 960px;
      margin: 0 auto;
      padding: 20px 16px 64px;
    }

    header {
      text-align: center;
      padding: 40px 16px 32px;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 12px;
      background: rgba(252, 231, 243, 0.95);
      color: var(--accent-dark);
      border: 1px solid rgba(244, 114, 182, 0.4);
      backdrop-filter: blur(6px);
    }

    .badge-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.22);
    }

    h1 {
      margin: 18px 0 10px;
      font-size: clamp(28px, 6vw, 36px);
      letter-spacing: 0.03em;
    }

    .subtitle {
      margin: 0 auto;
      max-width: 520px;
      font-size: 14px;
      color: var(--muted);
    }

    .heart {
      display: inline-block;
      animation: pulse 1.5s infinite;
      color: var(--accent);
    }

    @keyframes pulse {
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.11); opacity: 0.8; }
      100% { transform: scale(1); opacity: 1; }
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px 22px;
      margin-top: 22px;
      border-radius: 999px;
      border: none;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      background: linear-gradient(135deg, #ec4899, #f97316);
      color: #fff;
      box-shadow: 0 14px 30px rgba(236, 72, 153, 0.45);
      transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    }

    .btn span.chevron {
      font-size: 16px;
      transform: translateY(1px);
    }

    .btn:hover {
      transform: translateY(-1px);
      filter: brightness(1.05);
      box-shadow: 0 18px 38px rgba(236, 72, 153, 0.5);
    }

    .btn:active {
      transform: translateY(1px) scale(0.98);
      box-shadow: 0 9px 18px rgba(236, 72, 153, 0.45);
    }

    .btn-outline {
      background: transparent;
      color: var(--accent-dark);
      border: 1px solid rgba(236, 72, 153, 0.4);
      box-shadow: none;
      margin-top: 0;
    }

    .btn-outline:hover {
      background: rgba(254, 202, 232, 0.7);
      box-shadow: none;
    }

    main section {
      margin-top: 28px;
    }

    .card {
      background: rgba(255, 255, 255, 0.95);
      border-radius: var(--radius-xl);
      padding: 22px 18px;
      box-shadow: var(--shadow-soft);
      border: 1px solid rgba(248, 187, 208, 0.6);
    }

    @media (min-width: 768px) {
      .card {
        padding: 26px 26px;
      }
    }

    .section-title {
      font-size: 18px;
      font-weight: 700;
      margin: 0 0 6px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-subtitle {
      margin: 0 0 18px;
      font-size: 13px;
      color: var(--muted);
    }

    .section-icon {
      font-size: 18px;
    }

    .text-main {
      font-size: 14px;
      line-height: 1.7;
      white-space: pre-line;
    }

    .hidden {
      display: none;
    }

    /* Puzzle */
    .puzzle-wrapper {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .puzzle-board {
      width: 300px;
      height: 300px;
      margin: 0 auto;
      border-radius: 22px;
      overflow: hidden;
      border: 2px solid rgba(248, 187, 208, 0.9);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      box-shadow: 0 18px 32px rgba(15, 23, 42, 0.25);
      background: #f9a8d4;
    }

    .puzzle-tile {
      border: 1px solid rgba(248, 250, 252, 0.7);
      cursor: pointer;
      transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
      box-sizing: border-box;
    }

    .puzzle-tile:hover {
      transform: scale(1.03);
      border-color: rgba(239, 68, 68, 0.7);
      box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.4);
      z-index: 2;
    }

    .puzzle-tile.selected {
      border-color: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5);
    }

    .puzzle-instruction {
      font-size: 13px;
      text-align: center;
      color: var(--muted);
    }

    .puzzle-success {
      margin-top: 12px;
      font-size: 13px;
      text-align: center;
      padding: 10px 12px;
      border-radius: 999px;
      background: rgba(187, 247, 208, 0.9);
      color: #166534;
      display: none;
    }

    .puzzle-success.show {
      display: inline-block;
    }

    /* Gallery */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    @media (min-width: 768px) {
      .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .gallery-item {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 4 / 5;
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
      background: linear-gradient(135deg, #f472b6, #fb7185);
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .gallery-caption {
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 8px;
      padding: 6px 8px;
      border-radius: 12px;
      font-size: 11px;
      color: #f9fafb;
      background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    }

    /* Quiz */
    .quiz-grid {
      display: grid;
      gap: 12px;
      margin-bottom: 12px;
    }

    .field-label {
      font-size: 12px;
      margin-bottom: 2px;
      color: var(--muted);
    }

    .input {
      width: 100%;
      padding: 9px 11px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.8);
      font-size: 13px;
      outline: none;
      transition: border-color 0.12s ease, box-shadow 0.12s ease;
      background: rgba(255, 255, 255, 0.9);
    }

    .input:focus {
      border-color: rgba(236, 72, 153, 0.9);
      box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.4);
    }

    .quiz-result {
      font-size: 13px;
      color: var(--muted);
      margin-top: 8px;
    }

    .quiz-result.success {
      color: #16a34a;
      font-weight: 600;
    }

    /* Gifts */
    .dimmed {
      position: relative;
      opacity: 0.45;
      pointer-events: none;
    }
    /* Pattern Lock */
    .pattern-wrap {
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
    }
    
    .pattern-grid {
      display: grid;
      grid-template-columns: repeat(3, 70px);
      grid-template-rows: repeat(3, 70px);
      gap: 12px;
      padding: 12px;
      border-radius: 20px;
      background: radial-gradient(circle at top, #fee2e2, #fecaca);
      box-shadow: 0 14px 30px rgba(248, 113, 113, 0.35);
    }
    
    .pattern-dot {
      width: 64px;
      height: 64px;
      border-radius: 999px;
      border: 2px solid rgba(248, 250, 252, 0.9);
      background: rgba(254, 242, 242, 0.95);
      box-shadow: 0 6px 14px rgba(248, 113, 113, 0.4);
      position: relative;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.12s ease, box-shadow 0.12s ease,
                  background 0.12s ease, border-color 0.12s ease;
    }
    
    .pattern-dot::after {
      content: "";
      width: 14px;
      height: 14px;
      border-radius: 999px;
      background: rgba(248, 113, 113, 0.25);
      border: 2px solid rgba(248, 113, 113, 0.7);
    }
    
    .pattern-dot:hover {
      transform: translateY(-1px) scale(1.03);
      box-shadow: 0 10px 20px rgba(248, 113, 113, 0.6);
    }
    
    .pattern-dot.active {
      background: linear-gradient(135deg, #fb7185, #ec4899);
      border-color: rgba(248, 250, 252, 0.9);
    }
    
    .pattern-dot.active::after {
      background: #fee2e2;
      border-color: #fef2f2;
    }
    
    /* Tombol di area pola */
    .pattern-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      margin-top: 8px;
    }
    
    /* Override .btn global khusus di section ini */
    .pattern-actions .btn {
      margin-top: 0;        /* hilangin margin-top 22px dari .btn */
      width: 170px;         /* dua-duanya sama lebar */
    }
    
    /* Biar di HP tombolnya enak dilihat */
    @media (max-width: 480px) {
      .pattern-grid {
        grid-template-columns: repeat(3, 58px);
        grid-template-rows: repeat(3, 58px);
      }
    
      .pattern-dot {
        width: 52px;
        height: 52px;
      }
    
      .pattern-actions .btn {
        width: 100%;
        max-width: 220px;
      }
    }
    
    .pattern-info {
      font-size: 12px;
      color: var(--muted);
      text-align: center;
      margin-top: 4px;
    }
    
    .pattern-info.success {
      color: #16a34a;
      font-weight: 600;
    }
    
    .pattern-info.error {
      color: #b91c1c;
    }


    .gifts-grid {
      display: grid;
      gap: 14px;
    }

    @media (min-width: 768px) {
      .gifts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .gift-card {
      border-radius: 16px;
      padding: 14px 14px 16px;
      background: linear-gradient(135deg, #fdf2f8, #fee2e2);
      border: 1px solid rgba(244, 114, 182, 0.55);
      box-shadow: 0 12px 32px rgba(244, 114, 182, 0.35);
    }

    .gift-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .gift-body {
      font-size: 13px;
      color: #374151;
      line-height: 1.6;
    }

    .gift-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      border-radius: 999px;
      background: rgba(251, 113, 133, 0.1);
      color: #b91c1c;
      font-size: 11px;
      margin-top: 6px;
    }

    .link {
      color: var(--accent-dark);
      text-decoration: none;
      font-weight: 600;
    }

    .link:hover {
      text-decoration: underline;
    }

    /* Timeline */
    .timeline {
      position: relative;
      padding-left: 16px;
      margin-top: 6px;
    }

    .timeline::before {
      content: "";
      position: absolute;
      left: 7px;
      top: 4px;
      bottom: 4px;
      width: 2px;
      background: linear-gradient(to bottom, #f97316, #ec4899);
      border-radius: 999px;
    }

    .timeline-item {
      position: relative;
      margin-bottom: 16px;
      padding-left: 12px;
    }

    .timeline-bullet {
      position: absolute;
      left: -2px;
      top: 4px;
      width: 12px;
      height: 12px;
      border-radius: 999px;
      border: 2px solid #fff;
      background: #fb7185;
      box-shadow: 0 0 0 3px rgba(248, 187, 208, 0.7);
    }

    .timeline-title {
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 2px;
    }

    .timeline-meta {
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .timeline-text {
      font-size: 13px;
      color: #374151;
    }

    /* Checklist & future plans */
    .checklist {
      margin-top: 6px;
      display: grid;
      gap: 6px;
    }
    .todo-input-row {
      margin-top: 10px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    
    .todo-input-row .input {
      flex: 1;
      min-width: 0;
    }
    
    .check-item {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px;
      font-size: 13px;
      cursor: pointer;
    }
    
    .check-item-left {
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }
    
    .todo-delete-btn {
      border: none;
      background: transparent;
      font-size: 14px;
      line-height: 1;
      padding: 0 4px;
      cursor: pointer;
      color: rgba(148, 163, 184, 0.9);
    }
    
    .todo-delete-btn:hover {
      color: #ef4444;
      transform: scale(1.1);
    }

    .check-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      cursor: pointer;
    }

    .check-box {
      width: 16px;
      height: 16px;
      border-radius: 5px;
      border: 1.5px solid rgba(148, 163, 184, 0.8);
      margin-top: 2px;
      flex-shrink: 0;
      transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .check-box.checked {
      background: linear-gradient(135deg, #22c55e, #16a34a);
      border-color: transparent;
      box-shadow: 0 0 0 2px rgba(187, 247, 208, 0.9);
    }

    .check-box.small {
      width: 14px;
      height: 14px;
      margin-top: 3px;
    }

    .check-label {
      color: #374151;
    }

    .two-cols {
      display: grid;
      gap: 14px;
    }

    @media (min-width: 640px) {
      .two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .done-wrapper {
      margin-top: 12px;
      border-top: 1px dashed rgba(148, 163, 184, 0.6);
      padding-top: 8px;
    }

    .done-empty {
      font-size: 12px;
      color: var(--muted);
    }

    /* Favorites (editable) */
    .fav-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 26px 6px 10px;
      border-radius: 999px;
      background: rgba(254, 226, 226, 0.9);
      font-size: 12px;
      margin: 3px;
      color: #b91c1c;
      position: relative;
    }

    .fav-pill-remove {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      border: none;
      background: transparent;
      font-size: 13px;
      line-height: 1;
      cursor: pointer;
      color: rgba(127, 29, 29, 0.85);
      padding: 0;
    }

    .fav-pill-remove:hover {
      transform: translateY(-50%) scale(1.1);
    }

    .fav-form {
      margin-top: 10px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .fav-form .input {
      flex: 1;
      min-width: 0;
    }

    .fav-add-btn {
      padding-inline: 14px;
      white-space: nowrap;
    }

    .fav-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 4px;
    }

    /* Secret */
    .secret-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    @media (min-width: 520px) {
      .secret-row {
        flex-direction: row;
      }
    }

    .secret-message {
      margin-top: 12px;
      font-size: 14px;
      line-height: 1.7;
      background: linear-gradient(135deg, #fef9c3, #fee2e2);
      border-radius: 16px;
      padding: 14px 14px 14px;
      border: 1px dashed rgba(234, 179, 8, 0.8);
      display: none;
    }

    .secret-message.show {
      display: block;
    }

    .secret-info {
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
    }

    /* Tabungan */
    .saving-item {
      border-radius: 14px;
      padding: 10px 12px;
      margin-bottom: 8px;
      background: rgba(255, 241, 242, 0.95);
      border: 1px solid rgba(252, 165, 165, 0.8);
      font-size: 13px;
    }

    .saving-header {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 4px;
      font-weight: 600;
    }

    .saving-purpose {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .saving-progress-bar {
      height: 6px;
      border-radius: 999px;
      background: rgba(248, 250, 252, 0.9);
      overflow: hidden;
      margin-bottom: 6px;
    }

    .saving-progress-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #22c55e, #16a34a);
      width: 0%;
    }

    .saving-meta {
      font-size: 11px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    .saving-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .saving-btn {
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.8);
      background: #fff;
      font-size: 11px;
      padding: 3px 9px;
      cursor: pointer;
    }

    .saving-btn.danger {
      border-color: rgba(248, 113, 113, 0.8);
      color: #b91c1c;
    }

    /* Closing */
    .closing-main {
      font-size: 14px;
      line-height: 1.7;
      text-align: center;
    }

    .signature {
      margin-top: 10px;
      font-size: 13px;
      color: var(--muted);
    }

    .footer-note {
      margin-top: 10px;
      font-size: 11px;
      color: #9ca3af;
      text-align: center;
    }

    .center {
      text-align: center;
    }

    /* Music */
    .music-wrap {
      margin-top: 16px;
      display: flex;
      justify-content: center;
    }