/* ============================================================
   KOMA — kobans (小判), marché en direct, échoppe, rachat, parrainage
   même DA « papier & encre » : traits noirs épais, ombres pleines, rouge vermillon et or des kobans
   ============================================================ */

/* ---------- la pièce et les montants ---------- */
.kb-ico { width: 15px; height: 19px; flex: none; display: block; }
.kb { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font: 400 15px/1 var(--manga); color: var(--ink); vertical-align: -3px; }
.kb b { font-weight: 400; }

/* pastille du solde : un bouton rond, ombre dorée */
.kb-chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 8px; border-radius: 99px;
  background: #fff; border: 3px solid var(--ink); box-shadow: 3px 4px 0 var(--gold); font: 400 17px/1 var(--manga); color: var(--ink);
  transition: transform 0.25s var(--spring);
}
.kb-chip .kb-ico { width: 22px; height: 28px; filter: drop-shadow(1px 1px 0 rgba(20, 19, 18, 0.35)); }
.kb-chip b { font-weight: 400; font-variant-numeric: tabular-nums; min-width: 1ch; }
.kb-chip:hover { transform: translateY(-2px) rotate(-2deg); }
.kb-chip.big { height: 46px; font-size: 20px; padding-right: 18px; }
.kb-chip.daily::after {
  content: "!"; position: absolute; top: -9px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 2px solid #fff; font: 900 13px/1 var(--round); animation: badge 1.2s ease-in-out infinite;
}
.kb-chip.guest { border-style: dashed; box-shadow: 3px 4px 0 rgba(242, 177, 0, 0.5); }
.kb-chip.bump { animation: kbBump 0.5s var(--spring); }
.kb-chip.shake { animation: kbShake 0.45s ease; }
@keyframes kbBump { 35% { transform: scale(1.22) rotate(-6deg); box-shadow: 3px 4px 0 var(--gold), 0 0 0 8px rgba(242, 177, 0, 0.3); } }
@keyframes kbShake { 20%, 60% { transform: translateX(-4px) rotate(-2deg); } 40%, 80% { transform: translateX(4px) rotate(2deg); } }
.kb-fly { position: fixed; z-index: 500; left: 0; top: 0; width: 22px; height: 28px; margin: -14px 0 0 -11px; pointer-events: none; will-change: transform; }
.kb-fly .kb-ico { width: 100%; height: 100%; filter: drop-shadow(2px 2px 0 rgba(20, 19, 18, 0.4)); }

/* accueil : pastille à côté du compte (passe à la ligne sur un petit écran) ; catalogue : solde sur le bouton Marché */
.landing { grid-template-columns: minmax(0, 1fr); }
.ld-top { flex-wrap: wrap; gap: 8px; }
.ld-top-r { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-left: auto; }
.hb-coins { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; padding: 3px 8px 3px 5px; border-radius: 99px; background: #fff7c7; border: 2px solid var(--ink); font: 400 13px/1 var(--manga); }
.hb-coins .kb-ico { width: 11px; height: 14px; }
.hero-btn .hb-coins svg { width: 11px; height: 14px; stroke: initial; fill: initial; }
.mk-hero { box-shadow: 3px 4px 0 var(--gold); }
/* écrans moyens : avec le bouton Marché en plus, les boutons secondaires du catalogue passent en icônes (leur infobulle reste) */
@media (min-width: 1101px) and (max-width: 1480px) {
  .top-center .hero-btn.ghost { padding: 0 12px; }
  .top-center .hero-btn.ghost > span:not(.hb-coins) { display: none; }
}

/* écran des boosters */
.g-right .kb-chip { height: 40px; }
.g-label.gift { background: var(--gold); color: var(--ink); }
.g-label.gift small { opacity: 0.85; }
.q-rews { flex: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.q-kb { padding: 2px 6px 2px 3px; border-radius: 6px; background: #fff7c7; border: 1.5px solid var(--ink); font-size: 12px; }
.q-kb .kb-ico { width: 11px; height: 14px; }
.q-chest .q-kb { background: var(--gold); }
.tray-done { color: #1f7a3d; font-size: 13px; text-align: center; max-width: 60ch; line-height: 1.4; }
#g-sum-store { background: var(--gold); }
/* écrans moyens : la barre du haut garde la place pour le solde et le bouton Marché */
@media (max-width: 1180px) { .g-counter { display: none; } }
@media (max-width: 920px) and (min-width: 701px) { .g-title { display: none; } }
@media (max-width: 700px) {
  #g-wallet { order: 1; margin-left: auto; }
  #g-music { margin-left: 8px; }
  .g-counter { display: none; }
  #g-quests-btn, #g-binder, #g-friends, #g-market { order: 3; margin-top: 10px; flex: 1 1 0; min-width: 0; padding: 0 6px; }
}

/* ---------- porte-monnaie (fenêtre) ---------- */
.kbp { display: grid; gap: 14px; }
.kbp > p { margin: 0 !important; }
.kbp-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 3px solid var(--ink); background: radial-gradient(circle at 20% 50%, #fff7c7, #fffdf8 60%); box-shadow: 4px 4px 0 var(--gold); }
.kbp-coin .kb-ico { width: 54px; height: 70px; filter: drop-shadow(3px 3px 0 rgba(20, 19, 18, 0.35)); animation: kbSpin 6s ease-in-out infinite; }
@keyframes kbSpin { 0%, 70%, 100% { transform: rotateY(0); } 80% { transform: rotateY(180deg); } 90% { transform: rotateY(360deg); } }
.kbp-head > div { display: grid; }
.kbp-head small { font: 900 11.5px/1 var(--round); text-transform: uppercase; letter-spacing: 0.06em; color: #6b6259; }
.kbp-bal, .kbp-bal b { font: 400 44px/1.05 var(--manga); }
.kbp-bal { display: block; border: 0; background: none; box-shadow: none; padding: 0; height: auto; }
.kbp-bal::after { display: none !important; }
.kbp-head span { font: 900 13px/1 var(--round); color: #6b6259; }
.kbp-daily { display: grid; gap: 10px; padding: 12px; border-radius: 12px; border: 2.5px dashed #b9b0a1; }
.kbp-daily p { margin: 0 !important; font-weight: 700 !important; }
.kbp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.kbp-days li { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px; border: 2px solid #d8d1c4; background: #fff; }
.kbp-days li b { font: 900 10px/1 var(--round); color: #8a8175; }
.kbp-days li span { font: 400 14px/1 var(--manga); }
.kbp-days li.done { background: var(--gold); border-color: var(--ink); }
.kbp-days li.done b { color: var(--ink); }
.kbp-days li.today { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.kbp-days li.today:not(.done) { animation: pendingPulse 1s ease-in-out infinite; }
.kbp-daily .pbtn { justify-self: center; }
.kbp-sec { border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; }
.kbp-sec summary { padding: 10px 14px; cursor: pointer; font: 400 15px/1 var(--manga); }
.kbp-ways { display: grid; gap: 0; margin: 0; padding: 0 14px 6px; list-style: none; }
.kbp-ways li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1.5px dashed #e3dccd; font: 700 13px/1.35 var(--round); }
.kbp-ways li b { font-weight: 900; }
.kbp-ways li span { color: #6b6259; text-align: right; }
.kbp-cap { display: block; padding: 0 14px 12px; font: 700 11.5px/1.4 var(--round); color: #8a8175; }
.kbp-hist { margin: 0; padding: 0 14px 10px; list-style: none; max-height: 240px; overflow-y: auto; }
.kbp-hist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1.5px dashed #e3dccd; }
.kbp-hist span { display: grid; font: 800 13px/1.3 var(--round); min-width: 0; }
.kbp-hist small { font: 700 11px/1.2 var(--round); color: #8a8175; }
.kbp-hist b { font: 400 15px/1 var(--manga); color: #1f7a3d; white-space: nowrap; }
.kbp-hist b.neg { color: var(--red); }
.kbp-note { font-size: 11.5px !important; color: #8a8175 !important; text-align: center; }
.kbp .modal-foot { margin-top: 0 !important; }

/* ---------- marché : en-tête avec son noren (rideau d'échoppe) ---------- */
.mk { max-width: 1180px; }
.mk-head { position: relative; padding: 50px 22px 18px; border-radius: 16px; background: #fffdf8; border: 3.5px solid var(--ink); box-shadow: 6px 7px 0 var(--ink); overflow: hidden; }
/* le noren : cinq pans de tissu rouge suspendus à leur tringle, qui ondulent un peu */
.mk-noren { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 4px; padding: 0 4px; border-top: 5px solid var(--ink); pointer-events: none; }
.mk-noren span {
  flex: 1; display: grid; place-items: center; height: 30px; border: 2.5px solid var(--ink); border-top: 0; border-radius: 0 0 9px 9px;
  background: var(--red); color: #fff; font: 900 17px/1 var(--round); transform-origin: 50% 0; animation: noren 5s ease-in-out infinite;
}
.mk-noren span:nth-child(2) { animation-delay: -1s; } .mk-noren span:nth-child(3) { animation-delay: -2s; }
.mk-noren span:nth-child(4) { animation-delay: -3s; } .mk-noren span:nth-child(5) { animation-delay: -4s; }
@keyframes noren { 50% { transform: rotate(1.4deg) scaleY(1.04); } }
.mk-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mk-title h1 { margin: 0; font: 400 clamp(28px, 4vw, 38px)/1 var(--manga); }
.mk-title h1 i, .mk-h i, .rf-head h1 i { font: 900 0.55em/1 var(--round); font-style: normal; color: var(--red); margin-left: 6px; vertical-align: 0.3em; white-space: nowrap; }
.mk-live { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--red); color: #fff; border: 2.5px solid var(--ink); font: 400 12px/1 var(--manga); letter-spacing: 0.08em; }
.mk-live i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: mkPulse 1.3s ease-in-out infinite; }
.mk-live.off { background: #8a8175; }
.mk-live.off i { animation: none; opacity: 0.5; }
.mk-live.off b::after { content: " · hors ligne"; }
.mk-live b { font-weight: 400; }
@keyframes mkPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); } 60% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.mk-head > p { margin: 8px 0 14px; font: 700 14px/1.45 var(--round); color: #6b6259; max-width: 70ch; }
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mk-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 2px dashed #d8d1c4; font: 800 13px/1.2 var(--round); color: #6b6259; }
.mk-stats b { font: 400 18px/1 var(--manga); color: var(--ink); margin-right: 3px; }
.mk-stats .kb { font-size: 16px; }

/* ruban des dernières ventes : panneau lumineux qui défile */
.mk-ticker { position: relative; display: flex; align-items: stretch; margin-top: 14px; border-radius: 12px; border: 3px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 4px 4px 0 var(--red); }
.mk-ticker.flash { animation: mkFlash 0.9s ease; }
@keyframes mkFlash { 25% { box-shadow: 4px 4px 0 var(--red), 0 0 0 6px rgba(242, 177, 0, 0.55); } }
.mk-tick-lab { flex: none; display: grid; place-items: center; padding: 0 12px; background: var(--red); color: #fff; font: 900 12.5px/1 var(--round); border-right: 3px solid var(--ink); white-space: nowrap; }
.mk-roll { flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.mk-track { display: flex; width: max-content; animation: mkRoll var(--dur, 30s) linear infinite; }
.mk-track.still { animation: none; }
.mk-ticker:hover .mk-track { animation-play-state: paused; }
@keyframes mkRoll { to { transform: translateX(-50%); } }
.mk-tick { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; color: #f3efe6; font: 800 13px/1 var(--round); white-space: nowrap; border-right: 1.5px dashed rgba(243, 239, 230, 0.25); }
.mk-tick img { width: 24px; height: 34px; object-fit: cover; border-radius: 3px; border: 2px solid #f3efe6; }
.mk-tick .kb { color: var(--gold); font-size: 14px; }
.mk-tick small { font: 700 11px/1 var(--round); color: #a59d90; }
.mk-tick.fresh { animation: mkFresh 2.4s ease; }
@keyframes mkFresh { 0%, 40% { background: rgba(242, 177, 0, 0.35); } }
.mk-tick.none { color: #a59d90; }
.mk-tick.r-M b { color: #ff8fa3; } .mk-tick.r-L b { color: var(--gold); }

/* filtres */
.mk-tabs { margin-top: 18px; }
.mk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.mk-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: #fff; border: 3px solid var(--ink); }
.mk-seg button { height: 32px; padding: 0 12px; border-radius: 99px; font: 900 13px/1 var(--round); white-space: nowrap; }
.mk-seg button.on { background: var(--ink); color: #fff; }
.mk-seg[data-f="rarity"] button { font: 900 15px/1 var(--round); }
.mk-filters .mk-q { flex: 1 1 180px; width: auto; height: 40px; }
.mk-sort { height: 40px; padding: 0 12px; border-radius: 99px; border: 3px solid var(--ink); background: #fff; font: 900 13px/1 var(--round); }

/* les étals : une carte par annonce */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 16px; }
.mk-item { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 10px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; box-shadow: 4px 5px 0 var(--ink); transition: transform 0.25s var(--spring); }
.mk-item:hover { transform: translateY(-3px) rotate(-0.4deg); }
.mk-item.mine { background: #fffbe8; }
.mk-item.r-R { box-shadow: 4px 5px 0 var(--red); }
.mk-item.r-L { box-shadow: 4px 5px 0 var(--gold); }
.mk-item.r-M { box-shadow: 4px 5px 0 var(--red), 0 0 18px rgba(229, 25, 47, 0.35); }
.mk-item.new { animation: mkNew 0.7s var(--spring); }
@keyframes mkNew { 0% { opacity: 0; transform: translateY(-18px) scale(0.92) rotate(-2deg); background: #fff3c4; } 60% { background: #fff3c4; } }
.mk-item.gone { opacity: 0.6; filter: grayscale(0.7); pointer-events: none; }
.mk-stamp {
  position: absolute; z-index: 3; left: 50%; top: 38%; padding: 6px 14px; border: 4px solid var(--red); border-radius: 8px; color: var(--red); background: rgba(255, 255, 255, 0.85);
  font: 400 22px/1 var(--manga); white-space: nowrap; transform: translate(-50%, -50%) rotate(-14deg); animation: mkSlam 0.4s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes mkSlam { from { transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; } }
.mk-cover { position: relative; display: block; width: 100%; aspect-ratio: 0.7; border-radius: 8px; overflow: hidden; border: 3px solid var(--ink); background: #d8d1c4; cursor: zoom-in; }
.mk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.mk-item:hover .mk-cover img { transform: scale(1.05); }
.mk-badge { position: absolute; left: 5px; top: 5px; padding: 3px 6px; border-radius: 5px; background: var(--ink); color: #fff; font: 400 12px/1 var(--manga); }
.mk-badge.mus { background: var(--red); }
.mk-rar { position: absolute; right: 5px; top: 5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: #fff; font: 400 12px/1 var(--manga); }
.mk-item.r-R .mk-rar { background: var(--red); color: #fff; } .mk-item.r-L .mk-rar { background: var(--gold); } .mk-item.r-M .mk-rar { background: var(--ink); color: var(--gold); }
.mk-play { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); border: 3px solid var(--ink); cursor: pointer; transition: transform 0.2s var(--spring); }
.mk-play:hover { transform: scale(1.12); }
.mk-play i { width: 0; height: 0; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.mk-play.playing { background: var(--gold); animation: playPulse 1s ease-in-out infinite; }
.mk-play.playing i { width: 10px; height: 12px; margin: 0; border: 0; border-left: 3.5px solid var(--ink); border-right: 3.5px solid var(--ink); }
.mk-info { display: grid; align-content: start; gap: 3px; min-width: 0; }
.mk-name { font: 400 15px/1.2 var(--manga); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mk-info small { font: 700 11.5px/1.3 var(--round); color: #6b6259; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-seller { display: inline-flex; align-items: center; gap: 6px; justify-self: start; max-width: 100%; margin-top: 2px; font: 900 12px/1 var(--round); }
.mk-seller span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-seller:hover span:last-child { color: var(--red); }
.mk-mine { justify-self: start; margin-top: 2px; padding: 3px 8px; border-radius: 99px; background: var(--ink); color: var(--gold); font: 900 11px/1 var(--round); }
.mk-deal { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding-top: 8px; border-top: 2px dashed #e3dccd; }
.mk-price { font-size: 21px; gap: 5px; }
.mk-price .kb-ico { width: 17px; height: 22px; }
.mk-cote { grid-column: 1; font: 800 11px/1.2 var(--round); color: #8a8175; }
.mk-cote.good { color: #1f7a3d; }
.mk-deal .pbtn { grid-column: 2; grid-row: 1 / span 2; }
.pbtn.small { height: 36px; padding: 0 14px; font-size: 13px; }
.pbtn.poor { background: #e8e1d3; color: #6b6259; box-shadow: none; }
.mk-ago { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); padding: 3px 9px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); font: 900 10.5px/1 var(--round); white-space: nowrap; color: #6b6259; }
.mk-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 34px 16px; border-radius: 16px; border: 3px dashed #b9b0a1; text-align: center; }
.mk-empty > b { font: 400 54px/1 var(--manga); color: var(--red); opacity: 0.85; }
.mk-empty p { margin: 0; font: 800 14px/1.45 var(--round); color: #6b6259; }
.mk-empty.small { padding: 18px; }
.mk-foot { margin: 18px 0 0; font: 700 12px/1.45 var(--round); color: #8a8175; text-align: center; }
.mk-h { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 12px !important; font: 400 20px/1 var(--manga); }
.mk-h span { font: 900 13px/1 var(--round); color: #8a8175; }

/* fenêtres du marché */
.mk-modal h3 { margin: 0 0 8px; }
.mk-confirm { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.mk-confirm p { margin: 0 0 10px !important; }
.mk-c-card { position: relative; width: 120px; aspect-ratio: 0.7; border-radius: 9px; overflow: hidden; border: 3.5px solid var(--ink); background: #d8d1c4; box-shadow: 4px 5px 0 var(--ink); transform: rotate(-3deg); }
.mk-c-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-c-card.r-R { box-shadow: 4px 5px 0 var(--red); } .mk-c-card.r-L { box-shadow: 4px 5px 0 var(--gold), 0 0 16px rgba(242, 177, 0, 0.6); } .mk-c-card.r-M { box-shadow: 4px 5px 0 var(--red), 0 0 18px rgba(229, 25, 47, 0.6); }
.win .mk-c-card { animation: mkWin 0.8s var(--spring); }
@keyframes mkWin { 0% { transform: rotate(-200deg) scale(0.3); opacity: 0; } }
.mk-sum { display: grid; gap: 6px; margin: 0 0 10px; padding: 10px 12px; list-style: none; border-radius: 10px; background: #f6f2ea; }
.mk-sum li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 800 13px/1.2 var(--round); }
.mk-note { font-size: 12.5px !important; color: #6b6259 !important; }
.mk-warn { padding: 8px 10px; border-radius: 10px; background: #fff0f1; border: 2px solid var(--red); font: 800 12.5px/1.4 var(--round) !important; color: #8c0017 !important; }
.mk-modal .modal-foot { flex-wrap: wrap; }
.modal-card:has(> .mk-modal.wide) { width: min(760px, 100%); }
.mk-pick-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.mk-pick-head .mk-seg button { height: 28px; padding: 0 10px; font-size: 12px; }
.mk-pick-head .tr-search { flex: 1 1 120px; width: auto; }
.mk-pick { max-height: 46vh; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.mk-price-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 8px; padding: 6px 8px 6px 14px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; font: 900 13px/1 var(--round); }
.mk-price-in input { width: 110px; height: 40px; border: 0; outline: none; text-align: right; font: 400 26px/1 var(--manga); background: none; }
.mk-price-in .kb-ico { width: 22px; height: 28px; }
.mk-price-in:focus-within { box-shadow: 3px 3px 0 var(--gold); }
.mk-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mk-hints small { flex: 1 1 100%; font: 700 12px/1.35 var(--round); color: #8a8175; }
.mk-hints button { height: 28px; padding: 0 10px; border-radius: 99px; border: 2px solid var(--ink); background: #fff7c7; font: 900 12px/1 var(--round); }
.mk-hints button:hover { background: var(--gold); }
.mk-net { font: 800 13px/1.3 var(--round) !important; }
.mk-net b { font: 400 17px/1 var(--manga); color: #1f7a3d; }
.mk-zoom .cz-info .mk-z-price { display: inline-flex; align-items: center; gap: 10px; }
.mk-zoom .mk-z-price .kb { font-size: 24px; }
.mk-zoom .mk-z-price small { font: 800 12px/1 var(--round); color: #6b6259; }
.mk-zoom [data-url].playing { background: var(--gold); }

/* mes annonces : historique */
.mk-hist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mk-hist li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; }
.mk-h-cover { flex: none; width: 34px; aspect-ratio: 0.7; border-radius: 4px; overflow: hidden; border: 2px solid var(--ink); background: #d8d1c4; }
.mk-h-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-h-txt { flex: 1; min-width: 0; display: grid; }
.mk-h-txt b { font: 900 13.5px/1.25 var(--round); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-h-txt small { font: 700 11.5px/1.3 var(--round); color: #8a8175; }
.mk-hist em { flex: none; font: 900 12px/1.2 var(--round); font-style: normal; color: #8a8175; text-align: right; }
.mk-hist em.up { color: #1f7a3d; font: 400 14px/1 var(--manga); }
.mk-hist em.down { color: var(--red); font: 400 14px/1 var(--manga); }

/* échoppe et comptoir de rachat */
.mk-box { margin-top: 6px; padding: 4px 18px 18px; border-radius: 16px; border: 3px solid var(--ink); background: #fffdf8; box-shadow: 5px 5px 0 var(--ink); }
.mk-box + .mk-box { margin-top: 22px; }
.mk-box > p { margin: 0 0 14px; font: 700 14px/1.5 var(--round); color: #3b3833; }
.mk-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mk-pack { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; text-align: center; }
.mk-pack-art { width: min(150px, 100%); aspect-ratio: 256 / 416; display: grid; place-items: center; margin-bottom: 6px; border-radius: 8px; background: repeating-linear-gradient(45deg, #f3efe6 0 8px, #ebe4d6 8px 16px); }
.mk-pack-art canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(5px 7px 0 rgba(20, 19, 18, 0.35)); transform: rotate(-3deg); transition: transform 0.35s var(--spring); }
.mk-pack:hover .mk-pack-art canvas { transform: rotate(2deg) translateY(-6px) scale(1.04); }
.mk-pack-ph { font: 400 44px/1 var(--manga); color: var(--red); opacity: 0.5; }
.mk-pack b { font: 400 16px/1.1 var(--manga); }
.mk-pack small { font: 700 12px/1.3 var(--round); color: #6b6259; }
.mk-pack .pbtn { margin-top: 6px; }
.mk-pack .pbtn .kb { color: #fff; }
.mk-pack .pbtn[disabled] .kb { color: var(--ink); }
.mk-rates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mk-rates > span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 2.5px solid var(--ink); background: #fff; font: 900 12.5px/1 var(--round); }
.mk-rates > span > b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font: 400 12px/1 var(--manga); background: #d8d1c4; }
.mk-rates .r-R > b { background: var(--red); color: #fff; } .mk-rates .r-L > b { background: var(--gold); } .mk-rates .r-M > b { background: var(--ink); color: var(--gold); }
.mk-bank-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #fff7c7; border: 2.5px solid var(--ink); font: 700 14px/1.4 var(--round); }
.mk-quota { display: block; margin-top: 10px; font: 700 12px/1.4 var(--round); color: #8a8175; }

/* accueil : bandeau « Marché en direct » */
.ld-market {
  position: relative; width: min(1120px, 100%); display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 16px; border-radius: 18px; text-align: left; overflow: hidden;
  border: 4px solid var(--ink); background: var(--ink); color: #f3efe6; box-shadow: 6px 7px 0 var(--red); transition: transform 0.3s var(--spring);
}
.ld-market::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(243, 239, 230, 0.08) 1px, transparent 1.6px) 0 0 / 9px 9px; pointer-events: none; }
.ld-market:hover { transform: translateY(-3px) rotate(-0.4deg); }
.ld-mk-stall { position: relative; flex: none; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 12px; background: #fffdf8; border: 3px solid #f3efe6; overflow: hidden; }
.ld-mk-stall::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--red) 0 13px, var(--ink) 13px 15px); }
.ld-mk-stall b { position: relative; margin-top: 16px; font: 400 26px/1 var(--manga); color: var(--ink); }
.ld-mk-txt { position: relative; display: grid; gap: 4px; flex: 1; min-width: 0; }
.ld-mk-txt b { font: 400 clamp(19px, 2.4vw, 26px)/1.1 var(--manga); color: #fff; }
.ld-mk-txt small { font: 800 13px/1.35 var(--round); color: var(--gold); }
.ld-mk-live { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--red); font: 400 12px/1 var(--manga); letter-spacing: 0.08em; }
.ld-mk-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mkPulse 1.3s ease-in-out infinite; }
.ld-mk-go { position: relative; font: 400 30px/1 var(--manga); font-style: normal; }
.ld-links .ld-ref { background: #fff7c7; }
@media (max-width: 760px) {
  .ld-market { padding: 12px 14px; gap: 12px; }
  .ld-mk-stall { width: 50px; height: 50px; }
  .ld-mk-live { position: absolute; top: 8px; right: 10px; padding: 4px 8px; font-size: 10px; }
  .ld-mk-go { display: none; }
  .ld-top-r .kb-chip { height: 38px; font-size: 15px; }
}

/* ---------- parrainage ---------- */
.rf { max-width: 900px; }
.rf-head { position: relative; display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.rf-head h1 { margin: 0; font: 400 34px/1 var(--manga); }
.rf-seal {
  flex: none; writing-mode: vertical-rl; padding: 14px 10px; border-radius: 8px; border: 3.5px solid var(--red); color: var(--red); background: #fff;
  font: 900 26px/1 var(--round); letter-spacing: 0.15em; transform: rotate(6deg); box-shadow: 3px 3px 0 rgba(229, 25, 47, 0.3);
}
.rf-deal { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin-top: 6px; }
.rf-gift { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 3px solid var(--ink); background: var(--gold); box-shadow: 4px 4px 0 var(--ink); }
.rf-gift.friend { background: #fff; }
.rf-gift small { font: 900 11px/1 var(--round); text-transform: uppercase; letter-spacing: 0.08em; }
.rf-gift b { font: 400 19px/1.15 var(--manga); }
.rf-gift .kb { font-size: 17px; }
.rf-link { display: grid; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 3px solid var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--red); }
.rf-link label { font: 400 16px/1 var(--manga); }
.rf-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-link-row input { flex: 1 1 260px; min-width: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: 2.5px dashed var(--ink); background: #f6f2ea; font: 700 14px/1 var(--ui); user-select: all; }
.rf-link small { font: 700 12px/1.4 var(--round); color: #6b6259; }
.rf-claim { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 3px solid var(--ink); background: var(--gold); box-shadow: 5px 5px 0 var(--ink); animation: qGlow 1.4s ease-in-out infinite; }
.rf-claim > div { flex: 1; display: grid; gap: 2px; }
.rf-claim b { font: 400 18px/1.1 var(--manga); }
.rf-claim small { font: 800 12.5px/1.3 var(--round); }
.rf-claim-ico { font-size: 32px; }
.rf-count { margin-left: 6px; font: 900 13px/1 var(--round); color: #8a8175; }
.rf-row .rf-status { display: grid; justify-items: end; gap: 4px; min-width: 120px; }
.rf-prog { width: 110px; height: 10px; border-radius: 5px; border: 2px solid var(--ink); background: #fff; overflow: hidden; }
.rf-prog i { display: block; height: 100%; background: var(--red); }
.rf-status small { font: 800 11.5px/1 var(--round); color: #6b6259; }
.rf-status em { font: 900 12px/1.25 var(--round); font-style: normal; color: #6b6259; text-align: right; }
.rf-status em.rf-ok { color: var(--red); }
.rf-status em.rf-done { color: #1f7a3d; }
.rf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rf-steps li { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; font: 700 13px/1.4 var(--round); }
.rf-steps li b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 400 15px/1 var(--manga); }
.rf-fine { margin: 12px 0 0; font: 700 12px/1.5 var(--round); color: #8a8175; }
.rf-cta { margin-top: 16px; text-align: center; }
.rf-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 10px 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; }
.rf-pick small { font: 400 15px/1 var(--manga); }
.rf-invite { display: grid; justify-items: center; gap: 4px; text-align: center; }
.rf-invite h3 { margin: 10px 0 2px !important; font-size: 22px !important; }
.rf-invite-gift { padding: 10px 12px; border-radius: 12px; background: #fff7c7; border: 2px solid var(--ink); font-weight: 800 !important; color: var(--ink) !important; }
@media (max-width: 700px) {
  .rf-head { flex-direction: column; }
  .rf-seal { display: none; }
  .rf-deal { grid-template-columns: 1fr; }
  .rf-steps { grid-template-columns: 1fr 1fr; }
  .rf-row { flex-wrap: wrap; }
  .rf-row .rf-status { justify-items: start; min-width: 0; flex: 1 1 100%; order: 5; }
  .rf-pick { flex-direction: column; align-items: stretch; }
}

/* inscription par un lien de parrainage */
.auth-ref { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff7c7; border: 2.5px solid var(--ink); font: 700 12.5px/1.45 var(--round); }
.auth-ref button { display: inline; margin-left: 2px; font: 900 12px/1 var(--round); text-decoration: underline; text-underline-offset: 3px; color: #6b6259; }

/* bandeau « la politique de confidentialité a changé » */
.lg-notice {
  position: fixed; z-index: 160; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); display: grid; gap: 6px; padding: 14px 16px;
  border-radius: 14px; border: 3px solid var(--ink); background: #fffdf8; box-shadow: 5px 6px 0 var(--ink); animation: panelIn 0.4s var(--spring);
}
.lg-notice b { font: 400 15px/1.25 var(--manga); }
.lg-notice span { font: 700 13px/1.4 var(--round); color: #3b3833; }
.lg-notice div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.lg-notice .pbtn { height: 36px; font-size: 13px; }

/* ---------- téléphone : marché ---------- */
@media (max-width: 640px) {
  .mk-head { padding: 46px 16px 14px; }
  .mk-noren span { height: 26px; font-size: 13px; }
  .mk-title h1 { padding-right: 46px; }
  .mk-bar .pbtn { flex: 1 1 auto; }
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mk-item { padding: 8px; gap: 6px; }
  .mk-deal { grid-template-columns: 1fr; }
  .mk-deal .pbtn { grid-column: 1; grid-row: auto; width: 100%; }
  .mk-price { font-size: 18px; }
  .mk-filters .mk-seg { max-width: 100%; overflow-x: auto; }
  .mk-sort { flex: 1 1 auto; }
  .mk-tick { height: 40px; padding: 0 12px; }
  .mk-packs { grid-template-columns: 1fr 1fr; }
  .mk-pack:first-child { grid-column: 1 / -1; }
  .mk-confirm { grid-template-columns: 84px 1fr; gap: 12px; }
  .mk-c-card { width: 84px; }
  .mk-modal .modal-foot .pbtn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .mk-track { animation: none; }
  .kb-chip, .kbp-coin .kb-ico, .mk-live i, .ld-mk-live i, .mk-noren span { animation: none !important; }
}
