/* V15: One common visual system across ALL views. Deliberately loaded LAST. */
:root{--v15-green:#2aff85;--v15-red:#d92b42;--v15-metal:#667f76}
html{scroll-padding-top:122px!important}
body{overflow-x:hidden!important;background-color:#030a08!important;background-image:linear-gradient(90deg,rgba(0,12,10,.38),rgba(0,12,10,.12) 46%,rgba(0,12,10,.38)),url('colony077_krajina.png')!important;background-position:center center!important;background-size:cover!important;background-attachment:fixed!important;background-repeat:no-repeat!important}
body::before{content:none!important}
body>.site-frame{width:min(1200px,calc(100% - 32px))!important;max-width:1200px!important;margin-inline:auto!important;padding-top:134px!important;transform:none!important;filter:none!important;perspective:none!important;contain:none!important;background:none!important}
body>.site-frame main{padding-top:0!important}
body>.topbar{position:fixed!important;top:10px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(1200px,calc(100% - 32px))!important;max-width:1200px!important;height:96px!important;min-height:96px!important;max-height:96px!important;margin:0!important;padding:10px 19px!important;box-sizing:border-box!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;z-index:9999!important;border-radius:18px!important;border:2px solid #596f64!important;background:linear-gradient(180deg,rgba(18,39,32,.98),rgba(1,13,10,.98))!important;box-shadow:inset 0 2px 0 #a9c0b44a,inset 0 -5px 0 #173127,0 10px 30px #000c!important}
body>.topbar::before,body>.topbar::after{content:none!important}
body>.topbar .brand{display:flex!important;align-items:center!important;flex:0 1 auto!important;min-width:0!important}
body>.topbar .brand-logo{height:52px!important;width:158px!important;object-fit:contain!important}
body>.topbar .topnav{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;gap:7px!important;width:auto!important;margin:0!important;flex-wrap:nowrap!important}
body>.topbar .topnav a{min-height:42px!important;height:auto!important;padding:12px 13px!important;font-size:12px!important;white-space:nowrap!important;border-radius:9px!important;background:linear-gradient(180deg,#1c2c27,#030b09)!important;border:1px solid #61756b!important;color:#f1fff4!important;box-shadow:inset 0 1px #c5ddce47,0 3px 0 #07110d!important}
body>.topbar .topnav a.active{border-color:var(--v15-green)!important;box-shadow:inset 0 1px #c5ddce47,0 3px 0 #07110d,0 0 10px #19f5785c!important}
body>.topbar .topnav a:hover{border-color:var(--v15-green)!important}
/* Shared rounded steel frame on EACH view, including accordion entries. */
body .hero,body .colony-intro,body .game-card,body .gallery-shell,body .gallery-block,body .bottom-callout,body .updates-header,body .updates-list,body .update-entry,body .updates-note,body .factions-header,body .faction-card,body .factions-bottom,body .auth-info,body .auth-box,body .profile-panel,body .owned-colony,body .colony-creation,body .dash-card,body .profile-options,body .legal-content{border-radius:18px!important;border:1px solid #596f64!important;background-color:rgba(2,17,13,.82)!important;box-shadow:inset 0 1px 0 #b2d4c02e,inset 0 -4px 0 #0e2d22,0 8px 22px #000a!important;overflow:visible}
body .hero{background:linear-gradient(90deg,rgba(0,12,10,.87),rgba(0,12,10,.60) 55%,rgba(0,12,10,.42))!important}
body .hero::before,body .hero::after,body .colony-intro::before,body .colony-intro::after,body .game-card::before,body .game-card::after,body .gallery-shell::before,body .gallery-shell::after{content:none!important}
body .updates-header,body .update-entry,body .updates-note{background:linear-gradient(115deg,rgba(4,25,18,.90),rgba(1,13,11,.84))!important;border-color:#596f64!important}
body .update-entry summary{background:transparent!important;border-radius:17px!important}
body .update-entry[open]{border-color:#39a66a!important}
body .update-entry .update-main strong,body .updates-header h1{color:#e8fff0!important}
body .btn,body .auth-tabs a{border-radius:9px!important}
/* Actual game MBM sprite: move across the hero rather than sitting in place. */
.gc-mbm-flight{position:fixed!important;z-index:1100!important;top:155px!important;left:-250px!important;width:186px!important;height:152px!important;opacity:0;pointer-events:none!important;will-change:transform,opacity}
.gc-mbm-flight img{display:block;width:100%;height:auto;filter:drop-shadow(0 0 8px #1aff8350)}
.gc-mbm-flight.is-flying{animation:gcFlyV15 10s linear both!important}
@keyframes gcFlyV15{0%{opacity:0;transform:translate3d(0,0,0)}4%{opacity:1}90%{opacity:1}100%{opacity:0;transform:translate3d(calc(100vw + 500px),0,0)}}
.gc-mbm-bomb{position:fixed;z-index:1099;width:10px;height:22px;pointer-events:none;border:1px solid #df3445;border-radius:3px;background:linear-gradient(90deg,#060d0a,#8a9a8b,#111c13);box-shadow:0 0 8px #e6374c;animation:gcBombV15 1.35s ease-in forwards}
@keyframes gcBombV15{to{transform:translateY(240px);opacity:0}}
@media(max-width:1050px){body>.topbar{height:auto!important;min-height:98px!important;max-height:none!important;flex-wrap:wrap!important;justify-content:center!important;padding:8px!important}body>.topbar .topnav{flex-wrap:wrap!important;justify-content:center!important}body>.site-frame{padding-top:160px!important}}
@media(max-width:650px){body>.topbar .brand-logo{width:110px!important;height:35px!important}body>.topbar .topnav a{font-size:10px!important;padding:8px!important;min-height:32px!important}body>.site-frame{padding-top:183px!important}.gc-mbm-flight{width:125px!important;top:195px!important}}
@media(prefers-reduced-motion:reduce){.gc-mbm-flight,.gc-mbm-bomb{display:none!important}}


/* V16 fine-tuning: stronger brand/logo, transparent frames on updates/factions, narrower centered header, better MBM layering */
:root{--gc-frame-bg:rgba(2,14,11,.62);--gc-frame-bg-strong:rgba(2,14,11,.72);--gc-frame-bg-soft:rgba(2,14,11,.50);}
body>.site-frame{width:min(1320px,calc(100% - 48px))!important;max-width:1320px!important;padding-top:142px!important}
body>.topbar{width:min(1320px,calc(100% - 48px))!important;height:102px!important;min-height:102px!important;max-height:102px!important;padding:12px 22px!important;border-radius:22px!important}
body>.topbar .brand{gap:16px!important}
body>.topbar .brand-logo{height:58px!important;width:176px!important;filter:brightness(1.55) contrast(1.2) saturate(1.15)!important;background:linear-gradient(180deg,rgba(0,0,0,.36),rgba(10,20,16,.18))!important;border:1px solid rgba(108,132,120,.55)!important;border-radius:10px!important;padding:7px 10px!important;box-sizing:border-box!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 14px rgba(13,255,118,.10)!important}
body>.topbar .brand-subtitle, body>.topbar .brand-copy, body>.topbar .brand small{color:#eefef2!important;opacity:1!important;text-shadow:0 0 8px rgba(0,0,0,.35)}
body>.topbar .topnav a{padding:13px 16px!important;font-size:13px!important;border-radius:11px!important}
body .hero,body .colony-intro,body .game-card,body .gallery-shell,body .gallery-block,body .bottom-callout,
body .updates-header,body .update-entry,body .updates-note,body .factions-header,body .faction-card,body .factions-bottom,
body .auth-info,body .auth-box,body .profile-panel,body .owned-colony,body .colony-creation,body .dash-card,body .profile-options,body .legal-content{
  background-color:var(--gc-frame-bg)!important;
  backdrop-filter:blur(3px)!important;
  -webkit-backdrop-filter:blur(3px)!important;
}
body .updates-header,body .update-entry,body .updates-note,body .factions-header,body .faction-card,body .factions-bottom{background:linear-gradient(115deg,rgba(4,25,18,.66),rgba(1,13,11,.58))!important}
body .updates-page, body .factions-page, body .auth-page, body .dashboard-page, body .privacy-page{gap:24px!important}
body .updates-header{display:grid!important;grid-template-columns:minmax(0,1fr) 260px!important;align-items:stretch!important;gap:22px!important;padding:26px 28px!important}
body .updates-header-copy p, body .factions-header p{max-width:900px!important;color:#e6fff1!important}
body .updates-header-side{background:rgba(2,14,11,.40)!important;border:1px solid rgba(102,127,118,.7)!important;border-radius:18px!important;backdrop-filter:blur(2px)!important}
body .updates-list{background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
body .update-entry{padding:0!important;overflow:hidden!important}
body .update-entry summary{padding:18px 24px!important}
body .update-entry .update-description{padding:0 24px 24px!important;background:linear-gradient(180deg,rgba(4,17,13,.30),rgba(4,17,13,.18))!important}
body .factions-grid{gap:22px!important}
body .faction-card{padding:24px 22px!important;min-height:245px!important}
body .faction-card p, body .factions-bottom p{color:#e6fff1!important}
/* MBM */
.gc-mbm-flight{z-index:12020!important;top:132px!important;left:-220px!important;width:168px!important;height:136px!important;mix-blend-mode:normal!important}
.gc-mbm-flight img{filter:drop-shadow(0 0 10px rgba(26,255,131,.35)) drop-shadow(0 8px 12px rgba(0,0,0,.35))!important}
.gc-mbm-flight.is-flying{animation:gcFlyV16 11s linear both!important}
@keyframes gcFlyV16{
  0%{opacity:0;transform:translate3d(0,10px,0) scale(.98)}
  5%{opacity:1}
  35%{transform:translate3d(calc(35vw),-8px,0) scale(1)}
  65%{transform:translate3d(calc(70vw),4px,0) scale(1)}
  96%{opacity:1}
  100%{opacity:0;transform:translate3d(calc(100vw + 420px),-6px,0) scale(.98)}
}
.gc-mbm-bomb{z-index:12030!important;width:11px!important;height:24px!important;box-shadow:0 0 10px #e6374c,0 0 18px rgba(255,88,80,.35)!important}
.gc-mbm-explosion{position:fixed;z-index:12031;width:18px;height:18px;pointer-events:none;border-radius:50%;background:radial-gradient(circle,#fff4c8 0,#ffd86a 22%,#ff8640 46%,rgba(227,54,76,.7) 65%,rgba(227,54,76,0) 100%);box-shadow:0 0 18px rgba(255,188,75,.8),0 0 36px rgba(255,101,70,.65);animation:gcBoomV16 .5s ease-out forwards}
@keyframes gcBoomV16{0%{opacity:1;transform:scale(.3)}75%{opacity:1}100%{opacity:0;transform:scale(3.2)}}
/* keep content above bg but below bombs */
body .hero,body .updates-header,body .update-entry,body .factions-header,body .faction-card,body .factions-bottom{position:relative;z-index:2!important}
@media(max-width:1050px){body>.topbar{width:min(1320px,calc(100% - 24px))!important}body>.site-frame{width:min(1320px,calc(100% - 24px))!important;padding-top:164px!important}body .updates-header{grid-template-columns:1fr!important}.gc-mbm-flight{top:154px!important;width:144px!important}}
@media(max-width:650px){body>.topbar{height:auto!important;min-height:118px!important}.gc-mbm-flight{top:196px!important;width:118px!important}}

/* V17: identifikacni terminal, spolecny pro prihlaseni a registraci */
body .auth-layout{display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(360px,1fr)!important;gap:22px!important;align-items:start!important;width:min(1080px,100%)!important;margin:12px auto 70px!important}
body .auth-info,body .auth-box{min-width:0!important;box-sizing:border-box!important;border-radius:20px!important;border:1px solid rgba(101,134,120,.8)!important;background:linear-gradient(145deg,rgba(3,20,15,.75),rgba(0,10,8,.77))!important;box-shadow:0 12px 28px rgba(0,0,0,.38),inset 0 1px rgba(185,255,209,.13)!important;overflow:hidden!important}
body .auth-info{padding:32px!important;min-height:415px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important}
body .auth-info h1{font-size:clamp(30px,3.5vw,51px)!important;line-height:1.06!important;margin:20px 0!important;overflow-wrap:normal!important}
body .auth-info p{font-size:15px!important;line-height:1.65!important;max-width:42ch!important;color:#e1eee7!important}
body .auth-aside{margin-top:30px!important;padding:18px!important;border-radius:12px!important;background:rgba(8,31,22,.66)!important;border:1px solid rgba(50,127,82,.62)!important}
body .auth-box{padding:24px!important;max-width:none!important}
body .auth-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-bottom:22px!important}
body .auth-tabs a{display:flex!important;justify-content:center!important;align-items:center!important;min-height:47px!important;padding:10px 12px!important;box-sizing:border-box!important;color:#f2fff6!important;text-align:center!important;background:linear-gradient(180deg,#243c32,#061510)!important;border:1px solid #62786b!important;border-radius:10px!important}
body .auth-tabs a.selected{border-color:#32f88b!important;background:linear-gradient(180deg,#155438,#092b20)!important;box-shadow:inset 0 1px #a8ffcf44,0 0 12px #10fc7844!important}
body .auth-box form{display:flex!important;flex-direction:column!important;gap:0!important}
body .auth-box form label{margin:13px 0 7px!important;color:#7dffb8!important;font-weight:800!important;font-size:12px!important;letter-spacing:.075em!important}
body .auth-box form input,body .auth-box form select{display:block!important;box-sizing:border-box!important;width:100%!important;min-height:48px!important;border-radius:10px!important;background:#081b15!important;border:1px solid #56786a!important;color:#f0fff5!important;padding:12px 14px!important;font-size:16px!important;box-shadow:inset 0 2px 8px #0008!important;outline:none!important}
body .auth-box form input:focus,body .auth-box form select:focus{border-color:#39ff91!important;box-shadow:0 0 0 3px #2cff7d2a!important}
body .auth-box form input:-webkit-autofill{box-shadow:0 0 0 100px #102f22 inset!important;-webkit-text-fill-color:#f1fff5!important}
body .auth-box form button[type=submit]{margin-top:25px!important;min-height:50px!important;border-radius:10px!important;color:#fff!important;font-size:14px!important}
body .auth-box .fine-print{font-size:12px!important;line-height:1.6!important;color:#bfddcc!important}
@media(max-width:820px){body .auth-layout{grid-template-columns:1fr!important;width:min(600px,100%)!important}body .auth-info{min-height:0!important}body .auth-info h1{font-size:clamp(28px,7vw,44px)!important}body .auth-box{padding:20px!important}}
