/* ============================================================
   LOVE PARTY — drague du BDS (avatars vectoriels, soirée néon)
   ============================================================ */
.lp { --ink: #1a1026; --pink: #ff3d7f; --pink2: #ff8fb3; --vio: #7c3aed; --card: #241634;
  position: absolute; inset: 0; overflow: hidden; color: #fff; font-family: var(--f-ui);
  background: radial-gradient(circle at 20% 0%, #4a1d6e, transparent 55%), radial-gradient(circle at 90% 100%, #7a1240, transparent 50%), #150b22; }
.lp, .lp * { box-sizing: border-box; }
.lp button { font-family: inherit; cursor: pointer; color: inherit; }
.lp .av { display: block; width: 100%; height: 100%; }
.lp-btn { padding: 12px 22px; border: 0; border-radius: 99px; background: linear-gradient(135deg, #ff3d7f, #ff8a3d); color: #fff; font: 800 15px var(--f-ui); box-shadow: 0 6px 20px rgba(255, 61, 127, .4); }
.lp-btn.ghost { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.lp-btn:active, .lp-go:active { transform: scale(.97); }

/* ---------- profil ---------- */
.lp-prof { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.lp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; flex: none; }
.lp-head h1 { flex: 1; margin: 0; font: 24px/1 var(--f-title); background: linear-gradient(90deg, #ff3d7f, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-head h1 span { font-size: .55em; -webkit-text-fill-color: #fff; opacity: .8; }
.lp-ic { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); font: 800 16px var(--f-ui); }
.lp-preview { position: relative; flex: none; height: clamp(130px, 24vh, 210px); display: grid; place-items: center; }
.lp-bigav { height: clamp(130px, 24vh, 210px); width: clamp(130px, 24vh, 210px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.lp-preview::before { content: ''; position: absolute; left: 50%; top: 52%; width: clamp(130px, 22vh, 190px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 127, .55), rgba(124, 58, 237, .25) 60%, transparent 72%); }
.lp-preview > * { position: relative; }
.lp-dice { position: absolute !important; right: 18px; bottom: 6px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: #fff; font-size: 22px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.lp-dice:active { transform: translateY(3px); box-shadow: none; }
.lp-form { flex: none; padding: 6px 14px 0; display: grid; gap: 8px; }
.lp-name { width: 100%; padding: 11px 14px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font: 700 16px var(--f-ui); outline: none; }
.lp-name:focus { border-color: var(--pink); }
.lp-name.err { border-color: #ff4d4d; animation: lp-shake .3s; }
@keyframes lp-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lp-pref { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lp-pref small { font-size: 12px; opacity: .7; margin-right: 2px; }
.lp-pref button { padding: 6px 11px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .1); font: 700 13px var(--f-ui); }
.lp-pref button.on { background: var(--pink); }
.lp-tabs { flex: none; display: flex; gap: 4px; overflow-x: auto; padding: 10px 10px 0; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs button { flex: none; min-width: 62px; padding: 7px 6px 6px; border: 0; border-radius: 14px 14px 0 0; background: none; display: grid; justify-items: center; gap: 2px; opacity: .65; }
.lp-tabs button b { font-size: 19px; line-height: 1; }
.lp-tabs button small { font-size: 10.5px; font-weight: 700; }
.lp-tabs button.on { background: var(--card); opacity: 1; }
.lp-panel { flex: 1; min-height: 0; overflow: auto; padding: 10px; background: var(--card); }
.lp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.lp-tiles button { padding: 4px 4px 6px; border: 2px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .06); display: grid; gap: 2px; }
.lp-tiles button .av { aspect-ratio: 1; height: auto; border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .14), transparent 70%); }
.lp-tiles button small { font-size: 10.5px; font-weight: 700; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tiles button.on { border-color: var(--pink); background: rgba(255, 61, 127, .18); }
.lp-sw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lp-sw button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); padding: 0; }
.lp-sw button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--pink); }
.lp-go { flex: none; margin: 10px 14px 14px; padding: 14px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #ff3d7f, #ff8a3d); color: #fff; font: 17px var(--f-title); box-shadow: 0 6px 24px rgba(255, 61, 127, .45); }

.lp-over { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(10, 4, 18, .8); }
.lp-card { width: min(380px, 100%); padding: 20px; border-radius: 22px; background: #22142f; border: 2px solid rgba(255, 255, 255, .12); text-align: center; }
.lp-card h2 { margin: 0 0 10px; font: 22px var(--f-title); }
.lp-card ol { margin: 0 0 16px; padding-left: 20px; text-align: left; display: grid; gap: 8px; font-size: 14px; line-height: 1.35; }

/* ---------- classement ---------- */
.lp-board { height: 100%; overflow: auto; padding: 18px 16px; display: grid; align-content: start; gap: 14px; }
.lp-board h2 { margin: 0; font: 22px var(--f-title); }
.lp-rows { display: grid; gap: 6px; }
.lp-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.lp-row i { font-style: normal; font-weight: 800; text-align: center; }
.lp-row b { color: var(--pink2); }
.lp-row.me { background: rgba(255, 61, 127, .22); }
.lp-empty { opacity: .7; }

/* ---------- la soirée ---------- */
.lp-room { position: absolute; inset: 0; display: flex; flex-direction: column; }
.lp-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
.lp-bar > span { padding: 6px 11px; border-radius: 99px; background: rgba(255, 255, 255, .09); font: 800 14px var(--f-ui); }
.lp-time.hurry { background: rgba(255, 77, 77, .35); animation: lp-pulse 1s infinite; }
@keyframes lp-pulse { 50% { transform: scale(1.06); } }
.lp-quit { margin-left: auto; padding: 7px 14px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .3); background: none; font: 700 13px var(--f-ui); }
.lp-feed { flex: none; margin: 0 12px; padding: 0 2px; min-height: 18px; font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-players { flex: none; display: flex; gap: 12px; overflow-x: auto; padding: 8px 12px 4px; min-height: 84px; scrollbar-width: none; }
.lp-players::-webkit-scrollbar { display: none; }
.lp-players.empty { min-height: 34px; }
.lp-alone { font-size: 12px; opacity: .55; align-self: center; }
.lp-pl { position: relative; flex: none; width: 58px; display: grid; justify-items: center; gap: 1px; }
.lp-plav { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #3a86ff, #7c3aed); box-shadow: 0 0 0 2px #3ee6b0; }
.lp-pl b { font-size: 11px; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-pl small { font-size: 10px; color: var(--pink2); }
.lp-bub { position: absolute; left: 50%; bottom: calc(100% - 6px); z-index: 3; transform: translateX(-50%) scale(.6); width: max-content; max-width: 160px; padding: 5px 9px; border-radius: 12px 12px 12px 4px;
  background: #fff; color: var(--ink); font: 700 11.5px/1.25 var(--f-ui); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); white-space: normal; text-align: left; }
.lp-bub.on { opacity: 1; transform: translateX(-50%); }
.lp-pl .lp-bub { bottom: auto; top: -4px; left: 100%; transform: none; max-width: 120px; font-size: 10.5px; }

.lp-floor { position: relative; flex: 1; min-height: 0; margin: 4px 10px 8px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 61, 127, .5), transparent 60%),
    repeating-conic-gradient(from 45deg at 50% 50%, rgba(255, 255, 255, .05) 0 25%, transparent 0 50%) 0 0 / 46px 46px, #1c0f2e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lp-lights { position: absolute; inset: -20%; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 20% 30%, rgba(255, 61, 127, .55), transparent 25%), radial-gradient(circle at 80% 20%, rgba(58, 134, 255, .5), transparent 25%), radial-gradient(circle at 60% 80%, rgba(62, 230, 176, .4), transparent 25%);
  animation: lp-lights 7s ease-in-out infinite alternate; }
@keyframes lp-lights { to { transform: rotate(25deg) scale(1.1); } }
.lp-spots { position: absolute; inset: 0; }
.lp-npc { position: absolute; transform: translate(-50%, -50%); width: 96px; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 1px; transition: transform .2s, opacity .4s; }
.lp-npc.in { animation: lp-in .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.lp-npc.out { opacity: 0; transform: translate(-50%, -30%) scale(.7); pointer-events: none; }
@keyframes lp-in { from { opacity: 0; transform: translate(-50%, -20%) scale(.6); } }
.lp-npc:hover { transform: translate(-50%, -54%) scale(1.05); }
.lp-npcav { position: relative; width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(135deg, #ff3d7f, #ffb36b); padding: 3px; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); animation: lp-bob 2.4s ease-in-out infinite; }
.lp-npc:nth-child(2n) .lp-npcav { animation-delay: -1.2s; }
.lp-npcav .av { border-radius: 50%; background: #2b1840; }
.lp-badge { position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #1c0f2e; background: #fff; object-fit: contain; }
@keyframes lp-bob { 50% { transform: translateY(-4px); } }
.lp-npc b { font-size: 13px; text-shadow: 0 1px 4px #000; }
.lp-npc small { font-size: 10px; opacity: .75; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.lp-me { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 10px 10px; }
.lp-meav { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #3ee6b0, #3a86ff); padding: 2px; }
.lp-meav .av { border-radius: 50%; background: #2b1840; }
.lp-meav .lp-bub { left: 4px; transform: scale(.6); transform-origin: 0 100%; border-radius: 12px 12px 12px 4px; }
.lp-meav .lp-bub.on { transform: none; }
.lp-me input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font: 600 14px var(--f-ui); outline: none; }
.lp-me button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--pink); font-size: 17px; flex: none; }

/* ---------- le rendez-vous ---------- */
.lp-date { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: linear-gradient(180deg, #2a1340, #150b22 45%); transform: translateY(100%); transition: transform .35s cubic-bezier(.2, 1, .3, 1); }
.lp-date.on { transform: none; }
.lp-dhead { position: relative; flex: none; display: flex; gap: 12px; align-items: flex-end; padding: 12px 14px 10px; background: radial-gradient(ellipse at 20% 100%, rgba(255, 61, 127, .35), transparent 70%); }
.lp-x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .25); font-size: 14px; z-index: 2; }
.lp-dav { width: clamp(108px, 30vw, 140px); flex: none; aspect-ratio: 1; margin-bottom: -10px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.lp-dinfo { flex: 1; min-width: 0; display: grid; gap: 4px; padding-bottom: 4px; }
.lp-dinfo > b { font: 22px var(--f-title); }
.lp-dinfo > span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .85; }
.lp-dinfo > span img { width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.lp-bio { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-bio i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(62, 230, 176, .2); }
.lp-bio i.no { background: rgba(255, 77, 77, .22); }
.lp-love { position: relative; height: 18px; margin-top: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: visible; }
.lp-love i { display: block; height: 100%; width: 30%; border-radius: 99px; background: linear-gradient(90deg, #ff8fb3, #ff3d7f); box-shadow: 0 0 12px rgba(255, 61, 127, .6); transition: width .6s cubic-bezier(.3, 1.3, .5, 1); }
.lp-love span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11px var(--f-ui); }
.lp-float { position: absolute; right: 0; top: -4px; font: 800 14px var(--f-ui); font-style: normal; animation: lp-float 1.1s ease-out forwards; }
.lp-float.up { color: #ff8fb3; } .lp-float.down { color: #9aa0b5; }
@keyframes lp-float { to { transform: translateY(-26px); opacity: 0; } }
.lp-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; }
.lp-msg { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.35; animation: lp-pop .28s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes lp-pop { from { transform: scale(.7); opacity: 0; } }
.lp-msg.them { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.lp-msg.me { align-self: flex-end; background: linear-gradient(135deg, #ff3d7f, #b23cff); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.lp-msg.sys { align-self: center; max-width: 100%; padding: 4px 12px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 700; opacity: .85; }
.lp-msg.typing { display: flex; gap: 4px; padding: 13px 16px; }
.lp-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b6a8c9; animation: lp-dot 1s infinite; }
.lp-msg.typing i:nth-child(2) { animation-delay: .15s; } .lp-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lp-dot { 30% { transform: translateY(-4px); background: #7c6d92; } }
.lp-opts { flex: none; display: grid; gap: 8px; padding: 8px 12px 14px; min-height: 30px; }
.lp-opts button { padding: 12px 14px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); text-align: left; font: 600 14.5px/1.3 var(--f-ui); animation: lp-pop .3s both; }
.lp-opts button:nth-child(2) { animation-delay: .06s; } .lp-opts button:nth-child(3) { animation-delay: .12s; } .lp-opts button:nth-child(4) { animation-delay: .18s; }
.lp-opts button:hover { border-color: var(--pink); background: rgba(255, 61, 127, .15); }
.lp-opts .mv { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-opts .mv small { flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.lp-opts .mv small.ok { background: rgba(62, 230, 176, .25); } .lp-opts .mv small.mid { background: rgba(255, 210, 63, .25); } .lp-opts .mv small.bad { background: rgba(255, 77, 77, .28); }
.lp-opts .mv.ghost { opacity: .75; }
.lp-result { position: absolute; left: 50%; top: 40%; z-index: 4; transform: translate(-50%, -50%); padding: 16px 30px; border-radius: 22px; text-align: center; display: grid; gap: 2px; animation: lp-pop .4s cubic-bezier(.3, 1.6, .5, 1) both; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lp-result b { font: 30px var(--f-title); white-space: nowrap; }
.lp-result span { font: 800 18px var(--f-ui); }
.lp-result.is-ok { background: linear-gradient(135deg, #ff3d7f, #ff8a3d); }
.lp-result.is-ko { background: #3a2a4a; }
.lp-result.is-meh { background: #2e3a55; }
.lp-heart { position: absolute; bottom: -30px; z-index: 5; font-style: normal; pointer-events: none; animation: lp-up 2.2s ease-out forwards; }
@keyframes lp-up { to { transform: translateY(-110vh) rotate(25deg); opacity: 0; } }

/* ---------- résultats ---------- */
.lp-res { height: 100%; overflow: auto; padding: 16px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.lp-resav { width: 130px; aspect-ratio: 1; }
.lp-res h2 { margin: 0; font: 22px var(--f-title); }
.lp-big { font: 52px/1 var(--f-title); background: linear-gradient(90deg, #ff3d7f, #ffb36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats { display: flex; gap: 8px; }
.lp-stats span { padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .09); font-weight: 800; font-size: 14px; }
.lp-gain { font: 20px var(--f-title); color: #ffd23f; }
.lp-res h3 { margin: 8px 0 0; font: 15px var(--f-title); opacity: .8; }
.lp-res .lp-rows { width: min(360px, 100%); text-align: left; }
.lp-acts { display: flex; gap: 10px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .lp-lights, .lp-npcav, .lp-time.hurry { animation: none; } }

.lp-acct { padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 14px; }
.lp-acct b { color: var(--pink2); }
.lp-sex { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lp-sex button { padding: 9px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); font: 800 14px var(--f-ui); }
.lp-sex button.on { border-color: var(--pink); background: rgba(255, 61, 127, .2); }
.lp-gain { font-size: 17px; }
.lp-bigw { display: flex; align-items: center; gap: 8px; }
.lp-coin { font-size: 40px; line-height: 1; }

/* profil : tout défile d'un bloc (les cosmétiques ne sont plus coincés dans une petite zone) */
.lp-prof { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lp-prof .lp-panel { flex: none; overflow: visible; min-height: 220px; }
.lp-prof .lp-tabs { position: sticky; top: 0; z-index: 3; background: #1a0f28; }
.lp-prof .lp-go { position: sticky; bottom: 10px; z-index: 4; }
@media (max-height: 820px), (max-width: 520px) { .lp-preview { height: clamp(110px, 19vh, 170px); } .lp-bigav { height: clamp(110px, 19vh, 170px); width: clamp(110px, 19vh, 170px); } }

/* classement mis en avant : podium sur le profil + vrai podium dans le classement */
.lp-podium { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 4px 12px 0; padding: 10px 12px; border: 0; border-radius: 16px; text-align: left; color: #fff;
  background: linear-gradient(120deg, rgba(255, 210, 63, .28), rgba(255, 61, 127, .28)); box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .55); }
.lp-podium__t { font: 800 13px var(--f-ui); white-space: nowrap; }
.lp-podium__l { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; font-size: 12px; }
.lp-podium__l i { font-style: normal; white-space: nowrap; opacity: .9; }
.lp-podium__l b { font-weight: 800; }
.lp-podium__go { padding: 5px 10px; border-radius: 99px; background: #ffd23f; color: #2b1840; font: 800 12px var(--f-ui); }
.lp-board__sub { margin: -6px 0 0; font-size: 13px; opacity: .7; }
.lp-pod { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 6px 0 4px; }
.lp-pod__c { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 0; border-radius: 16px 16px 6px 6px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); }
.lp-pod__c.p1 { background: linear-gradient(180deg, rgba(255, 210, 63, .45), rgba(255, 210, 63, .08)); min-height: 150px; }
.lp-pod__c.p2 { min-height: 122px; }
.lp-pod__c.p3 { min-height: 104px; }
.lp-pod__c.me { box-shadow: inset 0 0 0 2px var(--pink2); }
.lp-pod__m { font-size: 30px; line-height: 1; }
.lp-pod__c b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lp-pod__c small { display: inline-flex; align-items: center; gap: 4px; font: 800 13px var(--f-ui); color: #ffd23f; }
.lp-pod__c i { margin-top: auto; font: 34px/1.1 var(--f-title); font-style: normal; opacity: .25; }
