/* PORTRAIT-1 (TEST, dev 03/12/2026) : Loc games in portrait on a phone. Script : _jeux/_common/loc_portrait.js
   Everything here only applies with html.lpt_on (set by the script while the layer is on). */

/* Themes (03/12, the user) : light by default ; dark when the site's dark mode is on (cookie darkMode => G_DARKMODE,
   html.lpt_dark set by the script, live : the site's button switches it without reloading) */
html.lpt_mode {
    --lpt-bg: #e8f2fb;					/* zone, popups layer, page cover while loading */
    --lpt-panel: #ffffff;				/* question line, line under the map */
    --lpt-line: rgba(22, 50, 79, 0.10);
    --lpt-text: #16324f;
    --lpt-track: rgba(22, 50, 79, 0.12);	/* timer's track */
    --lpt-pill: rgba(255, 255, 255, 0.95);	/* result label */
    --lpt-shadow: rgba(22, 50, 79, 0.25);
    --lpt-good: #23893f;
    --lpt-mid: #b67c00;
    --lpt-bad: #d03a3a;
    --lpt-star-off: #b9c2cc;
    --lpt-outside: #16324f;
    --lpt-q: #355987;					/* the normal game's colours (locWrapper001.css : #questionTextLabel, #mainScoreLabel ; */
    --lpt-index: #4373AF;				/* #questionIndexLabel ; */
    --lpt-intro: #1f5d9e;				/* the intro's plays count, best score, stars' scores (the user, 05/12) */
    --lpt-sup: #4373AF;					/* #questionTextSupLabel ; */
    --lpt-comp-ahead: #a5c524;			/* vpMain_016.css .color_green / .color_orange of the score comparator) */
    --lpt-comp-behind: #ec8e33;
}
html.lpt_mode.lpt_dark {
    --lpt-bg: #16324f;
    --lpt-panel: #0f2338;
    --lpt-line: rgba(255, 255, 255, 0.06);
    --lpt-text: #ffffff;
    --lpt-track: rgba(255, 255, 255, 0.12);
    --lpt-pill: rgba(15, 35, 56, 0.88);
    --lpt-shadow: rgba(0, 0, 0, 0.5);
    --lpt-good: #7ddc7d;
    --lpt-mid: #f7c600;
    --lpt-bad: #ff8a8a;
    --lpt-star-off: #9aa4b0;
    --lpt-outside: #0a1626;
    --lpt-sup: #8fb3e6;
    --lpt-q: #ffffff;
    --lpt-intro: #ffffff;
    --lpt-index: #8fb3e6;
}

html.lpt_on, html.lpt_on body {
    overflow: hidden !important;
}

#lpt_root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: var(--lpt-bg);
    color: var(--lpt-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
}

/* "hidden" must win over the display rules below (#lpt_msg is display:flex) */
#lpt_root [hidden] {
    display: none !important;
}

/* The home button : top left corner of the zone (no line of its own : 03/12, the user), above the popups too ;
   the popups start under it (--lpt-head) */
#lpt_root {
    --lpt-head: 44px;
}
#lpt_back {
    position: absolute;
    left: 0;
    top: env(safe-area-inset-top);
    z-index: 700;
    width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--lpt-text);
    opacity: .8;
    cursor: pointer;
}

/* Question line, just above the map : n/N, city, score (number only) + timer */
#lpt_header {
    flex: none;
    background: var(--lpt-panel);
    box-shadow: 0 -1px 0 var(--lpt-line);
}
#lpt_line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 12px 5px;
}
#lpt_count {
    flex: none;
    font-size: 17px;
    color: var(--lpt-index);
}
#lpt_q {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--lpt-q);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* The question's extra text next to the name (Villes du Monde : the country), small ; it takes the free room (the score
   stays on the right) */
#lpt_sup {
    flex: 1 1 0;
    min-width: 0;
    font-size: 15px;
    color: var(--lpt-sup);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#lpt_score {
    flex: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--lpt-q);
}
/* The score comparator (ahead of / behind the best score), small, above the score : the zone's bottom right corner */
#lpt_comp {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--lpt-pill);
    box-shadow: 0 1px 4px var(--lpt-shadow);
    font-size: 14px;
    font-weight: 700;
    color: var(--lpt-comp-behind);
    pointer-events: none;
}
#lpt_comp.lpt_ahead { color: var(--lpt-comp-ahead); }
#lpt_comp[hidden] { display: none; }

/* Best score + stars + ranking, drawn by the engine under the map (in #game_outer) : over the bottom of the map in
   portrait => not displayed (its texts and hidden inputs stay readable) ; its texts are copied in #lpt_foot, under the map */
html.lpt_on #best_score_bloc_content_result {
    display: none !important;
}
#lpt_timer {
    height: 6px;
    background: var(--lpt-track);
}
#lpt_root.lpt_notimer #lpt_timer {
    visibility: hidden;		/* no timer in this game (Précision, "sans chrono") : no empty track ; same height kept */
}
#lpt_timer_bar {
    height: 100%;
    width: 100%;
    background: #f7c600;
    transform-origin: 0 50%;
    transform: scaleX(0);		/* set by the script : a transform, no layout */
    will-change: transform;
}
#lpt_timer_bar.lpt_late { background: #e63946; }

/* Zone above the map : magnifier while aiming, messages otherwise -------- */
#lpt_zone {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
#lpt_loupe {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 18px var(--lpt-shadow);
    background-repeat: no-repeat;
    background-color: #9cc3e6;
}
#lpt_loupe {
    overflow: hidden;
}
#lpt_loupe::before, #lpt_loupe::after {
    content: "";
    position: absolute;
    z-index: 2;
    background: #e63946;
    left: 50%;
    top: 50%;
}
/* Copy of the engine's pins (#game_assets), in game px, placed and zoomed by the script */
/* In the magnifier, outside the map's frame : covered (4 bands moved by the script, above the pins, under the cross) */
.lpt_out {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: var(--lpt-outside);
    pointer-events: none;
}
#lpt_loupe_assets {
    position: absolute;
    left: 0;
    top: 0;
    width: 900px;
    height: 600px;
    z-index: 1;
    transform-origin: 0 0;
    pointer-events: none;
}

/* The city's name in the magnifier : smaller (it is zoomed with the map) */
#lpt_loupe_assets .pinLabel {
    font-size: 10px;
}

/* After an answer : the magnifier stays where it is (pins inside, no cross) ; the result (km, points) is a small label
   over the top of the zone, above the magnifier */
#lpt_zone.lpt_result #lpt_msg {
    inset: 6px auto auto 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: max-content;
    max-width: calc(100% - 110px);
    padding: 4px 14px 5px;
    border-radius: 14px;
    background: var(--lpt-pill);
    box-shadow: 0 2px 8px var(--lpt-shadow);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 10px;
}
#lpt_zone.lpt_result #lpt_msg p {
    margin: 0;
}
#lpt_zone.lpt_result #lpt_msg .lpt_km { font-size: 22px; }
#lpt_zone.lpt_result #lpt_msg .lpt_pts { font-size: 19px; }
#lpt_zone.lpt_result #lpt_msg .lpt_time { font-size: 19px; font-weight: 600; opacity: .8; }
#lpt_zone:not(.lpt_result) #lpt_msg .lpt_time { display: none; }		/* its detail line already gives the time */
#lpt_zone.lpt_result #lpt_msg .lpt_small {
    display: none;		/* one line only : the detail would hide the top of the magnifier */
}
#lpt_zone.lpt_result #lpt_loupe::before,
#lpt_zone.lpt_result #lpt_loupe::after {
    display: none;
}
#lpt_loupe::before { width: 2px; height: 34px; margin: -17px 0 0 -1px; }
#lpt_loupe::after  { width: 34px; height: 2px; margin: -1px 0 0 -17px; }

#lpt_msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.35;
}
#lpt_msg p { margin: 0 0 8px; }

/* New question (04/12, the user) : "Où est" + the city, big, comes towards the player then fades ; the help / result
   under it hidden meanwhile (transform + opacity only : no layout work, smooth on iOS) */
#lpt_announce {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 14px;
    box-sizing: border-box;
    color: var(--lpt-text);
    pointer-events: none;
    opacity: 0;
}
#lpt_announce.lpt_go {
    animation: lpt_approach 1.8s ease-out forwards;
}
#lpt_announce p { margin: 0; }
#lpt_announce .lpt_where {
    font-size: 22px;
    color: var(--lpt-index);
}
#lpt_announce .lpt_where:empty { display: none; }
#lpt_announce .lpt_sup {
    font-size: 20px;
    color: var(--lpt-sup);
    margin-top: 4px;
}
#lpt_announce .lpt_sup:empty { display: none; }
#lpt_announce .lpt_city {
    font-size: min(44px, 11vw);
    font-weight: 800;
    line-height: 1.1;
    color: var(--lpt-q);
    overflow-wrap: anywhere;
}
#lpt_zone.lpt_announcing #lpt_msg {
    visibility: hidden;
}
/* Before the announce : the previous answer's result fades quickly (04/12, the user ; 150 ms = LEAVE_MS of the script) */
#lpt_zone.lpt_leaving #lpt_loupe,
#lpt_zone.lpt_leaving #lpt_msg {
    opacity: 0;
    transition: opacity .15s ease-out;
}
@keyframes lpt_approach {
    0%   { opacity: 0; transform: scale(.35); }
    22%  { opacity: 1; transform: scale(1); }
    72%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1.7); }
}
#lpt_msg .lpt_km { font-size: 30px; font-weight: 800; }
#lpt_msg .lpt_pts { font-size: 24px; font-weight: 700; }
#lpt_msg .lpt_small { font-size: 13px; opacity: .75; }
#lpt_msg .lpt_good { color: var(--lpt-good); }
#lpt_msg .lpt_mid { color: var(--lpt-mid); }
#lpt_msg .lpt_bad { color: var(--lpt-bad); }

/* Map : the engine's #game_outer, cropped (transform set by the script) -- */
#lpt_mapbox {
    flex: none;
    position: relative;
    align-self: center;
    overflow: hidden;
    background: #9cc3e6;
}

/* Under the map, small : best score + stars (left), ranking (right) */
#lpt_foot {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 5px 12px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom));
    background: var(--lpt-panel);
    font-size: 13px;
    line-height: 18px;
    min-height: 18px;
    opacity: .85;
    white-space: nowrap;
}
#lpt_foot .game_stars {
    margin-left: 4px;
}
#lpt_foot .game_stars .fa-star {
    color: #f7c600;
}
#lpt_foot .game_stars .fa-star.grey {
    color: var(--lpt-star-off);
}
html.lpt_on #lpt_mapbox #game_outer {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;		/* the finger is for #lpt_touch only (no image menu on a long press, Android) */
}
#lpt_root img {
    -webkit-user-drag: none;
    user-select: none;
}
#lpt_touch {
    position: absolute;
    inset: 0;
    z-index: 500;
    touch-action: none;
}
#lpt_cursor {
    position: absolute;
    z-index: 501;
    width: 0;
    height: 0;
    pointer-events: none;
}
#lpt_cursor::before, #lpt_cursor::after {
    content: "";
    position: absolute;
    background: #e63946;
    box-shadow: 0 0 0 1px rgba(255,255,255,.7);
}
#lpt_cursor::before { width: 2px; height: 22px; left: -1px; top: -11px; }
#lpt_cursor::after  { width: 22px; height: 2px; left: -11px; top: -1px; }

/* Guest blocked by the wall (no game on the page) : no "rotate" icon over the blocking screen */
html.lpt_blocked #ico_portrait_to_landscape {
    display: none !important;
}

/* Engine elements replaced by the layer (header, cursor, rotate icon, phone intro, answer window).
   #topInterface and #timerBloc : display:none, not visibility:hidden (03/12, jerks on iOS Safari) : the engine keeps
   animating them (timer bar resized every 10 ms, question label moves), and a hidden-but-laid-out element inside the
   big scaled map made Safari recompute it all the time. Their texts stay readable for the layer. */
html.lpt_on #topInterface,
html.lpt_on #timerBloc {
    display: none !important;
}
html.lpt_on #map_frame,
html.lpt_on #loc_cursor,
html.lpt_on #ico_portrait_to_landscape,
html.lpt_on #winIntroMobile,
html.lpt_on #winSolution,
html.lpt_on #back_from_game_menu_button {
    display: none !important;
}

/* The engine's popups (#topLayer, moved into the layer) : full width, readable */
html.lpt_on #lpt_root > #topLayer {
    position: absolute !important;
    left: 0 !important;
    top: var(--lpt-head, 0px) !important;
    width: 100% !important;
    height: calc(100% - var(--lpt-head, 0px)) !important;
    z-index: 600 !important;
    overflow-y: auto;
    pointer-events: none;
    touch-action: pan-y;
}
html.lpt_on #lpt_root > #topLayer > * {
    pointer-events: auto;
}
/* Phone + ?portrait=1 (html.lpt_mode, the whole visit) : the old podium screen must never come back => no podium
   button in the game page's bar ; html.lpt_pre (portrait, until the intro is there) : the page hidden, no flash */
html.lpt_mode #btn_display_only_podium {
    display: none !important;
}
/* The layer is on (intro, end) : no "Jeu" button in the bar, the intro has its big yellow one (03/12, the user) ;
   it comes back on the ranking and comments tabs (the layer is stopped there) to return to the game */
html.lpt_on #btn_display_only_game {
    display: none !important;
}
/* Ranking and comments tabs : no "rotate your phone" visual (display_only_game() shows it, only
   display_only_podium() hid it, and the podium screen is gone) */
html.lpt_mode:not(.game_on_mobile) #ico_portrait_to_landscape {
    display: none !important;
}
/* ... and the bar stays there (display_only_game() hides it, only the podium screen showed it again) : "Jeu" to
   go back to the game */
html.lpt_mode:not(.game_on_mobile) #game_page_menu {
    display: flex !important;
}
/* The button of the tab shown : hidden (03/12, the user ; data-lpt-tab set by the script) */
html.lpt_mode[data-lpt-tab="hof"] #btn_display_only_hof,
html.lpt_mode[data-lpt-tab="comments"] #btn_display_only_comments {
    display: none !important;
}
/* Bigger buttons (03/12, the user : there is room) : a taller bar, each button shares the width (bigger touch area) */
html.lpt_mode #game_page_menu {
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
    justify-content: space-around;
}
html.lpt_mode #game_page_menu::before {
    display: none;
}
html.lpt_mode #game_page_menu li {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 24px;
    letter-spacing: 0;
}
html.lpt_mode #game_page_menu li i {
    font-size: 32px;
}
/* Ranking and comments : their end not under the taller bar */
html.lpt_mode:not(.game_on_mobile) body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
}
html.lpt_pre body {
    background: var(--lpt-bg) !important;
}
html.lpt_pre body > *:not(#lpt_root) {
    visibility: hidden !important;
}

/* A popup is open (intro, end ; html.lpt_menus set by the script) : the site's menu on top and the game page's bar
   at the bottom (03/12, the user), above the layer ; the popups between them */
html.lpt_menus #main_navbar {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 !important;
    z-index: 10001;
}
/* The site's windows opened from the header (04/12, the user : "Connexion" and the menu's items did nothing) : they
   are appended to <body> with a z-index below the layer's (10000) and opened behind it => above it. The games menu
   (plugins/vp_menu/jgm : full screen on a phone, panel, bubble), the login popover (Bootstrap, data-container body),
   Bootstrap modals, SweetAlert, the game search's suggestions (jQuery UI autocomplete) */
html.lpt_on #jgm-mobile,
html.lpt_on #jgm-panneau,
html.lpt_on #jgm-bulle,
html.lpt_on body > .popover,
html.lpt_on .modal-backdrop,
html.lpt_on .ui-autocomplete {
    z-index: 10002 !important;
}
html.lpt_on .modal,
html.lpt_on .swal2-container {
    z-index: 10003 !important;
}
html.lpt_menus #game_page_menu {
    display: flex !important;
    z-index: 10001;
}
html.lpt_on #lpt_root.lpt_popups > #topLayer {
    top: var(--lpt-nav, 44px) !important;
    height: calc(100% - var(--lpt-nav, 44px) - var(--lpt-bar, 0px) + 2px) !important;	/* + 2 px : the bar sits 1 px low */
}

/* a popup is open (class set by the script) : the layer covers the screen */
html.lpt_on #lpt_root.lpt_popups > #topLayer {
    background: var(--lpt-bg);
    pointer-events: auto;
    padding-bottom: 20px;
    box-sizing: border-box;
}
html.lpt_on #lpt_root > #topLayer .popup {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: calc(100% - 16px) !important;
    max-width: 520px !important;
    height: auto !important;
    margin: 12px auto !important;
    box-sizing: border-box;
}
html.lpt_on #lpt_root > #topLayer img {
    max-width: 100%;
    height: auto;
}
html.lpt_on #lpt_root > #topLayer .img_game_title {
    max-width: 80%;
}
/* "N parties jouées" + stars (gameCommon_022.js nb_plays_and_stars_details_in_game()) : above the intro, not over it ;
   the count and the stars side by side, smaller (03/12, the user : the intro must fit an iPhone 14 / 15) */
html.lpt_on #lpt_root > #topLayer > #nb_plays_and_stars_details_in_game {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    margin: 18px 12px 0 !important;		/* 18 px : air under the site header (the user, 03/12) */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;		/* the count and the 1st line of stars at the same height */
    justify-content: space-between;
}
html.lpt_on #lpt_root > #topLayer > #nb_plays_and_stars_details_in_game > .col-md-6 {
    flex: 1 1 auto;
    width: auto;
    padding: 0;
    float: none;
}
/* The best score : under the plays count, on the left, level with the last line of stars (04/12, the user : one line
   less above the game) ; not its own line under the stars any more */
html.lpt_on #lpt_root > #topLayer > #nb_plays_and_stars_details_in_game {
    position: relative;
}
html.lpt_on #lpt_root > #topLayer > #nb_plays_and_stars_details_in_game > .col-md-12 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    padding: 0;
    float: none;
}
html.lpt_on #lpt_root > #topLayer #best_score_bloc_in_stars_detail {
    text-align: left !important;
}
html.lpt_on #lpt_root > #topLayer #nb_plays_bloc {
    margin: 0;
}
html.lpt_on #lpt_root > #topLayer #nb_plays_bloc > .col-md-12 {
    padding: 0;
}
/* Same 28 px line box for the count and each line of stars : their tops line up */
html.lpt_on #lpt_root > #topLayer #nb_plays_text {
    text-align: left;
    font-size: 16px;
    line-height: 1.2;
}
html.lpt_on #lpt_root > #topLayer #nb_plays_text .num {
    font-size: 28px;
    line-height: 28px;
}
html.lpt_on #lpt_root > #topLayer #game_stars_detail {
    font-size: 19px !important;
    line-height: 28px;
    margin: 0 !important;
    padding: 0;
}
/* The block stays on the right, its lines start on the left : the stars line up whatever the scores' widths
   (05/12, the user) */
html.lpt_on #lpt_root > #topLayer #game_stars_detail > li {
    text-align: left;
}
/* Their texts (the site writes them white : invisible on the light theme) : #1f5d9e (05/12, the user) ; stars unchanged */
html.lpt_on #lpt_root > #topLayer #nb_plays_text,
html.lpt_on #lpt_root > #topLayer #nb_plays_text *,
html.lpt_on #lpt_root > #topLayer #game_stars_detail .num,
html.lpt_on #lpt_root > #topLayer #best_score_bloc_in_stars_detail,
html.lpt_on #lpt_root > #topLayer #best_score_bloc_in_stars_detail * {
    color: var(--lpt-intro) !important;
}
html.lpt_on #lpt_root > #topLayer #best_score_bloc_in_stars_detail {
    font-size: 17px;
    margin-top: 4px;
}

/* The intro window : padding inside (the title not stuck to the top), no 100 px margin above the title (it went out
   of the window, above it : the big gap under the stars) */
html.lpt_on #lpt_root > #topLayer #winIntro.popup {
    padding: 16px 12px 18px !important;
}
/* The score comparator button (engine : #bOpenWinScoreCompCustom, moved into #winIntro by the script) : bottom left
   inside the blue window, as in the landscape game */
html.lpt_on #lpt_root #winIntro #bOpenWinScoreCompCustom {
    position: absolute !important;
    left: 14px !important;
    bottom: 12px !important;
    top: auto !important;
    z-index: 2;
}
html.lpt_on #lpt_root > #topLayer #winIntro.popup .img_game_title_bloc {
    margin-top: 0 !important;
    height: auto !important;
    margin-bottom: 12px;
}

/* COLLECTION-1 line in the intro ("Finissez la partie et gagnez un pays", plugins/vp_collection/vp_collection.js,
   put by it inside #winIntro) : 04/12, the user : back, but small, not round (too big) : a flat strip just under
   the intro window (between the game and the bottom bar) */
html.lpt_on #lpt_root #winIntro.popup {
    overflow: visible !important;
}
html.lpt_on #lpt_root #winIntro .vp_coll_start {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: auto;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #ffe6f2;
    transform: none;
    font-size: 15px;
}
html.lpt_on #lpt_root #winIntro .vp_coll_start .vp_coll_see {
    margin-top: 6px;
}

/* End screen (#winEndGame, #winButtonsEndGame, COLLECTION-1 block #winPublishScoreBig) : 04/12, the user : everything
   seen without scrolling ; no window background nor outline (the page's background). From top to bottom : "SCORE FINAL",
   the score under it ; average distance and time side by side (their small icons), no frame ; the success lines ;
   Rejouer ; Voir la correction ; Voir les statistiques détaillées (a simple blue text link) ; the collection just
   under it */
html.lpt_on #lpt_root > #topLayer #winPublishScoreBig.popup {
    margin: 18px auto 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame.popup {
    --lpt-end-w: min(290px, calc(100% - 40px));	/* distance + time line = the success lines' width (04/12, the user) */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 26px auto 0 !important;		/* 04/12, the user : "SCORE FINAL" further from the header */
}
html.lpt_on #lpt_root > #topLayer #winEndGame table,
html.lpt_on #lpt_root > #topLayer #winEndGame tr,
html.lpt_on #lpt_root > #topLayer #winEndGame td {
    height: auto !important;
    padding: 0 !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame table {
    width: 100% !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame td {
    text-align: center;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .scoreTitleLabel,
html.lpt_on #lpt_root > #topLayer #winEndGame .scoreLabel {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.1 !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .scoreTitleLabel {
    font-size: 22px !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .scoreLabel {
    font-size: 56px !important;
    margin-top: 2px !important;
}
/* Distance and time : side by side, close, no frame */
html.lpt_on #lpt_root > #topLayer #winEndGame .statsBloc {
    display: flex;				/* never !important on a display : the engine shows / hides the parts */
    justify-content: space-between;
    align-items: center;
    width: var(--lpt-end-w);
    box-sizing: border-box;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    height: auto !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .distanceBloc,
html.lpt_on #lpt_root > #topLayer #winEndGame .timeBloc {
    display: flex;				/* no !important : the engine hides the time (sans chrono) */
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    line-height: 1.2 !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .distanceDetail,
html.lpt_on #lpt_root > #topLayer #winEndGame .timeDetail {
    float: none !important;
    font-size: 24px !important;
    white-space: nowrap;
    width: auto !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .tr_success .content {
    position: static !important;		/* game_005.css : absolute, over the next row once the row's height is freed */
    width: var(--lpt-end-w) !important;	/* 04/12, the user : not wider than the distance + time line */
    box-sizing: border-box;
    margin: 14px auto 0 !important;
    padding: 0 0 0 16px !important;		/* the pins' picture starts 16 px inside its box */
    height: auto !important;
    font-size: 16px !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .tr_success .content * {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame .tr_button td {
    padding: 16px 0 0 !important;
}
html.lpt_on #lpt_root > #topLayer #winEndGame #buttonPlayAgain {
    position: static !important;
    margin: 0 auto !important;
    font-size: 28px !important;
    padding: 6px 34px !important;
    height: auto !important;
    line-height: 1.2 !important;
}
/* (never a display here : the engine shows / hides this window ; forced, it stayed "open" all the play long => the
   layer covered the screen, 04/12) */
html.lpt_on #lpt_root > #topLayer #winButtonsEndGame.popup {
    text-align: center;
    margin: 16px auto 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
html.lpt_on #lpt_root > #topLayer #winButtonsEndGame .button {
    position: static !important;
    display: table;
    margin: 0 auto 10px !important;
    font-size: 15px !important;
    padding: 4px 14px !important;
    height: auto !important;
    line-height: 1.3 !important;
    width: auto !important;
}
/* "Voir les statistiques détaillées" : not important => a simple blue text link */
html.lpt_on #lpt_root > #topLayer #winButtonsEndGame #buttonDisplayGameStats {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #1a86d0 !important;
    font-family: inherit !important;
    font-weight: normal !important;
    font-size: 15px !important;
    text-decoration: underline !important;
    text-shadow: none !important;
    padding: 0 !important;
}

/* The site's "3 parties gratuites" popup (members not PRO, first play : plugins/vp_simple_push/01_display_simple_push.php,
   put in the page at the game's top) : 04/12, the user : it opened under the layer, unseen => above the layer, in the
   middle of the screen ; its close button removes it */
html.lpt_on #simple_push_popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10003 !important;
}
