/* ============================================================
   Composants : accueil du jour, quêtes, quiz, échanges, binders,
   messagerie, bandeau d'installation, fil des tirages, admin données
   ============================================================ */
@media (max-width: 1200px) { .topnav a .lbl { display: none; } .topnav a { padding: 8px 10px; } }
.topnav a { position: relative; }
.topnav .nav-badge { position: absolute; top: 2px; right: 0; }
.hero-logo { width: 140px; height: 140px; filter: drop-shadow(0 0 24px rgba(61, 155, 255, .5)); margin-bottom: 8px; }
@media (max-width: 820px) { .hero-logo { margin: 0 auto 8px; display: block; } }
.pulse { animation: dlf-pulse 1.2s ease-in-out infinite; }
@keyframes dlf-pulse { 50% { box-shadow: 0 0 0 8px rgba(51, 225, 255, .25), 0 0 30px rgba(51, 225, 255, .6); } }

/* ----- Accueil : tuiles du jour ----- */
.daily-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 760px) { .daily-row { grid-template-columns: repeat(6, 132px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .daily-tile { scroll-snap-align: start; } }
.daily-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; color: var(--ink); min-height: 92px;
  background: linear-gradient(180deg, rgba(26, 32, 80, .8), rgba(18, 23, 56, .9)); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.daily-tile:hover { transform: translateY(-2px); box-shadow: var(--glow-blue); }
.daily-tile .dt-ico { font-size: 1.5rem; }
.daily-tile b { font-family: var(--font-title); font-weight: 400; font-size: .95rem; }
.daily-tile span:last-child { font-size: .8rem; color: var(--ink2); }
.daily-tile.hot { border-color: rgba(246, 195, 67, .6); box-shadow: 0 0 18px rgba(246, 195, 67, .25); }
.daily-tile.hot span:last-child { color: var(--gold); font-weight: 700; }

/* ----- Bandeau d'installation ----- */
.install-banner { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 44px 14px 14px; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(27, 79, 126, .9), rgba(61, 42, 158, .9)); border: 1px solid rgba(246, 195, 67, .5); box-shadow: 0 0 30px rgba(61, 155, 255, .3); }
.ib-icon { width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.ib-text { flex: 1; min-width: 0; }
.ib-steps { margin: 6px 0 0; padding-left: 20px; font-size: .9rem; line-height: 1.6; }
.ib-steps .ios-share { vertical-align: -3px; color: var(--neon); }
.ib-bonus { margin-top: 6px; font-weight: 700; color: var(--gold); }
.ib-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }

/* ----- Fil des tirages ----- */
.feed-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x mandatory; }
.feed-item { display: flex; flex-direction: column; gap: 8px; color: var(--ink); scroll-snap-align: start; }
.feed-txt { font-size: .82rem; line-height: 1.3; }

/* ----- Quêtes & série ----- */
.quest { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.quest:last-child { border-bottom: 0; }
.quest-ico { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(7, 10, 28, .6); flex-shrink: 0; }
.quest.done .quest-ico { box-shadow: 0 0 0 2px var(--gold), var(--glow-gold); }
.quest.claimed { opacity: .55; }
.streak-panel { background: linear-gradient(135deg, rgba(120, 40, 10, .55), rgba(61, 42, 158, .55)); }
.streak-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.sday { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(7, 10, 28, .55); border: 1px solid var(--line); font-size: .78rem; display: flex; flex-direction: column; gap: 4px; }
.sday b { font-family: var(--font-title); font-weight: 400; }
.sday.got { opacity: .5; }
.sday.today { border-color: var(--gold); box-shadow: var(--glow-gold); }
@media (max-width: 520px) { .streak-days { grid-template-columns: repeat(4, 1fr); } }

/* ----- Quiz ----- */
.quiz { max-width: 640px; margin: 0 auto; }
.quiz-img { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #000; }
.quiz-pic { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.quiz-img:not(.revealed) .quiz-pic { filter: saturate(1.2) contrast(1.05); }
.quiz-q { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 99px; background: rgba(7, 10, 28, .8); font-family: var(--font-title); }
.quiz-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
@media (max-width: 520px) { .quiz-choices { grid-template-columns: 1fr; } }
.quiz-choice { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; padding: 14px 16px; min-height: 64px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface2); color: var(--ink); cursor: pointer; font: inherit; transition: transform .15s, box-shadow .2s; }
.quiz-choice:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--glow-blue); border-color: var(--primary); }
.quiz-choice.right { border-color: var(--ok); background: rgba(62, 227, 155, .18); box-shadow: 0 0 18px rgba(62, 227, 155, .4); }
.quiz-choice.wrong { border-color: var(--danger); background: rgba(255, 90, 122, .15); }

/* ----- Échanges ----- */
.trade-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: start; margin: 12px 0; }
.trade-cols h4 { margin: 0 0 8px; font-size: .9rem; color: var(--ink2); }
.trade-arrow { font-size: 1.6rem; align-self: center; color: var(--neon); text-shadow: 0 0 10px var(--neon); }
.trade-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-bottom: 8px; }
.trade-item { display: block; border: 0; padding: 0; background: none; cursor: pointer; }
@media (max-width: 560px) { .trade-cols { grid-template-columns: 1fr; } .trade-arrow { transform: rotate(90deg); justify-self: center; } }
.trade.accepted { border-color: rgba(246, 195, 67, .5); }
.mk-status.pending, .mk-status.accepted { background: rgba(246, 195, 67, .15); color: var(--gold); }
.mk-status.declined { background: rgba(255, 90, 122, .15); color: #ff8aa2; }

/* ----- Binders ----- */
.binder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.binder-cover { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 18px; color: var(--ink); min-height: 220px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.binder-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: auto; }
.binder { padding: 18px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin-top: 16px; }
.binder-page { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); max-width: 560px; margin: 0 auto; }
.binder-slot { aspect-ratio: 5 / 7; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); padding: 0; cursor: pointer; color: var(--ink2); font-size: 1.6rem; }
.binder-slot:not(.empty) { border: 0; background: none; }
.binder-slot.lost { opacity: .35; filter: grayscale(1); }
.theme-neon { background: linear-gradient(160deg, #0d2a52, #2a1468); }
.theme-gold { background: linear-gradient(160deg, #3a2a05, #7a5a10); }
.theme-aurora { background: linear-gradient(160deg, #0b3d3a, #3d1e6d, #6d1e4f); }
.theme-castle { background: linear-gradient(160deg, #1b4f7e, #4f86b8); }
.theme-coaster { background: repeating-linear-gradient(45deg, #2a0f3d 0 14px, #3b1452 14px 28px); }
.theme-night { background: radial-gradient(circle at 30% 20%, #23306b, #070a1c 70%); }

/* ----- Messagerie ----- */
.conv.unread b { color: var(--neon); }
.conv-last { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.dm-badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.dm-page { display: flex; flex-direction: column; height: calc(100dvh - 170px); max-width: 760px; margin: 0 auto; }
.dm-head { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dm-list { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 10px; }
.dm-msg { max-width: 78%; align-self: flex-start; display: flex; flex-direction: column; gap: 4px; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; }
.dm-bubble { padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--surface2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.dm-msg.mine .dm-bubble { border-radius: 18px 18px 4px 18px; background: linear-gradient(135deg, #2f7dff, #2a5bd6); border-color: transparent; color: #fff; }
.dm-card { width: 130px; display: block; }
.dm-time { font-size: .7rem; color: var(--ink3); }
.dm-form { display: flex; gap: 8px; align-items: flex-end; padding-top: 10px; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.dm-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; }
@media (max-width: 820px) { .dm-page { height: calc(100dvh - 190px); } }
.share-to { width: 100%; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; }

/* ----- Propositions ----- */
.vs-prev { border-radius: 12px; overflow: hidden; max-height: 240px; }
.vs-prev img { width: 100%; max-height: 240px; object-fit: contain; background: #000; display: block; }
.sg-results { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sg-results button { text-align: left; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); cursor: pointer; font: inherit; }
.card-actions { justify-content: center; margin-top: 12px; }
.shiny-panel { background: linear-gradient(135deg, rgba(60, 20, 70, .7), rgba(20, 40, 80, .7)); border-color: rgba(246, 195, 67, .35); }
.serial-chip { display: inline-block; padding: 2px 8px; border-radius: 99px; background: linear-gradient(135deg, #fff3c4, #f6c343); color: #2a1c00; font-family: var(--font-title); font-weight: 400; margin: 2px; }
.serial-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.serial-list a { padding: 3px 9px; border-radius: 99px; background: rgba(7, 10, 28, .6); border: 1px solid var(--line); }
.qr-box { display: inline-block; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 30px rgba(61, 155, 255, .4); margin: 10px 0; }

/* ----- Ouverture : logo sur le pack ----- */
.op-pack-img { width: 62%; display: block; margin: 0 auto 8px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.op-pack-logo { font-size: 1.2rem !important; }
.op-pack-body, .op-pack-top { background: linear-gradient(160deg, #1b4f7e 0%, #3d2a9e 45%, #b0337f 100%); }
.op-pack-top { background-image: repeating-linear-gradient(90deg, rgba(246, 195, 67, .7) 0 6px, transparent 6px 12px), linear-gradient(90deg, #1b4f7e, #3d2a9e, #b0337f) !important; }
.op-overlay { background: radial-gradient(ellipse at 50% 45%, #1a2060 0%, #0b0e2c 50%, #04060f 100%); }

/* ----- Admin : traitement des données ----- */
.dt-table td { vertical-align: middle; }
.dt-table input.input { min-height: 36px; padding: 6px 10px; }
.dt-thumb { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; background: #000; border: 1px solid var(--line); display: block; }
.dt-saved { color: var(--ok); font-size: .8rem; opacity: 0; transition: opacity .3s; }
.dt-saved.show { opacity: 1; }
.compositor { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .compositor { grid-template-columns: 1fr; } }
.compositor canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #000; }
.prop-card { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
@media (max-width: 600px) { .prop-card { grid-template-columns: 1fr; } }
.prop-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #000; max-height: 260px; object-fit: contain; }
.dt-table input.input[data-f="name_fr"], .dt-table input.input[data-f="name_en"] { min-width: 200px; }
.dt-table input.input[data-f="country"] { min-width: 64px; }
.dt-table select.input { min-width: 140px; min-height: 36px; padding: 6px 10px; }
.dt-table td.small { white-space: normal; min-width: 180px; }

/* ----- Rareté lisible ----- */
.tcg-rar { display: flex; align-items: center; justify-content: center; gap: 2cqw; margin: 2cqw 3.5cqw 0; padding: 1cqw 0; border-radius: 99px;
  background: var(--rc); color: #fff; font-size: 5cqw; letter-spacing: .08em; text-shadow: 0 .3cqw .8cqw rgba(0, 0, 0, .55); box-shadow: 0 0 3cqw color-mix(in srgb, var(--rc) 60%, transparent); }
.tcg-rar b { font-family: var(--font-title); font-weight: 400; }
.tcg-rar span { letter-spacing: .02em; }
.tcg.r-common .tcg-rar { background: #5d6884; }
.tcg.r-legendary .tcg-rar { background: linear-gradient(90deg, #b8860b, #f6c343, #ffe08a, #f6c343, #b8860b); color: #2a1c00; text-shadow: none; }
.tcg.shiny .tcg-rar { background: linear-gradient(90deg, #ff6ec7, #f6c343, #7cf3ff, #b46bff); color: #fff; }
.tcg-art { height: 44% !important; }
.tcg-stars { letter-spacing: .05em; }
.rar-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 99px; font-weight: 700; color: #fff; background: var(--rc, #5d6884); }
.rb-common { --rc: #5d6884; } .rb-uncommon { --rc: #1f9e66; } .rb-rare { --rc: #2f7dff; } .rb-epic { --rc: #8c3fe0; }
.rb-legendary { background: linear-gradient(90deg, #b8860b, #f6c343); color: #2a1c00; }
.rarity-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; font-size: .8rem; }
.tcg.missing { cursor: pointer; }
.tcg.missing .tcg-inner { background: radial-gradient(circle at 50% 40%, #1d2560, #0b0e2c 70%); }
.tcg.missing .q { font-size: 40cqw; color: #3a4590; text-shadow: 0 0 6cqw rgba(61, 155, 255, .35); }

/* ----- Pack du parc mis en avant ----- */
.park-cta { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 20px; margin: 0 0 18px;
  background: linear-gradient(135deg, rgba(246, 195, 67, .2), rgba(255, 79, 179, .2)), var(--surface); border: 1px solid rgba(246, 195, 67, .55); box-shadow: var(--glow-gold); }
.park-cta .pack-art.mini { flex-shrink: 0; width: 86px; }
.park-cta h3 { margin: 0 0 4px; }
.park-cta .grow { flex: 1; min-width: 0; }
@media (max-width: 560px) { .park-cta { flex-wrap: wrap; } .park-cta .btn { width: 100%; } }

/* ----- Missions du jour (accueil) ----- */
.missions { border-color: rgba(246, 195, 67, .45); background: linear-gradient(135deg, rgba(61, 42, 158, .55), rgba(27, 79, 126, .55)); margin-bottom: 16px; }
.missions .quest { padding: 8px 2px; }
.mission-claim-all { animation: dlf-pulse 1.4s ease-in-out infinite; }
.notif-nudge { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 79, 179, .25), rgba(51, 225, 255, .18)), var(--surface); border: 1px solid rgba(255, 79, 179, .5); }
.notif-nudge .nn-ico { font-size: 2rem; animation: nn-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes nn-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }

/* ----- Corrections : bouton Continuer lisible, pas de zoom au double-tap ----- */
.op-overlay .btn:not(.primary):not(.gold) { background: rgba(26, 32, 80, .92) !important; color: var(--ink) !important; border: 1px solid rgba(124, 192, 255, .45) !important; }
html, body, button, a, input, select, textarea, .tcg, .op-overlay { touch-action: manipulation; }

/* ----- Ouverture façon Pokémon TCG Pocket ----- */
.op-pack, .op-card { touch-action: none; }
.op-cut { position: absolute; left: 0; right: 0; top: 11%; height: 0; z-index: 6; pointer-events: none; }
.op-cut::before { content: ''; position: absolute; left: 6%; right: 6%; top: -1px; border-top: 2px dashed rgba(255, 255, 255, .55); animation: op-pulse-text 1.4s ease-in-out infinite; }
.op-cut i { position: absolute; top: -3px; height: 6px; width: 0; border-radius: 6px; background: linear-gradient(90deg, #fff, var(--neon), #fff);
  box-shadow: 0 0 12px #fff, 0 0 24px var(--neon); }
.op-cut-spark { position: absolute; top: -10px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 25%, rgba(51, 225, 255, .8) 40%, transparent 70%); }
.op-cut.active .op-cut-spark { opacity: 1; }
.op-cut.active::before { animation: none; opacity: .3; }
.op-card.flipped:not(.top) .op-front { filter: brightness(.8); }
.op-card.top { cursor: grab; }
.op-card.top:active { cursor: grabbing; }
.qa-row input[data-k="name"] { min-width: 220px; }
.qa-row input[data-k="image"] { min-width: 200px; }
.qa-row select.input { min-width: 150px; }

/* ----- Fond de carte à la couleur de sa rareté ----- */
.tcg:not(.missing):not(.shiny) .tcg-inner {
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--rc) 55%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--rc) 45%, #0b0e2c) 0%, color-mix(in srgb, var(--rc) 22%, #0b0e2c) 55%, #0b0e2c 100%);
}
.tcg.r-common { --rc: #7b88a8; }
.tcg.r-uncommon { --rc: #2fbf7d; }
.tcg.r-rare { --rc: #3d8bff; }
.tcg.r-epic { --rc: #a24dff; }
.tcg.r-legendary { --rc: #f0b11e; }
.tcg.r-legendary:not(.shiny) .tcg-inner {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 224, 138, .55), transparent 70%),
    linear-gradient(180deg, #6b4a06 0%, #3d2a05 55%, #1a1203 100%);
}
.tcg:not(.shiny) .tcg-name { text-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .55); }
.tcg:not(.shiny) .tcg-type, .tcg:not(.shiny) .tcg-stat { color: #eef2ff; }

/* ----- v6 : fond de carte entièrement dans la couleur de la rareté (version foncée) ----- */
.tcg:not(.missing):not(.shiny) .tcg-inner { background: var(--card-bg); }
.tcg.r-common { --card-bg: radial-gradient(120% 70% at 50% 0%, #6d7896, transparent 70%), linear-gradient(180deg, #3f4760, #262c3e); }
.tcg.r-uncommon { --card-bg: radial-gradient(120% 70% at 50% 0%, #2d9a68, transparent 70%), linear-gradient(180deg, #145a3b, #0b3523); }
.tcg.r-rare { --card-bg: radial-gradient(120% 70% at 50% 0%, #3a78e0, transparent 70%), linear-gradient(180deg, #17407f, #0c2552); }
.tcg.r-epic { --card-bg: radial-gradient(120% 70% at 50% 0%, #9a4fe8, transparent 70%), linear-gradient(180deg, #4e1f86, #2d0f52); }
.tcg.r-legendary { --card-bg: radial-gradient(120% 70% at 50% 0%, #f1c04a, transparent 70%), linear-gradient(180deg, #7a5308, #432d04); }
.tcg.r-legendary:not(.shiny) .tcg-inner { background: var(--card-bg); }

/* ===== v7 : cartes ENTIÈREMENT dans la couleur de leur rareté (cadre + fond + pied) ===== */
.tcg.r-common    { --rc: #9ca3af; --c1: #6b7280; --c2: #4b5563; --c3: #374151; }
.tcg.r-uncommon  { --rc: #34d399; --c1: #16a34a; --c2: #15803d; --c3: #14532d; }
.tcg.r-rare      { --rc: #60a5fa; --c1: #2563eb; --c2: #1d4ed8; --c3: #1e3a8a; }
.tcg.r-epic      { --rc: #c084fc; --c1: #9333ea; --c2: #7e22ce; --c3: #581c87; }
.tcg.r-legendary { --rc: #fcd34d; --c1: #d97706; --c2: #b45309; --c3: #78350f; }
.tcg:not(.missing):not(.shiny) { background: linear-gradient(160deg, var(--rc), var(--c1) 45%, var(--c3)) !important; }
.tcg:not(.missing):not(.shiny) .tcg-inner {
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .28), transparent 65%), linear-gradient(180deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%) !important;
}
.tcg:not(.missing):not(.shiny) .tcg-foot { background: var(--c3) !important; color: #fff !important; }
.tcg:not(.missing):not(.shiny) .tcg-rar { background: rgba(0, 0, 0, .28) !important; color: #fff !important; }
.tcg:not(.missing):not(.shiny) .tcg-stat b { background: rgba(0, 0, 0, .3) !important; }
.tcg:not(.missing):not(.shiny) .tcg-stat b i { background: #fff !important; }
.tcg:not(.missing):not(.shiny) .tcg-name, .tcg:not(.missing):not(.shiny) .tcg-type { color: #fff !important; }
.tcg:not(.missing):not(.shiny) .tcg-gem { background: #fff; }
.app-version { opacity: .6; }

/* ----- Tutoriel ----- */
.tuto-bg { position: fixed; inset: 0; z-index: 400; background: rgba(3, 5, 16, .78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadein .25s; }
.tuto { width: 100%; max-width: 440px; text-align: center; padding: 26px 22px 18px; border-radius: 24px; color: var(--ink);
  background: linear-gradient(180deg, #1a2160, #0f1438); border: 1px solid rgba(246, 195, 67, .45); box-shadow: 0 0 40px rgba(61, 155, 255, .35); animation: op-deal .45s cubic-bezier(.2, 1.3, .4, 1); }
.tuto-ic { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(61, 155, 255, .6)); }
.tuto h2 { margin: 0 0 8px; }
.tuto p { color: var(--ink2); line-height: 1.55; min-height: 4.6em; }
.tuto-rar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; font-size: .78rem; }
.tuto-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 16px; }
.tuto-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tuto-dots i.on { background: var(--gold); box-shadow: var(--glow-gold); width: 22px; border-radius: 4px; }
