/* PORTRAIT-2 (dev 05/12/2026) : Reg games in portrait on a phone. Script : _jeux/_common/reg_portrait.js.
   The page's layout is the loc games' one (_jeux/_common/loc_portrait.css, loaded just before : same lpt_* ids) ;
   here only what differs (#lpt_root.rpt). */

/* The engine's timer : moved out of the map by the script, laid out (its bar's height is read) but never seen ;
   loc_portrait.css hides #timerBloc (display:none : its height would be 0) */
#rpt_hold {
    position: fixed;
    left: -3000px;
    top: 0;
    width: 40px;
    height: 600px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}
html.lpt_on #rpt_hold #timerBloc {
    display: block !important;
}

/* The magnifier : a canvas drawn by the script (the map and the cross inside) */
#lpt_root.rpt #lpt_loupe {
    z-index: 2;
    background: #9cc3e6;
    pointer-events: none;
}

/* The help : in the middle of the zone, under the magnifier */
#lpt_root.rpt #lpt_msg {
    z-index: 1;
    font-size: 15px;
    line-height: 1.4;
}
#lpt_root.rpt #lpt_msg .lpt_small {
    font-size: 15px;
}

/* The small label over the top of the zone : the wrong area's name, the points, "C'était ici" */
#rpt_pill {
    position: absolute;
    left: 50%;
    top: 12px;
    z-index: 3;
    transform: translateX(-50%);
    max-width: calc(100% - 110px);
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--lpt-pill);
    box-shadow: 0 2px 10px var(--lpt-shadow);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
#rpt_pill.rpt_on { opacity: 1; }
#rpt_pill .lpt_good { color: var(--lpt-good); }
#rpt_pill .lpt_mid { color: var(--lpt-mid); }
#rpt_pill .lpt_bad { color: var(--lpt-bad); }
#lpt_zone.lpt_announcing #rpt_pill { visibility: hidden; }

/* The map's box : the colour around the engine's map */
#lpt_root.rpt #lpt_mapbox {
    background: #3d86de;
}
