/* ===== GLOBAL ===== */

:root{
--li-title:#18120a;
--li-title-shadow:rgba(255,244,210,0.14);
--li-text:#fff7e1;
--li-panel:#dec48a;
--li-panel-text:#18130d;
--li-btn-text:#18130d;
--li-btn-border:#fff1c0;
--li-btn-hi:rgba(255,255,255,0.3);
--li-btn-shadow:rgba(0,0,0,0.42);
--li-back:#f0ddb5;
--li-info:#a89057;
--li-schedules:#c8a85e;
--li-scores:#b79253;
--li-navigation:#aa8850;
--li-rules:#b56f46;
--li-tasks:#9f8a5a;
--li-maps:#c2a15b;
--li-other:#8f7d62;
--li-pl:#9f8a5a;
--li-en:#b0915c;
--li-range:#ba9150;
--li-nav:#9e8a61;
--li-water:#8f7b57;
--li-blitz:#b8a07a;
--li-milsim:#8b7a5b;
--li-master:#d9c9a8;
--li-lightmilsimday:#8b7a5b;
--li-lightmilsimtactic:#c7a266;
--li-lighterblitzday:#b8a07a;
--li-lighterblitztactic:#a69572;
}

html.theme-night{
--li-title:#cfe3d2;
--li-title-shadow:rgba(0,0,0,0.65);
--li-text:#d7e9d9;
--li-panel:#2f3b2e;
--li-panel-text:#d8ead8;
--li-btn-text:#d8ead8;
--li-btn-border:#49614d;
--li-btn-hi:rgba(146,190,151,0.2);
--li-btn-shadow:rgba(0,0,0,0.5);
--li-back:#3d4b3c;
--li-info:#334d3a;
--li-schedules:#3d513f;
--li-scores:#374a3a;
--li-navigation:#324845;
--li-rules:#5f4435;
--li-tasks:#3f5b43;
--li-maps:#5b553c;
--li-other:#384c4f;
--li-pl:#405f45;
--li-en:#3e555a;
--li-range:#5d4a35;
--li-nav:#3d5d47;
--li-water:#375466;
--li-blitz:#5a4b63;
--li-milsim:#61562f;
--li-master:#4b5248;
--li-lightmilsimday:#61562f;
--li-lightmilsimtactic:#7f6640;
--li-lighterblitzday:#5a4b63;
--li-lighterblitztactic:#57663f;
}

body{
margin:0;
background:
radial-gradient(120% 90% at 12% -20%, rgba(255,234,180,0.16), transparent 58%),
radial-gradient(110% 100% at 100% 115%, rgba(79,63,42,0.48), transparent 62%),
linear-gradient(165deg,#6a573d,#4f422f 60%,#3f3324);
font-family:Arial, sans-serif;
display:flex;
justify-content:center;
align-items:center;
min-height:100dvh;
overflow:hidden;
color:var(--li-text);
}

html.theme-night body{
background:
radial-gradient(120% 90% at 8% -20%, rgba(92,138,98,0.16), transparent 55%),
radial-gradient(120% 90% at 100% 120%, rgba(10,18,12,0.55), transparent 62%),
linear-gradient(165deg,#152018,#101711 58%,#0c120d);
}

body.main-menu-page,
body.loading-page{
overflow:hidden;
}

html{
overflow-x:hidden;
}

body.loading-page{
overflow:hidden;
height:100dvh;
}

body.main-menu-page::-webkit-scrollbar,
body.loading-page::-webkit-scrollbar{
width:0;
height:0;
}

/* ===== LAYOUT MODES ===== */

/* tylko podstrony majÄ… top zamiast center */
body.sub-page{
align-items:flex-start;
}

/* ===== WRAPPER ===== */

.wrapper{
width:300px;
animation:fadeIn 0.4s ease;
}

/* tylko podstrony dostajÄ… odstÄ™p */
body.sub-page .wrapper{
margin-top:20px; /* smaller gap below header */
}

/* ===== COMMAND ===== */

.commandNet{
background:var(--li-panel);
color:var(--li-panel-text);
border-radius:20px;
padding:12px 14px;
text-align:left;
margin-top:10px;
min-height:82px;
max-height:82px;
overflow:auto;

opacity:0;
transform:translateY(-10px);
animation:fadeDown 0.4s ease forwards;
animation-delay:0.05s;
}

.commandHistoryList{
display:grid;
gap:8px;
}

.commandItem{
display:grid;
gap:4px;
padding:0;
border-radius:0;
background:transparent;
border:none;
}

.commandItem.is-current{
background:transparent;
border-color:transparent;
}

.commandItemMeta{
display:flex;
justify-content:flex-start;
gap:10px;
align-items:center;
font-size:10px;
line-height:1.05;
opacity:0.86;
}

.commandItemText{
font-size:14px;
font-weight:900;
line-height:1.03;
word-break:break-word;
white-space:pre-wrap;
}

.commandItem.commandSP{
background:rgba(204,34,34,0.15);
border:2px solid #cc3333;
border-radius:8px;
padding:8px;
}
.commandItem.commandSP .commandItemText{
color:#ff3333;
}
.commandItem.commandSP .commandItemMeta{
color:#ff6666;
}
.commandItem.is-team .commandItemText,
.commandItem.is-team .commandItemMeta{
color:#ffb15e;
text-shadow:
0 1px 0 rgba(0,0,0,0.95),
1px 0 0 rgba(0,0,0,0.95),
-1px 0 0 rgba(0,0,0,0.95),
0 -1px 0 rgba(0,0,0,0.95);
}

.commandEmpty{
font-size:14px;
font-weight:800;
text-align:center;
opacity:0.86;
padding:8px 4px;
}

.themeToggleWrap{
display:flex;
justify-content:center;
align-items:center;
gap:8px;
margin:10px 0 14px;
}

.themeToggle{
flex:2;
border:1px solid var(--li-btn-border);
border-radius:999px;
padding:10px 14px;
font-size:12px;
font-weight:800;
letter-spacing:1px;
background:var(--li-panel);
color:var(--li-panel-text);
cursor:pointer;
box-shadow:0 4px 10px rgba(0,0,0,0.28);
}

.langToggle{
flex:1;
border:1px solid var(--li-btn-border);
border-radius:999px;
padding:10px 8px;
font-size:12px;
font-weight:800;
letter-spacing:1px;
background:var(--li-panel);
color:var(--li-panel-text);
cursor:pointer;
box-shadow:0 4px 10px rgba(0,0,0,0.28);
}

body.main-menu-page .themeToggle,
body.main-menu-page .langToggle{
padding:8px 10px;
font-size:11px;
}

/* Shared connectivity badge + runtime crash notification */
.netBadge{
position:fixed;
right:10px;
top:auto;
bottom:10px;
z-index:9999;
padding:5px 9px;
border-radius:999px;
font-size:10px;
font-weight:800;
letter-spacing:0.8px;
border:1px solid rgba(255,255,255,0.25);
backdrop-filter:blur(4px);
}

.netBadge.isOnline{
color:#d9ffe0;
background:rgba(26,97,44,0.72);
border-color:rgba(138,231,161,0.55);
}

.netBadge.isOffline{
color:#ffe1e1;
background:rgba(113,35,35,0.78);
border-color:rgba(255,146,146,0.65);
}

.appCrashGuard{
position:fixed;
left:50%;
bottom:10px;
transform:translateX(-50%);
z-index:10000;
display:none;
max-width:min(92vw,760px);
padding:10px 12px;
border-radius:10px;
border:1px solid rgba(255,162,162,0.8);
background:rgba(75,18,18,0.93);
color:#ffe2e2;
font-size:13px;
font-weight:700;
line-height:1.35;
text-align:center;
box-shadow:0 6px 18px rgba(0,0,0,0.45);
}

/* ===== TITLE ===== */

.menuTitle{
color:var(--li-title);
text-align:center;
font-size:24px;
margin-bottom:20px;
letter-spacing:2px;
font-weight:800;

text-shadow:
0 1px 0 rgba(255,255,255,0.08),
0 2px 5px var(--li-title-shadow);

animation:fadeDown 0.4s ease;
}

/* ===== ICON BAR ===== */

.iconBar{
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:12px;
margin-bottom:6px;
}

.iconBtn{
height:70px;
display:flex;
justify-content:center;
align-items:center;

filter:drop-shadow(0 4px 6px rgba(0,0,0,0.6));

transition:transform 0.08s, filter 0.15s;

opacity:0;
transform:translateY(10px);
animation:buttonIn 0.35s ease forwards;
}

.iconBar a:nth-child(1){ animation-delay:0.15s; }
.iconBar a:nth-child(2){ animation-delay:0.2s; }
.iconBar a:nth-child(3){ animation-delay:0.25s; }
.iconBar a:nth-child(4){ animation-delay:0.3s; }
.iconBar a:nth-child(5){ animation-delay:0.35s; }
.iconBar a:nth-child(6){ animation-delay:0.4s; }

.iconBtn img{
width:52px;
height:52px;
object-fit:contain;

opacity:0.75;
filter:grayscale(0.3) brightness(0.9);
}


/* ===== PRESS ===== */

.iconBtn:active{
transform:translateY(3px) scale(0.92);
filter:drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.iconBtn:active img{
opacity:1;
filter:
grayscale(0)
brightness(1.25)
contrast(1.1)
drop-shadow(0 0 6px rgba(210,194,157,0.6));
}

/* ===== MENU ===== */

.menu{
display:flex;
flex-direction:column;
gap:18px;
}

/* obsĹ‚uga <a><button> */
.menu a{
display:block;
width:100%;
text-decoration:none;
}

.menu a button{
width:100%;
}

/* ===== BUTTON ===== */

button{
position:relative;
border:1px solid var(--li-btn-border);
border-radius:22px;
padding:20px;
font-size:18px; /* keep the existing button text size */
font-weight:bold;
cursor:pointer;
letter-spacing:1px;
color:var(--li-btn-text);

transition:transform 0.08s, filter 0.15s;

box-shadow:
0 6px 14px var(--li-btn-shadow),
inset 0 1px 0 var(--li-btn-hi);

filter:contrast(1.02) brightness(0.96);
overflow:hidden;

width:100%;

/* ANIMACJA WRĂ“CIĹA */
opacity:0;
transform:translateY(10px);
animation:buttonIn 0.35s ease forwards;
}

/* Stagger works across all pages */

.menu > *:nth-child(1) button,
.menu > button:nth-child(1){ animation-delay:0.15s; }

.menu > *:nth-child(2) button,
.menu > button:nth-child(2){ animation-delay:0.25s; }

.menu > *:nth-child(3) button,
.menu > button:nth-child(3){ animation-delay:0.35s; }

.menu > *:nth-child(4) button,
.menu > button:nth-child(4){ animation-delay:0.45s; }

.menu > *:nth-child(5) button,
.menu > button:nth-child(5){ animation-delay:0.55s; }

.menu > *:nth-child(6) button,
.menu > button:nth-child(6){ animation-delay:0.65s; }

/* ===== EFFECTS ===== */

button::before{
content:"";
position:absolute;
inset:0;
border-radius:22px;

background:
radial-gradient(rgba(255,255,255,0.08), transparent 70%),
radial-gradient(rgba(0,0,0,0.25), transparent 70%);

mix-blend-mode:overlay;
opacity:0.6;
pointer-events:none;
}

button::after{
content:"";
position:absolute;
inset:0;
border-radius:22px;

background-image:
repeating-linear-gradient(
45deg,
rgba(0,0,0,0.04) 0px,
rgba(0,0,0,0.04) 1px,
transparent 1px,
transparent 3px
);

opacity:0.25;
pointer-events:none;
}

button:active{
transform:scale(0.94);
filter:brightness(0.8);

box-shadow:
inset 0 4px 10px rgba(0,0,0,0.7);
}

/* ===== COLORS ===== */

/* MAIN */
.info{ background:#6a7f3a; }
.schedules{ background:var(--li-schedules); }
.scores{ background:var(--li-scores); }
.navigation{ background:var(--li-navigation); }

/* INFO */
.rules{ background:var(--li-rules); }
.tasks{ background:var(--li-tasks); }
.maps{ background:var(--li-maps); }
.blitz{ background:var(--li-blitz); }
.other{ background:var(--li-other); }
.competitorFoldersBtn{
font-size:14px;
line-height:1.15;
letter-spacing:0.45px;
padding-left:16px;
padding-right:16px;
}
.back{ background:var(--li-back); }

/* RULES */
.pl{ background:var(--li-pl); }
.en{ background:var(--li-en); }

.info{ background:var(--li-info); }

/* ===== ICON ===== */

.download-icon{
position:absolute;
right:16px;
top:50%;
transform:translateY(-50%);
width:26px;
height:26px;
}

.menuItem{
width:100%;
}

.menuItemNote{
margin-top:4px;
text-align:center;
font-size:11px;
font-weight:900;
letter-spacing:0.7px;
text-transform:uppercase;
color:var(--li-text);
opacity:0.82;
}

body.scores-page > .wrapper > .menuItemNote{
margin-bottom:10px;
}

.menuTeamLabel{
text-align:center;
font-size:12px;
font-weight:900;
letter-spacing:1.2px;
color:var(--li-title);
text-shadow:0 2px 8px rgba(0,0,0,0.32);
opacity:0.9;
}

.menuWarningBox{
width:92%;
margin:4px auto 6px;
padding:10px 12px;
border-radius:16px;
background:rgba(145,78,25,0.22);
border:1px solid rgba(255,176,88,0.45);
box-shadow:0 10px 20px rgba(0,0,0,0.18);
}

.menuWarningTitle{
text-align:center;
font-size:12px;
font-weight:900;
letter-spacing:1px;
color:#ffc978;
margin-bottom:4px;
}

.menuWarningText{
text-align:center;
font-size:11px;
font-weight:700;
line-height:1.25;
color:#ffe5be;
}

/* ===== LOADING ===== */

.container{
width:min(88vw,320px);
text-align:center;
animation:fadeIn 0.4s ease;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
min-height:100dvh;
box-sizing:border-box;
padding:16px 0 12px;
}

.title{
color:#d2c29d;
font-size:46px;
font-weight:800;
letter-spacing:2px;
line-height:1.14;
margin-top:-88px;
text-shadow:
0 2px 0 rgba(0,0,0,0.45),
0 6px 16px rgba(0,0,0,0.58);
}

.subtitle{
color:#7a2d2d;
font-size:26px;
margin-top:0;
text-shadow:
0 2px 0 rgba(0,0,0,0.45),
0 6px 16px rgba(0,0,0,0.58);
}

.byline{
color:#d2c29d;
font-size:17px;
font-weight:800;
letter-spacing:2px;
text-transform:none;
opacity:1;
text-shadow:
0 2px 0 rgba(0,0,0,0.45),
0 6px 16px rgba(0,0,0,0.58);
}

.brandRow{
display:flex;
justify-content:center;
align-items:center;
gap:18px;
width:100%;
margin-top:2px;
}

.brandLogo{
width:auto;
object-fit:contain;
filter:drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}

.brandLogoKsi{
height:168px;
}

.brandLogoPsat{
height:74px;
}

.image{
margin-top:28px;
transform:scale(0.5);
opacity:0;
animation:phoneAppear 1s ease-out forwards;
}

.image img{
width:246px;
filter: drop-shadow(0 10px 20px rgba(0,0,0,0.7));
animation:phoneDriftUp 2.6s ease-in-out 1s infinite alternate;
}

.loading{
margin-top:6px;
font-size:21px;
color:#D3BF9C;
letter-spacing:1px;
text-shadow:
0 2px 0 rgba(0,0,0,0.45),
0 6px 16px rgba(0,0,0,0.58);
}

body.loading-page .netBadge{
display:none;
}

.splashCredit{
position:fixed;
right:12px;
bottom:8px;
font-size:9px;
letter-spacing:1px;
color:rgba(240,232,214,0.72);
text-align:right;
opacity:1;
transition:opacity 0.25s ease;
pointer-events:none;
}

.splashCredit.isHidden{
opacity:0;
}

.startFlowWrap{
width:min(92vw,420px);
display:flex;
flex-direction:column;
justify-content:flex-start;
min-height:100dvh;
padding:10px 0 24px;
box-sizing:border-box;
}

.startCard{
background:rgba(8,8,8,0.95);
border:1px solid rgba(184,150,95,0.18);
border-radius:26px;
padding:18px 14px 16px;
box-shadow:0 16px 34px rgba(0,0,0,0.28);
}

.startFlowTitle{
font-family:"Stencil","Stencil Std","Impact","Arial Black",sans-serif;
font-weight:900;
letter-spacing:2.6px;
text-transform:uppercase;
text-shadow:
0 1px 0 rgba(255,255,255,0.06),
0 3px 10px rgba(0,0,0,0.5);
margin-bottom:14px;
}

.startCategoryGrid{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
column-gap:12px;
row-gap:52px;
}

.startRoWrap{
display:flex;
justify-content:center;
margin-top:44px;
}

.startCategoryBtn{
appearance:none;
border:0;
background:#090909;
padding:0;
cursor:pointer;
border-radius:18px;
overflow:hidden;
box-shadow:0 10px 24px rgba(0,0,0,0.26);
aspect-ratio:512 / 488;
display:flex;
align-items:center;
justify-content:center;
transform:scale(0.2);
opacity:0;
animation:startCategoryPop 1s ease forwards;
transition:transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.startCategoryBtn img{
display:block;
width:100%;
height:100%;
object-fit:contain;
object-position:center center;
background:#090909;
}

.startCategoryGrid .startCategoryBtn:nth-child(1){
animation-delay:0s;
}

.startCategoryGrid .startCategoryBtn:nth-child(2){
animation-delay:0.08s;
}

.startCategoryGrid .startCategoryBtn:nth-child(3){
animation-delay:0.16s;
}

.startCategoryGrid .startCategoryBtn:nth-child(4){
animation-delay:0.24s;
}

.startRoBtn{
appearance:none;
border:0;
background:transparent;
padding:0;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
width:min(76%, 270px);
margin:0 auto;
box-shadow:none;
transform:scale(0.2);
opacity:0;
animation:startCategoryPop 1s ease forwards;
animation-delay:0.32s;
transition:transform 0.12s ease, filter 0.12s ease;
}

.startRoBtn img{
display:block;
width:100%;
height:auto;
object-fit:contain;
object-position:center center;
}

.startRoCategoryActions{
display:grid;
gap:16px;
margin-top:6px;
}

.startRoCategoryBtn{
border:0;
border-radius:22px;
padding:22px 18px;
font-size:22px;
font-weight:900;
line-height:1.2;
letter-spacing:0.4px;
color:#f4f0df;
box-shadow:0 12px 24px rgba(0,0,0,0.28);
transition:transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.startRoCategoryBtnBlitz{
background:linear-gradient(135deg, #8c6a28 0%, #5f4518 100%);
}

.startRoCategoryBtnMilsim{
background:linear-gradient(135deg, #36563a 0%, #203923 100%);
}

.startRoCategoryBtn:hover{
filter:brightness(1.05);
}

.startRoCategoryBtn:active{
transform:scale(0.96);
filter:brightness(0.82);
box-shadow:0 4px 10px rgba(0,0,0,0.42), inset 0 0 0 3px rgba(255,214,140,0.16);
}

.startRoBackRow{
margin-top:16px;
}

#startRoLoginScreen .navFormRow{
text-align:center;
}

#startRoLoginScreen .navLabel{
text-align:center;
}

#startRoLoginScreen input{
height:84px;
font-size:28px;
text-align:center;
padding:0 22px;
width:100%;
max-width:100%;
display:block;
margin-left:auto;
margin-right:auto;
box-sizing:border-box;
}

.startCategoryBtn:hover,
.startRoBtn:hover{
filter:brightness(1.05);
}

.startCategoryBtn:active{
transform:scale(0.9);
filter:brightness(0.78) contrast(1.1);
box-shadow:0 4px 10px rgba(0,0,0,0.48), inset 0 0 0 3px rgba(255,214,140,0.18);
}

.startRoBtn:active{
transform:scale(0.9);
filter:brightness(0.78) contrast(1.08);
}

@keyframes startCategoryPop{
0%{
transform:scale(0.2);
opacity:0;
}
55%{
transform:scale(1.04);
opacity:1;
}
100%{
transform:scale(1);
opacity:1;
}
}

.startStatusLine{
margin-top:10px;
text-align:center;
font-size:13px;
font-weight:800;
line-height:1.3;
color:#b8d8bf;
}

.startStatusLine.isError{
color:#ffb3b3;
}

#startLoginScreen .navFormRow{
text-align:center;
}

#startLoginScreen .navLabel{
text-align:center;
}

#startLoginScreen select,
#startLoginScreen input{
height:84px;
font-size:28px;
text-align:center;
padding:0 22px;
width:100%;
max-width:100%;
display:block;
margin-left:auto;
margin-right:auto;
box-sizing:border-box;
}

#startLoginScreen select{
text-align-last:center;
appearance:none;
}

/* ===== MOBILE FIT (NO SCROLL MENUS) ===== */

@media (max-width:600px){
body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page){
padding:8px 10px;
}

body.loading-page{
padding:0 10px;
}

body.loading-page .container{
width:min(90vw,320px);
gap:8px;
padding:16px 0 10px;
}

body.loading-page .title{
font-size:42px;
line-height:1.1;
margin-top:-94px;
}

body.loading-page .subtitle{
font-size:23px;
}

body.loading-page .byline{
font-size:16px;
letter-spacing:1.8px;
}

body.loading-page .brandRow{
gap:14px;
}

body.loading-page .brandLogoKsi{
height:152px;
}

body.loading-page .brandLogoPsat{
height:67px;
}

body.loading-page .image{
margin-top:18px;
}

body.loading-page .image img{
width:min(65vw,228px);
}

body.loading-page .loading{
font-size:19px;
margin-top:2px;
}

.startFlowWrap{
width:min(92vw,360px);
padding:14px 0 20px;
}

.startCard{
padding:16px 12px 14px;
border-radius:22px;
}

.startCategoryGrid{
gap:10px;
}

.startStatusLine{
font-size:12px;
}

#startLoginScreen select,
#startLoginScreen input{
height:78px;
font-size:24px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .wrapper{
width:min(88vw,340px);
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .menuTitle{
font-size:21px;
margin-bottom:12px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .menu{
gap:12px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .menu button{
padding:16px 16px;
font-size:17px;
line-height:1.15;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
min-height:62px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .menu button .btn-text{
line-height:1.15;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .commandNet{
margin-top:0;
padding:10px 12px;
font-size:14px;
line-height:1.2;
border-radius:14px;
}

body.main-menu-page .themeToggleWrap{
margin:6px 0 8px;
}

body.main-menu-page .themeToggle{
padding:8px 12px;
font-size:11px;
}

body.main-menu-page .logoutChip{
padding:8px 8px;
font-size:11px;
}

body.main-menu-page .iconBar{
gap:10px;
margin-bottom:2px;
}

body.main-menu-page .iconBtn{
height:76px;
}

body.main-menu-page .iconBtn img{
width:58px;
height:58px;
}

body.main-menu-page{
padding:0 10px 10px;
align-items:flex-start;
}

body.main-menu-page .wrapper{
width:min(90vw,330px);
max-height:calc(100dvh - 10px);
display:flex;
flex-direction:column;
gap:4px;
margin-top:10px;
}

body.main-menu-page .commandNet,
body.main-menu-page .themeToggleWrap,
body.main-menu-page .menu{
width:92%;
margin-left:auto;
margin-right:auto;
}

body.main-menu-page .iconBar{
width:86%;
margin-left:auto;
margin-right:auto;
}

body.main-menu-page .menu{
margin-top:auto;
padding-bottom:8px;
}

body.main-menu-page .commandNet{
padding:12px 14px;
min-height:82px;
max-height:82px;
}

body.main-menu-page .menuWarningBox{
width:92%;
}

body.main-menu-page .menuTitle{
font-size:15px;
margin-bottom:0;
letter-spacing:1px;
}

body.main-menu-page .menuTeamLabel{
font-size:11px;
margin-bottom:2px;
}
}

@media (max-width:600px) and (max-height:820px){
body.main-menu-page .wrapper{
max-height:calc(100dvh - 10px);
gap:4px;
}

body.main-menu-page .commandNet{
padding:12px 14px;
min-height:80px;
max-height:80px;
}

body.main-menu-page .menuTitle{
font-size:15px;
margin-bottom:0;
letter-spacing:1px;
}

body.main-menu-page .menuTeamLabel{
font-size:11px;
margin-bottom:2px;
}

body.main-menu-page .iconBar{
gap:8px;
}

body.main-menu-page .iconBtn{
height:68px;
}

body.main-menu-page .iconBtn img{
width:54px;
height:54px;
}

body.main-menu-page .menu{
gap:8px;
}

body.main-menu-page .menu button{
padding:10px 12px;
font-size:14px;
border-radius:16px;
}

body.main-menu-page .menuItemNote{
font-size:10px;
letter-spacing:0.55px;
margin-top:3px;
}

body.main-menu-page .menuWarningTitle{
font-size:11px;
}

body.main-menu-page .menuWarningText{
font-size:10px;
}
}

@media (max-width:600px) and (max-height:700px){
body.loading-page .container{
gap:6px;
padding:12px 0 8px;
}

body.loading-page .title{
font-size:36px;
margin-top:-80px;
}

body.loading-page .subtitle{
font-size:20px;
}

body.loading-page .byline{
font-size:14px;
}

body.loading-page .brandLogoKsi{
height:120px;
}

body.loading-page .brandLogoPsat{
height:54px;
}

body.loading-page .image img{
width:min(55vw,192px);
}

body.loading-page .loading{
font-size:16px;
}

.startFlowWrap{
width:min(94vw,340px);
padding:8px 0 16px;
}

.startCard{
padding:14px 10px 12px;
}

.startFlowTitle{
font-size:19px;
margin-bottom:10px;
}

.startCategoryGrid{
column-gap:8px;
row-gap:40px;
}

.startRoWrap{
margin-top:34px;
}

.startRoBtn{
width:min(74%, 232px);
}

.startRoCategoryBtn{
padding:18px 14px;
font-size:18px;
}

.startRoBackRow{
margin-top:12px;
}

#startRoLoginScreen input{
height:72px;
font-size:21px;
}

.startStatusLine{
font-size:11px;
}

#startLoginScreen select,
#startLoginScreen input{
height:72px;
font-size:21px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .menu{
gap:7px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page) .menu button{
padding:12px 12px;
font-size:15px;
border-radius:14px;
min-height:52px;
}

.competitorFoldersBtn{
font-size:12px;
letter-spacing:0.3px;
}
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn{
from { opacity:0; }
to   { opacity:1; }
}

@keyframes fadeDown{
from {
opacity:0;
transform:translateY(-10px);
}
to {
opacity:1;
transform:translateY(0);
}
}

@keyframes buttonIn{
to{
opacity:1;
transform:translateY(0);
}
}

@keyframes phoneAppear{
from{
opacity:0;
transform:scale(0.5);
}
to{
opacity:1;
transform:scale(1);
}
}

@keyframes phoneDriftUp{
from{
transform:translateY(0);
}
to{
transform:translateY(-8px);
}
}

/* ===== PAGE VARIANTS ===== */

body.tasks-page .menu button,
body.maps-page .menu button{
font-size:20px;
}

body.tasks-page .pl{ background:var(--li-pl); }
body.tasks-page .en{ background:var(--li-en); }
body.maps-page .range{ background:var(--li-range); }
body.maps-page .nav{ background:var(--li-nav); }
body.maps-page .water{ background:var(--li-water); }

body.tasks-page .pl,
body.tasks-page .en,
body.maps-page .range,
body.maps-page .water{
display:flex;
align-items:center;
justify-content:center;
}

body.maps-page .menu button{
min-height:112px;
display:flex;
align-items:center;
justify-content:center;
line-height:1.08;
}

body.maps-page .range,
body.maps-page .nav,
body.maps-page .water{
font-size:18px; /* keep the existing button text size */
}

body.maps-page .range,
body.maps-page .water{
padding-left:22px;
padding-right:58px;
}

body.maps-page .range .btn-text,
body.maps-page .water .btn-text,
body.maps-page .nav{
display:block;
width:100%;
text-align:center;
}

.btn-text{
text-align:center;
}

.competitorFoldersBtn .btn-text{
display:block;
width:100%;
padding-right:28px;
box-sizing:border-box;
}

body.scores-page .blitz{ background:var(--li-blitz); }
body.scores-page .milsim{ background:var(--li-milsim); color:var(--li-text); }

body.schedules-page .master{ background:var(--li-master); }
body.schedules-page .master .btn-text{
display:block;
width:100%;
padding-right:34px;
box-sizing:border-box;
font-size:0.93em;
}
body.schedules-page .lightmilsimday{ background:var(--li-lightmilsimday); color:var(--li-text); }
body.schedules-page .lightmilsimtactic{ background:var(--li-lightmilsimtactic); }
body.schedules-page .lighterblitzday{ background:var(--li-lighterblitzday); }
body.schedules-page .lighterblitztactic{ background:var(--li-lighterblitztactic); }

body.navigation-maps-page .wrapper{
display:flex;
flex-direction:column;
align-items:center;
}

body.navigation-maps-page .menuTitle{
font-size:20px;
margin-bottom:15px;
}

body.navigation-maps-page .menu{
gap:14px;
width:100%;
align-items:center;
}

body.navigation-maps-page .mapButton{
display:flex;
flex-direction:column;
align-items:center;
text-decoration:none;
color:white;
width:100%;
opacity:0;
transform:translateY(10px);
animation:buttonIn 0.35s ease forwards;
}

body.navigation-maps-page .menu .mapButton:nth-child(1){ animation-delay:0.15s; }
body.navigation-maps-page .menu .mapButton:nth-child(2){ animation-delay:0.25s; }
body.navigation-maps-page .menu .mapButton:nth-child(3){ animation-delay:0.35s; }
body.navigation-maps-page .menu .mapButton:nth-child(4){ animation-delay:0.45s; }

body.navigation-maps-page .mapButton:active{
transform:scale(0.94);
}

body.navigation-maps-page .mapButton img{
height:70px;
object-fit:contain;
}

body.navigation-maps-page .label{
font-size:13px;
font-weight:bold;
margin-top:4px;
color:var(--li-text);
letter-spacing:1px;
}

body.navigation-maps-page .back{
padding:16px;
margin-top:10px;
animation-delay:0.55s;
}

body.range-map-page .menu{
gap:30px;
width:280px;
}

body.range-map-page button{
border-radius:20px;
padding:25px;
font-size:22px;
}

body.range-map-page .download{
background:var(--li-range);
}

body.range-map-page .back{
background:var(--li-back);
}

/* ===== TIMER PAGES ===== */

body.timer-day-page,
body.timer-tactic-page{
margin:0;
padding:0;
width:100%;
min-height:100dvh;
display:block;
background:#000;
font-family:Arial,Helvetica,sans-serif;
overflow:hidden;
}

body.timer-day-page #milsim-app,
body.timer-tactic-page #milsim-app{
position:fixed;
inset:0;
display:flex;
height:100dvh;
}

body.timer-day-page #milsim-app{
color:#fff;
}

body.timer-day-page #leftPanel{
width:50%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
background:#000;
transition:background .3s;
position:relative;
}

body.timer-day-page #rightPanel{
width:50%;
background:#111;
overflow:hidden;
display:flex;
flex-direction:column;
}

body.timer-tactic-page #leftPanel{
width:50%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
position:relative;
background:#a8ff60;
color:#000;
padding:84px 20px 20px;
box-sizing:border-box;
}

body.timer-tactic-page #rightPanel{
width:50%;
background:#000;
overflow:hidden;
display:flex;
flex-direction:column;
align-items:center;
padding-top:10px;
box-sizing:border-box;
min-height:0;
}

body.timer-day-page .timerTableWrap,
body.timer-tactic-page .timerTableWrap{
width:100%;
flex:1;
min-height:0;
overflow:hidden;
position:relative;
}

body.timer-day-page table,
body.timer-tactic-page table{
width:100%;
border-collapse:separate;
border-spacing:0;
color:#fff;
background:rgba(0,0,0,0.22);
border:1px solid rgba(255,255,255,0.14);
border-radius:12px;
overflow:hidden;
display:flex;
flex-direction:column;
height:100%;
}

/* Hard split header/body to avoid mobile sticky bugs */
body.timer-day-page .timerTableWrap table thead,
body.timer-tactic-page .timerTableWrap table thead{
display:table;
width:100%;
table-layout:fixed;
}

body.timer-day-page .timerTableWrap table tbody,
body.timer-tactic-page .timerTableWrap table tbody{
display:block;
flex:1;
min-height:0;
overflow-y:auto;
overflow-x:hidden;
-webkit-overflow-scrolling:touch;
overscroll-behavior:contain;
}

body.timer-day-page .timerTableWrap table tbody tr,
body.timer-tactic-page .timerTableWrap table tbody tr{
display:table;
width:100%;
table-layout:fixed;
}

body.timer-day-page table{
font-size:1.9vh;
}

body.timer-tactic-page table{
width:96%;
font-size:2.6vh;
}

body.timer-day-page th,
body.timer-day-page td{
border-right:2px solid rgba(186,166,220,0.25);
border-bottom:1px solid rgba(255,255,255,0.1);
padding:6px 8px;
text-align:center;
}

body.timer-day-page th{
background:linear-gradient(180deg,#7a6a8a,#524762);
position:static;
font-weight:900;
text-transform:uppercase;
letter-spacing:0.4px;
box-shadow:inset 0 0 0 1px rgba(220,204,245,0.4);
}

body.timer-tactic-page th,
body.timer-tactic-page td{
border-right:2px solid rgba(186,166,220,0.25);
border-bottom:1px solid rgba(255,255,255,0.1);
padding:10px 12px;
text-align:center;
}

body.timer-tactic-page th{
background:linear-gradient(180deg,#7a6a8a,#524762);
position:static;
font-weight:900;
font-size:2.8vh;
text-transform:uppercase;
letter-spacing:0.4px;
box-shadow:inset 0 0 0 1px rgba(220,204,245,0.4);
}

body.timer-day-page tbody tr:nth-child(even) td,
body.timer-tactic-page tbody tr:nth-child(even) td{
background:rgba(122,106,138,0.14);
}

body.timer-day-page tbody tr:nth-child(odd) td,
body.timer-tactic-page tbody tr:nth-child(odd) td{
background:rgba(18,14,24,0.72);
}

body.timer-day-page .activeRow{
background:#444 !important;
}

body.timer-tactic-page .highlight,
body.timer-tactic-page .highlightRow{
background:#ffb300;
color:#000;
}

body.timer-tactic-page .highlightRow{
font-weight:900;
}

body.timer-day-page #dayTitle{
font-size:3vh;
font-weight:900;
margin-bottom:20px;
}

body.timer-day-page #series{
font-size:3vh;
}

body.timer-day-page #round{
font-size:4vh;
}

body.timer-day-page #status{
font-size:6vh;
font-weight:900;
}

body.timer-day-page #timer{
font-size:12vh;
font-weight:900;
}

body.timer-day-page #realClock{
font-size:4vh;
margin-top:10px;
}

body.timer-tactic-page #dayTitle{
font-size:3vh;
font-weight:900;
margin-bottom:15px;
letter-spacing:1px;
text-transform:uppercase;
}

body.timer-tactic-page #activeTask{ font-size:4.8vh; font-weight:900; }
body.timer-tactic-page #round{ font-size:3.8vh; font-weight:800; }
body.timer-tactic-page #status{ font-size:8vh; font-weight:900; margin:10px 0; }
body.timer-tactic-page #timer{ font-size:11vh; font-weight:900; }
body.timer-tactic-page #realClock{ font-size:3.5vh; font-weight:800; margin-top:12px; }

body.timer-day-page #ui,
body.timer-tactic-page #ui{
position:absolute;
top:10px;
left:10px;
display:flex;
gap:8px;
}

body.timer-day-page #modeSwitch,
body.timer-tactic-page #modeSwitch,
body.timer-tactic-page #viewSwitch{
display:flex;
gap:8px;
margin-bottom:10px;
padding:10px;
background:#000;
position:sticky;
top:0;
z-index:5;
}

body.timer-tactic-page #modeSwitch,
body.timer-tactic-page #viewSwitch{
background:transparent;
padding:0;
position:static;
}

body.timer-tactic-page #teamSelect,
body.timer-tactic-page #teamSelectContainer{
margin-bottom:10px;
}

body.timer-day-page #teamSelect{
margin-left:8px;
}

body.timer-tactic-page #teamSelectContainer{
display:none;
}

.timer-hidden{
display:none !important;
}

body.timer-day-page button,
body.timer-tactic-page button,
body.command-admin-page button{
position:static;
overflow:visible;
filter:none;
box-shadow:none;
opacity:1;
transform:none;
animation:none;
letter-spacing:normal;
}

body.timer-day-page button::before,
body.timer-day-page button::after,
body.timer-tactic-page button::before,
body.timer-tactic-page button::after,
body.command-admin-page button::before,
body.command-admin-page button::after{
content:none;
}

body.timer-day-page #ui button,
body.timer-day-page #modeSwitch button,
body.timer-tactic-page #ui button,
body.timer-tactic-page #modeSwitch button,
body.timer-tactic-page #viewSwitch button{
height:38px;
font-size:14px;
padding:0 14px;
font-weight:800;
letter-spacing:0.7px;
border:1px solid var(--li-btn-border);
border-radius:14px;
background:linear-gradient(145deg, rgba(12,18,16,0.88), rgba(34,44,39,0.92));
color:#eef4ed;
cursor:pointer;
width:auto;
white-space:nowrap;
box-shadow:
0 5px 12px rgba(0,0,0,0.4),
inset 0 1px 0 rgba(255,255,255,0.12);
}

body.timer-day-page #ui button:active,
body.timer-day-page #modeSwitch button:active,
body.timer-tactic-page #ui button:active,
body.timer-tactic-page #modeSwitch button:active,
body.timer-tactic-page #viewSwitch button:active{
transform:scale(0.96);
filter:brightness(0.9);
}

body.timer-day-page #modeSwitch select,
body.timer-tactic-page #teamSelect,
body.timer-tactic-page #teamSelectContainer select{
height:38px;
font-size:14px;
padding:0 10px;
border-radius:12px;
border:1px solid var(--li-btn-border);
background:rgba(6,12,10,0.85);
color:var(--li-text);
}

@media (orientation:portrait){
body.timer-day-page #milsim-app,
body.timer-tactic-page #milsim-app{
flex-direction:column;
}

body.timer-day-page #ui,
body.timer-tactic-page #ui{
left:8px;
right:8px;
top:8px;
gap:6px;
justify-content:space-between;
}

body.timer-day-page #leftPanel{
width:100%;
height:60%;
}

body.timer-day-page #rightPanel{
width:100%;
height:40%;
}

body.timer-tactic-page #leftPanel{
width:100%;
flex:0 0 auto;
padding-top:74px;
}

body.timer-tactic-page #rightPanel{
width:100%;
flex:1;
min-height:0;
}

body.timer-tactic-page table{
font-size:2.2vh;
}

body.timer-day-page #ui button,
body.timer-tactic-page #ui button{
height:34px;
padding:0 6px;
font-size:9px;
letter-spacing:0.2px;
border-radius:12px;
}

body.timer-day-page #modeSwitch button,
body.timer-tactic-page #modeSwitch button,
body.timer-tactic-page #viewSwitch button{
height:36px;
font-size:11px;
padding:0 10px;
}
}

@media (orientation:portrait) and (display-mode: standalone){
body.timer-day-page #leftPanel{
height:56%;
}

body.timer-day-page #rightPanel{
height:44%;
}

body.timer-day-page #modeSwitch{
display:grid;
grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px;
align-items:center;
}

body.timer-day-page #modeSwitch select{
width:100%;
min-width:0;
margin-left:0;
}

body.timer-day-page .timerTableWrap,
body.timer-tactic-page .timerTableWrap{
overflow:auto;
}

body.timer-day-page .timerTableWrap table tbody,
body.timer-tactic-page .timerTableWrap table tbody{
padding-bottom:56px;
box-sizing:border-box;
}
}

/* ===== COMMAND ADMIN ===== */

body.command-admin-page{
margin:0;
display:flex;
justify-content:center;
align-items:center;
height:100vh;
background:#222;
font-family:Arial,Helvetica,sans-serif;
color:white;
}

body.command-admin-page .panel{
width:320px;
background:#333;
padding:20px;
border-radius:12px;
display:flex;
flex-direction:column;
gap:12px;
}

body.command-admin-page input,
body.command-admin-page textarea{
width:100%;
padding:10px;
font-size:16px;
border-radius:8px;
border:none;
box-sizing:border-box;
}

body.command-admin-page button{
padding:12px;
font-size:16px;
font-weight:bold;
border:none;
border-radius:10px;
cursor:pointer;
width:100%;
}

body.command-admin-page .send{ background:#7ed957; }
body.command-admin-page .clear{ background:var(--li-range); }

/* ===== SCORES TABLE PAGES ===== */

body.scores-table-page{
align-items:flex-start;
overflow:auto;
padding:16px 12px;
--scores-head-a:#60886f;
--scores-head-b:#3d5f4a;
--scores-row-even:rgba(122,167,130,0.1);
--scores-row-odd:rgba(18,31,22,0.72);
--scores-border:rgba(255,255,255,0.16);
--scores-head-border:rgba(173,210,181,0.55);
}

body.scores-table-blitz{
--scores-head-a:#7a6a8a;
--scores-head-b:#524762;
--scores-row-even:rgba(122,106,138,0.16);
--scores-row-odd:rgba(23,20,30,0.74);
--scores-border:rgba(199,176,230,0.24);
--scores-head-border:rgba(206,187,235,0.62);
}

body.scores-table-milsim{
--scores-head-a:#7d6f3f;
--scores-head-b:#5b512f;
--scores-row-even:rgba(139,122,47,0.18);
--scores-row-odd:rgba(35,31,20,0.74);
--scores-border:rgba(217,201,141,0.24);
--scores-head-border:rgba(224,210,157,0.65);
}

.scoresTableWrap{
width:min(1200px,96vw);
margin:0 auto;
height:auto;
}

body.scores-table-page .menuTitle{
margin-bottom:10px;
font-size:28px;
letter-spacing:1px;
}

.scoresToolbar{
display:grid;
grid-template-columns:130px minmax(170px,1fr) minmax(130px,0.8fr) 130px 100px;
gap:8px;
align-items:center;
margin-bottom:10px;
}

.scoresBtn,
.scoresInput,
.scoresSelect{
height:42px;
border-radius:12px;
border:1px solid var(--li-btn-border);
background:rgba(0,0,0,0.22);
color:var(--li-text);
font-size:14px;
padding:0 12px;
}

.scoresBtn{
cursor:pointer;
font-weight:800;
letter-spacing:1px;
}

.scoresBtnPrimary{
background:linear-gradient(180deg,var(--scores-head-a),var(--scores-head-b));
}

.scoresBtnGhost{
background:rgba(0,0,0,0.12);
}

.scoresInput::placeholder{
color:rgba(230,240,232,0.72);
}

.scoresSelect{
color:#e6f0e8;
background:rgba(0,0,0,0.22);
}

.scoresSelect option{
color:#111;
background:#f2f2f2;
}

.scoresSelect option:checked{
color:#fff;
background:#2d6cc9;
}

.scoresInputNarrow{
max-width:220px;
justify-self:start;
}

.scoresStatus{
font-size:13px;
margin-bottom:4px;
font-weight:700;
}

.scoresStatus.ok{ color:#9ee7a9; }
.scoresStatus.warn{ color:#f0d08a; }
.scoresStatus.err{ color:#ff8f8f; }
.scoresStatus.info{ color:#b9d6be; }

.scoresLastSync{
font-size:12px;
opacity:0.9;
margin-bottom:8px;
}

.scoresHint{
font-size:12px;
opacity:0.82;
margin-bottom:8px;
}

.scoresGrid{
overflow:auto;
border:1px solid rgba(255,255,255,0.12);
border-radius:12px;
background:rgba(0,0,0,0.26);
max-height:70dvh;
-webkit-overflow-scrolling:touch;
touch-action:pan-x pan-y;
}

.scoresGrid table{
width:max-content;
min-width:100%;
border-collapse:separate;
border-spacing:0;
}

.scoresGrid th,
.scoresGrid td{
padding:8px 10px;
border-bottom:1px solid rgba(255,255,255,0.09);
border-right:2px solid var(--scores-border);
font-size:13px;
white-space:nowrap;
text-align:center;
}

.scoresGrid th{
position:sticky;
top:0;
z-index:5;
background:rgb(24,38,28);
font-weight:900;
backdrop-filter:none;
border-bottom:2px solid rgba(191,224,197,0.36);
}

.scoresGrid thead tr.scoresHeadTop th{
top:0;
z-index:9;
background:rgb(18,31,22);
}

.scoresGrid thead tr.scoresHeadSecond th{
top:38px;
z-index:8;
background:rgb(24,38,28);
}

.scoresGrid th.scoresSortable{
cursor:pointer;
padding-right:24px;
position:sticky;
background:
linear-gradient(180deg, var(--scores-head-a), var(--scores-head-b));
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.28),
inset 0 0 0 2px var(--scores-head-border),
0 2px 0 rgba(0,0,0,0.38);
border-top:1px solid rgba(183,220,190,0.7);
border-bottom:1px solid rgba(32,52,39,0.95);
text-transform:uppercase;
letter-spacing:0.4px;
z-index:7;
}

.scoresGrid th.scoresSortable::after{
content:"";
position:absolute;
right:8px;
top:50%;
transform:translateY(-50%);
opacity:0.9;
}

.scoresGrid th.scoresSortAsc::after{
content:"\25B2";
font-size:10px;
}

.scoresGrid th.scoresSortDesc::after{
content:"\25BC";
font-size:10px;
}

.scoresGrid th.scoresSortable:active{
filter:brightness(1.12);
transform:translateY(1px);
}

.scoresGrid thead th:first-child{
border-top-left-radius:10px;
}

.scoresGrid thead th:last-child{
border-top-right-radius:10px;
}

.scoresFrozenCol{
position:sticky;
z-index:6;
background:rgba(20,32,23,0.98);
}

.scoresGrid thead .scoresFrozenCol{
z-index:12;
}

.scoresRowClickable{
cursor:pointer;
}

.scoresRowClickable td{
transition:background 0.12s ease;
}

.scoresRowClickable:active td{
background:rgba(122,168,132,0.15) !important;
}

.scoresTeamRow td{
font-size:26px !important;
font-weight:800;
line-height:1.15;
padding-top:12px;
padding-bottom:12px;
}

.scoresGrid tr:nth-child(even) td{
background:var(--scores-row-even);
}

.scoresGrid tr:nth-child(odd) td{
background:var(--scores-row-odd);
}

.scoresGrid tr.scores-is-dq td,
.scores-is-dq td{
background:#c0392b !important;
color:#000 !important;
}

.scoresEmpty{
text-align:center;
padding:24px 10px !important;
font-weight:700;
opacity:0.85;
}

.scoresNavReal,
.scoresNavFalse,
.scoresNavVerify{
  display:block;
  font-weight:900;
  line-height:1.45;
  white-space:nowrap;
  }

.scoresNavReal{
color:#9ee7a9;
}

.scoresNavFalse{
  color:#ff8f8f;
  }

.scoresNavVerify{
  color:#ffb24c;
  }

@media (max-width:900px){
.scoresToolbar{
grid-template-columns:1fr;
}

.scoresBtn,
.scoresInput,
.scoresSelect{
height:40px;
font-size:13px;
}

body.scores-table-page .menuTitle{
font-size:24px;
}

.scoresGrid{
max-height:64dvh;
}
}

@media (orientation:landscape) and (max-height:600px){
body.scores-table-page{
overflow:auto;
padding:8px;
}

.scoresTableWrap{
height:auto;
}

body.scores-table-page .menuTitle{
font-size:18px; /* keep the existing button text size */
margin-bottom:6px;
}

.scoresToolbar{
display:flex;
flex-wrap:nowrap;
align-items:center;
overflow-x:auto;
-webkit-overflow-scrolling:touch;
gap:6px;
margin-bottom:6px;
padding-bottom:2px;
}

.scoresToolbar > *{
flex:0 0 auto;
}

#scoresRefresh,
#scoresFullTable,
.scoresToolbar .scoresBtn{
width:110px;
}

.scoresToolbar .scoresSelect{
width:260px;
}

.scoresToolbar .scoresInput{
width:180px;
}

.scoresBtn,
.scoresInput,
.scoresSelect{
height:34px;
font-size:12px;
padding:0 10px;
}

.scoresInputNarrow{
max-width:none;
}

.scoresStatus{
font-size:12px;
margin-bottom:2px;
}

.scoresLastSync,
.scoresHint{
font-size:11px;
margin-bottom:4px;
}

.scoresGrid{
max-height:58dvh;
}
}

@media (orientation:landscape) and (max-height:600px){
body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page):not(.scores-table-page){
overflow:auto;
align-items:flex-start;
padding-top:10px;
padding-bottom:10px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page):not(.scores-table-page) .wrapper{
margin-top:0;
}
}

@media (orientation:landscape) and (max-height:700px){
body.main-menu-page{
overflow-y:auto !important;
overflow-x:hidden !important;
/* Landscape: keep centered on X axis, allow vertical scroll */
align-items:center;
justify-content:flex-start;
min-height:100svh;
height:auto;
padding-top:8px;
padding-bottom:12px;
}

body.main-menu-page .wrapper{
max-height:none !important;
height:auto !important;
margin-top:0;
margin-left:auto;
margin-right:auto;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page):not(.scores-table-page):not(.loading-page){
overflow-y:auto;
overflow-x:hidden;
/* Menu pages: centered horizontally + vertical scroll */
align-items:center;
justify-content:flex-start;
min-height:100svh;
height:auto;
padding-top:8px;
padding-bottom:12px;
}

body:not(.timer-day-page):not(.timer-tactic-page):not(.command-admin-page):not(.scores-table-page):not(.loading-page) .wrapper{
margin-left:auto;
margin-right:auto;
}

html{
overflow-y:auto;
height:auto;
}
}

/* ===== PRIVACY / CONSENT ===== */

body.privacy-page{
align-items:flex-start;
overflow:auto;
padding:14px 10px 24px;
}

.privacyWrap{
width:min(92vw,780px);
margin:0 auto;
}

.privacyCard{
background:rgba(0,0,0,0.28);
border:1px solid rgba(255,255,255,0.14);
border-radius:18px;
padding:18px 16px;
margin-bottom:14px;
box-shadow:0 10px 24px rgba(0,0,0,0.22);
}

.privacyCard h2{
margin:0 0 12px;
color:var(--li-title);
letter-spacing:1px;
font-size:22px;
}

.privacyCard p{
margin:0 0 12px;
line-height:1.5;
font-size:14px;
color:var(--li-text);
}

.privacyMenu{
margin-top:12px;
}

.privConsentBanner{
position:fixed;
left:12px;
right:12px;
bottom:12px;
z-index:10020;
}

.privConsentBanner.isHidden{
display:none;
}

.privConsentCard,
.privConsentPanel{
background:linear-gradient(180deg, rgba(16,23,17,0.97), rgba(24,35,26,0.98));
border:1px solid rgba(179,204,183,0.22);
border-radius:18px;
padding:16px;
box-shadow:0 14px 30px rgba(0,0,0,0.45);
color:var(--li-text);
}

.privConsentTitle,
.privConsentPanelTitle{
font-size:18px; /* keep the existing button text size */
font-weight:900;
letter-spacing:1px;
margin-bottom:8px;
color:var(--li-title);
}

.privConsentText,
.privConsentOptionText{
font-size:13px;
line-height:1.45;
opacity:0.95;
}

.privConsentActions{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:14px;
}

.privBtn{
border:1px solid var(--li-btn-border);
border-radius:999px;
padding:10px 14px;
font-size:12px;
font-weight:900;
letter-spacing:1px;
cursor:pointer;
background:rgba(255,255,255,0.08);
color:var(--li-text);
width:auto;
opacity:1;
transform:none;
animation:none;
box-shadow:none;
filter:none;
}

.privBtn::before,
.privBtn::after{
content:none;
}

.privBtnPrimary{
background:linear-gradient(180deg,#6a7f3a,#465a26);
}

.privBtnGhost{
background:rgba(255,255,255,0.06);
}

.privPolicyLink{
display:inline-block;
margin-top:12px;
font-size:12px;
font-weight:800;
letter-spacing:0.8px;
color:var(--li-title);
text-decoration:none;
}

.privConsentModal{
position:fixed;
inset:0;
display:none;
align-items:flex-end;
justify-content:center;
padding:12px;
background:rgba(0,0,0,0.45);
z-index:10030;
}

.privConsentModal.isOpen{
display:flex;
}

.privConsentPanel{
width:min(100%, 680px);
}

.privConsentOption{
margin-top:12px;
padding:12px;
border-radius:14px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.08);
}

.privConsentOptionHead{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
font-size:14px;
font-weight:900;
margin-bottom:6px;
}

.privConsentToggleRow input{
width:20px;
height:20px;
accent-color:#6a7f3a;
}

@media (max-width:600px){
.privacyCard{
padding:16px 14px;
}

.privacyCard h2{
font-size:20px;
}

.privacyCard p,
.privConsentText,
.privConsentOptionText{
font-size:12.5px;
}

.privConsentBanner{
left:8px;
right:8px;
bottom:8px;
}

.privConsentCard,
.privConsentPanel{
padding:14px;
border-radius:16px;
}

.privConsentTitle,
.privConsentPanelTitle{
font-size:16px;
}

.privBtn{
padding:9px 12px;
font-size:11px;
}
}

/* ===== NAVIGATION TASK ===== */

body.navigation-task-page{
align-items:flex-start;
overflow:auto;
padding:14px 10px 24px;
background:
radial-gradient(130% 90% at 10% 0%, rgba(255,232,173,0.18), transparent 54%),
radial-gradient(120% 90% at 100% 100%, rgba(52,34,15,0.46), transparent 58%),
linear-gradient(165deg,#8b6d3f,#684f2c 62%,#4d391f);
}

body.navigation-task-page .menuTitle{
color:#fff1c8;
text-shadow:0 3px 12px rgba(0,0,0,0.38);
}

.navTaskWrap{
width:min(94vw,780px);
margin:0 auto;
}

.nav-hidden{
display:none !important;
}

.navCard,
.navHistoryCard,
.navPhotoCard,
.navWaypointCard{
background:rgba(37,25,13,0.48);
border:1px solid rgba(255,240,197,0.18);
border-radius:18px;
padding:16px;
margin-bottom:14px;
box-shadow:0 12px 28px rgba(0,0,0,0.26);
}

.navCardTitle{
  font-size:21px;
  font-weight:900;
  letter-spacing:1px;
  color:#fff4d5;
text-shadow:0 2px 8px rgba(0,0,0,0.38);
  margin-bottom:8px;
  }

#navLoginScreen .navCardTitle,
#navLoginScreen .navLabel{
  text-align:center;
}

.navLead{
margin:0;
font-size:14px;
line-height:1.5;
opacity:0.98;
color:#fff6df;
}

.navChoiceGrid{
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:12px;
margin-top:16px;
}

.navFormRow{
margin-bottom:14px;
}

.navLabel{
display:block;
font-size:12px;
font-weight:900;
letter-spacing:1px;
margin-bottom:6px;
color:#fff0c7;
text-shadow:0 1px 3px rgba(0,0,0,0.3);
}

body.navigation-task-page input,
body.navigation-task-page select{
width:100%;
box-sizing:border-box;
height:60px;
padding:0 18px;
border-radius:14px;
border:1px solid var(--li-btn-border);
background:rgba(255,248,229,0.09);
color:#fff7e8;
font-size:19px;
font-weight:700;
box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);
}

body.navigation-task-page select option{
color:#111;
}

.navInlineActions{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:8px;
}

.navigationPrimaryBtn{
background:linear-gradient(180deg,#5a6d38,#425029);
}

body.navigation-task-page .navigationPrimaryBtn{
background:linear-gradient(180deg,#7b9446,#576c31);
color:#17130d;
border-color:#dceab0;
box-shadow:0 12px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.16);
}

body.navigation-task-page [data-nav-category]{
background:var(--li-lighterblitzday);
color:#fff7ef;
text-shadow:0 1px 4px rgba(0,0,0,0.32);
}

body.navigation-task-page .back{
background:linear-gradient(180deg,#f1deb4,#dcc18c);
color:#1e1710;
border-color:#f5e5bc;
}

.navStatusLine{
min-height:22px;
margin-top:10px;
font-size:14px;
font-weight:800;
color:#a6e3af;
text-shadow:0 2px 8px rgba(0,0,0,0.28);
text-align:center;
}

#navWaypointStatus{
margin-bottom:10px;
font-size:20px;
line-height:1.15;
max-width:520px;
margin-left:auto;
margin-right:auto;
}

.navStatusLine.isError{
color:#ff9f9f;
}

.navStatusLine.isWarning{
color:#ffb24c;
text-shadow:0 2px 10px rgba(0,0,0,0.34);
}

.navHeaderBar{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:12px;
margin-bottom:14px;
flex-direction:column;
align-items:stretch;
}

.navHeaderInfo{
flex:1 1 auto;
text-align:center;
}

.navHeaderEyebrow{
font-size:12px;
font-weight:900;
letter-spacing:1px;
color:#fff0c6;
opacity:1;
text-shadow:0 2px 6px rgba(0,0,0,0.35);
text-align:center;
white-space:nowrap;
}

.navHeaderTeam{
font-size:24px;
font-weight:900;
line-height:1.2;
color:#fff7e3;
text-shadow:0 2px 7px rgba(0,0,0,0.35);
text-align:center;
}

.navHeaderActions{
display:flex;
gap:10px;
align-items:center;
justify-content:center;
}

.navMiniBtn{
min-width:110px;
height:46px;
padding:0 18px;
border-radius:14px;
font-size:16px;
font-weight:900;
letter-spacing:1px;
background:linear-gradient(180deg,#82653d,#5e4828);
color:#fff4dc;
border-color:rgba(255,235,193,0.34);
text-shadow:0 1px 4px rgba(0,0,0,0.32);
}

.navMiniBtnDanger{
background:linear-gradient(180deg,#f2dfb4,#d8bd88);
color:#20180e;
}

html.theme-sand body.navigation-task-page .navMiniBtn{
background:linear-gradient(180deg,#7b5f38,#58401f);
color:#fff4dc;
}

.navMiniBtn[disabled]{
opacity:0.45;
filter:saturate(0.2);
cursor:not-allowed;
pointer-events:none;
}

.navWaypointTop,
.navHistoryTop{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:12px;
font-size:20px;
font-weight:900;
color:#fff7e0;
}

.navWaypointMeta,
.navWaypointCoords,
.navHistoryMeta{
font-size:16px;
line-height:1.4;
opacity:1;
color:#fff1d4;
}

.navCodeRow{
display:grid;
grid-template-columns:minmax(0,1.45fr) minmax(150px,0.9fr);
align-items:end;
gap:14px;
margin-top:8px;
}

.navCodeField{
flex:1 1 auto;
margin-bottom:0;
}

.navCodeButton{
margin-bottom:0;
}

.navCodeField .navLabel{
text-align:center;
}

.navCodeButton .navigationPrimaryBtn,
#navGpsBtn{
width:100%;
}

#navLoadWaypointBtn{
height:60px;
font-size:16px;
line-height:1.1;
padding:0 10px;
white-space:nowrap;
}

#navGpsBtn{
height:62px;
font-size:16px;
max-width:360px;
margin:0 auto;
display:block;
}

.navigationSkipGpsBtn{
width:100%;
max-width:360px;
margin:12px auto 0;
display:block;
padding:16px 20px;
border-radius:16px;
border:2px solid #e87c00;
background:rgba(232,124,0,0.15);
color:#ff9a2e;
font-size:15px;
font-weight:900;
letter-spacing:0.5px;
text-align:center;
line-height:1.2;
box-shadow:0 0 18px rgba(232,124,0,0.18);
}

.navigationSkipGpsBtn:disabled{
border-color:rgba(255,255,255,0.2);
background:rgba(255,255,255,0.08);
color:rgba(255,255,255,0.45);
box-shadow:none;
cursor:not-allowed;
}

#navGpsBtn.isCompleteAction{
color:#f2ffec;
text-shadow:0 1px 4px rgba(0,0,0,0.3);
}

.navGpsData{
display:grid;
grid-template-columns:repeat(2, minmax(0,1fr));
gap:10px;
margin-top:12px;
}

.navGpsData > div{
background:rgba(255,255,255,0.07);
border-radius:12px;
padding:10px 12px;
font-size:15px;
font-weight:800;
color:#fff1d1;
}

.navPhotoPreviewWrap{
margin-top:14px;
}

.navPhotoPreview{
display:block;
width:100%;
max-height:360px;
object-fit:contain;
border-radius:14px;
background:rgba(0,0,0,0.28);
border:1px solid rgba(255,255,255,0.08);
}

.navWatermarkPreview{
white-space:pre-line;
font-size:12px;
line-height:1.45;
margin-top:10px;
padding:10px 12px;
border-radius:12px;
background:rgba(255,255,255,0.05);
font-weight:800;
}

.navHistoryList{
display:flex;
flex-direction:column;
gap:10px;
}

.navHistoryActions{
display:flex;
justify-content:center;
margin-bottom:12px;
}

.navHistoryActions .navMiniBtn{
min-width:180px;
}

.navHistoryTitle{
text-align:center;
}

.navHistoryItem{
border-radius:14px;
padding:12px;
border:1px solid rgba(255,255,255,0.12);
background:rgba(255,255,255,0.05);
}

.navHistoryItem.isPending{
border-color:rgba(240,208,138,0.28);
background:rgba(118,94,39,0.18);
}

.navHistoryItem.isSynced{
border-color:rgba(158,231,169,0.24);
}

.navHistorySaved{
color:#9af0a8;
font-weight:900;
}

.navHistoryWaiting{
color:#ffb24c;
font-weight:900;
}

.navHistoryItem.isVerify{
border-color:rgba(239,64,54,0.32);
background:rgba(120,30,20,0.18);
}

.navHistoryVerify{
color:#ff8b83;
font-weight:900;
}

.navHistoryEmpty{
padding:16px 12px;
text-align:center;
opacity:0.8;
font-weight:800;
}

.navLoader{
position:fixed;
inset:0;
display:flex;
align-items:center;
justify-content:center;
background:rgba(10,8,5,0.6);
z-index:10040;
}

.navLoaderBox{
display:flex;
flex-direction:column;
align-items:center;
gap:16px;
padding:24px 26px;
background:rgba(31,22,13,0.78);
border:1px solid rgba(255,240,194,0.18);
border-radius:18px;
box-shadow:0 18px 40px rgba(0,0,0,0.4);
}

.navLoaderText{
font-size:24px;
font-weight:900;
letter-spacing:2px;
color:#fff1c9;
text-align:center;
text-shadow:0 2px 8px rgba(0,0,0,0.35);
}

.navSuccessOverlay{
position:fixed;
inset:0;
display:flex;
align-items:center;
justify-content:center;
padding:12px;
background:rgba(0,0,0,0.45);
z-index:10050;
}

.navSuccessBox{
    width:min(100%, 460px);
    background:linear-gradient(180deg, rgba(16,23,17,0.97), rgba(24,35,26,0.98));
    border:1px solid rgba(179,204,183,0.22);
border-radius:18px;
  padding:18px;
    box-shadow:0 14px 30px rgba(0,0,0,0.45);
  text-align:center;
  }

.navSuccessHint{
  margin:12px 0 14px;
  font-size:13px;
  line-height:1.35;
  color:rgba(230,238,223,0.82);
}


.navPhotoScreenTop{
text-align:center;
margin-bottom:8px;
}

.navPhotoWaypoint{
font-size:18px; /* keep the existing button text size */
font-weight:900;
letter-spacing:1px;
color:#a6e3af;
text-shadow:0 2px 8px rgba(0,0,0,0.28);
}

.navPhotoLead{
text-align:center;
max-width:560px;
margin:0 auto;
}

#navPhotoStatus{
font-size:16px;
max-width:520px;
margin-left:auto;
margin-right:auto;
}

#navPhotoScreen .navInlineActions{
justify-content:center;
}

#navSaveWaypointBtn[disabled]{
opacity:0.5;
filter:saturate(0.7);
cursor:not-allowed;
pointer-events:none;
}

.navConsentGate .navInlineActions,
#navPhotoScreen .navInlineActions{
margin-top:14px;
}

@media (max-width:700px){
.navChoiceGrid,
.navGpsData{
grid-template-columns:1fr;
}

.navHeaderBar,
.navWaypointTop,
.navHistoryTop{
flex-direction:column;
}

.navHeaderTeam{
font-size:21px;
}

.navCardTitle{
font-size:20px;
}

.navLead,
.navWaypointMeta,
.navWaypointCoords,
.navHistoryMeta,
.navStatusLine{
font-size:15px;
}

.navHeaderActions{
width:100%;
justify-content:center;
}

.navMiniBtn{
min-width:0;
flex:0 0 calc(50% - 5px);
height:42px;
font-size:14px;
}

.navCodeRow{
grid-template-columns:minmax(0,1.22fr) minmax(148px,1fr);
gap:12px;
}

body.navigation-task-page input,
body.navigation-task-page select{
height:56px;
font-size:18px; /* keep the existing button text size */
}

#navWaypointStatus{
font-size:15px;
}

#navPhotoStatus{
font-size:14px;
}

.navHeaderEyebrow{
font-size:10px;
}

#navLoadWaypointBtn{
font-size:13px;
}

#navGpsBtn{
height:58px;
font-size:15px;
max-width:100%;
}

.navGpsData > div{
font-size:14px;
}
}





