/* VECTOR-Z additions on top of the verbatim style.css: loading background (full-bleed cover of load.jpg), the
   'Remaining' label, minimap (bottom-right, H1Z1 2018 style) and the full-screen map (M). Same grunge palette. */

/* ---- fonts: the old project pulled Anton / Oswald / Roboto from Google Fonts; the game must run offline with no console
   errors, so the family names resolve to faces every Windows 10/11 install carries (Bahnschrift, Impact, Segoe UI). ---- */
@font-face { font-family: 'Oswald'; font-weight: 400 700; src: local('Bahnschrift SemiBold Condensed'), local('Bahnschrift Condensed'), local('Bahnschrift'), local('Impact'), local('Arial Narrow'); }
@font-face { font-family: 'Anton'; src: local('Impact'), local('Bahnschrift Bold Condensed'), local('Arial Black'); }
@font-face { font-family: 'Roboto Condensed'; font-weight: 400 700; src: local('Bahnschrift Condensed'), local('Arial Narrow'), local('Segoe UI'); }
@font-face { font-family: 'Roboto'; font-weight: 400 700; src: local('Segoe UI'), local('Arial'); }

/* ---- loading screen: full-bleed background image + vignette, content on top ---- */
#loading-screen { background: #000; overflow: hidden; }
#loading-screen .loading-bg {
    position: absolute; inset: 0;
    background: url('assets/images/load.jpg') center / cover no-repeat;
    filter: saturate(0.85) contrast(1.05);
}
#loading-screen .loading-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.85) 100%),
                linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 35%);
}
/* the artwork already carries the VECTOR-Z logo (top-left): no title over it — bar + status sit low on the screen */
#loading-screen .loading-content {
    position: absolute; left: 0; right: 0; bottom: 7vh; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
#loading-screen .subtitle { color: rgba(255,255,255,0.8); text-shadow: 1px 1px 2px #000; margin: 0 0 14px; font-size: 16px; letter-spacing: 6px; }
#loading-bar-container { width: 420px; height: 6px; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15); }
#loading-bar { box-shadow: 0 0 12px rgba(185, 28, 28, 0.8); }
#loading-text { color: rgba(255,255,255,0.75); text-shadow: 1px 1px 2px #000; text-transform: uppercase; letter-spacing: 2px; margin-top: 12px; }
#start-button { letter-spacing: 4px; box-shadow: 0 0 20px rgba(185, 28, 28, 0.5); border: 1px solid rgba(255,255,255,0.2); margin-top: 18px; }

/* ---- remain label (English, longer word) ---- */
.remain-label { font-size: 26px; letter-spacing: 1px; }

/* ---- minimap (bottom-right) ---- */
#minimap-wrap {
    position: absolute; right: 20px; bottom: 20px;
    width: 200px; height: 200px;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 12px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.5);
    background: rgba(20, 20, 20, 0.85);
    pointer-events: none;
    overflow: hidden;
}
#minimap-wrap::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.06); pointer-events: none; }
#minimap { display: block; width: 200px; height: 200px; }
#minimap-coords {
    position: absolute; left: 6px; bottom: 4px;
    font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
}

/* ---- full-screen map (M) ---- */
#map-screen {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.88);
    display: none; z-index: 90; cursor: default;
}
#map-screen.open { display: block; }
#map-canvas { display: block; width: 100%; height: 100%; }

/* ---- screens: play-again hover ---- */
#respawn-button:hover { background: #eee; }

/* ---- end screens (ui2): the text block on a translucent card over the visible scene ---- */
.end-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 26px 72px 34px;
    background: rgba(8, 8, 10, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
#death-screen .end-card { border-color: rgba(185, 28, 28, 0.45); }
#victory-screen .end-card { border-color: rgba(255, 215, 0, 0.35); }
#death-screen h1, #victory-screen h1 { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
#death-screen .stats { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
#victory-screen .subtitle { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }


/* ---- NETCODE (2026-09-11): the login page over the loading background ---- */
#login-screen { position: absolute; inset: 0; z-index: 1001; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.35); cursor: default; }
#login-screen.open { display: flex; }
.login-card { width: 440px; padding: 34px 40px 28px; background: rgba(10, 10, 10, 0.88); border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); font-family: 'Roboto Condensed', 'Segoe UI', sans-serif; color: rgba(255, 255, 255, 0.85); }
.login-title { font-family: 'Oswald', sans-serif; font-size: 56px; letter-spacing: 8px; color: var(--color-blood, #b91c1c); text-transform: uppercase; text-shadow: 0 0 30px rgba(185, 28, 28, 0.45); line-height: 1; }
.login-sub { font-size: 13px; letter-spacing: 5px; color: rgba(255, 255, 255, 0.45); margin: 10px 0 26px; }
.login-label { display: block; font-size: 11px; letter-spacing: 3px; color: rgba(255, 255, 255, 0.45); margin: 14px 0 6px; }
#login-name, #login-region { width: 100%; box-sizing: border-box; padding: 11px 12px; font-family: 'Roboto Condensed', 'Segoe UI', sans-serif; font-size: 18px; letter-spacing: 1px; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); outline: none; }
#login-name:focus, #login-region:focus { border-color: var(--color-blood, #b91c1c); }
#login-region option { background: #151515; }
#login-status { margin: 14px 0 6px; min-height: 18px; font-size: 13px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.55); }
#login-status.warn { color: #e0a020; }
#login-status.bad { color: #d62828; }
.login-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.login-btn { padding: 13px 20px; font-family: 'Oswald', sans-serif; font-size: 20px; letter-spacing: 3px; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); cursor: pointer; pointer-events: auto; }
.login-btn:hover { background: rgba(255, 255, 255, 0.14); }
.login-btn.primary { background: var(--color-blood, #b91c1c); border-color: transparent; }
.login-btn.primary:hover { background: #d62828; }
.login-btn:disabled { opacity: 0.45; cursor: default; }
.login-top { margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 12px; }
.login-top-title { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 4px; color: rgba(255, 255, 255, 0.4); }
#login-top { margin: 8px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.6; max-height: 150px; overflow: auto; }
#login-top li.dim { color: rgba(255, 255, 255, 0.35); list-style: none; margin-left: -22px; }
#login-top li span { color: rgba(255, 255, 255, 0.45); margin-left: 8px; }
