/* =====================================================================
   KIZUNA — direction « Fil rouge » (phase 1)
   Deux themes : washi (papier creme, clair) et laque (laque noire, sombre).
   Charge APRES styles.css. Toutes les regles commencent par #kz (id de <html>)
   pour passer devant les nombreuses couches de styles.css sans !important.
   ===================================================================== */

/* ---------- 1. Jetons ---------- */
#kz[data-theme] {
  --mincho: "Shippori Mincho B1", "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
  --display: var(--mincho);
  --body: var(--gothic);
  --radius: 4px;
  --asa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='41.57' viewBox='0 0 24 41.57'%3E%3Cpath d='M12 0v13.86M0 6.93l12 6.93 12-6.93M0 20.78h24M12 13.86 0 20.78m12-6.92 24 13.86M0 6.93v27.71M24 6.93v27.71M12 27.71v13.86M0 34.64l12-6.93 12 6.93M12 27.71 0 20.78m12 6.93 12-6.93M0 6.93 12 0l12 6.93M0 34.64l12 6.93 12-6.93' fill='none' stroke='%23fff' stroke-opacity='.13' stroke-width='.9'/%3E%3C/svg%3E");
  --asa-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='69.28' viewBox='0 0 40 69.28'%3E%3Cpath d='M20 0v23.09M0 11.55l20 11.54 20-11.54M0 34.64h40M20 23.09 0 34.64m20-11.55 20 11.55M0 11.55v46.18M40 11.55v46.18M20 46.19v23.09M0 57.73l20-11.54 20 11.54M20 46.19 0 34.64m20 11.55 20-11.55M0 11.55 20 0l20 11.55M0 57.73l20 11.55 20-11.55' fill='none' stroke='%23887766' stroke-opacity='.16' stroke-width='.8'/%3E%3C/svg%3E");
}
#kz[data-theme="laque"] {
  color-scheme: dark;
  --washi: #110d0c; --washi-2: #211a17; --sheet: #1b1614; --sheet-2: #241d1a;
  --sumi: #efe6d6; --ink: #cbbfac; --ink-soft: #958877;
  --rule: rgba(239, 230, 214, .12); --rule-2: rgba(239, 230, 214, .28);
  --red: #df2a40; --red-btn: #c8102e; --red-deep: #a30d25; --red-soft: rgba(223, 42, 64, .16); --red-glow: rgba(223, 42, 64, .45);
  --gold: #c9a35a;
  --paper: #efe6d6; --paper-ink: #1b1714;
  --lacquer: linear-gradient(180deg, #1e1816 0%, #161110 100%);
  --bar-bg: rgba(14, 11, 10, .84);
  --drop: 0 24px 40px -24px rgba(0, 0, 0, .9);
  /* anciens jetons, re-mappes */
  --bg: #110d0c; --bg2: #1b1614; --panel: rgba(239, 230, 214, .035); --panel-2: rgba(239, 230, 214, .08); --line: rgba(239, 230, 214, .12);
  --text: #efe6d6; --muted: #958877; --pink: #df2a40; --violet: #a30d25; --cyan: #df2a40; --green: #8fb98a; --danger: #ff6b7a;
  --r-commune: #a89c8c; --r-peu-commune: #8fb98a; --r-rare: #d8ccb8; --r-super-rare: #e0485b; --r-ultra-rare: #df2a40; --r-secrete: #c9a35a; --r-kizuna: #ff4d62;
}
#kz[data-theme="washi"] {
  color-scheme: light;
  --washi: #f3ecdf; --washi-2: #ebe2d1; --sheet: #faf6ee; --sheet-2: #f1e9da;
  --sumi: #1b1714; --ink: #3d3530; --ink-soft: #7a6f66;
  --rule: rgba(27, 23, 20, .16); --rule-2: rgba(27, 23, 20, .4);
  --red: #c8102e; --red-btn: #c8102e; --red-deep: #9e0c24; --red-soft: rgba(200, 16, 46, .09); --red-glow: rgba(200, 16, 46, .28);
  --gold: #a5823e;
  --paper: #1b1714; --paper-ink: #f3ecdf;
  --lacquer: linear-gradient(180deg, #fbf8f2 0%, #f7f1e6 100%);
  --bar-bg: rgba(243, 236, 223, .86);
  --drop: 0 18px 30px -26px rgba(60, 30, 10, .55);
  --bg: #f3ecdf; --bg2: #ebe2d1; --panel: rgba(255, 252, 245, .55); --panel-2: rgba(27, 23, 20, .06); --line: rgba(27, 23, 20, .16);
  --text: #1b1714; --muted: #7a6f66; --pink: #c8102e; --violet: #9e0c24; --cyan: #c8102e; --green: #3f7a4a; --danger: #c8102e;
  --r-commune: #8a7f73; --r-peu-commune: #3f7a4a; --r-rare: #6f645b; --r-super-rare: #c8102e; --r-ultra-rare: #c8102e; --r-secrete: #a5823e; --r-kizuna: #c8102e;
}

/* ---------- 2. Fond, texte ---------- */
#kz[data-theme] body {
  font-family: var(--gothic); color: var(--sumi); background-color: var(--washi);
  background-image: var(--grain, none), radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, .5), transparent 70%);
  background-attachment: scroll;
}
#kz[data-theme="laque"] body {
  background-image: var(--grain, none), radial-gradient(ellipse 70% 45% at 75% 0%, rgba(200, 16, 46, .10), transparent 70%), radial-gradient(ellipse 120% 80% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45));
}
#kz[data-theme] .sky { display: none; }
#kz[data-theme] ::selection { background: var(--red); color: #fff6ec; }
#kz[data-theme] h1, #kz[data-theme] h2, #kz[data-theme] h3 { font-weight: 800; letter-spacing: -.005em; }
#kz[data-theme] .muted { color: var(--ink-soft); }
#kz[data-theme] .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--gothic); font-size: 11.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--red); }
#kz[data-theme] .eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; flex: none; }

/* ---------- 3. Barre du haut ---------- */
#kz[data-theme] .topbar { background: var(--bar-bg); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); gap: 26px; padding-top: 14px; padding-bottom: 14px; }
#kz[data-theme] .logo { gap: 12px; }
#kz[data-theme] .logo-kanji, #kz[data-theme] .auth-logo .logo-kanji {
  width: 38px; height: 38px; border-radius: 5px; background: var(--red-btn); color: #fbf8f2; font-family: var(--mincho); font-weight: 800; font-size: 24px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 246, 236, .18), 0 0 0 0 transparent; transform: rotate(-3deg); animation: none;
}
#kz[data-theme="laque"] .logo-kanji { box-shadow: inset 0 0 0 1.5px rgba(255, 246, 236, .18), 0 0 18px rgba(223, 42, 64, .35); }
#kz[data-theme] .logo-text { font-family: var(--mincho); font-weight: 800; font-size: 19px; letter-spacing: .32em; color: var(--sumi); line-height: 1.05; }
#kz[data-theme] .logo-text small { display: block; font-family: var(--gothic); font-weight: 500; font-size: 8.5px; letter-spacing: .26em; color: var(--ink-soft); margin-top: 1px; }
#kz[data-theme] .auth-logo .logo-text small { display: none; }
#kz[data-theme] .nav { gap: 2px; margin-left: 10px; }
#kz[data-theme] .nav a { position: relative; border-radius: 3px; padding: 9px 14px; color: var(--ink); font-weight: 500; font-size: 14px; background: none; box-shadow: none; animation: none; }
#kz[data-theme] .nav a:hover { color: var(--sumi); background: var(--panel-2); }
#kz[data-theme] .nav a.active { color: var(--sumi); background: none; }
#kz[data-theme] .nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--red); }
#kz[data-theme] .nav-ico { display: inline-grid; place-items: center; font-size: 0; }
#kz[data-theme] .nav-ico svg { width: 17px; height: 17px; opacity: .8; }
#kz[data-theme] .nav a.active .nav-ico svg { opacity: 1; }
#kz[data-theme] .wallet { gap: 9px; }
#kz[data-theme] .pill { gap: 7px; padding: 6px 12px 6px 10px; border: 1px solid var(--rule); background: var(--panel); font-weight: 700; font-size: 13.5px; color: var(--sumi); }
#kz[data-theme] .pill-ico { display: inline-grid; place-items: center; }
#kz[data-theme] .pill-ico svg { width: 17px; height: 17px; }
#kz[data-theme] .pill:first-child .pill-ico { color: var(--red); }
#kz[data-theme] .pill.gold b { color: var(--sumi); }
#kz[data-theme] .p-topbtn:hover { border-color: var(--rule-2); }
#kz[data-theme] .theme-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--ink); background: var(--panel); transition: color .2s, border-color .2s, transform .3s; }
#kz[data-theme] .theme-btn:hover { color: var(--red); border-color: var(--rule-2); transform: rotate(-12deg); }
#kz[data-theme] .theme-btn svg { width: 18px; height: 18px; }
#kz[data-theme="laque"] .theme-btn .ico-moon, #kz[data-theme="washi"] .theme-btn .ico-sun { display: none; }
#kz[data-theme] .avatar { width: 38px; height: 38px; font-family: var(--mincho); font-weight: 700; font-size: 16px; background: var(--sumi); color: var(--washi); box-shadow: 0 0 0 2px var(--washi), 0 0 0 3px var(--red); }
#kz[data-theme] #avatar-btn[data-badge]:not([data-badge=""])::after { background: var(--red); color: #fff6ec; box-shadow: 0 0 0 2px var(--washi); }
#kz[data-theme] .menu { top: 54px; border-radius: 4px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--drop), 0 12px 30px rgba(0, 0, 0, .18); padding: 6px; }
#kz[data-theme] .menu-head { color: var(--ink-soft); font-size: 12.5px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
#kz[data-theme] .menu button { border-radius: 3px; font-size: 14px; color: var(--ink); }
#kz[data-theme] .menu button:hover { background: var(--red-soft); color: var(--sumi); }

/* ---------- 4. Mise en page, panneaux, titres ---------- */
#kz[data-theme] .panel {
  background: var(--lacquer); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--drop);
}
#kz[data-theme="washi"] .panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--drop); }
#kz[data-theme] .panel.booster:hover, #kz[data-theme] .panel.daily:hover, #kz[data-theme] .panel.featured:hover, #kz[data-theme] .trade-offer:hover, #kz[data-theme] .history-item:hover {
  border-color: var(--rule-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--drop), 0 0 0 1px var(--red-soft);
}
#kz[data-theme] .section { margin-top: 64px; }
#kz[data-theme] .section-head { margin-bottom: 24px; }
#kz[data-theme] .section-title { font-family: var(--mincho); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); gap: 16px; color: var(--sumi); }
#kz[data-theme] .section-title .jp {
  order: -1; font-family: var(--mincho); font-weight: 700; font-size: 13px; letter-spacing: .24em; color: var(--red);
  padding: 2px 0 2px 10px; border: 0; border-left: 1px solid var(--red); border-radius: 0; animation: none; box-shadow: none; line-height: 1.2;
}

/* ---------- 5. Boutons, puces ---------- */
#kz[data-theme] .btn {
  border-radius: 3px; font-family: var(--gothic); font-weight: 700; letter-spacing: .02em; color: var(--sumi);
  background: transparent; border: 1px solid var(--rule-2); box-shadow: none;
}
#kz[data-theme] .btn:hover { background: var(--panel-2); transform: translateY(-1px); }
#kz[data-theme] .btn-primary { background: var(--red-btn); border-color: var(--red-btn); color: #fff8ef; box-shadow: 0 1px 0 var(--red-deep), 0 12px 24px -12px rgba(200, 16, 46, .7); }
#kz[data-theme] .btn-primary:hover { background: #d4172f; box-shadow: 0 1px 0 var(--red-deep), 0 14px 28px -10px rgba(200, 16, 46, .75); }
#kz[data-theme] .btn-gold { background: var(--sumi); border-color: var(--sumi); color: var(--washi); box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .6); }
#kz[data-theme] .btn-gold:hover { background: var(--ink); border-color: var(--ink); }
#kz[data-theme] .btn-ghost { background: transparent; border-color: var(--rule-2); }
#kz[data-theme] .btn-danger { color: var(--danger); }
#kz[data-theme] .btn-lg { border-radius: 3px; padding: 15px 26px; font-size: 16px; }
#kz[data-theme] .btn-sm { border-radius: 3px; }
#kz[data-theme] .btn-lg.btn-primary:not(:disabled), #kz[data-theme] .btn-lg.btn-gold:not(:disabled) { animation: kz-breathe 3.6s ease-in-out infinite; }
@keyframes kz-breathe { 0%, 100% { box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 12px 24px -12px rgba(200, 16, 46, .55); } 50% { box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 14px 32px -10px rgba(200, 16, 46, .8); } }
#kz[data-theme] .btn-lg.btn-gold:not(:disabled) { animation: none; }
#kz[data-theme] .btn-primary::after, #kz[data-theme] .btn-gold::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); background-size: 250% 100%; background-position: 130% 0; }

#kz[data-theme] .chip { border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); font-weight: 500; font-size: 12.5px; }
#kz[data-theme] .filter-chip.on, #kz[data-theme] .char-pill.on { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
#kz[data-theme] .char-pill { border-radius: 999px; background: var(--panel); border-color: var(--rule); font-weight: 700; }
#kz[data-theme] .tabs { background: var(--panel-2); border-radius: 4px; }
#kz[data-theme] .tabs button { border-radius: 3px; }
#kz[data-theme] .tabs button.on { background: var(--sheet); color: var(--sumi); box-shadow: inset 0 0 0 1px var(--rule); }
#kz[data-theme] .input, #kz[data-theme] .field input, #kz[data-theme] .field select, #kz[data-theme] .field textarea { border-radius: 3px; background: var(--panel); border-color: var(--rule); color: var(--sumi); }
#kz[data-theme] .field select option { background: var(--sheet); color: var(--sumi); }
#kz[data-theme] .field input:focus, #kz[data-theme] .field select:focus, #kz[data-theme] .field textarea:focus, #kz[data-theme] .input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
#kz[data-theme] .field label { color: var(--ink-soft); }

/* ---------- 6. Jauges, anneaux ---------- */
#kz[data-theme] .bar { height: 4px; border-radius: 2px; background: var(--rule); overflow: visible; }
#kz[data-theme] .bar > i { background: var(--red); border-radius: 2px; overflow: visible; }
#kz[data-theme] .bar > i::after { display: none; }
#kz[data-theme] .bar > i:not([style*="width:0"]):not([style*="width: 0"])::before { content: ""; position: absolute; right: -4px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--sheet); }
#kz[data-theme="laque"] .bar > i { box-shadow: 0 0 8px rgba(223, 42, 64, .6); }
#kz[data-theme] .ring { background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--rule) 0); filter: none; }
#kz[data-theme] .ring::before { inset: 5px; background: var(--sheet); }
#kz[data-theme] .ring::after { border-color: var(--rule); }
#kz[data-theme] .ring b { font-family: var(--mincho); font-weight: 800; font-size: 21px; color: var(--sumi); }

/* ---------- 7. Toasts, modales ---------- */
#kz[data-theme] .toast { border-radius: 3px; background: var(--sheet); color: var(--sumi); border: 1px solid var(--rule); border-left: 3px solid var(--ink-soft); font-weight: 700; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
#kz[data-theme] .toast.good { background: var(--sheet); border-color: var(--rule); border-left-color: var(--red); }
#kz[data-theme] .toast.error { background: var(--sheet); border-color: var(--red); border-left: 3px solid var(--red); color: var(--red); }
#kz[data-theme="laque"] .modal-bg { background: rgba(8, 6, 5, .86); }
#kz[data-theme="washi"] .modal-bg { background: rgba(40, 30, 24, .55); }
#kz[data-theme] .modal, #kz[data-theme] .modal.zoom, #kz[data-theme] .modal.reward-modal { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; color: var(--sumi); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
#kz[data-theme] .modal-close { border-radius: 50%; background: var(--panel-2); color: var(--ink); border: 1px solid var(--rule); }
#kz[data-theme] .modal-close:hover { color: var(--red); }
#kz[data-theme] .detail-info h2, #kz[data-theme] .confirm h3, #kz[data-theme] .reward h2 { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .detail-info blockquote { border-left-color: var(--red); background: var(--red-soft); color: var(--ink); font-family: var(--mincho); font-style: normal; border-radius: 0 3px 3px 0; }
#kz[data-theme] .rarity-badge { border-radius: 3px; }
#kz[data-theme] .reward-row { border-radius: 3px; background: var(--panel); }
#kz[data-theme] .reward-gain { color: var(--red); }
#kz[data-theme] .ms { border-radius: 999px; background: var(--panel); color: var(--ink-soft); }
#kz[data-theme] .ms.done { color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* =====================================================================
   8. CARTES — mise en page IDENTIQUE a l'ancien site (styles.css).
   Ici on ne change QUE les matieres et les couleurs, et la pastille de
   rarete devient un sceau (meme place, meme boite). Code couleur de Louis :
   C gris sumi · R bleu indigo (aizome) · SR or · UR violet (murasaki) ·
   SEC nacre irisee (raden) · KZ vermillon.
   ===================================================================== */
#kz[data-theme] {
  --rc-c: #6e6862; --rc-r: #3a5f9e; --rc-sr: #c9a24a; --rc-ur: #7c4fc0; --rc-sec: #c7b3e6; --rc-kz: #d0182f;
  --raden: linear-gradient(120deg, #efd9ff, #9fe8dc 17%, #ffcfb2 33%, #b5ccff 50%, #f4bde3 66%, #ace9cd 83%, #efd9ff);
  --r-commune: var(--rc-c); --r-rare: var(--rc-r); --r-super-rare: var(--rc-sr); --r-ultra-rare: var(--rc-ur); --r-secrete: var(--rc-sec); --r-kizuna: var(--rc-kz);
}
/* les textes de la carte gardent la police de l'ancien site (memes largeurs, memes retours a la ligne) */
#kz[data-theme] .card { font-family: 'M PLUS Rounded 1c', 'Segoe UI', system-ui, sans-serif; color: #f7f1e8; }
#kz[data-theme] .card.r-commune { --rc: var(--rc-c); --fr: linear-gradient(145deg, #a39d96 0%, #5b5550 35%, #2c2825 65%, #8a847d 100%); }
#kz[data-theme] .card.r-rare { --rc: var(--rc-r); --fr: linear-gradient(145deg, #a9c0e6 0%, #345a9c 35%, #182a52 66%, #6f92cf 100%); }
#kz[data-theme] .card.r-super-rare { --rc: var(--rc-sr); --fr: linear-gradient(145deg, #fff3cf 0%, #dcb35a 30%, #8a6a2e 62%, #f1d9a0 100%); }
#kz[data-theme] .card.r-ultra-rare { --rc: var(--rc-ur); --fr: linear-gradient(145deg, #e4d0fa 0%, #8457c8 35%, #3b1d6b 68%, #bb94e8 100%); }
#kz[data-theme] .card.r-secrete { --rc: var(--rc-sec); --fr: var(--raden); }
#kz[data-theme] .card.r-kizuna { --rc: var(--rc-kz); }

/* le cadre (matiere) : meme boite, seule la couleur change */
#kz[data-theme] .card:not(.missing):not(.album-mystery):not(:has(> .card-back)) { background: var(--fr); box-shadow: 0 10px 28px rgba(0, 0, 0, .42); }
#kz[data-theme="washi"] .card:not(.missing):not(.album-mystery):not(:has(> .card-back)) { box-shadow: 0 10px 24px -6px rgba(60, 30, 10, .4); }
#kz[data-theme] .card.r-super-rare:not(.missing) { box-shadow: 0 10px 28px rgba(201, 162, 74, .3), 0 6px 18px rgba(0, 0, 0, .3); }
#kz[data-theme] .card.r-ultra-rare:not(.missing) { box-shadow: 0 10px 30px rgba(124, 79, 192, .42), 0 6px 18px rgba(0, 0, 0, .3); }
#kz[data-theme] .card.r-secrete:not(.missing):not(.album-mystery) { background: var(--raden) 0 0 / 300% 300%; animation: kz-raden 9s linear infinite; box-shadow: 0 10px 32px rgba(199, 179, 230, .5), 0 6px 18px rgba(0, 0, 0, .3); }
@keyframes kz-raden { to { background-position: 300% 0; } }
#kz[data-theme] .card.r-kizuna:not(.missing):not(.album-mystery) {
  background: conic-gradient(from var(--kz-a), #d0182f, #f1d9a0 12%, #7c0a1c 25%, #d0182f 40%, #fff0d6 52%, #a30d25 65%, #e9c98a 80%, #d0182f);
  box-shadow: 0 10px 34px rgba(208, 24, 47, .5), 0 0 0 1px rgba(241, 217, 160, .55);
}
/* le panneau interieur : laque sumi teintee de la rarete (au lieu du violet nuit) */
#kz[data-theme] .card:not(.missing) .card-frame { background: linear-gradient(170deg, color-mix(in srgb, var(--rc) 30%, #1a1512), #120e0d 70%); box-shadow: inset 0 0 0 .35cqw color-mix(in srgb, var(--rc) 70%, transparent); }
#kz[data-theme] .card.r-secrete:not(.missing) .card-frame { background: linear-gradient(170deg, #2a2433, #120e12 70%); box-shadow: inset 0 0 0 .35cqw rgba(230, 215, 250, .7); }
#kz[data-theme] .card.r-kizuna:not(.missing) .card-frame { background: linear-gradient(170deg, #3d0b14, #1a0709 62%, #120506); box-shadow: inset 0 0 0 .5cqw rgba(241, 217, 160, .45); }
#kz[data-theme] .card.full .card-frame { background: #0c0807; }
/* couleurs des noms (memes degrades de texte que l'ancien site, nouvelle palette) */
#kz[data-theme] .r-ultra-rare .card-name { background: linear-gradient(180deg, #f6eeff, #cfaef5 60%, #8457c8); -webkit-background-clip: text; background-clip: text; }
#kz[data-theme] .r-secrete .card-name { background: linear-gradient(90deg, #f4e9ff, #fff0dd, #d2f3e6, #d6e2ff, #f6d6ee); background-size: 100% 100%; -webkit-background-clip: text; background-clip: text; }
#kz[data-theme] .r-kizuna .card-name { background: linear-gradient(180deg, #fff3d0, #f1d9a0 55%, #ff6a7c); -webkit-background-clip: text; background-clip: text; }
#kz[data-theme] .r-kizuna .card-sub { color: #f6d3c0; }
#kz[data-theme] .card-art { background: #0c0807; }
#kz[data-theme] .card-id { background: rgba(12, 8, 7, .55); }
#kz[data-theme] .card.full .card-head { background: linear-gradient(180deg, transparent, rgba(12, 8, 7, .45)); }
#kz[data-theme] .card.full .card-info { background: linear-gradient(180deg, rgba(12, 8, 7, .45), rgba(12, 8, 7, .7)); }
#kz[data-theme] .card.full.r-ultra-rare .card-art::after { box-shadow: inset 0 0 0 .5cqw #e4d0fa, inset 0 0 0 1.1cqw rgba(59, 29, 107, .55), inset 0 0 0 1.5cqw rgba(228, 208, 250, .5); }
#kz[data-theme] .card.full.r-secrete .card-art::after { box-shadow: inset 0 0 0 .5cqw #f4e9ff, inset 0 0 0 1cqw #d2f3e6, inset 0 0 0 1.5cqw #ffe3d1, inset 0 0 4cqw rgba(214, 226, 255, .35); }
#kz[data-theme] .card.full.r-kizuna .card-art::after { box-shadow: inset 0 0 0 .5cqw #f1d9a0, inset 0 0 0 1.1cqw #a30d25, inset 0 0 0 1.5cqw rgba(241, 217, 160, .6), inset 0 0 6cqw rgba(208, 24, 47, .35); }
/* les anciens cadres peints (violet/or) sont retires ; les nouveaux viendront dans .fr-img */
#kz[data-theme] .card > .fov, #kz[data-theme] .card > .orn { display: none; }
/* Crochet pour les cadres peints de Louis (1024x1536, centre transparent) : deposer
   /frames-fr/<rarete>.webp puis activer la rarete, ex. :root { --fr-rare: block; } */
.fr-img { display: none; }
#kz[data-theme] .card > .fr-img { position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit; background: center / 100% 100% no-repeat; display: none; }
#kz[data-theme] .card.r-commune > .fr-img { display: var(--fr-commune, none); background-image: url(/frames-fr/commune.webp); }
#kz[data-theme] .card.r-rare > .fr-img { display: var(--fr-rare, none); background-image: url(/frames-fr/rare.webp); }
#kz[data-theme] .card.r-super-rare > .fr-img { display: var(--fr-super-rare, none); background-image: url(/frames-fr/super-rare.webp); }
#kz[data-theme] .card.r-ultra-rare > .fr-img { display: var(--fr-ultra-rare, none); background-image: url(/frames-fr/ultra-rare.webp); }
#kz[data-theme] .card.r-secrete > .fr-img { display: var(--fr-secrete, none); background-image: url(/frames-fr/secrete.webp); }
#kz[data-theme] .card.r-kizuna > .fr-img { display: var(--fr-kizuna, none); background-image: url(/frames-fr/kizuna.webp); }

/* la pastille de rarete devient un sceau : meme boite (9 x 6,6 cqw), meme place */
#kz[data-theme] .card .card-rar {
  position: relative; border-radius: .9cqw; color: transparent !important; -webkit-text-fill-color: transparent; transform: rotate(-3deg);
  background: var(--rc); box-shadow: inset 0 0 0 .45cqw var(--rc), inset 0 0 0 .75cqw rgba(255, 246, 236, .75), 0 .4cqw 1.2cqw rgba(0, 0, 0, .45);
}
#kz[data-theme] .card .card-rar::before { content: attr(data-hk); position: absolute; inset: 0; display: grid; place-items: center; color: #fff6ec; -webkit-text-fill-color: currentColor; font-family: 'Shippori Mincho B1', serif; font-weight: 800; font-size: 4.8cqw; line-height: 1; }
#kz[data-theme] .card.r-super-rare .card-rar::before { color: #3a2a0c; }
#kz[data-theme] .card.r-secrete .card-rar::before { color: #3d2b55; }
#kz[data-theme] .card.r-commune .card-rar { background: #2f2b28; box-shadow: inset 0 0 0 .45cqw #2f2b28, inset 0 0 0 .75cqw rgba(239, 230, 214, .6), 0 .4cqw 1.2cqw rgba(0, 0, 0, .45); }
#kz[data-theme] .card.r-super-rare .card-rar { background: linear-gradient(135deg, #fff3cf, #dcb35a 55%, #a5823e); box-shadow: inset 0 0 0 .45cqw transparent, inset 0 0 0 .75cqw rgba(58, 42, 12, .45), 0 .4cqw 1.2cqw rgba(0, 0, 0, .45); }
#kz[data-theme] .card.r-secrete .card-rar { background: var(--raden); box-shadow: inset 0 0 0 .75cqw rgba(61, 43, 85, .35), 0 0 2cqw rgba(214, 226, 255, .6); }
#kz[data-theme] .card.r-kizuna .card-rar { background: #c8102e; box-shadow: inset 0 0 0 .45cqw #c8102e, inset 0 0 0 .75cqw #f1d9a0, 0 0 2.4cqw rgba(208, 24, 47, .7); }

/* sceaux (cartes mysteres, petites marques) : meme code couleur */
#kz[data-theme] { --hk-c: #2f2b28; --hk-r: #2e4f8a; --hk-ur: #6b3fa0; --hk-kz: #c8102e; }
#kz[data-theme] .card .hk-duo { position: absolute; top: 5.6cqw; right: 5.6cqw; z-index: 7; display: flex; pointer-events: none; }
#kz[data-theme] .card .hk {
  position: absolute; top: 5.6cqw; right: 5.6cqw; z-index: 7; pointer-events: none; width: 15cqw; height: 15cqw; display: grid; place-content: center; justify-items: center; line-height: 1; transform: rotate(-4deg);
  font-family: var(--mincho); font-weight: 800; color: #fff6ec; border-radius: .8cqw; box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .25);
}
#kz[data-theme] .card .hk-duo .hk { position: relative; top: auto; right: auto; }
#kz[data-theme] .card .hk-duo .hk + .hk { margin-left: -3.6cqw; transform: rotate(6deg); }
#kz[data-theme] .card .hk b { font-size: 7.4cqw; font-weight: 800; }
#kz[data-theme] .card .hk i { font-style: normal; font-family: var(--gothic); font-weight: 700; font-size: 2.5cqw; letter-spacing: .06em; margin-top: .5cqw; }
#kz[data-theme] .hk-commune { background: var(--hk-c); }
#kz[data-theme] .hk-rare { background: var(--hk-r); border-radius: 50% !important; }
#kz[data-theme] .hk-super-rare { color: #3a2a0c !important; background: linear-gradient(135deg, #fff3cf, #dcb35a 55%, #a5823e); }
#kz[data-theme] .hk-ultra-rare { background: var(--hk-ur); }
#kz[data-theme] .hk-secrete { color: #3d2b55 !important; background: var(--raden); }
#kz[data-theme] .hk-kizuna { background: var(--hk-kz); }
#kz[data-theme] .hk-musubi { background: #1b1714; }
#kz[data-theme] .card .hk { box-shadow: inset 0 0 0 .7cqw transparent, inset 0 0 0 1.1cqw rgba(255, 246, 236, .55), 0 .4cqw 1.2cqw rgba(0, 0, 0, .3); }

/* carte manquante / prevue / jamais tiree : papier plie, fil rouge, « ? », numero et sceau */
#kz[data-theme] .card.missing, #kz[data-theme] .card.album-mystery {
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .03)), #e7dcc8 !important; border: 1px solid rgba(27, 23, 20, .2);
  box-shadow: 0 20px 30px -22px rgba(60, 25, 10, .45); --cd-ring: rgba(27, 23, 20, .18); --cd-ink: #1b1714; --cd-soft: #7a6f66; filter: none; animation: none !important;
}
#kz[data-theme="laque"] .card.missing, #kz[data-theme="laque"] .card.album-mystery {
  background: linear-gradient(180deg, #26201c, #1a1513) !important; border-color: rgba(239, 230, 214, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 22px 34px -22px rgba(0, 0, 0, .95); --cd-ring: rgba(239, 230, 214, .1); --cd-ink: #efe6d6; --cd-soft: #7f7364;
}
#kz[data-theme] .card.album-mystery::before { display: none; }
#kz[data-theme] .card.album-mystery .card-back, #kz[data-theme] .card.missing .card-frame {
  inset: 3.3cqw 3.3cqw 15.3cqw; border-radius: 1cqw; transform: none; filter: none;
  background: linear-gradient(135deg, transparent 49.6%, rgba(27, 23, 20, .10) 50%, rgba(255, 255, 255, .2) 50.4%, transparent 62%), var(--asa-ink) center / 13cqw auto, #efe6d6;
  box-shadow: 0 0 0 1px var(--cd-ring); display: grid; place-items: center; overflow: hidden;
}
#kz[data-theme="laque"] .card.album-mystery .card-back, #kz[data-theme="laque"] .card.missing .card-frame {
  background: linear-gradient(135deg, transparent 49.6%, rgba(0, 0, 0, .45) 50%, rgba(239, 230, 214, .07) 50.4%, transparent 64%), var(--asa-ink) center / 13cqw auto, #1d1715;
}
#kz[data-theme] .card.album-mystery .card-back::before, #kz[data-theme] .card.missing .card-frame::before { content: none; display: none; }
/* le fil rouge en croix */
#kz[data-theme] .card .am-string, #kz[data-theme] .card.missing .card-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--red-btn), var(--red-btn)) 50% 0 / 1.5px 100% no-repeat, linear-gradient(var(--red-btn), var(--red-btn)) 0 50% / 100% 1.5px no-repeat;
  opacity: .85;
}
#kz[data-theme="laque"] .card .am-string, #kz[data-theme="laque"] .card.missing .card-frame::after { opacity: 1; filter: drop-shadow(0 0 2px rgba(255, 46, 72, .6)); background-image: linear-gradient(#e4263f, #e4263f), linear-gradient(#e4263f, #e4263f); }
#kz[data-theme] .card.album-mystery .card-back span, #kz[data-theme] .card.missing .missing-q {
  position: relative; z-index: 1; width: 36cqw; height: 36cqw; aspect-ratio: auto; border-radius: 50%; transform: none; display: grid; place-items: center;
  font-family: var(--mincho); font-weight: 800; font-size: 25cqw; line-height: 1; color: #1b1714;
  background: rgba(243, 236, 223, .94); box-shadow: 0 0 0 1px rgba(27, 23, 20, .25), 0 0 0 2.4cqw rgba(243, 236, 223, .55);
}
#kz[data-theme="laque"] .card.album-mystery .card-back span, #kz[data-theme="laque"] .card.missing .missing-q {
  color: #efe6d6; background: rgba(17, 13, 12, .92); box-shadow: 0 0 0 1px rgba(239, 230, 214, .28), 0 0 0 2.6cqw rgba(17, 13, 12, .55);
}
#kz[data-theme] .card .am-num, #kz[data-theme] .card.missing .missing-num {
  position: absolute; z-index: 3; left: auto; right: 4.4cqw; bottom: 3.2cqw; text-align: right; margin: 0;
  font-family: var(--mincho); font-weight: 700; font-size: 5.4cqw; letter-spacing: .06em; color: var(--cd-ink); opacity: 1;
}
#kz[data-theme] .card .am-rar, #kz[data-theme] .card.missing .missing-rar {
  position: absolute; z-index: 3; left: 4.4cqw; bottom: 3.9cqw; transform: none; padding: 0; border-radius: 0; background: none; box-shadow: none; border: 0;
  font-family: var(--gothic); font-weight: 700; font-size: 3.6cqw; letter-spacing: .16em; color: var(--cd-soft); opacity: 1; text-shadow: none;
}
#kz[data-theme] .card.missing .missing-inner { display: contents; color: inherit; }
#kz[data-theme] .card.album-mystery .hk, #kz[data-theme] .card.missing .hk, #kz[data-theme] .card.album-mystery .hk-duo, #kz[data-theme] .card.missing .hk-duo { top: auto; bottom: 16.5cqw; right: 5.4cqw; }
#kz[data-theme] .card.album-mystery .hk-duo .hk, #kz[data-theme] .card.missing .hk-duo .hk { bottom: auto; right: auto; }
#kz[data-theme] .card.missing.planned { background: transparent !important; border: 1px dashed var(--rule-2); box-shadow: none; }
#kz[data-theme] .card.missing.planned .card-frame { background: repeating-linear-gradient(135deg, var(--panel-2) 0 6px, transparent 6px 12px); box-shadow: none; inset: 3.3cqw; }
#kz[data-theme] .card.missing.planned .card-frame::after { display: none; }
#kz[data-theme] .card.missing.planned .missing-inner { display: grid; gap: 2cqw; place-items: center; color: var(--ink-soft); }
#kz[data-theme] .card.missing.planned .missing-q { width: auto; height: auto; background: none; box-shadow: none; font-size: 14cqw; color: var(--red); }
#kz[data-theme] .card.missing.planned .missing-num, #kz[data-theme] .card.missing.planned .missing-rar { position: static; text-align: center; color: var(--ink-soft); }
#kz[data-theme] .card.missing.planned .planned-label { font-size: 3.6cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
@container (max-width: 96px) {
  #kz[data-theme] .card .am-rar, #kz[data-theme] .card.missing .missing-rar { display: none; }
  #kz[data-theme] .card .am-num, #kz[data-theme] .card.missing .missing-num { right: 0; left: 0; text-align: center; font-size: 9cqw; bottom: 2.6cqw; }
  #kz[data-theme] .card.album-mystery .card-back, #kz[data-theme] .card.missing .card-frame { inset: 4cqw 4cqw 17cqw; }
  #kz[data-theme] .card.album-mystery .hk, #kz[data-theme] .card.missing .hk, #kz[data-theme] .card.album-mystery .hk-duo { display: none; }
}

/* dos de carte (絆) : soie rouge, motif asanoha, sceau creme */
#kz[data-theme] .card-back {
  border-radius: 2.4cqw; background: var(--asa) center / 12cqw auto, linear-gradient(150deg, #d9213a, #c8102e 55%, #9e0c24);
  box-shadow: inset 0 0 0 2.2cqw rgba(0, 0, 0, .0), inset 0 0 0 2.6cqw rgba(233, 201, 138, .55), inset 0 0 0 3.1cqw transparent;
}
#kz[data-theme] .card-back::before { inset: 4.6cqw; border-radius: 1.4cqw; background: none; border: 1px dashed rgba(233, 201, 138, .55); }
#kz[data-theme] .card-back span {
  width: 34cqw; height: 34cqw; aspect-ratio: auto; border-radius: 1.6cqw; transform: rotate(-4deg);
  font-family: var(--mincho); font-weight: 800; font-size: 22cqw; color: var(--red-btn); background: #fbf8f2; box-shadow: inset 0 0 0 1.3cqw #fbf8f2, inset 0 0 0 1.8cqw var(--red-btn), 0 1cqw 3cqw rgba(0, 0, 0, .3);
}
#kz[data-theme] .card:not(.album-mystery):has(> .card-back) { background: #9e0c24; border-color: #7c0a1c; }
#kz[data-theme] .card:not(.album-mystery):has(> .card-back)::after { display: none; }


/* =====================================================================
   9. BOOSTER = omamori (sachet porte-bonheur en soie rouge)
   ===================================================================== */
#kz[data-theme] .pack {
  overflow: visible; border-radius: 0; box-shadow: none; color: #fbf8f2; padding: 0; aspect-ratio: 240 / 380;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d9213a'/%3E%3Cstop offset='.55' stop-color='%23c8102e'/%3E%3Cstop offset='1' stop-color='%239e0c24'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff' stop-opacity='.16'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cpattern id='a' width='24' height='41.57' patternUnits='userSpaceOnUse'%3E%3Cpath d='M12 0v13.86M0 6.93l12 6.93 12-6.93M0 20.78h24M12 13.86 0 20.78m12-6.92 24 13.86M0 6.93v27.71M24 6.93v27.71M12 27.71v13.86M0 34.64l12-6.93 12 6.93M12 27.71 0 20.78m12 6.93 12-6.93M0 6.93 12 0l12 6.93M0 34.64l12 6.93 12-6.93' fill='none' stroke='%23fff' stroke-opacity='.13' stroke-width='.9'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath d='M120 66C98 40 100 12 120 10c20 2 22 30 0 56' fill='none' stroke='%23c8102e' stroke-width='3'/%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z' fill='url(%23s)'/%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z' fill='url(%23a)'/%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z' fill='url(%23h)' fill-opacity='.7' stroke='%237c0a1c' stroke-opacity='.6' stroke-width='1.2'/%3E%3Cpath d='M40 98 70 72h100l30 26v252q0 10-10 10H50q-10 0-10-10Z' fill='none' stroke='%23e9c98a' stroke-opacity='.7' stroke-dasharray='3 3'/%3E%3Crect x='84' y='110' width='72' height='156' rx='2' fill='%23fbf8f2'/%3E%3Crect x='89' y='115' width='62' height='146' rx='1' fill='none' stroke='%23c8102e'/%3E%3Crect x='104' y='225' width='32' height='32' rx='2' fill='%23c8102e'/%3E%3Cg transform='translate(120 66)'%3E%3Cpath d='M0 0C-22-14-30 4-14 8c10 2 12-6 14-8 2 2 4 10 14 8 16-4 8-22-14-8' fill='none' stroke='%23c8102e' stroke-width='3.4' stroke-linejoin='round'/%3E%3Cpath d='M0 0C-22-14-30 4-14 8c10 2 12-6 14-8 2 2 4 10 14 8 16-4 8-22-14-8' fill='none' stroke='%23ffd0c8' stroke-opacity='.5' stroke-width='.8'/%3E%3Ccircle r='4.2' fill='%239e0c24'/%3E%3Cpath d='M-3 4C-8 18-10 26-16 34M3 4c5 14 7 22 13 30' fill='none' stroke='%23c8102e' stroke-width='2.6' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 20px 18px rgba(90, 20, 20, .3));
}
#kz[data-theme="laque"] .pack { filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .7)) drop-shadow(0 0 26px rgba(223, 42, 64, .22)); }
#kz[data-theme] .pack::before, #kz[data-theme] .pack::after, #kz[data-theme] .pack-foil, #kz[data-theme] .pack-shine { display: none; }
#kz[data-theme] .pack-logo { position: absolute; top: 31%; left: 0; right: 0; z-index: 1; font-size: 0; letter-spacing: 0; opacity: 1; text-align: center; color: #1b1714; font-family: var(--mincho); font-weight: 800; line-height: 1; }
#kz[data-theme] .pack-logo::before { content: "絆"; display: block; font-size: 15cqw; }
#kz[data-theme] .pack-logo::after { content: "御\A守"; display: block; white-space: pre; font-size: 9cqw; font-weight: 700; line-height: 1.2; margin-top: 3cqw; }
#kz[data-theme] .pack-emblem {
  position: absolute; z-index: 1; left: 50%; top: 59.2%; width: 13.5cqw; height: 13.5cqw; margin: 0 0 0 -6.75cqw; aspect-ratio: auto; border-radius: 1cqw;
  background: none; box-shadow: none; font-size: 8cqw; line-height: 1; display: grid; place-items: center; overflow: hidden;
  filter: brightness(0) invert(1); opacity: .95;
}
#kz[data-theme] .pack-name {
  position: absolute; z-index: 1; left: 15%; right: 15%; top: 73%; padding: 0; text-align: center;
  font-family: var(--mincho); font-weight: 700; font-size: 7.4cqw; line-height: 1.12; color: #fbf3e6; text-shadow: 0 1px 2px rgba(80, 0, 10, .45);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#kz[data-theme] .pack-count { bottom: 6.5%; left: 0; right: 0; text-align: center; background: none; padding: 0; font-family: var(--gothic); font-weight: 700; font-size: 3.8cqw; letter-spacing: .26em; color: rgba(251, 243, 230, .72); }
#kz[data-theme] .featured .pack, #kz[data-theme] .boosters .booster .pack { animation: kz-float 6s ease-in-out infinite; }
@keyframes kz-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
#kz[data-theme] .booster:hover .pack { transform: none; animation-play-state: paused; }

/* =====================================================================
   10. ACCUEIL
   ===================================================================== */
#kz[data-theme] .hello { align-items: flex-end; }
#kz[data-theme] .hello-jp { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mincho); font-weight: 700; font-size: 13px; letter-spacing: .22em; color: var(--red); margin-bottom: 10px; }
#kz[data-theme] .hello-jp::before { content: ""; width: 26px; height: 1px; background: currentColor; }
#kz[data-theme] .hello h1 { font-family: var(--mincho); font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.02em; color: var(--sumi); }
#kz[data-theme] .hello h1 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); -webkit-text-fill-color: var(--red); animation: none; }
#kz[data-theme] .home-grid { gap: 22px; margin-top: 34px; }
#kz[data-theme] .featured {
  gap: 34px; padding: 30px 34px; overflow: visible;
  background: radial-gradient(240px 240px at 112px 50%, var(--red-soft), transparent 70%), var(--lacquer);
}
#kz[data-theme] .featured::after { display: none; }
#kz[data-theme] .featured .pack { width: 168px; }
#kz[data-theme] .featured h2 { font-family: var(--mincho); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; margin: 12px 0 8px; color: var(--sumi); }
#kz[data-theme] .featured .muted { color: var(--ink); font-family: var(--mincho); font-size: 16px; }
#kz[data-theme] .free-row { margin: 20px 0 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
#kz[data-theme] .ticket { width: 30px; height: 40px; border-radius: 3px; border: 1px dashed var(--rule-2); font-size: 0; }
#kz[data-theme] .ticket.full { border: 0; background: var(--red-btn); box-shadow: 0 6px 12px -6px rgba(200, 16, 46, .7); }
#kz[data-theme] .ticket.full::after { content: "券"; font-family: var(--mincho); font-weight: 800; font-size: 16px; color: #fff6ec; }
#kz[data-theme] .timer { color: var(--ink-soft); font-weight: 500; }
#kz[data-theme] .daily { gap: 18px; }
#kz[data-theme] .daily h3, #kz[data-theme] .history-item b { font-family: var(--mincho); font-weight: 800; font-size: 20px; }
#kz[data-theme] .daily-ico {
  width: 56px; height: 56px; border-radius: 50%; font-size: 0; background: transparent; border: 2px solid var(--red); color: var(--red);
  transform: rotate(-10deg); animation: none;
}
#kz[data-theme] .daily-ico::after { content: "済"; font-family: var(--mincho); font-weight: 800; font-size: 24px; }
#kz[data-theme] .daily:has(.btn:not([disabled])) .daily-ico { background: var(--red-btn); border-color: var(--red-btn); color: #fff6ec; animation: gift-wiggle 3.2s ease-in-out infinite; }
#kz[data-theme] .daily:has(.btn:not([disabled])) .daily-ico::after { content: "贈"; }
#kz[data-theme] .stats { gap: 0; }
#kz[data-theme] .stat { text-align: left; padding: 2px 16px; border-radius: 0; background: none; border-left: 1px solid var(--rule); }
#kz[data-theme] .stat:first-child { border-left: 0; padding-left: 0; }
#kz[data-theme] .stat:hover { background: none; }
#kz[data-theme] .stat::before { display: block; font-family: var(--mincho); font-weight: 700; color: var(--red); font-size: 13px; letter-spacing: .2em; }
#kz[data-theme] .stat:nth-child(1)::before { content: "蒐"; }
#kz[data-theme] .stat:nth-child(2)::before { content: "開"; }
#kz[data-theme] .stat:nth-child(3)::before { content: "引"; }
#kz[data-theme] .stat b { font-family: var(--mincho); font-weight: 800; font-size: 40px; line-height: 1.05; margin: 6px 0 2px; letter-spacing: -.02em; color: var(--sumi); }
#kz[data-theme] .stat span { font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }
#kz[data-theme] .side-stack .panel .row { font-weight: 700 !important; color: var(--ink); }

/* Spotlight du jour */
#kz[data-theme] .spot-head { margin-bottom: 18px; }
#kz[data-theme] .spot-head h2 { font-family: var(--mincho); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); color: var(--sumi); }
#kz[data-theme] .spot-head h2 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); -webkit-text-fill-color: var(--red); animation: none; }
#kz[data-theme] .spot-stage {
  border-radius: 4px; box-shadow: inset 0 0 0 1px var(--rule), var(--drop);
  background: radial-gradient(55% 60% at 50% 100%, var(--red-soft), transparent 70%), var(--asa-ink) center / 40px auto, var(--lacquer);
}
#kz[data-theme] .spot-beam { background: conic-gradient(from 180deg at 50% 0%, transparent 165deg, rgba(223, 42, 64, .12) 176deg, rgba(255, 240, 225, .10) 180deg, rgba(223, 42, 64, .12) 184deg, transparent 195deg); }
#kz[data-theme="washi"] .spot-beam { background: conic-gradient(from 180deg at 50% 0%, transparent 165deg, rgba(200, 16, 46, .07) 176deg, rgba(255, 255, 255, .5) 180deg, rgba(200, 16, 46, .07) 184deg, transparent 195deg); }
#kz[data-theme] .spot-sparks i { width: 3px; height: 3px; background: var(--red); box-shadow: 0 0 6px 1px var(--red-glow); }
#kz[data-theme] .spot-aura { background: radial-gradient(closest-side, var(--red-glow), transparent); filter: blur(18px); opacity: .7; animation: none; }
#kz[data-theme] .spot-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); }
#kz[data-theme="laque"] .spot-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); }
#kz[data-theme] .spot-slot { gap: 14px; }
#kz[data-theme] .spot-float { padding-top: 10px; }
#kz[data-theme] .spot-label { color: var(--ink); }
#kz[data-theme] .spot-label b { font-family: var(--mincho); font-weight: 800; font-size: 17px; color: var(--sumi); }
#kz[data-theme] .spot-label small { color: var(--ink-soft); font-weight: 500; }
#kz[data-theme] .spot-slot.mid .spot-label { color: var(--ink); }
#kz[data-theme] .spot-rar { border-radius: 2px; background: none; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); font-weight: 700; letter-spacing: .06em; }
#kz[data-theme] .spot-slot.mid .spot-rar { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
#kz[data-theme] .feat-own { border-radius: 2px; background: var(--sumi); color: var(--washi); font-weight: 700; letter-spacing: .06em; }

/* Collections (vignettes) */
#kz[data-theme] .col-tile {
  border-radius: 4px; border: 1px solid var(--rule); color: var(--sumi);
  background: radial-gradient(160px 120px at 100% 40%, color-mix(in srgb, var(--cc) 16%, transparent), transparent 70%), var(--lacquer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--drop);
}
#kz[data-theme] .col-tile::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--red); border-radius: 0 2px 2px 0; }
#kz[data-theme] .col-tile::after { background: radial-gradient(400px 200px at var(--mx, 50%) 0%, var(--red-soft), transparent 70%); }
#kz[data-theme] .col-tile h3 { font-family: var(--mincho); font-weight: 800; text-shadow: none; color: var(--sumi); }
#kz[data-theme] .col-tile .row { font-weight: 500; color: var(--ink-soft); }
#kz[data-theme] .col-tile .row span:last-child { font-family: var(--mincho); font-weight: 800; color: var(--sumi); }
#kz[data-theme] .col-tile .bar > i { background: var(--red); }
#kz[data-theme] .col-done { color: var(--red) !important; animation: none; }
#kz[data-theme] .col-fan .card { box-shadow: var(--cd-shadow); }
#kz[data-theme] .rail::-webkit-scrollbar-thumb { background: var(--rule-2); }

/* Derniers tirages, vide */
#kz[data-theme] .history-item .muted { font-size: 12.5px; }
#kz[data-theme] .empty { color: var(--ink-soft); }
#kz[data-theme] .empty b { font-family: var(--mincho); font-weight: 800; font-size: 20px; color: var(--sumi); }

/* Autour de Kizuna : la frise est un fil rouge */
#kz[data-theme] .feed::before { width: 1.5px; left: 8px; background: var(--red); opacity: .9; }
#kz[data-theme="laque"] .feed::before { box-shadow: 0 0 6px rgba(223, 42, 64, .6); }
#kz[data-theme] .feed-item { border-radius: 4px; background: var(--lacquer); box-shadow: inset 0 0 0 1px var(--rule), var(--drop); padding: 12px 16px; }
#kz[data-theme] .feed-item::before { background: var(--washi); box-shadow: 0 0 0 2px var(--red); width: 8px; height: 8px; margin-top: -4px; left: -18px; }
#kz[data-theme] .feed-text { font-size: 14.5px; color: var(--ink); }
#kz[data-theme] .feed-text a b { color: var(--sumi); }
#kz[data-theme] .feed-text b[style] { color: var(--red) !important; font-family: var(--mincho); }
#kz[data-theme] .feed-text small { font-weight: 500; color: var(--ink-soft); }
#kz[data-theme] .feed-ico { border-radius: 50%; background: none; border: 1.5px solid var(--red); color: var(--red); font-size: 20px; transform: rotate(-8deg); }

/* =====================================================================
   11. Mobile : barre de navigation en bas
   ===================================================================== */
@media (max-width: 760px) {
  #kz[data-theme] .topbar { gap: 10px; padding: 10px 14px; backdrop-filter: none; background: var(--washi); }
  #kz[data-theme] .logo-kanji { width: 34px; height: 34px; font-size: 21px; }
  #kz[data-theme] .wallet { gap: 6px; }
  #kz[data-theme] .pill { padding: 5px 9px 5px 8px; font-size: 12.5px; gap: 5px; }
  #kz[data-theme] .pill-ico svg { width: 15px; height: 15px; }
  #kz[data-theme] .theme-btn { width: 32px; height: 32px; }
  #kz[data-theme] .avatar { width: 32px; height: 32px; font-size: 14px; }
  #kz[data-theme] .nav { margin: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); gap: 0; background: var(--bar-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .5); }
  #kz[data-theme="washi"] .nav { background: rgba(250, 246, 238, .96); }
  #kz[data-theme="laque"] .nav { background: rgba(17, 13, 12, .96); }
  #kz[data-theme] .nav a { flex: 1; justify-content: center; padding: 8px 2px 9px; font-size: 11px; gap: 3px; }
  #kz[data-theme] .nav a.active::after { left: 32%; right: 32%; bottom: auto; top: -4px; }
  #kz[data-theme] .nav-ico svg { width: 20px; height: 20px; }
  #kz[data-theme] .section { margin-top: 48px; }
  #kz[data-theme] .featured { padding: 26px 18px 22px; gap: 20px; }
  #kz[data-theme] .featured .pack { width: 150px; }
  #kz[data-theme] .featured .eyebrow { justify-content: center; }
  #kz[data-theme] .stat { padding: 2px 10px; }
  #kz[data-theme] .stat b { font-size: 30px; }
  #kz[data-theme] .stat span { font-size: 11.5px; }
  #kz[data-theme] .daily h3 { font-size: 18px; }
  #kz[data-theme] .spot-label b { font-size: 13px; }
  #kz[data-theme] .card > .knot { top: -6.4cqw; }
}

/* =====================================================================
   12. Pages pas encore redessinees (phase 2) : rester lisibles
   ===================================================================== */
#kz[data-theme] .col-banner { border-radius: 4px; border-color: var(--rule); color: var(--sumi); background: radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--cc) 18%, transparent), transparent 70%), var(--lacquer); }
#kz[data-theme] .col-banner h1 { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .char-head { border-radius: 4px; background: var(--lacquer); border-color: var(--rule); }
#kz[data-theme] .char-title h3 { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .char-av { box-shadow: 0 0 0 1.5px var(--washi), 0 0 0 2.5px var(--rule-2); }
#kz[data-theme] .back-link { color: var(--ink-soft); }
#kz[data-theme] .back-link:hover { color: var(--red); }
#kz[data-theme] .booster::before { background: radial-gradient(260px 200px at 0% 50%, var(--red-soft), transparent 70%); }
#kz[data-theme] .booster h3 { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .booster-meta { color: var(--ink-soft); font-weight: 500; }
#kz[data-theme] .odds { border-radius: 3px; background: var(--panel-2); }
#kz[data-theme] .item { border-radius: 3px; background: var(--panel); }
#kz[data-theme] .item.sel { border-color: var(--red); }
#kz[data-theme] .check-list label { border-radius: 3px; background: var(--panel); }
#kz[data-theme] .import-actions { background: var(--sheet); border-radius: 4px; }
#kz[data-theme] .admin-note { border-radius: 3px; background: var(--red-soft); border-color: var(--rule); color: var(--ink); }
#kz[data-theme] .auth-hero h1 { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .auth-hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); -webkit-text-fill-color: var(--red); }
#kz[data-theme] .auth-perks span b { color: var(--sumi); }

@media (prefers-reduced-motion: reduce) {
  #kz[data-theme] .featured .pack, #kz[data-theme] .boosters .booster .pack, #kz[data-theme] .btn-lg, #kz[data-theme] .daily-ico { animation: none !important; }
}

/* carte manquante : la face pliee est dessinee par le cadre (::before), le fil par ::after,
   pour que le numero et la rarete restent dans le pied, sous la face */
#kz[data-theme] .card.missing:not(.planned) .card-frame { inset: 3.3cqw 3.3cqw 0; display: block; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
#kz[data-theme] .card.missing:not(.planned) .card-frame::before {
  content: ""; display: block; position: absolute; inset: 0 0 12cqw; border-radius: 1cqw; box-shadow: 0 0 0 1px var(--cd-ring);
  background: linear-gradient(135deg, transparent 49.6%, rgba(27, 23, 20, .10) 50%, rgba(255, 255, 255, .2) 50.4%, transparent 62%), var(--asa-ink) center / 13cqw auto, #efe6d6;
}
#kz[data-theme="laque"] .card.missing:not(.planned) .card-frame::before {
  background: linear-gradient(135deg, transparent 49.6%, rgba(0, 0, 0, .45) 50%, rgba(239, 230, 214, .07) 50.4%, transparent 64%), var(--asa-ink) center / 13cqw auto, #1d1715;
}
#kz[data-theme] .card.missing:not(.planned) .card-frame::after { inset: 0 0 12cqw; border-radius: 1cqw; }
#kz[data-theme] .card.missing:not(.planned) .missing-q { position: absolute; left: 50%; top: calc((100% - 12cqw) / 2); transform: translate(-50%, -50%); }
#kz[data-theme] .card.missing:not(.planned) .missing-num { right: 1.1cqw; bottom: 3.2cqw; }
#kz[data-theme] .card.missing:not(.planned) .missing-rar { left: 1.1cqw; bottom: 3.9cqw; }
/* une carte jamais tiree ne trahit pas son cadre : seul le sceau dit la rarete */
#kz[data-theme] .card.missing, #kz[data-theme] .card.album-mystery { border-color: rgba(27, 23, 20, .2); }
#kz[data-theme="laque"] .card.missing, #kz[data-theme="laque"] .card.album-mystery { border-color: rgba(239, 230, 214, .12); }
#kz[data-theme] .card.missing::after, #kz[data-theme] .card.album-mystery::after { inset: 0; width: auto; border-radius: inherit; background: none; box-shadow: none; outline: 1px solid transparent; }
#kz[data-theme] .card.missing > .knot { display: none; }

/* filtres de rarete : le sceau au lieu de la pastille de couleur */
#kz[data-theme] .chip.dot[data-k]::before { width: auto; height: auto; border-radius: 0; background: none; font-family: var(--mincho); font-weight: 800; font-size: 13px; line-height: 1; color: var(--red); }
#kz[data-theme] .chip.dot[data-k].on::before { color: inherit; }
#kz[data-theme] .chip.dot[data-k=commune]::before { content: '常'; }
#kz[data-theme] .chip.dot[data-k=rare]::before { content: '稀'; }
#kz[data-theme] .chip.dot[data-k=super-rare]::before { content: '珍'; }
#kz[data-theme] .chip.dot[data-k=ultra-rare]::before { content: '極'; }
#kz[data-theme] .chip.dot[data-k=secrete]::before { content: '秘'; color: var(--gold); }
#kz[data-theme] .chip.dot[data-k=kizuna]::before { content: '絆'; }
#kz[data-theme] .chip.dot:not([data-k])::before { background: var(--red); }
#kz[data-theme] .ico-tk { width: 1.2em; height: 1.2em; flex: none; }
#kz[data-theme] .eyebrow .jp-k { font-family: var(--mincho); font-weight: 700; font-size: 14px; letter-spacing: .1em; }

/* ---------- le fil rouge de l'accueil (trace par app.js) ---------- */
.red-thread { display: none; }
#kz[data-theme] .page.has-thread { position: relative; z-index: 0; }
#kz[data-theme] .red-thread { display: block; position: absolute; left: -30px; top: 0; width: calc(100% + 60px); z-index: -1; pointer-events: none; overflow: visible; }
#kz[data-theme] .red-thread path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#kz[data-theme] .red-thread .t-shadow { stroke: rgba(80, 10, 20, .16); stroke-width: 3.2; transform: translate(1px, 2px); }
#kz[data-theme] .red-thread .t-main { stroke: var(--red); stroke-width: 1.8; }
#kz[data-theme] .red-thread .t-hi { stroke: rgba(255, 190, 190, .5); stroke-width: .6; }
#kz[data-theme="laque"] .red-thread .t-shadow { stroke: rgba(255, 46, 72, .2); stroke-width: 7; transform: none; }
#kz[data-theme="laque"] .red-thread .t-main { stroke: #e4263f; }
#kz[data-theme] .red-thread.draw path { transition: stroke-dashoffset 1.4s cubic-bezier(.6, .05, .3, 1); }

/* ---------- 13. Lisibilite des pages de phase 2 (album, profil, echanges) ---------- */
#kz[data-theme] .album-head { background: radial-gradient(90% 140% at 0% 0%, var(--red-soft), transparent 55%), var(--lacquer); }
#kz[data-theme] .album-title h1, #kz[data-theme] .p-id h1, #kz[data-theme] .p-stats b { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .album-rar { background: var(--panel); border-radius: 999px; }
#kz[data-theme] .album-rar span { color: var(--red) !important; font-family: var(--mincho); }
#kz[data-theme] .album-rar .bar > i { background: var(--red); }
#kz[data-theme] .album-tab { background: var(--panel); color: var(--ink); }
#kz[data-theme] .album-tab:hover { background: var(--panel-2); color: var(--sumi); }
#kz[data-theme] .album-tab.on { color: var(--sumi); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
#kz[data-theme] .album-tab.done small { color: var(--red); }
#kz[data-theme] .album-theme { background: var(--panel); color: var(--sumi); border-color: var(--rule); }
#kz[data-theme] .album-theme option, #kz[data-theme] .tier-sel option { background: var(--sheet); color: var(--sumi); }
#kz[data-theme] .album-arrow { background: var(--red-btn); color: #fff6ec; box-shadow: 0 10px 20px -10px rgba(200, 16, 46, .7); }
/* le classeur : couverture laquee, pages de papier */
#kz[data-theme] .album-book { border-radius: 6px; background: linear-gradient(180deg, #2a201c, #17110f); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
#kz[data-theme] .album-book::before { border-radius: 4px; border-color: rgba(201, 163, 90, .35); }
#kz[data-theme] .album-spine i { background: linear-gradient(180deg, #f3d9a0, #a5823e 55%, #6a4f1c); }
#kz[data-theme] .album-sheet { border-radius: 3px; color: var(--sumi); background: var(--asa-ink) center / 30px auto, var(--sheet); }
#kz[data-theme="laque"] .album-sheet { background: var(--asa-ink) center / 30px auto, #1d1715; }
#kz[data-theme] .album-sheet-head { border-bottom-color: var(--rule); }
#kz[data-theme] .album-sheet-head b { font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .album-emb { border-radius: 50%; background: var(--panel-2); box-shadow: none; }
#kz[data-theme] .album-sheet-prog { color: var(--red); background: var(--red-soft); }
#kz[data-theme] .album-pocket { border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--rule); }
#kz[data-theme] .album-pocket.empty { background: var(--panel-2); }
/* profil */
#kz[data-theme] .p-banner, #kz[data-theme] .p-banner.ban-secret, #kz[data-theme] .p-banner.ban-kizuna { border-radius: 4px; border-color: var(--rule); color: var(--sumi); background: radial-gradient(70% 140% at 0% 0%, var(--red-soft), transparent 60%), var(--lacquer); }
#kz[data-theme] .p-banner.ban-serie { background: linear-gradient(135deg, color-mix(in srgb, var(--fc1) 22%, transparent), color-mix(in srgb, var(--fc2) 8%, transparent) 70%, transparent), var(--lacquer); }
#kz[data-theme] .p-title { color: var(--red); }
#kz[data-theme] .p-stats > div { border-radius: 4px; background: var(--lacquer); border-color: var(--rule); }
#kz[data-theme] .p-case { border-radius: 6px; border-color: rgba(201, 163, 90, .45);
  background: radial-gradient(110% 60% at 50% -8%, rgba(255, 214, 150, .14), transparent 62%), radial-gradient(90% 60% at 50% 115%, rgba(200, 16, 46, .16), transparent 70%), linear-gradient(180deg, #221a17, #120d0c 60%, #0b0807);
  box-shadow: inset 0 0 0 7px #17110f, inset 0 0 0 8px rgba(201, 163, 90, .25), inset 0 40px 70px rgba(0, 0, 0, .55), 0 24px 50px -20px rgba(0, 0, 0, .6); }
#kz[data-theme] .vt-plinth { background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 35%, rgba(0, 0, 0, .3)), linear-gradient(90deg, #2a1f1b, #3d2e27 50%, #2a1f1b); }
#kz[data-theme] .pe-pick { background: var(--sheet); }
/* echanges */
#kz[data-theme] .tr-cols section { border-radius: 4px; background: var(--panel); }
#kz[data-theme] .tr-status { border-radius: 2px; background: var(--panel-2); color: var(--ink-soft); }
#kz[data-theme] .tr-status.ok { color: var(--red); background: var(--red-soft); }
#kz[data-theme] .tr-arrow { color: var(--red); }
#kz[data-theme] .tr-pick .tr-n, #kz[data-theme] .tr-last { border-radius: 2px; }
#kz[data-theme] .modal.trade-modal, #kz[data-theme] .modal:has(.confirm) { background: var(--sheet); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--rule); }
#kz[data-theme] .p-player { border-radius: 4px; }

/* =====================================================================
   PHASE 2 — boosters, ouverture, collections, album, profils, echanges,
   connexion / avertissement. (phase 2, 24/11/2026)
   ===================================================================== */

/* ---------- icones et petits sceaux communs ---------- */
#kz[data-theme] .ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
#kz[data-theme] .btn .ico, #kz[data-theme] .chip .ico, #kz[data-theme] .menu .ico { vertical-align: -.22em; }
#kz[data-theme] .menu button { display: flex; align-items: center; gap: 10px; }
#kz[data-theme] .menu-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; background: var(--red-btn); color: #fff6ec; }
#kz[data-theme] .kmark {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: .5em; flex: none; vertical-align: -.35em;
  font-family: var(--mincho); font-weight: 800; font-size: .82em; line-height: 1; letter-spacing: 0; color: var(--red);
  border: 1.5px solid currentColor; border-radius: 3px; transform: rotate(-4deg); background: var(--sheet);
}
#kz[data-theme] .chip .kmark { width: 1.75em; height: 1.75em; margin: -2px .4em -2px -6px; font-size: .78em; }
#kz[data-theme] .hk-mini {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .5em; flex: none; vertical-align: -.35em; transform: rotate(-4deg);
  font-family: var(--mincho); font-weight: 800; font-style: normal; font-size: .82em; line-height: 1; color: #fff6ec; border-radius: 2px;
}
#kz[data-theme] .hk-mini.hk-rare { border-radius: 50%; }
#kz[data-theme] .done-mark { color: var(--red); font-family: var(--mincho); }

/* ---------- l'omamori, teinte de la couleur de sa serie ---------- */
#kz[data-theme] .pack { background: none; }
#kz[data-theme] .pack::before, #kz[data-theme] .pack::after { content: ""; display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; height: auto; }
#kz[data-theme] .pack::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  background:
    var(--brocade, var(--asa)) 0 0 / var(--bsize, 20cqw auto),
    linear-gradient(150deg, color-mix(in oklab, var(--pc) 80%, #fff 20%), var(--pc) 48%, color-mix(in oklab, var(--pc) 62%, #000));
}
#kz[data-theme] .pack::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='h' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23fff' stop-opacity='.18'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3ClinearGradient id='v' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.08'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.22'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z' fill='url(%23v)'/%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z' fill='url(%23h)' fill-opacity='.7' stroke='%23000' stroke-opacity='.3' stroke-width='1.2'/%3E%3Cpath d='M40 98 70 72h100l30 26v252q0 10-10 10H50q-10 0-10-10Z' fill='none' stroke='%23e9c98a' stroke-opacity='.75' stroke-dasharray='3 3'/%3E%3Crect x='84' y='110' width='72' height='156' rx='2' fill='%23fbf8f2'/%3E%3Crect x='89' y='115' width='62' height='146' rx='1' fill='none' stroke='%23c8102e'/%3E%3Crect x='104' y='225' width='32' height='32' rx='2' fill='%23c8102e'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#kz[data-theme] .pack .om-knot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
#kz[data-theme] .pack .om-knot g { transform-box: view-box; transform-origin: 120px 66px; transition: transform .12s; }
#kz[data-theme] .pack-seal {
  position: absolute; z-index: 2; left: 50%; top: 59.2%; width: 13.5cqw; height: 13.5cqw; margin-left: -6.75cqw; display: grid; place-items: center;
  font-family: var(--mincho); font-weight: 800; font-size: 8.6cqw; line-height: 1; color: #fbf3e6; letter-spacing: -.04em;
}
#kz[data-theme] .pack-emblem { display: none; }
#kz[data-theme] .pack-name { color: #fbf3e6; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
/* pendant qu'on tire sur le cordon, le noeud se relache */
#kz[data-theme] .stage .om-bow { transform: scale(calc(1 + var(--pull, 0) * .45)) rotate(calc(var(--pull, 0) * -12deg)); }
#kz[data-theme] .stage .om-loop { transform: translateY(calc(var(--pull, 0) * -14px)) scaleY(calc(1 + var(--pull, 0) * .25)); }
/* denoue : le noeud s'ouvre, le cordon s'envole, le sachet descend */
#kz[data-theme] .stage.untie .om-loop { animation: om-loop .8s cubic-bezier(.3, .7, .2, 1) forwards; }
#kz[data-theme] .stage.untie .om-bow { animation: om-bow .9s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes om-loop { 0% { transform: translateY(-14px) scaleY(1.25); } 100% { transform: translateY(-150px) rotate(38deg) scaleY(1.6); opacity: 0; } }
@keyframes om-bow { 0% { transform: scale(1.45) rotate(-12deg); } 35% { transform: scale(2.1) rotate(-24deg); opacity: 1; } 100% { transform: translate(60px, -120px) scale(1.4) rotate(-80deg); opacity: 0; } }

/* ---------- 1. page Boosters ---------- */
#kz[data-theme] .boosters { grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 22px; }
#kz[data-theme] .booster { grid-template-columns: 158px 1fr; gap: 22px; padding: 24px 22px 22px; align-items: start; overflow: visible;
  background: radial-gradient(220px 220px at 76px 50%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 70%), var(--lacquer); }
#kz[data-theme] .booster::before { display: none; }
#kz[data-theme] .booster::after { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px; background: var(--red); border-radius: 0 2px 2px 0; }
#kz[data-theme] .booster .pack { width: 150px; justify-self: center; margin-top: 22px; }
#kz[data-theme] .booster h3 { font-size: 24px; line-height: 1.08; color: var(--sumi); }
#kz[data-theme] .booster-info { gap: 12px; }
#kz[data-theme] .booster-info > .muted { font-family: var(--mincho); font-size: 15px; color: var(--ink); margin-top: -4px !important; }
#kz[data-theme] .booster-meta { display: grid; gap: 4px; font-size: 12.5px; padding-top: 10px; border-top: 1px solid var(--rule); }
#kz[data-theme] .booster-meta > span { display: flex; align-items: center; }
#kz[data-theme] .booster-meta > span:first-child { font-family: var(--mincho); font-weight: 700; font-size: 14px; color: var(--sumi); }
#kz[data-theme] .booster-actions { gap: 8px; }
#kz[data-theme] .odds { gap: 6px 16px; padding: 12px 14px; border-radius: 3px; background: var(--panel-2); font-size: 12.5px; border: 1px solid var(--rule); }
#kz[data-theme] .odds .muted { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
#kz[data-theme] .odds span:nth-child(odd) { gap: 0; }
#kz[data-theme] .odds i { width: auto; height: auto; border-radius: 2px; }
#kz[data-theme] .odds i.hk-commune { border-radius: 50%; }
#kz[data-theme] .odds span:not(.muted):nth-child(3n+2), #kz[data-theme] .odds span:not(.muted):nth-child(3n) { font-family: var(--mincho); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
#kz[data-theme] .bo-tickets { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
#kz[data-theme] .bo-tickets .ico-tk { color: var(--red); }
#kz[data-theme] .boosters .booster:hover .pack { transform: translateY(-4px) rotate(-2deg); }

/* ---------- 2. ouverture d'un booster ---------- */
#kz[data-theme="laque"] .opening { background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--pc) 18%, #241412) 0%, #0b0807 72%); color: #efe6d6; }
#kz[data-theme="washi"] .opening { background: var(--grain, none), radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--pc) 10%, #fbf6ec) 0%, #efe6d6 74%); color: #1b1714; }
#kz[data-theme] .opening::before { background: repeating-conic-gradient(from 0deg, rgba(223, 42, 64, .05) 0 4deg, transparent 4deg 14deg); }
#kz[data-theme] .op-glow { background: radial-gradient(40% 36% at 50% 52%, rgba(200, 16, 46, .26), transparent 70%), radial-gradient(28% 24% at 50% 55%, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%); }
#kz[data-theme="washi"] .op-glow { background: radial-gradient(40% 36% at 50% 52%, rgba(200, 16, 46, .14), transparent 70%); }
#kz[data-theme] .op-motes i { background: #e4263f; box-shadow: 0 0 8px rgba(228, 38, 63, .8); opacity: .55; }
#kz[data-theme="washi"] .op-motes i { background: #c8102e; box-shadow: none; opacity: .35; }
#kz[data-theme] .op-dark { background: #0b0605; }
#kz[data-theme] .opening-counter { font-family: var(--mincho); font-weight: 700; color: currentColor; opacity: .8; letter-spacing: .12em; }
#kz[data-theme] .opening-hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: currentColor; opacity: .82; font-weight: 500; letter-spacing: .06em; }
#kz[data-theme] .opening-hint .ico { color: var(--red); width: 1.4em; height: 1.4em; }
#kz[data-theme] .opening-close { color: currentColor; border-color: currentColor; opacity: .75; }
#kz[data-theme] .op-shock { border: 1.5px solid #e4263f; }
#kz[data-theme] .tear-line { top: 17.4%; left: 26%; right: 26%; border-top: 1.5px dashed rgba(228, 38, 63, .7); }
#kz[data-theme] .tear-progress { top: 17%; height: 3px; background: linear-gradient(90deg, #fbf3e6, #e4263f); box-shadow: 0 0 12px #e4263f, 0 0 26px rgba(228, 38, 63, .6); }
#kz[data-theme] .op-spark { width: 6px; height: 2px; border-radius: 2px; background: #ffd9a0; box-shadow: 0 0 6px #e4263f, 0 0 14px rgba(228, 38, 63, .7); }
#kz[data-theme] .flash { background: #fff6ec; }
/* l'aura du sachet trahit (un peu) la plus belle carte */
#kz[data-theme] .op-drop.aura-sr .pack { filter: drop-shadow(0 0 16px rgba(223, 42, 64, .5)); }
#kz[data-theme] .op-drop.aura-ur .pack { animation: pack-float 3s ease-in-out infinite, kz-aura-ur 1.8s ease-in-out infinite; }
#kz[data-theme] .op-drop.aura-sec .pack { animation: pack-float 3s ease-in-out infinite, kz-aura-sec 2.4s ease-in-out infinite; }
#kz[data-theme] .op-drop.torn .pack { animation: none; }
@keyframes kz-aura-ur { 0%, 100% { filter: drop-shadow(0 0 14px rgba(223, 42, 64, .55)); } 50% { filter: drop-shadow(0 0 36px rgba(255, 60, 80, .95)); } }
@keyframes kz-aura-sec { 0%, 100% { filter: drop-shadow(0 0 18px rgba(201, 163, 90, .6)); } 50% { filter: drop-shadow(0 0 42px rgba(241, 217, 160, .95)) drop-shadow(0 0 8px #fff3d0); } }
/* l'eventail face cachee */
#kz[data-theme] .sp-card.h-sr:not(.done) .sp-back { filter: drop-shadow(0 0 10px rgba(223, 42, 64, .6)); animation: none; }
#kz[data-theme] .sp-card.h-ur:not(.done) .sp-back { animation: kz-aura-ur 1.6s ease-in-out infinite; }
#kz[data-theme] .sp-card.h-sec:not(.done) .sp-back { animation: kz-aura-sec 2.2s ease-in-out infinite; }
#kz[data-theme] .sp-new { border-radius: 2px; background: var(--red-btn); color: #fff6ec; letter-spacing: .12em; }
/* la revelation */
#kz[data-theme] .f-label { display: flex; align-items: center; justify-content: center; font-family: var(--mincho); font-weight: 800; letter-spacing: .16em; font-size: 15px; color: currentColor; }
#kz[data-theme] .f-label b { color: var(--red); margin-right: .4em; }
#kz[data-theme] .f-card.lv-sec.charging .f-aura { background: conic-gradient(from 0deg, #c9a35a, #f1d9a0, #8a6a2e, #fff3d0, #c9a35a); filter: blur(28px); }
#kz[data-theme] .f-card.lv-sec .f-aura { background: radial-gradient(closest-side, rgba(241, 217, 160, .8), transparent); }
#kz[data-theme] .f-card.lv-sec.charging .f-back .card-back { box-shadow: 0 0 60px #f1d9a0, inset 0 0 0 2.6cqw rgba(201, 163, 90, .9); }
#kz[data-theme] .f-card.lv-ur.charging .f-back .card-back { box-shadow: 0 0 50px rgba(228, 38, 63, .9), inset 0 0 40px rgba(228, 38, 63, .6); }
/* le coup de tampon */
#kz[data-theme] .op-banner {
  display: flex; align-items: center; justify-content: center; gap: .28em; top: 7vh;
  font-family: var(--mincho); font-weight: 800; font-size: clamp(30px, 6.4vw, 70px); letter-spacing: .14em; text-transform: uppercase;
  color: #fbf3e6; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 30px var(--glow);
}
#kz[data-theme="washi"] .op-banner { color: #1b1714; text-shadow: 0 0 24px rgba(255, 250, 240, .9); }
#kz[data-theme] .op-banner .ob-seal {
  display: inline-grid; place-content: center; justify-items: center; width: 1.6em; height: 1.6em; transform: rotate(-6deg);
  background: #c8102e; color: #fff6ec; border-radius: .08em; line-height: 1; letter-spacing: 0; text-shadow: none;
  box-shadow: inset 0 0 0 .05em #c8102e, inset 0 0 0 .085em #fff6ec, 0 .1em .4em rgba(0, 0, 0, .35);
}
#kz[data-theme] .op-banner .ob-seal b { font-size: 1em; }
#kz[data-theme] .op-banner .ob-seal i { font-style: normal; font-family: var(--gothic); font-size: .2em; letter-spacing: .1em; margin-top: .1em; }
#kz[data-theme] .op-banner.ob-secrete .ob-seal { box-shadow: inset 0 0 0 .05em #c8102e, inset 0 0 0 .085em #c9a35a, 0 0 .6em rgba(201, 163, 90, .8); }
#kz[data-theme] .op-banner.ob-secrete .ob-txt { color: #f1d9a0; text-shadow: 0 0 26px rgba(201, 163, 90, .9), 0 2px 0 rgba(0, 0, 0, .4); }
#kz[data-theme="washi"] .op-banner.ob-secrete .ob-txt { color: #8a6a2e; text-shadow: 0 0 20px rgba(255, 245, 220, .9); }
#kz[data-theme] .op-banner.ob-kizuna .ob-seal:first-child { background: #fff6ec; color: #c8102e; box-shadow: inset 0 0 0 .05em #fff6ec, inset 0 0 0 .085em #c8102e, 0 0 .6em rgba(228, 38, 63, .8); }
#kz[data-theme] .op-banner .ob-musubi { background: #1b1714; margin-left: -.5em; transform: rotate(7deg); box-shadow: inset 0 0 0 .05em #1b1714, inset 0 0 0 .085em #fff6ec; }
#kz[data-theme] .op-banner.go { animation: kz-stamp 1.7s cubic-bezier(.2, 1.2, .4, 1) forwards; }
@keyframes kz-stamp { 0% { opacity: 0; transform: scale(2.4); filter: blur(6px); } 16% { opacity: 1; transform: scale(.92); filter: none; } 24% { transform: scale(1.03); } 32%, 84% { transform: scale(1); opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
/* le recapitulatif */
#kz[data-theme] .summary h2 { font-family: var(--mincho); font-weight: 800; color: currentColor; }
#kz[data-theme] .summary .muted { color: currentColor; opacity: .7; }
#kz[data-theme] .summary .eyebrow { justify-content: center; }
#kz[data-theme] .card-new.skin { background: #1b1714; color: #f1d9a0; box-shadow: inset 0 0 0 1px #c9a35a; }

/* dos de carte : laque noire, liseré d'or, papier plie, sceau rouge 絆 */
#kz[data-theme] .card-back {
  border-radius: 2.4cqw;
  background: linear-gradient(135deg, transparent 49.6%, rgba(0, 0, 0, .35) 50%, rgba(255, 240, 220, .05) 50.4%, transparent 66%), var(--asa) center / 14cqw auto, linear-gradient(160deg, #2a201c, #120d0c 60%, #1c1513);
  box-shadow: inset 0 0 0 1.4cqw #17110f, inset 0 0 0 1.75cqw rgba(201, 163, 90, .7), inset 0 0 0 4.2cqw transparent;
}
#kz[data-theme] .card-back::before { inset: 4.8cqw; border-radius: 1.2cqw; border: 1px solid rgba(201, 163, 90, .28); background: linear-gradient(#e4263f, #e4263f) 50% 0 / 1px 100% no-repeat; opacity: .9; }
#kz[data-theme] .card-back span { color: #fff6ec; background: #c8102e; box-shadow: inset 0 0 0 1.2cqw #c8102e, inset 0 0 0 1.7cqw #fff6ec, 0 1cqw 4cqw rgba(0, 0, 0, .5); }
#kz[data-theme] .card:not(.album-mystery):has(> .card-back) { background: #17110f; border-color: rgba(201, 163, 90, .45); }

/* ---------- 3. Collections ---------- */
#kz[data-theme] .overall { gap: 26px; padding: 26px 30px; background: radial-gradient(70% 160% at 0% 0%, var(--red-soft), transparent 60%), var(--lacquer); }
#kz[data-theme] .overall h2 { font-family: var(--mincho) !important; font-weight: 800 !important; font-size: 32px !important; color: var(--sumi); }
#kz[data-theme] .col-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
#kz[data-theme] .col-tile:not(.mini) { min-height: 236px; padding: 22px 22px 20px; }
#kz[data-theme] .col-tile:not(.mini) h3 { font-size: 22px; max-width: 100%; }
#kz[data-theme] .col-tile:not(.mini) .row, #kz[data-theme] .col-tile:not(.mini) .bar { max-width: 100%; }
#kz[data-theme] .col-emblem { top: 18px; left: 22px; filter: none; font-size: 22px; }
#kz[data-theme] .col-emblem .kmark { margin: 0; }
#kz[data-theme] .col-tile:not(.mini) .col-fan { top: 16px; right: 10px; }
#kz[data-theme] .col-tile:not(.mini) .col-fan .card { width: 64px; margin-left: -38px; }
#kz[data-theme] .col-tile.mini .col-emblem { display: none; }
/* page d'une collection */
#kz[data-theme] .col-banner { padding: 34px 38px; gap: 26px; overflow: hidden; }
#kz[data-theme] .col-banner .big-emblem { right: 170px; bottom: -50px; font-family: var(--mincho); font-weight: 800; font-size: 240px; line-height: 1; color: var(--red); opacity: .07; transform: rotate(-8deg); }
#kz[data-theme] .col-banner h1 { display: flex; align-items: center; font-size: clamp(32px, 4.4vw, 54px); color: var(--sumi); }
#kz[data-theme] .col-banner h1 .kmark { font-size: .5em; width: 1.9em; height: 1.9em; margin-right: .6em; border-width: 2px; }
#kz[data-theme] .col-banner .chip.dot { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
#kz[data-theme] .col-banner .chip.dot::before { background: var(--red); }
#kz[data-theme] .col-banner p.muted { font-family: var(--mincho); font-size: 16px; color: var(--ink); }
#kz[data-theme] .col-banner .ring { width: 104px; height: 104px; }
#kz[data-theme] .col-banner > div:last-child > b { font-family: var(--mincho); font-size: 20px; }
#kz[data-theme] .col-skins { font-weight: 700; color: var(--gold); }
#kz[data-theme] .ms-row { gap: 8px; margin-top: 16px; }
#kz[data-theme] .ms { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 2px; font-weight: 700; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }
#kz[data-theme] .ms .ico { color: var(--red); }
#kz[data-theme] .ms.done { color: var(--sumi); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
#kz[data-theme] #view-toggle .chip { display: inline-flex; align-items: center; gap: 6px; }
#kz[data-theme] .char-pill { padding: 5px 14px 5px 5px; }
#kz[data-theme] .char-pill small { font-family: var(--mincho); font-weight: 700; }
#kz[data-theme] .char-pill.done small { color: var(--red); }
#kz[data-theme] .char-av { font-family: var(--mincho); font-weight: 800; background-color: var(--sumi) !important; }
#kz[data-theme] .char-av:not([style*="url("]) { background: var(--sumi) !important; color: var(--washi); }
#kz[data-theme] .char-head { padding: 12px 18px; position: relative; }
#kz[data-theme] .char-head::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--red); }
#kz[data-theme] .char-title h3 { font-size: 24px; color: var(--sumi); }
#kz[data-theme] .char-prog b { font-family: var(--mincho); }
#kz[data-theme] .char-prog .bar > i, #kz[data-theme] .p-serie .bar > i { background: var(--red); }
#kz[data-theme] .binder { gap: 26px 18px; }
#kz[data-theme] .skin-badge { background: #1b1714; color: #f1d9a0; box-shadow: inset 0 0 0 1px #c9a35a; z-index: 10; }

/* ---------- 4. Album : un classeur de laque, relie au fil rouge ---------- */
#kz[data-theme] .album-head { padding: 24px 28px; }
#kz[data-theme] .album-title h1 { color: var(--sumi); }
#kz[data-theme] .album-rar { gap: 8px; padding: 5px 12px 5px 6px; font-weight: 700; }
#kz[data-theme] .album-rar > span { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 4px; border-radius: 2px; font-size: 11px; color: #fff6ec !important; background: var(--red-btn); font-family: var(--gothic) !important; letter-spacing: .04em; }
#kz[data-theme] .album-tabs { gap: 6px; padding: 22px 2px 4px; }
#kz[data-theme] .album-tab { border-radius: 3px 3px 0 0; padding: 8px 14px 9px 9px; font-weight: 700; color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }
#kz[data-theme] .album-tab > span { width: auto; height: auto; background: none; }
#kz[data-theme] .album-tab .kmark { margin-right: 0; }
#kz[data-theme] .album-tab small { font-family: var(--mincho); }
#kz[data-theme] .album-tab.on { color: var(--sumi); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule), inset 0 -2px 0 var(--red); }
#kz[data-theme] .album { gap: 18px; }
#kz[data-theme] .album-arrow { width: 46px; height: 46px; font-family: var(--mincho); font-size: 26px; }
#kz[data-theme] .album-book {
  padding: clamp(14px, 1.8vw, 24px); border-radius: 8px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 240, 220, .06), transparent 60%), linear-gradient(160deg, #2c211d, #150f0d 60%, #211814);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(0, 0, 0, .6);
}
#kz[data-theme] .album-book::before { inset: 7px; border-radius: 5px; border: 1px solid rgba(201, 163, 90, .4); }
#kz[data-theme] .album-book.spread { grid-template-columns: 1fr 30px 1fr; }
/* la reliure : le fil rouge passe par trois noeuds */
#kz[data-theme] .album-spine { background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .55)); }
#kz[data-theme] .album-spine::before { content: ""; position: absolute; left: 50%; top: 6%; bottom: 6%; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, #e4263f 0 14px, transparent 14px 22px); box-shadow: 0 0 6px rgba(228, 38, 63, .5); }
#kz[data-theme] .album-spine i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6a7c, #c8102e 55%, #7c0a1c); box-shadow: 0 2px 5px rgba(0, 0, 0, .6), 0 0 10px rgba(228, 38, 63, .5); animation: none; }
#kz[data-theme] .album-spine i::before, #kz[data-theme] .album-spine i::after { content: ""; position: absolute; top: 50%; width: 15px; height: 2px; margin-top: -1px; background: #c8102e; border-radius: 2px; }
#kz[data-theme] .album-spine i::before { right: 13px; transform: rotate(-24deg); } #kz[data-theme] .album-spine i::after { left: 13px; transform: rotate(24deg); }
#kz[data-theme] .album-sheet { border-radius: 2px; padding: clamp(14px, 1.6vw, 22px) clamp(12px, 1.5vw, 20px) 30px; box-shadow: inset 0 0 30px rgba(120, 80, 40, .1); }
#kz[data-theme="washi"] .album-sheet { background: var(--grain, none), var(--asa-ink) center / 34px auto, #f7f1e5; color: #1b1714; }
#kz[data-theme="laque"] .album-sheet { background: var(--grain, none), var(--asa-ink) center / 34px auto, #1e1816; box-shadow: inset 0 0 30px rgba(0, 0, 0, .4); }
#kz[data-theme] .album-book.spread .album-sheet:first-child { border-radius: 2px 0 0 2px; box-shadow: inset -18px 0 24px -18px rgba(0, 0, 0, .35); }
#kz[data-theme] .album-book.spread .album-sheet:last-child { border-radius: 0 2px 2px 0; box-shadow: inset 18px 0 24px -18px rgba(0, 0, 0, .35); }
#kz[data-theme] .album-sheet-head { gap: 10px; font-size: 18px; }
#kz[data-theme] .album-sheet-head b { font-size: 20px; }
#kz[data-theme] .album-emb { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; }
#kz[data-theme] .album-emb .kmark { margin: 0; font-size: 15px; }
#kz[data-theme] .album-sheet-prog { border-radius: 2px; font-family: var(--mincho); font-weight: 700; color: var(--red); background: var(--red-soft); }
#kz[data-theme] .album-pocket { border-radius: 2px; padding: 4%; background: rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 1px rgba(27, 23, 20, .1), 0 1px 0 rgba(255, 255, 255, .4); }
#kz[data-theme="laque"] .album-pocket { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(239, 230, 214, .07); }
#kz[data-theme] .album-pocket::after { background: linear-gradient(120deg, rgba(255, 255, 255, .14), transparent 28%, transparent 72%, rgba(255, 255, 255, .06)); }
#kz[data-theme] .album-pocket.empty { background: rgba(27, 23, 20, .04); box-shadow: inset 0 0 0 1px rgba(27, 23, 20, .06); }
#kz[data-theme="laque"] .album-pocket.empty { background: rgba(0, 0, 0, .18); }
#kz[data-theme] .album-sheet-no { font-family: var(--mincho); color: var(--ink-soft); opacity: 1; }
#kz[data-theme] .album-sheet-end { font-family: var(--mincho); font-size: 120px; color: var(--red); opacity: .1; }
#kz[data-theme] .album-foot { font-family: var(--mincho); font-weight: 700; color: var(--ink-soft); letter-spacing: .08em; }

/* ---------- 5. Profils, joueurs, echanges, fenetres ---------- */
#kz[data-theme] .p-banner { padding: 32px 34px; gap: 28px; overflow: hidden; }
#kz[data-theme] .p-banner::after { content: "絆"; position: absolute; right: 200px; bottom: -60px; font-family: var(--mincho); font-weight: 800; font-size: 230px; line-height: 1; color: var(--red); opacity: .06; transform: rotate(-8deg); pointer-events: none; }
#kz[data-theme] .p-id h1 { color: var(--sumi); font-size: clamp(30px, 4vw, 46px); }
#kz[data-theme] .p-title { font-family: var(--mincho); font-weight: 700; letter-spacing: .1em; }
#kz[data-theme] .p-bio { font-family: var(--mincho); color: var(--ink); }
#kz[data-theme] .p-avatar { font-family: var(--mincho); font-weight: 800; color: #fff6ec; background: radial-gradient(circle at 35% 30%, #d9213a, #c8102e 50%, #8e0b22); }
#kz[data-theme] .p-avatar::before { background: var(--rule-2); }
#kz[data-theme] .fr-secret::before { background: conic-gradient(from var(--fa, 0deg), #c9a35a, #f1d9a0, #8a6a2e, #f1d9a0, #c9a35a); }
#kz[data-theme] .fr-kizuna::before { background: conic-gradient(from var(--fa, 0deg), #c8102e, #fff6ec, #c8102e, #fff6ec, #c8102e); box-shadow: 0 0 18px rgba(200, 16, 46, .45); }
#kz[data-theme] .p-stats { gap: 0; margin: 20px 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--lacquer); box-shadow: var(--drop); }
#kz[data-theme] .p-stats > div { border: 0; border-left: 1px solid var(--rule); border-radius: 0; background: none; padding: 16px 8px 14px; box-shadow: none; }
#kz[data-theme] .p-stats > div:first-child { border-left: 0; }
#kz[data-theme] .p-stats b { font-size: 34px; line-height: 1.05; color: var(--sumi); }
#kz[data-theme] .p-stats span { font-weight: 500; color: var(--ink-soft); letter-spacing: .04em; }
#kz[data-theme] .p-stats > div::before { font-family: var(--mincho); font-weight: 700; color: var(--red); font-size: 13px; letter-spacing: .2em; margin-bottom: 4px; }
#kz[data-theme] .p-stats > div:nth-child(1)::before { content: "進"; }
#kz[data-theme] .p-stats > div:nth-child(2)::before { content: "蒐"; }
#kz[data-theme] .p-stats > div:nth-child(3)::before { content: "秘"; color: var(--gold); }
#kz[data-theme] .p-stats > div:nth-child(4)::before { content: "絆"; }
#kz[data-theme] .p-stats > div:nth-child(5)::before { content: "開"; }
#kz[data-theme] .vt-lights { background: linear-gradient(90deg, transparent, rgba(255, 236, 200, .9) 15%, rgba(255, 236, 200, .9) 85%, transparent); box-shadow: 0 0 14px rgba(255, 220, 160, .8), 0 0 40px rgba(201, 163, 90, .35); }
#kz[data-theme] .vt-ghost { border-radius: 4px; border-color: rgba(201, 163, 90, .3); }
#kz[data-theme] .vt-ghost b { color: #e4263f; font-family: var(--mincho); }
#kz[data-theme] .vt-plinth span { font-family: var(--mincho); letter-spacing: .1em; color: #f1d9a0; }
#kz[data-theme] .vt-plinth i { border-radius: 2px; background: #c8102e; color: #fff6ec; }
#kz[data-theme] .p-series { gap: 14px; }
#kz[data-theme] .p-serie { border-radius: 4px; padding: 14px 16px; background: var(--lacquer); border-color: var(--rule); font-weight: 500; box-shadow: var(--drop); }
#kz[data-theme] .p-serie > span { display: flex; align-items: center; font-family: var(--mincho); font-weight: 700; font-size: 15px; }
#kz[data-theme] .p-serie > b { font-family: var(--mincho); }
#kz[data-theme] .p-serie.done { border-color: var(--red); box-shadow: var(--drop), 0 0 0 1px var(--red-soft); }
#kz[data-theme] .p-serie.done b { color: var(--red); }
/* joueurs : le podium en sceaux */
#kz[data-theme] .p-player { grid-template-columns: 40px auto 1fr auto auto; border-radius: 4px; background: var(--lacquer); border-color: var(--rule); box-shadow: var(--drop); padding: 12px 18px; }
#kz[data-theme] .p-player:hover { border-color: var(--rule-2); }
#kz[data-theme] .p-players .p-rank { width: 32px; height: 32px; border-radius: 3px; font-family: var(--mincho); font-weight: 800; font-size: 16px; color: var(--ink-soft); background: none; box-shadow: none; animation: none; transform: rotate(-4deg); }
#kz[data-theme] .p-players .p-player:nth-child(1) .p-rank { color: #fff6ec; background: #c8102e; box-shadow: inset 0 0 0 2px #c8102e, inset 0 0 0 3.5px #c9a35a, 0 4px 10px rgba(200, 16, 46, .35); }
#kz[data-theme] .p-players .p-player:nth-child(2) .p-rank { color: #fff6ec; background: #c8102e; box-shadow: inset 0 0 0 2px #c8102e, inset 0 0 0 3.5px #fff6ec; }
#kz[data-theme] .p-players .p-player:nth-child(3) .p-rank { color: var(--red); background: none; box-shadow: inset 0 0 0 1.5px var(--red); }
#kz[data-theme] .p-pname b { font-family: var(--mincho); font-weight: 800; font-size: 18px; }
#kz[data-theme] .p-pname small { color: var(--red); font-weight: 500; letter-spacing: .06em; }
#kz[data-theme] .p-mini img { border-radius: 2px; box-shadow: 0 0 0 1px var(--rule); }
#kz[data-theme] .p-pct b { font-family: var(--mincho); font-weight: 800; font-size: 24px; color: var(--sumi); }
/* edition du profil */
#kz[data-theme] .p-edit h2, #kz[data-theme] .trade-compose h2, #kz[data-theme] .trade-reveal h2 { font-family: var(--mincho); font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--sumi); }
#kz[data-theme] .trade-compose h2 .ico { color: var(--red); }
#kz[data-theme] .pe-pick { border-radius: 3px; background: var(--sheet-2); border-color: var(--rule); }
#kz[data-theme] .pe-pick.on { outline: 2px solid var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
#kz[data-theme] .pe-rar { border-radius: 2px; background: var(--red-btn); color: #fff6ec; }
#kz[data-theme] .pe-num { background: var(--red-btn); color: #fff6ec; font-family: var(--mincho); }
#kz[data-theme] .pe-name { font-family: var(--mincho); font-weight: 700; }
/* echanges */
#kz[data-theme] .trade-offer { padding: 18px 22px; }
#kz[data-theme] .tr-head b { font-family: var(--mincho); font-weight: 800; font-size: 17px; }
#kz[data-theme] .tr-sides small { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
#kz[data-theme] .tr-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--red); font-size: 0; animation: none; }
#kz[data-theme] .tr-arrow .ico { width: 20px; height: 20px; }
#kz[data-theme] .tr-gift { display: inline-flex; align-items: center; gap: 6px; }
#kz[data-theme] .tr-cols section { padding: 16px; }
#kz[data-theme] .tr-cols h3 { font-family: var(--mincho); font-weight: 800; font-size: 18px; }
#kz[data-theme] .tr-pick.on { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 3px; }
#kz[data-theme] .tr-check { background: var(--red-btn); color: #fff6ec; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
#kz[data-theme] .tr-check .ico { width: 15px; height: 15px; }
#kz[data-theme] .tr-last { border-radius: 2px; background: var(--sumi); color: var(--washi); }
#kz[data-theme] .tr-bar { background: var(--sheet); padding: 12px 0 2px; border-top: 1px solid var(--rule); }
#kz[data-theme] .trade-note { display: flex; align-items: center; gap: 10px; color: var(--ink); }
#kz[data-theme] .trade-note .ico { color: var(--red); }
/* recompense de collection : un grand sceau 賞 */
#kz[data-theme] .reward-burst { filter: none; }
#kz[data-theme] .reward-burst span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 6px; transform: rotate(-8deg); background: #c8102e; color: #fff6ec;
  font-family: var(--mincho); font-weight: 800; font-size: 46px; box-shadow: inset 0 0 0 4px #c8102e, inset 0 0 0 6px #fff6ec, 0 12px 26px -8px rgba(200, 16, 46, .7); }
#kz[data-theme] .reward-row { background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }
#kz[data-theme] .reward-row b { font-family: var(--mincho); }
#kz[data-theme] .reward-emb { width: 40px; height: 40px; border-radius: 3px; transform: rotate(-4deg); background: none; color: var(--red); border: 1.5px solid var(--red); font-family: var(--mincho); font-weight: 800; font-size: 19px; }
#kz[data-theme] .reward-gain { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mincho); }
/* fiche de carte */
#kz[data-theme] .modal.zoom .card-detail { gap: 48px; }
#kz[data-theme] .seg { border-radius: 3px; background: var(--panel-2); border-color: var(--rule); }
#kz[data-theme] .seg button { border-radius: 2px; font-weight: 700; color: var(--ink-soft); }
#kz[data-theme] .seg button.on { background: var(--paper); color: var(--paper-ink); }
#kz[data-theme] .skin-status .ok { color: var(--red); font-weight: 700; }
#kz[data-theme] .rarity-badge { display: inline-flex; align-items: center; padding: 3px 10px 3px 4px; color: var(--sumi); background: var(--panel); border-color: var(--rule); font-weight: 700; letter-spacing: .06em; }
#kz[data-theme] .detail-info .sub { font-family: var(--mincho); color: var(--ink); }
#kz[data-theme] .detail-info h2 { font-size: 40px; color: var(--sumi); }
#kz[data-theme] .kv dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding-top: 3px; }
#kz[data-theme] .kv dd { display: flex; align-items: center; gap: 4px; font-family: var(--mincho); font-weight: 700; }
#kz[data-theme] .modal-close { display: grid; place-items: center; }
#kz[data-theme] .modal-close .ico { width: 18px; height: 18px; }
#kz[data-theme] .viewer { background: rgba(10, 7, 6, .97); }

/* ---------- 6. Connexion et avertissement ---------- */
#kz[data-theme] .auth-logo .logo-kanji { width: 48px; height: 48px; font-size: 30px; }
#kz[data-theme] .auth-logo .logo-text { font-size: 24px; }
#kz[data-theme] .auth-hero h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.02em; color: var(--sumi); }
#kz[data-theme] .warn-page .auth-hero h1 { font-size: clamp(32px, 4.2vw, 56px); }
#kz[data-theme] .auth-hero p { font-family: var(--mincho); color: var(--ink); }
#kz[data-theme] .auth-perks { gap: 22px; color: var(--ink-soft); font-weight: 500; }
#kz[data-theme] .auth-perks span { display: inline-flex; align-items: center; gap: 7px; }
#kz[data-theme] .auth-perks .ico, #kz[data-theme] .auth-perks .ico-tk { color: var(--red); width: 18px; height: 18px; }
#kz[data-theme] .auth-box { padding: 34px; position: relative; }
#kz[data-theme] .auth-box::before, #kz[data-theme] .warn-box::before { content: "絆"; position: absolute; top: -16px; right: 22px; width: 40px; height: 40px; display: grid; place-items: center; transform: rotate(-6deg);
  font-family: var(--mincho); font-weight: 800; font-size: 24px; color: #fff6ec; background: var(--red-btn); border-radius: 4px; box-shadow: 0 8px 18px -6px rgba(200, 16, 46, .7); }
#kz[data-theme] .warn-box { position: relative; }
#kz[data-theme] .warn-row { border-radius: 3px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule); }
#kz[data-theme] .warn-row p { color: var(--ink); }
#kz[data-theme] .warn-row b { color: var(--sumi); font-family: var(--mincho); }
#kz[data-theme] .warn-ico { border-radius: 50%; background: none; color: var(--red); border: 1.5px solid var(--red); }
#kz[data-theme] .warn-ico .ico { width: 22px; height: 22px; }
#kz[data-theme] .warn-leave { color: var(--ink-soft); }
#kz[data-theme] .form-error { color: var(--red); }

/* ---------- 7. Studio : propre et lisible ---------- */
#kz[data-theme] .atelier-tabs, #kz[data-theme] .at-tabs { border-radius: 4px; }
#kz[data-theme] .preview-box { background: var(--lacquer); }
#kz[data-theme] .dropzone { border-radius: 3px; border-color: var(--rule-2); }
#kz[data-theme] .dropzone:hover, #kz[data-theme] .dropzone.over { border-color: var(--red); background: var(--red-soft); }
#kz[data-theme] .cfg-table th, #kz[data-theme] .plan-table th { color: var(--ink); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  #kz[data-theme] .boosters { grid-template-columns: 1fr; gap: 16px; }
  #kz[data-theme] .booster { grid-template-columns: 112px 1fr; gap: 16px; padding: 20px 16px 18px 18px; }
  #kz[data-theme] .booster .pack { width: 108px; }
  #kz[data-theme] .booster h3 { font-size: 20px; }
  #kz[data-theme] .booster-actions .btn { padding: 8px 11px; }
  #kz[data-theme] .overall { padding: 20px 18px; gap: 16px; }
  #kz[data-theme] .overall h2 { font-size: 26px !important; }
  #kz[data-theme] .col-banner { padding: 24px 20px; }
  #kz[data-theme] .col-banner .big-emblem { right: -20px; font-size: 180px; }
  #kz[data-theme] .col-banner h1 { font-size: 34px; }
  #kz[data-theme] .album-book { padding: 10px; }
  #kz[data-theme] .album-sheet { padding: 12px 8px 26px; }
  #kz[data-theme] .p-banner { padding: 26px 20px; }
  #kz[data-theme] .p-banner::after { right: -30px; font-size: 180px; }
  #kz[data-theme] .p-stats { grid-template-columns: repeat(3, 1fr); }
  #kz[data-theme] .p-stats > div:nth-child(4) { border-left: 0; }
  #kz[data-theme] .p-stats > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
  #kz[data-theme] .p-stats b { font-size: 26px; }
  #kz[data-theme] .p-player { grid-template-columns: 34px auto 1fr auto; padding: 10px 12px; gap: 10px; }
  #kz[data-theme] .op-banner { top: 10vh; font-size: clamp(26px, 9vw, 40px); }
  #kz[data-theme] .auth-box { padding: 26px 20px; }
  #kz[data-theme] .detail-info h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  #kz[data-theme] .stage.untie .om-loop, #kz[data-theme] .stage.untie .om-bow, #kz[data-theme] .op-banner.go { animation: none !important; }
}
/* pas de defilement horizontal (eventails de cartes inclinees, fil rouge) */
#kz[data-theme] { overflow-x: clip; }
#kz[data-theme] body { overflow-x: clip; }
#kz[data-theme] .tr-last { left: -6px; right: auto; }

/* ---------- code couleur des raretes (Louis) : C sumi, R indigo, SR or, UR violet, SEC nacre, KZ vermillon ---------- */
#kz[data-theme] .chip.dot[data-k=commune]::before { color: #8a847d; }
#kz[data-theme] .chip.dot[data-k=rare]::before { color: #4a74b8; }
#kz[data-theme] .chip.dot[data-k=super-rare]::before { color: #c9a24a; }
#kz[data-theme] .chip.dot[data-k=ultra-rare]::before { color: #8f62d4; }
#kz[data-theme] .chip.dot[data-k=secrete]::before { background: var(--raden); -webkit-background-clip: text; background-clip: text; color: transparent; }
#kz[data-theme] .chip.dot[data-k=kizuna]::before { color: #e4263f; }
#kz[data-theme] .chip.dot[data-k].on::before { -webkit-text-fill-color: currentColor; color: inherit; }
#kz[data-theme] .album-rar > span { color: #fff6ec !important; background: currentColor; }
#kz[data-theme] .album-rar > span { background: none; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; font-weight: 800; }
#kz[data-theme] .album-rar .bar > i { background: var(--a) !important; box-shadow: none; }
#kz[data-theme] .album-rar .bar > i::before { background: var(--a); }
/* ouverture : auras dans la couleur de la rarete */
@keyframes kz-aura-sr { 0%, 100% { filter: drop-shadow(0 0 12px rgba(212, 173, 85, .55)); } 50% { filter: drop-shadow(0 0 26px rgba(241, 217, 160, .9)); } }
@keyframes kz-aura-ur { 0%, 100% { filter: drop-shadow(0 0 14px rgba(143, 98, 212, .6)); } 50% { filter: drop-shadow(0 0 36px rgba(187, 148, 232, .95)); } }
@keyframes kz-aura-sec { 0% { filter: drop-shadow(0 0 22px #efd9ff); } 33% { filter: drop-shadow(0 0 30px #9fe8dc); } 66% { filter: drop-shadow(0 0 30px #ffcfb2); } 100% { filter: drop-shadow(0 0 22px #efd9ff); } }
#kz[data-theme] .op-drop.aura-sr .pack { filter: none; animation: pack-float 3s ease-in-out infinite, kz-aura-sr 2s ease-in-out infinite; }
#kz[data-theme] .sp-card.h-sr:not(.done) .sp-back { filter: none; animation: kz-aura-sr 2s ease-in-out infinite; }
#kz[data-theme] .f-card.lv-ur.charging .f-back .card-back { box-shadow: 0 0 50px rgba(143, 98, 212, .9), inset 0 0 40px rgba(143, 98, 212, .6); }
#kz[data-theme] .f-card.lv-sec.charging .f-aura { background: conic-gradient(from 0deg, #efd9ff, #9fe8dc, #ffcfb2, #b5ccff, #f4bde3, #efd9ff); filter: blur(28px); }
#kz[data-theme] .f-card.lv-sec .f-aura { background: radial-gradient(closest-side, rgba(214, 226, 255, .85), transparent); }
#kz[data-theme] .f-card.lv-sec.charging .f-back .card-back { box-shadow: 0 0 60px #efd9ff, inset 0 0 0 2.6cqw rgba(181, 204, 255, .8); }
#kz[data-theme] .op-banner.ob-super-rare .ob-seal { background: linear-gradient(135deg, #fff3cf, #dcb35a 55%, #a5823e); color: #3a2a0c; box-shadow: inset 0 0 0 .085em rgba(58, 42, 12, .4), 0 0 .6em rgba(212, 173, 85, .8); }
#kz[data-theme] .op-banner.ob-ultra-rare .ob-seal { background: #6b3fa0; box-shadow: inset 0 0 0 .05em #6b3fa0, inset 0 0 0 .085em #fff6ec, 0 0 .6em rgba(143, 98, 212, .85); }
#kz[data-theme] .op-banner.ob-secrete .ob-seal { background: var(--raden) 0 0 / 300% 300%; color: #3d2b55; animation: kz-raden 4s linear infinite; box-shadow: inset 0 0 0 .085em rgba(61, 43, 85, .35), 0 0 .7em rgba(214, 226, 255, .9); }
#kz[data-theme] .op-banner.ob-secrete .ob-txt { background: var(--raden) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(214, 226, 255, .7)); animation: kz-raden 4s linear infinite; }
#kz[data-theme="washi"] .op-banner.ob-secrete .ob-txt { filter: drop-shadow(0 1px 0 rgba(61, 43, 85, .6)); }
#kz[data-theme] .op-banner.ob-ultra-rare .ob-txt { color: #e4d0fa; }
#kz[data-theme="washi"] .op-banner.ob-ultra-rare .ob-txt { color: #4b2580; }
#kz[data-theme] .op-banner.ob-super-rare .ob-txt { color: #f1d9a0; }
#kz[data-theme="washi"] .op-banner.ob-super-rare .ob-txt { color: #8a6a2e; }
#kz[data-theme] .op-banner.ob-kizuna .ob-txt { color: #ff6a7c; }
#kz[data-theme="washi"] .op-banner.ob-kizuna .ob-txt { color: #c8102e; }
#kz[data-theme] .pack-peek {
  position: absolute; z-index: -1; left: 19%; top: 5.5%; width: 36%; aspect-ratio: 63 / 88; border-radius: 1.2cqw; transform: rotate(-13deg);
  background: #1b1714 center 15% / cover no-repeat; box-shadow: 0 0 0 1.1cqw #fbf8f2, 0 0 0 1.5cqw rgba(0, 0, 0, .25), 0 2cqw 4cqw rgba(0, 0, 0, .35);
}
#kz[data-theme] .pack-seal {
  color: #f6dc9c; background: none; text-shadow: 0 .25cqw 0 rgba(80, 0, 10, .55), 0 0 1.2cqw rgba(246, 220, 156, .35);
  -webkit-text-stroke: .15cqw rgba(255, 244, 214, .45); font-size: 9.4cqw;
}
#kz[data-theme] .pack .om-tassel { fill: var(--pa); stroke: var(--pa); transform-box: view-box; transform-origin: 120px 368px; }
#kz[data-theme] .pack .pack-shine {
  display: block; position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; background: none; animation: none; mix-blend-mode: normal;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cpath d='M30 96 66 64h108l36 32v256q0 18-18 18H48q-18 0-18-18Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
#kz[data-theme] .pack .pack-shine::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 236, 190, .34) 50%, transparent 85%);
  transform: translateX(0) skewX(-14deg); animation: om-sheen 8s ease-in-out infinite; animation-delay: var(--sd, 0s);
}
@keyframes om-sheen { 0%, 72% { transform: translateX(0) skewX(-14deg); } 100% { transform: translateX(390%) skewX(-14deg); } }
/* balancement sur son cordon, petit elan au survol */
#kz[data-theme] .boosters .booster .pack, #kz[data-theme] .featured .pack { transform-origin: 50% 2%; animation: om-sway 6.5s ease-in-out infinite; }
#kz[data-theme] .boosters .booster:nth-child(3n+2) .pack { animation-delay: -2.2s; --sd: -2.7s; }
#kz[data-theme] .boosters .booster:nth-child(3n) .pack { animation-delay: -4.4s; --sd: -5.3s; }
#kz[data-theme] .boosters .booster:hover .pack, #kz[data-theme] .featured:hover .pack { transform: none; animation: om-swing 1.8s cubic-bezier(.3, .6, .4, 1) both; }
#kz[data-theme] .booster:hover .pack .om-tassel, #kz[data-theme] .featured:hover .pack .om-tassel { animation: om-tassel 1.8s ease-out both; }
@keyframes om-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes om-swing { 0% { transform: rotate(0); } 18% { transform: rotate(7deg); } 38% { transform: rotate(-5deg); } 58% { transform: rotate(3deg); } 78% { transform: rotate(-1.4deg); } 100% { transform: rotate(0); } }
@keyframes om-tassel { 0% { transform: rotate(0); } 22% { transform: rotate(-14deg); } 44% { transform: rotate(10deg); } 66% { transform: rotate(-5deg); } 100% { transform: rotate(0); } }
/* omamori de theme : un detail en plus */
#kz[data-theme] .pack .om-extra { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#kz[data-theme] .pack.om-th-noel .om-extra, #kz[data-theme] .pack.om-th-cozy-winter .om-extra {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cpath d='M28 97 66 63h108l38 34c-5 8-13 4-18 9-7 6-12-5-19-10-6-6-12-10-19-11-9 6-16-4-26 1-10-5-17 5-26-1-7 1-13 5-19 11-7 5-12 16-19 10-5-5-13-1-18-9Z' fill='%23fbfdff'/%3E%3Ccircle cx='60' cy='120' r='2' fill='%23fff'/%3E%3Ccircle cx='190' cy='140' r='1.6' fill='%23fff'/%3E%3Ccircle cx='52' cy='300' r='1.8' fill='%23fff' fill-opacity='.8'/%3E%3Ccircle cx='196' cy='260' r='2' fill='%23fff' fill-opacity='.8'/%3E%3C/svg%3E") center / 100% 100% no-repeat; filter: drop-shadow(0 .5cqw .6cqw rgba(40, 60, 90, .35));
}
#kz[data-theme] .pack.om-th-matsuri .om-extra, #kz[data-theme] .pack.om-th-midnight-gala .om-extra, #kz[data-theme] .pack.om-th-dark-carnival .om-extra { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cpath d='M204 150a15 15 0 1 1-9-27 12 12 0 1 0 9 27Z' fill='none' stroke='%23f6dc9c' stroke-width='2' stroke-opacity='.9'/%3E%3Cpath d='M52 112l2 5 5 .5-4 3.5 1 5-4-2.5-4 2.5 1-5-4-3.5 5-.5Z' fill='%23f6dc9c' fill-opacity='.85'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
#kz[data-theme] .pack.om-th-plage .om-extra, #kz[data-theme] .pack.om-th-eternal-vows .om-extra { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 380' preserveAspectRatio='none'%3E%3Cg fill='%23ffe3ec' fill-opacity='.95' stroke='%23f6dc9c' stroke-width='.8'%3E%3Cpath d='M196 300c-3-5-3-10 0-13 3 3 3 8 0 13Zm0 0c5-2 10-1 12 3-4 1-9 0-12-3Zm0 0c4 3 6 8 3 12-3-2-5-7-3-12Zm0 0c-1 5-5 9-9 10-1-4 3-8 9-10Zm0 0c-5 2-10 1-12-3 4-2 9-1 12 3Z'/%3E%3C/g%3E%3Ccircle cx='196' cy='300' r='1.6' fill='%23c8102e'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
@media (prefers-reduced-motion: reduce) { #kz[data-theme] .pack, #kz[data-theme] .pack .pack-shine::before, #kz[data-theme] .pack .om-tassel { animation: none !important; } }

#kz[data-theme] .boosters { align-items: start; }

/* ---------- omamori : brocart par serie (fil d'or), apercu de carte, gland de soie, balancement ---------- */
#kz[data-theme] .pack.om-wave { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 20a20 20 0 0 1 40 0M6 20a14 14 0 0 1 28 0M12 20a8 8 0 0 1 16 0'/%3E%3Cpath d='M-20 10a20 20 0 0 1 40 0M-14 10a14 14 0 0 1 28 0M20 10a20 20 0 0 1 40 0M26 10a14 14 0 0 1 28 0'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 16cqw auto; }
#kz[data-theme] .pack.om-flame { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='44' viewBox='0 0 36 44'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 40c-8 0-12-6-10-12 2-5 7-6 6-13 5 3 7 8 6 12 2-2 3-4 3-7 4 4 6 9 5 13-1 4-5 7-10 7Z'/%3E%3Cpath d='M18 36c-3 0-5-2-4-5 1-2 3-3 3-6 2 2 4 5 3 8' fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='.8' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 15cqw auto; }
#kz[data-theme] .pack.om-swirl { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 17m0 0a2 2 0 1 1 2 2a5 5 0 1 1-5-5a8 8 0 1 1 8 8a11 11 0 0 1-11-11'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 14cqw auto; }
#kz[data-theme] .pack.om-snow { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 8v24M9.6 14l20.8 12M9.6 26l20.8-12M20 12l-3-3M20 12l3-3M20 28l-3 3M20 28l3 3'/%3E%3Ccircle cx='4' cy='36' r='1.2' fill='%23fff' fill-opacity='.35' stroke='none'/%3E%3Ccircle cx='36' cy='4' r='1' fill='%23fff' fill-opacity='.35' stroke='none'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 15cqw auto; }
#kz[data-theme] .pack.om-fire { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 24m-3 0h-7M27 24h7M24 21v-7M24 27v7M21.9 21.9l-5-5M26.1 26.1l5 5M26.1 21.9l5-5M21.9 26.1l-5 5'/%3E%3Ccircle cx='24' cy='24' r='1.6'/%3E%3Ccircle cx='4' cy='6' r='.9' fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='.8' stroke-linecap='round'/%3E%3Ccircle cx='42' cy='42' r='.9' fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='.8' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 19cqw auto; }
#kz[data-theme] .pack.om-steam { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='44' viewBox='0 0 30 44'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 42c-5-6 5-10 0-16s5-10 0-16M18 40c-5-6 5-10 0-16s5-10 0-16'/%3E%3Cpath d='M3 44h24' stroke-opacity='.25'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 12cqw auto; }
#kz[data-theme] .pack.om-kikko { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48.5' viewBox='0 0 28 48.5'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 0l12 7v14l-12 7-12-7V7Z'/%3E%3Cpath d='M0 28.5v14l14 8M28 28.5v14l-14 8M14 28v20' stroke-opacity='.25'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 12cqw auto; }
#kz[data-theme] .pack.om-hishi { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 2l14 14-14 14L2 16Z'/%3E%3Cpath d='M16 9l7 7-7 7-7-7Z' stroke-opacity='.28'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 13cqw auto; }
#kz[data-theme] .pack.om-sakura { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 22c-3-4-3-9 0-12 3 3 3 8 0 12ZM22 22c4-2 9-1 11 3-4 1-8 0-11-3ZM22 22c4 2 6 7 4 11-3-1-5-6-4-11ZM22 22c-1 5-4 9-8 10-1-4 2-8 8-10ZM22 22c-4 2-9 2-11-2 3-2 8-2 11 2Z'/%3E%3Ccircle cx='22' cy='22' r='1.2' fill='%23f6dc9c' fill-opacity='.5' stroke='none'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 17cqw auto; }
#kz[data-theme] .pack.om-stars { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6l1.8 4.2 4.5.4-3.4 3 1 4.4-3.9-2.3-3.9 2.3 1-4.4-3.4-3 4.5-.4Z'/%3E%3Cpath d='M34 28l1.2 2.8 3 .3-2.3 2 .7 3-2.6-1.6-2.6 1.6.7-3-2.3-2 3-.3Z' stroke-opacity='.3'/%3E%3Ccircle cx='38' cy='9' r='1' fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='38' r='1' fill='none' stroke='%23fff' stroke-opacity='.12' stroke-width='.8' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 19cqw auto; }
#kz[data-theme] .pack.om-yagasuri { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='36' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 0l12 9 12-9M0 18l12 9 12-9M12 9v9M12 27v9'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 10cqw auto; }
#kz[data-theme] .pack.om-asa { --brocade: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='41.57' viewBox='0 0 24 41.57'%3E%3Cg fill='none' stroke='%23f6dc9c' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='.3'%3E%3Cpath d='M12 0v13.86M0 6.93l12 6.93 12-6.93M0 20.78h24M12 13.86 0 20.78m12-6.92 12 6.92M0 6.93v27.71M24 6.93v27.71M12 27.71v13.86M0 34.64l12-6.93 12 6.93M12 27.71 0 20.78m12 6.93 12-6.93M0 6.93 12 0l12 6.93M0 34.64l12 6.93 12-6.93'/%3E%3C/g%3E%3C/svg%3E"); --bsize: 12cqw auto; }

/* cadres peints Fil rouge (24/11/2026) : actives */
:root { --fr-commune: block; --fr-rare: block; --fr-super-rare: block; --fr-ultra-rare: block; --fr-secrete: block; --fr-kizuna: block; }
#kz[data-theme] .card > .fr-img { inset: -3% -3.5%; border-radius: 0; }

/* cadres v3 (24/11 soir) : ligne d'or sur le bord de la carte, ornements surtout autour ; la Commune garde le cadre affine */
#kz[data-theme] .card.r-rare > .fr-img { inset: -12.04% -12.55% -7.96% -13.99%; }
#kz[data-theme] .card.r-super-rare > .fr-img { inset: -14.56% -17.17% -8.34% -11.79%; }
#kz[data-theme] .card.r-ultra-rare > .fr-img { inset: -14.23% -11.94% -14.23% -16.66%; }
#kz[data-theme] .card.r-secrete > .fr-img { inset: -15.11% -11.91% -15.11% -15.50%; }
#kz[data-theme] .card.r-kizuna > .fr-img { inset: -14.29% -22.00% -14.29% -20.94%; }
#kz[data-theme] .vitrine { column-gap: 56px; row-gap: 72px; }
#kz[data-theme] .vitrine figcaption { margin-top: 34px; }
/* essai planche v4 (decoupee) */
#kz[data-theme] .card.r-commune > .fr-img { inset: -15.43% -11.65% -9.28% -15.79%; }
#kz[data-theme] .card.r-rare > .fr-img { inset: -14.00% -15.02% -10.20% -16.44%; }
#kz[data-theme] .card.r-super-rare > .fr-img { inset: -14.84% -20.76% -10.03% -15.48%; }
#kz[data-theme] .card.r-ultra-rare > .fr-img { inset: -13.95% -12.24% -9.92% -16.42%; }
#kz[data-theme] .card.r-secrete > .fr-img { inset: -18.77% -29.51% -13.81% -16.83%; }
#kz[data-theme] .card.r-kizuna > .fr-img { inset: -17.49% -19.55% -14.72% -15.17%; }
/* cadres v5 (un par image, GPT)  */
#kz[data-theme] .card.r-commune > .fr-img { inset: -13.08% -7.42% -6.49% -10.15%; }
#kz[data-theme] .card.r-rare > .fr-img { inset: -10.63% -11.16% -7.08% -10.89%; }
#kz[data-theme] .card.r-super-rare > .fr-img { inset: -10.86% -11.42% -7.73% -9.82%; }
#kz[data-theme] .card.r-ultra-rare > .fr-img { inset: -12.36% -8.97% -9.21% -14.33%; }
#kz[data-theme] .card.r-secrete > .fr-img { inset: -17.74% -11.65% -9.09% -13.02%; }
#kz[data-theme] .card.r-kizuna > .fr-img { inset: -16.10% -13.39% -8.02% -13.26%; }

/* === 24/11 soir : air, cadres nets, survol des collections === */
/* cadres : version 520 px (reduite proprement, plus nette et plus legere) partout ; pleine taille seulement en grand */
#kz[data-theme] .card.r-commune > .fr-img { background-image: url(/frames-fr/commune-s.webp); }
#kz[data-theme] .card.r-rare > .fr-img { background-image: url(/frames-fr/rare-s.webp); }
#kz[data-theme] .card.r-super-rare > .fr-img { background-image: url(/frames-fr/super-rare-s.webp); }
#kz[data-theme] .card.r-ultra-rare > .fr-img { background-image: url(/frames-fr/ultra-rare-s.webp); }
#kz[data-theme] .card.r-secrete > .fr-img { background-image: url(/frames-fr/secrete-s.webp); }
#kz[data-theme] .card.r-kizuna > .fr-img { background-image: url(/frames-fr/kizuna-s.webp); }
#kz[data-theme] .modal .card.r-commune > .fr-img, #kz[data-theme] .viewer .card.r-commune > .fr-img, #kz[data-theme] .op2 .card.r-commune > .fr-img, #kz[data-theme] .vitrine .card.r-commune > .fr-img, #kz[data-theme] .spotlight .card.r-commune > .fr-img, #kz[data-theme] .auth-fan .card.r-commune > .fr-img { background-image: url(/frames-fr/commune.webp); }
#kz[data-theme] .modal .card.r-rare > .fr-img, #kz[data-theme] .viewer .card.r-rare > .fr-img, #kz[data-theme] .op2 .card.r-rare > .fr-img, #kz[data-theme] .vitrine .card.r-rare > .fr-img, #kz[data-theme] .spotlight .card.r-rare > .fr-img, #kz[data-theme] .auth-fan .card.r-rare > .fr-img { background-image: url(/frames-fr/rare.webp); }
#kz[data-theme] .modal .card.r-super-rare > .fr-img, #kz[data-theme] .viewer .card.r-super-rare > .fr-img, #kz[data-theme] .op2 .card.r-super-rare > .fr-img, #kz[data-theme] .vitrine .card.r-super-rare > .fr-img, #kz[data-theme] .spotlight .card.r-super-rare > .fr-img, #kz[data-theme] .auth-fan .card.r-super-rare > .fr-img { background-image: url(/frames-fr/super-rare.webp); }
#kz[data-theme] .modal .card.r-ultra-rare > .fr-img, #kz[data-theme] .viewer .card.r-ultra-rare > .fr-img, #kz[data-theme] .op2 .card.r-ultra-rare > .fr-img, #kz[data-theme] .vitrine .card.r-ultra-rare > .fr-img, #kz[data-theme] .spotlight .card.r-ultra-rare > .fr-img, #kz[data-theme] .auth-fan .card.r-ultra-rare > .fr-img { background-image: url(/frames-fr/ultra-rare.webp); }
#kz[data-theme] .modal .card.r-secrete > .fr-img, #kz[data-theme] .viewer .card.r-secrete > .fr-img, #kz[data-theme] .op2 .card.r-secrete > .fr-img, #kz[data-theme] .vitrine .card.r-secrete > .fr-img, #kz[data-theme] .spotlight .card.r-secrete > .fr-img, #kz[data-theme] .auth-fan .card.r-secrete > .fr-img { background-image: url(/frames-fr/secrete.webp); }
#kz[data-theme] .modal .card.r-kizuna > .fr-img, #kz[data-theme] .viewer .card.r-kizuna > .fr-img, #kz[data-theme] .op2 .card.r-kizuna > .fr-img, #kz[data-theme] .vitrine .card.r-kizuna > .fr-img, #kz[data-theme] .spotlight .card.r-kizuna > .fr-img, #kz[data-theme] .auth-fan .card.r-kizuna > .fr-img { background-image: url(/frames-fr/kizuna.webp); }
/* les cadres depassent de la carte : on laisse de l'air entre les cartes */
#kz[data-theme] .binder, #kz[data-theme] .binder.compact { gap: 64px 44px; padding: 34px 16px 14px; }
@media (max-width: 760px) { #kz[data-theme] .binder, #kz[data-theme] .binder.compact { gap: 40px 22px; padding: 22px 10px 8px; } }
/* survol d'une collection : les 3 cartes se levent (la Secrete gardait son animation nacree et ne bougeait pas) */
@keyframes kz-tile-wiggle { 50% { translate: 0 -8px; } }
#kz[data-theme] .col-tile:hover .col-fan .card { animation: kz-tile-wiggle .6s ease-in-out; }
#kz[data-theme] .col-tile:hover .col-fan .card.r-secrete:not(.missing):not(.album-mystery) { animation: kz-tile-wiggle .6s ease-in-out, kz-raden 9s linear infinite; }

/* === 24/11 soir (2) : defilement fluide, boosters plus legers, album en grand, fil de l'accueil a droite === */
/* pendant le defilement a la molette, la souris ne declenche plus d'effets (inclinaison, survols) */
html.kz-scrolling #app { pointer-events: none; }
/* page Boosters : plus de balancement permanent de tous les omamori (filtres d'ombre recalcules a chaque image) ;
   ils bougent et brillent seulement au survol */
#kz[data-theme] .boosters .booster .pack { animation: none; }
#kz[data-theme] .boosters .booster:not(:hover) .pack .pack-shine::before { animation: none; }
#kz[data-theme="laque"] .boosters .pack { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .6)); }

/* --- Accueil : le fil « Around Kizuna » dans une colonne a droite, qui reste en haut --- */
main:has(> .page > .home-cols) { max-width: 1640px; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.home-main { min-width: 0; }
.home-feed { position: sticky; top: 96px; max-height: calc(100vh - 116px); display: flex; flex-direction: column; margin-top: 4px; }
.home-feed .section-head { margin-bottom: 12px; }
.home-feed .feed { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; min-height: 0; }
@media (max-width: 1180px) {
  .home-cols { grid-template-columns: 1fr; }
  .home-feed { position: static; max-height: none; margin-top: 40px; }
  .home-feed .feed { overflow: visible; }
}

/* --- Album : infos, series et filtres a gauche (fixes), le livre en grand a droite --- */
main:has(> .album-page) { max-width: 1900px; }
.album-page { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; }
.album-side { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 16px; padding-right: 4px; }
#kz[data-theme] .album-side .album-head { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px; margin: 0; }
#kz[data-theme] .album-side .album-head .ring { align-self: center; }
#kz[data-theme] .album-side .album-title { min-width: 0; text-align: center; }
#kz[data-theme] .album-side .album-title h1 { font-size: 30px; margin: 4px 0 12px; }
#kz[data-theme] .album-side .album-rars { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
#kz[data-theme] .album-side .album-rar { grid-template-columns: 44px 1fr 56px; text-align: left; }
#kz[data-theme] .album-side .album-rar small { text-align: right; }
#kz[data-theme] .album-side .album-tabs { flex-direction: column; overflow: visible; padding: 0; mask-image: none; -webkit-mask-image: none; gap: 4px; }
#kz[data-theme] .album-side .album-tab { justify-content: flex-start; width: 100%; }
#kz[data-theme] .album-side .album-tab small { margin-left: auto; }
#kz[data-theme] .album-side .album-filters { margin: 0; flex-direction: column; align-items: stretch; gap: 10px; }
#kz[data-theme] .album-side .album-filters .chips { flex-wrap: wrap; }
#kz[data-theme] .album-side .album-theme { width: 100%; }
.album-main { min-width: 0; }
#kz[data-theme] .album-pocket:not(.empty) { padding: 9% 8% 7%; }
@media (max-width: 1100px) {
  .album-page { grid-template-columns: minmax(0, 1fr); }
  .album-side, .album-main { min-width: 0; max-width: 100%; }
  .album-side { position: static; max-height: none; overflow: visible; }
  #kz[data-theme] .album-side .album-tabs { flex-direction: row; overflow-x: auto; }
  #kz[data-theme] .album-side .album-tab { width: auto; }
  #kz[data-theme] .album-side .album-rars { flex-direction: row; flex-wrap: wrap; }
}
/* livre encore plus grand : fleches posees sur les bords du livre au lieu de colonnes a part */
@media (min-width: 1101px) { .album-page { grid-template-columns: 280px minmax(0, 1fr); gap: 26px; } }
#kz[data-theme] .album-main .album { grid-template-columns: 1fr; gap: 0; }
#kz[data-theme] .album-main .album-arrow { position: absolute; z-index: 6; top: 50%; translate: 0 -50%; }
#kz[data-theme] .album-main .album-arrow.prev { left: -22px; }
#kz[data-theme] .album-main .album-arrow.next { right: -22px; }
#kz[data-theme] .album-main .album-arrow:disabled { opacity: 0; pointer-events: none; }
#kz[data-theme] .album-pocket:not(.empty) { padding: 7% 6% 5%; }
#kz[data-theme] .album-side > * { flex-shrink: 0; }
#kz[data-theme] .album-side .album-head { flex-wrap: nowrap; }
/* cadres v6 (25 % plus discrets) ; la Kizuna reste la v5 */
#kz[data-theme] .card.r-commune > .fr-img { inset: -10.05% -6.10% -5.03% -6.99%; }
#kz[data-theme] .card.r-rare > .fr-img { inset: -8.63% -9.02% -4.99% -7.92%; }
#kz[data-theme] .card.r-super-rare > .fr-img { inset: -7.10% -5.96% -5.37% -5.84%; }
#kz[data-theme] .card.r-ultra-rare > .fr-img { inset: -9.69% -7.81% -7.35% -10.39%; }
#kz[data-theme] .card.r-secrete > .fr-img { inset: -13.54% -9.86% -7.10% -9.42%; }
#kz[data-theme] .card.r-kizuna > .fr-img { inset: -13.39% -10.24% -10.34% -9.32%; }

/* === fiche de carte : nette, cadre en entier, inclinaison douce === */
/* « will-change: transform » figeait la carte a la taille du debut de l'animation d'ouverture (plus petite) : image floue.
   Au repos, plus de transformation 3D du tout : l'illustration est dessinee en pleine qualite. */
#kz[data-theme] .modal .card { will-change: auto; }
#kz[data-theme] .modal .card:not(.tilting) { transform: none; }
#kz[data-theme] .card img { image-rendering: auto; }
/* le cadre depasse de la carte : on lui laisse la place dans la fiche */
#kz[data-theme] .modal.zoom .detail-card-slot { padding: 64px 56px 40px; }
#kz[data-theme] .modal.zoom { overflow-x: hidden; }
#kz[data-theme] .modal.zoom .card-detail { padding: 24px 48px 36px 24px; gap: 40px; }
@media (max-width: 760px) { #kz[data-theme] .modal.zoom .detail-card-slot { padding: 44px 30px 26px; } }

/* === le site respire : plus d'espace entre les blocs === */
main { padding-top: 48px; }
#kz[data-theme] .section { margin-top: 96px; }
#kz[data-theme] .section-head { margin-bottom: 28px; }
#kz[data-theme] .home-grid { gap: 32px; margin-top: 44px; }
#kz[data-theme] .side-stack { gap: 32px; }
#kz[data-theme] .col-grid { gap: 32px; }
#kz[data-theme] .boosters { gap: 36px; }
#kz[data-theme] .panel { padding: clamp(22px, 2.4vw, 34px); }
@media (max-width: 760px) {
  main { padding-top: 28px; }
  #kz[data-theme] .section { margin-top: 60px; }
  #kz[data-theme] .home-grid, #kz[data-theme] .side-stack, #kz[data-theme] .col-grid, #kz[data-theme] .boosters { gap: 22px; }
}
/* la carte de la fiche tient en hauteur avec la place laissee au cadre */
#kz[data-theme] .modal.zoom .card { --w: min(420px, 82vw, calc((100vh - 250px) * 63 / 88)); }
@media (max-width: 760px) { #kz[data-theme] .modal.zoom .card { --w: min(300px, calc(100vw - 110px), calc((100vh - 220px) * 63 / 88)); } }
@media (max-width: 760px) { #kz[data-theme] .modal.zoom .card-detail { padding: 50px 10px 20px; gap: 14px; } #kz[data-theme] .modal.zoom .detail-card-slot { padding: 36px 26px 22px; } }
/* plein ecran : la carte laisse la place a son cadre (environ 30 % de plus en hauteur, 25 % en largeur) */
#kz[data-theme] .viewer-stage.mode-card .card { --w: min(72vw, calc((100vh - 130px) / 1.32 * 63 / 88)); }
/* plein ecran : zoom a la molette */
#kz[data-theme] .viewer-stage.mode-card { overflow: hidden; touch-action: none; }
#kz[data-theme] .viewer-stage .vz { transform-origin: 50% 50%; transition: transform .06s linear; }
#kz[data-theme] .viewer-stage.zoomed { cursor: grab; }
#kz[data-theme] .viewer-stage.zoomed:active { cursor: grabbing; }

/* === Ouverture (25/11) === */
/* plus de fondu de toute la fenetre (on voyait le site derriere) : le fond est opaque des la 1re image */
#kz[data-theme] .opening { animation: none; }
#kz[data-theme] .opening > .stage, #kz[data-theme] .opening > .op-glow { animation: kz-op-in .45s ease-out both; }
@keyframes kz-op-in { from { opacity: 0; } }
/* le titre du booster ne recouvre plus le bouton « Reveal all » */
#kz[data-theme] .opening-counter { pointer-events: none; }
#kz[data-theme] .opening .opening-close { z-index: 30; }
/* odds : 3 colonnes bien alignees */
#kz[data-theme] .odds > span { display: block; text-align: right; font-family: var(--mincho); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
#kz[data-theme] .odds > span:nth-child(3n+1) { display: flex; align-items: center; gap: 8px; text-align: left; font-family: inherit; font-weight: 500; }
#kz[data-theme] .odds > span.muted { font-family: inherit; font-weight: 700; }
#kz[data-theme] .odds > span.muted:not(:nth-child(3n+1)) { text-align: right; }

/* facon gacha : a l'ouverture, un faisceau de la couleur de la meilleure carte du paquet */
.op-beam { position: absolute; inset: 0; z-index: 6; pointer-events: none; display: grid; place-items: center; }
.op-beam::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 60%); animation: kz-beam-bg 1.6s ease-out both; }
.op-beam .b-col { position: absolute; left: 50%; top: -10%; bottom: -10%; width: 220px; margin-left: -110px; filter: blur(14px);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--glow) 85%, #fff) 50%, transparent); animation: kz-beam-col 1.5s cubic-bezier(.2, .8, .2, 1) both; }
.op-beam .b-ring { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 6px solid var(--glow); box-shadow: 0 0 40px var(--glow), inset 0 0 30px var(--glow); animation: kz-beam-ring 1.2s ease-out both; }
.op-beam .b-ring.b2 { animation-delay: .18s; }
.op-beam.rb-secrete { --glow: #d9b8ff; }
.op-beam.rb-secrete .b-col { background: linear-gradient(90deg, transparent, #ffd1ea 30%, #c9fff0 45%, #cfe6ff 55%, #fff3b0 70%, transparent); }
.op-beam.rb-secrete .b-ring { border-color: #fff; box-shadow: 0 0 40px #ffd1ea, 0 0 70px #9fe8dc, inset 0 0 30px #cfe6ff; }
.op-beam.rb-commune .b-col, .op-beam.rb-rare .b-col { width: 140px; margin-left: -70px; }
@keyframes kz-beam-bg { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes kz-beam-col { 0% { transform: scaleX(0); opacity: 0; } 20% { transform: scaleX(1); opacity: 1; } 70% { opacity: .8; } 100% { transform: scaleX(.3); opacity: 0; } }
@keyframes kz-beam-ring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(7); opacity: 0; } }

/* l'eventail respire, et chaque carte face cachee laisse deviner sa rarete (aura de sa couleur) */
#kz[data-theme] .op2 .spread { gap: 0; }
#kz[data-theme] .sp-card { margin: 0 calc(var(--w) * .1); }
#kz[data-theme] .sp-card:not(.done) .sp-back { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--glow) 70%, transparent)); }
#kz[data-theme] .sp-card.ha-commune:not(.done) .sp-back { filter: drop-shadow(0 0 6px rgba(200, 200, 210, .35)); }
#kz[data-theme] .sp-card.ha-rare:not(.done) .sp-back { filter: drop-shadow(0 0 12px rgba(79, 168, 255, .7)); }
#kz[data-theme] .sp-card.ha-super-rare:not(.done) .sp-back { animation: kz-aura-sr 2s ease-in-out infinite; }
#kz[data-theme] .sp-card.ha-kizuna:not(.done) .sp-back { filter: drop-shadow(0 0 22px rgba(255, 50, 80, .95)); }
#kz[data-theme] .sp-card:not(.done)::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 16px; border-radius: 50%; background: var(--glow); filter: blur(12px); opacity: .55; pointer-events: none; }
#kz[data-theme] .sp-card.ha-commune:not(.done)::after { opacity: .2; }
@media (max-width: 760px) { #kz[data-theme] .sp-card { margin: 0 calc(var(--w) * -.12); } }
@media (prefers-reduced-motion: reduce) { .op-beam { display: none; } }

/* === Ouverture : le flip reste visible apres le tremblement ; plus lent pour UR et au-dessus === */
/* le tremblement passe sur le dos de la carte (et plus sur l'element qui se retourne, ce qui annulait le flip) */
#kz[data-theme] .f-card.charging .f-flip { animation: none !important; }
#kz[data-theme] .f-card.lv-r.charging .f-back { animation: f-wobble .45s ease-in-out; }
#kz[data-theme] .f-card.lv-sr.charging .f-back { animation: f-shake 1s ease-in; }
#kz[data-theme] .f-card.lv-ur.charging .f-back { animation: f-shake-hard 1.7s ease-in; }
#kz[data-theme] .f-card.lv-sec.charging .f-back { animation: f-heart 2.6s ease-in-out; }
#kz[data-theme] .f-card.lv-sr .f-flip { transition-duration: 1s; }
#kz[data-theme] .f-card.lv-ur .f-flip { transition: transform 1.9s cubic-bezier(.55, 0, .25, 1); }
#kz[data-theme] .f-card.lv-sec .f-flip { transition: transform 2.6s cubic-bezier(.6, 0, .2, 1); }

/* === Collections : grand toggle Series / Themes === */
.cols-page .tm-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(640px, 100%); margin: 8px auto 44px; padding: 8px; border-radius: 999px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule), 0 20px 40px -24px rgba(0, 0, 0, .6); }
.cols-page .tm-pill { position: absolute; top: 8px; bottom: 8px; left: 8px; width: calc(50% - 8px); border-radius: 999px;
  background: linear-gradient(135deg, #e4263f, #9e0c24); box-shadow: 0 10px 30px -8px rgba(200, 16, 46, .7), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .5s cubic-bezier(.3, 1.3, .4, 1); }
.cols-page .tm-toggle.is-theme .tm-pill { transform: translateX(100%); }
.cols-page .tm-toggle button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 16px 10px 14px; color: var(--ink-soft); display: grid; gap: 2px; justify-items: center; transition: color .3s; }
.cols-page .tm-toggle button b { font-family: var(--mincho); font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.cols-page .tm-toggle button small { font-size: 12px; letter-spacing: .18em; opacity: .75; }
.cols-page .tm-toggle button.on { color: #fff6ec; }
.cols-page .tm-toggle button:disabled { opacity: .35; cursor: default; }
.cols-page .tm-note { text-align: center; margin: 30px 0 -10px; }

/* === Collections : le fil rouge serpente de noeud en noeud === */
.tm-map { position: relative; margin-top: 70px; padding: 70px 0 90px; display: flex; flex-direction: column; gap: 120px; }
.tm-svg { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.tm-svg path { fill: none; stroke-linecap: round; }
.tm-line { stroke: #d7263d; stroke-width: 3.5; filter: drop-shadow(0 0 4px rgba(228, 38, 63, .6)); }
.tm-glow { stroke: rgba(228, 38, 63, .18); stroke-width: 16; }
#kz[data-theme="washi"] .tm-glow { stroke: rgba(200, 16, 46, .1); }
.tm-cap { position: relative; z-index: 1; align-self: center; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 6px; transform: rotate(-4deg);
  font-family: var(--mincho); font-weight: 800; font-size: 28px; color: #fff6ec; background: linear-gradient(135deg, #e4263f, #9e0c24); box-shadow: 0 10px 24px -6px rgba(200, 16, 46, .7); }
.tm-cap.tm-top { margin-bottom: -40px; }
.tm-cap.tm-end { margin-top: -40px; transform: rotate(4deg); }
.tm-stop { position: relative; z-index: 1; --kx: 20%; }
.tm-stop.odd { --kx: 80%; }
.tm-knot { position: absolute; left: var(--kx); top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; z-index: 2; display: grid; place-items: center; text-decoration: none;
  background: conic-gradient(#e4263f calc(var(--p) * 1%), var(--rule) 0); box-shadow: 0 0 0 6px var(--bg, #120c0b), 0 12px 30px -8px rgba(0, 0, 0, .7); transition: transform .35s cubic-bezier(.3, 1.4, .4, 1); }
#kz[data-theme="washi"] .tm-knot { box-shadow: 0 0 0 6px #f3ecdf, 0 12px 26px -10px rgba(90, 40, 30, .45); }
.tm-knot span { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mincho); font-weight: 800; font-size: 28px; color: var(--sumi); background: var(--lacquer, #1b1412); box-shadow: inset 0 0 0 1px var(--rule); }
.tm-knot.done { background: conic-gradient(#c9a35a 0 100%); box-shadow: 0 0 0 6px var(--bg, #120c0b), 0 0 30px rgba(201, 163, 90, .55); }
.tm-knot.done span { color: #c9a35a; }
.tm-stop:hover .tm-knot { transform: scale(1.12) rotate(-6deg); }
.tm-stop .col-tile { width: min(560px, calc(100% - var(--kx) - 90px)); margin-left: calc(var(--kx) + 70px); }
.tm-stop.odd .col-tile { margin-left: auto; margin-right: calc(100% - var(--kx) + 70px); width: min(560px, calc(var(--kx) - 90px)); }
@media (max-width: 760px) {
  .tm-map { gap: 70px; padding: 50px 0 60px; margin-top: 40px; }
  .tm-stop, .tm-stop.odd { --kx: 30px; }
  .tm-stop.odd { --kx: 44px; }
  .tm-knot { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .tm-knot span { width: 46px; height: 46px; font-size: 20px; }
  .tm-stop .col-tile, .tm-stop.odd .col-tile { width: auto; margin: 0 0 0 82px; }
  .tm-cap { align-self: flex-start; margin-left: 10px; width: 44px; height: 44px; font-size: 22px; }
  .cols-page .tm-toggle { margin-bottom: 30px; }
}
/* les tuiles alternent vraiment gauche / droite du fil */
.tm-stop { --kx: 14%; } .tm-stop.odd { --kx: 86%; }
#kz[data-theme] .tm-stop .col-tile { width: min(600px, calc(100% - var(--kx) - 100px)); margin: 0 0 0 calc(var(--kx) + 76px); }
#kz[data-theme] .tm-stop.odd .col-tile { width: min(600px, calc(var(--kx) - 100px)); margin: 0 0 0 calc(var(--kx) - 76px - min(600px, calc(var(--kx) - 100px))); }
@media (max-width: 760px) {
  .tm-stop { --kx: 30px; } .tm-stop.odd { --kx: 44px; }
  #kz[data-theme] .tm-stop .col-tile, #kz[data-theme] .tm-stop.odd .col-tile { width: auto; margin: 0 0 0 82px; }
}
/* toggle sous le resume ; apercu des cartes centre a droite de la tuile, plus grand */
.cols-page .tm-toggle { margin: 56px auto 0; }
#kz[data-theme] .tm-stop .col-tile .col-fan { top: 50%; right: 40px; margin-top: -72px; }
#kz[data-theme] .tm-stop .col-tile .col-fan .card { width: 100px; margin-left: -62px; }
@media (max-width: 760px) {
  #kz[data-theme] .tm-stop .col-tile .col-fan { right: 16px; margin-top: -52px; }
  #kz[data-theme] .tm-stop .col-tile .col-fan .card { width: 70px; margin-left: -44px; }
}
#kz[data-theme] .tm-stop .col-tile .col-fan { top: 34px; right: 52px; margin-top: 0; }
.tm-map { margin-top: 30px; }
@media (max-width: 760px) { #kz[data-theme] .tm-stop .col-tile .col-fan { top: 24px; right: 22px; margin-top: 0; } }
@media (max-width: 760px) { #kz[data-theme] .tm-stop .col-tile .col-fan > * { width: 64px !important; margin-left: -40px; } }

/* apercu des collections : un peu plus petit et decale vers la gauche */
#kz[data-theme] .tm-stop .col-tile .col-fan { right: 96px; top: 40px; }
#kz[data-theme] .tm-stop .col-tile .col-fan .card { width: 82px; margin-left: -52px; }
@media (max-width: 760px) { #kz[data-theme] .tm-stop .col-tile .col-fan { right: 40px; } #kz[data-theme] .tm-stop .col-tile .col-fan > * { width: 56px !important; margin-left: -36px; } }

/* vitrine : le nom sous la carte s'affiche en entier (2 lignes si besoin) */
#kz[data-theme] .vt-plinth { height: auto; min-height: 30px; padding: 6px 8px; }
#kz[data-theme] .vt-plinth span { white-space: normal; overflow: visible; text-overflow: clip; max-width: 100%; justify-content: center; text-align: center; line-height: 1.25; letter-spacing: .04em; flex-wrap: wrap; }

/* === Carte trophee : une oeuvre sur son piedestal === */
.trophy { position: relative; display: grid; justify-items: center; padding: 40px 0 10px; isolation: isolate; }
.trophy .tr-spot { position: absolute; top: -40px; left: 50%; width: 520px; height: 760px; margin-left: -260px; z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, color-mix(in srgb, var(--bc) 30%, rgba(255, 236, 200, .25)) 172deg, rgba(255, 240, 210, .18) 180deg, color-mix(in srgb, var(--bc) 30%, rgba(255, 236, 200, .25)) 188deg, transparent 200deg);
  filter: blur(6px); animation: tr-spot 6s ease-in-out infinite; }
@keyframes tr-spot { 50% { opacity: .7; } }
.trophy .tr-halo { position: absolute; top: 70px; left: 50%; width: 460px; height: 460px; margin-left: -230px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bc) 45%, transparent), transparent 70%); filter: blur(8px); animation: tr-halo 5s ease-in-out infinite; }
@keyframes tr-halo { 50% { transform: scale(1.08); opacity: .75; } }
.trophy .tr-motes i { position: absolute; left: calc(30% + var(--x, 0) * 1%); bottom: 120px; width: 4px; height: 4px; border-radius: 50%; background: #f1d9a0; box-shadow: 0 0 8px #f1d9a0; opacity: 0; animation: tr-mote 7s linear infinite; }
.trophy .tr-motes i:nth-child(odd) { background: color-mix(in srgb, var(--bc) 70%, #fff); }
.trophy .tr-motes i:nth-child(1) { --x: 4; animation-delay: -1s; } .trophy .tr-motes i:nth-child(2) { --x: 12; animation-delay: -3s; } .trophy .tr-motes i:nth-child(3) { --x: 20; animation-delay: -5s; }
.trophy .tr-motes i:nth-child(4) { --x: 27; animation-delay: -2s; } .trophy .tr-motes i:nth-child(5) { --x: 33; animation-delay: -6s; } .trophy .tr-motes i:nth-child(6) { --x: 38; animation-delay: -4s; }
.trophy .tr-motes i:nth-child(7) { --x: 8; animation-delay: -.5s; } .trophy .tr-motes i:nth-child(8) { --x: 16; animation-delay: -2.5s; } .trophy .tr-motes i:nth-child(9) { --x: 24; animation-delay: -4.5s; }
.trophy .tr-motes i:nth-child(10) { --x: 31; animation-delay: -6.5s; } .trophy .tr-motes i:nth-child(11) { --x: 36; animation-delay: -1.5s; } .trophy .tr-motes i:nth-child(12) { --x: 2; animation-delay: -3.5s; }
.trophy .tr-motes i:nth-child(13) { --x: 18; animation-delay: -5.5s; } .trophy .tr-motes i:nth-child(14) { --x: 29; animation-delay: -.2s; }
@keyframes tr-mote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-420px); opacity: 0; } }
.trophy .tr-float { position: relative; z-index: 2; animation: tr-float 6s ease-in-out infinite; }
.trophy .tr-float .card { --w: min(300px, 64vw); width: var(--w); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 60px -10px color-mix(in srgb, var(--bc) 60%, transparent); }
@keyframes tr-float { 50% { transform: translateY(-12px); } }
.trophy .tr-ghost { width: min(240px, 60vw); aspect-ratio: 63 / 88; border-radius: 10px; border: 2px dashed var(--rule); background: var(--panel); color: var(--ink-soft); cursor: pointer; display: grid; place-content: center; gap: 8px; }
.trophy .tr-ghost b { font-size: 46px; font-family: var(--mincho); color: var(--red); }
/* le piedestal : plateau dore, colonne de laque, plaque gravee */
.trophy .tr-pedestal { position: relative; z-index: 1; width: min(420px, 86vw); margin-top: -26px; display: grid; justify-items: center; }
.trophy .tr-top { width: 100%; height: 34px; border-radius: 50%; background: radial-gradient(60% 70% at 50% 35%, #fff3d0, #c9a35a 45%, #6b4a17 100%); box-shadow: 0 6px 0 #4a3210, 0 14px 30px rgba(0, 0, 0, .6), 0 0 40px -6px color-mix(in srgb, var(--bc) 60%, transparent); }
.trophy .tr-column { width: 78%; margin-top: 4px; padding: 22px 14px 26px; display: grid; justify-items: center;
  background: linear-gradient(90deg, #1a1210, #3b2a24 22%, #4a352d 50%, #3b2a24 78%, #1a1210); border-left: 2px solid #c9a35a; border-right: 2px solid #c9a35a;
  box-shadow: inset 0 10px 18px -8px rgba(0, 0, 0, .8); }
.trophy .tr-plaque { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 22px; border-radius: 3px; min-width: 70%;
  background: linear-gradient(180deg, #f1d9a0, #c9a35a 60%, #8a6a2e); color: #2a1a08; box-shadow: inset 0 1px 0 #fff3d0, 0 4px 12px rgba(0, 0, 0, .5); }
.trophy .tr-plaque b { font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.trophy .tr-plaque small { font-size: 12px; opacity: .8; }
.trophy .tr-plaque i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.trophy .tr-foot { width: 92%; height: 26px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #c9a35a, #6b4a17); box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .7); }
#kz[data-theme="washi"] .trophy .tr-column { background: linear-gradient(90deg, #2a1f1b, #4a352d 50%, #2a1f1b); }
/* la miniature dans la banniere, a droite du nom */
.p-banner { align-items: center; }
.p-tro-mini { position: relative; width: 92px; margin-left: 6px; margin-right: auto; display: grid; justify-items: center; flex: none; align-self: center; }
.p-tro-mini .card { --w: 82px; width: 82px; animation: tr-float 5s ease-in-out infinite; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8); }
.p-tro-mini .ptm-halo { position: absolute; inset: -10px -20px 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(241, 217, 160, .35), transparent 70%); pointer-events: none; }
.p-tro-mini .ptm-base { width: 96px; height: 10px; margin-top: 6px; border-radius: 50%; background: radial-gradient(60% 70% at 50% 35%, #fff3d0, #c9a35a 45%, #6b4a17); box-shadow: 0 3px 0 #4a3210, 0 6px 12px rgba(0, 0, 0, .5); }
.p-tro-mini .fr-img { display: none !important; }
.pe-trophy { max-height: 220px; }
.pe-tro.on { outline: 3px solid #c9a35a; outline-offset: 2px; }
@media (max-width: 760px) {
  .p-tro-mini { width: 64px; } .p-tro-mini .card { --w: 56px; width: 56px; } .p-tro-mini .ptm-base { width: 66px; }
  .trophy .tr-spot { width: 340px; margin-left: -170px; } .trophy .tr-halo { width: 300px; height: 300px; margin-left: -150px; }
}
@media (prefers-reduced-motion: reduce) { .trophy *, .p-tro-mini .card { animation: none !important; } }
/* la miniature colle au nom : le bloc du nom ne s'etire plus */
#kz[data-theme] .p-banner .p-id { flex: 0 1 auto; }
#kz[data-theme] .p-banner .p-tro-mini { margin-left: 28px; margin-right: auto; }
#kz[data-theme] .p-banner .p-id + .btn { margin-left: auto; }
/* apercu : les 3 cartes en eventail bien ouvert, chacune visible */
#kz[data-theme] .tm-stop .col-tile .col-fan { right: 110px; top: 34px; }
#kz[data-theme] .tm-stop .col-tile .col-fan .card { width: 80px; margin-left: -18px; transform-origin: 50% 110%; }
#kz[data-theme] .tm-stop .col-tile .col-fan .card:first-child { margin-left: 0; }
#kz[data-theme] .tm-stop .col-tile .col-fan .card:nth-child(1):not(:last-child) { translate: 0 8px; }
#kz[data-theme] .tm-stop .col-tile .col-fan .card:nth-child(3) { translate: 0 8px; }
@media (max-width: 760px) {
  #kz[data-theme] .tm-stop .col-tile .col-fan { right: 30px; }
  #kz[data-theme] .tm-stop .col-tile .col-fan > * { width: 54px !important; margin-left: -14px; }
  #kz[data-theme] .tm-stop .col-tile .col-fan > :first-child { margin-left: 0; }
}
#kz[data-theme] .tm-stop .col-tile .col-fan > * { width: 80px; margin-left: -18px; }
#kz[data-theme] .tm-stop .col-tile .col-fan > :first-child { margin-left: 0; }
@media (max-width: 760px) { #kz[data-theme] .tm-stop .col-tile .col-fan > * { width: 54px !important; margin-left: -14px; } #kz[data-theme] .tm-stop .col-tile .col-fan > :first-child { margin-left: 0; } }

/* ---- Fiche carte sans ascenseur (24/11) : sur PC les commandes passent a droite, la carte seule a gauche ---- */
html:has(.modal-bg) { overflow: hidden; scrollbar-gutter: stable; }
.modal-bg, .modal { overscroll-behavior: contain; }
@media (min-width: 761px) {
  #kz[data-theme] .modal.zoom .card-detail { grid-template-columns: auto minmax(260px, 1fr); grid-template-rows: 1fr auto auto auto 1fr; align-items: center; column-gap: 44px; row-gap: 14px; }
  #kz[data-theme] .modal.zoom .detail-card { display: contents; }
  #kz[data-theme] .modal.zoom .detail-card-slot { grid-column: 1; grid-row: 1 / -1; align-self: center; }
  #kz[data-theme] .modal.zoom .detail-info { grid-column: 2; grid-row: 2; align-self: end; }
  #kz[data-theme] .modal.zoom #view-seg { grid-column: 2; grid-row: 3; justify-self: start; margin: 6px 0 0; }
  #kz[data-theme] .modal.zoom .skin-status { grid-column: 2; grid-row: 4; justify-self: start; text-align: left; align-items: flex-start; margin: 0; }
  #kz[data-theme] .modal.zoom [data-full] { grid-column: 2; grid-row: 5; justify-self: start; align-self: start; margin: 0; }
  #kz[data-theme] .modal.zoom .card { --w: min(420px, 40vw, calc((100vh - 300px) * 63 / 88)); }
}

/* =====================================================================
   DEFI DE LA SEMAINE + MISSIONS (25/11/2026) — style « Fil rouge »
   ===================================================================== */
#kz[data-theme] .nav a .nav-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--washi), 0 0 10px var(--red-glow); }
#kz[data-theme] .nav a .nav-dot[hidden] { display: none; }
@media (max-width: 760px) { #kz[data-theme] .nav a .nav-dot { top: 4px; right: calc(50% - 16px); } }

/* recompense de la semaine passee */
#kz[data-theme] .ch-reward { display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 28px; background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--gold); border-radius: 4px; animation: ch-in .5s cubic-bezier(.2, .8, .2, 1); }
#kz[data-theme] .ch-reward > div { flex: 1; display: grid; gap: 3px; }
#kz[data-theme] .ch-reward b { font-family: var(--mincho); font-size: 19px; color: var(--sumi); display: inline-flex; align-items: center; gap: 6px; }
#kz[data-theme] .ch-reward b .ico { width: 18px; height: 18px; color: var(--gold); }
#kz[data-theme] .ch-reward small { color: var(--ink-soft); }
#kz[data-theme] .ch-reward em { color: var(--gold); font-style: normal; font-weight: 700; }
#kz[data-theme] .ch-reward-hk { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--red-btn); color: #fbf3e6; font-family: var(--mincho); font-weight: 800; font-size: 28px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18), 0 10px 24px -10px var(--red-glow); transform: rotate(-4deg); }
@keyframes ch-in { from { opacity: 0; transform: translateY(-8px); } }

/* en-tete du defi */
#kz[data-theme] .ch-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; padding: 40px 44px; background: var(--sheet); background-image: var(--grain); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6); }
#kz[data-theme] .ch-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--red), color-mix(in srgb, var(--cc) 70%, var(--red))); }
#kz[data-theme] .ch-hero-art { position: absolute; right: 300px; top: 50%; transform: translateY(-50%); pointer-events: none; }
#kz[data-theme] .ch-hero-art span { font-family: var(--mincho); font-weight: 800; font-size: 300px; line-height: 1; color: var(--cc); opacity: .07; }
#kz[data-theme] .ch-hero-l, #kz[data-theme] .ch-hero-r { position: relative; }
#kz[data-theme] .ch-hero h1 { font-family: var(--mincho); font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; margin: 14px 0 10px; color: var(--sumi); }
#kz[data-theme] .ch-blurb { font-family: var(--mincho); font-size: 17px; color: var(--ink); max-width: 560px; margin: 0 0 22px; }
#kz[data-theme] .ch-tags { display: flex; flex-wrap: wrap; gap: 10px; }
#kz[data-theme] .ch-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; text-decoration: none; }
#kz[data-theme] .ch-tag small { color: var(--ink-soft); font-weight: 500; font-size: 11.5px; }
#kz[data-theme] .ch-feat { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold); }
#kz[data-theme] .ch-hero-r { border-left: 1px solid var(--rule); padding-left: 32px; display: grid; align-content: start; gap: 10px; }
#kz[data-theme] .ch-clock small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
#kz[data-theme] .ch-clock b { font-family: var(--mincho); font-weight: 800; font-size: 30px; color: var(--sumi); font-variant-numeric: tabular-nums; }
#kz[data-theme] .ch-rules-t { margin-top: 14px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); font-weight: 700; }
#kz[data-theme] .ch-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#kz[data-theme] .ch-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
#kz[data-theme] .ch-rules li .ico, #kz[data-theme] .ch-rules li > i { width: 18px; height: 18px; flex: none; margin-top: 1px; font-style: normal; font-weight: 800; text-align: center; }
#kz[data-theme] .ch-rules li.ok .ico { color: #5c9a6a; }
#kz[data-theme] .ch-rules li.ko { color: var(--red); }
#kz[data-theme] .ch-how { justify-self: start; margin-top: 8px; background: none; border: 0; padding: 0; color: var(--ink-soft); font: inherit; font-size: 13px; text-decoration: underline dotted; cursor: pointer; }
#kz[data-theme] .ch-how:hover { color: var(--red); }

/* l'equipe : 5 cases en grand */
#kz[data-theme] .ch-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; padding: 26px 18px 8px; }
#kz[data-theme] .ch-slot { position: relative; aspect-ratio: 63 / 88; border-radius: 6px; }
#kz[data-theme] .ch-slot.empty { display: grid; place-content: center; gap: 6px; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 9px, var(--rule) 9px 10px); border: 1.5px dashed var(--rule-2); color: var(--ink-soft); font: inherit; cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
#kz[data-theme] .ch-slot.empty b { font-family: var(--mincho); font-size: 44px; font-weight: 500; line-height: 1; }
#kz[data-theme] .ch-slot.empty:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
#kz[data-theme] .ch-slot.full { cursor: pointer; }
#kz[data-theme] .ch-slot.full::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -16px; height: 3px; border-radius: 3px; background: var(--rc); box-shadow: 0 0 18px var(--rc); opacity: .85; }
#kz[data-theme] .ch-slot-card .card { --w: 100%; width: 100%; box-shadow: 0 22px 34px -18px rgba(0, 0, 0, .75), 0 0 34px -12px var(--rc); }
#kz[data-theme] .ch-x { position: absolute; top: -12px; right: -12px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--sheet); color: var(--sumi); font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
#kz[data-theme] .ch-x:hover { background: var(--red-btn); color: #fff; border-color: var(--red-btn); }
#kz[data-theme] .ch-slot.gone .ch-slot-card { filter: grayscale(1) brightness(.6); }
#kz[data-theme] .ch-gone { position: absolute; left: 6%; right: 6%; top: 44%; z-index: 4; padding: 6px; text-align: center; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--red-btn); border-radius: 3px; }

/* le score, ligne par ligne */
#kz[data-theme] .ch-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 40px; padding: 22px 26px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
#kz[data-theme] .ch-total { display: grid; justify-items: center; padding-right: 26px; border-right: 1px solid var(--rule); min-width: 120px; }
#kz[data-theme] .ch-total b { font-family: var(--mincho); font-weight: 800; font-size: 52px; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
#kz[data-theme] .ch-total small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
#kz[data-theme] .ch-lines { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 16px; color: var(--sumi); font-variant-numeric: tabular-nums; }
#kz[data-theme] .ch-line i { font-style: normal; color: var(--ink-soft); }
#kz[data-theme] .ch-line.k-link, #kz[data-theme] .ch-line.k-bond { color: var(--red); font-weight: 700; }
#kz[data-theme] .ch-line.k-link i, #kz[data-theme] .ch-line.k-bond i { color: var(--red); }
#kz[data-theme] .ch-lines em { font-style: normal; color: var(--rule-2); }
#kz[data-theme] .ch-lines > b { font-family: var(--mincho); font-size: 20px; }
#kz[data-theme] .ch-hints, #kz[data-theme] .ch-errors { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
#kz[data-theme] .ch-hints li { color: var(--ink-soft); }
#kz[data-theme] .ch-hints li::before { content: "◇ "; }
#kz[data-theme] .ch-errors li { color: var(--red); font-weight: 600; }
#kz[data-theme] .ch-errors li::before { content: "✕ "; }
#kz[data-theme] .ch-lock-row { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
#kz[data-theme] .ch-state { color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
#kz[data-theme] .ch-state .ico { width: 17px; height: 17px; color: #5c9a6a; }

/* classement */
#kz[data-theme] .ch-board { display: grid; gap: 6px; }
#kz[data-theme] .ch-board.me-only { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule-2); }
#kz[data-theme] .ch-row { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto 90px; align-items: center; gap: 14px; padding: 10px 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; color: var(--sumi); text-decoration: none; transition: border-color .2s, transform .2s; }
#kz[data-theme] .ch-row:hover { border-color: var(--rule-2); transform: translateX(3px); }
#kz[data-theme] .ch-row.me { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
#kz[data-theme] .ch-rank { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; font-family: var(--mincho); font-weight: 800; font-size: 16px; color: var(--ink); border: 1px solid var(--rule-2); }
#kz[data-theme] .ch-rank.r1 { background: var(--red-btn); color: #fff; border-color: var(--red-btn); }
#kz[data-theme] .ch-rank.r2 { background: var(--gold); color: #1b1714; border-color: var(--gold); }
#kz[data-theme] .ch-rank.r3 { background: var(--sheet-2); color: var(--sumi); border-color: var(--gold); }
#kz[data-theme] .ch-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#kz[data-theme] .ch-mini { display: flex; gap: 4px; }
#kz[data-theme] .ch-mini img, #kz[data-theme] .ms-run-cards img { width: 34px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 3px; border: 1.5px solid var(--rc); }
#kz[data-theme] .ch-pts { justify-self: end; font-family: var(--mincho); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
#kz[data-theme] .ch-pts small { font-family: var(--gothic); font-size: 11px; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
#kz[data-theme] .ch-hist-t { margin: 30px 0 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); font-weight: 700; }
#kz[data-theme] .ch-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
#kz[data-theme] .ch-past { display: grid; gap: 6px; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
#kz[data-theme] .ch-past small { color: var(--ink-soft); }
#kz[data-theme] .ch-past > b { font-family: var(--mincho); font-size: 17px; }
#kz[data-theme] .ch-past ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
#kz[data-theme] .ch-past li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
#kz[data-theme] .ch-past li .ch-rank { width: 24px; height: 24px; font-size: 12px; }
#kz[data-theme] .ch-past li a { flex: 1; color: var(--sumi); font-weight: 600; text-decoration: none; }
#kz[data-theme] .ch-past li i { font-style: normal; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* missions : ordres de mission sur papier washi */
#kz[data-theme] .ms-intro { margin: -6px 0 22px; max-width: 640px; }
#kz[data-theme] .ms-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
#kz[data-theme] .ms-order { position: relative; overflow: hidden; display: grid; align-content: start; gap: 8px; padding: 26px 24px 22px; background: var(--sheet); background-image: var(--grain), linear-gradient(180deg, color-mix(in srgb, var(--mc) 7%, transparent), transparent 40%); border: 1px solid var(--rule); border-top: 3px solid var(--mc); border-radius: 4px; box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .6); transition: transform .25s, box-shadow .25s; }
#kz[data-theme] .ms-order:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); }
#kz[data-theme] .ms-hanko { position: absolute; top: 18px; right: 18px; width: 58px; height: 58px; display: grid; place-content: center; text-align: center; border: 2.5px solid var(--red); border-radius: 6px; color: var(--red); transform: rotate(6deg); font-family: var(--mincho); font-weight: 800; line-height: .95; opacity: .9; }
#kz[data-theme] .ms-hanko b { font-size: 24px; }
#kz[data-theme] .ms-hanko i { font-style: normal; font-size: 15px; }
#kz[data-theme] .ms-kind { position: absolute; right: -14px; bottom: -40px; font-family: var(--mincho); font-weight: 800; font-size: 170px; line-height: 1; color: var(--mc); opacity: .07; pointer-events: none; }
#kz[data-theme] .ms-eyebrow { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
#kz[data-theme] .ms-order h3 { font-family: var(--mincho); font-weight: 800; font-size: 23px; margin: 0; padding-right: 70px; color: var(--sumi); }
#kz[data-theme] .ms-order p { margin: 0; font-size: 14px; }
#kz[data-theme] .ms-req { list-style: none; margin: 6px 0; padding: 10px 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink); border-top: 1px dashed var(--rule-2); border-bottom: 1px dashed var(--rule-2); }
#kz[data-theme] .ms-req .ico { width: 15px; height: 15px; vertical-align: -3px; }
#kz[data-theme] .ms-reward { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--mincho); }
#kz[data-theme] .ms-reward b { font-size: 26px; font-weight: 800; color: var(--sumi); }
#kz[data-theme] .ms-reward .ico { width: 20px; height: 20px; color: var(--gold); }
#kz[data-theme] .ms-reward small { width: 100%; font-family: var(--gothic); font-size: 12px; color: var(--gold); }
#kz[data-theme] .ms-order .btn { justify-self: start; margin-top: 6px; position: relative; }
#kz[data-theme] .ms-order.sent { opacity: .62; }
#kz[data-theme] .ms-order.sent:hover { transform: none; }
#kz[data-theme] .ms-stamp { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 12px; border: 1.5px solid var(--ink-soft); border-radius: 3px; color: var(--ink-soft); font-weight: 700; font-size: 13px; transform: rotate(-3deg); }
#kz[data-theme] .ms-stamp .ico { width: 15px; height: 15px; }
#kz[data-theme] .ms-sub { margin: 34px 0 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); font-weight: 700; }
#kz[data-theme] .ms-active { display: grid; gap: 10px; }
#kz[data-theme] .ms-run { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; }
#kz[data-theme] .ms-run.ready { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent), 0 20px 40px -26px var(--gold); }
#kz[data-theme] .ms-run-cards { display: flex; gap: 5px; }
#kz[data-theme] .ms-run-info { display: grid; gap: 6px; }
#kz[data-theme] .ms-run-info b { font-family: var(--mincho); font-size: 17px; }
#kz[data-theme] .ms-run-info small { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
#kz[data-theme] .ms-run .bar { height: 5px; }
#kz[data-theme] .ms-run .bar i { background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1s linear; }
#kz[data-theme] .ms-run.ready .btn-gold { animation: ms-pulse 1.6s ease-in-out infinite; }
@keyframes ms-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 25%, transparent); } }
/* la pluie de cristaux */
.ms-gem { position: fixed; z-index: 400; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: #c9a35a; pointer-events: none; filter: drop-shadow(0 0 6px rgba(201, 163, 90, .8)); animation: ms-gem 1.15s cubic-bezier(.5, 0, .3, 1) both; }
.ms-gem .ico { width: 100%; height: 100%; }
@keyframes ms-gem { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 25% { transform: translate(var(--sx), var(--sy)) scale(1.15); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.5); opacity: .2; } }
/* album : carte en mission */
#kz[data-theme] .album-pocket.on-mission .card { filter: saturate(.55) brightness(.82); }
#kz[data-theme] .ms-ribbon { position: absolute; left: -4px; top: 14px; z-index: 6; padding: 2px 8px 2px 6px; background: var(--red-btn); color: #fbf3e6; font-family: var(--mincho); font-weight: 700; font-size: 11px; letter-spacing: .1em; border-radius: 0 2px 2px 0; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6); pointer-events: none; }

/* encart de l'accueil */
#kz[data-theme] .ch-home { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--sumi); border-left: 3px solid var(--red); transition: transform .2s, border-color .2s; }
#kz[data-theme] .ch-home:hover { transform: translateY(-2px); }
#kz[data-theme] .ch-home > div { display: grid; gap: 3px; min-width: 0; }
#kz[data-theme] .ch-home b { font-family: var(--mincho); font-size: 17px; }
#kz[data-theme] .ch-home-hk { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 5px; background: var(--red-btn); color: #fbf3e6; font-family: var(--mincho); font-weight: 800; font-size: 22px; transform: rotate(-4deg); }
#kz[data-theme] .ch-home-st { font-size: 13px; color: var(--ink); }
#kz[data-theme] .ch-home-st b { font-family: inherit; font-size: inherit; color: var(--red); }
#kz[data-theme] .ch-home-ready { justify-self: start; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #1b1714; font-size: 12px; font-weight: 700; }

/* selecteur de cartes */
#kz[data-theme] .kp-sub { margin: -4px 0 4px; }
#kz[data-theme] .kp-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#kz[data-theme] .kp-tools .input { flex: 1 1 220px; }
#kz[data-theme] .kp-sel { display: flex; flex-wrap: wrap; gap: 8px; }
#kz[data-theme] .kp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid var(--rc, var(--rule)); border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--sheet-2); }
#kz[data-theme] .kp-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; }
#kz[data-theme] .kp-chip b { color: var(--ink-soft); }
#kz[data-theme] .kp-chip.empty { width: 31px; height: 31px; padding: 0; justify-content: center; border: 1.5px dashed var(--rule-2); color: var(--ink-soft); cursor: default; background: none; }
#kz[data-theme] .kp-grid { max-height: 50vh; }
#kz[data-theme] .kp-grid .pe-pick.off { opacity: .38; filter: grayscale(.8); }
#kz[data-theme] .kp-why { position: absolute; left: 0; right: 0; top: 44%; text-align: center; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
#kz[data-theme] .kp-b { position: absolute; right: 4px; top: 26px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border-radius: 3px; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
#kz[data-theme] .kp-b + .kp-b { top: 50px; }
#kz[data-theme] .kp-b + .kp-b + .kp-b { top: 74px; }
#kz[data-theme] .kp-b.th { background: var(--red-btn); color: #fff; font-family: var(--mincho); }
#kz[data-theme] .kp-b.ft { background: var(--gold); color: #1b1714; }
#kz[data-theme] .kp-b.aw { background: var(--rc-sec); color: #2b2140; }
#kz[data-theme] .kp-b.dup { background: var(--sheet); color: var(--sumi); }
#kz[data-theme] .kp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
#kz[data-theme] .kp-foot #kp-info { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
#kz[data-theme] .kp-total { font-family: var(--mincho); font-size: 24px; color: var(--red); }
#kz[data-theme] .kp-okr { color: #5c9a6a; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
#kz[data-theme] .kp-okr .ico { width: 16px; height: 16px; }
#kz[data-theme] .kp-kor { color: var(--red); font-weight: 600; }
#kz[data-theme] .ch-howto ul { margin: 10px 0; padding-left: 18px; display: grid; gap: 8px; text-align: left; }

/* Studio */
#kz[data-theme] .adm-ch { display: grid; gap: 18px; }
#kz[data-theme] .adm-clock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-left: 3px solid var(--gold); }
#kz[data-theme] .adm-clock b { margin-right: 6px; }
#kz[data-theme] .adm-weeks { display: grid; gap: 8px; }
#kz[data-theme] .adm-week { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; }
#kz[data-theme] .adm-week > div:first-child { display: grid; gap: 3px; }
#kz[data-theme] .adm-week.on { border-color: var(--red); }
#kz[data-theme] .adm-week-b { display: flex; gap: 6px; flex: none; }
#kz[data-theme] .adm-badge { justify-self: start; padding: 1px 8px; border-radius: 3px; font-size: 11px; border: 1px solid var(--rule-2); color: var(--ink-soft); }
#kz[data-theme] .adm-badge.set { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
#kz[data-theme] .adm-form { display: grid; gap: 12px; }
#kz[data-theme] .adm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
#kz[data-theme] .adm-rule { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
#kz[data-theme] .adm-rule select.input { width: auto; flex: 1 1 200px; }
#kz[data-theme] .adm-n { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13px; }
#kz[data-theme] .adm-n .input { width: 70px; }
#kz[data-theme] .adm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
#kz[data-theme] .adm-best { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--rule); border-radius: 4px; }
#kz[data-theme] .adm-best > b { font-family: var(--mincho); font-size: 26px; color: var(--red); }
#kz[data-theme] .adm-best.bad { border-color: var(--red); }
#kz[data-theme] .adm-best-cards { display: flex; gap: 22px; flex-wrap: wrap; padding: 18px 10px 6px; }
#kz[data-theme] .adm-best-cards .card { --w: 130px; }
#kz[data-theme] .ch-err { color: var(--red); font-weight: 700; }

/* telephone */
@media (max-width: 900px) {
  #kz[data-theme] .ch-hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  #kz[data-theme] .ch-hero-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
  #kz[data-theme] .ch-hero-art { right: -20px; top: 30%; }
  #kz[data-theme] .ch-hero-art span { font-size: 220px; }
  #kz[data-theme] .ms-offers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #kz[data-theme] .ch-slots { gap: 12px 10px; padding: 18px 4px 4px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #kz[data-theme] .ch-slot { grid-column: span 2; }
  #kz[data-theme] .ch-slot:nth-child(4) { grid-column: 2 / span 2; }
  #kz[data-theme] .ch-slot.full::after { bottom: -9px; }
  #kz[data-theme] .ch-x { top: -9px; right: -9px; width: 26px; height: 26px; }
  #kz[data-theme] .ch-score { grid-template-columns: 1fr; gap: 14px; padding: 18px; margin-top: 26px; }
  #kz[data-theme] .ch-total { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
  #kz[data-theme] .ch-lines { font-size: 14.5px; }
  #kz[data-theme] .ch-lock-row { justify-content: stretch; }
  #kz[data-theme] .ch-lock-row .btn { width: 100%; justify-content: center; }
  #kz[data-theme] .ch-row { grid-template-columns: 34px auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  #kz[data-theme] .ch-row .ch-mini { grid-column: 3 / 5; grid-row: 2; }
  #kz[data-theme] .ch-mini img { width: 26px; }
  #kz[data-theme] .ch-rank { width: 30px; height: 30px; }
  #kz[data-theme] .ms-run { grid-template-columns: 1fr; gap: 10px; }
  #kz[data-theme] .ms-run .btn { justify-self: stretch; justify-content: center; }
  #kz[data-theme] .ch-reward { flex-wrap: wrap; }
  #kz[data-theme] .kp-grid { max-height: 44vh; }
  #kz[data-theme] .kp-modal .p-edit { gap: 10px; }
  #kz[data-theme] .kp-tools #kp-rar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; min-width: 0; flex: 1 1 100%; }
  #kz[data-theme] .kp-modal .p-edit, #kz[data-theme] .kp-modal .p-edit > * { min-width: 0; max-width: 100%; }
  #kz[data-theme] .kp-modal .p-edit { grid-template-columns: minmax(0, 1fr); }
  #kz[data-theme] .kp-chip { font-size: 0; gap: 0; padding: 2px; position: relative; }
  #kz[data-theme] .kp-chip img { width: 34px; height: 34px; }
  #kz[data-theme] .kp-chip b { position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--sheet); border: 1px solid var(--rule-2); font-size: 11px; line-height: 1; }
  #kz[data-theme] .kp-chip.empty { width: 40px; height: 40px; font-size: 13px; }
  #kz[data-theme] .kp-foot #kp-info .muted { font-size: 12px; }
  #kz[data-theme] .kp-tools #kp-rar .chip { flex: none; }
  #kz[data-theme] .kp-sub { font-size: 13px; }
  #kz[data-theme] .kp-foot { flex-wrap: wrap; }
  #kz[data-theme] .kp-foot .btn { width: 100%; justify-content: center; }
}

/* Onglet Challenges (28/11) : missions dans une colonne a droite qui reste visible, comme le fil de l'accueil */
main:has(> .page > .ch-cols) { max-width: 1640px; }
.ch-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.ch-main { min-width: 0; }
.ch-side { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 6px; }
.ch-side .ms-sec { margin-top: 0; }
.ch-side .section-head { flex-wrap: wrap; gap: 4px 12px; }
#kz[data-theme] .ch-side .ms-offers { grid-template-columns: 1fr; gap: 14px; }
#kz[data-theme] .ch-side .ms-order { padding: 20px 20px 18px; }
#kz[data-theme] .ch-side .ms-run { grid-template-columns: 1fr; gap: 10px; }
#kz[data-theme] .ch-side .ms-run .btn { justify-self: stretch; justify-content: center; }
@media (max-width: 1180px) {
  .ch-cols { grid-template-columns: 1fr; }
  .ch-side { position: static; max-height: none; overflow: visible; padding-right: 0; margin-top: 40px; }
  #kz[data-theme] .ch-side .ms-offers { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Booster du jour : -50 % une fois par jour (28/11) */
.px-old { opacity: .55; font-weight: 500; margin-right: 2px; }
.px-tag { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: var(--gold, #d8b25a); color: #1a1208; white-space: nowrap; }
.booster-actions .px-tag { margin-left: 0; align-self: center; }

/* Perf (28/11) : auras de l'ouverture sans ombre animee (un filtre anime oblige a repeindre a chaque image).
   L'ombre reste fixe ; la pulsation passe par un halo dont seules l'opacite et l'echelle bougent. */
#kz[data-theme] .op-drop.aura-sr .pack { animation: pack-float 3s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(212, 173, 85, .7)); }
#kz[data-theme] .op-drop.aura-ur .pack { animation: pack-float 3s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(143, 98, 212, .8)); }
#kz[data-theme] .op-drop.aura-sec .pack { animation: pack-float 3s ease-in-out infinite; filter: drop-shadow(0 0 24px #efd9ff); }
#kz[data-theme] .op-aura { position: absolute; left: 50%; top: 50%; width: min(78vw, 520px); aspect-ratio: 1; margin: calc(min(78vw, 520px) / -2) 0 0 calc(min(78vw, 520px) / -2);
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: .5; will-change: opacity, transform; animation: kz-halo 2s ease-in-out infinite; }
#kz[data-theme] .op-drop.aura-sr .op-aura { background: radial-gradient(closest-side, rgba(241, 217, 160, .55), rgba(212, 173, 85, .18) 55%, transparent 72%); }
#kz[data-theme] .op-drop.aura-ur .op-aura { background: radial-gradient(closest-side, rgba(187, 148, 232, .65), rgba(143, 98, 212, .22) 55%, transparent 72%); animation-duration: 1.8s; }
#kz[data-theme] .op-drop.aura-sec .op-aura { background: radial-gradient(closest-side, rgba(239, 217, 255, .7), rgba(159, 232, 220, .3) 45%, rgba(255, 207, 178, .18) 60%, transparent 74%); animation: kz-halo 2.4s ease-in-out infinite, kz-halo-spin 9s linear infinite; }
#kz[data-theme] .stage.torn .op-aura { opacity: 0; animation: none; transition: opacity .4s; }
@keyframes kz-halo { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: .95; transform: scale(1.06); } }
@keyframes kz-halo-spin { to { rotate: 360deg; } }
#kz[data-theme] .sp-card.h-sr:not(.done) .sp-back { animation: none; filter: drop-shadow(0 0 12px rgba(212, 173, 85, .7)); }
#kz[data-theme] .sp-card.h-ur:not(.done) .sp-back { animation: none; filter: drop-shadow(0 0 16px rgba(143, 98, 212, .85)); }
#kz[data-theme] .sp-card.h-sec:not(.done) .sp-back { animation: none; filter: drop-shadow(0 0 18px #efd9ff); }
#kz[data-theme] .sp-card:is(.h-sr, .h-ur, .h-sec):not(.done)::before { content: ""; position: absolute; inset: -18%; border-radius: 30%; z-index: -1; pointer-events: none;
  opacity: .4; will-change: opacity, transform; animation: kz-halo 1.8s ease-in-out infinite; }
#kz[data-theme] .sp-card.h-sr:not(.done)::before { background: radial-gradient(closest-side, rgba(241, 217, 160, .5), transparent 75%); }
#kz[data-theme] .sp-card.h-ur:not(.done)::before { background: radial-gradient(closest-side, rgba(187, 148, 232, .6), transparent 75%); animation-duration: 1.6s; }
#kz[data-theme] .sp-card.h-sec:not(.done)::before { background: radial-gradient(closest-side, rgba(239, 217, 255, .65), rgba(159, 232, 220, .25) 55%, transparent 78%); animation-duration: 2.2s; }
#kz[data-theme] .op-spark-pool { left: 0; top: 0; opacity: 0; animation: none; will-change: transform, opacity; }
/* Chances par emplacement (28/11) : 4 colonnes, chiffres alignes a droite */
#kz[data-theme] .odds.odds-slots span { display: block; text-align: right; font-variant-numeric: tabular-nums; }
#kz[data-theme] .odds.odds-slots span:nth-child(4n+1) { display: flex; align-items: center; gap: 6px; text-align: left; }
#kz[data-theme] .odds.odds-slots span:not(:nth-child(4n+1)):not(.muted) { font-family: var(--mincho); font-weight: 700; text-align: right; }
#kz[data-theme] .odds.odds-slots span:nth-child(4n+1):not(.muted) { font-family: inherit; font-weight: 500; }

/* ================= Mur des voeux (28/11/2026) =================
   Une corde tressee rouge (shimenawa) sous une poutre laquee ; des ema (plaques de bois) suspendus a des hauteurs differentes,
   qui se balancent. Seules transform/rotate/opacity sont animees (fluide). */
#kz[data-theme] .pill.fils .pill-ico { color: var(--red); }
#kz[data-theme] .pill.fils { text-decoration: none; }
#kz[data-theme] .vx-page { --wood: #c79a5f; --wood-2: #b5864c; --wood-ink: #2b1b0f; padding-bottom: 40px; }
#kz[data-theme] .vx-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; margin: 10px 0 6px; }
#kz[data-theme] .vx-head h1 { font-family: var(--mincho); font-weight: 800; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; margin: 14px 0 12px; color: var(--sumi); }
#kz[data-theme] .vx-head h1 em { font-style: normal; color: var(--red); }
#kz[data-theme] .vx-lead { max-width: 640px; color: var(--ink); font-size: 15px; line-height: 1.7; margin: 0; }
#kz[data-theme] .vx-lead b { color: var(--sumi); }
/* la bobine de fil */
#kz[data-theme] .vx-spool { display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 16px; border: 1px solid var(--rule); background: var(--sheet); box-shadow: var(--drop); }
#kz[data-theme] .vx-spool-art { position: relative; width: 46px; height: 58px; }
#kz[data-theme] .vx-spool-art .vx-cap { position: absolute; left: 0; right: 0; top: 0; height: 9px; border-radius: 3px; background: linear-gradient(180deg, #8a6236, #5a3d1f); }
#kz[data-theme] .vx-spool-art .vx-cap.b { top: auto; bottom: 0; }
#kz[data-theme] .vx-spool-art .vx-wind { position: absolute; left: 6px; right: 6px; top: 8px; bottom: 8px; border-radius: 2px;
  background: repeating-linear-gradient(-14deg, #e4263f 0 3px, #a30d25 3px 4.5px, #ff4d62 4.5px 6px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), 0 0 18px rgba(228, 38, 63, .35); }
#kz[data-theme] .vx-spool-art .vx-loose { position: absolute; right: -14px; top: 26px; width: 22px; height: 26px; border: 2px solid #e4263f; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; transform: rotate(18deg); }
#kz[data-theme] .vx-spool-n { display: grid; }
#kz[data-theme] .vx-spool-n b { font-family: var(--mincho); font-weight: 800; font-size: 34px; line-height: 1; color: var(--sumi); font-variant-numeric: tabular-nums; }
#kz[data-theme] .vx-spool-n small { color: var(--ink-soft); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
/* la poutre et la corde */
#kz[data-theme] .vx-rack { position: relative; margin: 34px 0 10px; padding-top: 22px; }
#kz[data-theme] .vx-beam { position: absolute; left: -2%; right: -2%; top: 0; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, #3a2516 0%, #24160d 60%, #170d07 100%); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 220, 170, .14); }
#kz[data-theme] .vx-beam span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mincho); font-weight: 800; font-size: 13px; color: #c9a35a; letter-spacing: .3em; opacity: .8; }
#kz[data-theme] .vx-row { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 0 0 30px; }
#kz[data-theme] .ema-hang { position: relative; flex: 0 1 236px; min-width: 196px; display: flex; flex-direction: column; align-items: center; padding: 0 9px; }
/* la corde tressee : un segment par plaque, ils se rejoignent en une seule corde */
#kz[data-theme] .ema-hang::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 9px; z-index: 2;
  background: repeating-linear-gradient(115deg, #e4263f 0 6px, #9e0d23 6px 9px, #ff5a6e 9px 11px); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
#kz[data-theme] .ema-hang:first-child::before { left: 9px; border-radius: 5px 0 0 5px; }
#kz[data-theme] .ema-hang:last-child::before { right: 9px; border-radius: 0 5px 5px 0; }
#kz[data-theme] .ema-hang::after { content: ""; position: absolute; top: -9px; left: calc(50% - 7px); width: 14px; height: 14px; z-index: 3; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff7183, #c8102e 60%, #7d0718); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
#kz[data-theme] .ema-string { display: block; width: 2px; height: calc(var(--drop) + 18px); background: linear-gradient(180deg, #e4263f, #b10f28); z-index: 1; }
/* le balancement et l'ombre portent sur l'enveloppe : l'ombre est calculee une fois, puis la carte graphique fait tourner le tout */
#kz[data-theme] .ema-sway { width: 100%; margin-top: -6px; transform-origin: 50% -30px; rotate: var(--tilt); filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .5));
  animation: ema-sway calc(5.2s + var(--i) * .7s) ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); will-change: rotate; }
#kz[data-theme] .ema { position: relative; width: 100%;
  padding: 46px 18px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--wood-ink);
  clip-path: polygon(50% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 236, 200, .35), transparent 60%),
    repeating-linear-gradient(92deg, rgba(90, 55, 25, 0) 0 9px, rgba(90, 55, 25, .13) 9px 10px, rgba(90, 55, 25, 0) 10px 23px, rgba(90, 55, 25, .09) 23px 25px),
    linear-gradient(180deg, var(--wood) 0%, var(--wood-2) 100%); }
@keyframes ema-sway { 0%, 100% { rotate: var(--tilt); } 50% { rotate: calc(var(--tilt) * -.7); } }
#kz[data-theme] .ema-hole { position: absolute; top: 20px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #2a1708; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 230, 190, .4); }
#kz[data-theme] .ema-seal { position: absolute; top: 36px; right: 16px; width: 46px; height: 46px; display: grid; place-content: center; text-align: center; line-height: 1.05;
  border: 2px solid #b10f28; border-radius: 5px; color: #b10f28; background: rgba(255, 240, 225, .18); rotate: 7deg; font-family: var(--mincho); font-weight: 800; }
#kz[data-theme] .ema-seal b { font-size: 19px; }
#kz[data-theme] .ema-seal i { font-style: normal; font-size: 10.5px; letter-spacing: .06em; }
#kz[data-theme] .ema-kanji { font-family: var(--mincho); font-weight: 800; font-size: 54px; line-height: 1; color: rgba(43, 27, 15, .88); margin: 2px 0 2px; text-shadow: 0 1px 0 rgba(255, 235, 200, .35); }
#kz[data-theme] .ema-col { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(43, 27, 15, .72); margin-bottom: 12px; }
#kz[data-theme] .ema-card { width: 112px; margin: 0 auto 12px; }
#kz[data-theme] .ema-myst { position: relative; aspect-ratio: 63 / 88; border-radius: 6px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 40%, #2a1f1c, #120c0b); border: 2px solid var(--rc); box-shadow: 0 0 0 3px rgba(43, 27, 15, .25), 0 0 22px color-mix(in srgb, var(--rc) 55%, transparent); }
#kz[data-theme] .ema-myst i { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: linear-gradient(180deg, transparent, #e4263f 30%, #e4263f 70%, transparent); opacity: .85; }
#kz[data-theme] .ema-myst span { position: relative; font-family: var(--mincho); font-weight: 800; font-size: 34px; color: #efe6d6; width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 50%; background: #1b1412; box-shadow: 0 0 0 2px var(--rc); }
#kz[data-theme] .ema-wish { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: rgba(43, 27, 15, .82); min-height: 38px; }
#kz[data-theme] .ema-wish b { color: var(--wood-ink); }
#kz[data-theme] .ema-wish small { display: block; font-size: 11.5px; opacity: .8; }
#kz[data-theme] .ema-price { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 10px; }
#kz[data-theme] .ema-price b { font-family: var(--mincho); font-weight: 800; font-size: 26px; color: var(--wood-ink); font-variant-numeric: tabular-nums; }
#kz[data-theme] .ema-th svg { width: 22px; height: 22px; color: #b10f28; display: block; }
#kz[data-theme] .ema-btn { width: 100%; justify-content: center; }
#kz[data-theme] .ema .btn-ghost[disabled] { color: rgba(43, 27, 15, .75); border-color: rgba(43, 27, 15, .35); background: rgba(255, 240, 220, .25); opacity: 1; }
/* voeu exauce : le sceau 叶 */
#kz[data-theme] .ema-hang.done .ema-sway { animation-duration: 8s; }
#kz[data-theme] .ema-kanau { position: absolute; top: 74px; left: 12px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  border: 3px solid #c8102e; color: #c8102e; font-family: var(--mincho); font-weight: 800; font-size: 36px; rotate: -12deg; background: rgba(255, 238, 225, .3); }
#kz[data-theme] .ema-done { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #a30d25; }
#kz[data-theme] .ema-hang.just .ema-kanau { animation: kz-stamp-in .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes kz-stamp-in { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#kz[data-theme] .ema.tying { animation: ema-tug .6s ease-in-out both; will-change: translate; }
@keyframes ema-tug { 0% { translate: 0 0; } 30% { translate: 0 14px; } 60% { translate: 0 -6px; } 100% { translate: 0 0; } }
#kz[data-theme] .vx-foot { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13.5px; margin: 6px 0 0; }
#kz[data-theme] .vx-foot b { color: var(--sumi); font-variant-numeric: tabular-nums; }
/* revelation du voeu */
#kz[data-theme] .vx-modal .modal { max-width: 420px; background: radial-gradient(80% 60% at 50% 35%, #2a1d1a, var(--sheet)); text-align: center; overflow: hidden; }
#kz[data-theme] .vx-reveal { position: relative; display: grid; justify-items: center; gap: 16px; padding: 18px 6px 4px; }
#kz[data-theme] .vx-rv-glow { position: absolute; left: 50%; top: 42%; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 60%, transparent), transparent 70%); animation: kz-halo 2.2s ease-in-out infinite; }
#kz[data-theme] .vx-rv-flip { position: relative; width: 220px; aspect-ratio: 63 / 88; perspective: 900px; }
#kz[data-theme] .vx-rv-flip > div { position: absolute; inset: 0; backface-visibility: hidden; }
#kz[data-theme] .vx-rv-back { display: grid; place-items: center; border-radius: 10px; background: radial-gradient(#2a1f1c, #120c0b); border: 2px solid var(--rc); animation: vx-flip-a 1.1s cubic-bezier(.3, .1, .2, 1) .35s both; }
#kz[data-theme] .vx-rv-back span { font-family: var(--mincho); font-weight: 800; font-size: 64px; color: #e4263f; }
#kz[data-theme] .vx-rv-face { animation: vx-flip-b 1.1s cubic-bezier(.3, .1, .2, 1) .35s both; }
@keyframes vx-flip-a { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes vx-flip-b { from { transform: rotateY(-180deg); } to { transform: rotateY(0); } }
#kz[data-theme] .vx-rv-txt { display: grid; gap: 4px; position: relative; }
#kz[data-theme] .vx-rv-txt .jp-k { font-size: 26px; color: var(--red); }
#kz[data-theme] .vx-rv-txt b { font-family: var(--mincho); font-size: 22px; color: var(--sumi); }
#kz[data-theme] .vx-rv-txt small { color: var(--ink-soft); }
@media (max-width: 1180px) { #kz[data-theme] .ema-hang { min-width: 180px; } }
@media (max-width: 900px) {
  #kz[data-theme] .vx-head { grid-template-columns: 1fr; align-items: start; }
  #kz[data-theme] .vx-spool { justify-self: start; }
  /* sur telephone : la corde defile de cote, une plaque apres l'autre */
  #kz[data-theme] .vx-rack { margin-left: -16px; margin-right: -16px; }
  #kz[data-theme] .vx-beam { left: 0; right: 0; }
  #kz[data-theme] .vx-row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
  #kz[data-theme] .vx-row::-webkit-scrollbar { display: none; }
  #kz[data-theme] .ema-hang { flex: 0 0 74%; min-width: 0; max-width: 280px; scroll-snap-align: center; }
}
@media (max-width: 560px) { #kz[data-theme] .wallet .pill.fils { display: none; } }
@media (prefers-reduced-motion: reduce) { #kz[data-theme] .ema-sway { animation: none; } }
#kz[data-theme] .ema-card .card { --w: 112px; }
#kz[data-theme] .vx-rv-face .card { --w: 220px; }
#kz[data-theme] .ema-wish b[style] { color: color-mix(in srgb, var(--rc) 45%, #2b1b0f) !important; }
@media (max-width: 900px) { #kz[data-theme] .ema-card { width: 128px; } #kz[data-theme] .ema-card .card { --w: 128px; } }

/* ================= News de l'accueil (28-29/11/2026) : bannieres en fondu =================
   Couches : fond = l'illustration floutee (couleurs de la scene sur toute la banniere) ; l'illustration nette a droite,
   fondue par un masque (pas de noir plat) ; un grand kanji du theme en filigrane ; un fil rouge qui traverse en bas.
   Seuls transform et opacity sont animes. */
#kz[data-theme] .news-band { position: relative; flex: 1 1 480px; max-width: 700px; height: 220px; margin: 0 auto 2px; overflow: hidden; border-radius: 6px; isolation: isolate;
  background: #120d0c; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .95), 0 0 0 1px rgba(239, 230, 214, .1), inset 0 0 0 1px rgba(255, 220, 170, .06); touch-action: pan-y; }
#kz[data-theme] .news-band:empty { display: none; }
#kz[data-theme] .nb-track { position: absolute; inset: 0; }
#kz[data-theme] .nb-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
#kz[data-theme] .nb-slide.on { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
/* fond : la meme illustration, tres floue */
#kz[data-theme] .nb-bg { position: absolute; inset: -30px; background-size: cover; background-position: 70% 30%; filter: blur(22px) saturate(1.25) brightness(.5); }
#kz[data-theme] .nb-bg-none { background: radial-gradient(70% 90% at 75% 40%, color-mix(in srgb, var(--rc) 40%, transparent), transparent 70%); filter: none; }
#kz[data-theme] .nb-shade { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 140% at 0% 100%, rgba(14, 10, 9, .95) 0%, rgba(14, 10, 9, .75) 38%, rgba(14, 10, 9, 0) 70%),
              linear-gradient(0deg, rgba(14, 10, 9, .55), transparent 40%); }
/* l'illustration nette, fondue vers la gauche et vers le bas */
#kz[data-theme] .nb-art { position: absolute; right: 0; top: 0; z-index: 2; width: 62%; height: 100%; object-fit: cover; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 40%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect; }
#kz[data-theme] .nb-slide.on .nb-art { animation: nb-zoom 8s ease-out both; }
@keyframes nb-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
#kz[data-theme] .news-band.paused .nb-slide.on .nb-art { animation-play-state: paused; }
/* kanji du theme en filigrane, derriere le texte */
#kz[data-theme] .nb-kanji { position: absolute; left: 34%; top: 50%; z-index: 2; transform: translate(-50%, -54%); font-family: var(--mincho); font-weight: 800; font-size: 210px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--rc) 55%, rgba(239, 230, 214, .4)); opacity: .22; pointer-events: none; }
#kz[data-theme] .nb-slide.on .nb-kanji { animation: nb-kanji 1.2s ease-out both; }
@keyframes nb-kanji { from { opacity: 0; translate: -18px 0; } to { opacity: .22; translate: 0 0; } }
/* le fil rouge qui traverse la banniere */
#kz[data-theme] .nb-thread { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 4; background: linear-gradient(90deg, #e4263f, rgba(228, 38, 63, .6) 45%, transparent 85%); box-shadow: 0 0 12px rgba(228, 38, 63, .6); transform-origin: 0 50%; }
#kz[data-theme] .nb-slide.on .nb-thread { animation: nb-thread 1s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes nb-thread { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* texte */
#kz[data-theme] .nb-body { position: relative; z-index: 3; height: 100%; max-width: 50%; padding: 18px 24px 22px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; color: #efe6d6; }
#kz[data-theme] .nb-slide.on .nb-body > * { animation: nb-in .7s ease-out both; }
#kz[data-theme] .nb-slide.on .nb-body > :nth-child(2) { animation-delay: .08s; } #kz[data-theme] .nb-slide.on .nb-body > :nth-child(3) { animation-delay: .16s; } #kz[data-theme] .nb-slide.on .nb-body > :nth-child(4) { animation-delay: .24s; }
@keyframes nb-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
#kz[data-theme] .nb-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#kz[data-theme] .nb-tag { padding: 3px 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; border-radius: 2px; box-shadow: 0 4px 12px -4px rgba(228, 38, 63, .8); }
#kz[data-theme] .nb-date { font-size: 11.5px; color: #c9bba6; letter-spacing: .06em; }
#kz[data-theme] .nb-body h3 { margin: 2px 0 0; font-family: var(--mincho); font-weight: 800; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.12; color: #f8f0e2; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
#kz[data-theme] .nb-body p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: #d4c8b4; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#kz[data-theme] .nb-body .btn { margin-top: 4px; padding: 8px 15px; font-size: 12.5px; }
/* commandes : points + fleches dans une pastille, en bas a droite */
#kz[data-theme] .nb-ctrl { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 999px; background: rgba(14, 10, 9, .6); }
#kz[data-theme] .nb-arrow { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: #efe6d6; font-size: 17px; line-height: 1; display: grid; place-items: center; cursor: pointer; opacity: .75; }
#kz[data-theme] .nb-arrow:hover { opacity: 1; background: rgba(239, 230, 214, .12); }
#kz[data-theme] .nb-dots { display: flex; gap: 5px; }
#kz[data-theme] .nb-dots button { width: 18px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(239, 230, 214, .3); cursor: pointer; overflow: hidden; }
#kz[data-theme] .nb-dots button i { display: block; height: 100%; width: 0; background: var(--red); }
#kz[data-theme] .nb-dots button.on i { animation: nb-fill 6s linear both; }
#kz[data-theme] .news-band.paused .nb-dots button.on i { animation-play-state: paused; }
@keyframes nb-fill { to { width: 100%; } }
@media (max-width: 1100px) { #kz[data-theme] .news-band { order: 3; flex-basis: 100%; max-width: none; margin: 6px 0 0; } }
@media (max-width: 560px) {
  #kz[data-theme] .news-band { height: 236px; }
  #kz[data-theme] .nb-art { width: 78%; }
  #kz[data-theme] .nb-body { max-width: 70%; padding: 14px 14px 18px; }
  #kz[data-theme] .nb-kanji { left: 30%; font-size: 170px; }
  #kz[data-theme] .nb-ctrl { top: 10px; bottom: auto; right: 10px; padding: 2px 4px; }
  #kz[data-theme] .nb-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { #kz[data-theme] .nb-slide.on .nb-art, #kz[data-theme] .nb-slide.on .nb-kanji, #kz[data-theme] .nb-slide.on .nb-thread, #kz[data-theme] .nb-slide.on .nb-body > * { animation: none; } }
@media (max-width: 560px) {
  #kz[data-theme] .nb-art { width: 64%; }
  #kz[data-theme] .nb-shade { background: linear-gradient(90deg, rgba(14, 10, 9, .9) 0%, rgba(14, 10, 9, .7) 50%, rgba(14, 10, 9, .15) 85%), linear-gradient(0deg, rgba(14, 10, 9, .6), transparent 45%); }
  #kz[data-theme] .nb-body { max-width: 64%; }
}
/* Accueil (29/11) : les news alignees sur la colonne « Daily reward » et jusqu'au bord droit d'« Around Kizuna ».
   Memes colonnes que la grille du dessous : [booster du jour 1.35fr] 32px [daily 1fr] 36px [fil 340px]. */
@media (min-width: 1181px) {
  #kz[data-theme] .page > .hello:has(.news-band) { display: grid; grid-template-columns: var(--nb-cols, minmax(0, 1.35fr) 32px minmax(0, 1fr) 36px 340px); grid-template-rows: auto auto; align-items: end; row-gap: 14px; column-gap: 0; }
  #kz[data-theme] .hello:has(.news-band) .hello-t { grid-column: 1; grid-row: 1 / 3; align-self: end; }
  #kz[data-theme] .hello .news-band { grid-column: 3 / -1; grid-row: 1; max-width: none; width: 100%; margin: 0; height: 236px; }
  #kz[data-theme] .hello:has(.news-band) .hello-btns { grid-column: 3 / -1; grid-row: 2; justify-content: flex-end; }
  #kz[data-theme] .hello .nb-art { width: 60%; }
  #kz[data-theme] .hello .nb-body { max-width: 48%; padding: 22px 28px 26px; }
  #kz[data-theme] .hello .nb-body h3 { font-size: clamp(22px, 1.75vw, 29px); }
  #kz[data-theme] .hello .nb-body p { font-size: 13.5px; }
  #kz[data-theme] .hello .nb-kanji { left: 30%; font-size: 240px; }
}
/* Accueil (29/11) : « My collection » en carte, au-dessus du titre ; la banniere finit a la hauteur du bas du titre */
@media (min-width: 1181px) {
  #kz[data-theme] .page > .hello:has(.news-band) { grid-template-rows: auto auto; align-items: end; row-gap: 26px; }
  #kz[data-theme] .hello:has(.news-band) .hello-btns { grid-column: 1; grid-row: 1; justify-content: flex-start; align-self: end; }
  #kz[data-theme] .hello:has(.news-band) .hello-t { grid-row: 2; }
  #kz[data-theme] .hello .news-band { grid-row: 1 / 3; align-self: end; margin-bottom: 0; }
}
#kz[data-theme] .hello-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#kz[data-theme] .hello-col { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 16px; min-width: 300px; max-width: 420px; text-decoration: none; color: var(--sumi);
  background: linear-gradient(135deg, var(--sheet-2), var(--sheet)); border: 1px solid var(--rule); border-left: 3px solid var(--red); border-radius: 4px; box-shadow: var(--drop); overflow: hidden; transition: transform .2s, border-color .2s; }
#kz[data-theme] .hello-col::after { content: "集"; position: absolute; right: 44px; top: 50%; transform: translateY(-50%); font-family: var(--mincho); font-weight: 800; font-size: 86px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(223, 42, 64, .22); pointer-events: none; }
#kz[data-theme] .hello-col:hover { transform: translateY(-2px); border-color: var(--rule-2); }
#kz[data-theme] .hc-ring { position: relative; width: 56px; height: 56px; flex: none; display: grid; place-items: center; }
#kz[data-theme] .hc-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
#kz[data-theme] .hc-ring circle { fill: none; stroke-width: 3.5; }
#kz[data-theme] .hc-track { stroke: var(--rule); }
#kz[data-theme] .hc-fill { stroke: var(--red); stroke-linecap: round; stroke-dasharray: var(--p) 100; filter: drop-shadow(0 0 4px var(--red-glow)); }
#kz[data-theme] .hc-ring b { font-family: var(--mincho); font-weight: 800; font-size: 16px; }
#kz[data-theme] .hc-ring small { font-size: 10px; margin-left: 1px; color: var(--ink-soft); }
#kz[data-theme] .hc-txt { position: relative; z-index: 1; display: grid; gap: 2px; }
#kz[data-theme] .hc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
#kz[data-theme] .hc-num { font-family: var(--mincho); font-size: 15px; color: var(--ink); }
#kz[data-theme] .hc-num b { font-size: 24px; font-weight: 800; color: var(--sumi); }
#kz[data-theme] .hc-sub { font-size: 12px; color: var(--ink-soft); }
#kz[data-theme] .hc-go { position: relative; z-index: 1; margin-left: auto; font-size: 18px; color: var(--ink-soft); transition: transform .2s, color .2s; }
#kz[data-theme] .hello-col:hover .hc-go { transform: translateX(3px); color: var(--red); }
@media (max-width: 560px) { #kz[data-theme] .hello-col { min-width: 0; width: 100%; } }
#kz[data-theme] .hello-col::after { right: 14px; -webkit-text-stroke-color: rgba(223, 42, 64, .14); }
/* Odds par emplacement sur telephone (29/11) : le tableau tenait trop large */
@media (max-width: 560px) {
  #kz[data-theme] .odds.odds-slots { grid-template-columns: minmax(0, 1fr) auto auto auto !important; gap: 5px 9px; padding: 10px; font-size: 11.5px; }
  #kz[data-theme] .odds.odds-slots span:nth-child(4n+1):not(.muted) { gap: 4px; }
  #kz[data-theme] .booster-info:has(.odds-slots:not([hidden])) { min-width: 0; }
}
#kz[data-theme] .odds-slots .o-long { font-style: normal; font-weight: inherit; }
#kz[data-theme] .odds-slots .o-short { display: none; font-weight: inherit; }
@media (max-width: 560px) {
  #kz[data-theme] .odds-slots .o-long { display: none; }
  #kz[data-theme] .odds-slots .o-short { display: inline; }
}
