/* Rashi Mandal — taken from the logo: navy night, temple gold, moonlight text. */
:root {
  --night: #0A1428;
  --night-2: #0F1D38;
  --night-3: #16264A;
  --gold: #D6AE5C;
  --gold-hi: #EBCB86;
  --moon: #ECE6D6;
  --moon-dim: #B9B3A4;
  --moon-faint: #8D8879;
  --line: rgba(214, 174, 92, 0.22);
  --line-soft: rgba(236, 230, 214, 0.10);
  --danger: #F08F7E;
  --ok: #9CCB8E;

  --font-display: 'Tiro Devanagari Hindi', 'Tiro Devanagari Latin', Georgia, serif;
  --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* type scale: 1.25 ratio on 17px */
  --fs-0: 0.8rem;
  --fs-1: 1rem;
  --fs-2: 1.25rem;
  --fs-3: 1.5625rem;
  --fs-4: clamp(1.9rem, 1.4rem + 2vw, 2.45rem);
  --fs-5: clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius-s: 6px;
  --radius-m: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: var(--font-body);
  font-size: var(--fs-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-hi { line-height: 1.75; }
img { display: block; max-width: 100%; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--moon); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: var(--fs-0); }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--moon);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ------------------------------------------------------------------ header */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 20, 40, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead__row {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--moon); margin-right: auto; }
.brand img { border-radius: 50%; }
.brand__name { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1; }
.brand__hi { display: block; font-size: var(--fs-0); color: var(--gold); margin-top: 4px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--moon-dim); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-s); }
.site-nav a:hover { color: var(--moon); background: var(--line-soft); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn { border: 0; background: none; min-width: 44px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--moon-dim); font-weight: 600; white-space: nowrap; }
.lang__btn[lang="hi"] { font-family: var(--font-body); }
.lang__btn[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .masthead__row { gap: 12px; }
  .menu-btn {
    display: grid; place-items: center; order: 3; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer;
  }
  .menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after {
    display: block; width: 18px; height: 2px; background: var(--moon); position: relative; content: '';
  }
  .menu-btn__bar::before { position: absolute; top: -6px; }
  .menu-btn__bar::after { position: absolute; top: 6px; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--night-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .brand__name { font-size: var(--fs-1); }
}
@media (max-width: 480px) {
  .masthead__row { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand__hi { display: none; }
  .lang__btn { padding: 0 9px; font-size: .82rem; height: 32px; }
}

/* ------------------------------------------------------------------ hero + wheel */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(18px, 4.8vw, 64px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  overflow-x: clip; /* the rotating square disc's corners must not widen the page */
}
.hero__date { color: var(--gold); font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: var(--fs-5); max-width: 13ch; }
.hero__lede { color: var(--moon-dim); font-size: var(--fs-2); line-height: 1.5; margin-top: 18px; max-width: 34ch; }

.finder { margin-top: 36px; max-width: 26rem; }
.finder__label { display: block; font-weight: 600; margin-bottom: 8px; }
.finder__row { display: flex; gap: 8px; }
.finder__hint { font-size: var(--fs-0); color: var(--moon-faint); margin-top: 6px; }
input[type="date"], input[type="time"], input[type="text"], input[type="email"] {
  min-height: 44px; width: 100%; padding: 8px 14px;
  background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--moon); color-scheme: dark;
}
input::placeholder { color: var(--moon-faint); }
input:focus-visible { border-color: var(--gold); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--danger); }

/* The wheel scales with its own width (container query units), so the
   ring, names and centre stay in proportion from phone to desktop. */
.wheel-wrap {
  position: relative; width: min(560px, 100%); aspect-ratio: 1; justify-self: center;
  container-type: inline-size;
  --band: clamp(30px, 8.6cqw, 50px);           /* distance from rim to sign centres */
  --r: calc(50cqw - var(--band));
}
.wheel-wrap::before {                          /* gold rim (static) */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--gold); pointer-events: none; z-index: 1;
}
.wheel-wrap::after {                           /* pointer marking the current sign */
  content: ''; position: absolute; left: 50%; top: -11px; margin-left: -7px; z-index: 2;
  border: 7px solid transparent; border-top: 10px solid var(--gold);
}
.wheel {
  position: absolute; inset: 0; border-radius: 50%;
  --turn: 0deg;
  transform: rotate(var(--turn));
  will-change: transform;
}
.wheel::before {                               /* engraved spokes between signs */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-conic-gradient(from -15deg, var(--line) 0deg 0.35deg, transparent 0.35deg 30deg),
    radial-gradient(circle closest-side, var(--night-2) 0%, var(--night) 100%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 49%, #000 49.5%);
          mask: radial-gradient(circle closest-side, transparent 49%, #000 49.5%);
}
.wheel__sign {
  --w: clamp(56px, 16cqw, 90px);
  --h: clamp(50px, 13cqw, 74px);
  --a: calc(var(--i) * -30deg);                /* counter-clockwise layout, clockwise spin */
  position: absolute; left: 50%; top: 50%;
  width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * (var(--a) + var(--turn))));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  color: var(--moon-dim); line-height: 1.1; cursor: pointer;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.wheel__glyph { font-size: clamp(1rem, 4.4cqw, 1.55rem); line-height: 1; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', var(--font-display); }
.wheel__en { font-size: clamp(.56rem, 2.25cqw, .8rem); font-weight: 600; margin-top: 4px; letter-spacing: .01em; }
.wheel__hi { font-size: clamp(.54rem, 2.2cqw, .78rem); color: var(--gold); margin-top: 1px; }
.wheel__sign:hover { color: var(--moon); border-color: var(--line); }
.wheel__sign[aria-checked="true"] {
  background: color-mix(in srgb, var(--hue) 50%, var(--night-2));
  border-color: var(--hue); color: #fff;
  box-shadow: 0 0 0 4px rgba(214, 174, 92, .14);
}
.wheel__sign[aria-checked="true"] .wheel__hi { color: var(--gold-hi); }

.wheel__center {                               /* smaller centre, leaves room for the name ring */
  position: absolute; inset: 26%; border-radius: 50%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 3cqw; gap: 1.1cqw;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--hue, var(--gold)) 24%, var(--night-2)), var(--night) 78%);
  border: 1px solid var(--gold);
}
.wheel__big-glyph { font-size: clamp(1.1rem, 5cqw, 1.9rem); line-height: 1; color: var(--hue, var(--gold)); font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', var(--font-display); }
.wheel__name { font-family: var(--font-display); font-size: clamp(1rem, 4.6cqw, 1.6rem); line-height: 1.1; }
.wheel__punch { font-family: var(--font-display); font-size: clamp(.7rem, 2.7cqw, 1rem); line-height: 1.3; max-width: 38cqw; }
.wheel__punch--muted { color: var(--moon-faint); }
.wheel__center .lucky { justify-content: center; gap: 4px; }
.wheel__center .chip { font-size: clamp(.62rem, 2.1cqw, .74rem); padding: 2px 8px; }
.wheel__center .btn--small { min-height: 30px; padding: 0 12px; font-size: clamp(.68rem, 2.4cqw, .8rem); }
@container (max-width: 430px) {
  .wheel__center .lucky { display: none; }
}
.wheel__toggle {
  position: absolute; right: 1%; bottom: 1%; width: 44px; height: 44px; border-radius: 50%; z-index: 2;
  border: 1px solid var(--line); background: var(--night); cursor: pointer; display: grid; place-items: center;
}
.wheel__toggle-icon { width: 12px; height: 14px; border-left: 4px solid var(--moon-dim); border-right: 4px solid var(--moon-dim); }
.wheel__toggle.is-paused .wheel__toggle-icon { width: 0; height: 0; border: 8px solid transparent; border-left: 13px solid var(--moon-dim); border-right: 0; margin-left: 5px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 22px; }
  .hero h1, .hero__lede { max-width: none; }
  .wheel-wrap { order: -1; }
}
@media (max-width: 480px) {
  .finder__row { flex-direction: column; }
}

/* ------------------------------------------------------------------ chips */
.lucky { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-0); padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(236, 230, 214, .04); color: var(--moon-dim);
}
.chip b { color: var(--moon); font-weight: 600; }
.chip__label { color: var(--moon-faint); }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); flex: none; }

/* ------------------------------------------------------------------ sections */
.signs, .shop { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: var(--fs-4); }
.signs__updated, .shop__lede { color: var(--moon-faint); font-size: var(--fs-0); max-width: 52ch; }
.notice { padding: 14px 18px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--night-2); margin-bottom: 24px; color: var(--moon-dim); }
.notice--error { border-color: var(--danger); }

/* ------------------------------------------------------------------ tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 22px 20px; border-radius: var(--radius-m);
  background: var(--night-2); border: 1px solid var(--line-soft);
  border-top: 3px solid var(--hue);
}
.tile--mine { grid-column: 1 / -1; border-color: var(--line); border-top-color: var(--hue); background: linear-gradient(120deg, color-mix(in srgb, var(--hue) 14%, var(--night-2)), var(--night-2) 55%); }
.tile--mine .tile__text { max-width: 70ch; }
.tile--flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--gold); } }
.tile__head { display: flex; align-items: center; gap: 14px; }
.tile__glyph {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--hue); color: #fff; font-size: 1.4rem;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', var(--font-display);
}
.tile__name { font-size: var(--fs-3); line-height: 1.05; }
.tile__alt { font-family: var(--font-body); font-size: var(--fs-0); color: var(--moon-faint); margin-left: 8px; }
.tile__dates { font-size: var(--fs-0); color: var(--moon-faint); margin-top: 2px; }
.tile__badge { margin-left: auto; align-self: flex-start; font-size: var(--fs-0); color: var(--night); background: var(--gold); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.tile__punch { font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.35; color: var(--moon); }
.tile__text { color: var(--moon-dim); }
.tile__more {
  align-self: flex-start; margin-top: auto; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--gold-hi); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px;
}
.tile__more:hover { text-decoration-color: var(--gold-hi); }

.tile--skeleton .bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--night-3), #1d3060, var(--night-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.tile--skeleton .bar--short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ personal */
.personal {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: clamp(28px, 5vw, 72px); align-items: start;
  border-top: 1px solid var(--line-soft);
}
.personal h2 { font-size: var(--fs-4); max-width: 18ch; margin-bottom: 16px; }
.personal__copy p { color: var(--moon-dim); max-width: 46ch; }
.personal__privacy { margin-top: 14px; font-size: var(--fs-0); color: var(--moon-faint) !important; }
.personal__form { background: var(--night-2); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-0); color: var(--moon-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.personal__result { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.personal__sign b { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2); color: var(--gold-hi); }
.personal__note { font-size: var(--fs-0); color: var(--moon-faint); }
.place { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.place legend { font-weight: 600; font-size: var(--fs-0); color: var(--moon-dim); padding: 0; margin-bottom: 6px; }
.place-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.place-toggle__btn {
  min-height: 40px; padding: 4px 8px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: transparent; color: var(--moon-dim); font-size: var(--fs-0); font-weight: 600; cursor: pointer; line-height: 1.2;
}
.place-toggle__btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.place-mode { display: grid; gap: 8px; }
.field__label { font-weight: 600; font-size: var(--fs-0); color: var(--moon-dim); }
.field__opt { font-weight: 400; color: var(--moon-faint); }
.field__hint { font-size: .75rem; color: var(--moon-faint); }
.upload {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 72px; padding: 14px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: var(--radius-s); color: var(--moon-dim); font-size: var(--fs-0);
  transition: border-color .15s ease, color .15s ease;
}
.upload:hover, .upload.is-drag { border-color: var(--gold); color: var(--moon); }
.upload:focus-within { border-color: var(--gold); outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-preview { display: flex; align-items: center; gap: 10px; font-size: var(--fs-0); color: var(--moon-dim); }
.upload-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--line); flex: none; }
.upload-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-error { color: var(--danger); font-size: var(--fs-0); }
@media (max-width: 820px) {
  .personal { grid-template-columns: 1fr; }
  .field-row:not(.field-row--keep) { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ shop */
.shop__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.product { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-m); border: 1px solid var(--line-soft); }
.product__icon { font-size: 1.6rem; }
.product__name { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-1); line-height: 1.35; }
.product__price { color: var(--gold-hi); font-weight: 600; }
.product__cta { font-size: var(--fs-0); }

/* ------------------------------------------------------------------ disclaimer + footer */
.disclaimer { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 48px; }
.disclaimer h2 { font-size: var(--fs-2); margin-bottom: 8px; }
.disclaimer p { color: var(--moon-faint); font-size: var(--fs-0); max-width: 90ch; }
.footer { background: #070F1F; border-top: 1px solid var(--line); }
.footer__grid {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 24px;
  display: grid; grid-template-columns: auto minmax(0, 28rem) auto; gap: 32px 56px; align-items: start;
}
.brand--footer .brand__name { font-size: var(--fs-2); }
.news__title { font-size: var(--fs-2); margin-bottom: 12px; }
.news__row { display: flex; gap: 8px; }
.news__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: var(--fs-0); color: var(--moon-dim); }
.news__consent input { margin-top: 4px; accent-color: var(--gold); }
.news__msg { margin-top: 8px; font-size: var(--fs-0); min-height: 1.4em; }
.news__msg[data-state="ok"] { color: var(--ok); }
.news__msg[data-state="err"] { color: var(--danger); }
#turnstile { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.footer__links { display: grid; gap: 10px; justify-items: start; font-size: var(--fs-0); }
.footer__links a { color: var(--moon-dim); }
.footer__legal { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 32px; font-size: var(--fs-0); color: var(--moon-faint); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } .news__row { flex-direction: column; } }

/* ------------------------------------------------------------------ reading dialog */
.reading {
  width: min(680px, calc(100vw - 24px)); max-height: min(88vh, 900px); padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--night-2); color: var(--moon);
  display: none; flex-direction: column; overflow: hidden;
}
.reading[open] { display: flex; }
.reading::backdrop { background: rgba(4, 8, 18, .72); backdrop-filter: blur(3px); }
.reading__head {
  display: flex; align-items: center; gap: 16px; padding: 22px 22px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 55%, var(--night-2)), var(--night-2) 80%);
  border-bottom: 1px solid var(--line-soft);
}
.reading__glyph {
  width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--night); border: 1px solid var(--gold); font-size: 1.8rem;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', var(--font-display);
}
.reading__name { font-size: var(--fs-4); line-height: 1; }
.reading__alt { font-family: var(--font-body); font-size: var(--fs-1); color: var(--moon-dim); margin-left: 10px; }
.reading__dates { color: var(--moon-dim); font-size: var(--fs-0); margin-top: 4px; }
.reading__close { margin-left: auto; align-self: flex-start; font-size: 1rem; }
.reading__body { padding: 22px 26px 8px; overflow-y: auto; display: grid; gap: 16px; }
.reading__punch { font-family: var(--font-display); font-size: var(--fs-3); line-height: 1.3; color: var(--gold-hi); max-width: 34ch; }
.reading__text p { color: var(--moon); max-width: 64ch; }
.reading__text p + p { margin-top: 12px; }
.reading__foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line-soft); }
.reading__foot .btn--ghost { margin-left: auto; }
@media (max-width: 520px) {
  .reading { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .reading__foot { flex-wrap: wrap; }
  .reading__foot .btn { flex: 1; }
}

/* ------------------------------------------------------------------ consent + toast */
.consent {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 560px;
  background: var(--night-3); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.consent h2 { font-size: var(--fs-2); margin-bottom: 6px; }
.consent p { color: var(--moon-dim); font-size: var(--fs-0); }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.consent__more { display: inline-block; margin-top: 10px; font-size: var(--fs-0); }
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--moon); color: var(--night); padding: 10px 18px; border-radius: 999px; font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ privacy page */
.doc { max-width: 72ch; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.doc h1 { font-size: var(--fs-4); margin-bottom: 18px; }
.doc h2 { font-size: var(--fs-2); margin: 32px 0 10px; }
.doc p, .doc li { color: var(--moon-dim); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-0); margin-top: 8px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.doc th { color: var(--moon); }

/* ------------------------------------------------------------------ personal report: offer, palms, camera, notice */
.personal__offer {
  font-family: var(--font-display); font-size: var(--fs-2); line-height: 1.3; color: var(--gold-hi);
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.personal__points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--moon-dim); }
.personal__points li { padding-left: 22px; position: relative; }
.personal__points li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: .8em; top: .25em; }

.palms { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.palms legend { font-weight: 600; font-size: var(--fs-0); color: var(--moon-dim); padding: 0; margin-bottom: 4px; }
.palm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.palm {
  display: grid; gap: 8px; align-content: start; padding: 10px; min-width: 0;
  border: 1px solid var(--line-soft); border-radius: var(--radius-s); background: rgba(10, 20, 40, .35);
  transition: border-color .15s ease;
}
.palm.is-drag { border-color: var(--gold); }
.palm[data-state="ok"] { border-color: var(--ok); }
.palm[data-state="fail"], .palm[data-state="bad"], .palm[data-state="error"], .palm[data-state="dark"] { border-color: var(--danger); }
.palm__title { font-weight: 600; font-size: var(--fs-0); }
.palm__drop { min-height: 110px; flex-direction: column; gap: 4px; }
.palm__preview { position: relative; aspect-ratio: 3 / 4; max-height: 300px; margin: 0 auto; width: 100%; border-radius: var(--radius-s); overflow: hidden; background: var(--night); }
.palm__preview img { width: 100%; height: 100%; object-fit: contain; }
.palm[data-state="checking"] .palm__preview::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(214, 174, 92, .25) 50%, transparent 70%);
  background-size: 250% 100%; animation: shimmer 1.3s linear infinite;
}
.palm__status { font-size: .78rem; line-height: 1.4; }
.palm__status--checking { color: var(--moon-dim); }
.palm__status--ok { color: var(--ok); }
.palm__status--ok::before { content: '✓ '; }
.palm__status--fail, .palm__status--bad, .palm__status--error, .palm__status--dark { color: var(--danger); }
.palm__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.palm__actions .btn--small { min-height: 34px; padding: 0 12px; font-size: .78rem; }
.palm__retry { cursor: pointer; position: relative; }
@media (max-width: 420px) { .palm-grid { grid-template-columns: 1fr; } }

#personal-submit:disabled { background: var(--night-3); color: var(--moon-faint); border-color: var(--line-soft); cursor: not-allowed; }
.submit-hint { text-align: center; margin-top: -4px; }

.camera, .confirm {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--night-2); color: var(--moon);
}
.camera::backdrop, .confirm::backdrop { background: rgba(4, 8, 18, .78); backdrop-filter: blur(3px); }
.camera { width: min(640px, calc(100vw - 24px)); }
.camera__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.camera__head h2 { font-size: var(--fs-2); }
.camera__stage { position: relative; background: #000; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; }
.camera__stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera__stage video.is-mirrored { transform: scaleX(-1); }
.camera__stage { overflow: hidden; }
.camera__guide {                     /* only this area is saved in the photo */
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 90%; aspect-ratio: 3 / 4; max-width: 86%;
  border: 2px dashed rgba(235, 203, 134, .9); border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .62); pointer-events: none;
}
.palm__reason { font-size: .74rem; color: var(--moon-faint); margin-top: -4px; }
.camera__tip { padding: 12px 16px 0; color: var(--moon-dim); font-size: var(--fs-0); }
.camera .form-error { padding: 8px 16px 0; }
.camera__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px 16px; flex-wrap: wrap; }
.confirm { width: min(480px, calc(100vw - 32px)); padding: 22px; }
.confirm h2 { font-size: var(--fs-3); margin-bottom: 10px; }
.confirm p { color: var(--moon-dim); }
.confirm__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .camera { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
  .camera__stage { aspect-ratio: 3 / 4; }
  .camera__foot .btn { flex: 1; }
}

/* ------------------------------------------------------------------ ivory surfaces: header, report form, disclaimer
   Components use the colour variables above, so each ivory surface just re-points them:
   text becomes deep ink, rules become soft gold, and gold text darkens enough to read on cream. */
:root {
  --ivory: #FBF8F1;
  --ink: #1B2440;
  --ink-soft: #4A5368;
  --ink-faint: #6B7183;
  --rule: #DCC99B;
  --rule-soft: #EADFC6;
  --gold-deep: #84601F;   /* gold text on ivory (AA contrast) */
}
.masthead, .personal__form, .disclaimer {
  --moon: var(--ink);
  --moon-dim: var(--ink-soft);
  --moon-faint: var(--ink-faint);
  --line: var(--rule);
  --line-soft: var(--rule-soft);
  --gold-hi: var(--gold-deep);
  --danger: #B3261E;
  --ok: #2E7D32;
}

/* Header */
.masthead {
  --night-2: var(--ivory);                 /* mobile menu panel */
  background: rgba(251, 248, 241, .97);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(214, 174, 92, .25);
}
.masthead .brand__hi { color: #9C7128; }
.masthead .lang { border-color: var(--rule); }
.masthead .lang__btn[aria-pressed="true"] { background: var(--night); color: #F3D9A0; }
.masthead .site-nav a:hover { color: var(--ink); background: var(--rule-soft); }

/* Personalised report form: an ivory card on the night sky */
.personal__form {
  --night-2: #FFFFFF;                      /* input fields */
  --night-3: #ECE4D0;                      /* disabled button */
  background: var(--ivory);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  color: var(--ink);
}
.personal__form input[type="date"], .personal__form input[type="time"],
.personal__form input[type="text"], .personal__form input[type="email"] {
  color-scheme: light;
  border-color: #D9CDB0;
}
.personal__form input:focus-visible { border-color: var(--gold); }
.personal__form .personal__offer { color: var(--gold-deep); border-bottom-color: var(--rule); }
.personal__form .palm { background: #FFFDF8; }
.personal__form .palm__preview { background: #1B2440; }
.personal__form .place-toggle__btn[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #F3D9A0; }

/* Disclaimer: full-width ivory band between the page and the footer */
.disclaimer {
  max-width: none;
  background: var(--ivory);
  border-top: 1px solid var(--rule);
  padding: 32px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 40px;
  color: var(--ink);
}

/* Temporarily hidden sections */
#personal,
#shop,
a[href="#personal"],
a[href="#shop"] {
  display: none !important;
}

/* Newsletter is switched off with the hidden attribute on #news-form (index.html).
   Close the empty middle column of the footer while it is off. */
.footer__grid:has(> #news-form[hidden]) { grid-template-columns: auto auto; justify-content: space-between; }
@media (max-width: 900px) { .footer__grid:has(> #news-form[hidden]) { grid-template-columns: 1fr; } }
