/* Al-Nuray — site vitrine
   Couleurs et typo reprises de l'app (lib/theme.dart) : émeraude profond,
   or sable, Playfair Display pour les titres, Outfit pour le texte.
   Mouvements : transform/opacity uniquement, courbes « ease-out » franches,
   UI < 300 ms, gestes réduits si prefers-reduced-motion. */

:root {
  --bg: #0A1313;
  --bg-tint: #0D1A1A;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F3F0E8;
  --muted: rgba(243, 240, 232, 0.64);
  --faint: rgba(243, 240, 232, 0.42);
  --emerald: #0F3D3E;
  --emerald-2: #1A5F60;
  --gold: #C6A87C;
  --gold-2: #E2C899;
  --gold-ink: #1B1407;
  --danger: #F08A7E;
  --ok: #8FD3B0;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --topbar-h: 64px;
  --prayer-h: 48px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--prayer-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- Typo ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.lead { margin: 18px 0 0; max-width: 58ch; color: var(--muted); font-size: 1.12rem; font-weight: 300; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 24px -10px rgba(198,168,124,0.6); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: linear-gradient(180deg, #EBD4A8, var(--gold-2)); }
  .btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: var(--border-strong); }
}

/* ---------- En-tête fixe + barre des prières ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 19, 19, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
/* Bord adouci plutôt qu'un filet dur, là où le contenu passe dessous */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px;
  background: linear-gradient(to bottom, rgba(10,19,19,0.35), rgba(10,19,19,0));
  pointer-events: none;
}

.topbar-row { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 0.95rem; transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--text); background: var(--surface-2); } }

.prayer-bar { border-top: 1px solid rgba(255,255,255,0.05); }
.prayer-row { height: var(--prayer-h); display: flex; align-items: center; gap: 14px; }

.place {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px 0 8px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 0.88rem; font-weight: 500; flex-shrink: 0;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.place:active { transform: scale(0.97); }
.place svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.place .chev { stroke: var(--faint); transition: transform 200ms var(--ease-out); }
.place[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .place:hover { background: var(--surface-2); } }

.times { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex: 1; justify-content: center; }
.times li {
  display: flex; align-items: baseline; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted);
  transition: background-color 300ms ease, color 300ms ease;
}
.times li b { font-weight: 500; color: var(--faint); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.times li time { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); }
.times li.is-sun { opacity: 0.7; }
.times li.is-past time { color: var(--faint); }
.times li.is-next { background: rgba(198,168,124,0.14); box-shadow: inset 0 0 0 1px rgba(198,168,124,0.32); }
.times li.is-next b { color: var(--gold); }
.times li.is-next time { color: var(--gold-2); }

.next { display: none; }
.countdown { font-variant-numeric: tabular-nums; }
.hijri { font-size: 0.84rem; color: var(--faint); white-space: nowrap; flex-shrink: 0; }

/* Le panneau de réglages glisse sous la barre */
.prayer-settings {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 16px 0 18px;
  transform-origin: top center;
  animation: sheet-in 260ms var(--ease-out);
}
.prayer-settings[hidden] { display: none; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } }

.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.settings-grid label { display: grid; gap: 6px; font-size: 0.8rem; color: var(--faint); letter-spacing: 0.02em; }
.settings-note { grid-column: 1 / -1; margin: 0; font-size: 0.82rem; color: var(--faint); }
.settings-note.is-error { color: var(--danger); }

select, input, textarea {
  width: 100%;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px; /* évite le zoom auto d'iOS */
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6A87C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select option { background: #132222; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(198,168,124,0.6); background-color: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px rgba(198,168,124,0.12); }
textarea { resize: vertical; min-height: 130px; }
::placeholder { color: var(--faint); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--topbar-h) + var(--prayer-h) + clamp(48px, 9vw, 110px)) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 45% at 72% 38%, rgba(26,95,96,0.55), transparent 70%),
    radial-gradient(30% 35% at 85% 20%, rgba(198,168,124,0.16), transparent 70%),
    radial-gradient(35% 40% at 10% 10%, rgba(15,61,62,0.6), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { background: linear-gradient(180deg, #FFFDF7 30%, #D9CDB4); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 18px;
  border-radius: 16px;
  background: #F6F2E9; color: #101010;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.store:active { transform: scale(0.97); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 0.72rem; font-weight: 400; opacity: 0.75; }
.store strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .store:hover { background: #FFFFFF; } }

.hero-visual { position: relative; justify-self: center; width: min(100%, 340px); }

.phone {
  position: relative;
  aspect-ratio: 600 / 1333;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2A3535, #0E1515 60%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 80px -30px rgba(0,0,0,0.8),
    0 20px 40px -20px rgba(15,61,62,0.7);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
.phone-main { transform: rotate(2deg); }

.floating-card {
  position: absolute; left: -48px; bottom: 16%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px;
  background: rgba(20, 34, 34, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 40px -16px rgba(0,0,0,0.7);
}
.floating-card small { display: block; font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.floating-card strong { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(198,168,124,0.18); flex-shrink: 0; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg) 85%); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.card-wide { grid-column: span 2; background: linear-gradient(135deg, rgba(26,95,96,0.35), rgba(15,61,62,0.12) 60%); }
.card p { margin: 10px 0 0; color: var(--muted); font-weight: 300; max-width: 52ch; }
.icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px; margin-bottom: 18px;
  background: rgba(198,168,124,0.12);
  box-shadow: inset 0 0 0 1px rgba(198,168,124,0.22);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { background-color: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--border-strong); }
}

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); align-items: start; }
.gallery figure { margin: 0; }
.gallery .phone { max-width: 290px; margin-inline: auto; }
.gallery figure:nth-child(2) { margin-top: 48px; }
.gallery figcaption { max-width: 290px; margin: 22px auto 0; color: var(--muted); font-weight: 300; font-size: 0.98rem; }
.gallery figcaption strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

.privacy {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 56px); align-items: start;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  background: radial-gradient(80% 120% at 0% 0%, rgba(26,95,96,0.4), rgba(15,61,62,0.1) 60%, transparent), var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.privacy-mark { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: rgba(198,168,124,0.12); box-shadow: inset 0 0 0 1px rgba(198,168,124,0.25); }
.privacy-mark svg { width: 40px; height: 40px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 64ch; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 300; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(143,211,176,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FD3B0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact-points li { color: var(--muted); font-weight: 300; padding-left: 16px; border-left: 2px solid rgba(198,168,124,0.35); }
.contact-points span { display: block; color: var(--text); font-weight: 600; }

.form-card {
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: 28px;
  background: rgba(255,255,255,0.035);
  box-shadow: inset 0 0 0 1px var(--border), 0 40px 80px -40px rgba(0,0,0,0.6);
}

.segmented {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 22px;
  border-radius: 999px; background: rgba(0,0,0,0.28); box-shadow: inset 0 0 0 1px var(--border);
}
.segmented button {
  position: relative; z-index: 1; height: 40px; border: 0; background: none; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; color: var(--muted);
  transition: color 200ms ease;
}
.segmented button[aria-selected="true"] { color: var(--gold-ink); }
.segmented-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  transition: transform 280ms var(--ease-in-out);
}
.segmented[data-active="devis"] .segmented-pill { transform: translateX(100%); }

form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.opt { color: var(--faint); font-weight: 300; }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(240,138,126,0.7); }

.devis-only { display: none; }
form[data-type="devis"] .devis-only { display: grid; animation: field-in 240ms var(--ease-out); }
@keyframes field-in { from { opacity: 0; transform: translateY(-4px); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin: 0; font-size: 0.82rem; color: var(--faint); }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.92rem; text-align: center; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--danger); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer p { margin: 0; color: var(--faint); font-size: 0.9rem; }
.footer nav { display: flex; gap: 18px; margin-left: auto; }
.footer nav a { color: var(--muted); font-size: 0.92rem; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer nav a:hover { color: var(--text); } }

/* ---------- Apparition au défilement ---------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 600ms var(--ease-out) var(--d, 0ms);
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hijri { display: none; }
  .times li { padding: 5px 9px; }
}

@media (max-width: 920px) {
  :root { --topbar-h: 58px; }
  .nav { display: none; }
  .topbar-row .btn { margin-left: auto; }

  /* Mobile : seulement la prochaine prière, la liste complète se déplie */
  .prayer-row { gap: 10px; }
  .next {
    display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto;
    height: 32px; padding: 0 12px; border-radius: 999px; border: 0;
    background: rgba(198,168,124,0.14); box-shadow: inset 0 0 0 1px rgba(198,168,124,0.3);
    font-size: 0.88rem; line-height: 32px; white-space: nowrap;
    transition: transform 160ms var(--ease-out);
  }
  .next:active { transform: scale(0.97); }
  .next-label { color: var(--gold-2); font-weight: 600; }
  .countdown { color: var(--muted); }
  .times {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-wrap: wrap; gap: 6px; justify-content: flex-start;
    padding: 12px var(--gutter) 16px;
    background: rgba(10, 19, 19, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .prayer-bar { position: relative; }
  .prayer-bar.is-open .times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); animation: sheet-in 240ms var(--ease-out); }
  .times li { justify-content: space-between; background: var(--surface); padding: 9px 12px; border-radius: 12px; }
  .times li.is-next { background: rgba(198,168,124,0.14); }

  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid .btn { grid-column: 1 / -1; }

  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(78%, 300px); margin-top: 8px; }
  .floating-card { left: -20px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: center; }
  .gallery figure:nth-child(2) { margin-top: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { font-size: 1.12rem; }
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .row, .settings-grid { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .privacy-mark { width: 64px; height: 64px; border-radius: 20px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .footer nav { margin-left: 0; }
  .place span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Accessibilité ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; }
  .reveal.in { transition: opacity 300ms ease; }
  .prayer-settings, .prayer-bar.is-open .times, form[data-type="devis"] .devis-only { animation: none; }
  .segmented-pill { transition: none; }
  .btn:active, .store:active, .place:active, .next:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar, .floating-card, .times { background: #0E1A1A; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --border: rgba(255,255,255,0.3); --muted: rgba(243,240,232,0.85); --faint: rgba(243,240,232,0.7); }
}
