/* ═══════════════════════════════════════════════════════════════════════════
   GAME PREVIEW SHEET — /casino and /live-casino (assets/scripts/x10-game-preview.js)
   Measured on the reference (x10tn.net game pop-up, 1202px viewport): fixed bottom sheet, bg #001021, radius 20/20/0/0, padding 30px 0
   (15px side gutter), close 30x30 top-right, art 100x130 radius 10, title 24/600 white, provider chip bg #132C46 radius 10 (16px logo +
   14/800 name), buttons 40px radius 10 12/700 — outline 1.25px #E9A722 "Au favori" and filled #E9A722 "Jouer", then "Tu vas aimer" 12/900
   and a row of 100x130 thumbnails, 10px gap. Not observable on the reference: entrance animation (none detected), backdrop (none detected).
   Deviations: a dim backdrop that closes on tap, a centred card from 768px up (the reference only stretches the phone sheet), navy
   Play-button text (white on #E9A722 is ~2:1), and no RTP/volatility rows (the catalogue has no such data).
   ═══════════════════════════════════════════════════════════════════════════ */

html.x10gp-open, html.x10gp-open body { overflow: hidden !important; }       /* scrollTop is kept: nothing re-positions the page */

.x10gp[hidden] { display: none; }
.x10gp {
    position: fixed; inset: 0; z-index: 10020; display: flex; align-items: flex-end; justify-content: center;
    font-family: 'Proxima Nova', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #fff;
}
.x10gp-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity 160ms ease; }
.x10gp.is-open .x10gp-backdrop { opacity: 1; }

.x10gp-sheet {
    position: relative; box-sizing: border-box; width: 100%; max-width: 640px; max-height: 88vh; max-height: 88dvh;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 30px 15px calc(18px + env(safe-area-inset-bottom, 0px)); background: #001021; border-radius: 20px 20px 0 0; outline: none;
    transform: translateY(28px); opacity: 0; transition: transform 200ms cubic-bezier(.2, .8, .2, 1), opacity 160ms ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
}
.x10gp.is-open .x10gp-sheet { transform: none; opacity: 1; }

.x10gp-close {
    position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; padding: 0;
    display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer;
}
.x10gp-close:hover { background: rgba(255, 255, 255, .08); }
[dir="rtl"] .x10gp-close { right: auto; left: 10px; }

.x10gp-main { display: flex; gap: 15px; align-items: flex-start; margin: 0 0 20px; padding-right: 30px; }
[dir="rtl"] .x10gp-main { padding-right: 0; padding-left: 30px; }
.x10gp-art { flex: 0 0 100px; width: 100px; height: 130px; border-radius: 10px; overflow: hidden; background: #132C46; }
.x10gp-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.x10gp-info { min-width: 0; flex: 1; padding-top: 6px; }
.x10gp-title { margin: 0 0 10px; font-size: 24px; line-height: 1.15; font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.x10gp-provider { display: inline-flex; align-items: center; max-width: 100%; min-height: 26px; padding: 0 10px; border-radius: 10px; background: #132C46; font-size: 14px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x10gp-provider[hidden], .x10gp-meta[hidden] { display: none; }
.x10gp-meta { margin: 12px 0 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); }

.x10gp-actions { display: flex; gap: 8px; margin: 0 0 12px; }
.x10gp-btn {
    flex: 1 1 0; min-width: 0; height: 40px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0 10px;
    border-radius: 10px; font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 120ms ease, opacity 120ms ease;
}
.x10gp-btn[hidden] { display: none; }
.x10gp-btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x10gp-btn--ghost { border: 1.25px solid #E9A722; background: transparent; color: #fff; }
.x10gp-btn--ghost:hover, .x10gp-btn--ghost.is-on { background: rgba(233, 167, 34, .16); }
.x10gp-btn--ghost.is-on svg { fill: #E9A722; color: #E9A722; }
.x10gp-btn--play { border: 0; background: #E9A722; color: #001021; }
.x10gp-btn--play:hover { background: #F2B94A; }
.x10gp-btn--play.is-busy { opacity: .7; cursor: progress; pointer-events: none; }
.x10gp-btn:focus-visible, .x10gp-close:focus-visible, .x10gp-mini:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.x10gp-status { min-height: 0; margin: 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.x10gp-status:empty { display: none; }

.x10gp-more { margin: 16px -15px 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.x10gp-more[hidden] { display: none; }
.x10gp-more-title { margin: 0 15px 10px; font-size: 12px; font-weight: 900; color: #fff; text-transform: uppercase; }
.x10gp-row { display: flex; gap: 10px; padding: 0 15px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 15px; }
.x10gp-row::-webkit-scrollbar { display: none; }
.x10gp-mini { flex: 0 0 100px; width: 100px; height: 130px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #132C46; cursor: pointer; scroll-snap-align: start; }
.x10gp-mini-img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
    .x10gp { align-items: center; }
    .x10gp-sheet { border-radius: 20px; max-width: 560px; padding-bottom: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
}
@media (max-width: 340px) { .x10gp-title { font-size: 20px; } .x10gp-art { flex-basis: 84px; width: 84px; height: 110px; } }
@media (prefers-reduced-motion: reduce) {
    .x10gp-backdrop, .x10gp-sheet { transition: none; transform: none; }
}
html[data-x10-motion="reduced"] .x10gp-backdrop, html[data-x10-motion="reduced"] .x10gp-sheet { transition: none; transform: none; }
