/* ========================================================
   RESPONSIVE BREAKPOINTS (MOBILE TO DESKTOP)
   ======================================================== */

@media (max-width: 480px) {
  .app-container {
    padding-inline: 14px;
  }

  .card-elegant {
    padding: 28px 18px 24px;
    border-radius: 18px;
  }

  .section-title {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }

  .section-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .envelope-box {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .envelope-card {
    padding: 10px;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    border-radius: 14px;
  }

  .envelope-inner-frame {
    padding: 36px 14px 28px;
    border-radius: 8px;
  }

  .envelope-corner-flower {
    width: 150px;
    top: -24px;
    left: -20px;
  }

  .envelope-name-line {
    font-size: 2.1rem;
  }

  .card-ceremony {
    padding: 30px 16px 44px;
  }

  .card-title-main {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }

  .card-subtitle-small {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
  .family-profiles-section {
    padding: 6px 0 20px;
    margin-bottom: 12px;
  }

  .family-profiles-container {
    gap: 20px;
  }

  .family-profile-row {
    gap: 10px;
  }

  .family-photo-wrapper {
    max-width: 100%;
    aspect-ratio: 3 / 4.8;
    border-radius: 10px;
    border-width: 2.5px;
  }

  .family-side-kicker {
    font-size: 0.92rem;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
  }

  .family-parents-group .parent-name {
    font-size: 0.7rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
  }

  .family-address-text {
    font-size: 0.72rem;
    margin: 3px auto 6px;
    line-height: 1.38;
  }

  .family-role-label {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .family-person-script {
    font-size: clamp(2rem, 7.8vw, 2.75rem);
  }


  .family-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .family-names {
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .family-addr {
    font-size: 0.72rem;
  }

  .family-divider-vertical {
    height: 56px;
  }

  .announcement-text {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }

  .announcement-text span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .person-fullname {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .person-role-tag {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .couple-amp-symbol {
    font-size: 1.7rem;
    margin: 2px 0;
  }

  .ceremony-lead, .ceremony-time-lead {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .ceremony-venue {
    font-size: 1.08rem;
    letter-spacing: 0.14em;
    margin: 2px 0 8px;
  }

  .ceremony-time-large {
    font-size: 1.95rem;
    margin: 1px 0 4px;
  }

  .ceremony-date-box {
    gap: 12px;
  }

  .ceremony-date-box .date-col-center {
    padding-inline: 14px;
  }

  .ceremony-date-box .day-num {
    font-size: 2.1rem;
  }

  .ceremony-date-box .year-num {
    font-size: 1.05rem;
    margin-top: 2px;
  }

  .ceremony-date-box .date-col {
    font-size: 0.75rem;
  }

  .lunar-date-text {
    font-size: 0.82rem;
    margin-top: 6px;
  }

  .reception-highlight-hour {
    font-size: 1.95rem;
  }

  .sub-time-box .sub-hour {
    font-size: 1.2rem;
  }

  .venue-name {
    font-size: 1.12rem;
  }

  .venue-address {
    font-size: 0.8rem;
    margin-bottom: 14px;
  }

  .countdown-title {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
  }

  .card-corner-flower-tl {
    width: 110px;
    top: -30px;
    left: -28px;
  }

  .card-corner-flower-br {
    width: 105px;
    bottom: -32px;
    right: -28px;
  }

  .gallery-grid-2x2 {
    gap: 10px;
  }

  .gallery-quote {
    font-size: 0.82rem;
    line-height: 1.55;
    padding: 0 4px;
  }

  .gallery-signature {
    font-size: 2.2rem;
  }

  .date-triptych {
    gap: 10px;
  }

  .date-triptych .day-num {
    font-size: 2.5rem;
  }

  .reception-flower-tl {
    width: 125px;
    top: -28px;
    left: -28px;
  }

  .reception-flower-ml {
    width: 95px;
    left: -22px;
  }

  .reception-flower-br {
    width: 130px;
    bottom: -25px;
    right: -25px;
  }

  .reception-script-bl {
    font-size: 1.25rem;
    bottom: 100px;
    left: 4px;
  }

  .reception-schedule-icons {
    gap: 16px;
  }

  .countdown-pills {
    gap: 8px;
  }

  .count-pill {
    padding: 8px 6px;
  }

  .count-pill .num {
    font-size: 1.35rem;
  }

  /* Dresscode & Timeline Mobile Adjustments */
  .dc-flower-tl {
    width: 105px;
    top: -20px;
    left: -22px;
  }

  .dc-flower-br {
    width: 120px;
    bottom: -20px;
    right: -25px;
  }

  .dc-script-ml {
    font-size: 1.3rem;
    top: 48%;
    left: 8px;
  }

  .dresscode-main-content {
    gap: 10px;
    margin-top: 18px;
  }

  .dresscode-swatches-horizontal {
    gap: 8px;
  }

  .swatch-col-item {
    gap: 6px;
  }

  .swatch-col-item .swatch-circle {
    width: 36px;
    height: 36px;
  }

  .swatch-col-item .swatch-name {
    font-size: 0.72rem;
  }

  .timeline-v-list {
    --tl-row-gap: 18px;
    padding: 0;
    width: fit-content;
    max-width: min(340px, 94vw);
    margin: 20px auto 0;
  }

  #dresscode-timeline-section {
    padding: 20px 8px 8px;
  }

  /* Guestbook Mobile Adjustments */
  .guestbook-unified-section {
    padding: 12px 8px 12px;
  }

  .gb-flower-tr {
    width: 125px;
    top: -20px;
    right: -20px;
  }



  .gb-script-tl {
    font-size: 1.2rem;
    top: 8px;
    left: 8px;
  }

  .gb-script-mr {
    font-size: 1.15rem;
    top: 190px;
    right: 8px;
  }

  .guestbook-container-wrap {
    max-width: 100%;
    padding: 0 4px;
    gap: 26px;
  }

  .card-guestbook-form-box {
    padding: 18px 14px 16px;
    border-radius: 14px;
    max-width: 345px;
    width: 100%;
    margin: 0 auto;
  }

  .wishes-list {
    max-width: 100%;
    width: 100%;
  }

  .gb-card-title {
    font-size: 1.1rem;
  }

  .gb-card-subtitle {
    font-size: 0.62rem;
    margin-bottom: 10px;
  }

  .gb-input, .gb-textarea {
    padding: 7px 11px;
    font-size: 16px; /* >=16px: Safari iOS không auto-zoom khi focus */
    border-radius: 7px;
  }

  .gb-textarea {
    min-height: 58px;
  }

  .btn-gb-submit {
    padding: 6px 16px;
    font-size: 0.72rem;
  }

  .wish-suggest-box {
    width: 95vw;
    max-height: 86vh;
    border-radius: 14px;
  }

  .wish-suggest-header {
    padding: 13px 15px 11px;
  }

  .wish-suggest-title {
    font-size: 1.05rem;
  }

  .wish-suggest-subtitle {
    font-size: 0.73rem;
  }

  .wish-suggest-list {
    padding: 10px 12px;
    gap: 8px;
    max-height: 58vh;
  }

  .wish-suggest-item {
    padding: 10px 12px;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .gift-section {
    padding: 10px 8px 12px;
    margin-bottom: 10px !important;
  }

  .gift-heading-main {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    margin: 8px 0 6px;
  }



  .gift-box-trigger {
    max-width: 220px;
    padding: 6px 4px;
  }

  .gift-box-visual {
    width: min(190px, 54vw);
    max-width: 205px;
  }

  .gift-script-left-top {
    font-size: 0.82rem;
    left: -2px;
    top: 18%;
  }

  .gift-script-left-bot {
    font-size: 0.78rem;
    left: 0px;
    bottom: 20%;
  }

  .gift-script-right-top {
    font-size: 0.82rem;
    right: -2px;
    top: 18%;
  }

  .sparkle-left-top {
    top: 26%;
    left: 14px;
    font-size: 0.75rem;
  }

  .sparkle-right-mid {
    top: 44%;
    right: 14px;
    font-size: 0.75rem;
  }

  .petal-left-mid {
    top: 48%;
    left: 12px;
  }

  .petal-right-bot {
    bottom: 22%;
    right: 12px;
  }

  .gift-open-prompt {
    font-size: 0.92rem;
    margin-top: 8px;
  }

  .gift-thankyou-text {
    font-size: 0.88rem;
    padding-inline: 12px;
  }



  .footer-floral-wreath {
    width: min(280px, 78vw);
    margin-bottom: 6px;
  }

  .footer-brand {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .gift-cols-container {
    flex-direction: column;
    gap: 18px;
  }

  .gift-person-card {
    max-width: 100%;
  }

  .toast {
    font-size: 0.76rem;
    padding: 8px 16px;
    bottom: 24px;
    white-space: nowrap;
    max-width: 94vw;
  }
}

@media (min-width: 768px) {
  body {
    background-color: #ffffff;
  }

  .app-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f7f3fb;
    box-shadow: 0 0 50px rgba(45, 80, 115, 0.08);
    border-radius: 0;
    padding: 36px 40px 30px;
  }

  .reveal-section {
    margin-bottom: 44px;
  }

  .card-elegant {
    max-width: 680px;
    margin-inline: auto;
    padding: 42px 36px 36px;
  }

  .envelope-box {
    width: 530px;
    max-width: 92vw;
    margin-inline: auto;
  }

  .envelope-card {
    width: 100%;
    margin-inline: auto;
    padding: 15px;
    border-radius: 18px;
  }

  .envelope-inner-frame {
    padding: 52px 32px 40px;
    border-radius: 12px;
  }

  .envelope-name-line {
    font-size: 2.8rem;
  }

  .hero-title-box {
    margin-top: -24px;
  }

  .hero-names {
    font-size: clamp(2.3rem, 4vw, 3.2rem);
  }
  .family-profiles-section {
    padding: 16px 0 36px;
    margin-bottom: 24px;
  }

  .family-profiles-container {
    gap: 36px;
  }

  .family-profile-row {
    gap: 32px;
  }

  .family-photo-wrapper {
    max-width: 300px;
    border-radius: 16px;
  }

  .family-person-script {
    font-size: 3.4rem;
  }


  .gallery-grid-2x2 {
    max-width: min(440px, 88vw);
    margin-inline: auto;
    gap: 12px;
  }

  .gallery-quote-box {
    max-width: 520px;
    margin-inline: auto;
  }

  .gift-cols-container {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
}
