/* Multimonstres – styles */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root { --ink: #2b2140; --pri: #7b5cff; --pri2: #5b3df5; --ok: #2fb36b; --soft: #ff922b; --card: #fff; --r: 18px; --sh: 0 4px 0 rgba(43, 33, 64, .18), 0 8px 24px rgba(43, 33, 64, .10); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overflow: clip; }
body { font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif; color: var(--ink); background: linear-gradient(180deg, #7fd4ff 0%, #b9ecff 55%, #e3f8ff 100%); overflow: hidden; -webkit-tap-highlight-color: transparent; font-size: 17px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 4px solid #ffd43b; outline-offset: 2px; }
[hidden] { display: none !important; }
#app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; }

/* barre du haut */
.topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex: none; min-height: 58px; }
.topbar .sp { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 0; border-radius: 99px; padding: 6px 12px; box-shadow: var(--sh); font-size: 17px; white-space: nowrap; min-height: 40px; }
.chip.me { padding: 2px 14px 2px 4px; max-width: 46vw; }
.chip.me b { overflow: hidden; text-overflow: ellipsis; }
.chip.me .mm-mon { width: 38px; height: 38px; flex: none; }
.chip.quit { background: #ffe3e3; }
.chip.bump { animation: bump .4s; }
.mm-coin { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.logo-s { font-weight: 700; font-size: 22px; color: #fff; text-shadow: 0 2px 0 var(--pri2); }
.logo-s span, .logo span { color: #ffd43b; }

/* zone principale */
.view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 14px 16px; min-height: 0; }
.view.v-game { overflow: hidden; display: flex; flex-direction: column; }
.nav { flex: none; display: flex; gap: 4px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .85); border-radius: 20px 20px 0 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .08); }
.nav button { flex: 1; border: 0; background: none; border-radius: 14px; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; font-size: 13px; min-width: 0; }
.nav button span { font-size: 24px; line-height: 1.1; }
.nav button.on { background: #ede7ff; color: var(--pri2); font-weight: 700; }

/* éléments génériques */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 14px 16px; }
.btn { border: 0; border-radius: 14px; padding: 10px 18px; background: #f1f3f5; box-shadow: 0 4px 0 #ced4da; font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .08s; min-height: 46px; line-height: 1.15; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #ced4da; }
.btn.primary { background: var(--pri); color: #fff; box-shadow: 0 4px 0 var(--pri2); }
.btn.danger { background: #fa5252; color: #fff; box-shadow: 0 4px 0 #c92a2a; }
.btn.big { font-size: 20px; padding: 12px 22px; min-height: 54px; }
.btn.locked { opacity: .55; }
.btn .coins b { font-weight: 700; }
.coins { display: inline-flex; align-items: center; gap: 3px; }
.link { background: none; border: 0; text-decoration: underline; color: #1c5d99; font-size: 15px; padding: 6px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.row.wrap { flex-wrap: wrap; justify-content: center; }
.ttl { margin: 4px 0 4px; font-size: 28px; color: #fff; text-shadow: 0 2px 0 rgba(43, 33, 64, .35); }
.ttl small { font-size: 18px; opacity: .9; }
.sub { margin: 0 0 12px; color: #1d3557; }
.small { font-size: 14px; }
.lbl { margin: 14px 0 8px; font-weight: 600; }
.err { color: #c92a2a; min-height: 1.2em; margin: 6px 0 0; }
.bar { height: 14px; background: #e9ecef; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #51cf66, #2fb36b); border-radius: 99px; transition: width .4s; }
.bar.xp i { background: linear-gradient(90deg, #ffd43b, #ff922b); }
.stars i { font-style: normal; color: #ced4da; font-size: 20px; text-shadow: 0 1px 0 #fff; }
.stars i.on { color: #ffc107; text-shadow: 0 1px 0 #b77d00; }
.tag { background: #ffd43b; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.tag.big { font-size: 16px; padding: 8px 14px; }
.mm-mon { display: block; overflow: visible; }
.mm-mon .mm-eyes { animation: blink 4s infinite; transform-box: fill-box; transform-origin: center; }
.mm-mon .mm-wing { transform-box: fill-box; animation: flap 1.4s ease-in-out infinite; }
.mm-mon .mm-wl { transform-origin: right center; } .mm-mon .mm-wr { transform-origin: left center; }
.mm-mon .mm-spark { animation: twinkle 1.6s infinite; }
.mm-mon.big { width: min(210px, 50vw); height: min(200px, 48vw); margin: 0 auto; }
.mm-mon.med { width: 150px; height: 144px; margin: 0 auto; }
.bounce .mm-body, .mm-mon.bounce { animation: bob 2s ease-in-out infinite; }
.pop-in { animation: popin .5s cubic-bezier(.2, 1.6, .5, 1); }

/* profils */
.hero { text-align: center; margin: 10px 0 14px; }
.logo { font-size: clamp(38px, 9vw, 60px); font-weight: 700; color: #fff; text-shadow: 0 3px 0 var(--pri2), 0 6px 0 rgba(43, 33, 64, .2); }
.hero p { font-size: 19px; margin: 6px auto; max-width: 560px; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 780px; margin: 0 auto; }
.pcard { background: #fff; border: 0; border-radius: var(--r); box-shadow: var(--sh); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.pcard .mm-mon { width: 100px; height: 96px; }
.pcard b { font-size: 20px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard small { color: #666; font-size: 14px; }
.pcard .plus { font-size: 60px; line-height: 96px; color: var(--pri); }
.form { max-width: 620px; margin: 0 auto; }
.form label { font-weight: 600; display: block; margin-bottom: 6px; }
.form input { width: 100%; font: inherit; font-size: 22px; padding: 10px 14px; border-radius: 14px; border: 3px solid #d0bfff; }
.starters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.starter { border: 3px solid transparent; background: #f8f9fa; border-radius: 16px; padding: 4px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.starter .mm-mon { width: 100%; height: auto; aspect-ratio: 1; }
.starter small { font-size: 13px; }
.starter.on { border-color: var(--pri); background: #ede7ff; }

/* carte */
.daily { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.daily .d-ico { font-size: 34px; }
.daily .d-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.daily .d-txt b { font-size: 20px; }
.daily .d-txt small { color: #555; font-size: 14px; }
.daily.done { background: #ebfbee; }
.sea { border-radius: 26px; padding: 14px; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .35) 0 3%, transparent 3.5%), radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .3) 0 2%, transparent 2.5%), linear-gradient(160deg, #339af0, #1c7ed6 60%, #1971c2); background-size: 120px 120px, 90px 90px, auto; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .25); }
.islands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.isle { background: none; border: 0; padding: 4px 2px 8px; display: flex; flex-direction: column; align-items: center; border-radius: 18px; position: relative; color: #fff; min-width: 0; }
.isle:nth-child(even) { transform: translateY(14px); }
.isle:hover { background: rgba(255, 255, 255, .12); }
.isle .mm-island { width: 100%; max-width: 170px; height: auto; animation: float 4s ease-in-out infinite; }
.isle:nth-child(3n) .mm-island { animation-delay: -1.3s; } .isle:nth-child(3n+1) .mm-island { animation-delay: -2.6s; }
.i-name { font-weight: 700; font-size: 17px; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); white-space: nowrap; }
.isle small { color: #dee2e6; }
.isle.off { opacity: .7; }
.i-free { position: absolute; top: 2px; left: 6px; background: #ffd43b; color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.foot { margin-top: 18px; }
.isl-pop .isl-head { display: flex; gap: 14px; align-items: center; }
.isl-pop .isl-head .mm-island { width: 130px; flex: none; }
.isl-pop .isl-head > div { flex: 1; min-width: 0; }
.isl-pop h2 { margin: 0; font-size: 22px; }
.isl-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn.boss { background: #ffe066; box-shadow: 0 4px 0 #f59f00; }
.isl-modes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mini { border: 0; background: #f1f3f5; border-radius: 12px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; font-size: 13px; box-shadow: 0 3px 0 #ced4da; min-width: 0; }
.mini span { font-size: 24px; }

/* liste des jeux */
.gamelist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gcard { border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--sh); padding: 14px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border-left: 8px solid var(--c); min-width: 0; }
.gcard .g-ico { font-size: 34px; }
.gcard b { font-size: 19px; }
.gcard small { color: #555; }

/* œufs */
.eggs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.egg-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.egg-card .mm-egg { width: 110px; height: 121px; }
.egg-card.gold { background: linear-gradient(#fff9db, #fff); }
.egg-card h3 { margin: 0; }
.odds { font-size: 14px; margin: 0; }
.egg-card small { color: #666; }
.wobble-slow { animation: wob 3s ease-in-out infinite; transform-origin: 50% 90%; }
.hatch-wrap { position: fixed; inset: 0; background: radial-gradient(circle, #5f3dc4, #2b2140); z-index: 60; display: flex; align-items: center; justify-content: center; color: #fff; padding: 16px; }
.hatch { text-align: center; position: relative; max-width: 520px; width: 100%; }
.hatch .h-txt { font-size: 22px; }
.h-egg { background: none; border: 0; padding: 0; }
.h-egg .mm-egg { width: min(220px, 55vw); height: auto; }
.mm-egg.wobble { animation: wob 1.2s ease-in-out infinite; transform-origin: 50% 90%; }
.mm-egg.shake { animation: shake .35s; transform-origin: 50% 90%; }
.hatch h2 { font-size: 28px; margin: 8px 0; position: relative; }
.hatch p { position: relative; }
.hatch .mm-mon { position: relative; }
.h-rar { display: inline-block; padding: 4px 16px; border-radius: 99px; font-weight: 700; position: relative; }
.rays { position: absolute; left: 50%; top: 40%; width: 640px; height: 640px; margin: -320px 0 0 -320px; background: repeating-conic-gradient(rgba(255, 255, 255, .14) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: spin 12s linear infinite; pointer-events: none; }
.hatch-wrap.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: flash .6s forwards; pointer-events: none; }
.hatch-wrap { overflow: hidden; }

/* album */
.album { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.acard { border: 0; background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; border-top: 6px solid var(--r); position: relative; min-width: 0; }
.acard .mm-mon { width: 100%; height: auto; aspect-ratio: 1; }
.acard b { font-size: 16px; white-space: nowrap; }
.acard small { font-size: 12px; color: #666; text-align: center; }
.acard.unk { background: #e9e6f5; }
.acard.comp { box-shadow: 0 0 0 4px #ffd43b, var(--sh); }
.acard .tag { position: absolute; top: 4px; right: 4px; font-size: 11px; padding: 1px 6px; }
.mon-pop h2 { margin: 4px 0; }
.rar { color: #fff; border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: 14px; }
.evo-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.evo-row .mm-mon.med { width: 110px; height: 106px; margin: 0; opacity: .7; }
.evo-row .mm-mon.big { margin: 0; width: min(180px, 42vw); height: min(172px, 40vw); }
.arrow { font-size: 30px; }

/* trophées */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.st { text-align: center; padding: 10px 6px; }
.st b { display: block; font-size: 24px; }
.st small { color: #555; font-size: 13px; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { background: #f1f3f5; border-radius: 16px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; opacity: .6; filter: grayscale(1); }
.badge.on { background: #fff; opacity: 1; filter: none; box-shadow: var(--sh); }
.b-ico { font-size: 34px; }
.badge small { font-size: 13px; color: #555; }

/* modales et notifications */
#modals { position: relative; z-index: 50; }
.modal-wrap { position: fixed; inset: 0; background: rgba(43, 33, 64, .55); display: flex; align-items: center; justify-content: center; padding: 14px; z-index: 50; animation: fade .2s; }
.modal { background: #fff; border-radius: 24px; padding: 18px; width: 100%; max-width: 460px; max-height: calc(100dvh - 28px); overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); animation: popin .3s; }
.modal.wide { max-width: 640px; }
.modal h2 { margin: 4px 0 8px; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.gate-q { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gate-q input { width: 120px; font: inherit; font-size: 26px; padding: 4px 10px; border-radius: 12px; border: 3px solid #d0bfff; }
#toasts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { background: #fff; padding: 10px 16px; border-radius: 16px; box-shadow: var(--sh); text-align: center; animation: popin .3s; transition: opacity .4s, transform .4s; }
.toast.gold { background: #fff3bf; }
.toast.out { opacity: 0; transform: translateY(-10px); }

/* ---------- Jeux ---------- */
.intro { margin: auto; max-width: 600px; background: #fff; border-radius: 26px; box-shadow: var(--sh); padding: 20px 22px; text-align: center; border-top: 10px solid var(--c); }
.in-ico { font-size: 56px; line-height: 1; }
.intro h1 { margin: 6px 0; font-size: 28px; }
.intro p { font-size: 18px; margin: 8px 0; }
.in-keys { list-style: none; padding: 0; margin: 10px 0; text-align: left; display: grid; gap: 6px; }
.in-keys li { background: #f8f9fa; border-radius: 12px; padding: 8px 12px; display: flex; gap: 10px; align-items: center; font-size: 16px; }
.in-keys li span { font-size: 22px; }
.in-t { color: #666; font-size: 15px !important; }
.game { flex: 1; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.hud { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 6px 12px; font-weight: 600; min-height: 40px; border-left: 6px solid var(--c); }
.h-prog { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-combo { color: #e8590c; white-space: nowrap; }
.h-coins { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.stage { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .55); border-radius: 22px; padding: 10px; }
.pad { width: 100%; max-width: 380px; margin: 0 auto; }
.kp-screen { background: #fff; border-radius: 14px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; box-shadow: inset 0 0 0 3px #d0bfff; margin-bottom: 6px; }
.kp-caret { width: 3px; height: 30px; background: var(--pri); margin-left: 3px; animation: blinkc 1s steps(1) infinite; }
.kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kp-k { border: 0; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 #ced4da; font-size: 26px; font-weight: 700; height: 54px; touch-action: manipulation; }
.kp-k.down, .kp-k:active { transform: translateY(3px); box-shadow: 0 1px 0 #ced4da; }
.kp-del { background: #fff4e6; }
.kp-ok { background: var(--ok); color: #fff; box-shadow: 0 4px 0 #1e8a50; }
.qbox { background: #fff; border-radius: 20px; padding: 10px 22px; box-shadow: var(--sh); text-align: center; }
.q { font-size: clamp(34px, 7vw, 54px); font-weight: 700; white-space: nowrap; }
.qbox.big .q { font-size: clamp(40px, 9vw, 66px); }
.ans { display: inline-block; min-width: 1.4em; padding: 0 .15em; border-bottom: 5px solid var(--pri); color: var(--pri2); }
.hint { margin: 0; color: #444; text-align: center; }
.fb { position: absolute; left: 50%; top: 10px; transform: translate(-50%, -10px) scale(.9); opacity: 0; pointer-events: none; transition: all .18s; background: #fff; border-radius: 18px; padding: 8px 18px; box-shadow: var(--sh); text-align: center; z-index: 5; display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 92%; }
.fb.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fb.ok { background: #d3f9d8; } .fb.ok b { color: #2b8a3e; font-size: 24px; }
.fb.ok span { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.fb.bad { background: #fff4e6; } .fb.bad b { color: #d9480f; font-size: 22px; }
.fb big { font-size: 28px; font-weight: 700; } .fb small { font-size: 15px; color: #555; }
.fb em { font-style: normal; font-weight: 700; color: #e8590c; font-size: 20px; animation: bump .5s; }

/* combat */
.arena { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fighter { display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; }
.fighter .mm-mon { width: min(180px, 100%); height: auto; aspect-ratio: 1; }
.foe-svg { width: min(180px, 100%); }
.fighter.foe .mm-mon { transform: scaleX(-1); }
.fighter.boss .mm-mon { width: min(220px, 100%); filter: drop-shadow(0 0 12px #ffd43b); }
.f-name { font-weight: 700; background: #fff; border-radius: 99px; padding: 2px 10px; font-size: 15px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hp { width: 80%; height: 12px; background: #ffe3e3; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.hp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff6b6b, #fa5252); transition: width .3s; }
.hearts { font-size: 16px; margin-top: 4px; white-space: nowrap; }
.timer { height: 10px; background: #e9ecef; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.timer i { display: block; height: 100%; width: 100%; background: #4dabf7; border-radius: 99px; transition: width .1s linear; }
.timer i.late { background: #ff922b; }
.me.atk { animation: atkR .4s; } .foe.atk { animation: atkL .4s; }
.hurt .mm-mon { animation: hurt .4s; }
.dmg { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); font-size: 26px; font-weight: 700; color: #fa5252; text-shadow: 0 2px 0 #fff; animation: rise .9s forwards; white-space: nowrap; }
.poof { font-size: 64px; text-align: center; animation: popin .4s; }

/* bulles */
.g-bub .stage { justify-content: flex-start; }
.qline { text-align: center; }
.qline .q { background: #fff; border-radius: 20px; padding: 6px 24px; box-shadow: var(--sh); display: inline-block; }
.typed { min-height: 22px; color: #555; font-size: 15px; }
.bubbles { flex: 1; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; gap: 10px; }
.bub { width: clamp(84px, 19vw, 150px); aspect-ratio: 1; border-radius: 50%; border: 0; font-size: clamp(28px, 6vw, 44px); font-weight: 700; color: #1864ab; background: radial-gradient(circle at 30% 28%, #fff 0 12%, rgba(255, 255, 255, .5) 13%, rgba(165, 216, 255, .75) 55%, rgba(116, 192, 252, .9) 100%); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .8), 0 6px 18px rgba(28, 126, 214, .3); animation: floaty 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
.bub.b1, .bub.b3 { margin-top: 70px; }
.bub.sel { box-shadow: inset 0 0 0 3px #fff, 0 0 0 6px #ffd43b; }
.bub.popped { animation: popb .35s forwards; }
.bub.wrong { filter: grayscale(1); opacity: .5; animation: shake .4s; }
.bub.right { box-shadow: inset 0 0 0 3px #fff, 0 0 0 6px #51cf66; }

/* vrai ou faux */
.g-vf .stage { gap: 16px; }
.vf-time { width: min(560px, 100%); height: 26px; background: #e9ecef; border-radius: 99px; position: relative; overflow: hidden; }
.vf-time i { display: block; height: 100%; background: linear-gradient(90deg, #fcc419, #ff922b); transition: width .1s linear; }
.vf-time span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.vf-card { background: #fff; border-radius: 24px; padding: 18px 26px; font-size: clamp(36px, 8vw, 60px); font-weight: 700; box-shadow: var(--sh); white-space: nowrap; }
.vf-card.good { background: #d3f9d8; } .vf-card.oops { background: #fff4e6; }
.vf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(560px, 100%); }
.vf-btns .btn { font-size: 26px; min-height: 74px; }
.vf-yes { background: #51cf66 !important; color: #fff; box-shadow: 0 5px 0 #2b8a3e !important; }
.vf-no { background: #ff922b !important; color: #fff; box-shadow: 0 5px 0 #d9480f !important; }

/* memory */
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(640px, 100%); }
.mcard { aspect-ratio: 4/3; border: 0; border-radius: 16px; position: relative; perspective: 600px; background: none; padding: 0; }
.mcard span { position: absolute; inset: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; backface-visibility: hidden; transition: transform .35s; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.mcard .back { background: repeating-linear-gradient(45deg, #20c997 0 10px, #12b886 10px 20px); color: #fff; font-size: 34px; }
.mcard .front { background: #fff; transform: rotateY(180deg); font-size: clamp(22px, 4.5vw, 32px); color: #087f5b; }
.mcard .front.op { color: #5f3dc4; }
.mcard.up .back { transform: rotateY(180deg); } .mcard.up .front { transform: rotateY(360deg); }
.mcard.done .front { background: #d3f9d8; }
.mcard.sel { outline: 4px solid #ffd43b; outline-offset: 2px; }

/* grilles */
.g-grid .stage { gap: 6px; }
.gr-txt { font-size: 20px; text-align: center; }
.gr-txt b { font-size: 24px; }
.gr-wrap { display: flex; gap: 6px; align-items: flex-start; }
.dots { --cell: min(30px, calc((100vw - 100px) / var(--n)), calc((100dvh - 470px) / var(--n))); display: grid; grid-template-columns: repeat(var(--n), var(--cell)); grid-auto-rows: var(--cell); touch-action: none; background: #fff; border-radius: 14px; padding: 6px; box-shadow: var(--sh); }
.dots i { display: flex; align-items: center; justify-content: center; }
.dots i::after { content: ""; width: 42%; height: 42%; border-radius: 50%; background: #dee2e6; transition: all .12s; }
.dots i.on::after { width: 72%; height: 72%; background: #ff922b; box-shadow: 0 2px 0 #d9480f; }
.dots.live { cursor: pointer; }
.skip { display: grid; grid-auto-rows: var(--cell, 30px); padding-top: 6px; --cell: min(30px, calc((100vw - 100px) / var(--n, 10)), calc((100dvh - 470px) / var(--n, 10))); min-width: 34px; }
.skip span { display: flex; align-items: center; font-weight: 700; color: #d9480f; font-size: 15px; }
.gr-act { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.gr-size { font-weight: 600; }

/* course */
.track { width: min(640px, 100%); position: relative; background: #fff; border-radius: 18px; padding: 8px 40px 8px 10px; box-shadow: var(--sh); }
.lane { position: relative; height: 54px; border-bottom: 3px dashed #dee2e6; }
.lane:last-of-type { border-bottom: 0; }
.runner { position: absolute; left: 0; top: 2px; width: 46px; height: 50px; transition: left .3s; }
.runner .mm-mon { width: 46px; height: 44px; }
.runner.ghost { opacity: .4; filter: grayscale(1) brightness(1.3); }
.g-lbl { position: absolute; right: 0; top: 16px; font-size: 13px; color: #888; }
.flag { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.chrono { font-size: 24px; font-weight: 700; }

/* image mystère */
.g-pz .stage { flex-direction: row; gap: 18px; }
.pz { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
.pz-pic { --s: min(300px, 40vh, 80vw); width: var(--s); height: var(--s); position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(circle, #fff, var(--bg)); box-shadow: var(--sh); }
.pz-pic .mm-mon { width: 100%; height: 100%; }
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tiles i { background: linear-gradient(135deg, #f06595, #cc5de8); border: 2px solid rgba(255, 255, 255, .6); display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; font-size: 22px; transition: transform .4s, opacity .4s; }
.tiles i.gone { transform: rotateY(90deg) scale(.6); opacity: 0; }

/* résultats */
.results { margin: auto; max-width: 600px; width: 100%; text-align: center; }
.results h1 { margin: 4px 0; }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.r-stats div { background: #f8f9fa; border-radius: 14px; padding: 8px 4px; }
.r-stats b { display: block; font-size: 26px; }
.r-stats small { font-size: 13px; color: #555; }
.results p { margin: 6px 0; }

/* espace parent */
.par-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.par-head .row { margin: 0; }
.sel select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 2px solid #d0bfff; max-width: 160px; }
.par-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.par-grid > .card { min-width: 0; }
.par-grid h3 { margin: 0 0 8px; }
.hm-card { grid-column: 1 / -1; }
.days { display: flex; gap: 6px; height: 140px; align-items: flex-end; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.day i { width: 70%; background: linear-gradient(#9775fa, #7b5cff); border-radius: 8px 8px 2px 2px; min-height: 2px; }
.day small { font-size: 13px; color: #555; }
.dv { font-size: 12px; color: #555; white-space: nowrap; }
.tbars { display: grid; gap: 4px; }
.tb { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 8px; font-size: 15px; }
.tb.off { opacity: .45; }
.tb .bar { margin: 0; }
.tb b { text-align: right; }
.hm-scroll { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 3px; margin: 0 auto; }
.heat th { font-size: 14px; color: #555; width: 34px; }
.hm { width: 40px; height: 34px; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.hm.new { background: #f1f3f5; color: #999; } .hm.weak { background: #ffa8a8; } .hm.mid { background: #ffe066; } .hm.ok { background: #8ce99a; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i.hm { display: inline-block; width: 18px; height: 18px; border-radius: 5px; }
.weaklist { margin: 0; padding-left: 22px; }
.weaklist li { margin: 4px 0; } .weaklist li span { display: block; font-size: 13px; color: #666; }
.tchecks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.tck { position: relative; display: block; }
.tck input { position: absolute; opacity: 0; }
.tck span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 12px; background: #f1f3f5; font-weight: 700; cursor: pointer; border: 3px solid transparent; }
.tck input:checked + span { background: #ede7ff; border-color: var(--pri); color: var(--pri2); }
.tck input:focus-visible + span { outline: 4px solid #ffd43b; }
.tck.wide span { padding: 0 18px; }
.ok-msg { color: #2b8a3e; font-weight: 600; }
.par .btn { font-size: 15px; min-height: 40px; padding: 8px 12px; }
hr { border: 0; border-top: 2px solid #f1f3f5; margin: 14px 0; }

/* animations */
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes flap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
.mm-wr { animation-direction: reverse; }
@keyframes twinkle { 50% { opacity: .2; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes popin { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes popb { to { transform: scale(1.5); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.25); } }
@keyframes wob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px) rotate(-4deg); } 40% { transform: translateX(10px) rotate(4deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes atkR { 50% { transform: translateX(40px) scale(1.08); } }
@keyframes atkL { 50% { transform: translateX(-40px) scale(1.08); } }
@keyframes hurt { 0%, 100% { transform: translateX(0); filter: none; } 30% { transform: translateX(-8px); filter: brightness(1.6) saturate(.4); } 60% { transform: translateX(8px); } }
.foe.hurt .mm-mon { animation: hurtF .4s; }
@keyframes hurtF { 0%, 100% { transform: scaleX(-1); filter: none; } 30% { transform: scaleX(-1) translateX(8px); filter: brightness(1.8) saturate(.3); } 60% { transform: scaleX(-1) translateX(-8px); } }
@keyframes rise { to { transform: translate(-50%, -50px); opacity: 0; } }
@keyframes blinkc { 50% { opacity: 0; } }
.kp-screen.has .kp-caret, .pad.has .kp-caret { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* ---------- Grand écran : pavé à droite ---------- */
@media (min-width: 900px) {
  .game.g-kp { grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; }
  .game.g-kp .hud { grid-column: 1 / -1; }
  .game.g-kp .pad { align-self: center; }
  .kp-k { height: 64px; }
  .g-grid .dots { --cell: min(34px, calc((100dvh - 330px) / var(--n))); }
  .g-grid .skip { --cell: min(34px, calc((100dvh - 330px) / var(--n, 10))); }
}
/* ---------- Téléphone ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .islands { grid-template-columns: repeat(3, 1fr); }
  .isle:nth-child(even) { transform: none; }
  .isle:nth-child(3n+2) { transform: translateY(12px); }
  .gamelist { grid-template-columns: 1fr 1fr; }
  .gcard { padding: 10px; }
  .album { grid-template-columns: repeat(3, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .starters { grid-template-columns: repeat(3, 1fr); }
  .eggs { grid-template-columns: 1fr; }
  .egg-card .mm-egg { width: 84px; height: 92px; }
  .par-grid { grid-template-columns: minmax(0, 1fr); }
  .isl-modes { grid-template-columns: repeat(4, 1fr); }
  .isl-main { grid-template-columns: 1fr; }
  .isl-pop .isl-head .mm-island { width: 96px; }
  .bubbles { grid-template-columns: 1fr 1fr; }
  .bub.b1, .bub.b3 { margin-top: 0; }
  .bub.b1 { margin-top: 30px; } .bub.b3 { margin-top: 30px; }
  .bub { width: clamp(90px, 34vw, 140px); }
  .mem { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mcard { aspect-ratio: 5/4; }
  .tchecks { grid-template-columns: repeat(5, 1fr); }
  .pz-pic { --s: min(220px, 34vh, 80vw); }
  .g-pz .stage { flex-direction: column; }
  .q { font-size: 40px; }
  .qbox.big .q { font-size: 46px; }
  .fighter .mm-mon { width: min(120px, 100%); }
  .fighter.boss .mm-mon { width: min(130px, 100%); }
  .arena { grid-template-columns: 1fr 1fr; }
  .arena .qbox { grid-column: 1 / -1; grid-row: 2; }
  .hide-xs { display: none; }
  .kp-k { height: 50px; }
  .kp-screen { height: 46px; }
  .view { padding: 4px 10px 12px; }
  .tb { grid-template-columns: 84px 1fr 44px; }
}

/* ---------- Album de 500 : onglets, familles, pages ---------- */
.acount { font-size: .7em; background: #fff; color: #2b2140; text-shadow: none; border-radius: 99px; padding: 2px 12px; box-shadow: var(--sh); }
.aprog { margin: 4px 0 10px; } .aprog .bar { height: 12px; } .aprog small { color: #666; }
.myst-banner { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; text-align: left; border-radius: 18px; padding: 8px 14px; margin-bottom: 10px; color: #fff; background: linear-gradient(120deg, #1b1430, #3a1c8f 60%, #5f3dc4); box-shadow: 0 0 0 2px #7c4dff, var(--sh); cursor: pointer; font: inherit; }
.myst-banner b { display: block; font-size: 18px; } .myst-banner small { color: #d6ccff; font-size: 13px; }
.myst-banner.got { background: linear-gradient(120deg, #140b3a, #3a1c8f 50%, #00838f); box-shadow: 0 0 0 3px #ffd43b, 0 0 18px #7c4dff; }
.mm-mon.mini { width: 72px; height: 72px; flex: none; }
.atabs, .fchips, .aown { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.atab, .fchip, .seg { border: 0; font: inherit; cursor: pointer; border-radius: 99px; background: #fff; box-shadow: var(--sh); padding: 6px 12px; font-size: 15px; color: #2b2140; }
.atab { border-bottom: 4px solid var(--r, #2b2140); font-weight: 700; }
.atab small, .fchip small { font-weight: 400; color: #777; font-size: 12px; }
.atab.on, .fchip.on, .seg.on { background: #2b2140; color: #fff; } .atab.on small, .fchip.on small { color: #ddd; }
.fchip { font-size: 13px; padding: 4px 10px; }
.ares { margin-left: auto; color: #666; font-size: 14px; }
.acard .anum { position: absolute; top: 4px; left: 6px; font-size: 11px; color: #888; font-weight: 700; }
.acard .afam { position: absolute; top: 2px; right: 6px; font-size: 14px; }
.acard .tag { top: auto; bottom: 46px; }
.acard b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.acard.r-leg:not(.unk) { background: linear-gradient(#fff, #fff7d6); box-shadow: 0 0 0 2px #f9a825, var(--sh); }
.acard.r-epic:not(.unk) { background: linear-gradient(#fff, #f6e9ff); }
.apager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0 4px; font-weight: 700; }
.apager .btn { min-width: 56px; font-size: 24px; }
.apager .btn[disabled] { opacity: .35; pointer-events: none; }
.mtitle { margin: -6px 0 4px; font-style: italic; color: #5f3dc4; }
.mfam { margin: 2px 0 8px; color: #555; font-size: 15px; }
.mm-mon .mm-fx { animation: float 3s ease-in-out infinite; }
.mm-mon .mm-aura { animation: twinkle 2.6s ease-in-out infinite; }
.mm-mon .mm-halo { animation: twinkle 2s infinite; }
/* Infinix */
.mm-myst .mmx-ring { animation: spin 18s linear infinite; }
.mm-myst .mmx-orbit { animation: spin 11s linear infinite reverse; }
.mm-myst .mmx-wing { animation: flap 1.8s ease-in-out infinite; } .mm-myst .mmx-wr { animation-direction: reverse; }
.mm-myst .mmx-inf { animation: infglow 1.6s ease-in-out infinite; }
.mm-myst .mmx-q, .mm-myst .mmx-glow { animation: twinkle 2.2s ease-in-out infinite; }
@keyframes infglow { 50% { stroke: #ffe066; opacity: .7; } }
/* Éclosion du monstre mystère */
.hatch-wrap.myst { background: radial-gradient(circle at 50% 40%, #3a1c8f, #140b3a 60%, #05030f); }
.starfield { position: absolute; inset: -50%; background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 120px, #b9f6ff, transparent), radial-gradient(2px 2px at 160px 60px, #ffe066, transparent), radial-gradient(1px 1px at 60px 170px, #fff, transparent), radial-gradient(1.5px 1.5px at 190px 190px, #ffc0f0, transparent); background-size: 220px 220px; animation: spin 90s linear infinite; opacity: .9; pointer-events: none; }
.mm-egg.rainbow { animation: rainbow 1.2s linear infinite, wob 1s ease-in-out infinite; filter: drop-shadow(0 0 18px #b388ff); }
.mm-egg.rainbow.shake-hard { animation: rainbow .5s linear infinite, shakeh .35s infinite; }
@keyframes rainbow { from { filter: hue-rotate(0) drop-shadow(0 0 18px #b388ff); } to { filter: hue-rotate(360deg) drop-shadow(0 0 26px #5ef0ff); } }
@keyframes shakeh { 0%, 100% { transform: translate(0) rotate(0); } 25% { transform: translate(-14px, 4px) rotate(-9deg); } 50% { transform: translate(12px, -4px) rotate(8deg); } 75% { transform: translate(-8px, 2px) rotate(-5deg); } }
.myst-rays { background: repeating-conic-gradient(rgba(94, 240, 255, .18) 0 8deg, rgba(255, 224, 102, .12) 8deg 16deg, transparent 16deg 24deg); animation-duration: 7s; }
.shock { position: absolute; left: 50%; top: 40%; pointer-events: none; }
.shock i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%; border: 6px solid #5ef0ff; opacity: 0; animation: shockw 1.6s ease-out forwards; }
.shock i:nth-child(2) { border-color: #ffe066; animation-delay: .25s; } .shock i:nth-child(3) { border-color: #ff4fd8; animation-delay: .5s; }
@keyframes shockw { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(9); opacity: 0; } }
.hatch-wrap.boom .hatch { animation: shakeh .45s 2; }
.myst-tag { background: linear-gradient(90deg, #00e5ff, #b388ff, #ff4fd8); color: #140b3a; }
.myst-title { font-size: 40px !important; background: linear-gradient(90deg, #ffe066, #5ef0ff, #ff9cf2, #ffe066); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bump 1s ease-in-out infinite; }
.mm-myst.myst-in { animation: mystin 1.4s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 0 22px #7c4dff); }
@keyframes mystin { 0% { transform: scale(.05) rotate(-200deg); opacity: 0; } 70% { transform: scale(1.15) rotate(10deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@media (max-width: 700px) {
  .atab { padding: 5px 9px; font-size: 13px; } .fchip { font-size: 12px; padding: 4px 8px; }
  .fchip small { display: none; }
  .mm-mon.mini { width: 56px; height: 56px; } .myst-banner b { font-size: 16px; } .myst-banner small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .mm-myst *, .starfield, .mm-egg.rainbow { animation: none !important; } }
.hatch .mm-myst.big { width: min(300px, 72vw); height: min(300px, 72vw); }

/* ---------- Archipel des Géants (tables 11 à 20) ---------- */
.giant-zone { margin-top: 16px; border-radius: 26px; padding: 12px; background: linear-gradient(160deg, #5f3dc4, #3b2a87); color: #fff; box-shadow: var(--sh); }
.giant-zone.locked { background: linear-gradient(160deg, #868e96, #495057); }
.gz-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.gz-head h2 { margin: 0; font-size: 22px; } .gz-head small { color: #e5dbff; }
.gz-gauge { display: grid; grid-template-columns: auto 160px auto; gap: 8px; align-items: center; font-weight: 700; }
.gz-gauge .bar { margin: 0; height: 14px; } .gz-gauge small { color: #fff; }
.bar.gold i { background: linear-gradient(90deg, #ffe066, #fab005); }
.gz-lock { background: rgba(0, 0, 0, .2); border-radius: 99px; padding: 6px 14px; }
.sea.giant { background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25) 0 3%, transparent 3.5%), linear-gradient(160deg, #7048e8, #5f3dc4 60%, #4c2fa8); background-size: 120px 120px, auto; }
.giant-zone.locked .sea.giant { filter: grayscale(.7); opacity: .75; }
.isle .i-mult { position: absolute; top: 2px; left: 4px; background: #ffd43b; color: #2b2140; font-weight: 700; font-size: 12px; border-radius: 99px; padding: 1px 7px; }
.gz-tip { margin: 8px 4px 0; color: #e5dbff; }
.isl-rew { margin: 6px 0 0; font-weight: 700; color: #5f3dc4; font-size: 15px; }
/* ---------- Puissance des monstres ---------- */
.pow { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 4px; }
.pow .atk { background: #2b2140; color: #fff; font-weight: 700; border-radius: 99px; padding: 1px 10px; font-size: 15px; }
.pow span:not(.atk) { font-size: 16px; }
.hp { position: relative; height: 16px; }
.hp .hp-t { position: absolute; inset: 0; font-size: 11px; font-weight: 700; color: #2b2140; display: flex; align-items: center; justify-content: center; line-height: 1; }
.dmg small { display: block; font-size: 15px; }
.dmg.special { color: #f76707; font-size: 32px; } .dmg.super { color: #ae3ec9; font-size: 38px; } .dmg.crit { color: #e8590c; }
.dmg.shield { color: #1c7ed6; font-size: 20px; }
.me.atk-special .mm-mon { filter: drop-shadow(0 0 14px #ff922b); } .me.atk-super .mm-mon { filter: drop-shadow(0 0 20px #cc5de8); }
.powbox { background: #f8f6ff; border-radius: 16px; padding: 8px 12px; margin: 8px 0; text-align: left; }
.pb-atk { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pb-atk b { font-size: 26px; color: #5f3dc4; } .pb-atk small { color: #555; }
.powbox ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 2px; font-size: 15px; }
.powbox li span { display: inline-block; width: 26px; } .powbox li.off { color: #999; }
.evo-gain { background: #fff9db; border-radius: 16px; padding: 10px 14px; margin-top: 8px; }
.eg-atk { font-size: 22px; font-weight: 700; } .eg-atk s { color: #999; } .eg-atk b { color: #5f3dc4; font-size: 28px; } .eg-atk em { font-style: normal; color: #2fb36b; margin-left: 6px; animation: bump 1s ease-in-out infinite; display: inline-block; }
.evo-gain ul { list-style: none; padding: 0; margin: 6px 0 0; text-align: left; } .evo-gain li { margin: 4px 0; }
.evo-gain li.new { animation: popin .6s both; }
.bub { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .gz-gauge { grid-template-columns: auto 1fr auto; width: 100%; }
  .gz-head h2 { font-size: 19px; }
  .pow .atk { font-size: 13px; padding: 1px 7px; } .pow span:not(.atk) { font-size: 13px; }
  .dmg.special { font-size: 26px; } .dmg.super { font-size: 30px; }
}

/* ---------- Œuf de diamant ---------- */
.egg-card.diamond { background: linear-gradient(#e7f8ff, #f3efff 60%, #fff); box-shadow: 0 0 0 2px #74c0fc, var(--sh); }
.mm-egg.diamond { overflow: visible; filter: drop-shadow(0 0 10px rgba(116, 192, 252, .7)); }
.mm-egg.diamond .dia-shine { animation: diashine 2.8s ease-in-out infinite; }
.mm-egg.diamond .dia-tw { animation: twinkle 1.4s ease-in-out infinite; }
@keyframes diashine { 0%, 40% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(320px); } }
.hatch-wrap.dia { background: radial-gradient(circle at 50% 40%, #4dabf7, #3b2a87 65%, #1b1440); }
.mm-egg.dia-glint { filter: drop-shadow(0 0 22px #a5f3ff) drop-shadow(0 0 6px #fff); }
.dia-sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dia-sparkles i { position: absolute; bottom: -20px; width: 14px; height: 14px; background: linear-gradient(135deg, #fff, #9be7ff); transform: rotate(45deg); opacity: .8; animation: diarise 4s linear infinite; }
.dia-sparkles i:nth-child(1) { left: 12%; animation-delay: 0s; } .dia-sparkles i:nth-child(2) { left: 28%; animation-delay: -1.2s; width: 9px; height: 9px; }
.dia-sparkles i:nth-child(3) { left: 46%; animation-delay: -2.5s; } .dia-sparkles i:nth-child(4) { left: 63%; animation-delay: -.6s; width: 10px; height: 10px; }
.dia-sparkles i:nth-child(5) { left: 78%; animation-delay: -3.1s; } .dia-sparkles i:nth-child(6) { left: 90%; animation-delay: -1.8s; width: 8px; height: 8px; }
@keyframes diarise { from { transform: translateY(0) rotate(45deg); opacity: 0; } 15% { opacity: .9; } to { transform: translateY(-110vh) rotate(405deg); opacity: 0; } }
.dia-rays { background: repeating-conic-gradient(rgba(165, 243, 255, .22) 0 9deg, rgba(255, 255, 255, .08) 9deg 18deg, transparent 18deg 27deg); }
.shards { position: absolute; left: 50%; top: 40%; pointer-events: none; }
.shards i { position: absolute; width: 18px; height: 18px; margin: -9px; background: linear-gradient(135deg, #fff, #74c0fc 60%, #b197fc); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); animation: shard 1.1s cubic-bezier(.2, .8, .3, 1) forwards; }
.shards i:nth-child(1) { --dx: -170px; --dy: -120px; } .shards i:nth-child(2) { --dx: 170px; --dy: -130px; } .shards i:nth-child(3) { --dx: -200px; --dy: 40px; } .shards i:nth-child(4) { --dx: 210px; --dy: 60px; }
.shards i:nth-child(5) { --dx: -90px; --dy: 170px; } .shards i:nth-child(6) { --dx: 100px; --dy: 180px; } .shards i:nth-child(7) { --dx: 0; --dy: -200px; } .shards i:nth-child(8) { --dx: -30px; --dy: 210px; }
@keyframes shard { from { transform: translate(0, 0) scale(.4) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(220deg); opacity: 0; } }
.hatch-wrap.dia-burst::after { background: #e7fbff !important; }
@media (max-width: 1000px) and (min-width: 701px) { .egg-card .mm-egg { width: 90px; height: 99px; } }
@media (prefers-reduced-motion: reduce) { .dia-sparkles, .shards, .mm-egg.diamond .dia-shine { display: none; } }
.egg-card .odds span { white-space: nowrap; }

/* ---------- Récompenses dégressives ---------- */
.i-gain { position: static; order: 9; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #2b2140; border: 2px solid #fcc419; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); white-space: nowrap; }
.i-gain .gp { display: inline-block; width: 26px; height: 6px; border-radius: 99px; background: #e9ecef; overflow: hidden; }
.i-gain .gp i { display: block; height: 100%; background: linear-gradient(90deg, #fab005, #ffd43b); border-radius: 99px; }
.i-gain.zero { border-color: #748ffc; color: #364fc7; }
.isle.tired .mm-island { filter: saturate(.75); }
.isle.tired:has(.i-gain.zero) .mm-island { filter: grayscale(.55) brightness(.9); }
.isl-gain { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #b35c00; }
.isl-gain.full { color: #2b8a3e; }
.isl-gain.zero { color: #364fc7; }
.isl-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff9db; border-radius: 14px; padding: 8px 12px; margin: 8px 0; font-weight: 600; }
.gain-note { color: #b35c00 !important; font-weight: 700; }
.gain-note.zero { color: #364fc7 !important; }
.gain-opt span { height: auto !important; min-height: 42px; padding: 8px 14px !important; justify-content: flex-start !important; text-align: left; }
.gtab { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.gtab th, .gtab td { padding: 5px 6px; border-bottom: 1px solid #e9ecef; text-align: center; }
.gtab th { font-size: 12px; color: #666; }
.gtab tr.low td { color: #b35c00; font-weight: 700; }
