:root {
  --pink: #ff5fa2;
  --pink-soft: #ffb3d9;
  --bubble: #ff8ec7;
  --cream: #fff0f7;
  --grape: #b15dff;
  --display: "Pacifico", "Brush Script MT", cursive;
  --body: "Quicksand", "Comic Sans MS", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: clip; }

body {
  min-height: 100svh;
  font-family: var(--body);
  font-weight: 600;
  color: #8a2362;
  text-align: center;
  overflow-x: hidden;
  /* custom heart cursor 💕 */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ctext y='22' font-size='22'%3E%F0%9F%92%95%3C/text%3E%3C/svg%3E") 6 6, auto;
}

/* ---------- animated dreamy background ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #ffd6ec 0%, #ff9ed2 25%, #ff7eb9 50%, #c08bff 75%, #ffc4e1 100%);
  background-size: 400% 400%;
  animation: dream 16s ease infinite;
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.55), transparent 24%),
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.4), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(255,255,255,.35), transparent 30%);
  mix-blend-mode: screen;
}
@keyframes dream {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glitter { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- header / menu Jeux 🎮 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--pink-soft);
}
.topbar__brand { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 1.3rem; }
.topbar__nav { display: flex; gap: 8px; align-items: center; }
.nav-btn--support { background: linear-gradient(135deg, #ff2e88, #ff5fa2); }
.nav-btn--lang { background: rgba(255,255,255,.85); color: var(--pink); border: 2px solid var(--pink-soft); font-size: .8rem; padding: 6px 10px; min-width: 40px; }
.nav-btn--lang:hover { background: #fff; }
.nav-btn {
  font-family: var(--body); font-weight: 700; cursor: inherit; color: #fff;
  background: linear-gradient(135deg, #ff4fa3, #b15dff); border: 0; border-radius: 999px;
  padding: 8px 16px; font-size: .95rem; box-shadow: 0 4px 12px rgba(214,51,132,.3);
}
.nav-btn:hover { filter: brightness(1.05) saturate(1.05); }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 41;
  list-style: none; margin: 0; padding: 8px; min-width: 190px; text-align: left;
  background: #fff; border: 2px solid var(--pink); border-radius: 16px;
  box-shadow: 0 16px 36px rgba(214,51,132,.3);
}
.nav-menu[hidden] { display: none; }
.nav-item {
  display: block; width: 100%; text-align: left; cursor: inherit;
  font-family: var(--body); font-weight: 700; color: #8a2362;
  background: transparent; border: 0; border-radius: 12px; padding: 10px 12px; font-size: 1rem;
}
.nav-item:hover { background: var(--cream); }

/* grille de jeux */
.games-card { width: min(440px, 100%); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 8px; }
.game-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%;
  cursor: inherit; font-family: var(--body); font-weight: 700; font-size: .78rem; line-height: 1.15;
  color: #7a1f57; background: #fff; border: 2px solid var(--pink-soft); border-radius: 16px;
  padding: 12px 4px; text-align: center;
  transition: transform .1s ease, filter .15s ease, border-color .15s ease;
}
.game-tile:hover { filter: brightness(1.02) saturate(1.05); transform: translateY(-2px); border-color: var(--pink); background: #fff; }
.game-tile:active { transform: translateY(0); }
.game-tile__e { font-size: 1.9rem; line-height: 1; }

/* ---------- top marquee (Y2K vibe) ---------- */
.marquee {
  position: relative; overflow: hidden; white-space: nowrap;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(4px);
  border-bottom: 2px dashed var(--pink);
  font-weight: 700; color: var(--pink); letter-spacing: .04em;
  padding: 8px 0; font-size: .95rem;
}
.marquee__track { display: inline-flex; animation: scroll 22s linear infinite; }
.marquee__track span { padding: 0 1rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stage ---------- */
.stage {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; width: 100%; max-width: 100%;
  padding: clamp(28px, 7vh, 80px) 20px 40px;
}
.kiss-btn, .message, .counter { max-width: 100%; }

.sparkle-crown { font-size: 1.3rem; letter-spacing: .3em; color: #fff; text-shadow: 0 2px 8px rgba(177,93,255,.4); animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 0%,100%{opacity:.5;transform:scale(.95)} 50%{opacity:1;transform:scale(1.06)} }

.title {
  font-family: var(--display);
  font-size: clamp(2rem, 9.5vw, 7.5rem);
  width: 100%; overflow-wrap: break-word;
  margin: 0; line-height: 1.05; position: relative;
  background: linear-gradient(92deg, #ff2e88, #ff7eb9, #b15dff, #ff2e88);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #fff;
  filter: drop-shadow(0 6px 0 rgba(255,46,136,.25)) drop-shadow(0 3px 10px rgba(177,93,255,.35));
  animation: shimmer 6s linear infinite, wobble 4s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: 250% 0; } }
@keyframes wobble { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }

.tagline { margin: 0; font-size: clamp(1rem, 3.5vw, 1.4rem); color: #fff; text-shadow: 0 2px 6px rgba(177,93,255,.4); }
.tagline em { font-family: var(--display); font-style: normal; color: #fff; }

/* ---------- big kiss button ---------- */
.kiss-btn {
  margin-top: 8px; border: 0; cursor: inherit;
  font-family: var(--body); font-weight: 700; font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  color: #fff; padding: 18px 34px; border-radius: 999px;
  background: linear-gradient(135deg, #ff4fa3, #ff7eb9 60%, #b15dff);
  box-shadow: 0 10px 0 #d63384, 0 18px 30px rgba(214,51,132,.45), inset 0 2px 6px rgba(255,255,255,.5);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.kiss-btn:hover { filter: brightness(1.05) saturate(1.1); }
.kiss-btn:active { transform: translateY(8px); box-shadow: 0 2px 0 #d63384, 0 6px 14px rgba(214,51,132,.4), inset 0 2px 6px rgba(255,255,255,.5); }
@keyframes heartbeat { 0%,100%{transform:scale(1)} 12%{transform:scale(1.06)} 24%{transform:scale(1)} 36%{transform:scale(1.04)} }

.message {
  min-height: 1.6em; margin: 4px 0 0;
  font-size: clamp(1rem, 3.4vw, 1.3rem); color: #7a1f57;
  background: rgba(255,255,255,.65); border: 2px dotted var(--pink);
  padding: 10px 18px; border-radius: 18px; backdrop-filter: blur(3px);
  transition: transform .25s cubic-bezier(.2,1.4,.4,1);
}
.message.pop { transform: scale(1.08) rotate(-1.5deg); }

/* ---------- counter ---------- */
.counter {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 6px;
  background: #fff; border: 3px solid var(--pink); border-radius: 22px;
  padding: 10px 22px; box-shadow: 0 8px 20px rgba(214,51,132,.25);
}
.counter__num { font-family: var(--display); font-size: clamp(1.8rem, 6vw, 2.6rem); color: var(--pink); }
.counter__label { font-weight: 700; color: #b15dff; }

/* ---------- rewards / ménagerie ---------- */
.world-counter { margin: 4px 0 0; color: #fff; text-shadow: 0 1px 4px rgba(177,93,255,.5); font-weight: 700; font-size: .95rem; }
.world-counter b { font-family: var(--display); font-weight: 400; color: #fff; padding: 0 2px; }
.world-counter[hidden] { display: none; }
.next-reward { margin: 2px 0 0; color: #fff; text-shadow: 0 1px 4px rgba(177, 93, 255, .5); font-size: .95rem; }
.next-reward b { font-family: var(--display); font-weight: 400; padding: 0 2px; }
.menagerie { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 100%; margin-top: 4px; }
.pet {
  font-size: clamp(1.8rem, 7vw, 2.6rem); cursor: help;
  filter: drop-shadow(0 4px 8px rgba(177, 93, 255, .4));
  animation: bob 2.4s ease-in-out infinite, popin .5s cubic-bezier(.2, 1.5, .4, 1);
}
.reveal-pet {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 22vw, 11rem); z-index: 20; pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(177, 93, 255, .55));
}
@keyframes popin { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- cuties row ---------- */
.cuties { display: flex; flex-wrap: wrap; justify-content: center; max-width: 100%; gap: clamp(8px, 3vw, 20px); margin-top: 14px; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.cuties span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.cuties span:nth-child(2n) { animation-delay: .3s; }
.cuties span:nth-child(3n) { animation-delay: .6s; }
.cuties span:nth-child(4n) { animation-delay: .9s; }
@keyframes bob { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-12px) rotate(4deg)} }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; padding: 22px 16px 8px; color: #fff; text-shadow: 0 1px 4px rgba(177,93,255,.5); font-size: .92rem; max-width: 100%; overflow-wrap: anywhere; }
.footer strong { font-family: var(--display); font-weight: 400; }

/* discreet, fun cookie note at the very bottom */
.about { position: relative; z-index: 1; max-width: 680px; margin: 10px auto 0; padding: 0 22px; text-align: center; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(177,93,255,.4); font-size: .82rem; line-height: 1.6; font-weight: 600; }
.about-title { font-family: var(--display); font-weight: 400; color: #fff; font-size: 1.15rem; margin: 0 0 8px; }
.about p { margin: 0 0 8px; }
.about b { color: #fff; }
.cookie-note {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto; padding: 0 22px 34px;
  text-align: center; color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 3px rgba(177, 93, 255, .4);
  font-size: .74rem; line-height: 1.6; font-weight: 600;
}
.cookie-note em { font-family: var(--display); font-style: normal; color: rgba(255, 255, 255, .9); }

/* full-viewport layer that clips all flying emojis (so they never widen the page) */
.fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.fly { position: absolute; pointer-events: none; user-select: none; will-change: transform, opacity; }

/* ---------- Bisou Cam 🎤 ---------- */
.cam-btn {
  position: relative; z-index: 1; cursor: inherit;
  font-family: var(--body); font-weight: 700; font-size: clamp(.9rem, 3vw, 1.05rem);
  color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; margin: 6px 0 18px;
  background: linear-gradient(135deg, #b15dff, #ff7eb9);
  box-shadow: 0 8px 0 #7d3ac0, 0 12px 22px rgba(177,93,255,.4);
  transition: transform .12s ease, filter .2s ease;
}
.cam-btn:hover { filter: brightness(1.05) saturate(1.1); }
.cam-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #7d3ac0; }
.cam-btn.is-on { background: linear-gradient(135deg, #ff2e88, #ff7eb9); animation: campulse 1.1s ease-in-out infinite; }
@keyframes campulse {
  0%,100% { box-shadow: 0 8px 0 #7d3ac0, 0 0 0 0 rgba(255,46,136,.5); }
  50%     { box-shadow: 0 8px 0 #7d3ac0, 0 0 0 14px rgba(255,46,136,0); }
}

.cam-panel { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(340px, 100%); }
.cam-panel[hidden] { display: none; }
.cam-meter { width: 100%; height: 12px; border-radius: 999px; background: rgba(255,255,255,.55); border: 2px solid var(--pink); overflow: hidden; }
.cam-meter__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ff7eb9, #ff2e88); transition: width .06s linear; }
.cam-hint { min-height: 1.4em; margin: 2px 0 0; font-weight: 700; color: #7a1f57; font-size: clamp(.95rem, 3vw, 1.15rem); }
.cam-privacy { margin: 8px 0 0; font-size: .7rem; color: rgba(122,31,87,.65); font-weight: 600; }
.cam-btn--gold { background: linear-gradient(135deg, #ffb300, #ff7eb9); box-shadow: 0 8px 0 #c98a00, 0 12px 22px rgba(255,179,0,.4); }
.cam-btn--gold:active { box-shadow: 0 2px 0 #c98a00, 0 6px 14px rgba(255,179,0,.4); }
.cam-btn--gold:disabled { filter: grayscale(.3) brightness(.95); cursor: default; }
.cam-btn--sec { background: rgba(255,255,255,.82); color: var(--pink); border: 2px dashed var(--pink-soft); box-shadow: none; font-size: .82rem; padding: 8px 16px; margin: 8px 0 4px; }
.cam-btn--sec:active { transform: translateY(1px); box-shadow: none; }
.cam-btn--sec.is-on { background: #fff; color: #d63384; border-color: var(--pink); border-style: solid; animation: none; box-shadow: none; }
.cam-info { min-height: 1.4em; margin: 2px 0 0; font-family: var(--display); font-weight: 400; color: var(--grape); font-size: clamp(1.05rem, 4vw, 1.5rem); }
.cam-share { cursor: inherit; font-family: var(--body); font-weight: 700; color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; background: linear-gradient(135deg, #ff2e88, #b15dff); box-shadow: 0 6px 16px rgba(214,51,132,.35); }
.cam-share[hidden] { display: none; }
.cam-share:hover { filter: brightness(1.05) saturate(1.1); }

/* ---------- Bisou du jour 🎁 ---------- */
.daily-streak { font-weight: 700; color: #b15dff; font-size: 1rem; margin: 2px 0 6px; }
.daily-streak b { font-family: var(--display); font-weight: 400; padding: 0 1px; }
.daily-result[hidden] { display: none; }
.daily-animal { font-size: 4rem; line-height: 1; filter: drop-shadow(0 6px 14px rgba(177,93,255,.4)); animation: popin .5s cubic-bezier(.2,1.5,.4,1); }
.daily-msg { font-size: 1.05rem; color: #7a1f57; line-height: 1.5; margin: 8px 0 4px; }
.daily-meter { color: var(--grape); font-weight: 700; margin: 0; }

/* ---------- Carte bisou à envoyer 💌 ---------- */
.card-input {
  width: 100%; font-family: var(--body); font-weight: 600; font-size: 1rem;
  color: #7a1f57; background: #fff; border: 2px solid var(--pink-soft); border-radius: 14px;
  padding: 10px 14px; margin: 0 0 10px; resize: none;
}
.card-input::placeholder { color: rgba(122,31,87,.5); }
.card-input:focus { outline: none; border-color: var(--pink); }
.card-animals { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 4px; }
.card-animal {
  font-size: 1.5rem; line-height: 1; cursor: inherit; background: #fff;
  border: 2px solid transparent; border-radius: 12px; padding: 6px 8px; transition: transform .1s ease;
}
.card-animal.is-sel { border-color: var(--pink); background: var(--cream); transform: scale(1.08); }
.card-made { min-height: 1.2em; margin: 6px 0 0; font-weight: 700; color: var(--pink); font-size: .9rem; }
.card-made[hidden] { display: none; }
.cardv-kicker { font-weight: 700; color: var(--grape); margin: 0 0 4px; letter-spacing: .02em; }
.cardv-animal { font-size: 4.5rem; line-height: 1; filter: drop-shadow(0 6px 16px rgba(177,93,255,.4)); animation: popin .5s cubic-bezier(.2,1.5,.4,1); }
.cardv-msg { font-size: 1.2rem; color: #7a1f57; line-height: 1.5; margin: 10px 0 6px; font-weight: 700; }
.cardv-from { color: var(--grape); font-weight: 700; margin: 0 0 6px; font-family: var(--display); }

/* sélecteur de thème (composeur) */
.card-themelabel { margin: 4px 0 4px; font-weight: 700; color: #7a1f57; font-size: .85rem; }
.card-themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 8px; }
.card-theme { cursor: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; font-family: var(--body); font-weight: 700; color: #7a1f57; background: #fff; border: 2px solid transparent; border-radius: 12px; padding: 6px 8px; }
.card-theme span { font-size: 1.4rem; line-height: 1; }
.card-theme small { font-size: .7rem; }
.card-theme.is-sel { border-color: var(--pink); background: var(--cream); }

/* thèmes premium appliqués à la carte reçue */
.card-theme-gold { background: linear-gradient(180deg, #fff8e1, #ffe9a8) !important; border-color: #e6b800 !important; }
.card-theme-gold .cardv-kicker, .card-theme-gold .cardv-from { color: #8a6d00 !important; }
.card-theme-gold .cardv-msg { color: #5c4a00 !important; }
.card-theme-galaxy { background: radial-gradient(circle at 30% 20%, #3a2b6b, #140d2e) !important; border-color: #6b4fff !important; }
.card-theme-galaxy .cardv-kicker, .card-theme-galaxy .cardv-from { color: #c9b8ff !important; }
.card-theme-galaxy .cardv-msg { color: #fff !important; }
.card-theme-galaxy .tip-close { background: transparent !important; color: #c9b8ff !important; border-color: #6b4fff !important; }
.card-theme-rainbow { background: linear-gradient(135deg, #ff9ed2, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #bdb2ff) !important; border-color: #ff7eb9 !important; }
.card-theme-rainbow .cardv-msg { color: #5a2a52 !important; }

/* ---------- Attrape-bisous 🧺 ---------- */
.catch-hud { font-weight: 700; color: var(--grape); margin: 0 0 6px; font-size: 1.05rem; }
.catch-hud span { font-family: var(--display); font-weight: 400; padding: 0 2px; }
.catch-area {
  position: relative; width: 100%; height: 300px; margin: 0 0 12px;
  border-radius: 18px; overflow: hidden; touch-action: manipulation;
  background: linear-gradient(180deg, #fff6fb, #ffe6f4); border: 2px solid var(--pink-soft);
}
.catch-area.shake { animation: catchshake .2s; }
@keyframes catchshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.catch-item { position: absolute; top: 0; font-size: 2rem; line-height: 1; cursor: inherit; user-select: none; will-change: transform; }
.catch-result { min-height: 1.4em; margin: 0; font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 1.2rem; }

/* ---------- Bisou Clicker 🏭 ---------- */
.clk-hud { font-weight: 700; color: var(--grape); margin: 0 0 4px; font-size: 1.1rem; }
.clk-hud b { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 1.4rem; padding: 0 2px; }
.clk-shop { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.clk-buy {
  display: flex; align-items: center; gap: 10px; width: 100%; cursor: inherit; text-align: left;
  font-family: var(--body); font-weight: 700; color: #7a1f57;
  background: #fff; border: 2px solid var(--pink-soft); border-radius: 16px; padding: 8px 12px;
  transition: filter .15s ease, transform .1s ease;
}
.clk-buy:hover:not(:disabled) { filter: brightness(1.02) saturate(1.05); }
.clk-buy:active:not(:disabled) { transform: translateY(1px); }
.clk-buy:disabled { opacity: .5; cursor: default; }
.clk-emoji { font-size: 1.8rem; line-height: 1; }
.clk-info { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.clk-info small { color: var(--grape); font-weight: 600; font-size: .75rem; }
.clk-cost { font-family: var(--display); font-weight: 400; color: var(--pink); white-space: nowrap; }

/* ---------- Quel bisou es-tu ? 🧮 ---------- */
.quiz-q { font-weight: 700; color: #7a1f57; font-size: 1.05rem; margin: 4px 0 12px; min-height: 1.4em; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  cursor: inherit; font-family: var(--body); font-weight: 700; color: #7a1f57; text-align: left;
  background: #fff; border: 2px solid var(--pink-soft); border-radius: 14px; padding: 10px 14px;
  transition: filter .15s ease, transform .1s ease;
}
.quiz-opt:hover { filter: brightness(1.02) saturate(1.05); }
.quiz-opt:active { transform: translateY(1px); }
.quiz-result[hidden] { display: none; }
.quiz-emoji { font-size: 3.5rem; line-height: 1; animation: popin .5s cubic-bezier(.2,1.5,.4,1); }
.quiz-rname { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 1.5rem; margin: 6px 0; }
.quiz-rdesc { color: #7a1f57; line-height: 1.5; margin: 0 0 4px; }

/* ---------- Memory 🧩 ---------- */
.mem-hud { font-weight: 700; color: var(--grape); margin: 0 0 8px; }
.mem-hud span { font-family: var(--display); font-weight: 400; padding: 0 2px; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.mem-card { position: relative; aspect-ratio: 1; border: 0; background: none; padding: 0; cursor: inherit; perspective: 700px; }
.mem-card__inner {
  position: absolute; inset: 0; border-radius: 12px;
  transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .8, .3, 1.2);
}
.mem-card.flip .mem-card__inner, .mem-card.done .mem-card__inner { transform: rotateY(180deg); }
.mem-card__back, .mem-card__front {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 1.8rem; line-height: 1;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.mem-card__back { background: linear-gradient(135deg, #ff8ec7, #b15dff); color: #fff; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(177, 93, 255, .35); }
.mem-card__front { background: #fff; border: 2px solid var(--pink-soft); transform: rotateY(180deg); }
.mem-card.done .mem-card__front { background: var(--cream); box-shadow: 0 0 0 3px rgba(255, 210, 63, .7); }
.mem-card.done .mem-card__inner { animation: memMatch .55s ease; }
@keyframes memMatch { 0% { transform: rotateY(180deg) scale(1); } 45% { transform: rotateY(180deg) scale(1.12); } 100% { transform: rotateY(180deg) scale(1); } }
.mem-result { min-height: 1.4em; margin: 0; font-family: var(--display); color: var(--pink); font-size: 1.2rem; }

/* ---------- Roue de la fortune 🎡 ---------- */
.wheel-wrap { position: relative; width: 244px; height: 244px; margin: 8px auto 14px; }
.wheel-pointer {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 3;
  border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 24px solid #ffd23f;
  filter: drop-shadow(0 3px 2px rgba(122,31,87,.5));
}
.wheel {
  width: 100%; height: 100%; border-radius: 50%; border: 8px solid #fff;
  box-shadow: 0 12px 30px rgba(214,51,132,.4), inset 0 0 0 3px rgba(255,210,63,.9);
  transition: transform 4.6s cubic-bezier(.12,.72,.12,1);
  background: conic-gradient(#ff8fc8 0 45deg, #c07bff 45deg 90deg, #ff8fc8 90deg 135deg, #c07bff 135deg 180deg, #ff8fc8 180deg 225deg, #c07bff 225deg 270deg, #ff8fc8 270deg 315deg, #c07bff 315deg 360deg);
}
.wheel__label {
  position: absolute; left: 50%; top: 50%; font-size: 1.5rem; line-height: 1;
  pointer-events: none; filter: drop-shadow(0 1px 1px rgba(122,31,87,.35));
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center; font-size: 1.45rem;
  background: radial-gradient(circle at 38% 32%, #fff, #ffe6b3 55%, #ffd23f);
  box-shadow: 0 3px 8px rgba(122,31,87,.4), inset 0 0 0 2px #fff;
}
.wheel-result { min-height: 1.7em; margin: 0; font-weight: 700; color: #7a1f57; font-size: 1.1rem; }
.wheel-result--pop { display: inline-block; animation: wheelPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes wheelPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wheel { transition: transform .3s ease; } }

/* ---------- Bisou le plus long ⏱️ ---------- */
.long-now { font-family: var(--display); color: var(--pink); font-size: 2.4rem; margin: 6px 0 2px; }
.long-hint { min-height: 1.3em; margin: 0; font-weight: 700; color: var(--grape); }
.long-best { color: #7a1f57; font-weight: 700; margin: 4px 0 0; }

/* ---------- Classements 🏆 ---------- */
.lb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; }
.lb-tab { cursor: inherit; font-family: var(--body); font-weight: 700; font-size: .85rem; color: #7a1f57; background: #fff; border: 2px solid var(--pink-soft); border-radius: 999px; padding: 6px 12px; }
.lb-tab.is-sel { border-color: var(--pink); background: var(--cream); }
.lb-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--pink-soft); border-radius: 12px; padding: 6px 12px; }
.lb-rank { font-family: var(--display); color: var(--pink); min-width: 1.4em; text-align: center; }
.lb-name { flex: 1; font-weight: 700; color: #7a1f57; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-weight: 700; color: var(--grape); white-space: nowrap; }
.lb-msg { min-height: 1.2em; margin: 0 0 6px; font-weight: 700; color: var(--pink); font-size: .9rem; }
.lb-submit { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Mur des bisous 🧱 ---------- */
.wall-status { min-height: 1.2em; margin: 6px 0; font-weight: 700; color: var(--pink); font-size: .9rem; }
.wall-list { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; text-align: left; margin-top: 4px; }
.wall-item { background: #fff; border: 2px solid var(--pink-soft); border-radius: 14px; padding: 8px 12px; }
.wall-msg { margin: 0; color: #7a1f57; font-weight: 600; overflow-wrap: anywhere; }
.wall-name { margin: 2px 0 0; color: var(--grape); font-weight: 700; font-size: .8rem; font-family: var(--display); text-align: right; }

/* ---------- soutien / pourboire 💌 ---------- */
.tip-open {
  position: relative; z-index: 1; margin-top: 12px; cursor: inherit;
  font-family: var(--body); font-weight: 700; font-size: .95rem;
  color: var(--pink); background: rgba(255,255,255,.82);
  border: 2px dashed var(--pink); border-radius: 999px;
  padding: 10px 20px; box-shadow: 0 6px 16px rgba(214,51,132,.2);
  transition: transform .12s ease, filter .2s ease;
}
.tip-open:hover { filter: brightness(1.03) saturate(1.1); transform: translateY(-1px); }
.tip-open:active { transform: translateY(1px); }

.tip-overlay {
  position: fixed; inset: 0; z-index: 50; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(122,31,87,.45); backdrop-filter: blur(6px);
  animation: tipfade .25s ease;
}
.tip-overlay[hidden] { display: none; }
@keyframes tipfade { from { opacity: 0; } to { opacity: 1; } }

.tip-card {
  position: relative; width: min(420px, 100%); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(180deg, #fff, #fff0f7);
  border: 3px solid var(--pink); border-radius: 28px;
  padding: 26px 22px 22px; text-align: center;
  box-shadow: 0 24px 60px rgba(214,51,132,.4);
  animation: tippop .35s cubic-bezier(.2,1.3,.4,1);
}
@keyframes tippop { from { transform: scale(.85) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.tip-close {
  position: absolute; top: 12px; right: 12px; cursor: inherit;
  width: 34px; height: 34px; border-radius: 999px; border: 2px solid var(--pink-soft);
  background: #fff; color: var(--pink); font-weight: 700; font-size: 1rem; line-height: 1;
}
.tip-close:hover { background: var(--cream); }

.tip-emoji { font-size: 2.6rem; line-height: 1; }
.tip-title { font-family: var(--display); font-weight: 400; color: var(--pink); font-size: 1.5rem; margin: 4px 0 8px; }
.tip-story { color: #8a2362; font-size: .95rem; line-height: 1.5; margin: 0 0 12px; }

.tip-badge {
  background: #fff7d6; border: 2px dotted #f0c000; border-radius: 16px;
  color: #8a6d00; font-size: .9rem; padding: 8px 12px; margin: 0 0 16px;
}
.tip-badge b { font-size: 1.05rem; }
.tip-badge a { color: #8a6d00; font-weight: 700; }

.tip-tiers { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tip-tier {
  flex: 1 1 0; min-width: 92px; cursor: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--body); font-weight: 700; color: #fff; border: 0; border-radius: 20px; padding: 14px 8px;
  background: linear-gradient(135deg, #ff4fa3, #ff7eb9 60%, #b15dff);
  box-shadow: 0 8px 0 #d63384, 0 12px 22px rgba(214,51,132,.35);
  transition: transform .1s ease, filter .2s ease;
}
.tip-tier:hover { filter: brightness(1.05) saturate(1.1); }
.tip-tier:active { transform: translateY(6px); box-shadow: 0 2px 0 #d63384; }
.tip-tier__emoji { font-size: 1.7rem; }
.tip-tier__amt { font-size: 1.2rem; }
.tip-tier__label { font-size: .8rem; font-weight: 600; opacity: .95; }

.tip-soon { color: var(--pink); font-weight: 700; font-size: .85rem; min-height: 1.2em; margin: 10px 0 0; }
.tip-reward { color: #b15dff; font-size: .88rem; margin: 16px 0 6px; }
.tip-reward b { font-family: var(--display); font-weight: 400; }
.tip-pay { color: #a0367a; opacity: .75; font-size: .72rem; margin: 4px 0 0; }

/* licorne dorée : récompense d'un don 💛 */
.pet--rare {
  position: relative;
  animation: bob 2.4s ease-in-out infinite, rareglow 2s ease-in-out infinite;
}
.pet--rare::after { content: "✨"; position: absolute; top: -6px; right: -12px; font-size: .55em; }
@keyframes rareglow {
  0%,100% { filter: drop-shadow(0 0 6px gold) drop-shadow(0 4px 10px rgba(240,192,0,.6)); }
  50%     { filter: drop-shadow(0 0 15px gold) drop-shadow(0 4px 14px rgba(240,192,0,.95)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- carte du monde des bisous 🌍 ---------- */
.world-map-link {
  background: none; border: 0; padding: 0 2px; margin-left: 4px;
  font: inherit; font-weight: 700; color: #ff2e88; cursor: pointer; text-decoration: underline;
}
.world-map-link:hover { color: #c81e6f; }
.map-card { max-width: 560px; }
.map-total { font-size: 1.05rem; color: #c81e6f; margin: .2rem 0 .7rem; }
.map-total b { color: #ff2e88; }
.kissmap {
  position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #fff2f9, #ffe1f2 55%, #ffd0ec);
  box-shadow: inset 0 0 0 1px rgba(255, 94, 176, .25);
}
.kissmap__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.kissmap__pins { position: absolute; inset: 0; }
.kissmap__pin {
  position: absolute; font-size: 13px; line-height: 1;
  transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: center;
  filter: drop-shadow(0 1px 1px rgba(200, 30, 111, .45));
  animation: pinPulse 2.6s ease-in-out infinite; will-change: transform, opacity;
}
@keyframes pinPulse {
  0%, 100% { opacity: .82; transform: translate(-50%, -50%) scale(var(--s, 1)); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.18)); }
}
.kissmap__empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: #c81e6f; font-weight: 600;
}
.map-top { list-style: none; margin: .85rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.map-row { display: grid; grid-template-columns: 1.6em 1fr 72px auto; align-items: center; gap: .5rem; font-size: .95rem; }
.map-flag { font-size: 1.2em; text-align: center; }
.map-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #a3175a; font-weight: 600; }
.map-bar { height: 8px; background: rgba(255, 94, 176, .18); border-radius: 6px; overflow: hidden; }
.map-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8fc8, #ff2e88); border-radius: 6px; }
.map-n { font-variant-numeric: tabular-nums; font-weight: 700; color: #ff2e88; }
/* « ton pays vs le monde » 🏆 */
.map-you { background: linear-gradient(160deg, #fff, #ffe9f4); border-radius: 16px; padding: 12px 14px; margin: 0 0 12px; box-shadow: inset 0 0 0 2px rgba(255, 126, 185, .45); }
.map-you__txt { margin: 0 0 10px; color: #7a1f57; font-weight: 600; line-height: 1.5; }
.map-you__txt b { color: #ff2e88; }
.map-you__btn { margin: 0; width: 100%; }
.kissmap__pin--you { z-index: 3; filter: drop-shadow(0 0 7px #ffd23f) drop-shadow(0 2px 3px rgba(200, 30, 111, .5)); }
.map-row--you { background: rgba(255, 210, 63, .22); border-radius: 8px; padding: 3px 5px; box-shadow: inset 0 0 0 2px rgba(255, 179, 0, .55); }

/* ---------- bouton d'installation PWA 💗 ---------- */
.pwa-install {
  display: inline-block; margin: .7rem auto 0; padding: .6rem 1.15rem;
  border: 2px solid #ff7eb9; border-radius: 999px; background: #fff;
  color: #ff2e88; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 46, 136, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pwa-install:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 46, 136, .28); }
.pwa-install[hidden] { display: none; }

/* honeypot anti-bot : invisible pour les humains, appât pour les bots */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- lifting jeux : juice & feedback ✨ ---------- */
/* Bisou Clicker : +1 flottant + rebond du bouton */
.clk-float { position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 100; font-weight: 800; color: #ff2e88; font-size: 1.15rem; text-shadow: 0 1px 3px rgba(255, 255, 255, .9); animation: clkFloat .75s ease-out forwards; }
@keyframes clkFloat { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.7); } 100% { opacity: 0; transform: translate(-50%, -165%) scale(1.25); } }
.clk-pop { animation: clkPop .18s ease; }
@keyframes clkPop { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(4px) scale(.95); } 100% { transform: translateY(0) scale(1); } }
/* Attrape-bisous : score qui gicle à l'endroit du tap */
.catch-pop { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; font-weight: 800; font-size: 1.15rem; color: #ff2e88; text-shadow: 0 1px 3px #fff; animation: catchPop .55s ease-out forwards; }
.catch-pop--bad { color: #8a1c8a; }
@keyframes catchPop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -185%) scale(1.15); } }
/* Quiz : barre de progression + options plus vivantes + carte résultat */
.quiz-progress { height: 8px; background: rgba(255, 94, 176, .18); border-radius: 6px; overflow: hidden; margin: 0 0 12px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8fc8, #ff2e88); border-radius: 6px; transition: width .35s ease; }
.quiz-opt { border-left-width: 6px; }
.quiz-opt:hover { transform: translateX(3px); box-shadow: 0 4px 12px rgba(214, 51, 132, .16); }
.quiz-result { background: linear-gradient(160deg, #fff, #ffe9f4); border-radius: 18px; padding: 14px 12px; box-shadow: inset 0 0 0 2px rgba(255, 126, 185, .4); }
/* Bisou du jour : badge de série flamboyant + révélation spectaculaire */
.streak-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #ff9500, #ff2e88); box-shadow: 0 3px 10px rgba(255, 94, 0, .4);
  animation: streakFlicker 1.6s ease-in-out infinite;
}
.streak-badge b { font-family: var(--display); font-weight: 400; padding: 0 1px; }
@keyframes streakFlicker { 0%, 100% { filter: brightness(1); box-shadow: 0 3px 10px rgba(255, 94, 0, .4); } 50% { filter: brightness(1.12); box-shadow: 0 3px 16px rgba(255, 94, 0, .65); } }
.daily-reveal { animation: dailyReveal .55s cubic-bezier(.2, 1, .3, 1.25); }
@keyframes dailyReveal { 0% { opacity: 0; transform: translateY(12px) scale(.95); } 100% { opacity: 1; transform: none; } }
.daily-animal { position: relative; isolation: isolate; font-size: 4.6rem; }
.daily-animal::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 0, .5), rgba(255, 126, 185, .28) 45%, transparent 70%);
  animation: dailyGlow 2.4s ease-in-out infinite;
}
@keyframes dailyGlow { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); } }
/* Envoie un bisou : aperçu live de la carte */
.card-preview { margin: 0 0 12px; }
.card-preview__inner {
  border-radius: 18px; padding: 14px 16px; text-align: center;
  background: linear-gradient(160deg, #fff, #ffe9f4);
  box-shadow: inset 0 0 0 2px rgba(255, 126, 185, .4); transition: background .25s ease;
}
.card-preview .cardv-animal { font-size: 3rem; margin: 0; filter: drop-shadow(0 4px 10px rgba(177, 93, 255, .3)); animation: none; }
.card-preview .cardv-msg { font-size: 1rem; margin: 6px 0 4px; min-height: 1.2em; }
.card-preview .cardv-from { font-size: .9rem; margin: 0; }
/* Jeux micro 🎤/⏱️ : emoji réactif à la voix + jauge + chrono vivant */
.cam-react { font-size: 3rem; line-height: 1; margin: 2px 0 8px; transition: transform .06s linear; transform-origin: center; filter: drop-shadow(0 4px 10px rgba(255, 46, 136, .35)); }
.cam-react--kiss { animation: camKiss .3s ease; }
@keyframes camKiss { 0% { filter: drop-shadow(0 0 2px rgba(255, 46, 136, .6)); } 50% { filter: drop-shadow(0 0 18px rgba(255, 46, 136, .95)); } 100% { filter: drop-shadow(0 4px 10px rgba(255, 46, 136, .35)); } }
.cam-meter__fill { box-shadow: 0 0 10px rgba(255, 46, 136, .5); }
.long-meter { width: min(300px, 80%); margin: 4px auto 2px; }
.long-now { display: inline-block; transition: color .2s ease; }
.long-now--live { animation: longPulse .8s ease-in-out infinite; text-shadow: 0 0 14px rgba(255, 46, 136, .5); }
@keyframes longPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
