/* Ouverture x10 (2026-11-25) : calque plein ecran, voir la section OUVERTURE x10 de tcg-pack.js. */
html.x10-lock, html.x10-lock body { overflow: hidden; }
/* la page derriere n'est ni dessinee ni animee pendant le lot (bruit, balayages, scintillements) */
html.x10-lock body > *:not(.x10):not(.lab), html.x10-lock body > *:not(.x10):not(.lab) * { visibility: hidden !important; animation-play-state: paused !important; }
.x10-open-btn {
    font-family: 'Orbitron', monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    color: var(--c-full); background: var(--c-10); border: 1px solid var(--c-40); padding: 8px 18px; cursor: pointer;
}
.x10-open-btn:hover { background: var(--c-25); border-color: var(--c-full); }
.x10-open-btn:disabled { color: var(--c-25); border-color: var(--c-10); background: transparent; cursor: not-allowed; }

.x10 { position: fixed; left: 0; top: 0; width: 100%; height: 100%; height: 100dvh; touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; z-index: 10050; display: flex; flex-direction: column; background: #030503; color: var(--c-80); overflow: hidden; overflow: clip; --sk: .5; --fan: 9px; }
.x10[hidden] { display: none; }
.x10-top { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 16px 26px; position: relative; z-index: 2; }
.x10-count { font-family: 'Share Tech Mono', monospace; font-size: 16px; color: var(--c-60); }
.x10-count b { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 26px; color: var(--c-full); }
.x10-skip { justify-self: end; }
.x10-tally { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 28px; font-family: 'Share Tech Mono', monospace; font-size: 13px; }
.x10-tally span { --t: #8a8f98; border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); color: var(--t); padding: 3px 10px; white-space: nowrap; }
.x10-tally b { color: #fff; font-weight: 700; }
.x10 [data-t="commun"] { --t: #8a8f98; }
.x10 [data-t="rare"] { --t: #4fa3ff; }
.x10 [data-t="sr"] { --t: #b06bff; }
.x10 [data-t="ssr"] { --t: #d8b658; }
.x10 [data-t="ur"] { --t: #ff7ad9; }
.x10 [data-t="chase"] { --t: #ffd700; }
.x10 [data-t="lr"] { --t: #ff5a2a; }

@media (max-width: 760px) { .x10-open-btn { flex: 0 0 auto; min-width: 260px; font-size: 13px; padding: 13px 18px; } }

/* scene : le meme .tcg-stage que la page, deplace ici */
.x10-zone.tcg-open-panel { position: relative; flex: 1 1 auto; min-height: 0; padding: 0; gap: 0; align-items: center; justify-content: center; }
.x10-zone > .tcg-stage { transform: scale(var(--xs, 1)); }
.x10-zone .pack-stage { pointer-events: none; }
.x10-zone .fpk-counter { display: none; }
.x10-fly { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 5; pointer-events: none; }

/* petite carte figee : vrai rendu .tcg-card, aucune animation */
.x10-mini { --k: .5; position: relative; width: calc(320px * var(--k)); height: calc(448px * var(--k)); border-radius: calc(16px * var(--k)); }
.x10-mini > .tcg-card { transform: scale(var(--k)); transform-origin: 0 0; }
.x10-mini:not(.live) > .tcg-card, .x10-mini:not(.live) > .tcg-card::before, .x10-mini:not(.live) > .tcg-card::after, .x10-mini:not(.live) > .tcg-card * { animation: none !important; transition: none !important; }
.x10-mini.fxin .tcg-shine, .x10-mini.fxin .tcg-glare, .x10-mini.fxin .tcg-chromefx, .x10-mini.fxin .tcg-confetti-canvas { animation: x10FxIn .5s ease-out; }
@keyframes x10FxIn { from { opacity: 0; } }
.x10-confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
/* prechauffe (xWarm) : dessinee mais invisible a l'oeil, au centre de la scene */
.x10-warm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: .012; pointer-events: none; z-index: 0; }
.x10-warm > * { position: absolute; left: -160px; top: -224px; }
.x10-warm > .x10-mini { left: -80px; top: -112px; }
/* telephone : petites cartes allegees (textes illisibles a cette taille, ombres et degrades en moins) */
.x10-lite .x10-mini .tcg-serial, .x10-lite .x10-mini .tcg-holochip, .x10-lite .x10-mini .tcg-family, .x10-lite .x10-mini .tcg-artist, .x10-lite .x10-mini .tcg-pip-group, .x10-lite .x10-mini .tcg-corner { display: none !important; }
.x10-lite .x10-mini > .tcg-card, .x10-lite .x10-mini > .tcg-card * { text-shadow: none !important; }
/* chrome liquide : son filtre SVG est anime en continu meme sans animation CSS */
.x10-lite .x10-mini .tcg-card[data-material="liquidchrome"] .tcg-shine { filter: none; }
.x10-lite .x10-mini .tcg-card[data-material="liquidchrome"] .tcg-chromefx { display: none; }
.x10-mini:not(.live) > .tcg-card[data-material="liquidchrome"] .tcg-shine { filter: none; }
.x10-mini:not(.live) > .tcg-card[data-material="liquidchrome"] .tcg-chromefx { display: none; }
.x10-lite .x10-veil, .x10-lite .x10-veil *, .x10-lite .x10-veil *::before, .x10-lite .x10-veil *::after { animation: none !important; }
.x10-fly > .x10-mini { position: absolute; left: -80px; top: -112px; will-change: transform; }

/* plateau : une case par booster */
.x10-tray { flex: none; display: grid; grid-template-columns: repeat(10, 116px); justify-content: center; gap: 12px; padding: 8px 20px 22px; position: relative; z-index: 1; }
.x10-slot { --t: rgba(125,200,100,.25); position: relative; height: 132px; border: 1px solid var(--c-15); background: var(--c-04); transition: border-color .25s ease, background .25s ease; }
.x10-slot { will-change: transform; }   /* un calque par case : ranger un booster ne repeint que sa case */
.x10-slot.current { border-color: var(--c-40); }
.x10-slot.filled { background: transparent; border-color: transparent; border-bottom: 2px solid var(--t); }
.x10-slot > i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: 'Orbitron', monospace; font-size: 16px; color: var(--c-25); }
.x10-slot.filled > i { display: none; }
.x10-slot > .x10-mini { position: absolute; left: 50%; top: 50%; margin: -112px 0 0 -80px; transform: translateX(calc(var(--i) * var(--fan))) rotate(calc(var(--i) * 3deg)) scale(var(--sk)); }

/* recap */
.x10-recap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.x10-recap[hidden] { display: none; }
.x10.is-recap .x10-zone, .x10.is-recap .x10-tray, .x10.is-recap .x10-skip { display: none; }
/* pas de zone defilante par defaut : les cartes en vol depuis le plateau ne creent aucune barre de defilement */
.x10-recap-scroll { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 10px 26px; display: flex; flex-direction: column; justify-content: safe center; }
.x10-recap.needs-scroll .x10-recap-scroll { overflow-x: hidden; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; justify-content: flex-start; scrollbar-width: thin; scrollbar-color: var(--c-40) transparent; }
.x10-best, .x10-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap, 10px); flex: none; }
.x10-best[hidden] { display: none; }
.x10-best { --ck: .52; gap: calc(var(--gap, 10px) + 6px); margin-bottom: var(--sep, 20px); }
.x10-rest { --ck: .33; }
.x10-cell { position: relative; }
.x10-best > .x10-cell { padding-bottom: 20px; }
.x10-recap.folded .x10-cell.dull { display: none; }
.x10-more { align-self: center; margin-top: 14px; flex: none; }
.x10-more[hidden] { display: none; }
.x10-cell > .x10-mini { --k: var(--ck); cursor: pointer; }
.x10-cell > .x10-mini:hover { z-index: 3; outline: 2px solid var(--t); outline-offset: 2px; }
.x10-new { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: 'Share Tech Mono', monospace; font-size: 12.5px; color: var(--c-full); }
/* petites cartes : simple pastille (une ligne de texte sous chacune couterait un ecran de hauteur) */
.x10-rest .x10-new { left: auto; right: -3px; top: -3px; bottom: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c-full); box-shadow: 0 0 0 2px #030503; font-size: 0; z-index: 4; }
.x10-veil { position: absolute; left: 0; top: 0; width: 320px; height: 448px; transform: scale(var(--k)); transform-origin: 0 0; z-index: 5; }
.x10-cell.veiled > .x10-new { visibility: hidden; }
.x10-cell.veiled .x10-mini > .tcg-card { visibility: hidden; }
.x10-actions { flex: none; display: flex; justify-content: center; gap: 12px; padding: 14px 20px 22px; border-top: 1px solid var(--c-10); }
.x10-actions .fpk-mode-btn { font-size: 13px; padding: 12px 24px; }

.x10-zoom { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(0,0,0,.86); cursor: zoom-out; }
.x10-zoom[hidden] { display: none; }
.x10-zoombox { width: calc(320px * var(--zk)); height: calc(448px * var(--zk)); }
/* perspective autour du centre de la carte, agrandissement porte par un calque (scale) */
.x10-zoombox > .tcg-card { scale: var(--zk); transform-origin: 50% 50%; margin: calc(224px * (var(--zk) - 1)) 0 0 calc(160px * (var(--zk) - 1)); }

@media (max-width: 1340px) {
    .x10 { --sk: .38; --fan: 7px; }
    .x10-tray { grid-template-columns: repeat(10, minmax(0, 88px)); gap: 8px; }
    .x10-slot { height: 102px; }
}
@media (max-height: 760px) {
    .x10 { --sk: .34; --fan: 6px; }
    .x10-slot { height: 88px; }
    .x10-top { padding: 10px 22px; }
}
@media (max-width: 760px) {
    .x10 { --sk: .31; --fan: 3px; }
    .x10-top { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 14px 4px; }
    .x10-count { font-size: 14px; }
    .x10-count b { font-size: 22px; }
    .x10-tally { grid-column: 1 / -1; grid-row: 2; font-size: 12px; gap: 4px; min-height: 26px; justify-content: flex-start; }
    .x10-tally span { padding: 1px 6px; }
    .x10.is-recap .x10-count { grid-column: 1 / -1; }
    .x10-tray { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 4px 14px 12px; }
    .x10-slot { height: 76px; }
    .x10-recap-scroll { padding: 6px 12px; }
    .x10-actions { padding: 10px 14px 14px; gap: 8px; }
    .x10-actions .fpk-mode-btn { font-size: 12px; padding: 13px 12px; flex: 1 1 0; }
}
/* telephone couche / fenetre tres basse : plateau a droite, pack a gauche */
@media (max-height: 520px) and (min-width: 560px) {
    .x10 { display: grid; grid-template-columns: minmax(0, 1fr) min(44vw, 400px); grid-template-rows: auto minmax(0, 1fr); --sk: .3; --fan: 3px; }
    .x10-top { grid-column: 1 / -1; padding: 6px 16px; grid-template-columns: auto 1fr auto; }
    .x10-tally { grid-column: auto; grid-row: auto; min-height: 0; }
    .x10-tray { grid-template-columns: repeat(5, minmax(0, 1fr)); align-content: center; gap: 8px; padding: 6px 16px; }
    .x10-slot { height: 80px; }
    .x10-recap { grid-column: 1 / -1; }
    .x10-recap-scroll { padding: 4px 14px; }
    .x10-actions { padding: 6px 14px 8px; }
    .x10-actions .fpk-mode-btn { padding: 8px 18px; flex: 0 1 auto; }
}

