/* วันไหนดี · wannaidee.com — shared styles */
:root {
  --ink: #14163A;
  --ink-deep: #101233;
  --band: #181A42;
  --panel: #1D1F47;
  --panel-2: #2A2C58;
  --line: #262856;
  --line-2: #2E3163;
  --line-3: #3A3D6B;
  --text: #F4EFE6;
  --text-2: #E4E2F0;
  --body: #D9D8E8;
  --soft: #C9CAE0;
  --muted: #A9ABC9;
  --faint: #8E90B3;
  --gold: #E8B04B;
  --gold-hover: #F3CB7A;
  --gold-tint: rgba(232, 176, 75, 0.18);
  --coral: #E8846B;
  --coral-text: #F0A08A;
  --coral-tint: rgba(232, 132, 107, 0.16);
  --serif: 'Noto Serif Thai', serif;
  --sans: 'IBM Plex Sans Thai', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#calendar { scroll-margin-top: 8px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
button { font-family: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__name { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.brand__moon { animation: glow 3.2s ease-in-out infinite; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.nav a.navlink { color: var(--text-2); text-decoration: none; }
.nav a.navlink:hover, .nav a.navlink[aria-current="page"] { color: var(--gold); }
.nav .soon { color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.nav .soon small { font-size: 11px; border: 1px solid var(--line-3); border-radius: 999px; padding: 1px 7px; }

/* Three-line menu button (phones only; added by i18n.js) */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-3); background: rgba(20, 22, 58, .7); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
/* Wide screens: the menu always stays on one line beside the logo. */
@media (min-width: 961px) {
  .has-menu.site-header { flex-wrap: nowrap; }
  .has-menu .nav { flex-wrap: nowrap; white-space: nowrap; gap: 8px 20px; }
}
@media (max-width: 960px) {
  .site-header { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; }
  .has-menu .nav-toggle { display: inline-flex; }
  .has-menu .nav { display: none; position: absolute; top: calc(100% - 4px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 20px; border: 1px solid var(--line-3); background: var(--panel); box-shadow: 0 24px 48px rgba(8, 9, 30, .6); }
  .has-menu .nav.is-open { display: flex; animation: cardIn .25s ease backwards; }
  .has-menu .nav a.navlink { min-height: 48px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; font-size: 16px; }
  .has-menu .nav a.navlink[aria-current="page"] { background: var(--gold-tint); }
  .has-menu .nav .lang-switch { align-self: flex-start; margin: 8px 8px 4px; }
  .has-menu .nav .btn--pill { margin: 4px 8px 6px; }
}

/* ---------- Language switch (same idea as lantatravels.com) ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-3); border-radius: 999px; }
.lang-switch button { min-height: 36px; min-width: 44px; padding: 0 12px; border: none; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-switch button.active { background: var(--gold); color: var(--ink); }
.lang-switch button:hover:not(.active) { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; padding: 0 24px; border-radius: 14px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn--gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--line-3); color: var(--text); font-weight: 500; }
.btn--ghost:hover { border-color: var(--gold); color: var(--text); }
.btn--pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border-color: var(--gold); color: var(--gold); font-weight: 500; font-size: 15px; background: transparent; }
.btn--pill:hover { background: var(--gold-tint); color: var(--gold); }
.btn--sm { min-height: 44px; font-size: 14px; padding: 0 16px; }

.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--line-3); background: transparent; color: var(--text-2); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip:hover:not([aria-pressed="true"]) { border-color: var(--gold); }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.badge--gold { background: var(--gold-tint); color: var(--gold); }
.badge--coral { background: var(--coral-tint); color: var(--coral-text); }
.badge--plain { background: var(--panel-2); color: var(--soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__moon { position: absolute; right: 9%; top: 60px; width: 180px; height: 180px; animation: drift 9s ease-in-out infinite; }
.hero__moon-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: moonGlow 5s ease-in-out infinite; }
.hero__moon-cut { position: absolute; width: 168px; height: 168px; left: 52px; top: -22px; border-radius: 50%; background: var(--ink); }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--text); animation: twinkle 3.4s ease-in-out infinite; }
.lantern { position: absolute; bottom: -60px; border-radius: 12px 12px 9px 9px; background: var(--gold); animation: rise linear infinite, flicker 2.4s ease-in-out infinite; }
.hero__video { position: absolute; top: 0; left: 0; width: 100%; height: min(100%, 780px); object-fit: cover; opacity: 0; transition: opacity 1.4s ease; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
.hero__video.is-on { opacity: .85; }
.sky-haze { position: absolute; inset: 0; background: radial-gradient(circle at 82% 38%, rgba(232, 176, 75, .11), rgba(232, 176, 75, 0) 42%), radial-gradient(circle at 12% 62%, rgba(122, 108, 214, .12), rgba(122, 108, 214, 0) 40%); }
.orb { position: absolute; bottom: -30px; border-radius: 50%; opacity: 0; background: radial-gradient(circle, #FFF6D6 0%, #F8D77E 38%, rgba(232, 176, 75, 0) 72%); box-shadow: 0 0 14px 4px rgba(243, 203, 122, .55), 0 0 38px 12px rgba(232, 176, 75, .22); animation: riseUp linear infinite, flicker 2.6s ease-in-out infinite; }
.orb--spark { border-radius: 0; background: #FFE9A8; box-shadow: none; clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); filter: drop-shadow(0 0 6px rgba(255, 220, 130, .95)); animation: riseUp linear infinite, sparkle 2.6s ease-in-out infinite; }
.hero__water { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: var(--ink-deep); border-top: 1px solid var(--line); }
.ripple { position: absolute; height: 2px; border-radius: 2px; background: var(--gold); animation: shimmer 4s ease-in-out infinite; }
.hero__content { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-3); color: var(--soft); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.2; }
.hero__count { display: inline-block; color: var(--gold); background: linear-gradient(180deg, #FFE7A6, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(232, 176, 75, .35)); animation: pulse 2.6s ease-in-out 1s infinite; }
.hero__sub { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fade-1 { animation: fadeUp .7s ease backwards; }
.fade-2 { animation: fadeUp .8s .15s ease backwards; }
.fade-3 { animation: fadeUp .8s .3s ease backwards; }
.fade-4 { animation: fadeUp .8s .45s ease backwards; }

.hero--cal { min-height: 0; display: block; }
.hero--cal .hero__content { padding-top: 36px; padding-bottom: 170px; gap: 26px; align-items: stretch; }
.hero--cal .cal-layout { gap: 32px; }
.hero--cal .cal-card { padding: 26px; gap: 20px; }
.hero--cal .detail { padding: 28px; gap: 14px; }
.hero--cal .day, .hero--cal .day-blank { height: 54px; }
.hero--cal .day { border-radius: 16px; background: rgba(20, 22, 58, .7); }
.hero--cal .day--lucky, .hero--cal .day--hit { background: linear-gradient(160deg, #F6D68A, var(--gold) 65%); }
.hero--cal .day--mixed { background: rgba(42, 44, 88, .9); }
.hero--cal .day--avoid, .hero--cal .day--leave { background: transparent; }
.hero--cal .weekdays, .hero--cal .days { gap: 8px; }
.hero--cal h1 { font-size: clamp(34px, 6vw, 68px); text-shadow: 0 2px 24px rgba(16, 18, 51, .9); }
.hero--cal .hero-copy { padding-top: 5vh; padding-bottom: 2vh; }
.hero--cal .hero__sub { font-size: 17px; text-shadow: 0 1px 12px rgba(16, 18, 51, .95); }
.hero--cal .cal-card, .hero--cal .detail { background: rgba(29, 31, 71, .78); border-color: rgba(120, 124, 190, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(8, 9, 30, .5), inset 0 1px 0 rgba(255, 255, 255, .05); border-radius: 28px; }
.hero--cal .detail { position: static; animation: none; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 640px; }
.modes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.modes__label { font-size: 13px; color: var(--soft); margin-right: 4px; }
.chip--mode { min-height: 44px; padding: 0 18px; font-size: 15px; background: rgba(20, 22, 58, .72); }
.chip--mode[aria-pressed="true"] { background: linear-gradient(160deg, #F6D68A, var(--gold) 65%); box-shadow: 0 0 22px rgba(232, 176, 75, .4); }
.check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.check label { font-size: 14px; color: var(--soft); }
.check input[type="date"] { min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-3); background: rgba(20, 22, 58, .72); color: var(--text); font-family: inherit; font-size: 15px; color-scheme: dark; }
.check input[type="date"]:focus-visible { border-color: var(--gold); }
.check__msg { font-size: 13px; color: var(--coral-text); }
.check__msg:empty { display: none; }
.swap { animation: fadeUp .45s ease backwards; }
.detail.swap { animation: cardIn .45s ease backwards; }
.hero--compact { min-height: 400px; }
.hero--compact .hero__content { padding-top: 56px; padding-bottom: 64px; }
.today-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: rgba(20, 22, 58, .6); color: var(--text-2); font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; transition: border-color .2s ease; }
.today-chip:hover { border-color: var(--gold); color: var(--text); }
.today-chip[hidden] { display: none; }

/* ---------- Long weekends ---------- */
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__head h2 { font-size: 32px; }
.section__note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.section__note--wide { font-size: 15px; line-height: 1.6; color: var(--soft); max-width: 620px; }
.sector { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sector__label { font-size: 14px; color: var(--soft); }
.weekend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.wk-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s ease, border-color .25s ease; animation: fadeUp .7s ease backwards; }
.wk-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.wk-card:nth-child(2) { animation-delay: .1s; }
.wk-card:nth-child(3) { animation-delay: .2s; }
.wk-card:nth-child(4) { animation-delay: .3s; }
.wk-card[hidden] { display: none; }
.wk-card .badge { align-self: flex-start; font-size: 13px; padding: 5px 12px; }
.wk-card h3 { font-size: 21px; line-height: 1.35; }
.wk-card__why { font-size: 14px; color: var(--soft); line-height: 1.5; }
.daybar { display: flex; gap: 6px; }
.daybar span { flex: 1; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.daybar .off { background: var(--gold); color: var(--ink); }
.daybar .leave { border: 1.5px dashed var(--gold); color: var(--gold); }
.wk-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.wk-card__leave { color: var(--text); font-weight: 500; }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--soft); white-space: nowrap; }
.status.is-private { background: var(--coral-tint); color: var(--coral-text); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--soft); }
.legend span { display: flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.swatch--off { background: var(--gold); }
.swatch--leave { border: 1.5px dashed var(--gold); }
.empty-note { color: var(--soft); font-size: 15px; }

/* ---------- Lucky band ---------- */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.band__text { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.band__text h2 { font-size: 30px; }
.band__text p { font-size: 15px; line-height: 1.6; color: var(--soft); }
.band__text a { font-weight: 600; font-size: 15px; text-decoration: none; }
.lucky-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lucky { width: 92px; height: 104px; border-radius: 20px; background: var(--gold); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; animation: float 4s ease-in-out infinite; }
.lucky:hover { color: var(--ink); background: var(--gold-hover); }
.lucky:nth-child(2) { animation-delay: .4s; }
.lucky:nth-child(3) { animation-delay: .8s; }
.lucky:nth-child(4) { animation-delay: 1.2s; }
.lucky:nth-child(5) { animation-delay: 1.6s; }
.lucky small { font-size: 14px; font-weight: 600; }
.lucky strong { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; }

/* ---------- Homepage: share teaser, long-weekend teaser ---------- */
.band[hidden], .section[hidden] { display: none; }
.mini-story { position: relative; flex: none; width: 216px; height: 384px; padding: 22px 16px 18px; border-radius: 22px; border: 1px solid var(--line-3); background: var(--ink); color: var(--text); text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: border-color .25s ease; animation: float 5s ease-in-out infinite; }
.mini-story:hover { color: var(--text); border-color: var(--gold); }
.mini-story__brand { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 13px; font-weight: 700; }
.mini-story__ring { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 1.5px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mini-story__ring::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed var(--gold); opacity: .6; animation: spin 40s linear infinite; }
.mini-story__wd { font-family: var(--serif); font-size: 13px; font-weight: 500; }
.mini-story__num { font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: 1; color: var(--gold); }
.mini-story__month { font-size: 11px; color: var(--body); }
.mini-story__pill { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--gold-tint); color: var(--gold); }
.mini-story__foot { font-size: 11px; color: var(--muted); }
.teaser { background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.teaser h2 { font-size: 20px; line-height: 1.4; }
.teaser p { font-size: 15px; line-height: 1.5; color: var(--soft); margin-top: 6px; }

/* ---------- Subscribe ---------- */
.subscribe { max-width: 760px; margin: 0 auto; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.subscribe h2 { font-size: 30px; }
.subscribe p { font-size: 16px; line-height: 1.6; color: var(--soft); }
.subscribe__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.subscribe small { font-size: 13px; color: var(--muted); }
.float { animation: float 4s ease-in-out infinite; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--soft); text-decoration: none; }
.site-footer__links a:hover { color: var(--gold); }

/* ---------- Buddhist holy days page ---------- */
.wp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wp-item { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 12px 14px; }
.wp-item.is-special { border-color: var(--gold); }
.wp-date { flex: none; width: 64px; height: 74px; border-radius: 14px; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.wp-date small { font-size: 12px; font-weight: 600; color: var(--soft); }
.wp-date strong { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--gold); }
.wp-info { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text); }
.wp-info strong { font-weight: 600; }
.wp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.band > .section { padding-top: 64px; padding-bottom: 64px; }

/* ---------- Homepage topic links ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.topic { min-height: 84px; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; transition: transform .25s ease, border-color .25s ease; }
.topic:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); }
.topic strong { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.35; }
.topic span { font-size: 13px; color: var(--gold); }

/* ---------- Lucky colours page ---------- */
.sw { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-3); display: inline-block; }
.sw--lg { width: 56px; height: 56px; border-color: var(--text); }
.hero__sub--sw { display: flex; align-items: center; gap: 16px; }
.hero__sub--sw:empty { display: none; }
.color-card.is-today { border-color: var(--gold); }
.color-card__head { display: flex; align-items: center; gap: 14px; }
.color-card__head > div { flex: 1; }
.color-card__day { font-size: 13px; color: var(--muted); }
.color-card__verse { font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--body); }
.wp-note { font-size: 13px; line-height: 1.5; color: var(--soft); }

/* ---------- Auspicious hours page ---------- */
.yam-time { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.6; color: var(--text); }

/* ---------- Text pages (about, privacy, purpose pages) ---------- */
.prose--band { padding-top: 56px; padding-bottom: 56px; margin-left: auto; margin-right: auto; }
.prose--band h2 { margin-top: 0; }
.prose .lucky-row { margin: 4px 0; }
.prose .lucky strong { color: inherit; font-weight: 700; }
.prose .prose__small { font-size: 14px; color: var(--soft); }
.prose .prose__small a { font-weight: 600; text-decoration: none; }
.prose__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.prose { max-width: 760px; padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.3; }
.prose h2 { font-size: 22px; line-height: 1.4; margin-top: 18px; }
.prose p, .prose li { font-size: 16px; line-height: 1.75; color: var(--body); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .prose__meta { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Lucky-days calendar page ---------- */
.cal-page { padding-top: 16px; padding-bottom: 64px; }
.cal-intro { margin-bottom: 28px; display: flex; flex-direction: column; gap: 8px; }
.cal-intro h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.25; }
.cal-intro p { color: var(--soft); font-size: 15px; line-height: 1.6; max-width: 620px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cal-card { background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; }
.month-nav__title { display: flex; flex-direction: column; align-items: center; }
.month-nav__title strong { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.month-nav__title span { font-size: 12px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-3); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s ease; }
.icon-btn:hover:not(:disabled) { border-color: var(--gold); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekdays { font-size: 12px; color: var(--muted); text-align: center; }
.day { height: 48px; width: 100%; border-radius: 14px; border: 1.5px solid transparent; background: var(--ink); color: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; transition: opacity .25s ease, transform .2s ease; animation: dayIn .5s cubic-bezier(.2,.7,.2,1) backwards; }
.day:hover { transform: translateY(-2px); }
.day__n { font-size: 16px; font-weight: 600; line-height: 1; }
.day__dots { display: flex; gap: 3px; height: 5px; }
.dot { width: 5px; height: 5px; border-radius: 50%; }
.dot--gold { background: var(--gold); }
.dot--coral { background: var(--coral); }
.day--lucky, .day--hit { background: linear-gradient(160deg, #F6D68A, var(--gold) 65%); color: var(--ink); box-shadow: 0 0 16px rgba(232, 176, 75, .35); }
.day--lucky .dot--gold { background: var(--ink); }
.day--mixed { background: var(--panel-2); color: var(--text); border-color: var(--gold); }
.day--avoid { background: transparent; color: var(--text); border-color: var(--coral); }
.day--leave { background: transparent; color: var(--gold); border: 1.5px dashed var(--gold); }
.day.is-hit { animation-name: hitIn; animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .9, .3, 1.3); }
.dot--more { background: var(--muted); }
.day--hit .dot--more, .day--lucky .dot--more { background: var(--ink); opacity: .55; }
.lg--leave { border: 1.5px dashed var(--gold); }
.cal-legend .dot { width: 6px; height: 6px; }
.upcoming { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.upcoming__label { font-size: 13px; color: var(--muted); }
.up-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--ink); color: var(--text-2); font-family: inherit; font-size: 13px; cursor: pointer; transition: border-color .2s ease, color .2s ease; animation: fadeUp .45s ease backwards; }
.up-chip:hover { border-color: var(--gold); color: var(--gold); }
.detail__body { display: flex; flex-direction: column; gap: 8px; }
.detail__colour { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; text-decoration: none; }
.sw--sm { width: 18px; height: 18px; border-width: 1px; }
.detail .today-chip { align-self: flex-start; cursor: pointer; font-family: inherit; background: var(--ink); }
.detail [hidden] { display: none; }
.day.is-dim { opacity: .28; }
.day.is-selected { outline: 2px solid var(--text); outline-offset: 2px; box-shadow: 0 0 22px rgba(244, 239, 230, .35); }
.day.is-today .day__n { text-decoration: underline; text-underline-offset: 3px; }
.day-blank { height: 48px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--soft); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg--lucky { background: var(--gold); }
.lg--mixed { background: var(--panel-2); border: 1px solid var(--gold); }
.lg--avoid { border: 1.5px solid var(--coral); }
.detail { background: var(--panel); border: 1px solid var(--line-2); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; animation: cardIn .6s .4s ease backwards; }
.detail__label { font-size: 12px; color: var(--muted); }
.detail h2 { font-size: 22px; line-height: 1.35; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail__body { font-size: 15px; line-height: 1.6; color: var(--body); }
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.detail__actions .btn { flex: 1 1 160px; }
.detail__note { font-size: 13px; color: var(--muted); line-height: 1.55; }
.detail__note a { font-weight: 600; text-decoration: none; }
.next-lucky { font-size: 14px; color: var(--soft); }
.next-lucky a { font-weight: 600; text-decoration: none; }

/* ---------- Share card page ---------- */
.share-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px 32px; }
.card-frame { width: min(540px, 100%); }
.story { position: relative; overflow: hidden; width: 540px; height: 960px; background: var(--ink); color: var(--text); padding: 56px 48px 48px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; transform-origin: top left; border-radius: 24px; border: 1px solid var(--line-2); }
.story__sky { position: absolute; inset: 0; pointer-events: none; }
.story__brand { display: flex; align-items: center; gap: 10px; position: relative; }
.story__brand svg { animation: glow 3.2s ease-in-out infinite; }
.story__brand span { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.story__mid { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.story__kicker { font-size: 18px; letter-spacing: 0.2em; color: var(--muted); }
.story__ring { position: relative; width: 320px; height: 320px; border-radius: 50%; border: 2px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadeUp .8s ease backwards; }
.story__ring::before { content: ''; position: absolute; inset: -16px; border-radius: 50%; border: 1px dashed var(--gold); opacity: .6; animation: spin 40s linear infinite; }
.story__ring.is-avoid { border-color: var(--coral); }
.story__ring.is-avoid::before { border-color: var(--coral); }
.story__wd { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.story__num { font-family: var(--serif); font-size: 168px; font-weight: 700; line-height: 1; color: var(--gold); animation: fadeUp .9s .3s ease backwards; }
.story__ring.is-avoid .story__num { color: var(--coral-text); }
.story__month { font-size: 22px; color: var(--body); }
.story__pill { font-size: 20px; font-weight: 600; padding: 10px 22px; border-radius: 999px; background: var(--gold-tint); color: var(--gold); animation: fadeUp .8s .7s ease backwards; }
.story__pill.is-avoid { background: var(--coral-tint); color: var(--coral-text); }
.story__pill.is-plain { background: var(--panel-2); color: var(--soft); }
.story__use { font-size: 22px; line-height: 1.6; color: var(--text-2); max-width: 400px; }
.story__foot { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.story__foot span { font-size: 16px; color: var(--muted); }
.story__foot strong { font-size: 18px; font-weight: 600; }
.share-hint { font-size: 14px; color: var(--soft); text-align: center; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
}
@media (max-width: 600px) {
  .nav .soon { display: none; }
  .hero { min-height: 540px; }
  .hero__moon { width: 120px; height: 120px; right: 6%; top: 28px; opacity: .85; }
  .hero__moon-cut { width: 112px; height: 112px; left: 36px; top: -14px; }
  .hero__content { padding-top: 48px; padding-bottom: 120px; }
  .hero--cal .hero__content { padding-top: 20px; gap: 18px; }
  .hero--cal .hero-copy { padding-top: 3vh; padding-bottom: 1vh; }
  .hero__video { height: min(100%, 560px); }
  .hero--cal .cal-card { padding: 16px; }
  .hero--cal .detail { padding: 20px; }
  .hero--cal .day, .hero--cal .day-blank { height: 46px; }
  .hero--cal .weekdays, .hero--cal .days { gap: 6px; }
  .hero--cal .eyebrow { display: none; }
  .modes__label { display: none; }
  .modes { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 6px; scrollbar-width: none; }
  .modes::-webkit-scrollbar { display: none; }
  .chip--mode { flex: none; padding: 0 14px; font-size: 14px; }
  .section__head h2 { font-size: 26px; }
  .day { height: 44px; }
  .day-blank { height: 44px; }
  .cal-card { padding: 14px; }
}

/* ---------- Motion ---------- */
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .95; } 50% { transform: translate(18px, -340px); } 85% { opacity: .85; } 100% { transform: translate(-12px, -720px); opacity: 0; } }
@keyframes riseUp { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: .95; } 50% { transform: translate(var(--sway, 20px), calc(var(--rise, 700px) * -.5)); } 88% { opacity: .8; } 100% { transform: translate(calc(var(--sway, 20px) * -.6), calc(var(--rise, 700px) * -1)); opacity: 0; } }
@keyframes sparkle { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 220, 130, .7)); } 50% { filter: drop-shadow(0 0 10px rgba(255, 228, 150, 1)); } }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes moonGlow { 0%, 100% { box-shadow: 0 0 40px 8px rgba(232,176,75,.25); } 50% { box-shadow: 0 0 70px 18px rgba(232,176,75,.45); } }
@keyframes flicker { 0%, 100% { box-shadow: 0 0 18px 4px rgba(232,176,75,.40); } 50% { box-shadow: 0 0 28px 8px rgba(232,176,75,.65); } }
@keyframes shimmer { 0%, 100% { opacity: .15; transform: scaleX(.7); } 50% { opacity: .6; transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(232,176,75,0)); } 50% { filter: drop-shadow(0 0 8px rgba(232,176,75,.8)); } }
@keyframes dayIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes hitIn { 0% { opacity: 0; transform: scale(.5) rotate(-8deg); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
