:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --accent: #111;
  --card: #fff;
  --success: #1f7a4d;
  --error: #b42318;
  --font-serif: "Noto Serif KR", "Batang", serif;
  --font-sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html.large-text {
  font-size: 19px;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  background: var(--card);
  min-height: 100svh;
  box-shadow: none;
  overflow-x: clip;
}

.hero {
  padding: 0;
  text-align: center;
}

.hero-image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-start, #f3f3f3) 0%, var(--hero-end, #ececec) 100%);
  border-radius: 2px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 36px 24px;
  text-align: center;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-invitation .eyebrow,
.section-date .eyebrow,
.section-gallery .eyebrow,
.section-map .eyebrow,
.section-no-flowers .eyebrow,
.section-accounts .eyebrow,
.section-rsvp-cta .eyebrow,
.section-guest-photos .eyebrow {
  letter-spacing: 0.38em;
}

.section-date .eyebrow {
  margin-bottom: 16px;
}

.title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 16px;
  white-space: pre-line;
}

.message {
  color: #333;
  white-space: pre-line;
  font-size: 0.98rem;
}

.title-couple {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  margin-bottom: 28px;
}

.title-couple .title-name {
  display: inline;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
}

.title-couple .title-sep {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.55;
}

.section-invitation {
  padding-top: 36px;
  padding-bottom: 28px;
}

.wedding-contact {
  max-width: none;
  width: 100%;
  margin: 28px auto 0;
  text-align: center;
}

.contact-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  padding: 14px 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.contact-toggle-phone svg {
  width: 18px;
  height: 18px;
  display: block;
}

.contact-toggle-label {
  flex: 1;
}

.contact-toggle-chevron {
  font-size: 0.8rem;
  color: #888;
  transition: transform 0.25s ease;
}

.contact-toggle.is-open .contact-toggle-chevron {
  transform: rotate(180deg);
}

.contact-panel {
  margin-top: 18px;
  text-align: left;
}

.contact-side + .contact-side {
  margin-top: 20px;
}

.contact-side-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #888;
}

.contact-card-list {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.contact-card-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-card-role {
  font-size: 0.78rem;
  color: #999;
}

.contact-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.contact-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-action:active {
  transform: scale(0.96);
  background: #f0f0f0;
}

.contact-action--call,
.contact-action--sms {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-action svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.contact-action--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.invitation-body--rich {
  max-width: 22em;
  width: 100%;
  margin: 0 auto;
  color: #444;
  font-size: 1rem;
  line-height: 2.05;
  letter-spacing: 0.03em;
  word-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.invitation-body--rich p {
  margin: 0;
}

.invitation-body--rich p + p {
  margin-top: 0.15em;
}

.invitation-body--rich p:empty,
.invitation-body--rich p br:only-child {
  min-height: 1.1em;
}

.invitation-body--rich .invitation-relation {
  display: inline;
  font-size: 0.92em;
  font-weight: 400;
  letter-spacing: 0.04em;
  vertical-align: baseline;
  position: static;
}

.invitation-body--rich p:has(.invitation-relation) {
  letter-spacing: 0.06em;
  line-height: 2.2;
}

.details {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.detail-item {
  display: grid;
  gap: 4px;
}

.detail-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.detail-value {
  font-size: 1rem;
}

.calendar-box {
  display: inline-grid;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 220px;
}

.calendar-date {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

/* ── Wedding calendar & countdown ── */
.section-date {
  padding-top: 32px;
  padding-bottom: 40px;
}

.wedding-month-head {
  text-align: center;
  margin-bottom: 28px;
}

.wedding-month-num {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #222;
}

.wedding-month-en {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #999;
  letter-spacing: 0.06em;
}

.wedding-date-head {
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.wedding-date-main {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.wedding-date-sub {
  font-size: 0.92rem;
  color: #444;
}

.wedding-calendar {
  padding: 0 4px;
  margin-bottom: 0;
}

.wedding-calendar-weekdays,
.wedding-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.wedding-calendar-weekdays {
  margin-bottom: 12px;
  font-size: 0.72rem;
  color: #666;
}

.wedding-calendar-weekdays .weekend {
  color: var(--guestbook-pink, #e8a0a8);
}

.wedding-calendar-week + .wedding-calendar-week {
  margin-top: 6px;
}

.wedding-calendar-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: #333;
}

.wedding-calendar-day.empty {
  visibility: hidden;
}

.wedding-calendar-day.weekend {
  color: var(--guestbook-pink, #e8a0a8);
}

.wedding-calendar-day.wedding-day span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--guestbook-pink, #e8a0a8);
  color: #fff;
  font-weight: 600;
}

.wedding-countdown {
  padding: 0 4px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.countdown-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.countdown-values > span:not(.countdown-sep) {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.countdown-sep {
  color: #ccc;
  font-weight: 400;
  font-size: 1.1rem;
  padding-bottom: 0;
}

.countdown-labels {
  display: grid;
  grid-template-columns: 1fr 0.35fr 1fr 0.35fr 1fr 0.35fr 1fr;
  align-items: start;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: #b5b5b5;
  text-transform: uppercase;
}

.countdown-labels > span:not(.countdown-label-gap) {
  text-align: center;
}

.countdown-message {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: #555;
  line-height: 1.6;
}

.countdown-venue {
  margin-top: 14px;
  line-height: 1.6;
}

.countdown-venue-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.countdown-venue-address {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #666;
}

/* ── Gallery ── */
.section-gallery {
  padding-top: 32px;
  padding-bottom: 28px;
}

.section-gallery .eyebrow {
  margin-bottom: 20px;
}

.section-map .eyebrow,
.section-no-flowers .eyebrow,
.section-accounts .eyebrow,
.section-rsvp-cta .eyebrow,
.section-guest-photos .eyebrow {
  margin-bottom: 18px;
}

.gallery-preview {
  position: relative;
}

/* padding-bottom %는 너비 기준이라 PC·모바일 동일하게 접힘 높이가 맞습니다 */
.section-gallery.has-gallery-more:not(.is-expanded) .gallery-preview {
  height: 0;
  overflow: hidden;
  padding-bottom: calc(
    var(--gallery-preview-rows) * (100% - (var(--gallery-cols) - 1) * 6px) / var(--gallery-cols)
    + max(0px, (var(--gallery-preview-rows) - 1) * 6px)
  );
}

.section-gallery.has-gallery-more:not(.is-expanded) .gallery-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.section-gallery.is-expanded .gallery-preview {
  height: auto;
  padding-bottom: 0;
}

.section-gallery.is-expanded .gallery-grid {
  position: static;
}

.gallery-grid {
  display: grid;
  gap: 6px;
}

.gallery-grid--cols-1 {
  grid-template-columns: 1fr;
}

.gallery-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item--clickable:active {
  transform: scale(0.98);
}

.gallery-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--gallery-fade-height, 62%);
  min-height: 96px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    color-mix(in srgb, var(--card) 88%, transparent) 28%,
    var(--card) var(--gallery-fade-solid-at, 52%),
    var(--card) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.section-gallery.is-expanded .gallery-fade {
  display: none;
}

.gallery-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 132px;
  padding: 11px 22px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.section-gallery.has-gallery-more:not(.is-expanded) .gallery-more-btn {
  position: absolute;
  left: 50%;
  bottom: var(--gallery-more-bottom, 10px);
  transform: translateX(-50%);
  margin: 0;
}

.section-gallery.is-expanded .gallery-more-btn {
  position: static;
  transform: none;
  margin: 18px auto 0;
}

.gallery-more-icon {
  font-size: 0.75rem;
  line-height: 1;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  background: #f6f4f1;
  color: #444;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.gallery-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 52px 0 12px;
}

.gallery-lightbox-viewport {
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: none;
}

.gallery-lightbox-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.gallery-lightbox-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.gallery-lightbox-slide img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform-origin: center center;
  transition: transform 0.22s ease;
}

.gallery-lightbox--zoomable .gallery-lightbox-slide--zoomable img {
  pointer-events: auto;
  cursor: zoom-in;
  touch-action: none;
}

.gallery-lightbox--pinchable:not(.gallery-lightbox--tap-zoom) .gallery-lightbox-slide--zoomable img {
  cursor: default;
}

.gallery-lightbox--zoomable.is-zoomed .gallery-lightbox-slide.is-zoomed img {
  cursor: zoom-out;
  max-width: none;
  width: 100%;
  z-index: 1;
}

.gallery-lightbox--zoomable.is-zoomed .gallery-lightbox-nav {
  opacity: 0.28;
  pointer-events: none;
}

.gallery-lightbox--zoomable.is-zoomed .gallery-lightbox-viewport {
  overflow: hidden;
}

.gallery-lightbox-nav {
  flex: 0 0 auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(80, 80, 80, 0.72);
  cursor: pointer;
}

.gallery-lightbox-nav:active {
  color: #333;
}

.gallery-lightbox-prev {
  margin-left: 2px;
}

.gallery-lightbox-next {
  margin-right: 2px;
}

.gallery-lightbox-counter {
  flex: 0 0 auto;
  padding: 10px 16px max(18px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #666;
}

.floating-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.floating-actions--solo {
  grid-template-columns: 1fr;
  max-width: 220px;
  margin-left: auto;
  padding-top: 0;
  background: none;
}

.section-rsvp-cta {
  text-align: center;
  padding: 44px 24px 32px;
}

.btn-rsvp-cta {
  display: inline-block;
  min-width: 200px;
  width: min(72%, 280px);
  border: 0;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.01em;
}

a.btn-rsvp-cta {
  text-decoration: none;
}

.section-guest-photos {
  text-align: center;
  padding: 44px 24px 32px;
}

.guest-photos-hint {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--btn-secondary-bg, #f1f1f1);
  color: var(--text);
}

.flash {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.flash.success {
  background: #edf7f0;
  color: var(--success);
  border: 1px solid #cfe8d7;
}

.flash.error {
  background: #fff1f0;
  color: var(--error);
  border: 1px solid #f3c8c4;
}

.wedding-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 18px;
  position: relative;
  max-height: 90svh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.modal p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  text-align: left;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option span {
  display: block;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.15s ease;
}

.radio-option input:checked + span {
  border: 2px solid var(--accent);
  font-weight: 600;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

.field-block {
  display: grid;
  gap: 0;
}

.attending-only.hidden {
  display: none;
}

.privacy-box {
  background: #f3f3f3;
  border-radius: 12px;
  padding: 14px;
}

.privacy-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.privacy-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.privacy-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.6;
  display: none;
}

.privacy-detail.open {
  display: block;
}

.privacy-toggle {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-submit {
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  border-radius: 12px;
  font-size: 1rem;
}

input[type="tel"] {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}

.modal-invite {
  text-align: center;
  background: linear-gradient(180deg, #fdfcf8 0%, #f7f4ed 100%);
  border: 1px solid #e8e2d6;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.14);
  padding: 34px 24px 20px;
}

.modal-invite h2 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.invite-message {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #5a5a5a;
}

.invite-divider {
  height: 1px;
  margin: 0 0 20px;
  background: repeating-linear-gradient(90deg, #d8d0c4 0, #d8d0c4 5px, transparent 5px, transparent 10px);
  opacity: 0.75;
}

.invite-details {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 12px;
  text-align: left;
}

.invite-details li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #444;
}

.invite-icon {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  color: #9a8f82;
  font-size: 0.95rem;
}

.invite-groom-label {
  font-style: normal;
  font-weight: 600;
  color: #3d6cb9;
}

.invite-bride-label {
  font-style: normal;
  font-weight: 600;
  color: var(--guestbook-pink, #b85c67);
}

.btn-invite {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 15px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

.invite-footer {
  justify-content: center;
  margin-top: 16px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-note {
  padding: 0 24px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.section-map .details {
  margin-bottom: 20px;
}

.venue-address-block {
  text-align: center;
  margin-bottom: 20px;
}

.venue-address-line,
.venue-name-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.btn-copy-address {
  margin-top: 14px;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 0.88rem;
}

.map-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 auto 14px;
}

.wedding-map {
  width: 100%;
  height: 240px;
  background: #f3f3f3;
}

.map-touch-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.72) 100%);
  cursor: pointer;
  font: inherit;
}

.map-touch-shield span {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.74rem;
  color: #666;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.map-wrap.is-map-active .map-touch-shield {
  display: none;
}

.map-wrap--osm {
  height: 240px;
}

.map-wrap--osm iframe {
  width: 100%;
  height: 300px;
  margin-bottom: -60px;
  border: 0;
  display: block;
  pointer-events: none;
}

.map-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.btn-map {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 10px;
  background: var(--btn-secondary-bg, #f4f4f4);
  font-size: 0.82rem;
  font-weight: 600;
}

.directions-section-title {
  margin: 28px 0 16px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
}

.directions {
  display: grid;
  gap: 12px;
  text-align: left;
  font-size: 0.9rem;
}

.section-map .directions {
  margin-top: 28px;
}

.direction-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: start;
}

.direction-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.directions-html-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.directions-html-body > p {
  margin: 0;
  line-height: 1.75;
  font-size: 0.88rem;
  color: #333;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.directions-html-body > p + p {
  margin-top: 0;
}

.directions-html-body > p > strong:only-child {
  display: block;
  color: var(--directions-title, var(--accent));
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.directions-html-body > p:has(> strong:only-child) {
  margin-top: 30px;
  line-height: 1.15;
  margin-bottom: 0;
}

.directions-html-body > p:has(> strong:only-child):first-child {
  margin-top: 0;
}

.directions-html-body > p:not(:has(strong)) {
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.45;
  font-size: 0.88rem;
  color: #444;
}

.direction-no-flowers {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.section-no-flowers .direction-no-flowers {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.direction-no-flowers p {
  margin: 0;
  color: #555;
  line-height: 1.75;
  font-size: 0.88rem;
}

.direction-no-flowers-body {
  color: #555;
  line-height: 1.75;
  font-size: 0.88rem;
  width: 100%;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.direction-no-flowers-body p {
  margin: 0;
}

.direction-no-flowers-body p + p {
  margin-top: 0.35em;
}

.direction-no-flowers-body .ql-align-center {
  text-align: center;
}

.direction-no-flowers-body .ql-align-right {
  text-align: right;
}

.direction-no-flowers-body .ql-align-left {
  text-align: left;
}

.invitation-body--rich .ql-align-center {
  text-align: center;
}

.invitation-body--rich .ql-align-right {
  text-align: right;
}

.invitation-body--rich .ql-align-left {
  text-align: left;
}

.shuttle-block {
  margin: 4px 0 8px;
  text-align: left;
}

.shuttle-intro {
  margin-bottom: 14px;
}

.shuttle-route {
  margin-bottom: 20px;
}

.shuttle-route-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.shuttle-route-sub {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #777;
}

.shuttle-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--btn-secondary-bg, #fafafa);
}

.shuttle-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.shuttle-table th,
.shuttle-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.shuttle-table th {
  background: #f3f3f3;
  font-weight: 600;
  color: #555;
  font-size: 0.72rem;
}

.shuttle-table tbody tr:last-child td {
  border-bottom: 0;
}

.shuttle-note,
.shuttle-contact {
  margin: 0;
  font-size: 0.76rem;
  color: #888;
  line-height: 1.6;
}

.shuttle-contact {
  margin-top: 4px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.section-desc {
  color: #444;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 22px;
}

.accordion {
  display: grid;
  gap: 10px;
  text-align: left;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: var(--btn-secondary-bg, #fafafa);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.accordion-panel {
  display: none;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.accordion-item.open .accordion-panel {
  display: grid;
  gap: 12px;
}

.account-block {
  display: grid;
  gap: 12px;
}

.account-block + .account-block {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-block-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.account-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.account-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-number {
  word-break: break-all;
}

.account-transfer-actions {
  display: none;
  gap: 6px;
  margin-top: 2px;
}

.btn-account-transfer {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  .account-transfer-actions {
    display: flex;
  }
}

.btn-account-transfer:active {
  transform: scale(0.98);
}

.btn-account-transfer--toss {
  background: #3182f6;
  color: #fff;
}

.btn-account-transfer--kakao {
  background: #fee500;
  color: #191919;
}

.btn-copy {
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-share {
  width: 100%;
  background: var(--btn-secondary-bg, #f4f4f4);
  color: var(--text);
}

.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.fab-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(130, 130, 130, 0.52);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.fab-btn svg {
  pointer-events: none;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 148px;
  transform: translateX(-50%);
  z-index: 100001;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.88);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.share-toast[hidden] {
  display: none !important;
}

.fab-btn:hover {
  transform: scale(1.05);
  background: rgba(110, 110, 110, 0.62);
}

.fab-btn:active {
  transform: scale(0.96);
}

.fab-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fab-btn[hidden] {
  display: none;
}

.btn-kakao {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: #fee500;
  color: #191919;
}

.btn-kakao:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Meal info & deco icons ── */
.section-meal-info {
  padding: 32px 24px 20px;
  text-align: center;
  background: var(--card);
}

.section-meal-info + .section-guestbook--bubble {
  border-top: none;
  padding-top: 8px;
}

.meal-info-deco {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.meal-info-deco img {
  display: block;
  width: min(100%, 56px);
  height: auto;
}

.wedding-deco-icon {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.wedding-deco-icon svg {
  display: block;
  width: auto;
  height: auto;
  max-width: 88px;
  max-height: 72px;
}

.wedding-deco-icon--megaphone svg {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
}

.wedding-deco-icon--bird svg {
  width: 88px;
  height: 52px;
  max-width: 88px;
  max-height: 52px;
}

.guestbook-deco-envelope {
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.guestbook-deco-envelope-svg {
  display: block;
  width: min(100%, 68px);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(232, 160, 168, 0.14));
}

.guestbook-deco-envelope-img {
  display: block;
  width: min(100%, 88px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(232, 160, 168, 0.14));
}

.meal-info-card {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 22px 20px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.meal-info-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.meal-info-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #444;
}

/* ── Guestbook ── */
.section-guestbook {
  background: var(--section-alt-bg, #f5f5f5);
  padding-bottom: 28px;
}

.section-guestbook.section-guestbook--bubble {
  padding: 28px 24px 36px;
  background: var(--card);
}

.section-guestbook--carousel {
  background: var(--card);
}

.guestbook-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--guestbook-pink);
  margin-bottom: 6px;
  font-weight: 500;
}

.guestbook-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--guestbook-pink);
  margin: 0 0 22px;
}

.guestbook-flash {
  margin: 0 0 16px;
}

.guestbook-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  margin: 0 -4px;
  scrollbar-width: none;
}

.guestbook-carousel::-webkit-scrollbar {
  display: none;
}

.guestbook-card {
  flex: 0 0 calc(50% - 6px);
  min-width: calc(50% - 6px);
  scroll-snap-align: start;
  background: var(--guestbook-pink-light);
  border: 1px solid #f0d8dc;
  border-radius: 14px;
  padding: 18px 14px 16px;
  box-shadow: 0 4px 14px rgba(232, 160, 168, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
}

.guestbook-card-icon {
  font-size: 1.1rem;
  color: #c98fa0;
  margin-bottom: 10px;
  line-height: 1;
}

.guestbook-card-message {
  flex: 1;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #444;
  word-break: keep-all;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guestbook-card-hearts {
  margin: 10px 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.guestbook-card-footer {
  display: grid;
  gap: 4px;
  width: 100%;
}

.guestbook-card-author {
  font-size: 0.78rem;
  color: #555;
  font-weight: 500;
}

.guestbook-card-date {
  font-size: 0.68rem;
  color: #999;
}

.guestbook-card-write {
  border: 1px dashed #ddb8be;
  background: var(--guestbook-pink-soft);
  cursor: pointer;
  justify-content: center;
  font: inherit;
  color: #888;
}

.guestbook-write-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: #b0b0b0;
}

.guestbook-write-label {
  font-size: 0.82rem;
  color: #888;
}

.guestbook-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 6px;
}

.guestbook-action-btn {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  padding: 4px 0;
}

.guestbook-modal h2 {
  color: var(--guestbook-pink);
}

.btn-guestbook {
  background: var(--guestbook-pink);
  color: #fff;
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.guestbook-page {
  background: var(--section-alt-bg, #f5f5f5);
  min-height: 100svh;
}

.guestbook-page-header {
  padding: 24px 24px 8px;
  text-align: center;
}

.guestbook-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
}

.guestbook-page-desc {
  margin: 0 0 8px;
  color: #777;
  font-size: 0.88rem;
}

.guestbook-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 20px 24px;
}

.guestbook-card-full {
  flex: unset;
  min-width: unset;
  width: 100%;
  min-height: 200px;
}

.guestbook-card-full .guestbook-card-message {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

.guestbook-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
}

.guestbook-page-actions {
  padding: 0 20px 32px;
}

/* ── Guestbook bubble style ── */
.guestbook-bubble-intro {
  margin: 0 auto 18px;
  max-width: none;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 0.88rem;
  color: #555;
  background: #fff;
}

.guestbook-bubble-form {
  max-width: none;
  width: 100%;
  margin: 0 auto 28px;
}

.guestbook-bubble-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.guestbook-bubble-fields-row input,
.guestbook-bubble-message-wrap input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.88rem;
  background: #fff;
}

.guestbook-bubble-message-wrap {
  position: relative;
  margin-bottom: 10px;
}

.guestbook-bubble-counter {
  margin-top: 6px;
  text-align: right;
  font-size: 0.75rem;
  color: #999;
}

.guestbook-bubble-privacy {
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.guestbook-bubble-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.guestbook-bubble-list {
  display: grid;
  gap: 12px;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.guestbook-bubble-item {
  display: flex;
}

.guestbook-bubble-item.is-left {
  justify-content: flex-start;
}

.guestbook-bubble-item.is-right {
  justify-content: flex-end;
}

.guestbook-bubble-item.is-hidden {
  display: none;
}

.guestbook-bubble-card {
  width: 82%;
  max-width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  box-sizing: border-box;
}

.guestbook-bubble-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.guestbook-bubble-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
}

.guestbook-bubble-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  font-size: 0.72rem;
}

.guestbook-bubble-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #333;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guestbook-bubble-more,
.guestbook-expand-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.guestbook-more-footer {
  margin-top: 16px;
  text-align: center;
}

.guestbook-expand-panel {
  display: grid;
  gap: 12px;
  max-width: none;
  width: 100%;
  margin: 16px auto 0;
  padding: 0 4px;
}

.guestbook-expand-item.is-hidden {
  display: none;
}

.guestbook-expand-item:not(.is-hidden) {
  animation: guestbook-expand-in 0.28s ease;
}

@keyframes guestbook-expand-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guestbook-page--bubble .guestbook-bubble-list {
  max-width: 420px;
  padding: 0 20px;
}

@media (max-width: 380px) {
  .guestbook-list {
    grid-template-columns: 1fr;
  }
}

/* PC(넓은 화면 + 마우스)에서만 모바일 카드형 + 내부 요소 폭 제한 */
@media (min-width: 700px) and (hover: hover) and (pointer: fine) {
  body {
    padding: 24px 0;
  }

  .page {
    max-width: 480px;
    box-shadow: 0 0 40px var(--page-shadow, rgba(0, 0, 0, 0.04));
  }

  .wedding-contact,
  .wedding-countdown,
  .meal-info-card,
  .guestbook-bubble-intro,
  .guestbook-bubble-form,
  .guestbook-bubble-list,
  .guestbook-expand-panel,
  .invitation-body--rich {
    max-width: 340px;
  }

  .meal-info-card {
    max-width: 320px;
  }

  .guestbook-bubble-card {
    width: min(100%, 260px);
  }

  .bgm-toggle {
    right: calc(50% - 240px + 16px);
    top: 40px;
  }

  .fab-stack {
    right: calc(50% - 240px + 16px);
    bottom: 104px;
  }
}

/*
 * 모바일/터치: max-width 미디어만 쓰면 크롬 "데스크톱 사이트"처럼
 * 뷰포트가 980px로 잡힐 때 적용이 안 됨 → hover/pointer로도 강제
 */
@media (max-width: 699px), ((hover: none) and (pointer: coarse)) {
  html {
    font-size: clamp(17px, 4.3vw, 18.5px);
  }

  .section {
    padding: 36px 18px;
  }

  .section-guestbook.section-guestbook--bubble {
    padding-left: 18px;
    padding-right: 18px;
  }

  .invitation-body--rich {
    max-width: none;
    font-size: 1.05rem;
    line-height: 2.1;
    letter-spacing: 0.02em;
  }

  .section-invitation .eyebrow {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .wedding-contact,
  .wedding-countdown,
  .meal-info-card,
  .guestbook-bubble-intro,
  .guestbook-bubble-form,
  .guestbook-bubble-list {
    max-width: none;
    width: 100%;
  }

  .guestbook-bubble-card {
    width: 84%;
    max-width: none;
  }

  .contact-toggle {
    padding: 15px 18px;
    font-size: 1rem;
  }

  .meal-info-title {
    font-size: 1.22rem;
  }

  .meal-info-body {
    font-size: 0.96rem;
  }
}

.bgm-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  bottom: auto;
  z-index: 1100;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: 0 4px 18px var(--page-shadow, rgba(0, 0, 0, 0.08));
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.bgm-toggle:hover {
  transform: scale(1.04);
}

.bgm-toggle.is-playing {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.bgm-toggle-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.bgm-toggle.is-playing .bgm-toggle-icon {
  animation: bgm-pulse 1.4s ease-in-out infinite;
}

@keyframes bgm-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
