@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Manrope:wght@400;600;700;800&display=swap');
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 15% 30%,#18364f55,transparent 45%),#090d16;color:#edf2fa;font-family:Manrope,Arial,sans-serif;min-height:100vh;padding:0 7%;display:flex;flex-direction:column}header,footer{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #202a39}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff;font-weight:900;letter-spacing:1px}.brand b{border:1px solid #39c5b4;color:#39c5b4;padding:5px 11px;font:800 27px 'Barlow Condensed'}.brand span span{color:#39c5b4}.brand small{display:block;font-size:8px;color:#738196;letter-spacing:2px}.status{font-size:9px;letter-spacing:1.5px;color:#8493a7}.status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#39c5a4;margin-right:8px}.hero{flex:1;display:grid;grid-template-columns:1.1fr .9fr;gap:8%;align-items:center;padding:55px 0}.eyebrow{color:#43c8b5;font-size:10px;font-weight:800;letter-spacing:2px}h1{font:900 clamp(65px,8vw,110px)/.83 'Barlow Condensed';margin:25px 0;color:#f2f5fa}h1 em{font-style:normal;color:#42c8b5}.lead{max-width:470px;color:#9ba8ba;font-size:14px;line-height:1.9}.features{margin-top:38px;color:#8e9db0;font-size:10px;letter-spacing:1px}.panel{background:linear-gradient(145deg,#161f2ef7,#0d1420);border:1px solid #2a394d;border-radius:13px;padding:30px;max-width:460px;width:100%;justify-self:end;box-shadow:0 25px 80px #0005}.overline{color:#728197;letter-spacing:1.5px;font-size:9px}.panel h2{font-size:20px;margin:25px 0 5px}.panel p{font-size:11px;color:#8190a4;margin:0 0 22px}nav{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #2d394b;margin-bottom:22px}nav button{background:none;border:0;color:#718096;padding:13px 5px;font-size:10px;font-weight:800;letter-spacing:1px;border-bottom:2px solid transparent;cursor:pointer}nav button.selected{color:#49cbb7;border-color:#49cbb7}label{display:block;color:#8493a7;font-size:9px;font-weight:800;letter-spacing:1.4px;margin:17px 0 9px}input{width:100%;height:48px;background:#0c1421;border:1px solid #334155;border-radius:7px;padding:0 13px;color:#eaf0f7;outline:none;font-size:12px}input:focus{border-color:#43c8b5}.primary{margin-top:24px;width:100%;height:49px;background:#39bda9;border:0;border-radius:6px;color:#071411;font-size:10px;font-weight:900;letter-spacing:1.2px;cursor:pointer}.primary:disabled{opacity:.6}.hint{display:block;color:#77869a;font-size:10px;margin-top:20px}.notice{font-size:11px;line-height:1.6;margin-top:15px;padding:11px;border-radius:6px}.success{background:#12332f;color:#8de1d1}.error{background:#3a2026;color:#ffc1c6}.setup h1,.dash h1{font-size:70px}.setup,.dash{width:100%;max-width:760px;margin:auto;padding:50px 0}.setup .panel{justify-self:start;max-width:650px}.choices{display:flex;gap:10px;margin:10px 0 20px}.choices button,.path button{background:#101a28;border:1px solid #354358;color:#aab6c7;padding:13px;border-radius:7px;cursor:pointer}.choices button.active,.path button.active{border-color:#43c8b5;color:#43c8b5}.path{display:grid;grid-template-columns:1fr 1fr;gap:10px}.path button{text-align:left;min-height:115px}.path b,.path small{display:block;margin-top:8px}.path small{font-size:10px;color:#8998aa}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{background:#141e2c;border:1px solid #29384b;padding:20px;border-radius:8px}.stat strong{display:block;font:700 32px 'Barlow Condensed';margin-top:15px}.stat small{color:#8d9bae;font-size:9px;letter-spacing:1px}footer{border-top:1px solid #202a39;border-bottom:0;color:#59687c;font-size:8px;letter-spacing:1px}
@media(max-width:850px){body{padding:0 5%}.hero{grid-template-columns:1fr;gap:35px}.panel{justify-self:start;max-width:none}.stats{grid-template-columns:1fr 1fr}}@media(max-width:520px){header{height:70px}.hero{padding:40px 0}h1{font-size:68px}.panel{padding:22px}.path{grid-template-columns:1fr}footer{height:auto;padding:18px 0;gap:10px;flex-wrap:wrap}footer span:nth-child(2){order:3;width:100%}}

/* Main city dashboard */
body:has(.game-shell){padding:0 3%;background:radial-gradient(ellipse at 80% 0%,#17304755,transparent 42%),#080d15}
.game-shell{display:grid;grid-template-columns:245px minmax(0,1fr);gap:34px;min-height:calc(100vh - 164px);padding:34px 0}
.game-sidebar{position:relative;display:flex;flex-direction:column;gap:12px;border-right:1px solid #202c3b;padding:12px 24px 20px 0;min-height:600px}
.side-label{font-size:9px;color:#64748b;letter-spacing:1.8px;font-weight:800;margin:12px 0 5px}
.player-card{display:flex;align-items:center;gap:12px;padding:14px 10px;background:#111b29;border:1px solid #25364a;border-radius:8px;margin-bottom:20px}
.avatar,.profile-avatar{width:42px;height:42px;display:grid;place-items:center;background:#183b43;border:1px solid #3dbba9;color:#6de0ce;border-radius:7px;font:800 24px 'Barlow Condensed'}
.player-card strong,.player-card small{display:block}.player-card strong{font-size:12px}.player-card small{font-size:8px;color:#48c6b3;letter-spacing:1px;margin-top:5px}
.side-link{border:0;background:transparent;color:#8d9caf;text-align:left;padding:13px 12px;border-radius:6px;font:700 11px Manrope;cursor:pointer}.side-link.active,.side-link:hover{background:#142632;color:#56d1be}
.sidebar-bottom{margin-top:auto;color:#718096;font-size:9px;letter-spacing:1px;padding-top:20px;border-top:1px solid #253142}.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3ac4a9;margin-right:7px}
.logout{display:block;background:none;border:1px solid #354256;color:#aab7c8;border-radius:5px;padding:10px 13px;margin-top:15px;font-size:9px;letter-spacing:1px;cursor:pointer}
.game-main{min-width:0;padding:8px 0 35px}.game-top{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.game-heading{font-size:clamp(42px,5vw,65px);margin:12px 0 0}.top-date{font-size:9px;color:#73849a;letter-spacing:1.5px;padding-bottom:8px}
.player-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:38px}.game-stat{background:linear-gradient(140deg,#141f2e,#0d1521);border:1px solid #26364a;border-radius:8px;padding:17px 18px;min-height:94px}.game-stat small{display:block;color:#718198;font-size:9px;letter-spacing:1.5px;font-weight:800}.game-stat strong{display:block;color:#e9f1f8;font:700 27px 'Barlow Condensed';margin-top:9px}.game-stat strong i{font:400 12px Manrope;color:#74869a}.meter{height:3px;background:#273448;border-radius:4px;margin-top:8px;overflow:hidden}.meter span{display:block;height:100%;background:#40c4b0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:18px}.section-heading h2{font:700 27px 'Barlow Condensed';margin:7px 0 0}.location-count{font-size:9px;color:#72839a;letter-spacing:1px}
.location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.location-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:205px;padding:18px;background:linear-gradient(145deg,#152131,#0e1622);border:1px solid #2a394c;border-radius:8px;color:#edf3fa;cursor:pointer;transition:border-color .18s,transform .18s}.location-card:hover{border-color:#3fbba9;transform:translateY(-2px)}.location-card.restricted{opacity:.72}.location-card.planned{background:linear-gradient(145deg,#121b28,#0b121d);border-style:dashed}.location-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #315064;border-radius:7px;color:#5bd1be;font-size:21px;margin-bottom:14px}.location-type{font-size:8px;color:#50bfae;letter-spacing:1.4px;font-weight:800}.location-card strong{font-size:14px;margin-top:7px}.location-desc{font-size:10px;line-height:1.6;color:#8797aa;margin-top:7px}.location-action{font-size:8px;letter-spacing:1.2px;font-weight:800;color:#58cbb8;margin-top:auto;padding-top:15px}.location-card.planned .location-action{color:#738198}.location-notice{margin-top:16px;padding:13px 15px;border:1px solid #28374a;border-radius:6px;color:#8191a5;background:#101925;font-size:10px;line-height:1.6}.location-notice.warning{border-color:#705b36;color:#d7bb82}.location-notice.active-notice{border-color:#28675f;color:#9be0d4}
.profile-sheet{padding:24px;background:#121d2a;border:1px solid #29394c;border-radius:8px;max-width:600px;color:#9aa9ba;font-size:12px;line-height:1.8}.profile-sheet h3{color:#eef4fa}.profile-sheet p{border-bottom:1px solid #263446;padding:8px 0}.profile-avatar{width:58px;height:58px;font-size:30px}
@media(max-width:1000px){.location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-shell{grid-template-columns:205px minmax(0,1fr);gap:22px}}
@media(max-width:700px){body:has(.game-shell){padding:0 4%}.game-shell{grid-template-columns:1fr;gap:15px}.game-sidebar{min-height:0;border-right:0;border-bottom:1px solid #253142;padding:0 0 14px;display:grid;grid-template-columns:1fr 1fr}.game-sidebar .side-label{display:none}.player-card{grid-column:1/-1;margin:0}.sidebar-bottom{grid-column:1/-1;margin-top:0;padding-top:10px}.side-link{padding:9px}.game-top{align-items:start;flex-direction:column}.top-date{padding:0}.player-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:28px}.location-grid{grid-template-columns:1fr 1fr}.location-card{min-height:190px;padding:13px}}
@media(max-width:430px){.location-grid{grid-template-columns:1fr}.location-card{min-height:160px}.section-heading{align-items:start;flex-direction:column}.game-heading{font-size:43px}}

/* Native navigation links for auth mode switching */
nav a{display:block;text-align:center;text-decoration:none;background:none;border:0;color:#718096;padding:13px 5px;font-size:10px;font-weight:800;letter-spacing:1px;border-bottom:2px solid transparent;cursor:pointer}nav a.selected{color:#49cbb7;border-color:#49cbb7}


/* Ruse city map */
.city-map-frame{width:100%;height:min(66vh,650px);min-height:390px;overflow:hidden;border:1px solid #2b4052;border-radius:10px;background:#111b28;box-shadow:0 18px 55px #0005}
.city-map-frame iframe{display:block;width:100%;height:100%;border:0;filter:saturate(.86) contrast(.96)}
.map-caption{margin-top:12px;padding:13px 15px;background:#101925;border:1px solid #28374a;border-radius:6px;color:#8999ac;font-size:10px;line-height:1.7}
@media(max-width:700px){.city-map-frame{height:58vh;min-height:330px}}

/* Dark game map, limited to the urban footprint of Ruse */
.city-map-frame{position:relative;overflow:hidden;background:#080e17;border:1px solid #284253;border-radius:10px;box-shadow:0 18px 55px #0006}
#ruseMap{width:100%;height:100%;min-height:430px;background:#080e17}
.city-map-frame .leaflet-container{background:#080e17;font-family:Manrope,Arial,sans-serif}
.city-map-frame .leaflet-control-attribution{background:#080e17d9!important;color:#71869a!important;font-size:9px}
.city-map-frame .leaflet-control-attribution a{color:#55cbbb!important}
.city-map-frame .leaflet-bar a{background:#101b29!important;color:#d7e8ef!important;border-color:#304356!important}
.city-map-frame .leaflet-bar a:hover{background:#1b3443!important}
.map-overlay-label{position:absolute;z-index:500;top:14px;left:14px;padding:9px 12px;border:1px solid #2b5960;border-radius:5px;background:#09131ddd;color:#8de6d9;font-size:9px;font-weight:800;letter-spacing:1.3px;pointer-events:none;backdrop-filter:blur(8px)}
.map-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#45d4bd;box-shadow:0 0 10px #45d4bd;margin-right:7px}
.ruse-map-tooltip{background:#0a1723!important;border:1px solid #3ac7b4!important;color:#a8f5e9!important;box-shadow:0 4px 18px #0008!important;font-size:9px!important;letter-spacing:1px!important}
.ruse-map-tooltip:before{border-top-color:#3ac7b4!important}
.map-error{padding:30px;color:#b9c7d6;font-size:12px}
@media(max-width:700px){#ruseMap{min-height:360px}}

/* Self-contained vector map: no raster upload, tile API or external map key */
.vector-map-frame{position:relative;height:min(70vh,700px);min-height:440px;background:#080f18;border:1px solid #35bfae;border-radius:9px;overflow:hidden;box-shadow:0 15px 55px #0006}
.map-toolbar{height:38px;position:absolute;z-index:3;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:0 14px;background:linear-gradient(180deg,#08121eeF,#08121e88);font-size:9px;letter-spacing:1px;color:#70d9cb;pointer-events:none}
.map-toolbar span:first-child{font-weight:900}.map-toolbar i{display:inline-block;width:6px;height:6px;background:#43d2bd;border-radius:50%;margin-right:7px;box-shadow:0 0 8px #43d2bd}
#ruseGameMap{display:block;width:100%;height:100%;min-height:440px}
#ruseGameMap .district{fill:#293b49;fill-opacity:.44;stroke:#667988;stroke-width:2;stroke-opacity:.6;cursor:pointer;transition:fill .16s,fill-opacity .16s,stroke .16s,filter .16s}
#ruseGameMap .district:hover,#ruseGameMap .district.hovered{fill:#2bbba9;fill-opacity:.38;stroke:#65f3df;stroke-width:4;stroke-opacity:1;filter:url(#glow)}
#ruseGameMap .district.selected{fill:#32bca9;fill-opacity:.42;stroke:#8cfff0;stroke-width:4;stroke-opacity:1}
#ruseGameMap .district:focus{outline:none;stroke:#fff;stroke-width:4}
#ruseGameMap .map-roads path{fill:none;stroke:#83909a;stroke-width:3;stroke-opacity:.52;stroke-linecap:round;stroke-linejoin:round}
#ruseGameMap .map-roads .main-road{stroke:#e59b38;stroke-width:7;stroke-opacity:.9}
#ruseGameMap .map-labels{font:700 15px Manrope,Arial;letter-spacing:1px;pointer-events:none;text-shadow:0 2px 5px #000}
#ruseGameMap .map-landmarks{font-size:28px;fill:#46d5c2;filter:url(#glow);pointer-events:none}
#ruseGameMap .map-city-title{font:900 54px 'Barlow Condensed',Arial;fill:#e5edf4;letter-spacing:5px;opacity:.85}
.district-popover{position:absolute;z-index:4;right:14px;bottom:14px;max-width:230px;padding:14px 16px;background:#091622ed;border:1px solid #45d6c3;border-radius:7px;box-shadow:0 8px 30px #0009;color:#dbe8ef;pointer-events:none}
.district-popover strong,.district-popover span,.district-popover small{display:block}.district-popover strong{color:#65e4d3;font-size:13px}.district-popover span{font-size:10px;margin-top:5px}.district-popover small{color:#8195a8;font-size:9px;line-height:1.5;margin-top:7px}
@media(max-width:700px){.vector-map-frame{height:60vh;min-height:360px}#ruseGameMap{min-height:360px}.map-toolbar{font-size:8px}}
