:root {
  --sky1: #141228;
  --sky2: #2b2148;
  --sky3: #4a3466;
  --horizon: #8c5a7a;
  --glow: #ffcf8a;
  --glow-deep: #f5a35c;
  --milk: #fff6e8;
  --lavender: #b8a8e0;
  --rose: #ff8fa8;
  --ink: #241f3d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
button, input, select {
  -webkit-appearance: none; /* sans ça, iOS/Safari repeint ses boutons système par-dessus nos styles */
  appearance: none;
}
body {
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 45%, var(--sky3) 78%, var(--horizon) 100%);
  background-attachment: fixed;
  color: var(--milk);
  font-family: "Avenir Next", "Nunito", "Trebuchet MS", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mono { font-family: ui-monospace, "SF Mono", "Courier New", monospace; }

/* ===== ciel vivant ===== */
.aurora {
  position: fixed; top: -10%; left: -20%; right: -20%; height: 55%;
  /* dégradé auto-adouci : pas de filter:blur() (trop coûteux en GPU, ça chauffe) */
  background: linear-gradient(100deg, transparent 12%, rgba(184,168,224,0.05) 30%, rgba(184,168,224,0.11) 42%, rgba(255,143,168,0.07) 55%, rgba(255,143,168,0.03) 65%, transparent 80%);
  pointer-events: none; z-index: 0;
  will-change: transform;
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translateX(-4%) skewX(-4deg); opacity: 0.7; }
  to { transform: translateX(4%) skewX(4deg); opacity: 1; }
}
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.stars span { position: absolute; background: var(--milk); border-radius: 50%; animation: twinkle ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.9; } }
.shooting {
  position: fixed; width: 90px; height: 1.5px;
  background: linear-gradient(90deg, var(--milk), transparent);
  border-radius: 2px; pointer-events: none; z-index: 0;
  opacity: 0; transform: rotate(-30deg);
}
.shooting.go { animation: shoot 1.1s ease-out; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-30deg) translateX(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-30deg) translateX(-320px); }
}
.moon-sky {
  position: fixed; top: 60px; right: 8%;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--glow); z-index: 0;
  animation: moonhalo 5s ease-in-out infinite;
}
.moon-sky::before {
  content: ""; position: absolute; top: -9px; right: -11px;
  width: 50px; height: 50px; border-radius: 50%; background: var(--sky1);
}
@keyframes moonhalo {
  0%, 100% { box-shadow: 0 0 30px rgba(255,207,138,0.4), 0 0 80px rgba(255,207,138,0.15); }
  50% { box-shadow: 0 0 45px rgba(255,207,138,0.65), 0 0 110px rgba(255,207,138,0.3); }
}
.firefly {
  position: fixed; width: 4px; height: 4px; border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow), 0 0 20px rgba(255,207,138,0.5);
  pointer-events: none; z-index: 1;
  animation: drift ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0); opacity: 0.9; }
  to { transform: translate(45px, -35px); opacity: 0.25; }
}
.mist {
  position: fixed; bottom: 0; left: -30%;
  width: 160%; height: 160px;
  background: linear-gradient(180deg, transparent, rgba(184,168,224,0.04) 25%, rgba(184,168,224,0.09) 55%, rgba(140,90,122,0.16));
  pointer-events: none; z-index: 1;
  will-change: transform;
  animation: mist 22s linear infinite alternate;
}
@keyframes mist { from { transform: translateX(0); } to { transform: translateX(9%); } }

/* safe area iPhone (encoche + coins arrondis) : viewport-fit=cover oblige */
.container {
  max-width: 760px; margin: 0 auto;
  padding: calc(30px + env(safe-area-inset-top, 0px))
           calc(16px + env(safe-area-inset-right, 0px))
           0
           calc(16px + env(safe-area-inset-left, 0px));
  position: relative; z-index: 2;
}

/* ===== header ===== */
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.moon-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 30px rgba(255,207,138,0.6);
  position: relative; overflow: hidden;
}
.moon-logo::after {
  content: ""; position: absolute; top: -8px; right: -8px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--sky2);
}
.brand h1 { font-size: 20px; font-weight: 700; }
.brand p { font-size: 11px; opacity: 0.6; }
.user-pill {
  background: rgba(255,246,232,0.1);
  border: 1px solid rgba(255,246,232,0.18);
  border-radius: 30px; padding: 8px 16px;
  font-size: 12px; color: var(--milk);
  font-family: inherit; cursor: pointer;
}
.user-pill:hover { border-color: var(--glow); }
.user-pill b { color: var(--glow); }

/* ===== panneaux ===== */
.dial-card, .panel, .panel-details {
  background: rgba(23,20,44,0.82); /* plus opaque : remplace le backdrop-filter (coûteux) */
  border: 1px solid rgba(184,168,224,0.25);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.panel h2 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.fine { font-size: 11px; opacity: 0.55; line-height: 1.6; margin-top: 10px; }
.error { color: var(--rose); font-size: 12px; margin: 8px 0; }

/* ===== cadran ===== */
.dial { position: relative; height: 54px; background: rgba(255,246,232,0.06); border-radius: 14px; margin-bottom: 22px; overflow: hidden; }
.dial .ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 18px; align-items: flex-end; }
.dial .ticks i { width: 1px; height: 12px; background: rgba(255,246,232,0.3); }
.dial .ticks i:nth-child(4n+1) { height: 20px; background: rgba(255,246,232,0.5); }
.dial .freqs { position: absolute; top: 6px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 14px; font-size: 9px; letter-spacing: 1px; opacity: 0.55; }
.dial .needle {
  position: absolute; top: 0; bottom: 0; left: 38%;
  width: 3px; background: var(--glow);
  box-shadow: 0 0 12px var(--glow);
  border-radius: 2px;
  transition: left 1.2s cubic-bezier(0.3, 0, 0.2, 1);
  animation: needlewobble 4s ease-in-out infinite;
}
@keyframes needlewobble { 0%, 100% { margin-left: 0; } 30% { margin-left: 1.5px; } 65% { margin-left: -1.5px; } }
.note {
  position: absolute; font-size: 13px; color: var(--lavender);
  opacity: 0; pointer-events: none;
  animation: floatnote 4s ease-out infinite;
}
@keyframes floatnote {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  15% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(14px, -46px) rotate(18deg); }
}

.now { text-align: center; margin-bottom: 22px; }
.now .hint { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--lavender); margin-bottom: 8px; min-height: 14px; }
.now .hint.generating { animation: twinkle 1.2s ease-in-out infinite; color: var(--glow); }
.now .title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.now .sub { font-size: 13px; opacity: 0.6; min-height: 18px; }

.controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 22px; }
.ctl {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(255,246,232,0.3);
  background: transparent; color: var(--milk);
  font-size: 18px; cursor: pointer; transition: all 0.15s;
}
.ctl:hover { border-color: var(--glow); color: var(--glow); transform: scale(1.06); }
.play-wrap { position: relative; }
.play-wrap::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,207,138,0.35), transparent 70%);
  animation: breathe 3.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
.ctl.play {
  position: relative; width: 76px; height: 76px;
  background: var(--glow); border: none; color: var(--ink);
  font-size: 26px;
  box-shadow: 0 6px 30px rgba(255,207,138,0.45);
}
.ctl.heart:hover { border-color: var(--rose); color: var(--rose); }
.ctl.heart.saved { background: var(--rose); border-color: var(--rose); color: var(--ink); animation: pop 0.35s ease; }
@keyframes pop { 40% { transform: scale(1.3); } }

.seed-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.seed-tag {
  background: rgba(255,207,138,0.15);
  border: 1px solid rgba(255,207,138,0.4);
  color: var(--glow); border-radius: 30px;
  padding: 9px 18px; font-size: 13px; letter-spacing: 1px;
  overflow-wrap: anywhere;
}
.link-btn {
  background: none; border: none; color: var(--lavender);
  font-family: inherit; font-size: 12px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--milk); }

/* ===== options : ambiance + canal + rotation (contrôles segmentés) ===== */
.opts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(184,168,224,0.15);
}
.opt-group {
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(184,168,224,0.22);
  border-radius: 30px;
  padding: 4px 6px 4px 14px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}
.opt-lbl {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--lavender); opacity: 0.8; margin-right: 8px;
}
.opt-chip {
  background: transparent;
  border: none;
  color: rgba(255,246,232,0.7);
  border-radius: 22px;
  padding: 8px 14px;
  font-family: inherit; font-size: 11.5px; font-weight: 700;
  cursor: pointer;
  transition: color 0.12s, background 0.12s, box-shadow 0.12s;
}
.opt-chip:hover { color: var(--glow); background: rgba(255,246,232,0.06); }
.opt-chip.active {
  background: var(--glow);
  color: var(--ink);
  box-shadow: 0 2px 14px color-mix(in srgb, var(--glow) 45%, transparent), inset 0 -2px 0 rgba(0,0,0,0.15);
}
.opt-chip.active:hover { color: var(--ink); }

/* ===== bac à sable ===== */
.sb-root { padding: 0 22px 20px; }
.sb-intro { margin: 0 0 14px; }
.sb-section h3 {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--lavender); opacity: 0.8;
  margin: 16px 0 8px;
}
.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 4px 20px;
}
.sb-row {
  display: grid;
  grid-template-columns: 1fr 96px 42px;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}
.sb-name { color: rgba(255,246,232,0.78); }
.sb-val {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px; color: var(--glow);
  text-align: right;
}
.sb-select {
  grid-column: 2 / 4;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(184,168,224,0.3);
  border-radius: 20px;
  color: var(--milk);
  font-family: inherit; font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
}
.sb-check {
  width: 42px; height: 22px;
  border-radius: 20px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(184,168,224,0.3);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.sb-check::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,246,232,0.5);
  transition: transform 0.15s, background 0.15s;
}
.sb-check:checked { background: var(--glow); border-color: var(--glow); }
.sb-check:checked::after { transform: translateX(20px); background: var(--ink); }
.sb-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 3px;
  background: rgba(255,246,232,0.18);
  cursor: pointer;
}
.sb-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--glow); border: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  cursor: pointer;
}
.sb-row input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--glow); border: none; cursor: pointer;
}
.sb-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid rgba(184,168,224,0.15);
}

/* ===== la pile ===== */
.pile-list { padding: 0 20px 16px; }
.pile-time { font-size: 10px; opacity: 0.4; white-space: nowrap; }
.pile-save {
  background: none; border: none;
  color: var(--rose); font-size: 16px;
  cursor: pointer; padding: 6px;
}
.pile-save:hover { transform: scale(1.2); }

/* ===== recevoir ===== */
.receive-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.seed-input {
  flex: 1; min-width: 200px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(184,168,224,0.35);
  border-radius: 30px;
  padding: 11px 18px;
  color: var(--milk); font-size: 13px;
}
.seed-input:focus { outline: none; border-color: var(--glow); }
.seed-input::placeholder { color: rgba(255,246,232,0.35); }

.btn-glow {
  background: var(--glow); color: var(--ink);
  border: none; border-radius: 30px;
  padding: 11px 20px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,207,138,0.35);
}
.btn-glow:hover { background: var(--glow-deep); }
.pill {
  display: inline-block;
  border: 1px solid rgba(255,246,232,0.3);
  background: transparent; color: var(--milk);
  border-radius: 30px; padding: 10px 18px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.pill:hover { border-color: var(--glow); color: var(--glow); }

/* ===== recette ===== */
.panel-details { padding: 0; }
summary {
  padding: 18px 26px; font-size: 13px; font-weight: 600;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "▾"; opacity: 0.5; }
details[open] summary::after { content: "▴"; }
.json-night {
  margin: 0 20px 16px;
  background: rgba(0,0,0,0.35);
  border-radius: 12px; padding: 14px;
  font-size: 11px; line-height: 1.8;
  overflow-x: auto; color: var(--lavender);
}
.json-actions { padding: 0 20px 18px; display: flex; gap: 10px; }

/* ===== favoris ===== */
.fav {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 10px; border-radius: 14px;
  cursor: pointer; transition: background 0.15s;
}
.fav:hover { background: rgba(255,246,232,0.06); }
.fav .vignette { width: 42px; height: 42px; flex-shrink: 0; }
.fav .vignette svg { width: 100%; height: 100%; }
.fav .info { flex: 1; min-width: 0; }
.fav .name { font-size: 14px; font-weight: 600; }
.fav .seed-small { font-size: 10px; opacity: 0.45; letter-spacing: 1px; overflow-wrap: anywhere; }
.fav .del {
  background: none; border: none; color: rgba(255,246,232,0.35);
  font-size: 16px; cursor: pointer; padding: 6px;
}
.fav .del:hover { color: var(--rose); }
.fav-empty { font-size: 12px; opacity: 0.5; padding: 6px 0 2px; line-height: 1.7; }

.account-cta {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,207,138,0.15), rgba(184,168,224,0.12));
  border: 1px solid rgba(255,207,138,0.3);
  font-size: 12px; line-height: 1.7;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}

/* ===== modales ===== */
dialog {
  background: var(--sky2);
  color: var(--milk);
  border: 1px solid rgba(184,168,224,0.35);
  border-radius: 26px;
  padding: 26px;
  max-width: 420px; width: calc(100vw - 40px);
  margin: auto;
}
dialog::backdrop { background: rgba(10,9,22,0.8); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 17px; }
.close-x {
  background: none; border: none; color: var(--milk);
  font-size: 26px; cursor: pointer; line-height: 1; opacity: 0.6;
}
.close-x:hover { opacity: 1; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.card-preview { border-radius: 18px; overflow: hidden; }
.card-preview svg { width: 100%; height: auto; display: block; }

/* ===== viseur caméra ===== */
.viewfinder {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0916;
  min-height: 220px;
}
.viewfinder video { display: block; width: 100%; height: auto; }
.vf-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 3px solid var(--glow);
  opacity: 0.9;
  pointer-events: none;
}
.vf-corner.c1 { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.vf-corner.c2 { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.vf-corner.c3 { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.vf-corner.c4 { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.scanline {
  position: absolute; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  box-shadow: 0 0 14px var(--glow);
  pointer-events: none;
  animation: scan 2.4s ease-in-out infinite alternate;
}
@keyframes scan { from { top: 15%; } to { top: 85%; } }
.vf-status {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-size: 10px; letter-spacing: 2px;
  color: var(--lavender);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  animation: twinkle 2s ease-in-out infinite;
  pointer-events: none;
}

.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs .tab {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255,246,232,0.25);
  color: var(--milk); border-radius: 30px;
  padding: 9px; font-family: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.auth-tabs .tab.active { background: var(--glow); border-color: var(--glow); color: var(--ink); }
#authForm { display: flex; flex-direction: column; gap: 10px; }
#authForm input {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(184,168,224,0.35);
  border-radius: 30px; padding: 12px 18px;
  color: var(--milk); font-size: 13px; font-family: inherit;
}
#authForm input:focus { outline: none; border-color: var(--glow); }

/* ===== toast ===== */
.toast {
  position: fixed; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translate(-50%, 80px);
  background: var(--glow); color: var(--ink);
  border-radius: 30px; padding: 12px 22px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1.3);
  z-index: 50; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ===== colline ===== */
.hill { position: relative; margin-top: 46px; height: 130px; z-index: 1; }
.hill .ground {
  position: absolute; bottom: 0; left: -10%; right: -10%;
  height: 90px; background: #17132b;
  border-radius: 100% 100% 0 0;
}
.house { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); z-index: 2; }
.house .walls { width: 74px; height: 44px; background: #241f3d; border-radius: 4px; position: relative; }
.house .roof {
  width: 0; height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 30px solid #1b1732;
  margin-left: -8px; position: relative;
}
.chimney { position: absolute; top: 4px; right: -28px; width: 12px; height: 22px; background: #1b1732; border-radius: 2px 2px 0 0; }
.puff {
  position: absolute; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(184,168,224,0.35);
  animation: puff 4s ease-out infinite;
}
.puff:nth-child(2) { animation-delay: 1.3s; }
.puff:nth-child(3) { animation-delay: 2.6s; }
@keyframes puff {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translate(-30%, -52px) scale(2.2); opacity: 0; }
}
.house .window {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  background: var(--glow); border-radius: 3px;
  box-shadow: 0 0 24px rgba(255,207,138,0.8);
  animation: windowflicker 5s ease-in-out infinite;
}
@keyframes windowflicker { 0%, 92%, 100% { opacity: 1; } 95% { opacity: 0.75; } }
.cat { position: absolute; bottom: 58px; left: calc(50% + 70px); z-index: 2; width: 52px; height: 34px; }
.cat .body { position: absolute; bottom: 0; width: 42px; height: 21px; background: #0f0c20; border-radius: 45% 45% 20% 20%; }
.cat .head { position: absolute; bottom: 13px; right: 2px; width: 21px; height: 19px; background: #0f0c20; border-radius: 50% 50% 45% 45%; }
.cat .head::before, .cat .head::after {
  content: ""; position: absolute; top: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #0f0c20;
}
.cat .head::before { left: 0; transform: rotate(-12deg); }
.cat .head::after { right: 0; transform: rotate(12deg); }
.cat .tail {
  position: absolute; bottom: 3px; left: -10px;
  width: 17px; height: 6px; background: #0f0c20;
  border-radius: 4px; transform-origin: right center;
  animation: tail 3.5s ease-in-out infinite;
}
@keyframes tail { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(42deg); } }
.hill .caption {
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center; font-size: 10px; letter-spacing: 2px;
  opacity: 0.4; z-index: 3;
}

/* ===== sobriété : animations décoratives coupées si demandé ===== */
@media (prefers-reduced-motion: reduce) {
  .aurora, .mist, .firefly, .shooting, .stars span, .note,
  .needle, .play-wrap::before, .moon-sky, .puff, .cat .tail, .house .window {
    animation: none !important;
  }
}
