/* ============ v8 ============ */

/* ---- Brillance des cartes Épiques et Légendaires ---- */
.tcg.r-epic:not(.shiny):not(.missing) .holo,
.tcg.r-legendary:not(.shiny):not(.missing) .holo {
  opacity: 1; overflow: hidden; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 32%, rgba(225, 190, 255, .0) 40%, rgba(240, 220, 255, .55) 48%, rgba(255, 255, 255, .75) 50%, rgba(200, 150, 255, .35) 53%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  animation: v8-shine 4.2s ease-in-out infinite;
}
.tcg.r-legendary:not(.shiny):not(.missing) .holo {
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .95) 0 1.5px, transparent 3px),
    radial-gradient(circle at 78% 34%, rgba(255, 246, 200, .95) 0 1.5px, transparent 3px),
    radial-gradient(circle at 64% 76%, rgba(255, 255, 255, .9) 0 1.2px, transparent 2.6px),
    radial-gradient(circle at 30% 62%, rgba(255, 236, 160, .9) 0 1.2px, transparent 2.6px),
    linear-gradient(115deg, transparent 30%, rgba(255, 220, 120, .35) 42%, rgba(255, 250, 220, .9) 49%, rgba(255, 255, 255, 1) 50%, rgba(255, 200, 70, .5) 54%, transparent 64%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 260% 100%;
  background-repeat: no-repeat;
  animation: v8-shine-leg 3s ease-in-out infinite, v8-twinkle 1.6s ease-in-out infinite;
}
@keyframes v8-shine { 0% { background-position: 160% 0; } 55%, 100% { background-position: -70% 0; } }
@keyframes v8-shine-leg {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 160% 0; }
  55%, 100% { background-position: 0 0, 0 0, 0 0, 0 0, -70% 0; }
}
@keyframes v8-twinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
/* halo qui respire */
.tcg.r-epic:not(.shiny):not(.missing) { animation: v8-glow-epic 3.2s ease-in-out infinite; }
.tcg.r-legendary:not(.shiny):not(.missing) { animation: v8-glow-leg 2.4s ease-in-out infinite; }
@keyframes v8-glow-epic { 0%, 100% { box-shadow: 0 0 14px rgba(180, 107, 255, .35), 0 10px 26px rgba(0, 0, 0, .5); } 50% { box-shadow: 0 0 30px rgba(190, 120, 255, .7), 0 10px 26px rgba(0, 0, 0, .5); } }
@keyframes v8-glow-leg { 0%, 100% { box-shadow: 0 0 20px rgba(246, 195, 67, .45), 0 10px 26px rgba(0, 0, 0, .5); } 50% { box-shadow: 0 0 44px rgba(255, 210, 80, .9), 0 0 80px rgba(255, 170, 30, .35), 0 10px 26px rgba(0, 0, 0, .5); } }
.tcg.tilt.r-epic .holo, .tcg.tilt.r-legendary .holo { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) {
  .tcg.r-epic .holo, .tcg.r-legendary .holo, .tcg.r-epic, .tcg.r-legendary { animation: none !important; }
}

/* ---- Évolution ---- */
.evo-box { margin-top: 14px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(124, 192, 255, .25); }
.evo-box.ready { border-color: rgba(246, 195, 67, .7); box-shadow: 0 0 22px rgba(246, 195, 67, .25); }
.evo-head { display: flex; gap: 10px; align-items: flex-start; }
.evo-ic { font-size: 1.6rem; line-height: 1; }
.evo-bar { position: relative; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .08); margin-top: 10px; overflow: hidden; }
.evo-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3d9bff, #b46bff, #f6c343); border-radius: 11px; transition: width .4s; }
.evo-bar span { position: relative; display: block; text-align: center; font-weight: 700; font-size: .8rem; line-height: 22px; }
.evo-btn { margin-top: 10px; width: 100%; justify-content: center; flex-wrap: wrap; gap: 6px; }
.evo-badge { position: absolute; top: 6px; left: 6px; z-index: 6; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900;
  background: linear-gradient(135deg, #f6c343, #ff8a3d); color: #2a1300; box-shadow: 0 0 12px rgba(246, 195, 67, .8); animation: v8-bounce 1.4s ease-in-out infinite; }
@keyframes v8-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.card-cell { position: relative; }

.evo-bg { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 16, .88); backdrop-filter: blur(6px); animation: fadein .25s; }
.evo-stage { text-align: center; width: min(420px, 100%); }
.evo-title { font-family: 'Russo One', sans-serif; font-size: clamp(1.8rem, 8vw, 2.6rem); color: #f6c343; text-shadow: 0 0 24px rgba(246, 195, 67, .8); margin-bottom: 14px; }
.evo-cards { position: relative; width: min(260px, 70vw); margin: 0 auto 16px; aspect-ratio: 5 / 7; }
.evo-cards .tcg { width: 100%; }
.evo-from, .evo-to { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, 1.3, .4, 1), opacity .4s, filter .6s; }
.evo-from { animation: v8-charge .9s ease-in infinite; }
.evo-to { opacity: 0; transform: scale(.6) rotateY(90deg); }
.evo-flash { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(255, 220, 120, .6) 35%, transparent 65%); opacity: 0; pointer-events: none; }
.evo-bg.go .evo-from { opacity: 0; transform: scale(1.3); filter: brightness(3); animation: none; }
.evo-bg.go .evo-to { opacity: 1; transform: none; }
.evo-bg.go .evo-flash { animation: v8-flash .8s ease-out; }
.evo-new { opacity: 0; font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; transition: opacity .4s .5s; }
.evo-bg.go .evo-new { opacity: 1; }
@keyframes v8-charge { 0%, 100% { transform: translateX(0); filter: brightness(1); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); filter: brightness(1.6); } }
@keyframes v8-flash { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }

/* ---- Pop-up « début du site » / retours ---- */
.fb-modal { max-width: 520px; }
.fb-hero { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.fb-hero img { width: 74px; height: 74px; flex: none; filter: drop-shadow(0 0 14px rgba(61, 155, 255, .6)); }
.fb-hero h2 { margin: 0 0 6px; }
.fb-hero p { margin: 0; line-height: 1.55; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kinds label { cursor: pointer; }
.fb-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kinds span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
.fb-kinds input:checked + span { border-color: #f6c343; background: rgba(246, 195, 67, .18); box-shadow: 0 0 12px rgba(246, 195, 67, .35); }
.fb-kinds input:focus-visible + span { outline: 2px solid #7cc0ff; outline-offset: 2px; }
.fb-item.unread { border-color: rgba(246, 195, 67, .6); }

/* ---- Marchand automatique ---- */
.bot-banner { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 16px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(61, 155, 255, .16), rgba(180, 107, 255, .14)); border: 1px solid rgba(124, 192, 255, .4); }
.bot-banner .bb-ic { font-size: 2rem; line-height: 1; }
.bot-banner p { margin: 4px 0 0; line-height: 1.5; }

/* ---- Page Packs : pack et bouton au centre ---- */
.home-pack { margin-top: 4px; }
.home-pack .pack-zone { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
.home-pack .pack-info { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.home-pack h1 { margin: 0; }
.home-pack .pack-pips { justify-content: center; }
.home-pack .row { flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.home-pack [data-open-btn] { width: min(100%, 340px); justify-content: center; }
@media (max-width: 700px) {
  .home-pack { padding: 18px 14px; }
  .home-pack .pack-art { width: 132px; border-radius: 18px; }
  .home-pack .pack-art .pk-logo { font-size: 1rem; }
  .home-pack h1 { font-size: 1.3rem; }
  .home-pack .timer { font-size: .9rem; }
}

/* ---- v8b : échelle d'évolution d'une carte ---- */
.evo-ladder { display: grid; gap: 8px; margin-top: 12px; }
.evo-step { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; opacity: .6; }
.evo-step.have { opacity: 1; }
.evo-step.on { border-color: #7cc0ff; box-shadow: 0 0 12px rgba(124, 192, 255, .35); }
.evo-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evo-step .evo-bar { margin-top: 8px; height: 18px; }
.evo-step .evo-bar span { line-height: 18px; font-size: .75rem; }
.evo-go { margin-top: 8px; width: 100%; justify-content: center; }
/* carte évoluée : petite marque ⬆ en haut */
.tcg.evolved::after { content: "⬆"; position: absolute; top: 15%; left: 6%; z-index: 8; width: 1.6em; height: 1.6em; display: grid; place-items: center;
  border-radius: 50%; font-size: clamp(.6rem, 4cqw, .95rem); font-weight: 900; background: linear-gradient(135deg, #f6c343, #ff8a3d); color: #2a1300; box-shadow: 0 0 10px rgba(246, 195, 67, .8); }

/* fiche enchère du marché : la carte prend bien sa place sur téléphone */
.wiki .big-card { width: 100%; }
@media (max-width: 760px) { .wiki .big-card { width: min(100%, 300px); position: relative; top: 0; } }

/* ---- Ouverture de pack : cadrage stable sur téléphone ---- */
html.op-lock, html.op-lock body { overflow: hidden; overscroll-behavior: none; }
.op-overlay { height: 100vh; height: 100dvh; touch-action: none; overscroll-behavior: none; justify-content: center; }
.op-stage { height: 100%; justify-content: center; padding: 70px 16px 96px; box-sizing: border-box; }
.op-pack { width: min(58vw, 240px, calc((100dvh - 240px) * 3 / 4.3)); flex: none; }
.op-pile { width: min(68vw, 300px, calc((100dvh - 290px) * 5 / 7)); flex: none; margin-bottom: 52px; }
.op-hint { min-height: 2.8em; display: flex; align-items: flex-start; justify-content: center; max-width: 320px; }
.op-count { min-height: 1.6em; flex: none; }
.op-card { will-change: transform; }
.op-cut { pointer-events: none; }

/* ---- Toutes mes cartes ---- */
.owned-link { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.owned-link:hover, .owned-link:active { border-color: rgba(124, 192, 255, .6); transform: translateY(-1px); }
.mc-filters { flex-wrap: wrap; gap: 8px; }
.mc-filters .chip { cursor: pointer; border: 1px solid transparent; }
.mc-filters .chip.on { outline: 2px solid #f6c343; outline-offset: 1px; }
.dis-btn { border-color: rgba(255, 120, 90, .45); }

/* ---- Fiche carte : boutons bien centrés sur téléphone ---- */
@media (max-width: 760px) {
  .own-actions, .card-actions { flex-direction: column; align-items: center; gap: 10px; }
  .own-actions .btn, .card-actions .btn { width: min(100%, 340px); justify-content: center; text-align: center; }
  .owned-box { justify-content: center; }
}

/* ---- Derniers loots : les pseudos longs ne débordent plus ---- */
.feed-item { min-width: 0; }
.feed-txt { min-width: 0; overflow: hidden; }
.feed-txt b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Échanges dans la conversation ---- */
.dm-msg.is-trade { max-width: min(560px, 96%); }
.dm-trade { padding: 12px; border-radius: 16px; background: linear-gradient(135deg, rgba(61, 155, 255, .14), rgba(180, 107, 255, .12)); border: 1px solid rgba(124, 192, 255, .35); }
.dm-trade.completed { border-color: rgba(79, 209, 181, .6); }
.dm-trade.declined, .dm-trade.cancelled { opacity: .6; }
.dm-trade .trade-cols { gap: 8px; }
.dm-trade h4 { font-size: .8rem; margin: 6px 0; }
.dm-trade .trade-item { width: 64px; }
.dm-trade-acts { margin-top: 10px; gap: 8px; }
.dm-trade-acts .btn { flex: 1; justify-content: center; }
.trade-dust { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-weight: 800; background: rgba(246, 195, 67, .18); border: 1px solid rgba(246, 195, 67, .5); color: #ffd56b; }
.trade-dust-field { margin-top: 10px; }
.trade-dust-field span { font-size: .8rem; }
.msg-tools { gap: 8px; margin: 10px 0 14px; flex-wrap: wrap; }
.dm-trade-btn { font-size: 1.1rem; }
.avatar-field > span { display: block; font-weight: 700; margin-bottom: 8px; }
@media (max-width: 760px) { .msg-tools .btn { flex: 1; justify-content: center; } }

/* ---- Admin : image de collection ---- */
.col-img-prev { height: 150px; border-radius: 14px; background: rgba(255, 255, 255, .05) center / cover no-repeat; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); }
.dm-trade .trade-cols { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.dm-trade .trade-arrow { align-self: center; }

/* listes (classements, amis, messages) : les pseudos longs sont coupés proprement */
.list-item .grow { min-width: 0; }
.list-item .grow > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .score { flex: none; padding-left: 8px; }

/* ---- Fenêtre d'échange compacte ---- */
.modal.tm-modal { max-width: 420px; padding: 16px; background: #10183a; backdrop-filter: none; }
.tm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.tm-head h3 { margin: 0; font-size: 1.15rem; }
.tm-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: inherit; font-size: 1rem; cursor: pointer; }
.tm-with { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; opacity: .85; }
.tm-with select { padding: 6px 10px; height: auto; flex: 1; }
.tm-side { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.tm-lab { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin-bottom: 8px; }
.tm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-items { display: contents; }
.tm-card { position: relative; width: 50px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.tm-card i { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #ff5d73; color: #fff; font-size: .6rem; font-style: normal; display: grid; place-items: center; }
.tm-add { width: 50px; aspect-ratio: 5 / 7; border-radius: 8px; border: 2px dashed rgba(124, 192, 255, .5); background: rgba(124, 192, 255, .06); color: #7cc0ff; font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-content: center; flex: none; }
.tm-add small { font-size: .55rem; margin-top: 2px; }
.tm-dust { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(246, 195, 67, .12); border: 1px solid rgba(246, 195, 67, .4); }
.tm-dust input { width: 64px; border: 0; background: none; color: #ffd56b; font-weight: 800; font-size: 1rem; outline: none; -moz-appearance: textfield; }
.tm-dust input::-webkit-outer-spin-button, .tm-dust input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tm-swap { text-align: center; font-size: 1.1rem; color: #7cc0ff; margin: 2px 0; line-height: 1.2; }
.tm-msg { margin-top: 10px; padding: 10px 12px; }
.tm-send { width: 100%; justify-content: center; margin-top: 10px; }
.tm-note { font-size: .72rem; opacity: .6; text-align: center; margin: 8px 0 0; }

/* ---- Échange dans la conversation : version compacte ---- */
.dm-msg.is-trade { max-width: min(340px, 88%); }
.dm-trade { padding: 10px 12px; border-radius: 14px; }
.dt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; margin-bottom: 6px; }
.dt-head .mk-status { font-size: .7rem; padding: 3px 8px; white-space: nowrap; }
.dt-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.dt-lab { flex: none; width: 74px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.dt-row .trade-items { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dt-row .trade-item { width: 42px; }
.dt-row .trade-dust { padding: 3px 10px; font-size: .85rem; }
.dt-row p.muted { margin: 0; }
.dm-trade-acts { margin-top: 8px; }
.dm-page { overflow: hidden; }
.dt-head { flex-wrap: wrap; row-gap: 4px; }
.dt-head b { white-space: nowrap; }
/* ---- Profil : pseudo long ---- */
.profile-head { flex-wrap: wrap; } .profile-head > .row { flex-basis: 100%; }
.pf-id { flex: 1 1 0; min-width: 0; }
.pf-name { margin: 0 0 4px; font-size: clamp(1.1rem, 5.2vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 480px) { .profile-head { gap: 14px; } .profile-head .avatar.lg { width: 72px; height: 72px; flex: none; font-size: 2rem; } }
/* ---- Réglages : photo de profil ---- */
.av-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.av-box > span { align-self: stretch; text-align: left; font-weight: 700; }
.av-prev .avatar.lg { width: 104px; height: 104px; }
.av-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.av-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 8px; border-radius: 14px; border: 1px solid rgba(124, 192, 255, .3); background: rgba(124, 192, 255, .07); color: inherit; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.av-opt b { font-size: 1.6rem; line-height: 1; }
.av-opt:active { transform: scale(.97); }
.av-del { border: 0; background: none; color: #ff8a9b; font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 4px 8px; }
/* ---- Carte poussière (ouverture de pack) ---- */
.dc-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; z-index: 5; animation: dcIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes dcIn { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.dust-card { position: relative; width: min(52vw, 200px); aspect-ratio: 5 / 7; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 35%, #fff3c4 0%, #f6c343 35%, #b7791f 80%, #6b4410 100%); border: 3px solid #ffe08a; box-shadow: 0 0 40px rgba(246, 195, 67, .6), inset 0 0 30px rgba(255, 255, 255, .4); color: #3a2405; }
.dust-card .dc-ico { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3)); }
.dust-card .dc-amt { font-size: 2.4rem; font-weight: 900; letter-spacing: -.02em; }
.dust-card .dc-lab { font-size: .8rem; font-weight: 900; letter-spacing: .2em; }
.dust-card .dc-shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); animation: dcShine 2.4s ease-in-out infinite; }
@keyframes dcShine { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.dust-card.sm { width: 100%; border-width: 2px; border-radius: 10px; }
.dust-card.sm .dc-ico { font-size: 1.6rem; } .dust-card.sm .dc-amt { font-size: 1.2rem; } .dust-card.sm .dc-lab { font-size: .5rem; }
.dc-txt { max-width: 340px; text-align: center; line-height: 1.5; margin: 0; }
@media (prefers-reduced-motion: reduce) { .dust-card .dc-shine, .dc-wrap { animation: none; } }
/* =================== Admin simplifiée =================== */
.as-search { position: relative; margin: 8px 0 20px; }
.as-search .input.lg { font-size: 1.05rem; padding: 14px 16px; border-radius: 14px; }
.as-res { margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--surface, #141c3d); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 4px; }
.as-res h4 { margin: 8px 4px 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.as-res-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.as-res-item:hover { background: rgba(255, 255, 255, .06); }
.as-res-item small { margin-left: auto; opacity: .6; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.as-h { margin: 22px 0 10px; font-size: 1rem; }
.as-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.as-todo-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 178, 30, .1); border: 1px solid rgba(255, 178, 30, .4); color: inherit; }
.as-todo-item b { font-size: 1.4rem; } .as-todo-item span { font-size: .88rem; opacity: .85; }
.as-todo-item.ok { background: rgba(79, 209, 181, .1); border-color: rgba(79, 209, 181, .4); }
.as-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.as-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 14px; border-radius: 16px; background: rgba(124, 192, 255, .07); border: 1px solid rgba(124, 192, 255, .25); color: inherit; font: inherit; font-weight: 700; text-align: center; cursor: pointer; }
.as-tile b { font-size: 1.9rem; line-height: 1; } .as-tile:hover { background: rgba(124, 192, 255, .14); }
.as-mini { margin-top: 22px; font-size: .85rem; opacity: .75; line-height: 1.7; }
.as-filters { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-chips button, .as-rar button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--c, rgba(255, 255, 255, .25)); background: none; color: inherit; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.as-chips button.active, .as-rar button.active { background: var(--c, #3d9bff); color: #0b1030; border-color: transparent; }
.as-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.as-toggle input[type=checkbox] { width: 20px; height: 20px; accent-color: #3d9bff; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.as-card { position: relative; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .15s; }
.as-card:hover { transform: translateY(-3px); }
.as-hidden { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; background: #000c; font-size: .65rem; }
.as-pick { position: relative; }
.as-pick-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; padding: 6px; border-radius: 12px; background: #0f1736; border: 1px solid rgba(124, 192, 255, .35); box-shadow: 0 12px 30px #0008; }
.as-pick-list button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.as-pick-list button:hover { background: rgba(124, 192, 255, .12); }
.modal.as-modal { max-width: 760px; padding: 18px; background: #10183a; }
.as-ed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.as-ed-head h2 { margin: 0; font-size: 1.2rem; }
.as-ed { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.as-ed-prev { position: sticky; top: 0; }
@media (max-width: 640px) { .as-ed { grid-template-columns: 1fr; } .as-ed-prev { position: static; width: 150px; margin: 0 auto; } }
.as-ed-form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.as-ed-form .field > span { font-weight: 700; font-size: .85rem; display: block; margin-bottom: 6px; }
.as-rar { display: flex; flex-wrap: wrap; gap: 6px; }
.as-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .as-2 { grid-template-columns: 1fr; } }
.as-photo { display: flex; gap: 12px; align-items: flex-start; }
.as-photo-prev { flex: none; width: 92px; height: 92px; border-radius: 12px; background: rgba(255, 255, 255, .05) center / cover no-repeat; border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: .7rem; opacity: .9; text-align: center; }
.as-photo-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.as-photo-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.as-help { font-size: .74rem; opacity: .6; margin: 0; line-height: 1.4; }
.as-more { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 10px; }
.as-more summary { cursor: pointer; font-weight: 700; font-size: .9rem; opacity: .8; margin-bottom: 8px; }
.as-more[open] { display: flex; flex-direction: column; gap: 10px; }
.as-merge { padding: 12px; border-radius: 12px; background: rgba(180, 107, 255, .08); border: 1px solid rgba(180, 107, 255, .3); display: flex; flex-direction: column; gap: 8px; }
.as-merge .btn { align-self: flex-start; }
.as-ed-foot { display: flex; gap: 8px; margin-top: 16px; position: sticky; bottom: -18px; padding: 12px 0 4px; background: #10183a; }
.as-ed-foot .btn.primary { flex: 1; justify-content: center; }
.as-tree { padding: 6px; margin-top: 10px; }
.as-node { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px calc(6px + var(--d) * 18px); border-radius: 10px; }
.as-node:hover { background: rgba(255, 255, 255, .04); }
.as-tog { flex: none; width: 26px; height: 26px; border: 0; background: none; color: inherit; font-size: .9rem; cursor: pointer; }
.as-thumb { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06) center / cover no-repeat; display: grid; place-items: center; font-size: 1.1rem; }
.as-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.as-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-name small { font-size: .75rem; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-tabs { margin-bottom: 14px; }
.as-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.as-tool { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: inherit; }
.as-tool b { font-size: 1.6rem; } .as-tool span { display: flex; flex-direction: column; } .as-tool small { opacity: .65; font-size: .8rem; }
@media (max-width: 480px) { .as-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.as-ed-foot .btn { white-space: nowrap; }
@media (max-width: 480px) { .as-photo-prev { width: 72px; height: 72px; } .modal.as-modal { padding: 14px; } }
.as-players { display: flex; align-items: baseline; gap: 12px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(61, 155, 255, .22), rgba(180, 107, 255, .18)); border: 1px solid rgba(124, 192, 255, .4); color: inherit; margin: 6px 0 10px; }
.as-players b { font-size: 2.4rem; line-height: 1; } .as-players span { font-weight: 700; opacity: .85; }
.as-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.as-kpis div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.as-kpis b { font-size: 1.25rem; } .as-kpis span { font-size: .75rem; opacity: .7; }
.modal.as-modal-sm { max-width: 480px; }
.as-swap-ico { text-align: center; font-size: .85rem; opacity: .7; }
.as-merge-sum { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(180, 107, 255, .1); font-size: .9rem; }
.as-merge-sum:empty { display: none; }
.as-ed-foot .btn:disabled { opacity: .45; }
.as-pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.as-pagehead h1 { margin: 0; }
#adm { min-width: 0; }
/* Drapeaux des catégories « Parcs — Pays » : drapeau entier, centré */
[style*="flagcdn.com"] { background-size: auto 72% !important; background-position: center !important; background-repeat: no-repeat !important; background-color: #16204a !important; }
img[src*="flagcdn.com"] { object-fit: contain !important; background: #16204a; }
/* Photos des catégories cadrées vers le bas (on voit les attractions, pas le ciel) */
.col-banner, .col-img-prev, .as-thumb, .as-photo-prev { background-position: center 85% !important; }
[style*="flagcdn.com"][style] { background-position: center !important; }

/* =================== Collections : tuiles photo =================== */
.ct-top h1 { margin: 0 0 12px; }
.ct-owned { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; color: inherit;
  background: linear-gradient(135deg, rgba(61, 155, 255, .18), rgba(180, 107, 255, .14)); border: 1px solid rgba(124, 192, 255, .3); }
.ct-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #10183a 78%, transparent 80% 100%), conic-gradient(#ffd56b calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.ct-ring b { font-size: .95rem; }
.ct-owned-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-owned-txt b { font-size: 1.25rem; } .ct-owned-txt small { opacity: .75; } .ct-owned-txt .ct-link { color: #7cc0ff; opacity: 1; }
.ct-search { margin-bottom: 18px; }
.ct-sec { margin-bottom: 26px; }
.ct-sec h2 { font-size: 1.15rem; margin: 0 0 12px; }
.ct-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .ct-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }
.ct { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cc) 70%, #0b1030), color-mix(in srgb, var(--cc) 25%, #1a0f40));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform .18s, box-shadow .18s; }
.ct:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.ct:active { transform: scale(.98); }
.ct[hidden] { display: none; }
.ct-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; z-index: -2; }
.ct-flag { background: #16204a; }
.ct-flag .ct-img { object-fit: contain; object-position: center 30%; inset: 10% 14% 38%; width: 72%; height: 52%; border-radius: 4px; box-shadow: 0 4px 14px #0007; }
.ct-emoji { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-size: 2.6rem; opacity: .55; z-index: -1; }
.ct-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 8, 25, .88) 100%); }
.ct-flagemo { position: absolute; top: 8px; right: 10px; font-size: 1.3rem; filter: drop-shadow(0 2px 3px #0008); }
.ct-pct { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: rgba(5, 8, 25, .75); border: 1px solid rgba(255, 255, 255, .2); }
.ct-pct.done { background: #4fd1b5; color: #062018; border-color: transparent; }
.ct-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ct-info b { font-size: .98rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 6px #000a; }
.ct-info small { font-size: .72rem; opacity: .8; }
.ct-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: 4px; }
.ct-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd56b, #ffb21e); border-radius: 4px; }
@media (max-width: 380px) { .ct-info b { font-size: .88rem; } .ct { border-radius: 14px; } }
.ct-flag .ct-img { inset: 9% 16% 44%; width: 68%; height: 47%; }

/* Collections : même visuel 2 par rangée sur ordinateur */
@media (min-width: 700px) { .ct-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.ct-top, .ct-owned, .ct-search, .ct-sec { max-width: 760px; margin-left: auto; margin-right: auto; }
.ct-top { display: block; }
.as-notif { margin-top: 22px; }
.ct-subsec { max-width: 760px; margin-left: auto; margin-right: auto; }
.ct-search { display: block; width: 100%; }
.ct-top, .ct-owned, .ct-search, .ct-sec, .ct-subsec { max-width: 680px; }

/* Admin : fidélité des joueurs */
.as-loyal { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; margin-bottom: 16px; border-radius: 14px; color: inherit; background: rgba(79, 209, 181, .08); border: 1px solid rgba(79, 209, 181, .35); overflow: hidden; }
.as-loyal b { font-size: 1.3rem; color: #4fd1b5; } .as-loyal small { opacity: .7; font-size: .78rem; }
.as-loyal i { position: absolute; left: 0; bottom: 0; height: 5px; width: var(--w); background: linear-gradient(90deg, #4fd1b5, #7cc0ff); }

/* =================== Admin : Photos rapides =================== */
.fp-how ol { margin: 8px 0; padding-left: 20px; line-height: 1.7; }
kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font: 700 .75rem/1.4 ui-monospace, monospace; }
.fp-setup { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.fp-progress { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 10px 14px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); overflow: hidden; margin-bottom: 14px; }
.fp-progress b { font-size: 1.2rem; } .fp-progress span { font-size: .85rem; opacity: .75; }
.fp-progress i { position: absolute; left: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #4fd1b5, #7cc0ff); transition: width .3s; }
.fp-main { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
@media (max-width: 640px) { .fp-main { grid-template-columns: 1fr; } .fp-card { width: 160px; margin: 0 auto; } }
.fp-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fp-side h2 { margin: 0; } .fp-side p { margin: 0; }
.fp-g { justify-content: center; }
.fp-paste { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px 14px; border-radius: 16px; border: 2px dashed rgba(124, 192, 255, .55); background: rgba(124, 192, 255, .06); text-align: center; outline: none; }
.fp-paste b { font-size: 1.1rem; } .fp-paste small { opacity: .7; }
.fp-paste.over, .fp-paste:focus-within { border-color: #4fd1b5; background: rgba(79, 209, 181, .1); }
.fp-paste .input { margin-top: 8px; width: 100%; }
.fp-nav { gap: 8px; } .fp-nav .btn { flex: 1; justify-content: center; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.fp-mini { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 10px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.fp-mini img, .fp-mini span { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 85%; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.fp-mini b { font-size: .68rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-mini.cur { border-color: #7cc0ff; } .fp-mini.ok { border-color: rgba(79, 209, 181, .6); }
.fp-mini i { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: #4fd1b5; color: #062018; font-style: normal; font-weight: 900; display: grid; place-items: center; font-size: .75rem; }
.fp-end h2 { margin-top: 0; }

/* Un élément masqué reste masqué, même si c'est un bouton (.btn forçait l'affichage) */
[hidden] { display: none !important; }

/* Photos rapides : sous-catégories */
.fp-colprev { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: grid; place-items: center; font-size: 2.6rem; background: #1a2350 center 85% / cover no-repeat; border: 1px solid rgba(255, 255, 255, .15); }
.fp-colprev b { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .85rem; background: linear-gradient(transparent, rgba(5, 8, 25, .9)); text-align: left; }
.fp-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(255, 213, 107, .15); color: #ffd56b; }

/* =================== Admin : Ranger un parc =================== */
.rg-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 18px; margin-top: 16px; align-items: start; }
.rg-side { position: sticky; top: 74px; display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 100px); overflow: auto; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.rg-side-h { padding: 4px 4px 6px; font-size: .85rem; }
.rg-folder { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-left: calc(var(--d) * 14px); border-radius: 12px; border: 2px dashed transparent; background: rgba(255, 255, 255, .05); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.rg-folder:hover { background: rgba(124, 192, 255, .12); }
.rg-folder.open { background: rgba(124, 192, 255, .18); border-color: rgba(124, 192, 255, .5); border-style: solid; }
.rg-ico { font-size: 1.4rem; }
.rg-nm { display: flex; flex-direction: column; min-width: 0; flex: 1; } .rg-nm b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rg-nm small { opacity: .65; font-size: .72rem; }
.rg-drop { display: none; font-size: .7rem; font-weight: 800; color: #4fd1b5; white-space: nowrap; }
.rg-wrap.dragging .rg-folder, .rg-wrap.has-sel .rg-folder { border-color: rgba(79, 209, 181, .55); border-style: dashed; }
.rg-wrap.dragging .rg-drop, .rg-wrap.has-sel .rg-drop { display: inline; }
.rg-folder.over { background: rgba(79, 209, 181, .25); border-color: #4fd1b5; border-style: solid; transform: scale(1.03); }
.rg-new { margin-top: 6px; justify-content: center; }
.rg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rg-head h2 { margin: 0; } .rg-head p { margin: 2px 0 0; }
.rg-main > .input { margin-bottom: 10px; }
.rg-selbar { position: sticky; top: 70px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: #1d6b5c; color: #fff; box-shadow: 0 6px 18px #0006; }
.rg-selbar .btn { margin-left: auto; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.rg-card { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .05); cursor: grab; user-select: none; -webkit-user-select: none; transition: transform .12s, border-color .12s; }
.rg-card:hover { transform: translateY(-2px); }
.rg-card img, .rg-card > span { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 85%; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 1.6rem; pointer-events: none; }
.rg-card b { font-size: .74rem; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-card i { display: none; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #4fd1b5; color: #062018; font-style: normal; font-weight: 900; place-items: center; font-size: .8rem; }
.rg-card.sel { border-color: #4fd1b5; background: rgba(79, 209, 181, .14); } .rg-card.sel i { display: grid; }
.rg-card.drag { opacity: .4; }
.rg-empty { grid-column: 1 / -1; padding: 40px 10px; text-align: center; opacity: .7; border: 2px dashed rgba(255, 255, 255, .15); border-radius: 14px; }
@media (max-width: 760px) {
  .rg-wrap { grid-template-columns: 1fr; }
  .rg-side { position: sticky; top: 60px; z-index: 6; flex-direction: row; overflow-x: auto; max-height: none; padding: 8px; background: rgba(12, 18, 45, .96); backdrop-filter: blur(8px); }
  .rg-side-h { display: none; }
  .rg-folder { flex: none; margin-left: 0; max-width: 170px; padding: 7px 9px; }
  .rg-ico { font-size: 1.1rem; }
  .rg-drop { display: none !important; }
  .rg-new { flex: none; margin-top: 0; white-space: nowrap; }
  .rg-selbar { top: 128px; }
  .rg-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
}

.rg-folder.moving { border-color: #ffd56b; border-style: solid; background: rgba(255, 213, 107, .15); }
.rg-folder.drag { opacity: .4; }
.rg-folder[draggable="true"] { cursor: grab; }

/* =================== v9 : bas de carte = parc + logo =================== */
.tcg-foot .tcg-place { display: inline-flex; align-items: center; gap: 1.6cqw; min-width: 0; overflow: hidden; }
.tcg-place-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tcg-foot-logo { flex: none; height: 6.2cqw; max-width: 18cqw; object-fit: contain; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .6)); }
.tcg-foot-flag { flex: none; font-size: 5cqw; line-height: 1; }

/* =================== Admin : Renommer en masse =================== */
.nm-bar { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; margin-bottom: 12px; border-radius: 14px; background: rgba(12, 18, 45, .95); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); }
.nm-bar .input { flex: 1; min-width: 160px; }
.nm-list { display: flex; flex-direction: column; gap: 8px; }
.nm-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.nm-row.bad { border-color: rgba(255, 140, 90, .45); }
.nm-row.saved { border-color: rgba(79, 209, 181, .5); }
.nm-img { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 1.4rem; }
.nm-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.nm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; min-width: 0; }
.nm-fields label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nm-fields label .input { flex: 1; min-width: 0; padding: 8px 10px; }
.nm-fields small { grid-column: 1 / -1; font-size: .72rem; }
.nm-acts { display: flex; align-items: center; gap: 6px; }
.nm-ok { width: 20px; text-align: center; color: #4fd1b5; }
@media (max-width: 700px) {
  .nm-row { grid-template-columns: 48px 1fr; }
  .nm-img { width: 48px; height: 40px; }
  .nm-fields { grid-template-columns: 1fr; }
  .nm-acts { grid-column: 1 / -1; justify-content: flex-end; }
}

.as-pick-sfx { float: right; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(255, 213, 107, .15); color: #ffd56b; }

/* =================== v9 : cartes — noms entiers, lieu bien visible, pas de logo =================== */
.tcg .tcg-name { font-size: var(--nf, 7.6cqw) !important; -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; overflow-wrap: anywhere; hyphens: auto; line-height: 1.08; }
.tcg-park-logo, .tcg-foot-logo { display: none !important; }
.tcg-foot { font-size: 4.8cqw; }
.tcg-foot .tcg-stars { flex: none; font-size: 3.6cqw; letter-spacing: .02em; white-space: nowrap; }
.tcg-foot .tcg-place { display: inline-flex; align-items: center; gap: 1.4cqw; min-width: 0; overflow: visible; flex: 1; }
.tcg-foot .tcg-place-nm { font-size: var(--pf, 5.6cqw); font-weight: 900; letter-spacing: .01em; line-height: 1.05; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; word-break: normal; hyphens: none; text-transform: uppercase; min-width: 0; }
.tcg-foot .tcg-foot-flag { flex: none; font-size: 5.6cqw; line-height: 1; }
.tcg-foot span:first-child { overflow: visible !important; text-overflow: clip !important; white-space: normal !important; }

/* Dos de carte d'un pack de parc : logo du parc */
.tcg-back.park-back .bk img { width: 64cqw; max-height: 60cqw; object-fit: contain; }
.op-pack-img.park { max-height: 38%; width: auto; max-width: 72%; object-fit: contain; }
.op-park .op-pack-body { background: linear-gradient(160deg, var(--pk, #1b4f7e), #3d2a9e 60%, #b0337f) !important; }

/* Admin : logo du parc */
.as-logo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.as-logo-prev { width: 84px; height: 84px; flex: none; border-radius: 14px; display: grid; place-items: center; background: repeating-conic-gradient(rgba(255,255,255,.08) 0 25%, transparent 0 50%) 0 0 / 16px 16px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.4); }
.as-logo-prev img { max-width: 76px; max-height: 76px; object-fit: contain; }
.as-logo-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1; min-width: 200px; }
.as-logo-acts .input { flex: 1; min-width: 160px; }

/* =================== v9 : page d'une collection =================== */
.ch-hero { position: relative; min-height: 300px; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff; margin-bottom: 18px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cc) 70%, #0b1030), color-mix(in srgb, var(--cc) 25%, #1a0f40)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.ch-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 85%; z-index: -2; transform: scale(1.02); }
.ch-flag { background: #16204a; }
.ch-flag .ch-bg { inset: 18% 25% auto auto; width: 42%; height: auto; max-height: 46%; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 20px #0008; transform: none; }
.ch-emoji { position: absolute; right: 8%; top: 18%; font-size: 6rem; opacity: .35; z-index: -1; }
.ch-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,8,25,.55) 0%, rgba(5,8,25,0) 28%, rgba(5,8,25,.25) 50%, rgba(5,8,25,.95) 100%); }
.ch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; }
.ch-back, .ch-edit { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff; background: rgba(5,8,25,.55); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-back:hover, .ch-edit:hover { background: rgba(5,8,25,.8); }
.ch-info { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.ch-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-tags span { padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.ch-tags .ch-path { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .9; }
.ch-hero h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1.05; text-shadow: 0 4px 18px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.ch-desc { margin: 0; max-width: 680px; opacity: .88; font-size: .92rem; text-shadow: 0 2px 8px #000a; }
.ch-prog { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 10px 14px; border-radius: 16px; background: rgba(5,8,25,.5); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 460px; }
.ch-prog .ct-ring { width: 56px; height: 56px; }
.ch-prog-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ch-prog-txt b { font-size: 1.2rem; } .ch-prog-txt small { opacity: .75; }
.ch-bar { display: block; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 4px; }
.ch-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd56b, #ffb21e); border-radius: 5px; }
@media (max-width: 600px) { .ch-hero { min-height: 260px; border-radius: 20px; } .ch-info { padding: 0 14px 14px; } .ch-flag .ch-bg { width: 50%; right: 8%; top: 22%; } }
.op-pack-img.park { width: 82% !important; max-width: 82% !important; max-height: 58% !important; height: auto; object-fit: contain; margin-bottom: 10px; }
.op-pack-logo .op-pack-img.park { width: 130px !important; max-width: none !important; height: 130px !important; max-height: none !important; object-fit: contain; }

/* =================== Admin : cartes sans catégorie / suppression =================== */
.as-danger { padding: 12px 14px; border-radius: 12px; background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .45); }
.as-danger ul { margin: 6px 0; padding-left: 20px; } .as-danger p { margin: 6px 0 0; font-size: .85rem; opacity: .85; }
.or-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.or-sum div { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; display: flex; flex-direction: column; }
.or-sum b { font-size: 1.4rem; } .or-sum span { font-size: .72rem; opacity: .7; }
.or-list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 150px; }
.or-row { display: grid; grid-template-columns: auto 56px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(79, 209, 181, .07); border: 1px solid rgba(79, 209, 181, .3); cursor: pointer; }
.or-row.on { background: rgba(255, 90, 90, .07); border-color: rgba(255, 90, 90, .35); }
.or-row input { width: 20px; height: 20px; }
.or-row .nm-img { width: 56px; height: 42px; }
.or-nm { display: flex; flex-direction: column; min-width: 0; } .or-nm small { opacity: .7; font-size: .75rem; }
.or-tag { font-size: .72rem; font-weight: 800; white-space: nowrap; }
.or-player { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.or-player summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; flex-wrap: wrap; }
.or-pcards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.or-pcards span { padding: 3px 9px; border-radius: 999px; font-size: .75rem; background: rgba(255, 255, 255, .07); }
.or-pcards .gone { background: rgba(255, 90, 90, .15); } .or-pcards .kept { background: rgba(79, 209, 181, .15); }
.or-foot { position: sticky; bottom: 70px; z-index: 6; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(12, 18, 45, .97); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 -8px 30px #0008; }
.or-keep, .or-del { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.or-keep .as-pick { flex: 1; min-width: 180px; }
.or-del .btn { margin-left: auto; }
@media (max-width: 600px) { .or-row { grid-template-columns: auto 44px 1fr; } .or-tag { grid-column: 2 / -1; } .or-del .btn { width: 100%; justify-content: center; } }
.as-modal-sm .as-ed-foot { flex-wrap: wrap; } .as-modal-sm .as-ed-foot [data-keep] { font-size: .78rem; white-space: normal; text-align: center; flex: 1 1 100%; justify-content: center; } .as-modal-sm .as-ed-foot [data-go] { flex: 1 1 100%; justify-content: center; }

.tr-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 14px 0 8px; }
.tr-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #b46bff, #7cc0ff); transition: width .3s; }
.nm-where { grid-column: 1 / -1; font-size: .72rem; opacity: .8; }

/* =================== v10 : 🎡 Mon parc =================== */
.mp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mp-head h1 { margin: 0 0 4px; }
.mp-tabs { margin: 0; }
.mp-cash { padding: 14px 16px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(240, 177, 30, .22), rgba(240, 177, 30, .06)); border: 1px solid rgba(240, 177, 30, .45); }
.mp-cash.full { animation: mpPulse 1.6s infinite; border-color: #ff6b6b; }
@keyframes mpPulse { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 107, .18); } }
.mp-cash-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 1.05rem; }
.mp-cash-top span b { font-size: 1.5rem; color: #ffd84a; }
.mp-bar { height: 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); overflow: hidden; margin: 8px 0; }
.mp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0b11e, #ffe27a); transition: width .5s; }
.mp-cash-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
.mp-stats > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.mp-stats b { font-size: 1.15rem; } .mp-stats span { font-size: .72rem; opacity: .7; }
@media (max-width: 560px) { .mp-stats { grid-template-columns: repeat(2, 1fr); } }
.mp-bonus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mp-bonus .chip.ghost { opacity: .7; }
.mp-map { --n: 3; position: relative; border-radius: 26px; padding: 64px 14px 18px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .15);
  background: radial-gradient(circle at 30% 20%, #8fdc6a, #4f9e3a 70%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .35), 0 20px 40px rgba(0, 0, 0, .35); }
.mp-map.theme-nuit { background: radial-gradient(circle at 50% 0%, #2c3c8c, #0b1030 75%); }
.mp-map.theme-foret { background: radial-gradient(circle at 30% 20%, #4b8f4a, #1d4a22 75%); }
.mp-map.theme-plage { background: radial-gradient(circle at 70% 20%, #ffe3a1, #e7b765 45%, #2fb5c9 100%); }
.mp-map.theme-neige { background: radial-gradient(circle at 30% 20%, #ffffff, #c7dcf2 70%); }
.mp-map.theme-neon { background: linear-gradient(160deg, #1a0b3a, #0b1e4a); }
.mp-map::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.5px, transparent 1.5px); background-size: 26px 26px; }
.mp-gate { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; max-width: 92%;
  padding: 8px 20px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #ff5e7e, #c81d4e); color: #fff; font-family: 'Russo One', sans-serif;
  box-shadow: 0 6px 0 #7a0f2e, 0 10px 20px rgba(0, 0, 0, .35); z-index: 3; overflow: hidden; text-overflow: ellipsis; }
.mp-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.mp-plot { position: relative; aspect-ratio: 5 / 7; border-radius: 12px; padding: 0; cursor: pointer; border: 2px dashed rgba(255, 255, 255, .55);
  background: rgba(120, 85, 50, .35); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.mp-plot:hover:not(:disabled) { transform: translateY(-3px); }
.mp-plot.built { border: 0; background: none; }
.mp-plot.lost { filter: grayscale(1); opacity: .5; }
.mp-card { width: 100%; }
.mp-v { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; font-size: .68rem; font-weight: 800; padding: 2px 8px; border-radius: 99px;
  background: rgba(10, 14, 40, .9); color: #ffd84a; border: 1px solid rgba(255, 216, 74, .5); z-index: 3; }
.mp-add { display: flex; flex-direction: column; align-items: center; font-size: 2rem; line-height: 1; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.mp-add small { font-size: .7rem; font-weight: 800; margin-top: 4px; }
.mp-grass { font-size: 1.6rem; opacity: .7; }
.mp-walk { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.mp-walk i { position: absolute; left: -30px; top: var(--y); font-style: normal; font-size: 1.1rem; animation: mpWalk var(--d) linear infinite; animation-delay: var(--del); }
@keyframes mpWalk { to { transform: translateX(calc(100vw + 60px)); } }
@media (min-width: 900px) { @keyframes mpWalk { to { transform: translateX(1000px); } } }
.mp-tools { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.mp-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-th { border: 2px solid transparent; border-radius: 99px; padding: 6px 12px; color: #fff; font-weight: 700; cursor: pointer; background: rgba(255, 255, 255, .08); }
.mp-th.on { border-color: #ffd84a; background: rgba(255, 216, 74, .18); }
.mp-pop-card { width: 190px; margin: 0 auto 10px; }
.mp-top { display: flex; flex-direction: column; gap: 8px; }
.mp-top-row { display: grid; grid-template-columns: 44px 1fr auto auto auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: inherit; text-decoration: none; }
.mp-top-row:hover { background: rgba(255, 255, 255, .1); }
.mp-rank { font-size: 1.3rem; text-align: center; font-weight: 900; }
@media (max-width: 560px) { .mp-top-row { grid-template-columns: 36px 1fr auto; } .mp-top-row .muted, .mp-top-row .chip:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .mp-walk, .mp-cash.full { animation: none; } .mp-walk i { display: none; } }

/* =================== v10 : 📍 Je suis au parc + passeport =================== */
.visit-hero { text-align: center; padding: 26px 18px; border-radius: 26px; margin-bottom: 18px; background: radial-gradient(circle at 50% 0%, rgba(61, 155, 255, .35), rgba(20, 20, 60, .2) 70%);
  border: 1px solid rgba(61, 155, 255, .4); }
.visit-hero h1 { margin: 6px 0; }
.vh-ico { font-size: 3.4rem; animation: vhBob 2s ease-in-out infinite; }
@keyframes vhBob { 50% { transform: translateY(-8px); } }
.vh-list { list-style: none; padding: 0; margin: 14px auto; max-width: 460px; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.vh-list li { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 8px 12px; }
.vh-btn { font-size: 1.25rem; padding: 18px 34px; margin: 8px 0; box-shadow: 0 0 0 0 rgba(61, 155, 255, .6); animation: vhPing 2s infinite; }
@keyframes vhPing { 70% { box-shadow: 0 0 0 18px rgba(61, 155, 255, 0); } }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.stamp { --sc: #3d9bff; aspect-ratio: 1; border-radius: 50%; padding: 6px; border: 3px dashed var(--sc); transform: rotate(-6deg); background: rgba(255, 255, 255, .03); }
.stamp:nth-child(2n) { transform: rotate(5deg); } .stamp:nth-child(3n) { transform: rotate(-2deg); }
.stamp-in { height: 100%; border-radius: 50%; border: 2px solid var(--sc); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px;
  color: color-mix(in srgb, var(--sc) 55%, #fff); position: relative; }
.stamp-in img { max-width: 60%; max-height: 34%; object-fit: contain; }
.stamp-flag { font-size: 1.6rem; }
.stamp-in b { font-size: .78rem; line-height: 1.1; text-transform: uppercase; font-family: 'Russo One', sans-serif; margin-top: 4px; }
.stamp-in small { font-size: .62rem; opacity: .8; }
.stamp-in em { position: absolute; top: 8%; right: 8%; font-style: normal; font-size: .7rem; font-weight: 900; background: var(--sc); color: #000; border-radius: 99px; padding: 1px 6px; }
.visit-win .stamp { width: 150px; margin: 10px auto; }
.vw-k { font-family: 'Russo One', sans-serif; color: #ffd84a; letter-spacing: .05em; margin: 0; }
.op-visit { display: block; font-size: .55em; letter-spacing: .12em; color: #ffd84a; margin-top: 4px; }

/* =================== v10 : 🎉 pop-up nouveautés =================== */
.news-modal { max-width: 560px; border: 2px solid rgba(240, 177, 30, .6); background: radial-gradient(circle at 50% 0%, rgba(240, 177, 30, .25), transparent 60%), var(--card, #10153a); }
.news { text-align: center; }
.news-burst { font-size: 3.6rem; animation: newsPop .9s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes newsPop { from { transform: scale(0) rotate(-30deg); } }
.news-k { display: inline-block; margin: 4px 0 0; padding: 6px 16px; border-radius: 99px; background: linear-gradient(90deg, #ff5e7e, #f0b11e); color: #1a0b1f;
  font-family: 'Russo One', sans-serif; font-size: 1.05rem; letter-spacing: .08em; animation: newsShine 2s infinite; }
@keyframes newsShine { 50% { filter: brightness(1.25); transform: scale(1.04); } }
.news h2 { margin: 10px 0 14px; }
.news-item { display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: 16px; margin-bottom: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.news-item > span { font-size: 2rem; line-height: 1; }
.news-item b { font-family: 'Russo One', sans-serif; letter-spacing: .04em; }
.news-item p { margin: 4px 0; font-size: .92rem; }
.news-item small { opacity: .65; }
.news-item.n1 { border-color: rgba(255, 94, 126, .5); } .news-item.n2 { border-color: rgba(61, 155, 255, .5); } .news-item.n3 { border-color: rgba(240, 177, 30, .5); }
.news-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* =================== v10 : admin GPS =================== */
.gps-list { display: flex; flex-direction: column; gap: 6px; }
.gps-row { display: grid; grid-template-columns: 1fr 200px auto 24px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
@media (max-width: 640px) { .gps-row { grid-template-columns: 1fr auto 24px; } .gps-row > div { grid-column: 1 / -1; } }

/* v10b — tuile compacte d'attraction dans Mon parc */
.mp-ride { --rc: var(--r-common); position: absolute; inset: 0; border-radius: 12px; overflow: hidden; border: 3px solid var(--rc);
  background: #141a3a; box-shadow: 0 4px 0 rgba(0, 0, 0, .3), 0 0 14px color-mix(in srgb, var(--rc) 45%, transparent); text-align: left; }
.mp-ride.r-uncommon { --rc: var(--r-uncommon); } .mp-ride.r-rare { --rc: var(--r-rare); }
.mp-ride.r-epic { --rc: var(--r-epic); } .mp-ride.r-legendary { --rc: var(--r-legendary); }
.mp-ride-art { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 55%, #1b2350), #10142e) center / cover;
  display: grid; place-items: center; }
.mp-ride-art[style] { background-size: cover; background-position: center; }
.mp-ride-art span { font-size: 2.4rem; margin-bottom: 30%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.mp-ride::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(6, 8, 24, .92)); pointer-events: none; }
.mp-ride-rar { position: absolute; top: 5px; left: 5px; z-index: 2; font-size: .62rem; letter-spacing: 1px; padding: 2px 6px; border-radius: 99px;
  background: var(--rc); color: #0c0f24; font-weight: 900; }
.mp-ride-name { position: absolute; left: 6px; right: 6px; bottom: 14px; z-index: 2; font-size: .74rem; line-height: 1.15; color: #fff; font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px #000; overflow-wrap: anywhere; }
.mp-ride.shiny::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 20%, #ff6ad5 35%, #7afcff 50%, #fffa7a 65%, transparent 80%) 0 0 / 250% 100%; animation: mpHolo 4s linear infinite; }
@keyframes mpHolo { to { background-position: -250% 0; } }
@media (prefers-reduced-motion: reduce) { .mp-ride.shiny::before { animation: none; } }

/* v10c — profil refait */
.pf2 { max-width: 760px; margin: 0 auto; }
.pf2-hero { padding: 18px; }
.pf2-top { display: flex; align-items: center; gap: 14px; }
.pf2-top > :first-child { flex: none; }
.pf2-id { flex: 1; min-width: 0; }
.pf2-name { margin: 0 0 2px; font-size: 1.5rem; line-height: 1.15; overflow-wrap: anywhere; }
.pf2-gear { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-size: 1.2rem; text-decoration: none; }
.pf2-bio { margin: 12px 0 0; color: var(--ink2); }
.pf2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pf2-actions .btn { flex: 1 1 140px; justify-content: center; }
.pf2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.pf2-stats > div { background: rgba(7, 10, 28, .55); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pf2-stats b { font-family: var(--font-title); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.pf2-stats b small { font-size: .65em; color: var(--ink2); font-weight: 700; }
.pf2-stats span { font-size: .68rem; font-weight: 800; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf2-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--ink2); }
.pf2-recycle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 11px; border-radius: 12px; cursor: pointer;
  background: rgba(69, 196, 139, .12); border: 1px dashed rgba(69, 196, 139, .6); color: var(--ink); font: inherit; font-weight: 800; }
.pf2-recycle b { background: #45c48b; color: #06261a; border-radius: 99px; padding: 1px 8px; }
.pf2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pf2-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf2-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 4px;
  border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: transform .12s, border-color .12s; }
.pf2-tile:hover { transform: translateY(-2px); border-color: rgba(240, 177, 30, .6); }
.pf2-tile:active { transform: scale(.97); }
.pf2-ic { font-size: 1.6rem; line-height: 1; }
.pf2-tile b { font-size: .74rem; font-weight: 800; text-align: center; line-height: 1.1; }
.pf2-tiles.two .pf2-tile { flex-direction: row; min-height: 60px; gap: 10px; }
.pf2-tiles.two .pf2-tile b { font-size: .9rem; }
.pf2-badge { position: absolute; top: 6px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff4f8b; color: #fff; font-style: normal; font-size: .68rem; font-weight: 900; display: grid; place-items: center; }
.pf2-ach-head { display: flex; align-items: center; justify-content: space-between; }
.pf2-ach-head h2 { margin: 0; }
.pf2-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin: 10px 0 14px; overflow: hidden; }
.pf2-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f0b11e, #ff7ad9); }
.pf2-more { display: flex; width: 100%; justify-content: center; margin-top: 12px; }
.pf2 .section { margin-top: 22px; }
@media (max-width: 380px) { .pf2-stats b { font-size: 1.15rem; } .pf2-tile b { font-size: .68rem; } }

/* v10c — visuels de packs personnalisés */
.op-pack-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.op-pack-body:has(.op-pack-full)::before { display: none; }
.op-pack-logo { z-index: 2; }
.op-pack-logo .op-visit { align-self: end; }
.tcg-back.custom-back { background-size: cover; background-position: center; border: 3px solid rgba(255, 255, 255, .85); }

/* v10c — onglet Packs refait */
.pk2-hero { display: flex; align-items: center; gap: 22px; padding: 20px; }
.pk2-pack { flex: none; width: 150px !important; margin: 0 !important; cursor: pointer; }
.pk2-pack .pk-logo img { width: 78%; margin: 0 auto; }
.pk2-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pk2-info h1 { margin: 0; font-size: 1.45rem; line-height: 1.15; }
.pk2-timer { font-weight: 800; color: #7fe3ff; font-size: .92rem; }
.pk2-gauge { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pk2-gauge i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f9dff, #f0b11e); transition: width .4s; }
.pk2-note { font-size: .76rem; color: var(--ink2); font-weight: 700; }
.pk2-open { width: 100%; justify-content: center; margin-top: 4px; }
@media (max-width: 560px) {
  .pk2-hero { flex-direction: column; text-align: center; gap: 14px; }
  .pk2-pack { width: 140px !important; }
  .pk2-info { width: 100%; align-items: stretch; }
}
.pk2-shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pk2-shop-head h2 { margin: 0 0 4px; }
.pk2-shop-head p { margin: 0; }
.pk2-shop-head .chip { flex: none; }
.pk2-search { width: 100%; margin-bottom: 12px; }
.pk2-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
@media (max-width: 700px) { .pk2-list { grid-template-columns: minmax(0, 1fr); } }
.pk2-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); }
.pk2-thumb { flex: none; width: 58px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .5); background: linear-gradient(160deg, var(--c), #b48cff 60%, #6ec3ff); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.pk2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pk2-thumb img.lg { width: 82%; height: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.pk2-thumb span { font-size: 1.7rem; }
.pk2-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pk2-meta b { font-size: .95rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk2-meta small { font-size: .72rem; color: var(--ink2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk2-prog { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 2px; }
.pk2-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #45c48b, #f0b11e); }
.pk2-buy { flex: none; min-width: 74px; justify-content: center; }
.pk2-more { display: flex; width: 100%; justify-content: center; margin-top: 12px; }

/* v10c — admin visuels de packs */
.pa-help h2 { margin-top: 0; }
.pa-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.pa-specs > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.pa-specs span { font-size: .8rem; color: var(--ink2); }
.pa-list { display: flex; flex-direction: column; gap: 8px; }
.pa-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.pa-thumb { flex: none; width: 48px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 1.4rem; }
.pa-thumb.back { aspect-ratio: 5 / 7; width: 40px; }
.pa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pa-thumb img.lg { width: 80%; height: auto; object-fit: contain; }
.pa-meta { flex: 1; min-width: 0; }
.pa-files { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: .8rem; }
.pa-files code { cursor: copy; background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 6px; user-select: all; }
.pa-ok { color: #45c48b; font-weight: 800; } .pa-inh { color: #f0b11e; font-weight: 700; } .pa-no { color: var(--ink2); }
.pf2-top .avatar.lg { width: 76px; height: 76px; font-size: 2rem; }

/* v10d — profil : cadrage resserré */
.pf2-hero { padding: 16px; }
.pf2-top { gap: 14px; }
.pf2-top .avatar.lg { width: 68px !important; height: 68px !important; min-width: 68px; font-size: 1.8rem; }
.pf2-name { line-height: 1.15; margin: 0 0 4px; overflow-wrap: anywhere; }
.pf2-since { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .76rem; color: var(--ink2); }
.pf2-role { padding: 1px 8px; border-radius: 99px; background: rgba(240, 177, 30, .18); color: #f0b11e; font-weight: 800; font-size: .7rem; }
.pf2-stats { gap: 6px; margin-top: 14px; }
.pf2-stats > div { position: relative; padding: 8px 2px 9px; gap: 1px; align-items: center; overflow: hidden; }
.pf2-stats i { font-style: normal; font-size: .95rem; line-height: 1; }
.pf2-stats b { font-size: 1.2rem !important; line-height: 1.1; }
.pf2-stats span { font-size: .66rem !important; }
.pf2-mbar { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pf2-mbar u { display: block; height: 100%; background: #f0b11e; }
.pf2-mini { font-size: .72rem; gap: 4px 12px; }
.pf2-recycle { padding: 9px; font-size: .82rem; }
.pf2-tile { min-height: 76px; }
.pf2-ic { font-size: 1.45rem; }
.pf2 .section-title { align-items: center; gap: 10px; }
.pf2 h2 { font-size: 1.12rem; line-height: 1.2; }
.pf2 .section-title a { flex: none; font-size: .8rem; white-space: nowrap; }
.pf2 .section > p.muted, .pf2 .section .muted:first-of-type { font-size: .8rem; }

/* v15.7 : nombre de joueurs qui ont la carte (admin) */
.as-card { position: relative; }
.as-owners { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; color: var(--muted, #9fb0c8); text-align: center; }
