/* ขิม & จืด — Wedding invitation
   แนวคิด: กระดาษขาวแบบ MUJI + ชมพูจากการ์ดเป็นสีเดียวที่ "มีเสียง"
   ฟอนต์ไทย Noto Sans Thai แบบ condensed (wdth 75%) ใกล้เคียง ArchTH Condensed ใน Canva — ดู DESIGN.md */

:root {
  --canvas: #ffffff;
  --paper: #fffaf9;
  --blush: #fdeceb;
  --panel: #fbb2b4;
  --rose: #eb9da0;
  --rose-deep: #b25b66;
  --rose-ink: #8f3f4b;
  --ink: #3c3c43;
  --ink-soft: #6b6b72;
  --hairline: #efdcdc;
  --hairline-strong: #e2c3c4;

  --serif: "Cormorant Garamond", "Noto Sans Thai", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --thai: "Noto Sans Thai", -apple-system, "Segoe UI", sans-serif;

  --r-card: 2px;
  --r-pill: 9999px;
  --gutter: 16px;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.75 var(--thai);
  font-stretch: 75%;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 .5em; }
b, strong { font-weight: 500; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.mt { margin-top: 10px; }
.script { font-family: var(--script); font-weight: 400; color: var(--rose); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.section { padding: 88px 0; }
.section__head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  font: 400 13px/1.4 var(--serif);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 10px;
}
.h2 { font: 400 clamp(32px, 5vw, 44px)/1.3 var(--thai); color: var(--ink); letter-spacing: .01em; }
.title-en { font: 300 clamp(40px, 7vw, 64px)/1 var(--serif); color: var(--ink); letter-spacing: .02em; }
.title-en em { font-style: italic; color: var(--rose-deep); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 26px;
  border-radius: var(--r-pill);
  font: 400 15px/1.2 var(--thai);
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--rose-deep);
  transition: background .25s, color .25s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--rose-deep); color: #fff; }
.btn--primary:hover { background: var(--rose-ink); border-color: var(--rose-ink); }
.btn--ghost { background: transparent; color: var(--rose-deep); }
.btn--ghost:hover { background: var(--blush); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }

.daisy { width: 64px; height: 64px; display: block; }

/* ---------- หน้าปก ---------- */
.cover {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #fff 0%, var(--blush) 55%, var(--panel) 140%);
  padding: 24px;
  transition: opacity .9s var(--ease), visibility .9s;
}
.cover.is-open { opacity: 0; visibility: hidden; }
.cover__inner { max-width: 520px; }
.cover__daisy { width: 92px; height: 92px; margin: 0 auto 18px; animation: spin 40s linear infinite; }
.cover__names { font: 300 clamp(38px, 10vw, 64px)/1.05 var(--serif); color: var(--rose-deep); }
.cover__names .amp { display: block; font: 400 .8em/1.1 var(--script); color: var(--rose); margin: 4px 0; }
.cover__date { font: 400 18px/1 var(--serif); letter-spacing: .35em; margin: 22px 0 30px; color: var(--ink); }
.cover__hint { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- เมนูบน ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-100%);
  transition: transform .4s var(--ease);
}
.topnav.is-shown { transform: none; }
.topnav__brand { font: 400 20px/1 var(--serif); color: var(--rose-deep); text-decoration: none; letter-spacing: .1em; white-space: nowrap; }
.topnav__brand span { font-family: var(--script); color: var(--rose); }
.topnav__links { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topnav__links::-webkit-scrollbar { display: none; }
.topnav__links a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.topnav__links a:hover { background: var(--blush); }
.topnav__links .topnav__cta { background: var(--rose-deep); color: #fff; }
.topnav__links .topnav__cta:hover { background: var(--rose-ink); }
@media (max-width: 560px) { .topnav__links a:not(.topnav__cta):nth-child(n+3) { display: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr; min-height: 100svh; }
.hero__panel { position: absolute; z-index: 2; top: 8px; left: var(--gutter); color: #fff; text-shadow: 0 1px 12px rgba(120, 40, 50, .25); }
.hero__save { font: 300 36px/.95 var(--serif); letter-spacing: .04em; margin: 0; position: relative; }
.hero__save .script { position: absolute; left: -.15em; top: .68em; font-size: .9em; color: #fff; }
.hero__date { font: 400 13px/1 var(--serif); letter-spacing: .3em; margin-top: 6px; }
.hero__photo { margin: 0; position: relative; height: 72svh; min-height: 420px; }
/* ชิดบนเสมอ: จอเตี้ย (เบราว์เซอร์ในแอป) จะครอปด้านล่างแทน หัวบ่าวสาวจึงไม่ขยับขึ้นไปชนตัวหนังสือ */
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(251, 178, 180, .35) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 75%, #fff 100%); }
.hero__text { position: relative; padding: 0 var(--gutter) 64px; text-align: center; margin-top: -40px; }
.hero__daisy { width: 72px; height: 72px; margin: 0 auto 6px; }
.hero__names { font: 300 clamp(40px, 11vw, 76px)/1 var(--serif); color: var(--rose); letter-spacing: .01em; }
.hero__names span { color: var(--rose-deep); }
.hero__thai { font-size: 22px; margin: 12px 0 0; }
.hero__thai .script { font-size: 30px; margin: 0 6px; }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 28px 0; }
.countdown div { min-width: 70px; padding: 12px 8px 8px; text-align: center; border: 1px solid var(--hairline-strong); border-radius: var(--r-card); background: #fff; }
.countdown b { display: block; font: 300 32px/1 var(--serif); color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(180px, 18vw) 1.25fr 1fr; min-height: 100vh; }
  .hero::before { content: ""; grid-column: 1; grid-row: 1; background: var(--panel); }
  .hero__panel { position: relative; z-index: 3; grid-column: 1 / 3; grid-row: 1; top: auto; left: auto; padding: clamp(56px, 6vw, 110px) 0 0 clamp(36px, 3vw, 64px); text-shadow: none; align-self: start; pointer-events: none; }
  .hero__save { font-size: clamp(72px, 6.4vw, 132px); }
  .hero__save .script { font-size: .85em; top: .7em; left: -.24em; }
  .hero__date { font-size: clamp(18px, 1.35vw, 26px); margin-top: .9em; }
  .hero__photo { grid-column: 2; grid-row: 1; height: 100vh; min-height: 0; }
  .hero__photo img { object-position: 38% 25%; }
  .hero__photo::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 88%, #fff 100%); }
  .hero__text { grid-column: 3; grid-row: 1; align-self: center; margin: 0; padding: 48px 48px 48px 24px; text-align: left; }
  .hero__daisy { margin: 0 0 12px; width: 84px; height: 84px; }
  .hero__names { font-size: clamp(56px, 4.4vw, 96px); }
  .hero__thai { font-size: clamp(22px, 1.5vw, 28px); }
  .countdown, .hero__actions { justify-content: flex-start; }
}

/* ---------- คำเชิญ ---------- */
.invite { text-align: center; background: var(--paper); }
.invite__card {
  max-width: 720px; margin: 0 auto 56px; padding: 40px 24px 32px;
  background: #fff; border: 1px solid var(--hairline-strong); border-radius: var(--r-card);
  outline: 1px solid var(--hairline); outline-offset: -9px;
}
.parents { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 18px 0 22px; }
.parents__side p { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.9; }
.parents__and { font-size: 40px; line-height: 1; padding: 0 6px; }
.invite__lead { font-size: 16px; color: var(--ink-soft); margin: 0; }

.couple { position: relative; display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 840px; margin: 0 auto; }
.person { margin: 0; position: relative; z-index: 1; }
.person__img { aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-card); background: var(--blush); }
.person__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.person:hover .person__img img { transform: scale(1.03); }
.person figcaption { padding-top: 16px; display: grid; gap: 2px; }
.person__role { font: 400 13px/1.4 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--rose-deep); }
.person strong { font: 400 clamp(22px, 3.6vw, 26px)/1.4 var(--thai); color: var(--rose-deep); }
.person__nick { font-size: 15px; color: var(--ink-soft); }
.person__nick::before { content: "( "; } .person__nick::after { content: " )"; }
.couple__and { display: grid; place-items: center; position: relative; z-index: 2; }
.couple__and .daisy { width: 52px; height: 52px; }
.couple__and .script { font-size: 44px; line-height: 1; margin-top: -6px; }

@media (min-width: 720px) {
  .couple { grid-template-columns: 1fr 1fr; gap: 28px; }
  /* แถบชมพูด้านหลังให้สองรูปผูกกันเป็นชุดเดียว */
  .couple::before { content: ""; position: absolute; z-index: 0; left: -48px; right: -48px; top: 18%; bottom: 22%; background: var(--blush); border-radius: var(--r-card); }
  .couple__and {
    position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
    width: 120px; height: 120px; border-radius: 50%;
    background: #fff; border: 1px solid var(--hairline-strong);
    outline: 6px solid rgba(255, 255, 255, .6);
    align-content: center; gap: 0;
  }
  .couple__and .daisy { width: 44px; height: 44px; }
  .couple__and .script { font-size: 38px; margin-top: -2px; }
}

/* ---------- แถบภาพ ---------- */
.band { position: relative; height: 70vh; min-height: 360px; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(60, 25, 30, .45), rgba(0, 0, 0, 0) 55%); }
.band__quote { position: absolute; z-index: 1; left: 0; right: 0; bottom: 8%; text-align: center; color: #fff; font: 300 clamp(26px, 5vw, 44px)/1.1 var(--serif); letter-spacing: .06em; }
.band__quote .script { display: block; color: #fde3e3; font-size: 1.1em; }

/* ---------- กำหนดการ (มือถือ: เรียงลง / เว็บ: รูป + เนื้อหาสองคอลัมน์) ---------- */
.schedule__photo { display: none; margin: 0; }
.schedule__grid { display: grid; gap: 28px; align-items: center; }
.datecard { justify-self: center; width: 180px; padding: 26px 12px 22px; text-align: center; background: var(--panel); color: #fff; border-radius: 90px; }
.datecard span { display: block; font-size: 15px; font-weight: 400; }
.datecard b { display: block; font: 300 84px/1 var(--serif); margin: 4px 0; }
.datecard em { display: inline-block; margin-top: 8px; padding: 2px 16px; background: #fff; color: var(--rose-deep); border-radius: var(--r-pill); font: 500 18px/1.5 var(--thai); font-style: normal; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.timeline li:last-child { border-bottom: 0; }
.timeline .ico { grid-row: 1 / 3; width: 56px; height: 56px; padding: 10px; border-radius: 50%; background: var(--blush); fill: none; stroke: var(--rose-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.timeline time { font: 400 22px/1.3 var(--serif); color: var(--rose-deep); align-self: end; letter-spacing: .02em; }
.timeline span { font-size: 17px; font-weight: 400; }

.theme { margin-top: 48px; text-align: center; }
.theme__label { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.swatches { list-style: none; padding: 0; margin: 0 0 14px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.swatches li { display: grid; justify-items: center; gap: 6px; }
.swatches li::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.swatches span { font: 400 13px/1 var(--serif); letter-spacing: .08em; color: var(--ink-soft); }

@media (min-width: 860px) {
  .schedule__layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: center; max-width: 1040px; }
  .schedule__photo { display: block; position: relative; }
  .schedule__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); }
  .schedule__photo::before { content: ""; position: absolute; z-index: -1; inset: 28px -28px -28px 28px; background: var(--blush); border-radius: var(--r-card); }
  .schedule__body .section__head { text-align: left; margin-bottom: 28px; }
  .schedule__grid { grid-template-columns: 150px 1fr; gap: 32px; }
  .datecard { width: 150px; padding: 22px 10px 18px; border-radius: 75px; }
  .datecard b { font-size: 68px; }
  .theme { text-align: left; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center; }
  .theme__label { grid-row: 1 / 3; margin: 0; }
  .swatches { justify-content: flex-start; margin-bottom: 6px; }
  .theme p.muted { margin: 0; }
}

/* ---------- สถานที่ ---------- */
.venue { background: var(--paper); }
.venue__grid { display: grid; gap: 28px; align-items: center; }
.venue__info .h2 { color: var(--rose-deep); margin-bottom: 4px; }
.venue__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.venue__map { border: 1px solid var(--hairline-strong); border-radius: var(--r-card); overflow: hidden; background: var(--blush); }
.venue__map iframe { display: block; width: 100%; height: 360px; border: 0; }
@media (min-width: 860px) { .venue__grid { grid-template-columns: 1fr 1.3fr; gap: 48px; } .venue__map iframe { height: 440px; } }

/* ---------- ฟอร์ม ---------- */
.card { background: #fff; border: 1px solid var(--hairline-strong); border-radius: var(--r-card); padding: 28px 20px; }
@media (min-width: 640px) { .card { padding: 36px 40px; } }
.form { display: grid; gap: 22px; }
.hp { position: absolute; left: -9999px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.field > label, .field > legend { font-weight: 500; font-size: 15px; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 8px; }
.field i { color: var(--rose-deep); font-style: normal; }
.field small { color: var(--ink-soft); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: 400 16px/1.5 var(--thai); color: var(--ink);
  background: #fff; border: 1px solid var(--hairline-strong); border-radius: var(--r-card);
  padding: 10px 12px; min-height: 46px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(178, 91, 102, .14); }
input::placeholder, textarea::placeholder { color: #a9a3a5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--hairline-strong); font-size: 15px; font-weight: 400; background: #fff; transition: all .2s; }
.chips input:checked + span { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.chips--big span { padding: 10px 22px; }

.stepper { display: grid; grid-template-columns: 46px 1fr 46px; border: 1px solid var(--hairline-strong); border-radius: var(--r-card); overflow: hidden; }
.stepper input { border: 0; text-align: center; border-radius: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper button { border: 0; background: var(--blush); color: var(--rose-deep); font-size: 22px; cursor: pointer; }
.stepper button:hover { background: #fadcdc; }

.when-coming { display: grid; gap: 22px; }
.when-coming.is-off { display: none; }
.stay { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px; display: grid; gap: 16px; }
.stay__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stay__title { font-weight: 500; margin: 0; }
.stay__body { display: grid; gap: 14px; border-top: 1px dashed var(--hairline-strong); padding-top: 16px; }
.nights { color: var(--rose-deep); font-weight: 500; margin: 0; }

.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: #e6dadb; border-radius: var(--r-pill); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--rose-deep); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--rose-deep); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--rose-deep); flex: none; }
.form__error { margin: 0; padding: 10px 14px; background: #fdecee; color: #a3263a; border-radius: var(--r-card); font-size: 15px; }

.rsvp__returning { text-align: center; padding: 18px; margin-bottom: 18px; background: var(--blush); border-radius: var(--r-card); }
.thanks { text-align: center; }
.thanks__daisy { margin: 0 auto 10px; }
.thanks h3 { font: 400 26px/1.4 var(--thai); color: var(--rose-deep); margin-bottom: 8px; }
.thanks p { color: var(--ink-soft); }

/* ---------- แกลเลอรี ---------- */
.gallery { background: var(--paper); }
.masonry { columns: 2; column-gap: 10px; }
.masonry__item { display: block; margin-bottom: 10px; break-inside: avoid; border-radius: var(--r-card); overflow: hidden; background: var(--blush); }
.masonry__item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.masonry__item:hover img { transform: scale(1.04); }
@media (min-width: 720px) { .masonry { columns: 3; column-gap: 14px; } .masonry__item { margin-bottom: 14px; } }
@media (min-width: 1040px) { .masonry { columns: 4; } }

/* ---------- การ์ดดาวน์โหลด ---------- */
.card-dl { text-align: center; }
.card-dl .h2 { margin-bottom: 24px; }
.card-dl__img { display: block; margin: 0 auto 22px; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 18px 50px -24px rgba(143, 63, 75, .45); }

/* ---------- คำอวยพร ---------- */
.wishes { background: var(--blush); }
.wishes__list { columns: 1; column-gap: 14px; }
@media (min-width: 720px) { .wishes__list { columns: 2; } }
@media (min-width: 1040px) { .wishes__list { columns: 3; } }
.wish { break-inside: avoid; background: #fff; border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--hairline); }
.wish p { margin: 0 0 10px; white-space: pre-line; font-weight: 400; }
.wish footer { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.wish footer b { color: var(--rose-deep); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 72px var(--gutter) 56px; border-top: 1px solid var(--hairline); }
.footer__daisy { margin: 0 auto 12px; width: 52px; height: 52px; }
.footer__thanks { font-size: 18px; font-weight: 400; color: var(--rose-deep); }
.footer__names { margin-top: 18px; font: 300 24px/1.2 var(--serif); color: var(--rose); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30, 18, 20, .94); display: grid; place-items: center; padding: 48px 12px; }
.lightbox img { max-height: 90vh; max-width: 100%; width: auto; border-radius: var(--r-card); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- เพลงประกอบ: แผ่นเสียงลอยแบบ IG ---------- */
.player {
  position: fixed; z-index: 60;
  right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px;
}
.player__tag {
  display: flex; align-items: center; gap: 6px; height: 34px; max-width: 220px; padding: 0 6px 0 12px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline-strong); color: var(--ink); font-size: 13px; overflow: hidden;
  transition: max-width .45s var(--ease), opacity .3s, padding .45s var(--ease), border-width .45s;
}
.player.is-compact .player__tag { max-width: 0; padding: 0; opacity: 0; border-width: 0; }
.player__note { color: var(--rose-deep); flex: none; }
.player__marquee {
  width: 140px; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.player__track { display: inline-flex; animation: marquee 11s linear infinite; animation-play-state: paused; }
.player__track span { padding-right: 36px; }
.player.is-playing .player__track { animation-play-state: running; }
@keyframes marquee { to { transform: translateX(-50%); } }
.player__next { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blush); color: var(--rose-deep); cursor: pointer; padding: 0; }
.player__next svg { width: 13px; height: 13px; fill: currentColor; }

.disc { position: relative; flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.disc__vinyl {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #1c191b 0 1px, #2c2729 1.6px 2.6px);
  box-shadow: 0 8px 20px -8px rgba(80, 30, 40, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  animation: spin 5s linear infinite; animation-play-state: paused;
}
.disc__vinyl img { width: 56%; height: 56%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--panel); }
.disc__vinyl::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.disc::after { /* แสงสะท้อนบนแผ่น (ไม่หมุนตาม) */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 40deg, transparent 0 18%, rgba(255, 255, 255, .16) 24%, transparent 31% 68%, rgba(255, 255, 255, .1) 74%, transparent 81%);
}
.disc__play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; transition: opacity .25s; }
.disc__play svg { width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.player.is-playing .disc__vinyl { animation-play-state: running; }
.player.is-playing .disc__play { opacity: 0; }
.disc__notes i { position: absolute; left: 6px; top: 4px; font-style: normal; font-size: 15px; color: var(--rose-deep); opacity: 0; pointer-events: none; }
.player.is-playing .disc__notes i { animation: note-float 3.2s ease-out infinite; }
.player.is-playing .disc__notes i:nth-child(2) { animation-delay: 1.05s; left: 14px; }
.player.is-playing .disc__notes i:nth-child(3) { animation-delay: 2.1s; left: 2px; }
@keyframes note-float {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: translate(-22px, -48px) rotate(-18deg) scale(1.05); opacity: 0; }
}
/* ยังไม่ได้เปิดเพลง → ชวนให้แตะ */
.player.is-hint .disc::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--panel); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (min-width: 900px) {
  .player { right: 24px; bottom: 24px; }
  .disc { width: 64px; height: 64px; }
}
@media print { .player { display: none !important; } }

/* ---------- ดอกเดซี่หมุนช้าๆ ตลอด ---------- */
.hero__daisy, .couple__and .daisy, .footer__daisy { animation: spin 24s linear infinite; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cover__daisy, .hero__daisy, .couple__and .daisy, .footer__daisy { animation: none; }
  .disc__vinyl, .player__track, .player.is-playing .disc__notes i, .player.is-hint .disc::before { animation: none; }
}

/* ไทยแบบ condensed ทั้งหน้า — shorthand `font:` รีเซ็ต font-stretch เป็น normal จึงต้องบังคับซ้ำ
   (Cormorant/Pinyon ไม่มีแกนความกว้าง จึงไม่ได้รับผล) */
body * { font-stretch: 75% !important; }
