html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #07111c;
  font-family: Inter, Arial, sans-serif;
}

#game {
  width: 100vw;
  height: 100vh;
  display: block;
}

#hud,
#playersHud,
#eventsHud,
#buildWrap,
#debugPanel {
  position: fixed;
  border-radius: 16px;
  background: rgba(8, 14, 22, 0.74);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  color: white;
  z-index: 10;
}

#hud {
  left: 18px;
  bottom: 18px;
  width: 620px;
  padding: 15px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
}

#playersHud {
  top: 18px;
  right: 18px;
  width: 270px;
  padding: 18px 22px;
}

#eventsHud {
  right: 18px;
  bottom: 18px;
  width: 330px;
  padding: 15px 18px;
  pointer-events: none;
}

#buildWrap {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#buildToggle {
  height: 42px;
  padding: 0 22px;
  border-radius: 13px;
  border: 1px solid rgba(53,242,143,.35);
  background: linear-gradient(180deg, rgba(53,242,143,.16), rgba(53,242,143,.07));
  color: rgba(255,255,255,.96);
  font-weight: 800;
  letter-spacing: .9px;
  cursor: pointer;
}

#buildWrap.open #buildToggle {
  box-shadow: 0 0 20px rgba(53,242,143,.15);
}

#buildBar {
  display: none;
  gap: 8px;
  align-items: center;
}

#buildWrap.open #buildBar {
  display: flex;
}

#debugPanel {
  display: none;
  top: 18px;
  left: 18px;
  width: 270px;
  padding: 18px 22px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hud-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 78px;
}

.hud-title,
.panel-title {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
}

.panel-title {
  margin-bottom: 12px;
}

.hud-value {
  font-size: 25px;
  font-weight: 750;
  line-height: 1;
}

.hud-value.small {
  font-size: 22px;
}

.green {
  color: #35f28f;
  font-size: 14px;
  margin-top: 3px;
}

.gold {
  color: #e8c85f;
  font-size: 14px;
  margin-top: 3px;
}

.soft {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin-top: 3px;
}

.slider-group {
  flex: 1;
  min-width: 95px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.playerRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
}

.playerRow + .playerRow {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.playerName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playerPercent {
  color: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.you {
  font-weight: 750;
}

.eventItem {
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
  opacity: 0.95;
}

.eventItem + .eventItem {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.buildItem {
  position: relative;
  width: 88px;
  height: 100px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.038));
  border: 1px solid rgba(255, 255, 255, 0.085);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  transition: transform .13s ease, background .13s ease, border .13s ease, box-shadow .13s ease;
}

.buildItem:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,0.115), rgba(255,255,255,0.046));
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 0 20px rgba(255,255,255,0.055);
}

.buildItem.selected {
  border-color: rgba(53, 242, 143, 0.85);
  background: linear-gradient(180deg, rgba(53,242,143,0.16), rgba(53,242,143,0.065));
  box-shadow: 0 0 22px rgba(53,242,143,0.13);
}

.hotkey {
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.58);
}

.buildCanvas {
  width: 50px;
  height: 50px;
  display: block;
}

.buildName {
  font-size: 11px;
  color: rgba(255,255,255,.92);
  line-height: 1;
}

.buildPrice {
  font-size: 11px;
  color: rgba(232, 200, 95, 0.96);
  line-height: 1;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #35f28f;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #35f28f;
  cursor: pointer;
}

@media (max-width: 1540px) {
  #buildWrap {
    bottom: 108px;
  }
}

@media (max-width: 960px) {
  #hud {
    width: calc(100vw - 72px);
    bottom: 104px;
  }

  #eventsHud {
    display: none;
  }

  #buildWrap {
    bottom: 18px;
    max-width: calc(100vw - 36px);
  }
}


#diplomacyMenu {
  position: fixed;
  z-index: 30;
  min-width: 176px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(8, 14, 22, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 18px 45px rgba(0,0,0,0.34);
  color: white;
}

#diplomacyMenu.hidden,
#buildingTooltip.hidden {
  display: none;
}

.diploName {
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.9);
}

#diplomacyMenu button {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  text-align: left;
}

#diplomacyMenu button:hover:not(:disabled) {
  background: rgba(53,242,143,0.13);
  border-color: rgba(53,242,143,0.35);
}

#diplomacyMenu button:disabled {
  opacity: 0.36;
  cursor: default;
}

#buildingTooltip {
  position: fixed;
  z-index: 25;
  min-width: 160px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(8, 14, 22, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 38px rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}


.playersHudTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

#playersHudToggle {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#playersHud.minimized {
  width: auto;
  min-width: 72px;
  padding: 14px 16px;
}

#playersHud.minimized #playersList {
  display: none;
}

#playersHud.minimized .playersHudTop {
  margin-bottom: 0;
}

#playersHud.minimized .panel-title {
  margin-bottom: 0;
}

#playersHud.minimized #playersHudToggle {
  width: 22px;
  height: 22px;
  font-size: 14px;
}


body.menu-open #hud,
body.menu-open #playersHud,
body.menu-open #eventsHud,
body.menu-open #buildWrap,
body.menu-open #debugPanel,
body.menu-open #diplomacyMenu,
body.menu-open #buildingTooltip {
  display: none !important;
}

#startScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    linear-gradient(90deg, rgba(3,8,12,0.58), rgba(3,8,12,0.10) 28%, rgba(3,8,12,0.10) 72%, rgba(3,8,12,0.58)),
    url("assets/startscreen.png") center center / cover no-repeat;
  color: rgba(255,255,255,0.92);
  font-family: Inter, Arial, sans-serif;
}

#startScreen.hidden {
  display: none;
}

.startSidePanel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 255px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(6, 12, 18, 0.54);
  border: 1px solid rgba(218, 183, 112, 0.18);
  box-shadow: 0 22px 55px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

.startStatsPanel {
  left: 44px;
}

.startHighscorePanel {
  right: 44px;
}

.startPanelTitle {
  font-size: 11px;
  letter-spacing: 2.0px;
  color: rgba(230,205,156,0.86);
  margin-bottom: 10px;
}

.statRow,
.scoreRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.055);
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.statRow:first-of-type,
.scoreRow:first-child {
  border-top: 0;
}

.statRow strong,
.scoreRow strong {
  color: rgba(255,255,255,0.94);
  font-weight: 750;
}

.dailyHighscoreList.empty {
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  line-height: 1.55;
}

.startBottom {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(6, 12, 18, 0.56);
  border: 1px solid rgba(218, 183, 112, 0.19);
  box-shadow: 0 22px 55px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

#playerNameInput {
  width: 210px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.065);
  color: rgba(255,255,255,0.94);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

#playerNameInput::placeholder {
  color: rgba(255,255,255,0.45);
}

#playerNameInput:focus {
  border-color: rgba(218,183,112,0.52);
  box-shadow: 0 0 0 3px rgba(218,183,112,0.10);
}

#playButton {
  height: 44px;
  min-width: 132px;
  padding: 0 28px;
  border-radius: 13px;
  border: 1px solid rgba(218,183,112,0.55);
  background: linear-gradient(180deg, rgba(218,183,112,0.22), rgba(218,183,112,0.08));
  color: rgba(255,245,225,0.96);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 2.2px;
  cursor: pointer;
}

#playButton:hover {
  background: linear-gradient(180deg, rgba(218,183,112,0.30), rgba(218,183,112,0.12));
  box-shadow: 0 0 28px rgba(218,183,112,0.12);
}



@media (max-width: 980px) {
  .startSidePanel {
    width: 210px;
    padding: 14px 16px;
  }

  .startStatsPanel {
    left: 18px;
  }

  .startHighscorePanel {
    right: 18px;
  }

  .startBottom {
    bottom: 28px;
  }
}


#buildInfoTooltip {
  position: fixed;
  z-index: 2000;
  width: 238px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(8, 14, 22, 0.90);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 18px 48px rgba(0,0,0,0.34);
  color: rgba(255,255,255,0.88);
  pointer-events: none;
  font-size: 12px;
  line-height: 1.42;
}

#buildInfoTooltip.hidden {
  display: none;
}

.buildInfoTitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.buildInfoTitle strong {
  color: rgba(255,255,255,0.96);
  font-size: 13px;
  letter-spacing: 0.3px;
}

.buildInfoPrice {
  color: rgba(232,200,95,0.96);
  font-size: 12px;
  white-space: nowrap;
}

.buildInfoDesc {
  color: rgba(255,255,255,0.72);
  margin-bottom: 8px;
}

.buildInfoStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.065);
  color: rgba(255,255,255,0.58);
}

.buildInfoStats span {
  white-space: nowrap;
}

.buildInfoHint {
  margin-top: 8px;
  color: rgba(53,242,143,0.78);
  font-size: 11px;
}


/* v0.9g-2: remove old/native-looking hover hints around build menu.
   Only #buildInfoTooltip should explain buildings now. */
#buildBar [title],
.buildItem [title] {
  pointer-events: inherit;
}

.buildHint,
.buildTooltip,
.build-hover-hint,
.tooltip:not(#buildInfoTooltip),
.hintBubble,
.oldBuildHint {
  display: none !important;
}


#safeTimeHud {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(65, 10, 12, 0.42);
  border: 1px solid rgba(255, 72, 82, 0.28);
  color: rgba(255, 96, 106, 0.92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

#safeTimeHud.hidden {
  display: none;
}

#safeTimeValue {
  color: rgba(255, 220, 220, 0.96);
}


#mapStartHint {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 52;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(7, 13, 20, 0.52);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.84);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.26);
  pointer-events: none;
}

#mapStartHint.hidden {
  display: none;
}


#allianceRequestHud {
  position: fixed;
  right: 22px;
  bottom: 126px;
  z-index: 45;
  width: 245px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(7, 13, 20, 0.88);
  border: 1px solid rgba(53,242,143,0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.34);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.88);
}

#allianceRequestHud.hidden {
  display: none;
}

.allianceRequestTitle {
  font-size: 12px;
  font-weight: 850;
  color: rgba(53,242,143,0.88);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.allianceRequestText {
  font-size: 13px;
  line-height: 1.42;
  color: rgba(255,255,255,0.74);
  margin-bottom: 10px;
}

.allianceRequestActions {
  display: flex;
  gap: 8px;
}

.allianceRequestActions button {
  flex: 1;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  cursor: pointer;
}

#allianceAcceptBtn {
  border-color: rgba(53,242,143,0.32);
  background: rgba(53,242,143,0.10);
}

#allianceDeclineBtn {
  border-color: rgba(255,90,90,0.22);
}


#startTagline {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 13px 18px;
  border-radius: 18px;
  background: rgba(6, 12, 18, 0.38);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.26);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.52;
  letter-spacing: 0.9px;
  text-align: center;
  text-transform: uppercase;
}

#backToMenuBtn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(7, 13, 20, 0.58);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.22);
  cursor: pointer;
}

#backToMenuBtn:hover {
  color: rgba(255,255,255,0.96);
  background: rgba(7, 13, 20, 0.76);
}

#backToMenuBtn.hidden {
  display: none;
}

#winOverlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 10, 0.46);
  backdrop-filter: blur(4px);
}

#winOverlay.hidden {
  display: none;
}

.winCard {
  width: min(420px, calc(100vw - 42px));
  padding: 24px 26px 22px;
  border-radius: 22px;
  background: rgba(7, 13, 20, 0.88);
  border: 1px solid rgba(53,242,143,0.22);
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
  text-align: center;
  color: rgba(255,255,255,0.90);
}

.winTitle {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.97);
  margin-bottom: 9px;
}

.winText {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  margin-bottom: 18px;
}

#continueAfterWinBtn {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(53,242,143,0.32);
  background: rgba(53,242,143,0.10);
  color: rgba(255,255,255,0.90);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

#continueAfterWinBtn:hover {
  background: rgba(53,242,143,0.16);
}

.liveFallbackTitle {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.liveFallbackText {
  max-width: 250px;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
  line-height: 1.35;
}


/* Final Beta exact build button left fix */
#buildWrap {
  left: 18px !important;
  bottom: 146px !important;
  transform: none !important;
  padding: 0 !important;
  display: flex !important;
  gap: 8px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  z-index: 90 !important;
}

#buildWrap::before,
#buildWrap::after {
  display: none !important;
  content: none !important;
}

#buildToggle {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
  height: 42px !important;
  min-width: 118px !important;
  padding: 0 22px !important;
  border-radius: 13px !important;
  z-index: 91 !important;
}

#buildBar {
  display: none;
}

#buildWrap.open {
  left: 18px !important;
  bottom: 146px !important;
  transform: none !important;
  padding: 8px 10px !important;
  background: rgba(8, 14, 22, 0.74) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22) !important;
}

#buildWrap.open #buildBar {
  display: flex !important;
}

/* remove the old bottom-center ghost handle caused by the centered build wrapper */
body:not(.menu-open) #buildWrap:not(.open) #buildBar {
  display: none !important;
}


/* Final Beta send troops removal */
#hud .slider-group {
  max-width: 260px;
}

#hud .slider-group input[type="range"] {
  width: 100%;
}


/* Final Alpha 1.0 controlled fix */


#hud .slider-group {
  max-width: 260px;
}

#hud .slider-group input[type="range"] {
  width: 100%;
}


/* Multiplayer lobby preparation */
#playButton:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.4);
  box-shadow: none;
}

.startNameError {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 520px;
  color: rgba(255, 185, 160, 0.92);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.startNameError.ok {
  color: rgba(150, 255, 195, 0.82);
}

#lobbyScreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    linear-gradient(90deg, rgba(3,8,12,0.58), rgba(3,8,12,0.10) 28%, rgba(3,8,12,0.10) 72%, rgba(3,8,12,0.58)),
    url("assets/startscreen.png") center center / cover no-repeat;
  color: rgba(255,255,255,0.92);
  font-family: Inter, Arial, sans-serif;
}

#lobbyScreen.hidden {
  display: none;
}

#lobbyBackBtn {
  position: absolute;
  left: 24px;
  top: 24px;
  height: 40px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid rgba(218,183,112,0.34);
  background: rgba(6, 12, 18, 0.56);
  color: rgba(255,245,225,0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0,0,0,0.26);
  backdrop-filter: blur(12px);
}

#lobbyBackBtn:hover {
  background: rgba(218,183,112,0.12);
  border-color: rgba(218,183,112,0.55);
}

.lobbyHeader {
  position: absolute;
  left: 50%;
  top: 86px;
  transform: translateX(-50%);
  text-align: center;
  padding: 18px 28px;
  border-radius: 22px;
  background: rgba(6, 12, 18, 0.46);
  border: 1px solid rgba(218, 183, 112, 0.16);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px);
}

.lobbyWelcome {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: rgba(255,245,225,0.98);
}

.lobbySubtitle {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(230,205,156,0.86);
}

.lobbyStatus {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.56);
}

.lobbyServerGrid {
  position: absolute;
  left: 50%;
  top: 240px;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 80px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.serverCard {
  min-height: 190px;
  padding: 20px;
  text-align: left;
  border-radius: 22px;
  background: rgba(6, 12, 18, 0.56);
  border: 1px solid rgba(218, 183, 112, 0.16);
  box-shadow: 0 24px 70px rgba(0,0,0,0.34);
  backdrop-filter: blur(15px);
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.serverCard:hover {
  transform: translateY(-3px);
  border-color: rgba(218,183,112,0.42);
  background: rgba(18, 25, 33, 0.64);
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
}

.serverTopline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.serverTopline span {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,245,225,0.98);
}

.serverTopline strong {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(150,255,195,0.82);
}

.serverMeta {
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  color: rgba(255,255,255,0.70);
}

.serverJoinHint {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(230,205,156,0.86);
}

.friendsPanel {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 255px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(6, 12, 18, 0.54);
  border: 1px solid rgba(218, 183, 112, 0.18);
  box-shadow: 0 22px 55px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
}

.friendsTitle {
  font-size: 11px;
  letter-spacing: 2.0px;
  color: rgba(230,205,156,0.86);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.friendsList.empty {
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  line-height: 1.55;
}

.friendRow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.74);
  font-size: 13px;
}

.friendDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(150,150,150,0.72);
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.friendRow.online .friendDot {
  background: rgba(76,255,150,0.92);
  box-shadow: 0 0 14px rgba(76,255,150,0.32);
}

.friendRow.offline .friendDot {
  background: rgba(150,150,150,0.62);
}

#friendRequestBtn.hidden {
  display: none;
}

#formAllianceBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* Queue and placement fix */
.friendsPanel {
  right: auto !important;
  top: auto !important;
  left: 50% !important;
  bottom: 34px !important;
  transform: translateX(-50%) !important;
  width: min(520px, calc(100vw - 80px)) !important;
}

.queuePanel {
  position: absolute;
  left: 50%;
  top: 476px;
  transform: translateX(-50%);
  min-width: 360px;
  max-width: min(620px, calc(100vw - 80px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(6, 12, 18, 0.56);
  border: 1px solid rgba(218, 183, 112, 0.18);
  box-shadow: 0 22px 55px rgba(0,0,0,0.30);
  backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.72);
  text-align: center;
  font-size: 13px;
}

.queuePanel.hidden {
  display: none;
}

.serverCard.running {
  opacity: 0.88;
}

.serverCard.running .serverJoinHint {
  color: rgba(255,196,130,0.92);
}

.serverCard.countdown .serverJoinHint,
.serverCard.restarting .serverJoinHint,
.serverCard.waiting .serverJoinHint {
  color: rgba(150,255,195,0.88);
}


/* Live players, selected queue and AFK fix */
.livePlayersHud {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1600;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(4, 16, 11, 0.62);
  border: 1px solid rgba(76, 255, 150, 0.34);
  color: rgba(115, 255, 176, 0.96);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  box-shadow: 0 16px 42px rgba(0,0,0,0.34), 0 0 24px rgba(76,255,150,0.08);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.serverCard.selected {
  border-color: rgba(76, 255, 150, 0.72) !important;
  background: rgba(8, 27, 18, 0.70) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,0.45), 0 0 34px rgba(76,255,150,0.14) !important;
  transform: translateY(-4px);
}

.serverCard.selected .serverJoinHint::before {
  content: "Selected · ";
  color: rgba(76,255,150,0.92);
}

.queueWaitTime {
  display: block;
  margin-top: 8px;
  color: rgba(150,255,195,0.88);
  font-weight: 800;
}

.friendsPanel {
  right: auto !important;
  top: auto !important;
  left: 50% !important;
  bottom: 34px !important;
  transform: translateX(-50%) !important;
  width: min(520px, calc(100vw - 80px)) !important;
}




.emojiActions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

#diplomacyMenu .emojiBtn {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  text-align: center;
  font-size: 19px;
  line-height: 1;
}

#diplomacyMenu .emojiBtn:disabled {
  opacity: 0.32;
}


/* Performance/stability fix: live player HUD is lobby-only. */
body:not(.menu-open) #livePlayersHud {
  display: none !important;
}
#lobbyScreen.hidden ~ #livePlayersHud {
  display: none !important;
}


#inactivityKickNotice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  z-index: 999999;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(5, 10, 14, 0.84);
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
  color: rgba(255,255,255,0.88);
  font-family: Inter, system-ui, Arial, sans-serif;
  backdrop-filter: blur(14px);
}

.inactivityKickNoticeTitle {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inactivityKickNoticeText {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.70);
  padding-right: 86px;
}

#inactivityKickNoticeClose {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  font: 800 12px Inter, system-ui, Arial, sans-serif;
  padding: 8px 12px;
  cursor: pointer;
}

#inactivityKickNoticeClose:hover {
  background: rgba(255,255,255,0.14);
}

#versionBadge {
  position: fixed !important;
  left: 16px !important;
  bottom: 10px !important;
  z-index: 999999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: rgba(255,255,255,0.70) !important;
  font-family: Inter, system-ui, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  pointer-events: none !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.72) !important;
}

body.in-game #hud,
body.in-game #buildWrap {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.in-game #playersHud,
body.in-game #eventsHud {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* Alpha 1.2 widget/freeze repair: normal panel layout, no global flex vandalism */
#playersHud {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 260px !important;
  max-width: calc(100vw - 36px) !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: rgba(8, 14, 18, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.32) !important;
  backdrop-filter: blur(16px) !important;
  z-index: 20 !important;
  display: block !important;
  color: rgba(255,255,255,0.92) !important;
}

#playersHud .playersHudTop {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 10px 0 !important;
  width: 100% !important;
}

#playersHud .panel-title {
  margin: 0 !important;
  font-size: 12px !important;
  letter-spacing: 1.2px !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.56) !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

#playersHudToggle {
  position: static !important;
  flex: 0 0 auto !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 16px !important;
  line-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#playersList {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#playersHud.minimized {
  width: auto !important;
  min-width: 118px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
}

#playersHud.minimized #playersList {
  display: none !important;
}

#playersHud.minimized .playersHudTop {
  margin: 0 !important;
}

#playersHud .playerRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 6px 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

#playersHud .playerName {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#playersHud .playerPercent {
  justify-self: end !important;
  min-width: 42px !important;
  text-align: right !important;
  color: rgba(255,255,255,0.70) !important;
}

#eventsHud {
  display: block !important;
  right: 18px !important;
  bottom: 18px !important;
  width: 330px !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
}

#eventsHud .panel-title {
  display: block !important;
  margin: 0 0 10px 0 !important;
  line-height: 1 !important;
}

#eventsList {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#eventsHud .eventItem {
  display: block !important;
  padding: 6px 0 !important;
  line-height: 1.35 !important;
}


/* Alpha 1.2 Safe-Time visibility repair */
#safeTimeHud {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99998 !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  background: rgba(12, 18, 22, 0.84) !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.32) !important;
  color: rgba(255,255,255,0.88) !important;
  font: 800 12px Inter, system-ui, Arial, sans-serif !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  pointer-events: none !important;
  backdrop-filter: blur(14px) !important;
}

#safeTimeHud.hidden {
  display: none !important;
}

body.in-game #eventsHud {
  right: 18px !important;
  bottom: 18px !important;
  z-index: 24 !important;
}

body.in-game #playersHud {
  right: 18px !important;
  top: 18px !important;
  z-index: 24 !important;
}

body.in-game #inactivityKickNotice {
  left: 18px !important;
  bottom: 18px !important;
  transform: none !important;
  z-index: 99999 !important;
}

.serverCard.locked{opacity:.72}.serverCard.locked .serverJoinHint{color:#ffcf9a}


/* Alpha 1.2 Countdown Hint Fix: one hint only, never over the countdown number. */
#mapStartHint,
.mapStartHint {
  position: fixed !important;
  left: 50% !important;
  top: calc(50% + 64px) !important;
  transform: translateX(-50%) !important;
  max-width: min(760px, calc(100vw - 48px)) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
  white-space: normal !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: rgba(255,255,255,0.82) !important;
  text-transform: none !important;
  pointer-events: none !important;
  z-index: 20 !important;
}


/* Alpha 1.2 HUD Stability Fix: prevent value-width changes from moving the HUD. */
#hud {
  width: 720px !important;
  max-width: calc(100vw - 40px) !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 178px 128px 110px minmax(210px, 1fr) !important;
  column-gap: 22px !important;
  align-items: center !important;
  overflow: hidden !important;
}

#hud .hud-section {
  width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
}

#hud .slider-group {
  min-width: 0 !important;
  width: 100% !important;
  flex: 0 1 auto !important;
}

#hud .hud-value,
#hud .green,
#hud .gold,
#hud .soft,
#attackValue,
.playerPercent {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

#troopsValue {
  display: block !important;
  min-width: 168px !important;
  white-space: nowrap !important;
}

#troopIncomeValue {
  display: block !important;
  min-width: 168px !important;
  white-space: nowrap !important;
}

#populationValue {
  display: block !important;
  min-width: 96px !important;
  white-space: nowrap !important;
}

#coinsValue {
  display: block !important;
  min-width: 86px !important;
  white-space: nowrap !important;
}

#coinIncomeValue {
  display: block !important;
  min-width: 86px !important;
  white-space: nowrap !important;
}

#playersHud {
  width: 330px !important;
}

.playerRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 54px !important;
  align-items: center !important;
  column-gap: 12px !important;
}

.playerName {
  min-width: 0 !important;
}

.playerRole {
  opacity: 0.62;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  #hud {
    width: min(720px, calc(100vw - 28px)) !important;
    grid-template-columns: 150px 108px 92px minmax(160px, 1fr) !important;
    column-gap: 14px !important;
  }

  #troopsValue,
  #troopIncomeValue {
    min-width: 148px !important;
  }
}


/* Alpha 1.2 HUD Values + Mini Player Align Fix */
#hud {
  left: 18px !important;
  bottom: 18px !important;
  width: min(880px, calc(100vw - 42px)) !important;
  max-width: calc(100vw - 42px) !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 230px) minmax(126px, 142px) minmax(118px, 132px) minmax(250px, 1fr) !important;
  column-gap: 24px !important;
  align-items: center !important;
  overflow: visible !important;
}

#hud .hud-section,
#hud .slider-group {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#hud .hud-title {
  white-space: nowrap !important;
}

#hud .hud-value,
#hud .green,
#hud .gold,
#hud .soft,
#attackValue {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

#troopsValue {
  display: block !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#troopIncomeValue {
  display: block !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#populationValue,
#populationHint {
  display: block !important;
  width: 126px !important;
  min-width: 126px !important;
  max-width: 126px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#coinsValue,
#coinIncomeValue {
  display: block !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#hud .slider-group {
  width: 100% !important;
  min-width: 220px !important;
}

@media (max-width: 900px) {
  #hud {
    width: calc(100vw - 28px) !important;
    grid-template-columns: minmax(170px, 190px) minmax(96px, 108px) minmax(82px, 96px) minmax(150px, 1fr) !important;
    column-gap: 12px !important;
  }

  #troopsValue,
  #troopIncomeValue {
    width: 184px !important;
    min-width: 184px !important;
    max-width: 184px !important;
  }

  #populationValue,
  #populationHint {
    width: 98px !important;
    min-width: 98px !important;
    max-width: 98px !important;
  }

  #coinsValue,
  #coinIncomeValue {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
  }

  #hud .slider-group {
    min-width: 150px !important;
  }
}


/* Alpha 1.2 Final HUD Audit Fix: clean visibility, scale and positions for every active HUD. */
#hud {
  left: 18px !important;
  bottom: 18px !important;
  width: min(760px, calc(100vw - 42px)) !important;
  max-width: calc(100vw - 42px) !important;
  min-height: 78px !important;
  padding: 13px 16px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  overflow: visible !important;
}

#hud .hud-section {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
}

#hud .hud-section:nth-of-type(1) {
  width: 205px !important;
}

#hud .hud-section:nth-of-type(2) {
  width: 108px !important;
}

#hud .hud-section:nth-of-type(3) {
  width: 106px !important;
}

#hud .slider-group {
  flex: 1 1 180px !important;
  min-width: 170px !important;
  max-width: 240px !important;
  box-sizing: border-box !important;
}

#hud .hud-title,
#hud .slider-header {
  white-space: nowrap !important;
}

#hud .hud-value,
#hud .green,
#hud .gold,
#hud .soft,
#attackValue,
.playerPercent {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

#troopsValue,
#troopIncomeValue {
  display: block !important;
  width: 205px !important;
  min-width: 205px !important;
  max-width: 205px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#populationValue,
#populationHint {
  display: block !important;
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#coinsValue,
#coinIncomeValue {
  display: block !important;
  width: 106px !important;
  min-width: 106px !important;
  max-width: 106px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

#playersHud {
  top: 16px !important;
  right: 16px !important;
  width: 250px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(8, 14, 22, 0.54) !important;
  border-color: rgba(255,255,255,0.055) !important;
  box-shadow: 0 14px 42px rgba(0,0,0,0.18) !important;
  backdrop-filter: blur(14px) !important;
}

.playersHudTop {
  margin-bottom: 8px !important;
}

#playersHud .panel-title {
  font-size: 11px !important;
  letter-spacing: 0.95px !important;
}

#playersHudToggle {
  width: 22px !important;
  height: 22px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

.playerRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 46px !important;
  align-items: center !important;
  column-gap: 8px !important;
  padding: 4px 0 !important;
  font-size: 12px !important;
}

.playerName {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.playerRole {
  opacity: 0.56 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  letter-spacing: 0.1px !important;
  white-space: nowrap !important;
}

.playerPercent {
  text-align: right !important;
  font-size: 12px !important;
}

#eventsHud {
  right: 18px !important;
  bottom: 18px !important;
  width: 305px !important;
  max-height: 156px !important;
  padding: 12px 15px !important;
  overflow: hidden !important;
  background: rgba(8, 14, 22, 0.60) !important;
}

.eventItem {
  font-size: 12px !important;
  padding: 4px 0 !important;
}

#buildWrap {
  left: 50% !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  max-width: min(760px, calc(100vw - 42px)) !important;
  box-sizing: border-box !important;
}

#safeTimeHud {
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: min(360px, calc(100vw - 36px)) !important;
  text-align: center !important;
}

#backToMenuBtn {
  left: 14px !important;
  top: 14px !important;
}

@media (max-width: 980px) {
  #hud {
    width: min(690px, calc(100vw - 30px)) !important;
    gap: 11px !important;
    padding: 12px 13px !important;
  }

  #hud .hud-section:nth-of-type(1),
  #troopsValue,
  #troopIncomeValue {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
  }

  #hud .hud-section:nth-of-type(2),
  #populationValue,
  #populationHint {
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }

  #hud .hud-section:nth-of-type(3),
  #coinsValue,
  #coinIncomeValue {
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
  }

  #hud .slider-group {
    min-width: 145px !important;
  }

  #playersHud {
    width: 235px !important;
  }
}


/* Alpha 1.2 Startcoins Placement UI Fix: final visual alignment pass. */
#hud {
  left: 18px !important;
  bottom: 18px !important;
}

#buildWrap {
  position: fixed !important;
  left: 18px !important;
  bottom: 110px !important;
  transform: none !important;
  max-width: min(720px, calc(100vw - 36px)) !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  z-index: 95 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#buildToggle {
  height: 38px !important;
  min-width: 78px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  flex: 0 0 auto !important;
}

#buildBar {
  max-width: min(620px, calc(100vw - 132px)) !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}

#backToMenuBtn {
  top: 14px !important;
  left: 14px !important;
}

#playersHud {
  top: 228px !important;
  right: 14px !important;
}

@media (max-width: 980px) {
  #buildWrap {
    left: 14px !important;
    bottom: 104px !important;
    max-width: calc(100vw - 28px) !important;
  }

  #buildBar {
    max-width: calc(100vw - 118px) !important;
  }

  #playersHud {
    top: 198px !important;
    right: 14px !important;
  }
}


/* Alpha 1.2 Factory Freeze + One Row Build Menu Fix */
#buildWrap {
  left: 18px !important;
  bottom: 110px !important;
  transform: none !important;
  width: auto !important;
  max-width: calc(100vw - 36px) !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}

#buildBar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: calc(100vw - 126px) !important;
  white-space: nowrap !important;
  scrollbar-width: thin !important;
  padding-bottom: 2px !important;
}

#buildBar.hidden {
  display: none !important;
}

.buildItem {
  flex: 0 0 auto !important;
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
}

.buildCanvas {
  width: 42px !important;
  height: 42px !important;
}

.buildName,
.buildPrice {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 980px) {
  #buildWrap {
    left: 14px !important;
    bottom: 104px !important;
    max-width: calc(100vw - 28px) !important;
  }

  #buildBar {
    max-width: calc(100vw - 112px) !important;
  }

  .buildItem {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
  }
}

body:not(.menu-open) #playersHud {
  top: 14px !important;
  right: 14px !important;
}

@media (max-width: 980px) {
  body:not(.menu-open) #Mini {
    top: 54px !important;
    left: 14px !important;
    width: 260px !important;
    max-width: calc(100vw - 28px) !important;
  }
}
#playersHud .playerRole.real {
  color: #35f28f !important;
  text-shadow: 0 0 8px rgba(53,242,143,0.30) !important;
}
#playersHud .playerRole.bot {
  color: rgba(255,255,255,0.58) !important;
}


/* Alpha 1.6ZZY-NG: online info button */
.startInfoButton {
  position: fixed;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  z-index: 160;
  color: rgba(230, 245, 255, 0.82);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(180, 220, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 10, 20, 0.46);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.startInfoButton:hover {
  color: #ffffff;
  border-color: rgba(88, 240, 160, 0.55);
  box-shadow: 0 0 18px rgba(88, 240, 160, 0.18);
}

.startSupportButton {
  position: fixed;
  left: 50%;
  bottom: 166px;
  transform: translateX(-50%);
  z-index: 161;
  color: rgba(255, 246, 250, 0.92);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 9px 15px;
  border: 1px solid rgba(255, 150, 185, 0.30);
  border-radius: 999px;
  background: rgba(38, 8, 20, 0.54);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}
.startSupportButton:hover {
  color: #ffffff;
  border-color: rgba(255, 155, 190, 0.70);
  box-shadow: 0 0 20px rgba(255, 115, 170, 0.22);
}
@media (max-width: 720px) {
  .startInfoButton {
    bottom: 116px;
    max-width: calc(100vw - 32px);
    text-align: center;
  }
}

@media (max-width: 980px) {
  body.in-game .Hud {
    left: 14px !important;
    top: 54px !important;
  }
}


.demolishConfirm{
  position:fixed;
  z-index:999999;
  width:260px;
  padding:12px;
  border:1px solid rgba(255,217,124,.38);
  border-radius:14px;
  background:rgba(7,12,24,.94);
  box-shadow:0 18px 52px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  color:#f7edcf;
  font-family:system-ui,Arial,sans-serif;
  backdrop-filter:blur(12px);
}
.demolishConfirm.hidden{display:none}
.demolishConfirmTitle{font-weight:800;font-size:14px;margin-bottom:5px;color:#ffe5a4}
.demolishConfirmText{font-size:12px;line-height:1.35;color:#d8dbe7;margin-bottom:10px}
.demolishConfirmActions{display:flex;gap:8px;justify-content:flex-end}
.demolishConfirmActions button{
  cursor:pointer;
  border-radius:10px;
  padding:7px 10px;
  font-weight:800;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#eef4ff;
}
.demolishConfirmActions .demolishConfirmButton{
  border-color:rgba(255,180,82,.55);
  background:linear-gradient(180deg,rgba(255,188,86,.28),rgba(194,98,34,.28));
  color:#ffe9bd;
}


/* Alpha 1.6ZK · Multiplayer Highscore Torture Fix: minimizable event feed */
#eventsHud .eventsHudTop {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 8px 0 !important;
}

#eventsHud .eventsHudTop .panel-title {
  margin: 0 !important;
}

#eventsHudToggle {
  width: 26px !important;
  height: 24px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.20) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.82) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

#eventsHudToggle:hover {
  background: rgba(255,255,255,0.14) !important;
}

#eventsHud.minimized {
  width: 174px !important;
  padding: 10px 14px !important;
}

#eventsHud.minimized #eventsList {
  display: none !important;
}

#eventsHud .eventItem.eventHumor {
  color: rgba(216, 238, 255, 0.74) !important;
  font-style: italic !important;
}


/* Alpha 1.6ZK eventfeed/kofi overrides */
#eventsHud {
  pointer-events: auto !important;
}
#eventsHudToggle,
#eventsHud .eventsHudTop,
#eventsHud #eventsList {
  pointer-events: auto !important;
}
#eventsHud.minimized {
  width: 142px !important;
  max-height: 42px !important;
  padding: 9px 12px !important;
}
#eventsHud.minimized #eventsList {
  display: none !important;
}
#eventsHud.minimized .panel-title {
  opacity: 0.72 !important;
}
.startSupportButton {
  bottom: 178px !important;
  padding: 6px 10px !important;
  font-size: 10px !important;
  letter-spacing: 0.075em !important;
  font-weight: 760 !important;
  color: rgba(255, 245, 248, 0.78) !important;
  border-color: rgba(255, 160, 190, 0.20) !important;
  background: rgba(12, 18, 28, 0.28) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14) !important;
  backdrop-filter: blur(8px) !important;
}
.startSupportButton:hover {
  color: rgba(255,255,255,0.94) !important;
  border-color: rgba(255, 160, 190, 0.38) !important;
  background: rgba(24, 18, 30, 0.38) !important;
  box-shadow: 0 0 14px rgba(255, 115, 170, 0.10) !important;
}


/* Alpha 1.6ZK highscore top-10 scaling guard */
.startHighscorePanel {
  max-height: min(410px, calc(100vh - 210px));
  overflow: hidden;
}
.dailyHighscoreList {
  display: flex;
  flex-direction: column;
}
.scoreRow span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scoreRow strong {
  flex: 0 0 auto;
}

/* ALPHA 1.6ZM · Real map preview boarding lobby */
.lobbyServerGrid {
  top: 214px;
  width: min(760px, calc(100vw - 72px));
  display: block;
}

.boardingCard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(260px, 1fr);
  gap: 22px;
  min-height: 300px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(5, 12, 18, 0.78), rgba(10, 20, 27, 0.62));
  border: 1px solid rgba(218, 183, 112, 0.20);
  box-shadow: 0 30px 90px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,0.90);
  overflow: hidden;
}

.boardingCard.locked {
  border-color: rgba(96, 255, 170, 0.72);
  box-shadow: 0 30px 96px rgba(0,0,0,0.48), 0 0 38px rgba(76,255,150,0.14), inset 0 1px 0 rgba(255,255,255,0.06);
}

.boardingCard.disabled { opacity: .78; }

.boardingPreview {
  position: relative;
  border-radius: 22px;
  min-height: 264px;
  background: radial-gradient(circle at 35% 28%, rgba(255,245,190,0.20), transparent 36%), linear-gradient(150deg, rgba(66,102,70,0.82), rgba(16,38,27,0.92));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 45px rgba(0,0,0,0.24);
  overflow: hidden;
}

.boardingPreview::before,
.boardingPreview::after {
  content: "";
  position: absolute;
  inset: 18% 10%;
  border-radius: 52% 48% 45% 55%;
  border: 1px solid rgba(255,255,255,0.11);
  transform: rotate(-12deg);
}

.boardingPreview::after {
  inset: 36% 18% 24% 18%;
  transform: rotate(18deg);
  opacity: .62;
}

.boardingPreview.ice { background: radial-gradient(circle at 32% 24%, rgba(240,255,255,0.32), transparent 35%), linear-gradient(150deg, rgba(104,150,166,0.82), rgba(23,49,65,0.94)); }
.boardingPreview.art { background: radial-gradient(circle at 34% 24%, rgba(255,229,180,0.24), transparent 32%), linear-gradient(150deg, rgba(108,88,118,0.86), rgba(30,23,43,0.94)); }

.boardingMapBadge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(2,8,12,0.54);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,245,225,0.88);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.boardingPulse {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(76,255,150,0.12);
  border: 1px solid rgba(76,255,150,0.36);
  box-shadow: 0 0 24px rgba(76,255,150,0.16);
}

.boardingBody { padding: 8px 8px 6px 0; display: flex; flex-direction: column; justify-content: center; }
.boardingEyebrow { font-size: 10px; font-weight: 950; letter-spacing: 2.2px; text-transform: uppercase; color: rgba(230,205,156,0.88); }
.boardingBody h2 { margin: 10px 0 12px; font-size: clamp(27px, 3.8vw, 42px); line-height: .98; color: rgba(255,245,225,0.98); }
.boardingCountdown { font-size: 15px; color: rgba(255,255,255,0.72); }
.boardingCountdown strong { color: rgba(140,255,190,0.95); font-size: 24px; margin-left: 6px; }
.boardingStats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.boardingStats span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.74); }
.boardingMeta { margin-bottom: 18px; color: rgba(255,255,255,0.46); font-size: 12px; line-height: 1.45; }
.boardingActions { display: flex; gap: 10px; align-items: center; }
.boardingJoinBtn,
.boardingLeaveBtn {
  height: 44px;
  border-radius: 15px;
  border: 1px solid rgba(218,183,112,0.25);
  background: rgba(218,183,112,0.14);
  color: rgba(255,245,225,0.94);
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
}
.boardingJoinBtn:hover:not(:disabled), .boardingLeaveBtn:hover { background: rgba(218,183,112,0.21); border-color: rgba(218,183,112,0.42); }
.boardingJoinBtn:disabled { opacity: .62; cursor: default; }
.boardingLeaveBtn { background: rgba(255,100,110,0.10); border-color: rgba(255,130,130,0.22); }
.boardingLeaveBtn.hidden { display: none; }

@media (max-width: 760px) {
  .lobbyHeader { top: 70px; width: min(520px, calc(100vw - 40px)); }
  .lobbyServerGrid { top: 205px; width: min(560px, calc(100vw - 34px)); }
  .boardingCard { grid-template-columns: 1fr; min-height: 0; gap: 14px; padding: 14px; }
  .boardingPreview { min-height: 150px; }
  .boardingBody { padding: 2px; }
  .boardingBody h2 { font-size: 30px; }
  .boardingActions { flex-direction: column; align-items: stretch; }
  .boardingJoinBtn, .boardingLeaveBtn { width: 100%; }
  .friendsPanel { display: none; }
}
.mapStartHint[data-risk="near_human"]{border-color:rgba(255,210,100,.55)!important;color:rgba(255,232,160,.96)!important}
.mapStartHint[data-risk="too_close"]{border-color:rgba(255,110,120,.65)!important;color:rgba(255,170,180,.98)!important}
@media (max-width: 920px) { .friendsPanel { display: none !important; } }


/* ALPHA 1.6ZM · Real PNG map previews in boarding lobby */
.boardingPreview.realMapPreview { background: rgba(2, 8, 12, 0.82); border-color: rgba(255, 255, 255, 0.13); }
.boardingPreview.realMapPreview::before, .boardingPreview.realMapPreview::after { display: none; }
.boardingMapImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.01); filter: saturate(1.04) contrast(1.04) brightness(0.92); }
.boardingMapShade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.24) 58%, rgba(0,0,0,0.44)); }
.boardingPreview.realMapPreview.ice .boardingMapImage { filter: saturate(1.02) contrast(1.05) brightness(0.96); }
.boardingPreview.realMapPreview.art .boardingMapImage { filter: saturate(1.07) contrast(1.04) brightness(0.94); }
.boardingPreview.realMapPreview .boardingMapBadge { max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(2,8,12,0.64); backdrop-filter: blur(8px); }
.boardingPreview.realMapPreview .boardingPulse { background: rgba(76,255,150,0.11); backdrop-filter: blur(8px); }


/* ALPHA 1.6ZQ · Startpage Boarding UI: the separate lobby is visually retired. */
#lobbyScreen {
  display: none !important;
  pointer-events: none !important;
}

#startScreen {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(33, 55, 54, 0.28), transparent 44%),
    linear-gradient(90deg, rgba(2,7,11,0.78), rgba(3,8,12,0.30) 28%, rgba(3,8,12,0.26) 70%, rgba(2,7,11,0.80)),
    url("assets/startscreen.png") center center / cover no-repeat;
}

.startLayout {
  position: absolute;
  inset: 28px 34px 28px 34px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(420px, 1fr) minmax(250px, 330px);
  gap: clamp(18px, 2vw, 30px);
  align-items: center;
  max-width: 1420px;
  margin: 0 auto;
}

.startLeftStack,
.startCenterStack,
.startRightStack {
  min-width: 0;
}

.startLeftStack,
.startRightStack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  padding-top: 16px;
}

.startCenterStack {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startExplainPanel,
#startScreen .startLivePanel,
#startScreen .startJoinPanel,
#startScreen .startTitleBlock,
#startScreen .startSupportLine {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  border-radius: 20px;
  background: rgba(5, 12, 18, 0.58);
  border: 1px solid rgba(218, 183, 112, 0.16);
  box-shadow: 0 22px 62px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.045);
  backdrop-filter: blur(16px);
}

#startScreen .startStatsPanel,
#startScreen .startHighscorePanel,
#startScreen .startFriendsPanel {
  padding: 14px 16px;
}

#startScreen .dailyHighscoreList {
  max-height: 238px;
  overflow: hidden;
}

#startScreen .scoreRow,
#startScreen .statRow {
  font-size: 12px;
  padding: 6px 0;
}

.startTitleBlock {
  width: min(620px, 100%);
  padding: 18px 24px 16px;
  text-align: center;
  background: rgba(5, 12, 18, 0.42) !important;
}
.startEyebrow {
  color: rgba(230,205,156,0.86);
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 950;
}
.startTitleBlock h1 {
  margin: 8px 0 8px;
  color: rgba(255,245,225,0.98);
  font-size: clamp(34px, 5vw, 64px);
  line-height: .9;
  letter-spacing: 2.5px;
  text-shadow: 0 12px 44px rgba(0,0,0,0.46);
}
.startTitleBlock p {
  margin: 0;
  color: rgba(255,255,255,0.64);
  font-size: 13px;
}

.startJoinPanel {
  width: min(720px, 100%);
  padding: 16px;
  background: linear-gradient(145deg, rgba(4, 10, 16, 0.78), rgba(9, 18, 24, 0.66)) !important;
}
.startJoinTopline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin: 2px 2px 12px;
  color: rgba(230,205,156,0.88);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.startJoinTopline strong {
  color: rgba(140,255,190,0.80);
  font-size: 9px;
  letter-spacing: 1.6px;
}
.startNameRow {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(170px, auto);
  gap: 10px;
  margin-bottom: 10px;
}
#startScreen .startBottom {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: none;
}
#startScreen #playerNameInput,
#startScreen #playButton {
  width: 100%;
  height: 44px;
}
#startScreen #playButton {
  min-width: 170px;
  padding: 0 18px;
}
#startScreen .startNameError {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: auto;
  max-width: none;
  min-height: 16px;
  margin: 0 2px 10px;
  text-align: left;
}
#startScreen .lobbyStatus {
  position: relative;
  margin: 6px 2px 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}
#startScreen .lobbyServerGrid {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  display: block !important;
  margin: 0;
}
#startScreen .boardingCard {
  grid-template-columns: minmax(190px, 42%) minmax(240px, 1fr);
  gap: 18px;
  min-height: 250px;
  padding: 14px;
  border-radius: 24px;
}
#startScreen .boardingPreview {
  min-height: 222px;
  border-radius: 19px;
}
#startScreen .boardingBody { padding: 4px 4px 4px 0; }
#startScreen .boardingBody h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 8px 0 10px;
}
#startScreen .boardingStats { margin: 14px 0 10px; }
#startScreen .boardingMeta { margin-bottom: 14px; }
#startScreen .queuePanel {
  position: relative;
  margin-top: 10px;
}
.startSupportLine {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: rgba(5, 12, 18, 0.42) !important;
}
#startScreen .startSupportButton,
#startScreen .startInfoButton {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
}
#startScreen .startSupportButton {
  background: rgba(255,110,145,0.10);
  border-color: rgba(255,150,175,0.18);
}
#startScreen .startInfoButton {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.08);
}
.startExplainPanel,
.startLivePanel {
  padding: 16px 17px;
}
.startExplainPanel p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.45;
}
.startExplainPanel strong { color: rgba(230,205,156,0.92); }
.startLivePanel .livePlayersHud {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  display: block;
  width: fit-content;
  margin: 4px 0 10px;
  z-index: 1;
}
.startLiveHint {
  color: rgba(255,255,255,0.54);
  font-size: 12px;
  line-height: 1.45;
}
body.menu-open #livePlayersHud.hidden { display: none !important; }
body:not(.menu-open) #livePlayersHud { display: none !important; }

@media (max-width: 1120px) {
  .startLayout {
    inset: 18px;
    grid-template-columns: minmax(210px, 250px) minmax(390px, 1fr);
    grid-template-areas:
      "left center"
      "right center";
    align-items: start;
    overflow-y: auto;
    padding-right: 4px;
  }
  .startLeftStack { grid-area: left; }
  .startCenterStack { grid-area: center; align-self: start; padding-top: 12px; }
  .startRightStack { grid-area: right; padding-top: 0; }
  #startScreen .boardingCard { grid-template-columns: 1fr; }
  #startScreen .boardingPreview { min-height: 190px; }
}

@media (max-width: 760px) {
  .startLayout {
    inset: 14px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .startLeftStack, .startRightStack, .startCenterStack {
    width: 100%;
    padding-top: 0;
  }
  .startCenterStack { order: 1; }
  .startLeftStack { order: 2; }
  .startRightStack { order: 3; }
  .startNameRow { grid-template-columns: 1fr; }
  .startTitleBlock h1 { font-size: 36px; }
  #startScreen .boardingActions { flex-direction: column; align-items: stretch; }
  #startScreen .boardingJoinBtn, #startScreen .boardingLeaveBtn { width: 100%; }
}

/* ALPHA 1.6ZQ · visual fit pass after screenshot review */
#startScreen .startHighscorePanel {
  padding: 12px 15px;
}
#startScreen .startHighscorePanel .scoreRow {
  padding: 4px 0;
  font-size: 11px;
  line-height: 1.25;
}
#startScreen .startHighscorePanel .startPanelTitle {
  margin-bottom: 7px;
}
#startScreen .dailyHighscoreList {
  max-height: 228px;
}

@media (min-width: 1121px) and (max-height: 780px) {
  .startLayout {
    inset: 24px 34px 20px;
  }
  .startLeftStack,
  .startRightStack {
    padding-top: 0;
    gap: 12px;
  }
  .startCenterStack {
    gap: 12px;
  }
  .startTitleBlock {
    padding: 13px 22px 12px;
  }
  .startTitleBlock h1 {
    font-size: clamp(34px, 4.2vw, 52px);
    margin: 6px 0 6px;
  }
  .startTitleBlock p {
    font-size: 12px;
  }
  .startJoinPanel {
    padding: 14px;
  }
  #startScreen .boardingCard {
    min-height: 214px;
    padding: 12px;
    gap: 16px;
  }
  #startScreen .boardingPreview {
    min-height: 194px;
  }
  #startScreen .boardingBody h2 {
    font-size: clamp(25px, 3vw, 35px);
  }
  #startScreen .boardingStats {
    margin: 12px 0 8px;
  }
  #startScreen .boardingMeta {
    margin-bottom: 10px;
  }
  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 40px;
  }
  .startSupportLine {
    padding: 8px;
  }
}

/* ALPHA 1.6ZQ · compact 720p screenshot pass */
@media (min-width: 1121px) and (max-height: 740px) {
  .startTitleBlock {
    padding: 9px 20px 9px;
  }
  .startTitleBlock h1 {
    font-size: clamp(31px, 3.75vw, 46px);
    letter-spacing: 2px;
    margin: 4px 0;
  }
  .startEyebrow {
    font-size: 9px;
  }
  .startTitleBlock p {
    font-size: 11px;
  }
  #startScreen .boardingCard {
    min-height: 200px;
  }
  #startScreen .boardingPreview {
    min-height: 180px;
  }
  #startScreen .boardingBody h2 {
    font-size: clamp(24px, 2.7vw, 32px);
    margin-bottom: 7px;
  }
  #startScreen .boardingCountdown strong {
    font-size: 21px;
  }
  #startScreen .boardingStats span {
    padding: 6px 9px;
  }
  .startSupportLine {
    padding: 7px;
  }
  #startScreen .startSupportButton,
  #startScreen .startInfoButton {
    height: 31px;
  }
}


/* ALPHA 1.6ZR · Startpage layout stability fix
   - Title HUD above Join is removed.
   - Join Next Game card uses fixed metrics and tabular numbers so live values do not resize the layout.
   - /Info support row gets a stable gap and never touches the join panel. */
#startScreen .startTitleBlock {
  display: none !important;
}

#startScreen .startCenterStack {
  justify-content: center;
  gap: 18px;
  min-height: calc(100vh - 72px);
}

#startScreen .startJoinPanel {
  width: min(720px, 100%) !important;
  min-height: 455px;
  padding: 18px !important;
  overflow: hidden;
  contain: layout paint;
}

#startScreen .startJoinTopline,
#startScreen .lobbyStatus,
#startScreen .startNameError,
#startScreen .boardingCard,
#startScreen .boardingStats,
#startScreen .boardingCountdown,
#startScreen .boardingMeta,
#startScreen .livePlayersHud {
  font-variant-numeric: tabular-nums lining-nums;
}

#startScreen .startJoinTopline {
  min-height: 15px;
}

#startScreen .startNameError {
  min-height: 18px;
  line-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#startScreen .lobbyStatus {
  min-height: 34px;
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#startScreen .boardingCard {
  height: 252px;
  min-height: 252px;
  max-height: 252px;
  align-items: stretch;
}

#startScreen .boardingPreview {
  height: 224px;
  min-height: 224px;
  max-height: 224px;
}

#startScreen .boardingBody {
  min-width: 0;
  height: 224px;
  justify-content: center;
}

#startScreen .boardingBody h2 {
  min-height: 43px;
  max-height: 43px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#startScreen .boardingCountdown {
  min-height: 30px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

#startScreen .boardingCountdown strong {
  display: inline-block;
  min-width: 58px;
  text-align: left;
}

#startScreen .boardingStats {
  min-height: 32px;
  flex-wrap: nowrap;
  overflow: hidden;
}

#startScreen .boardingStats span {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
}

#startScreen .boardingStats span:nth-child(1) { min-width: 126px; }
#startScreen .boardingStats span:nth-child(2) { min-width: 108px; }
#startScreen .boardingStats span:nth-child(3) { min-width: 74px; }

#startScreen .boardingMeta {
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
}

#startScreen .boardingActions {
  min-height: 42px;
  align-items: center;
}

#startScreen .boardingJoinBtn,
#startScreen .boardingLeaveBtn {
  flex: 0 0 auto;
  min-width: 166px;
  white-space: nowrap;
}

#startScreen .startSupportLine {
  margin-top: 16px;
  padding: 10px 12px !important;
  gap: 14px !important;
  min-height: 54px;
  align-items: center;
  width: min(360px, 100%) !important;
}

#startScreen .startSupportButton,
#startScreen .startInfoButton {
  flex: 0 0 auto;
  white-space: nowrap;
}

#startScreen .livePlayersHud {
  min-width: 204px;
  text-align: center;
}

@media (min-width: 1121px) and (max-height: 780px) {
  #startScreen .startCenterStack {
    min-height: calc(100vh - 56px);
    gap: 14px;
  }
  #startScreen .startJoinPanel {
    min-height: 425px;
    padding: 16px !important;
  }
  #startScreen .boardingCard {
    height: 224px;
    min-height: 224px;
    max-height: 224px;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }
  #startScreen .boardingBody h2 {
    min-height: 36px;
    max-height: 36px;
  }
  #startScreen .boardingMeta {
    min-height: 30px;
    max-height: 30px;
  }
  #startScreen .startSupportLine {
    margin-top: 12px;
    min-height: 48px;
  }
}

@media (max-width: 1120px) {
  #startScreen .startCenterStack {
    min-height: 0;
  }
  #startScreen .startJoinPanel {
    min-height: 0;
  }
  #startScreen .boardingCard {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: auto;
    max-height: none;
  }
  #startScreen .boardingBody h2,
  #startScreen .boardingMeta {
    max-height: none;
  }
  #startScreen .boardingStats {
    flex-wrap: wrap;
  }
  #startScreen .boardingStats span {
    min-width: 0 !important;
  }
  #startScreen .startSupportLine {
    margin-top: 12px;
  }
}

@media (max-width: 760px) {
  #startScreen .boardingCountdown {
    white-space: normal;
  }
  #startScreen .startSupportLine {
    width: 100% !important;
    flex-wrap: wrap;
  }
}

/* ALPHA 1.6ZR · bottom support row spacing guard. */
#startScreen .startSupportLine {
  column-gap: 18px !important;
  row-gap: 8px !important;
}
#startScreen .startSupportButton,
#startScreen .startInfoButton {
  margin: 0 !important;
}


/* ALPHA 1.6ZR · hard support-button geometry reset after removing fixed legacy buttons. */
#startScreen .startSupportLine {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 10px 16px !important;
}
#startScreen .startSupportButton,
#startScreen .startInfoButton {
  position: static !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}


/* ALPHA 1.6ZR · How-to HUD is collapsed by default, still expandable. */
#startScreen .startHowToPanel {
  padding: 0 !important;
  overflow: hidden;
}
#startScreen .startHowToSummary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  user-select: none;
}
#startScreen .startHowToSummary::-webkit-details-marker {
  display: none;
}
#startScreen .startHowToToggle {
  flex: 0 0 auto;
  min-width: 54px;
  text-align: center;
  color: rgba(140,255,190,0.82);
  border: 1px solid rgba(140,255,190,0.18);
  background: rgba(140,255,190,0.055);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
#startScreen .startHowToPanel[open] .startHowToToggle {
  color: rgba(255,220,150,0.86);
  border-color: rgba(255,220,150,0.20);
  background: rgba(255,220,150,0.06);
}
#startScreen .startHowToPanel[open] .startHowToToggle::before {
  content: "Close";
}
#startScreen .startHowToPanel[open] .startHowToToggle {
  font-size: 0;
}
#startScreen .startHowToPanel[open] .startHowToToggle::before {
  font-size: 10px;
}
#startScreen .startHowToContent {
  padding: 0 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.055);
}
#startScreen .startHowToContent p {
  margin: 9px 0 0;
}
#startScreen .startExplainPanel p {
  font-size: 12.5px;
}

/* ALPHA 1.6ZR · remove the last push rebound/spam click lock. Real population/recovery is the only gameplay limiter. */

/* ALPHA 1.6ZR · compact tablet/small-desktop fit after screenshot review. */
@media (max-width: 1120px) and (min-width: 761px) {
  .startLayout {
    inset: 18px 18px 18px 18px;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    grid-template-areas:
      "left center"
      "right center";
    gap: 18px;
    align-items: start;
    overflow-y: auto;
    padding-right: 4px;
  }
  .startLeftStack { grid-area: left; }
  .startRightStack { grid-area: right; }
  .startCenterStack {
    grid-area: center;
    align-self: start;
    padding-top: 0;
    gap: 12px;
  }
  #startScreen .startJoinPanel {
    min-height: 0 !important;
    padding: 12px !important;
  }
  #startScreen .startNameRow {
    gap: 8px;
    margin-bottom: 8px;
  }
  #startScreen #playerNameInput,
  #startScreen #playButton {
    height: 40px;
  }
  #startScreen .startNameError {
    margin-bottom: 8px;
    min-height: 17px;
    line-height: 17px;
  }
  #startScreen .lobbyStatus {
    min-height: 30px;
    line-height: 15px;
    margin: 5px 2px 10px;
    padding: 7px 10px;
  }
  #startScreen .boardingCard {
    grid-template-columns: minmax(145px, 40%) minmax(210px, 1fr) !important;
    gap: 12px !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    padding: 12px !important;
    align-items: stretch;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 186px !important;
    min-height: 186px !important;
    max-height: 186px !important;
  }
  #startScreen .boardingBody h2 {
    font-size: clamp(24px, 3.1vw, 31px) !important;
    min-height: 33px !important;
    max-height: 33px !important;
    margin: 5px 0 7px !important;
  }
  #startScreen .boardingCountdown {
    min-height: 26px !important;
    font-size: 12px;
  }
  #startScreen .boardingCountdown strong {
    min-width: 54px;
    font-size: 24px !important;
  }
  #startScreen .boardingStats {
    min-height: 28px !important;
    margin: 8px 0 7px !important;
    gap: 6px;
    flex-wrap: nowrap !important;
  }
  #startScreen .boardingStats span {
    min-width: 0 !important;
    padding: 5px 7px !important;
    font-size: 10px !important;
  }
  #startScreen .boardingMeta {
    min-height: 28px !important;
    max-height: 28px !important;
    margin-bottom: 8px !important;
    font-size: 11px;
  }
  #startScreen .boardingActions {
    min-height: 36px !important;
  }
  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 36px !important;
    min-width: 136px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }
  #startScreen .startSupportLine {
    margin-top: 10px !important;
    min-height: 52px !important;
    padding: 9px 14px !important;
  }
  #startScreen .startSupportButton,
  #startScreen .startInfoButton {
    height: 32px !important;
  }
  #startScreen .dailyHighscoreList {
    max-height: 210px;
  }
}

/* ALPHA 1.6ZR · remove version clutter from startpage so bottom support/info/live panels never collide visually. */
body.menu-open #versionBadge {
  display: none !important;
}

/* ALPHA 1.6ZR · 800x600 fit: keep live status visible without panels touching. */
@media (max-width: 900px) and (max-height: 650px) and (min-width: 761px) {
  .startLayout {
    inset: 18px 18px 12px 18px;
    gap: 12px 18px;
  }
  .startLeftStack,
  .startRightStack {
    gap: 10px;
  }
  #startScreen .startStatsPanel,
  #startScreen .startHighscorePanel,
  #startScreen .startFriendsPanel,
  #startScreen .startLivePanel {
    padding: 12px 14px;
  }
  #startScreen .startStatsPanel .statRow {
    padding: 4px 0;
    font-size: 12px;
  }
  #startScreen .startHighscorePanel .scoreRow {
    padding: 3px 0;
    font-size: 10.5px;
    line-height: 1.16;
  }
  #startScreen .dailyHighscoreList {
    max-height: 188px;
    overflow: hidden;
  }
  #startScreen .startHowToSummary {
    min-height: 42px;
    padding: 0 14px;
  }
  #startScreen .startLivePanel .livePlayersHud,
  #startScreen .livePlayersHud {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 11px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .startLiveHint {
    font-size: 11px;
    line-height: 1.25;
  }
}


/* ALPHA 1.6ZS · Startpage background UI polish
   Uses the clean generated map background, moves name entry to the right column,
   and retunes panels to a calmer premium parchment/slate style. */
#startScreen {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 244, 219, 0.16), transparent 38%),
    linear-gradient(90deg, rgba(12,17,18,0.64), rgba(247,231,201,0.08) 33%, rgba(247,231,201,0.06) 66%, rgba(12,17,18,0.60)),
    linear-gradient(180deg, rgba(5,8,10,0.06), rgba(4,7,10,0.22)),
    url("assets/startpage_bg_zs.png") center center / cover no-repeat !important;
}

#startScreen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 49%, rgba(248,238,214,0.22), rgba(248,238,214,0.02) 36%, transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18));
  z-index: 0;
}

#startScreen .startLayout {
  z-index: 1;
  grid-template-columns: minmax(225px, 286px) minmax(430px, 1fr) minmax(265px, 342px);
  gap: clamp(20px, 2.35vw, 34px);
}

#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startExplainPanel,
#startScreen .startLivePanel,
#startScreen .startNamePanel,
#startScreen .startJoinPanel,
#startScreen .startSupportLine {
  background: linear-gradient(145deg, rgba(20,27,28,0.70), rgba(36,35,30,0.48)) !important;
  border: 1px solid rgba(226, 196, 136, 0.24) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.075) !important;
  backdrop-filter: blur(18px) saturate(1.06);
  color: rgba(255,248,232,0.90);
}

#startScreen .startJoinPanel {
  background: linear-gradient(145deg, rgba(16,22,24,0.78), rgba(42,39,31,0.58)) !important;
  border-color: rgba(233,200,137,0.30) !important;
}

#startScreen .boardingCard {
  background: rgba(9, 15, 18, 0.52) !important;
  border-color: rgba(233,200,137,0.25) !important;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle,
#startScreen .boardingEyebrow,
#startScreen .startJoinTopline {
  color: rgba(238, 205, 142, 0.94) !important;
  letter-spacing: 1.75px;
}

#startScreen .statRow,
#startScreen .scoreRow,
#startScreen .startExplainPanel p,
#startScreen .startLiveHint,
#startScreen .boardingMeta,
#startScreen .boardingCountdown,
#startScreen .lobbyStatus,
#startScreen .startJoinHint {
  color: rgba(255,250,236,0.70) !important;
}

#startScreen .statRow strong,
#startScreen .scoreRow strong,
#startScreen .boardingCountdown strong,
#startScreen .livePlayersHud {
  color: rgba(164, 255, 195, 0.96) !important;
}

#startScreen .startNamePanel {
  padding: 16px 17px !important;
  border-radius: 20px;
}

#startScreen .startNamePanel .startNameRow {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 11px 0 8px;
}

#startScreen .startNamePanel #playerNameInput,
#startScreen .startNamePanel #playButton {
  height: 42px;
  width: 100%;
}

#startScreen .startNamePanel #playerNameInput {
  background: rgba(255, 248, 226, 0.10);
  border: 1px solid rgba(244, 213, 154, 0.28);
  color: rgba(255, 250, 236, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

#startScreen .startNamePanel #playerNameInput::placeholder {
  color: rgba(255,245,225,0.48);
}

#startScreen .startNamePanel #playButton,
#startScreen .boardingJoinBtn {
  background: linear-gradient(180deg, rgba(224,190,118,0.25), rgba(176,137,72,0.16));
  border: 1px solid rgba(237,203,139,0.36);
  color: rgba(255,245,225,0.96);
}

#startScreen .startNamePanel #playButton:hover:not(:disabled),
#startScreen .boardingJoinBtn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(234,202,136,0.34), rgba(190,148,78,0.22));
}

#startScreen .startNamePanel #playButton:disabled {
  opacity: .52;
}

#startScreen .startNamePanel #startNameError {
  display: block;
  min-height: 18px;
  margin: 0;
  font-size: 11px;
  color: rgba(255,202,166,0.80) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#startScreen .startNamePanel #startNameError.ok {
  color: rgba(164,255,195,0.88) !important;
}

#startScreen .startJoinHint {
  min-height: 18px;
  margin: 0 2px 10px;
  font-size: 12px;
}

#startScreen .startSupportLine {
  background: rgba(18,24,25,0.54) !important;
}

#startScreen .startSupportButton {
  background: rgba(255,118,150,0.12) !important;
  border-color: rgba(255,167,186,0.24) !important;
}

#startScreen .startInfoButton {
  background: rgba(255, 248, 226, 0.07) !important;
  border-color: rgba(244, 213, 154, 0.16) !important;
}

#startScreen .startHowToSummary {
  color: rgba(255,248,232,0.90);
}

#startScreen .startHowToToggle {
  color: rgba(164,255,195,0.88) !important;
  border-color: rgba(164,255,195,0.22) !important;
  background: rgba(164,255,195,0.06) !important;
}

@media (min-width: 1121px) and (max-height: 780px) {
  #startScreen .startNamePanel {
    padding: 13px 15px !important;
  }
  #startScreen .startNamePanel .startNameRow {
    margin: 9px 0 7px;
  }
}

@media (max-width: 1120px) {
  #startScreen .startLayout {
    grid-template-columns: minmax(210px, 255px) minmax(390px, 1fr);
    grid-template-areas:
      "left center"
      "right center";
  }
}

@media (max-width: 760px) {
  #startScreen .startNamePanel .startNameRow {
    flex-direction: column;
  }
}


/* ALPHA 1.6ZS · screenshot adjustment pass
   Keep live numbers stable, prevent stat-pill clipping, and keep compact embeds calm. */
#startScreen .boardingStats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px !important;
  overflow: visible !important;
  min-height: 30px;
}
#startScreen .boardingStats span,
#startScreen .boardingStats span:nth-child(1),
#startScreen .boardingStats span:nth-child(2),
#startScreen .boardingStats span:nth-child(3) {
  min-width: 0 !important;
  width: auto !important;
  padding: 6px 5px !important;
  font-size: 11px !important;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1120px) {
  #startScreen .startLivePanel {
    display: none !important;
  }
  #startScreen .startRightStack {
    gap: 10px;
  }
  #startScreen .startNamePanel {
    padding: 12px 14px !important;
  }
  #startScreen .startNamePanel .startNameRow {
    margin: 8px 0 6px;
  }
  #startScreen .startNamePanel #playerNameInput,
  #startScreen .startNamePanel #playButton {
    height: 40px;
  }
}

@media (max-width: 900px) {
  #startScreen .startLeftStack {
    gap: 9px;
  }
  #startScreen .startStatsPanel,
  #startScreen .startHighscorePanel,
  #startScreen .startNamePanel {
    padding: 10px 13px !important;
  }
  #startScreen .startSidePanel .statRow,
  #startScreen .scoreRow {
    padding: 4px 0 !important;
  }
  #startScreen .startHowToSummary {
    min-height: 42px;
  }
}

/* ALPHA 1.6ZS · name panel width containment after 800px screenshot check. */
#startScreen .startNamePanel #playerNameInput,
#startScreen .startNamePanel #playButton {
  box-sizing: border-box !important;
  max-width: 100% !important;
}


/* ALPHA 1.6ZT · Startscreen join cleanup
   Name entry lives inside Join Next Game, right-side name HUD removed, info bars removed,
   and the center card sits lower/smaller so the background SLOW TERRITORIES logo stays visible. */
#startScreen .startJoinHint,
#startScreen #lobbyStatus,
#startScreen .lobbyStatus,
#startScreen .startNamePanel,
#startScreen #playButton {
  display: none !important;
}

#startScreen .startLayout {
  grid-template-columns: minmax(220px, 286px) minmax(420px, 600px) minmax(250px, 318px) !important;
  align-items: start !important;
}

#startScreen .startCenterStack {
  padding-top: clamp(150px, 22vh, 188px) !important;
  align-items: center !important;
  gap: 12px !important;
}

#startScreen .startJoinPanel {
  width: min(600px, 100%) !important;
  min-height: 0 !important;
  padding: 14px !important;
  border-radius: 22px !important;
}

#startScreen .startJoinTopline {
  margin: 0 2px 10px !important;
  min-height: 16px !important;
}

#startScreen .startInlineNameField {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: 40px 18px;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  margin: 0 0 10px;
}

#startScreen .startInlineNameField label {
  color: rgba(238, 205, 142, 0.88);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.45px;
  text-transform: uppercase;
  white-space: nowrap;
}

#startScreen .startInlineNameField #playerNameInput {
  height: 40px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 248, 226, 0.105) !important;
  border: 1px solid rgba(244, 213, 154, 0.30) !important;
  color: rgba(255, 250, 236, 0.96) !important;
  border-radius: 14px !important;
  padding: 0 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

#startScreen .startInlineNameField #playerNameInput::placeholder {
  color: rgba(255,245,225,0.48) !important;
}

#startScreen .startInlineNameField #startNameError {
  grid-column: 2;
  min-height: 18px;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 18px;
  color: rgba(255,202,166,0.86) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#startScreen .startInlineNameField #startNameError.ok {
  color: rgba(164,255,195,0.88) !important;
}

#startScreen .boardingCard {
  grid-template-columns: minmax(150px, 38%) minmax(230px, 1fr) !important;
  min-height: 210px !important;
  height: 210px !important;
  max-height: 210px !important;
  padding: 12px !important;
  gap: 14px !important;
  border-radius: 22px !important;
}

#startScreen .boardingPreview,
#startScreen .boardingBody {
  height: 186px !important;
  min-height: 186px !important;
  max-height: 186px !important;
}

#startScreen .boardingBody h2 {
  font-size: clamp(23px, 2.8vw, 32px) !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 5px 0 7px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#startScreen .boardingCountdown {
  min-height: 26px !important;
  font-size: 12px !important;
}

#startScreen .boardingCountdown strong {
  min-width: 54px;
  font-size: 24px !important;
}

#startScreen .boardingStats {
  margin: 8px 0 7px !important;
  min-height: 28px !important;
}

#startScreen .boardingMeta {
  display: none !important;
}

#startScreen .boardingActions {
  min-height: 38px !important;
}

#startScreen .boardingJoinBtn,
#startScreen .boardingLeaveBtn {
  height: 38px !important;
  min-width: 154px !important;
  padding: 0 16px !important;
}

#startScreen .startSupportLine {
  margin-top: 4px !important;
  min-height: 46px !important;
  width: min(340px, 100%) !important;
  padding: 8px 12px !important;
}

#startScreen .startRightStack {
  padding-top: clamp(172px, 24vh, 210px) !important;
}

@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startLayout {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important;
  }
  #startScreen .startCenterStack {
    padding-top: clamp(115px, 17vh, 140px) !important;
  }
  #startScreen .startRightStack {
    padding-top: 0 !important;
  }
  #startScreen .startInlineNameField {
    grid-template-columns: 1fr;
    grid-template-rows: auto 38px 18px;
  }
  #startScreen .startInlineNameField #startNameError {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  #startScreen .startCenterStack {
    padding-top: 96px !important;
  }
  #startScreen .startInlineNameField {
    grid-template-columns: 1fr;
    grid-template-rows: auto 40px 18px;
  }
  #startScreen .startInlineNameField #startNameError {
    grid-column: 1;
  }
  #startScreen .boardingCard {
    height: auto !important;
    max-height: none !important;
    grid-template-columns: 1fr !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}


/* ALPHA 1.6ZT · final fit pass after browser screenshot check.
   Keep support/info above the cookie bar, shrink the join card, and preserve the top logo space. */
#startScreen .startCenterStack {
  padding-top: clamp(150px, 21vh, 178px) !important;
}
#startScreen .startJoinPanel {
  max-height: none !important;
}
#startScreen .boardingCard {
  min-height: 180px !important;
  height: 180px !important;
  max-height: 180px !important;
  padding: 10px !important;
  gap: 12px !important;
}
#startScreen .boardingPreview,
#startScreen .boardingBody {
  height: 158px !important;
  min-height: 158px !important;
  max-height: 158px !important;
}
#startScreen .boardingPreview {
  min-height: 158px !important;
}
#startScreen .boardingBody h2 {
  font-size: clamp(22px, 2.5vw, 30px) !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 4px 0 5px !important;
}
#startScreen .boardingCountdown {
  min-height: 24px !important;
  margin-top: 0 !important;
}
#startScreen .boardingCountdown strong {
  font-size: 16px !important;
}
#startScreen .boardingStats {
  margin: 6px 0 6px !important;
  min-height: 26px !important;
}
#startScreen .boardingStats span {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
#startScreen .boardingActions {
  min-height: 36px !important;
}
#startScreen .boardingJoinBtn,
#startScreen .boardingLeaveBtn {
  height: 36px !important;
}
#startScreen .startSupportLine {
  margin-top: 4px !important;
  min-height: 44px !important;
  max-height: 42px !important;
  padding: 7px 12px !important;
  align-self: center !important;
}
@media (min-width: 1121px) and (max-height: 780px) {
  #startScreen .startCenterStack {
    padding-top: clamp(136px, 19vh, 160px) !important;
  }
}
@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startCenterStack {
    padding-top: clamp(102px, 15vh, 126px) !important;
  }
  #startScreen .boardingCard {
    min-height: 174px !important;
    height: 174px !important;
    max-height: 174px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 152px !important;
    min-height: 152px !important;
    max-height: 152px !important;
  }
}


/* ALPHA 1.6ZT · logo visibility correction for tablet/small browser widths. */
@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startCenterStack {
    padding-top: clamp(148px, 23vh, 188px) !important;
  }
  #startScreen .startJoinPanel {
    width: min(600px, 100%) !important;
    padding: 12px !important;
  }
  #startScreen .startInlineNameField {
    grid-template-rows: auto 36px 16px !important;
    row-gap: 3px !important;
    margin-bottom: 8px !important;
  }
  #startScreen .startInlineNameField #playerNameInput {
    height: 36px !important;
  }
  #startScreen .startInlineNameField #startNameError {
    min-height: 16px !important;
    line-height: 16px !important;
  }
  #startScreen .boardingCard {
    min-height: 148px !important;
    height: 148px !important;
    max-height: 148px !important;
    padding: 9px !important;
    gap: 8px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 130px !important;
    min-height: 130px !important;
    max-height: 130px !important;
  }
  #startScreen .boardingEyebrow {
    font-size: 9px !important;
  }
  #startScreen .boardingBody h2 {
    font-size: clamp(20px, 2.6vw, 27px) !important;
    min-height: 27px !important;
    max-height: 27px !important;
    margin: 3px 0 4px !important;
  }
  #startScreen .boardingCountdown {
    min-height: 22px !important;
    font-size: 11px !important;
  }
  #startScreen .boardingCountdown strong {
    font-size: 20px !important;
  }
  #startScreen .boardingStats {
    min-height: 24px !important;
    margin: 4px 0 5px !important;
    gap: 5px !important;
  }
  #startScreen .boardingStats span {
    padding: 4px 5px !important;
    font-size: 9.5px !important;
  }
  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 32px !important;
    min-width: 130px !important;
    font-size: 10.5px !important;
  }
  #startScreen .startSupportLine {
    min-height: 42px !important;
    max-height: 46px !important;
    padding: 6px 10px !important;
  }
}


/* ALPHA 1.6ZW · live lobby roster + lifetime highscore +  */
#startScreen .livePlayersExpanded {
  border-radius: 18px !important;
  padding: 10px !important;
  background: rgba(6, 18, 16, 0.58) !important;
  border: 1px solid rgba(134, 255, 190, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 42px rgba(0,0,0,0.24) !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#startScreen .livePlayersSummary {
  color: rgba(164, 255, 195, 0.96);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.15px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
#startScreen .livePlayersList {
  display: grid;
  gap: 5px;
  max-height: min(320px, calc(100vh - 190px));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  overscroll-behavior: contain;
}
#startScreen .livePlayersList.empty {
  color: rgba(255,250,236,0.52);
  font-size: 12px;
  line-height: 1.35;
}
#startScreen .livePlayerRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.055);
}
#startScreen .livePlayerName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,250,236,0.90);
  font-size: 12px;
  font-weight: 820;
}
#startScreen .livePlayerMeta {
  color: rgba(164,255,195,0.76);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: none;
  white-space: nowrap;
}
#startScreen .scoreRow strong {
  white-space: nowrap;
  font-size: 10.5px;
}
#startScreen .startLiveHint {
  display: none !important;
}
@media (max-height: 780px) {
  #startScreen .livePlayersList {
    max-height: min(190px, calc(100vh - 170px));
  }
  #startScreen .livePlayerRow {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

/* ALPHA 1.6ZW · keep the expanded live roster visible on the start screen instead of hiding the one thing now made useful. */
@media (max-width: 1120px) {
  #startScreen .startLivePanel {
    display: block !important;
  }
}

/* ALPHA 1.6ZX · Start HUD position fix
   - Live Server roster is pinned hard into the top-right start corner.
   - How-to-Play is gone from the start screen.
   - Join Next Game sits about 2cm / 76px higher on desktop-sized views. */
#startScreen .startHowToPanel,
#startScreen #startHowToPanel,
#startScreen #startTagline {
  display: none !important;
}

#startScreen .startLayout {
  position: absolute !important;
}

#startScreen .startRightStack {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: min(318px, calc(100vw - 48px)) !important;
  max-width: 318px !important;
  padding-top: 0 !important;
  gap: 0 !important;
  z-index: 5 !important;
  align-self: start !important;
}

#startScreen .startLivePanel {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 13px !important;
  border-radius: 19px !important;
}

#startScreen .startLivePanel .startPanelTitle {
  margin-bottom: 8px !important;
}

#startScreen .startLivePanel .livePlayersHud,
#startScreen .livePlayersExpanded {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (min-width: 1121px) {
  #startScreen .startCenterStack {
    padding-top: clamp(74px, calc(21vh - 76px), 102px) !important;
  }
}

@media (min-width: 1121px) and (max-height: 780px) {
  #startScreen .startCenterStack {
    padding-top: clamp(60px, calc(19vh - 76px), 84px) !important;
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startRightStack {
    top: 0 !important;
    right: 0 !important;
    width: min(286px, calc(100vw - 36px)) !important;
    max-width: 286px !important;
  }
  #startScreen .startCenterStack {
    padding-top: clamp(78px, calc(23vh - 76px), 112px) !important;
  }
}

@media (max-width: 760px) {
  #startScreen .startRightStack {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    order: 2 !important;
  }
  #startScreen .startCenterStack {
    padding-top: 74px !important;
  }
  #startScreen .startLivePanel {
    padding: 11px 12px !important;
  }
}

/* ALPHA 1.6ZX · browser-check correction: actual flex/grid alignment and box sizing. */
#startScreen .startCenterStack {
  align-self: start !important;
}
#startScreen .startLivePanel {
  box-sizing: border-box !important;
}
@media (min-width: 1121px) {
  #startScreen .startRightStack {
    top: -16px !important;
    right: -22px !important;
  }
}
@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startRightStack {
    top: -8px !important;
    right: -8px !important;
  }
}

/* ALPHA 1.6ZX · final visual lock after browser metrics. */
#startScreen .startCenterStack {
  min-height: 0 !important;
  justify-content: flex-start !important;
}
#startScreen .startRightStack {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

/* ALPHA 1.6ZX · compact top-right live roster on tablet/small desktop so it does not cover Join Next Game. */
@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startLivePanel {
    padding: 5px 8px !important;
  }
  #startScreen .startLivePanel .startPanelTitle {
    margin-bottom: 3px !important;
    font-size: 9px !important;
    line-height: 11px !important;
  }
  #startScreen .livePlayersExpanded {
    padding: 6px !important;
    border-radius: 14px !important;
  }
  #startScreen .livePlayersSummary {
    font-size: 9.5px !important;
    line-height: 12px !important;
    margin-bottom: 4px !important;
    letter-spacing: .75px !important;
  }
  #startScreen .livePlayersList {
    gap: 3px !important;
    max-height: min(150px, calc(100vh - 162px)) !important;
  }
  #startScreen .livePlayerRow {
    padding: 3px 6px !important;
    border-radius: 9px !important;
  }
  #startScreen .livePlayerName {
    font-size: 10.5px !important;
  }
  #startScreen .livePlayerMeta {
    font-size: 9px !important;
  }
}


/* ALPHA 1.6ZY · Startscreen logo visibility fix
   Visual priority: keep the SLOW TERRITORIES logo/text in the background readable.
   The join card is pushed below the logo-safe zone and made more compact instead of
   parking a giant glass rectangle over the brand mark like a bureaucratic eclipse. */
#startScreen::before {
  background:
    radial-gradient(ellipse at 50% 19%, rgba(255,248,226,0.10), rgba(255,248,226,0.025) 28%, transparent 52%),
    linear-gradient(180deg, rgba(0,0,0,0.015), rgba(0,0,0,0.20)) !important;
}

@media (min-width: 1121px) {
  #startScreen .startLayout {
    inset: 24px 30px 24px 30px !important;
    grid-template-columns: minmax(220px, 286px) minmax(420px, 560px) minmax(250px, 318px) !important;
    justify-content: space-between !important;
    align-items: start !important;
  }

  #startScreen .startCenterStack {
    padding-top: clamp(270px, 31vh, 330px) !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  #startScreen .startJoinPanel {
    width: min(560px, 100%) !important;
    padding: 11px 13px !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(16,22,24,0.68), rgba(42,39,31,0.46)) !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  }

  #startScreen .startJoinTopline {
    margin: 0 2px 7px !important;
    min-height: 14px !important;
    font-size: 10px !important;
    line-height: 14px !important;
  }

  #startScreen .startInlineNameField {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-rows: 34px 14px !important;
    column-gap: 9px !important;
    row-gap: 3px !important;
    margin: 0 0 7px !important;
  }

  #startScreen .startInlineNameField label {
    font-size: 9.5px !important;
    letter-spacing: 1.25px !important;
  }

  #startScreen .startInlineNameField #playerNameInput {
    height: 34px !important;
    border-radius: 12px !important;
    padding: 0 11px !important;
  }

  #startScreen .startInlineNameField #startNameError {
    min-height: 14px !important;
    line-height: 14px !important;
    font-size: 10px !important;
  }

  #startScreen .boardingCard {
    grid-template-columns: minmax(144px, 37%) minmax(0, 1fr) !important;
    min-height: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
    padding: 9px !important;
    gap: 8px !important;
    border-radius: 19px !important;
  }

  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
  }

  #startScreen .boardingPreview {
    border-radius: 15px !important;
  }

  #startScreen .boardingMapBadge {
    left: 9px !important;
    top: 9px !important;
    max-width: calc(100% - 18px) !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
  }

  #startScreen .boardingPulse {
    width: 46px !important;
    height: 46px !important;
    right: 22px !important;
    bottom: 20px !important;
  }

  #startScreen .boardingEyebrow {
    font-size: 9px !important;
    line-height: 11px !important;
    letter-spacing: 1.65px !important;
  }

  #startScreen .boardingBody h2 {
    font-size: clamp(21px, 2.05vw, 28px) !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 2px 0 3px !important;
  }

  #startScreen .boardingCountdown {
    min-height: 20px !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }

  #startScreen .boardingCountdown strong {
    font-size: 16px !important;
    min-width: 46px !important;
  }

  #startScreen .boardingStats {
    margin: 4px 0 5px !important;
    min-height: 23px !important;
    gap: 5px !important;
  }

  #startScreen .boardingStats span {
    padding: 4px 4px !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
  }

  #startScreen .boardingActions {
    min-height: 31px !important;
  }

  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 31px !important;
    min-width: 140px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  #startScreen .startSupportLine {
    margin-top: 2px !important;
    min-height: 40px !important;
    max-height: 44px !important;
    width: min(320px, 100%) !important;
    padding: 6px 10px !important;
    background: rgba(18,24,25,0.46) !important;
  }

  #startScreen .startSupportButton,
  #startScreen .startInfoButton {
    height: 30px !important;
    padding: 0 14px !important;
    font-size: 10.5px !important;
  }

  #startScreen .startRightStack {
    top: -18px !important;
    right: -24px !important;
  }
}

@media (min-width: 1121px) and (max-height: 820px) {
  #startScreen .startCenterStack {
    padding-top: clamp(252px, 34vh, 284px) !important;
  }
  #startScreen .startJoinPanel {
    width: min(548px, 100%) !important;
  }
  #startScreen .boardingCard {
    min-height: 140px !important;
    height: 140px !important;
    max-height: 140px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
  }
  #startScreen .boardingStats span {
    font-size: 9px !important;
  }
}

@media (min-width: 1121px) and (min-height: 900px) {
  #startScreen .startCenterStack {
    padding-top: clamp(314px, 32vh, 350px) !important;
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startCenterStack {
    padding-top: clamp(230px, 37vh, 270px) !important;
    gap: 8px !important;
  }
  #startScreen .startJoinPanel {
    width: min(510px, 100%) !important;
    padding: 10px 11px !important;
    background: linear-gradient(145deg, rgba(16,22,24,0.68), rgba(42,39,31,0.46)) !important;
  }
  #startScreen .boardingCard {
    min-height: 132px !important;
    height: 132px !important;
    max-height: 132px !important;
    grid-template-columns: minmax(128px, 36%) minmax(0, 1fr) !important;
    padding: 8px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 116px !important;
    min-height: 116px !important;
    max-height: 116px !important;
  }
}

@media (max-width: 760px) {
  #startScreen .startCenterStack {
    padding-top: 162px !important;
  }
}

/* ALPHA 1.6ZY · large-screen corner lock.
   Do not let the 1420px layout cap pull the live panel away from the real browser edge. */
#startScreen .startLayout {
  max-width: none !important;
  margin: 0 !important;
}

/* ALPHA 1.6ZY · compact tablet fit so support/info does not disappear under the cookie notice. */
@media (max-width: 900px) and (min-width: 761px) {
  #startScreen .startCenterStack {
    padding-top: 214px !important;
    gap: 6px !important;
  }
  #startScreen .startJoinPanel {
    width: min(500px, calc(100vw - 286px)) !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
  }
  #startScreen .startJoinTopline {
    margin-bottom: 5px !important;
    font-size: 9px !important;
  }
  #startScreen .startInlineNameField {
    grid-template-rows: auto 30px 12px !important;
    row-gap: 2px !important;
    margin-bottom: 5px !important;
  }
  #startScreen .startInlineNameField label {
    font-size: 9px !important;
  }
  #startScreen .startInlineNameField #playerNameInput {
    height: 30px !important;
  }
  #startScreen .startInlineNameField #startNameError {
    min-height: 12px !important;
    line-height: 12px !important;
    font-size: 9px !important;
  }
  #startScreen .boardingCard {
    min-height: 116px !important;
    height: 116px !important;
    max-height: 116px !important;
    grid-template-columns: minmax(110px, 34%) minmax(0, 1fr) !important;
    padding: 7px !important;
    gap: 8px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 102px !important;
    min-height: 102px !important;
    max-height: 102px !important;
  }
  #startScreen .boardingMapBadge {
    font-size: 9px !important;
    padding: 4px 6px !important;
  }
  #startScreen .boardingPulse {
    width: 38px !important;
    height: 38px !important;
    right: 16px !important;
    bottom: 15px !important;
  }
  #startScreen .boardingEyebrow {
    font-size: 8.5px !important;
    line-height: 10px !important;
  }
  #startScreen .boardingBody h2 {
    font-size: 16px !important;
    min-height: 23px !important;
    max-height: 23px !important;
    margin: 1px 0 2px !important;
  }
  #startScreen .boardingCountdown {
    min-height: 17px !important;
    font-size: 10px !important;
    line-height: 16px !important;
  }
  #startScreen .boardingCountdown strong {
    font-size: 17px !important;
    min-width: 40px !important;
  }
  #startScreen .boardingStats {
    min-height: 20px !important;
    margin: 2px 0 3px !important;
    gap: 4px !important;
  }
  #startScreen .boardingStats span {
    padding: 3px 4px !important;
    font-size: 8.5px !important;
  }
  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 27px !important;
    min-width: 122px !important;
    font-size: 9.5px !important;
  }
  #startScreen .startSupportLine {
    min-height: 36px !important;
    max-height: 38px !important;
    padding: 5px 8px !important;
    width: min(312px, calc(100vw - 330px)) !important;
  }
  #startScreen .startSupportButton,
  #startScreen .startInfoButton {
    height: 27px !important;
    padding: 0 10px !important;
    font-size: 9.5px !important;
  }
}

/* ALPHA 1.6ZY · final 800px browser fit: keep support/info above cookie bar. */
@media (max-width: 900px) and (min-width: 761px) and (max-height: 650px) {
  #startScreen .startCenterStack {
    padding-top: 194px !important;
  }
  #startScreen .startJoinPanel {
    padding: 7px 9px !important;
  }
  #startScreen .boardingCard {
    min-height: 106px !important;
    height: 106px !important;
    max-height: 106px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingBody {
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
  }
  #startScreen .boardingBody h2 {
    font-size: 20px !important;
    min-height: 21px !important;
    max-height: 21px !important;
  }
  #startScreen .boardingCountdown strong {
    font-size: 16px !important;
  }
  #startScreen .boardingStats span {
    padding: 2px 4px !important;
    font-size: 8px !important;
  }
  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 25px !important;
  }
  #startScreen .startSupportLine {
    min-height: 34px !important;
    max-height: 36px !important;
    padding: 4px 8px !important;
  }
}


/* ALPHA 1.6ZZ · Live Server HUD top alignment fix
   Align the Live Server panel top edge with the Your Record panel top edge.
   Desktop short-height layouts remove the left-stack padding, so the right stack must do the same. */
@media (min-width: 1121px) {
  #startScreen .startRightStack {
    top: 16px !important;
  }
}
@media (min-width: 1121px) and (max-height: 780px) {
  #startScreen .startRightStack {
    top: 0 !important;
  }
}
@media (max-width: 1120px) and (min-width: 761px) {
  #startScreen .startRightStack {
    top: 16px !important;
  }
}

/* Newgrounds clean distribution: embedded media removed. */


/* ALPHA 1.6ZZY-NG · online clean internal info overlay */
.infoOverlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}
.infoOverlay.hidden { display: none !important; }
.infoOverlayCard {
  width: min(560px, 92vw);
  border: 1px solid rgba(120, 242, 164, 0.24);
  border-radius: 22px;
  padding: 24px;
  background: rgba(5, 10, 14, 0.94);
  color: rgba(245, 250, 255, 0.86);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  line-height: 1.45;
}
.infoOverlayCard h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.infoOverlayCard p { margin: 10px 0; }
.infoOverlayClose {
  float: right;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: white;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

/* ALPHA 1.6ZZZB-NG · Startscreen tactical control-panel redesign
   Visual-only pass based on concept 1: same layout and functions, no media/tracking changes. */
:root {
  --st-panel-bg: rgba(7, 13, 18, 0.88);
  --st-panel-bg-2: rgba(12, 21, 28, 0.78);
  --st-panel-border: rgba(126, 161, 183, 0.30);
  --st-panel-border-soft: rgba(126, 161, 183, 0.18);
  --st-blue: rgba(86, 148, 187, 0.92);
  --st-blue-soft: rgba(86, 148, 187, 0.18);
  --st-blue-dim: rgba(130, 178, 205, 0.68);
  --st-text: rgba(230, 239, 244, 0.94);
  --st-text-soft: rgba(189, 205, 214, 0.70);
  --st-green: rgba(132, 220, 166, 0.92);
  --st-warning: rgba(226, 172, 100, 0.92);
}

#startScreen {
  background:
    linear-gradient(90deg, rgba(3,7,10,0.84), rgba(5,11,15,0.42) 34%, rgba(5,11,15,0.40) 66%, rgba(3,7,10,0.86)),
    radial-gradient(circle at 50% 18%, rgba(84,126,151,0.14), transparent 42%),
    linear-gradient(180deg, rgba(2,6,8,0.16), rgba(2,6,8,0.50)),
    url("assets/startpage_bg_zs.png") center center / cover no-repeat !important;
}

#startScreen::before {
  background:
    linear-gradient(90deg, rgba(6,14,19,0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6,14,19,0.26) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 20%, rgba(185,216,232,0.08), transparent 52%),
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.22)) !important;
  background-size: 38px 38px, 38px 38px, auto, auto !important;
  opacity: 1;
}

#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startLivePanel,
#startScreen .startJoinPanel,
#startScreen .startSupportLine {
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.00) 42%),
    linear-gradient(145deg, var(--st-panel-bg), var(--st-panel-bg-2)) !important;
  border: 1px solid var(--st-panel-border) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.24) !important;
  backdrop-filter: blur(10px) saturate(0.92) !important;
  color: var(--st-text) !important;
}

#startScreen .startSidePanel::before,
#startScreen .friendsPanel::before,
#startScreen .startLivePanel::before,
#startScreen .startJoinPanel::before,
#startScreen .startSupportLine::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141,190,217,0.42), transparent);
  pointer-events: none;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle,
#startScreen .boardingEyebrow,
#startScreen .startJoinTopline {
  color: var(--st-blue-dim) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 1.7px !important;
  text-transform: uppercase !important;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle {
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(126,161,183,0.16) !important;
}

#startScreen .startJoinPanel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00) 36%),
    linear-gradient(145deg, rgba(8, 15, 21, 0.94), rgba(14, 24, 31, 0.86)) !important;
  border-color: rgba(139, 180, 207, 0.38) !important;
}

#startScreen .startJoinTopline {
  border-bottom: 1px solid rgba(126,161,183,0.16) !important;
  padding-bottom: 7px !important;
}

#startScreen .startJoinTopline span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(86,148,187,0.12);
  vertical-align: 1px;
}

#startScreen .startJoinTopline strong {
  color: var(--st-green) !important;
  background: rgba(132,220,166,0.08) !important;
  border: 1px solid rgba(132,220,166,0.20) !important;
  border-radius: 999px !important;
  padding: 4px 8px !important;
  letter-spacing: 1.2px !important;
}

#startScreen .startInlineNameField label {
  color: var(--st-text-soft) !important;
  letter-spacing: 1.45px !important;
}

#startScreen .startInlineNameField #playerNameInput {
  background: rgba(2, 8, 12, 0.76) !important;
  border: 1px solid rgba(133, 170, 192, 0.34) !important;
  color: var(--st-text) !important;
  border-radius: 8px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 0 0 1px rgba(0,0,0,0.18) !important;
}

#startScreen .startInlineNameField #playerNameInput:focus {
  outline: none !important;
  border-color: rgba(103, 172, 215, 0.74) !important;
  box-shadow: 0 0 0 3px rgba(77, 147, 190, 0.13), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

#startScreen .startInlineNameField #playerNameInput::placeholder {
  color: rgba(189, 205, 214, 0.43) !important;
}

#startScreen .boardingCard {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.00) 45%),
    rgba(5, 12, 17, 0.72) !important;
  border: 1px solid rgba(126, 161, 183, 0.25) !important;
  border-radius: 11px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

#startScreen .boardingPreview {
  border-radius: 9px !important;
  border: 1px solid rgba(126, 161, 183, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.24) !important;
  filter: saturate(.82) contrast(1.02) brightness(.86);
}

#startScreen .boardingMapBadge {
  border-radius: 5px !important;
  background: rgba(4, 10, 14, 0.82) !important;
  border: 1px solid rgba(126, 161, 183, 0.28) !important;
  color: rgba(218, 232, 240, 0.88) !important;
  letter-spacing: 1.2px !important;
}

#startScreen .boardingPulse {
  border-color: rgba(93, 164, 208, 0.42) !important;
  background: rgba(93, 164, 208, 0.12) !important;
  box-shadow: none !important;
}

#startScreen .boardingBody h2 {
  color: rgba(236, 244, 248, 0.96) !important;
  font-weight: 900 !important;
  letter-spacing: 0.4px !important;
  text-shadow: none !important;
}

#startScreen .boardingCountdown,
#startScreen .boardingMeta,
#startScreen .statRow,
#startScreen .scoreRow,
#startScreen .livePlayersList.empty,
#startScreen .friendsList.empty {
  color: var(--st-text-soft) !important;
}

#startScreen .boardingCountdown strong,
#startScreen .statRow strong,
#startScreen .scoreRow strong {
  color: var(--st-text) !important;
  font-variant-numeric: tabular-nums !important;
}

#startScreen .boardingStats span {
  background: rgba(126,161,183,0.075) !important;
  border: 1px solid rgba(126,161,183,0.15) !important;
  border-radius: 6px !important;
  color: rgba(214, 228, 236, 0.82) !important;
}

#startScreen .boardingJoinBtn,
#startScreen .boardingLeaveBtn,
#startScreen .startInfoButton {
  border-radius: 7px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 1.15px !important;
  text-transform: uppercase !important;
  font-weight: 850 !important;
}

#startScreen .boardingJoinBtn {
  background: linear-gradient(180deg, rgba(72, 132, 171, 0.96), rgba(43, 89, 119, 0.96)) !important;
  border: 1px solid rgba(136, 190, 222, 0.48) !important;
  color: rgba(246, 252, 255, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 9px 20px rgba(0,0,0,0.22) !important;
}

#startScreen .boardingJoinBtn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(83, 151, 194, 0.98), rgba(49, 103, 137, 0.98)) !important;
  transform: translateY(-1px);
}

#startScreen .boardingJoinBtn:disabled {
  opacity: 0.55 !important;
  filter: grayscale(0.32);
}

#startScreen .boardingLeaveBtn,
#startScreen .startInfoButton {
  background: rgba(126,161,183,0.075) !important;
  border: 1px solid rgba(126,161,183,0.20) !important;
  color: rgba(218,232,240,0.86) !important;
}

#startScreen .startInfoButton:hover {
  background: rgba(126,161,183,0.13) !important;
  border-color: rgba(126,161,183,0.34) !important;
}

#startScreen .startSupportLine {
  background: rgba(7, 13, 18, 0.72) !important;
}

#startScreen .livePlayersExpanded {
  background: rgba(3, 10, 14, 0.62) !important;
  border: 1px solid rgba(126, 161, 183, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035) !important;
  border-radius: 9px !important;
}

#startScreen .livePlayersSummary {
  color: var(--st-green) !important;
  border-bottom: 1px solid rgba(126,161,183,0.13) !important;
  padding-bottom: 7px !important;
  margin-bottom: 7px !important;
}

#startScreen .livePlayerRow {
  background: rgba(126,161,183,0.06) !important;
  border: 1px solid rgba(126,161,183,0.12) !important;
  border-radius: 7px !important;
}

#startScreen .livePlayerName {
  color: rgba(232,241,246,0.90) !important;
}

#startScreen .livePlayerMeta {
  color: rgba(138, 186, 213, 0.78) !important;
}

#startScreen .dailyHighscoreList::-webkit-scrollbar,
#startScreen .livePlayersList::-webkit-scrollbar {
  width: 8px;
}
#startScreen .dailyHighscoreList::-webkit-scrollbar-thumb,
#startScreen .livePlayersList::-webkit-scrollbar-thumb {
  background: rgba(126,161,183,0.24);
  border-radius: 999px;
}
#startScreen .dailyHighscoreList::-webkit-scrollbar-track,
#startScreen .livePlayersList::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.14);
}

.infoOverlayCard {
  border-radius: 12px !important;
  border-color: rgba(126, 161, 183, 0.28) !important;
  background: linear-gradient(145deg, rgba(7,13,18,0.96), rgba(12,22,30,0.94)) !important;
  color: var(--st-text) !important;
}
.infoOverlayCard h2 { color: rgba(235,244,249,0.96) !important; }
.infoOverlayClose {
  border-radius: 7px !important;
  border-color: rgba(126,161,183,0.22) !important;
  background: rgba(126,161,183,0.08) !important;
}


/* ALPHA 1.6ZZZC-NG · Startscreen HUD cleanup: neutral labels and no map-preview pulse marker. */
#startScreen .boardingPulse {
  display: none !important;
}


/* ALPHA 1.6ZZZD-NG · minimal map lobby redesign
   Visual-only redesign based on the provided reference image. Keeps all functions intact. */
#startScreen {
  background:
    linear-gradient(90deg, rgba(2,6,7,0.94) 0%, rgba(3,8,9,0.77) 25%, rgba(3,8,9,0.30) 55%, rgba(3,8,9,0.74) 100%),
    radial-gradient(circle at 68% 35%, rgba(166,196,138,0.14), transparent 35%),
    linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.76)),
    url("assets/startpage_bg_zs.png") center center / cover no-repeat !important;
  font-family: Inter, "Arial Narrow", Arial, Helvetica, sans-serif !important;
}

#startScreen::before {
  background:
    radial-gradient(ellipse at 66% 36%, rgba(181,212,144,0.10), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.20), transparent 40%, rgba(0,0,0,.20)),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.42)) !important;
  background-size: auto !important;
}

#startScreen .startLayout {
  position: absolute !important;
  inset: 0 !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: none;
}

#startScreen .startLeftStack,
#startScreen .startCenterStack,
#startScreen .startRightStack,
#startScreen .startSupportLine {
  pointer-events: auto;
}

#startScreen .startLayout::before {
  content: "SLOW\A TERRITORIES";
  position: absolute;
  left: clamp(18px, 3.4vw, 48px);
  top: clamp(54px, 9.5vh, 88px);
  white-space: pre-line;
  z-index: 1;
  color: rgba(248,248,238,0.96);
  font-family: Impact, "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(56px, 8.1vw, 128px);
  line-height: .82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0 5px 34px rgba(0,0,0,.62);
}

#startScreen .startLayout::after {
  content: "A REAL-TIME STRATEGY EXPERIENCE\A\A EXPAND YOUR REACH.\A BUILD CONNECTIONS.\A SURVIVE THE ROUND.";
  position: absolute;
  left: clamp(22px, 3.4vw, 52px);
  top: clamp(32px, 5.7vh, 48px);
  z-index: 1;
  white-space: pre-line;
  color: rgba(223,232,220,.72);
  font-size: clamp(9px, .92vw, 12px);
  line-height: 1.8;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0,0,0,.62);
}

#startScreen .startLayout::selection { background: transparent; }

#startScreen .startCenterStack {
  position: absolute !important;
  left: clamp(500px, 47vw, 720px) !important;
  bottom: clamp(82px, 16vh, 142px) !important;
  width: min(380px, calc(100vw - 560px)) !important;
  min-width: 310px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  transform: none !important;
  z-index: 3 !important;
}

#startScreen .startJoinPanel {
  width: 100% !important;
  min-height: 0 !important;
  padding: 16px 16px 14px !important;
  border-radius: 8px !important;
  overflow: visible !important;
  background: linear-gradient(180deg, rgba(33,39,42,.88), rgba(22,28,31,.88)) !important;
  border: 1px solid rgba(182,201,183,.11) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05) !important;
  backdrop-filter: blur(8px) saturate(.86) !important;
}

#startScreen .startJoinPanel::before,
#startScreen .startSidePanel::before,
#startScreen .friendsPanel::before,
#startScreen .startLivePanel::before,
#startScreen .startSupportLine::before {
  display: none !important;
}

#startScreen .startJoinTopline {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 16px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(249,250,241,.86) !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  letter-spacing: .08em !important;
  font-weight: 850 !important;
}

#startScreen .startJoinTopline span::before,
#startScreen .startJoinTopline strong {
  display: none !important;
}

#startScreen .startInlineNameField {
  display: grid !important;
  grid-template-rows: 0 40px 16px !important;
  gap: 0 !important;
  margin: 0 !important;
}

#startScreen .startInlineNameField label {
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

#startScreen .startInlineNameField #playerNameInput {
  height: 40px !important;
  border-radius: 5px !important;
  padding: 0 12px !important;
  background: rgba(5, 8, 9, .70) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  color: rgba(246,248,240,.94) !important;
  font-size: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

#startScreen .startInlineNameField #playerNameInput::placeholder {
  color: rgba(230,235,220,.48) !important;
}

#startScreen .startInlineNameField #playerNameInput:focus {
  border-color: rgba(166,207,145,.55) !important;
  box-shadow: 0 0 0 3px rgba(166,207,145,.10), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

#startScreen .lobbyServerGrid {
  display: block !important;
  min-height: 0 !important;
}

#startScreen .boardingCard {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#startScreen .boardingPreview,
#startScreen .boardingMapImage,
#startScreen .boardingMapShade,
#startScreen .boardingMapBadge,
#startScreen .boardingPulse,
#startScreen .boardingEyebrow,
#startScreen .boardingBody h2,
#startScreen .boardingStats,
#startScreen .boardingMeta {
  display: none !important;
}

#startScreen .boardingBody {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

#startScreen .boardingCountdown {
  min-height: 15px !important;
  height: 15px !important;
  margin: -3px 0 0 !important;
  display: block !important;
  color: rgba(232,236,225,.42) !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#startScreen .boardingCountdown strong {
  min-width: 0 !important;
  color: rgba(174,211,149,.82) !important;
  font-size: 10px !important;
}

#startScreen .boardingActions {
  min-height: 42px !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: stretch !important;
}

#startScreen .boardingJoinBtn {
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  border-radius: 5px !important;
  background: linear-gradient(180deg, rgba(166,207,145,.95), rgba(117,162,107,.95)) !important;
  border: 1px solid rgba(218,244,204,.18) !important;
  color: rgba(255,255,246,.96) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

#startScreen .boardingJoinBtn::after {
  content: "→";
  float: right;
  font-size: 16px;
  line-height: 12px;
  opacity: .9;
}

#startScreen .boardingJoinBtn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, rgba(180,220,158,.98), rgba(127,174,114,.98)) !important;
}

#startScreen .boardingLeaveBtn {
  margin-left: 8px !important;
  height: 42px !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: rgba(241,244,232,.72) !important;
}

#startScreen .startSupportLine {
  width: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  justify-content: flex-start !important;
}

#startScreen .startInfoButton {
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(231,236,224,.52) !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
  text-align: left !important;
  box-shadow: none !important;
}

#startScreen .startInfoButton:hover {
  color: rgba(231,236,224,.82) !important;
  background: transparent !important;
}

#startScreen .startRightStack {
  position: absolute !important;
  top: clamp(18px, 3.0vh, 32px) !important;
  right: clamp(18px, 3.8vw, 52px) !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  display: block !important;
  z-index: 4 !important;
}

#startScreen .startLivePanel {
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#startScreen .startLivePanel .startPanelTitle,
#startScreen .livePlayersList {
  display: none !important;
}

#startScreen .livePlayersExpanded {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#startScreen .livePlayersSummary {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(240,248,232,.86) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 3px 18px rgba(0,0,0,.62) !important;
}

#startScreen .livePlayersSummary::first-letter {
  color: rgba(150,220,118,.98) !important;
}

#startScreen .startLeftStack {
  position: absolute !important;
  left: clamp(22px, 3.4vw, 52px) !important;
  bottom: clamp(28px, 6vh, 54px) !important;
  width: min(300px, 32vw) !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  z-index: 2 !important;
}

#startScreen .startSidePanel,
#startScreen .friendsPanel {
  border-radius: 7px !important;
  padding: 10px 12px !important;
  background: rgba(8, 13, 14, .34) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: none !important;
  backdrop-filter: blur(4px) !important;
}

#startScreen .startHighscorePanel {
  max-height: 138px !important;
}

#startScreen .startFriendsPanel {
  display: none !important;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle {
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  color: rgba(231,236,224,.58) !important;
  font-size: 9px !important;
  line-height: 1.1 !important;
  letter-spacing: .13em !important;
  font-weight: 850 !important;
}

#startScreen .statRow,
#startScreen .scoreRow {
  padding: 3px 0 !important;
  border: 0 !important;
  color: rgba(231,236,224,.55) !important;
  font-size: 11px !important;
}

#startScreen .statRow strong,
#startScreen .scoreRow strong {
  color: rgba(248,250,240,.78) !important;
  font-size: 11px !important;
}

#startScreen .dailyHighscoreList {
  max-height: 92px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#versionBadge {
  opacity: .42 !important;
}

#startScreen .queuePanel {
  border-radius: 5px !important;
  background: rgba(8,13,14,.44) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(231,236,224,.65) !important;
}

.infoOverlayCard {
  border-radius: 8px !important;
  background: rgba(18,24,26,.96) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
}

@media (max-width: 980px) {
  #startScreen .startLayout::before {
    font-size: clamp(46px, 12vw, 82px);
    left: 22px;
    top: 58px;
  }
  #startScreen .startLayout::after {
    left: 24px;
    top: 32px;
    font-size: 8.5px;
  }
  #startScreen .startCenterStack {
    left: 22px !important;
    right: 22px !important;
    bottom: 70px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  #startScreen .startLeftStack {
    display: none !important;
  }
  #startScreen .startRightStack {
    right: 20px !important;
    top: 18px !important;
  }
  #startScreen .startJoinPanel {
    margin-left: auto !important;
    width: min(360px, 100%) !important;
  }
}

@media (max-width: 620px) {
  #startScreen .startLayout::before {
    font-size: 48px;
    top: 72px;
  }
  #startScreen .startLayout::after {
    font-size: 8px;
    line-height: 1.55;
  }
  #startScreen .startCenterStack {
    bottom: 34px !important;
  }
  #startScreen .startJoinPanel {
    width: 100% !important;
  }
}

/* ALPHA 1.6ZZZD-NG · visual correction after reference check: no overlapping hero text, visible top-right online count. */
#startScreen {
  background:
    radial-gradient(circle at 50% 22%, rgba(0,0,0,0.42), rgba(0,0,0,0.20) 23%, transparent 44%),
    linear-gradient(90deg, rgba(2,6,7,0.96) 0%, rgba(3,8,9,0.82) 25%, rgba(3,8,9,0.36) 55%, rgba(3,8,9,0.74) 100%),
    radial-gradient(circle at 68% 35%, rgba(166,196,138,0.14), transparent 35%),
    linear-gradient(180deg, rgba(0,0,0,0.38), rgba(0,0,0,0.78)),
    url("assets/startpage_bg_zs.png") center center / cover no-repeat !important;
}
#startScreen .startLayout::before {
  top: clamp(78px, 10.5vh, 96px) !important;
  left: clamp(18px, 3.4vw, 48px) !important;
  font-size: clamp(58px, 7.6vw, 116px) !important;
  line-height: .84 !important;
  letter-spacing: -0.06em !important;
}
#startScreen .startLayout::after {
  content: "A REAL-TIME STRATEGY EXPERIENCE" !important;
  top: clamp(42px, 5.6vh, 54px) !important;
  left: clamp(22px, 3.4vw, 52px) !important;
  font-size: clamp(9px, .78vw, 11px) !important;
  line-height: 1.2 !important;
  letter-spacing: .14em !important;
  color: rgba(224,232,220,.72) !important;
}
#startScreen::after {
  content: "";
  position: absolute;
  left: clamp(22px, 3.4vw, 52px);
  top: clamp(286px, 38vh, 332px);
  width: min(260px, 30vw);
  height: 98px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(166,207,145,.90) 0 34px, transparent 34px) left top / 100% 3px no-repeat;
}
#startScreen .startLeftStack::before {
  content: "EXPAND YOUR REACH.\A BUILD CONNECTIONS.\A SURVIVE THE ROUND.";
  position: fixed;
  left: clamp(22px, 3.4vw, 52px);
  top: clamp(302px, 40vh, 348px);
  white-space: pre-line;
  color: rgba(224,232,220,.70);
  font-size: clamp(10px, .88vw, 12px);
  line-height: 1.75;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,.60);
  pointer-events: none;
}
#startScreen .startRightStack {
  min-width: 150px !important;
  text-align: right !important;
}
#startScreen .livePlayersSummary {
  font-size: 10.5px !important;
  color: rgba(244,250,235,.94) !important;
  text-shadow: 0 4px 18px rgba(0,0,0,.80) !important;
}
#startScreen .livePlayersSummary::first-letter {
  color: rgba(149,226,115,.98) !important;
}
@media (max-width: 980px) {
  #startScreen .startLayout::before { top: 74px !important; font-size: clamp(48px, 11vw, 78px) !important; }
  #startScreen .startLayout::after { top: 38px !important; }
  #startScreen::after { top: 244px !important; }
  #startScreen .startLeftStack::before { display: none !important; }
}

/* ALPHA 1.6ZZZD-NG · second visual correction: input stacks under title, online counter is clearly visible. */
#startScreen .startJoinPanel {
  display: block !important;
}
#startScreen .startInlineNameField {
  grid-template-columns: 1fr !important;
  grid-template-rows: 40px 16px !important;
  width: 100% !important;
  margin-top: 8px !important;
}
#startScreen .startInlineNameField label {
  display: none !important;
}
#startScreen .startInlineNameField #playerNameInput {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#startScreen .startInlineNameField #startNameError {
  grid-column: 1 !important;
  grid-row: 2 !important;
}
#startScreen .startRightStack,
#startScreen .startLivePanel,
#startScreen .livePlayersHud,
#startScreen .livePlayersExpanded {
  display: block !important;
  overflow: visible !important;
}
#startScreen .livePlayersSummary {
  position: fixed !important;
  top: 22px !important;
  right: 30px !important;
  z-index: 12 !important;
  min-width: 160px !important;
  text-align: right !important;
  font-size: 11px !important;
  color: rgba(248,252,240,.96) !important;
}
#startScreen #livePlayersHud.livePlayersHud,
#startScreen #livePlayersHud.livePlayersExpanded {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  width: auto !important;
  overflow: visible !important;
}


/* ALPHA 1.6ZZZE-NG · Startscreen round preview + readable timer + unlimited top players
   Visual-only: keeps the minimal reference style, restores a tiny next-map preview, and makes Top Players scroll without truncating the backend list. */
#startScreen .startJoinTopline {
  margin-bottom: 8px !important;
}

#startScreen .startCenterStack {
  width: min(404px, calc(100vw - 560px)) !important;
}

#startScreen .startJoinPanel {
  padding: 15px 15px 14px !important;
}

#startScreen .lobbyServerGrid {
  margin-top: 5px !important;
}

#startScreen .boardingCard {
  display: grid !important;
  grid-template-columns: 102px minmax(0, 1fr) !important;
  column-gap: 12px !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 96px !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#startScreen .boardingPreview,
#startScreen .boardingPreview.realMapPreview {
  display: block !important;
  position: relative !important;
  width: 102px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: rgba(5,8,9,.62) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
  filter: none !important;
}

#startScreen .boardingMapImage {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.02) !important;
  filter: saturate(.82) contrast(1.04) brightness(.72) !important;
}

#startScreen .boardingMapShade {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.54)) !important;
  pointer-events: none !important;
}

#startScreen .boardingMapBadge {
  display: block !important;
  position: absolute !important;
  left: 7px !important;
  bottom: 7px !important;
  top: auto !important;
  max-width: calc(100% - 14px) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(242,247,234,.78) !important;
  font-size: 8.5px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.90) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#startScreen .boardingPulse,
#startScreen .boardingEyebrow,
#startScreen .boardingStats,
#startScreen .boardingMeta {
  display: none !important;
}

#startScreen .boardingBody {
  display: grid !important;
  grid-template-rows: auto auto 1fr auto !important;
  gap: 4px !important;
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  padding: 0 !important;
  align-content: start !important;
}

#startScreen .boardingBody h2 {
  display: block !important;
  min-height: 19px !important;
  max-height: 19px !important;
  margin: 0 !important;
  color: rgba(242,247,234,.84) !important;
  font-size: 14px !important;
  line-height: 19px !important;
  font-weight: 850 !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: none !important;
}

#startScreen .boardingCountdown {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  min-height: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  color: rgba(232,236,225,.56) !important;
  font-size: 10px !important;
  line-height: 28px !important;
  letter-spacing: .045em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

#startScreen .boardingCountdown strong {
  color: rgba(174,211,149,.94) !important;
  font-size: 25px !important;
  line-height: 28px !important;
  font-weight: 850 !important;
  letter-spacing: -.02em !important;
  min-width: 0 !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums !important;
}

#startScreen .boardingActions {
  min-height: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  align-self: end !important;
}

#startScreen .boardingJoinBtn {
  height: 36px !important;
  font-size: 11px !important;
  border-radius: 5px !important;
}

#startScreen .boardingLeaveBtn {
  height: 36px !important;
  font-size: 10px !important;
}

#startScreen .startHighscorePanel {
  max-height: min(330px, calc(100vh - 245px)) !important;
  overflow: hidden !important;
}

#startScreen .dailyHighscoreList {
  max-height: min(270px, calc(100vh - 310px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
  overscroll-behavior: contain !important;
}

#startScreen .scoreRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 9px !important;
  align-items: baseline !important;
}

#startScreen .scoreRow span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#startScreen .scoreRow strong {
  white-space: nowrap !important;
  font-size: 11px !important;
}

@media (max-width: 980px) {
  #startScreen .startCenterStack {
    width: auto !important;
  }
  #startScreen .boardingCard {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingPreview.realMapPreview,
  #startScreen .boardingBody {
    height: 90px !important;
    min-height: 90px !important;
    max-height: 90px !important;
  }
  #startScreen .boardingCountdown strong {
    font-size: 16px !important;
  }
}

@media (max-width: 620px) {
  #startScreen .boardingCard {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }
  #startScreen .boardingPreview,
  #startScreen .boardingPreview.realMapPreview,
  #startScreen .boardingBody {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
  }
  #startScreen .boardingBody h2 {
    font-size: 13px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    line-height: 17px !important;
  }
  #startScreen .boardingCountdown {
    min-height: 25px !important;
    height: 25px !important;
    line-height: 25px !important;
  }
  #startScreen .boardingCountdown strong {
    font-size: 20px !important;
  }
  #startScreen .boardingActions,
  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn {
    height: 33px !important;
    min-height: 33px !important;
  }
}

/* ALPHA 1.6ZZZE-NG · visual check correction: keep record/top-player panels below the hero tagline, no overlap. */
@media (min-width: 981px) {
  #startScreen .startLeftStack {
    top: clamp(382px, 51vh, 420px) !important;
    bottom: auto !important;
  }
  #startScreen .startHighscorePanel {
    max-height: min(300px, calc(100vh - 505px)) !important;
  }
  #startScreen .dailyHighscoreList {
    max-height: min(238px, calc(100vh - 568px)) !important;
  }
}


/* ALPHA 1.6ZZZF-NG · background refresh + readable record/highscore + full backend highscores */
#startScreen {
  background:
    linear-gradient(90deg, rgba(2,7,11,0.84), rgba(2,7,11,0.42) 28%, rgba(2,7,11,0.30) 56%, rgba(2,7,11,0.72)),
    url("assets/startscreen.png") center center / cover no-repeat !important;
}

#startScreen::before {
  background:
    radial-gradient(ellipse at 62% 42%, rgba(244,232,190,0.12), rgba(244,232,190,0.03) 34%, transparent 54%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.24)) !important;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle {
  font-size: 10px !important;
  letter-spacing: .16em !important;
  color: rgba(232,236,227,.68) !important;
  margin-bottom: 8px !important;
}

#startScreen .statRow,
#startScreen .scoreRow {
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: rgba(231,236,224,.70) !important;
  padding: 5px 0 !important;
}

#startScreen .statRow strong,
#startScreen .scoreRow strong {
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: rgba(248,250,240,.92) !important;
  font-weight: 760 !important;
}

#startScreen .startStatsPanel {
  width: 262px !important;
}

#startScreen .startHighscorePanel {
  width: 282px !important;
  max-height: min(352px, calc(100vh - 470px)) !important;
  overflow: hidden !important;
}

#startScreen .dailyHighscoreList {
  max-height: min(290px, calc(100vh - 532px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px !important;
  scrollbar-width: thin !important;
}

#startScreen .scoreRow {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

#startScreen .scoreRow span {
  font-size: 12px !important;
}

#startScreen .scoreRow strong {
  font-size: 12px !important;
}

@media (min-width: 981px) {
  #startScreen .startHighscorePanel {
    max-height: min(316px, calc(100vh - 492px)) !important;
  }
  #startScreen .dailyHighscoreList {
    max-height: min(252px, calc(100vh - 556px)) !important;
  }
}


/* ALPHA 1.6ZZZG-NG · Top Players shows current 24h values only, no scrollbar */
#startScreen .startPanelTitle {
  font-size: 10px !important;
}

#startScreen .startHighscorePanel {
  max-height: none !important;
  overflow: hidden !important;
}

#startScreen .dailyHighscoreList {
  max-height: none !important;
  height: auto !important;
  overflow: hidden !important;
  padding-right: 0 !important;
  scrollbar-width: none !important;
}

#startScreen .dailyHighscoreList::-webkit-scrollbar {
  display: none !important;
}

#startScreen .scoreRow {
  padding: 4px 0 !important;
  min-height: 22px !important;
}

#startScreen .scoreRow span,
#startScreen .scoreRow strong {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

@media (max-height: 720px) and (min-width: 981px) {
  #startScreen .scoreRow {
    padding: 3px 0 !important;
    min-height: 20px !important;
  }
  #startScreen .scoreRow span,
  #startScreen .scoreRow strong {
    font-size: 11.5px !important;
  }
}


/* ALPHA 1.6ZZZH-NG · Back menu guard + readable 24h title */
#startScreen .startHighscorePanel .startPanelTitle {
  font-size: 10.5px !important;
  letter-spacing: .14em !important;
  white-space: nowrap !important;
}

#backToMenuBtn {
  pointer-events: auto !important;
}


/* ALPHA 1.6ZZZI-NG · Join cancel reach fix
   In the joined/locked startscreen card the old 100%-wide disabled Join button pushed
   the Leave button out of the visible action row. Locked state now shows one full-width
   Cancel button that stays reachable on desktop, tablet and small viewports. */
#startScreen .boardingCard.locked .boardingActions {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

#startScreen .boardingCard.locked .boardingJoinBtn {
  display: none !important;
}

#startScreen .boardingCard.locked .boardingLeaveBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  height: 36px !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.075) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(246,248,240,.88) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

#startScreen .boardingCard.locked .boardingLeaveBtn.hidden {
  display: flex !important;
}

#startScreen .boardingCard.locked .boardingLeaveBtn:hover {
  background: rgba(255,255,255,.115) !important;
  border-color: rgba(255,255,255,.22) !important;
  transform: translateY(-1px) !important;
}


/* ALPHA 1.6ZZZK-NG · Narrow metro corridor fix
   Canvas-only visual pass: trade-route lines are now rendered as muted metro supply corridors,
   with trains centered on the corridor curve. Gameplay and route logic remain unchanged. */

/* Alpha 1.6ZZZU: clearer lobby room population chips */
#startScreen .lobbyRoomStats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
#startScreen .lobbyRoomStats strong {
  color: rgba(255,255,255,0.96);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

/* Alpha 1.6ZZZU: keep next-round player/bot chips visible in the compact join widget. */
#startScreen .boardingCard {
  min-height: 122px !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
}
#startScreen .boardingPreview,
#startScreen .boardingPreview.realMapPreview {
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
}
#startScreen .boardingBody {
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
  grid-template-rows: auto auto auto 1fr auto !important;
  gap: 4px !important;
}
#startScreen .boardingStats.lobbyRoomStats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin: 0 !important;
  min-height: 20px !important;
  max-height: 44px !important;
  overflow: hidden !important;
}
#startScreen .boardingStats.lobbyRoomStats span,
#startScreen .boardingStats.lobbyRoomStats span:nth-child(1),
#startScreen .boardingStats.lobbyRoomStats span:nth-child(2),
#startScreen .boardingStats.lobbyRoomStats span:nth-child(3) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 3px 6px !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  color: rgba(242,247,234,.72) !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .015em !important;
  white-space: nowrap !important;
}
#startScreen .boardingStats.lobbyRoomStats strong {
  color: rgba(246,248,240,.96) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
#startScreen .boardingMeta {
  display: none !important;
}


/* ALPHA 1.6ZZZY-NG · Next round poster HUD fix
   Replace the old button-heavy next round widget with a calmer poster card.
   Scope the redesign to the startscreen boarding card only. */
#startScreen .startCenterStack {
  width: min(520px, calc(100vw - 640px)) !important;
  max-width: 520px !important;
}

#startScreen .boardingCard {
  width: 100% !important;
  max-width: 520px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 14px !important;
  display: block !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 26%),
    linear-gradient(180deg, rgba(32,34,28,.98), rgba(22,24,19,.98)) !important;
  border: 1px solid rgba(214, 202, 166, .26) !important;
  border-radius: 0 !important;
  box-shadow: 0 28px 76px rgba(0,0,0,.48), inset 0 0 0 1px rgba(255,255,255,.03) !important;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px) !important;
  overflow: hidden !important;
}

#startScreen .boardingPreview {
  min-height: 170px !important;
  height: 170px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(230,225,196,.14) !important;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px) !important;
  background: rgba(8, 12, 14, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

#startScreen .boardingPreview::before,
#startScreen .boardingPreview::after,
#startScreen .boardingMapBadge,
#startScreen .boardingPulse,
#startScreen .boardingCountdown,
#startScreen .boardingStats {
  display: none !important;
}

#startScreen .boardingMapImage {
  transform: scale(1.015) !important;
  filter: saturate(1.03) contrast(1.04) brightness(0.9) !important;
}

#startScreen .boardingMapShade {
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 26%),
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.34) 64%, rgba(0,0,0,.55)) !important;
}

#startScreen .boardingBody {
  padding: 18px 18px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent),
    linear-gradient(180deg, rgba(0,0,0,.14), transparent) !important;
  border-top: 1px solid rgba(214, 202, 166, .10) !important;
}

#startScreen .boardingEyebrow {
  margin: 0 0 14px !important;
  color: rgba(215,205,174,.78) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingBody h2 {
  margin: 0 !important;
  max-width: 100% !important;
  font-size: clamp(26px, 3.6vw, 38px) !important;
  line-height: .98 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  color: rgba(230, 223, 203, 0.97) !important;
  text-shadow: 0 2px 0 rgba(0,0,0,.52), 0 0 18px rgba(255,255,255,.04) !important;
}

#startScreen .boardingMeta {
  margin: 0 !important;
  color: rgba(187,182,165,.82) !important;
  font-size: clamp(12px, 1.5vw, 16px) !important;
  line-height: 1.35 !important;
  letter-spacing: .035em !important;
}

#startScreen .boardingPrimaryMeta {
  margin-top: 10px !important;
}

#startScreen .boardingSecondaryMeta {
  margin-top: 4px !important;
  color: rgba(154,150,137,.68) !important;
  font-size: clamp(11px, 1.2vw, 13px) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingActions {
  margin-top: 14px !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
}

#startScreen .boardingJoinBtn,
#startScreen .boardingLeaveBtn {
  min-width: 220px !important;
  width: auto !important;
  max-width: 100% !important;
  height: 52px !important;
  padding: 0 34px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(230,225,196,.27) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), transparent),
    rgba(50, 51, 38, .96) !important;
  color: rgba(228,221,200,.97) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.5) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingJoinBtn:hover:not(:disabled),
#startScreen .boardingLeaveBtn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), transparent),
    rgba(61,61,46,.98) !important;
  border-color: rgba(236,229,205,.34) !important;
  transform: translateY(-1px) !important;
}

#startScreen .boardingJoinBtn:disabled {
  opacity: .6 !important;
  cursor: default !important;
}

#startScreen .boardingCard.locked .boardingLeaveBtn {
  min-width: 220px !important;
  height: 52px !important;
  font-size: 16px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), transparent),
    rgba(50, 51, 38, .96) !important;
  border-color: rgba(230,225,196,.27) !important;
}

@media (max-width: 900px) {
  #startScreen .boardingCard {
    width: min(760px, calc(100vw - 30px)) !important;
  }
}

@media (max-width: 640px) {
  #startScreen .boardingCard {
    width: calc(100vw - 20px) !important;
    padding: 12px !important;
  }

  #startScreen .boardingPreview {
    min-height: 170px !important;
    height: 170px !important;
  }

  #startScreen .boardingBody {
    padding: 24px 16px 18px !important;
  }

  #startScreen .boardingEyebrow {
    margin-bottom: 12px !important;
    font-size: 11px !important;
  }

  #startScreen .boardingPrimaryMeta {
    margin-top: 14px !important;
  }

  #startScreen .boardingActions {
    flex-direction: column !important;
  }

  #startScreen .boardingJoinBtn,
  #startScreen .boardingLeaveBtn,
  #startScreen .boardingCard.locked .boardingLeaveBtn {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 16px !important;
    height: 52px !important;
  }
}


/* ALPHA 1.6ZZZZB-NG · Operations Board Next Round HUD
   Cosmetic rebuild of the start-screen boarding card only. Design direction: minimal operations board,
   visible map preview, strong negative space, calm shadows, no widget glow. */
#startScreen .startCenterStack {
  width: min(620px, calc(100vw - 560px)) !important;
  max-width: 620px !important;
}

#startScreen .startJoinPanel {
  padding: 14px 14px 13px !important;
  background: rgba(18, 23, 23, .74) !important;
  border: 1px solid rgba(214, 209, 188, .11) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.34) !important;
}

#startScreen .lobbyServerGrid {
  margin-top: 12px !important;
}

#startScreen .boardingCard.boardingOpsCard {
  width: 100% !important;
  max-width: 610px !important;
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(213, 203, 174, .18) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 30%),
    linear-gradient(90deg, rgba(21,24,23,.98), rgba(13,16,16,.98)) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.46), inset 0 0 0 1px rgba(255,255,255,.025) !important;
}

#startScreen .boardingOpsCard .opsBoardTop {
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 22px !important;
  border-bottom: 1px solid rgba(218,211,184,.10) !important;
  color: rgba(211,202,174,.58) !important;
  background: rgba(255,255,255,.015) !important;
}

#startScreen .boardingOpsCard .opsBoardLabel {
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: .24em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingOpsCard .opsOnlyRealToggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: rgba(202,196,176,.72) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  user-select: none !important;
}

#startScreen .boardingOpsCard .opsOnlyRealToggle input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

#startScreen .boardingOpsCard .opsCheckboxBox {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid rgba(218,211,184,.46) !important;
  background: rgba(0,0,0,.30) !important;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.025) !important;
}

#startScreen .boardingOpsCard .opsCheckboxBox::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 5px !important;
  height: 9px !important;
  border-right: 2px solid rgba(255,242,197,.98) !important;
  border-bottom: 2px solid rgba(255,242,197,.98) !important;
  transform: rotate(42deg) scale(.3) !important;
  opacity: 0 !important;
  transition: opacity .12s ease, transform .12s ease !important;
}

#startScreen .boardingOpsCard .opsOnlyRealToggle input:checked + .opsCheckboxBox {
  background: linear-gradient(135deg, rgba(202,184,119,.96), rgba(82,104,68,.90)) !important;
  border-color: rgba(232,219,174,.80) !important;
}

#startScreen .boardingOpsCard .opsOnlyRealToggle input:checked + .opsCheckboxBox::after {
  opacity: 1 !important;
  transform: rotate(42deg) scale(1) !important;
}

#startScreen .boardingOpsCard .opsOnlyRealToggle input:focus-visible + .opsCheckboxBox {
  outline: 2px solid rgba(230,214,160,.55) !important;
  outline-offset: 2px !important;
}

#startScreen .boardingOpsCard .opsBoardShell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 176px !important;
  min-height: 252px !important;
}

#startScreen .boardingOpsCard .opsBoardLeft {
  position: relative !important;
  min-width: 0 !important;
  padding: 20px 20px 18px !important;
  border-right: 1px solid rgba(218,211,184,.10) !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(204,184,115,.05), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent) !important;
}

#startScreen .boardingOpsCard .boardingEyebrow {
  margin: 0 0 10px !important;
  color: rgba(198,174,112,.88) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingOpsCard .boardingBody,
#startScreen .boardingOpsCard .opsBoardLeft,
#startScreen .boardingOpsCard .opsBoardRight {
  text-align: left !important;
}

#startScreen .boardingOpsCard h2 {
  margin: 0 0 18px !important;
  color: rgba(236,232,217,.96) !important;
  font-size: clamp(32px, 4.1vw, 48px) !important;
  line-height: .92 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
  text-shadow: 0 2px 0 rgba(0,0,0,.55) !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#startScreen .boardingOpsCard .boardingPreview,
#startScreen .boardingOpsCard .boardingPreview.realMapPreview {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-height: 112px !important;
  height: 112px !important;
  border-radius: 0 !important;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px) !important;
  border: 1px solid rgba(230,225,196,.13) !important;
  background: rgba(2,8,12,.88) !important;
  overflow: hidden !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.02) !important;
}

#startScreen .boardingOpsCard .boardingPreview::before,
#startScreen .boardingOpsCard .boardingPreview::after,
#startScreen .boardingOpsCard .boardingMapBadge,
#startScreen .boardingOpsCard .boardingPulse {
  display: none !important;
}

#startScreen .boardingOpsCard .boardingMapImage {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: scale(1.01) !important;
  filter: saturate(.86) contrast(1.07) brightness(.78) !important;
}

#startScreen .boardingOpsCard .boardingMapShade {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.10), transparent 42%, rgba(0,0,0,.16)),
    linear-gradient(180deg, transparent 42%, rgba(0,0,0,.28)) !important;
}

#startScreen .boardingOpsCard .opsPreviewTag {
  position: absolute !important;
  left: 12px !important;
  bottom: 10px !important;
  padding: 6px 9px !important;
  color: rgba(235,231,216,.78) !important;
  background: rgba(10,13,13,.62) !important;
  border: 1px solid rgba(230,225,196,.11) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingOpsCard .opsBoardRight {
  min-width: 0 !important;
  padding: 22px 18px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.08)) !important;
}

#startScreen .boardingOpsCard .opsStatRow {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(218,211,184,.095) !important;
}

#startScreen .boardingOpsCard .opsStatIcon {
  color: rgba(199,178,108,.86) !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#startScreen .boardingOpsCard .opsStatLabel {
  color: rgba(184,180,164,.72) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

#startScreen .boardingOpsCard .opsStatRow strong {
  color: rgba(232,227,207,.95) !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  letter-spacing: .04em !important;
  font-variant-numeric: tabular-nums !important;
}

#startScreen .boardingOpsCard .boardingActions {
  margin-top: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

#startScreen .boardingOpsCard .boardingJoinBtn,
#startScreen .boardingOpsCard .boardingLeaveBtn,
#startScreen .boardingOpsCard.locked .boardingLeaveBtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 0 !important;
  border: 1px solid rgba(224,209,160,.32) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent),
    rgba(79,76,55,.86) !important;
  color: rgba(236,232,213,.96) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 0 0 1px rgba(0,0,0,.38) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

#startScreen .boardingOpsCard .boardingJoinBtn::after,
#startScreen .boardingOpsCard .boardingLeaveBtn::after {
  content: "›";
  margin-left: auto;
  color: rgba(237,224,178,.68);
  font-size: 25px;
  line-height: 0;
}

#startScreen .boardingOpsCard .boardingJoinBtn:hover:not(:disabled),
#startScreen .boardingOpsCard .boardingLeaveBtn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent),
    rgba(90,87,63,.95) !important;
  border-color: rgba(236,222,174,.48) !important;
  transform: translateY(-1px) !important;
}

#startScreen .boardingOpsCard .boardingJoinBtn:disabled {
  opacity: .58 !important;
  cursor: default !important;
}

#startScreen .boardingOpsCard.locked .boardingJoinBtn {
  display: none !important;
}

#startScreen .boardingOpsCard.locked .boardingLeaveBtn.hidden {
  display: flex !important;
}

@media (max-width: 1100px) {
  #startScreen .startCenterStack {
    width: min(700px, calc(100vw - 28px)) !important;
  }
}

@media (max-width: 900px) {
  #startScreen .boardingOpsCard .opsBoardTop {
    height: auto !important;
    min-height: 42px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding: 11px 16px !important;
  }

  #startScreen .boardingOpsCard .opsBoardShell {
    grid-template-columns: 1fr !important;
  }

  #startScreen .boardingOpsCard .opsBoardLeft {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(218,211,184,.10) !important;
    padding: 20px 18px 18px !important;
  }

  #startScreen .boardingOpsCard h2 {
    white-space: normal !important;
    font-size: clamp(34px, 10vw, 50px) !important;
  }

  #startScreen .boardingOpsCard .opsBoardRight {
    padding: 18px !important;
  }
}

/* ALPHA 1.6ZZZZB-NG · visual check correction 1: non-joined cards must not show Cancel. */
#startScreen .boardingOpsCard .boardingLeaveBtn.hidden {
  display: none !important;
}
#startScreen .boardingOpsCard.locked .boardingLeaveBtn.hidden {
  display: flex !important;
}
#startScreen .boardingOpsCard .boardingJoinBtn::after,
#startScreen .boardingOpsCard .boardingLeaveBtn::after {
  margin-left: 10px !important;
}

/* ALPHA 1.6ZZZZB-NG · visual check correction 2: tablet keeps the operations board compact instead of stacking tall. */
@media (max-width: 900px) {
  #startScreen .boardingOpsCard .opsBoardTop {
    height: 40px !important;
    min-height: 40px !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 16px !important;
  }
  #startScreen .boardingOpsCard .opsBoardShell {
    grid-template-columns: minmax(0, 1fr) 160px !important;
  }
  #startScreen .boardingOpsCard .opsBoardLeft {
    border-right: 1px solid rgba(218,211,184,.10) !important;
    border-bottom: 0 !important;
    padding: 18px 16px 16px !important;
  }
  #startScreen .boardingOpsCard h2 {
    white-space: normal !important;
    font-size: clamp(25px, 5.4vw, 38px) !important;
    line-height: .98 !important;
    margin-bottom: 14px !important;
  }
  #startScreen .boardingOpsCard .boardingPreview,
  #startScreen .boardingOpsCard .boardingPreview.realMapPreview {
    min-height: 100px !important;
    height: 100px !important;
  }
  #startScreen .boardingOpsCard .opsBoardRight {
    padding: 18px 16px 16px !important;
  }
  #startScreen .boardingOpsCard .opsStatRow {
    grid-template-columns: 14px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    padding: 9px 0 !important;
  }
  #startScreen .boardingOpsCard .opsStatLabel {
    font-size: 9px !important;
    letter-spacing: .08em !important;
  }
  #startScreen .boardingOpsCard .opsStatRow strong {
    font-size: 15px !important;
  }
}


/* ALPHA 1.6ZZZZD-NG · Only-real checkbox click/visual fix. */
#startScreen .boardingOpsCard .opsOnlyRealToggle,
#startScreen .boardingOpsCard .opsOnlyRealToggle * {
  pointer-events: auto !important;
}
#startScreen .boardingOpsCard .opsOnlyRealText {
  pointer-events: none !important;
}


/* ALPHA 1.6ZZZZD-NG · Live counter player list fix
   The top-right live counter remains minimal, but becomes a real click target.
   Its player list is fed by backend /status livePlayers and only opens on demand. */
#versionBadge {
  max-width: 260px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#startScreen .livePlayersSummary {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none !important;
  padding: 8px 10px !important;
  border-radius: 7px !important;
  background: rgba(2, 8, 10, .16) !important;
  border: 1px solid transparent !important;
  transition: background .14s ease, border-color .14s ease, transform .14s ease !important;
}

#startScreen .livePlayersSummary:hover,
#startScreen .livePlayersSummary:focus-visible {
  background: rgba(8, 16, 16, .48) !important;
  border-color: rgba(150, 220, 118, .22) !important;
  outline: none !important;
}

#startScreen .livePlayersSummary::after {
  content: "⌄";
  display: inline-block;
  margin-left: 8px;
  color: rgba(210, 218, 190, .68);
  transform: translateY(-1px);
}

#startScreen .livePlayersHud.livePlayersOpen .livePlayersSummary::after {
  transform: rotate(180deg) translateY(1px);
}

#startScreen .startLivePanel .livePlayersList,
#startScreen .livePlayersList {
  display: none !important;
}

#startScreen .livePlayersHud.livePlayersOpen .livePlayersList {
  display: grid !important;
  position: fixed !important;
  top: 54px !important;
  right: 30px !important;
  z-index: 40 !important;
  width: min(280px, calc(100vw - 32px)) !important;
  max-height: min(430px, calc(100vh - 90px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 9px !important;
  gap: 6px !important;
  border-radius: 10px !important;
  background: rgba(7, 10, 9, .92) !important;
  border: 1px solid rgba(214, 202, 166, .16) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.04) !important;
  backdrop-filter: blur(10px) !important;
  text-align: left !important;
  pointer-events: auto !important;
}

#startScreen .livePlayersHud.livePlayersOpen .livePlayersList.empty {
  display: block !important;
  color: rgba(228, 220, 198, .68) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  letter-spacing: .02em !important;
}

#startScreen .livePlayersHud.livePlayersOpen .livePlayerRow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 8px 9px !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.045) !important;
}

#startScreen .livePlayersHud.livePlayersOpen .livePlayerName {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: rgba(240,236,220,.94) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
}

#startScreen .livePlayersHud.livePlayersOpen .livePlayerMeta {
  color: rgba(176, 170, 150, .74) !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
}

@media (max-width: 720px) {
  #startScreen .livePlayersHud.livePlayersOpen .livePlayersList {
    top: 48px !important;
    right: 12px !important;
    width: min(270px, calc(100vw - 24px)) !important;
  }
}


/* ALPHA 1.6ZZZZE-NG · Startscreen polish
   Small visual-only pass: the operations label reads NEXT ROUND:, the start logo gets a
   slow restrained white edge glow, and the visible version badge sits bottom-right. */
#startScreen .boardingOpsCard .opsBoardLabel {
  color: rgba(234, 229, 210, .84) !important;
  letter-spacing: .20em !important;
}

#startScreen .startLayout::before {
  -webkit-text-stroke: 1px rgba(255,255,255,.10) !important;
  text-shadow:
    0 4px 28px rgba(0,0,0,.62),
    0 0 2px rgba(255,255,255,.26),
    0 0 9px rgba(255,255,255,.12) !important;
  animation: slowTerritoriesSoftNeon 6.8s ease-in-out infinite !important;
}

@keyframes slowTerritoriesSoftNeon {
  0%, 100% {
    -webkit-text-stroke-color: rgba(255,255,255,.08);
    text-shadow:
      0 4px 28px rgba(0,0,0,.64),
      0 0 2px rgba(255,255,255,.22),
      0 0 7px rgba(255,255,255,.09);
  }
  48% {
    -webkit-text-stroke-color: rgba(255,255,255,.18);
    text-shadow:
      0 4px 30px rgba(0,0,0,.64),
      0 0 3px rgba(255,255,255,.36),
      0 0 13px rgba(255,255,255,.18),
      0 0 22px rgba(255,255,255,.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  #startScreen .startLayout::before {
    animation: none !important;
  }
}

#versionBadge {
  left: auto !important;
  right: 16px !important;
  bottom: 10px !important;
  max-width: 280px !important;
  text-align: right !important;
}

/* ALPHA 1.6ZZZZE-NG · version badge restored on startscreen bottom-right. */
body.menu-open #versionBadge,
body:not(.in-game) #versionBadge {
  display: block !important;
  visibility: visible !important;
  opacity: .70 !important;
  left: auto !important;
  right: 16px !important;
  bottom: 10px !important;
  text-align: right !important;
}

/* ALPHA 1.6ZZZZE-NG · compact logo spacing correction after visual check. */
@media (max-width: 900px) {
  #startScreen .startLayout::before {
    font-size: clamp(38px, 7.2vw, 62px) !important;
    left: clamp(20px, 3vw, 28px) !important;
    top: clamp(70px, 9.5vh, 86px) !important;
    letter-spacing: -0.045em !important;
  }
}

/* ALPHA 1.6ZZZZE-NG · compact logo no-overlap correction. */
@media (max-width: 900px) {
  #startScreen .startLayout::before {
    font-size: clamp(34px, 5.7vw, 54px) !important;
    line-height: .88 !important;
  }
}

/* ALPHA 1.6ZZZZM-NG · Startscreen map preview slow drift
   Visual-only: keeps the Next Round / Operations Board HUD in place and gives only the
   map preview image a very slow, calm wait-state motion. No gameplay or UI layout changes. */
#startScreen .boardingOpsCard .boardingPreview,
#startScreen .boardingOpsCard .boardingPreview.realMapPreview {
  overflow: hidden !important;
  contain: paint !important;
}

#startScreen .boardingOpsCard .boardingMapImage {
  transform-origin: 52% 48% !important;
  animation: boardingMapPreviewSlowDrift 38s cubic-bezier(.46, 0, .24, 1) infinite alternate !important;
  scale: 1;
  translate: 0 0;
  will-change: scale, translate !important;
}

@keyframes boardingMapPreviewSlowDrift {
  0% {
    scale: 1;
    translate: 0 0;
  }
  42% {
    scale: 1.026;
    translate: -.55% .28%;
  }
  100% {
    scale: 1.046;
    translate: -1.15% .72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #startScreen .boardingOpsCard .boardingMapImage {
    animation: none !important;
    scale: 1;
    translate: 0 0;
    will-change: auto !important;
  }
}


/* ALPHA 1.6ZZZZO-NG · Minimal Quiet Ingame HUD Pass */
:root {
  --hud-green-main: rgb(113, 232, 150);
  --hud-panel-bg: rgba(9, 12, 16, 0.70);
  --hud-panel-bg-strong: rgba(7, 10, 14, 0.78);
  --hud-panel-edge: rgba(255,255,255,0.078);
  --hud-panel-edge-soft: rgba(255,255,255,0.042);
  --hud-panel-text: rgba(244, 247, 249, 0.94);
  --hud-panel-muted: rgba(194, 201, 208, 0.50);
  --hud-panel-soft: rgba(214, 220, 226, 0.64);
  --hud-panel-shadow: 0 16px 34px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.035), inset 0 -1px 0 rgba(0,0,0,0.22);
}

body.in-game #backToMenuBtn,
body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #buildToggle,
body.in-game .buildItem,
body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #safeTimeHud,
body.in-game #winOverlay .winCard {
  background-color: var(--hud-panel-bg) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.010)),
    radial-gradient(130% 115% at 50% 0%, rgba(255,255,255,0.022), rgba(255,255,255,0) 58%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.010) 0 1px, transparent 1px 7px) !important;
  border: 1px solid var(--hud-panel-edge) !important;
  box-shadow: var(--hud-panel-shadow) !important;
  backdrop-filter: blur(12px) saturate(112%) !important;
  color: var(--hud-panel-text) !important;
}

body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildInfoTooltip,
body.in-game #buildingTooltip,
body.in-game .demolishConfirm,
body.in-game #winOverlay .winCard {
  position: relative !important;
  overflow: hidden !important;
}

body.in-game #hud::before,
body.in-game #playersHud::before,
body.in-game #eventsHud::before,
body.in-game #allianceRequestHud::before,
body.in-game #diplomacyMenu::before,
body.in-game #buildInfoTooltip::before,
body.in-game #buildingTooltip::before,
body.in-game .demolishConfirm::before,
body.in-game #winOverlay .winCard::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 11px;
  border: 1px solid var(--hud-panel-edge-soft);
  pointer-events: none;
}

body.in-game #hud {
  width: min(720px, calc(100vw - 32px)) !important;
  padding: 15px 16px !important;
  gap: 12px !important;
  align-items: stretch !important;
  border-radius: 18px !important;
}

body.in-game #hud .hud-section,
body.in-game #hud .slider-group {
  min-height: 74px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.018) !important;
  border: 1px solid rgba(255,255,255,0.048) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.022) !important;
}

body.in-game #hud .hud-section:nth-of-type(1) {
  min-width: 182px !important;
}
body.in-game #hud .hud-section:nth-of-type(2) {
  min-width: 108px !important;
}
body.in-game #hud .hud-section:nth-of-type(3) {
  min-width: 116px !important;
}
body.in-game #hud .slider-group {
  flex: 1 1 auto !important;
  min-width: 194px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.in-game #hud .hud-title,
body.in-game #hud .slider-header span:first-child,
body.in-game .panel-title,
body.in-game #buildToggle,
body.in-game #safeTimeHud,
body.in-game #allianceRequestHud .allianceRequestTitle,
body.in-game #diplomacyMenu .diploName {
  color: var(--hud-panel-muted) !important;
  letter-spacing: 0.16em !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

body.in-game #hud .hud-value,
body.in-game #attackValue,
body.in-game #coinsValue,
body.in-game #troopsValue,
body.in-game #populationValue {
  color: var(--hud-panel-text) !important;
  font-weight: 760 !important;
  letter-spacing: -0.02em !important;
}

body.in-game #troopsValue {
  font-size: 27px !important;
}
body.in-game #populationValue {
  font-size: 23px !important;
}
body.in-game #coinsValue {
  font-size: 25px !important;
}
body.in-game #hud .soft,
body.in-game #populationHint,
body.in-game #troopIncomeValue,
body.in-game .buildName,
body.in-game .buildPrice {
  color: var(--hud-panel-soft) !important;
}

body.in-game .green,
body.in-game #coinIncomeValue,
body.in-game #attackValue,
body.in-game #playersHud .playerRole.real,
body.in-game #safeTimeValue {
  color: var(--hud-green-main) !important;
  text-shadow: none !important;
}

body.in-game #coinIncomeValue,
body.in-game #troopIncomeValue,
body.in-game #populationHint,
body.in-game #attackValue {
  font-size: 13px !important;
  font-weight: 700 !important;
}
body.in-game #coinIncomeValue {
  margin-top: 4px !important;
}

body.in-game #hud .slider-header {
  align-items: baseline !important;
  margin-bottom: 10px !important;
}

body.in-game #attackSlider {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 5px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.22)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), inset 0 1px 2px rgba(0,0,0,0.36) !important;
  position: relative !important;
}
body.in-game #attackSlider::-webkit-slider-runnable-track {
  height: 5px !important;
  border-radius: 999px !important;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.18)) !important;
}
body.in-game #attackSlider::-moz-range-track {
  height: 5px !important;
  border-radius: 999px !important;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.18)) !important;
}
body.in-game #attackSlider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 28px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  cursor: pointer !important;
  margin-top: -15px !important;
  box-shadow: none !important;
}
body.in-game #attackSlider::-moz-range-thumb {
  width: 28px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

body.in-game #backToMenuBtn {
  height: 36px !important;
  padding: 0 15px !important;
  border-radius: 12px !important;
  background-color: rgba(9, 12, 16, 0.72) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008)) !important;
  border: 1px solid var(--hud-panel-edge) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  color: rgba(236, 239, 242, 0.84) !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: 0.14em !important;
}
body.in-game #backToMenuBtn:hover {
  color: rgba(255,255,255,0.98) !important;
  background-color: rgba(11, 14, 18, 0.82) !important;
}

body.in-game #playersHud,
body.in-game #eventsHud {
  border-radius: 18px !important;
  padding: 14px 15px !important;
}
body.in-game #playersHud .playersHudTop,
body.in-game #eventsHud .eventsHudTop {
  margin: 0 0 8px 0 !important;
  padding-bottom: 7px !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
body.in-game #playersHud #playersList,
body.in-game #eventsHud #eventsList {
  padding-top: 1px !important;
}
body.in-game #playersHud .playerRow,
body.in-game #eventsHud .eventItem {
  position: relative !important;
  padding: 7px 0 !important;
  border-top: 0 !important;
}
body.in-game #playersHud .playerRow + .playerRow,
body.in-game #eventsHud .eventItem + .eventItem {
  border-top: 1px solid rgba(255,255,255,0.042) !important;
}
body.in-game #playersHud .playerName,
body.in-game #eventsHud .eventItem {
  color: rgba(241,244,247,0.88) !important;
}
body.in-game #playersHud .playerPercent {
  color: rgba(220,226,232,0.70) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}
body.in-game #playersHud .you {
  color: rgba(255,255,255,0.98) !important;
}
body.in-game #playersHud .playerRole.bot {
  color: rgba(200,206,212,0.50) !important;
  text-shadow: none !important;
}

body.in-game #playersHudToggle,
body.in-game #eventsHudToggle {
  width: 23px !important;
  min-width: 23px !important;
  height: 23px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.04) !important;
  color: rgba(236,240,244,0.82) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}
body.in-game #playersHudToggle:hover,
body.in-game #eventsHudToggle:hover {
  background: rgba(255,255,255,0.08) !important;
}

body.in-game #buildWrap {
  background: transparent !important;
}
body.in-game #buildToggle {
  height: 38px !important;
  min-width: 84px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  background-color: rgba(9, 12, 16, 0.72) !important;
  color: rgba(240,243,246,0.84) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.03) !important;
}
body.in-game #buildWrap.open #buildToggle {
  border-color: rgba(113,232,150,0.34) !important;
  color: rgba(243,247,244,0.96) !important;
}
body.in-game #buildBar {
  gap: 8px !important;
  padding-bottom: 3px !important;
}
body.in-game .buildItem {
  width: 74px !important;
  min-width: 74px !important;
  height: 98px !important;
  border-radius: 16px !important;
  justify-content: flex-start !important;
  padding: 10px 6px 8px !important;
}
body.in-game .buildItem:hover {
  transform: translateY(-2px) !important;
  background-color: rgba(12, 16, 21, 0.78) !important;
  box-shadow: 0 14px 26px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
body.in-game .buildItem.selected {
  border-color: rgba(113,232,150,0.48) !important;
  background-color: rgba(12, 18, 18, 0.86) !important;
  box-shadow: 0 14px 26px rgba(0,0,0,0.24), inset 0 0 0 1px rgba(113,232,150,0.12) !important;
}
body.in-game .hotkey {
  top: 7px !important;
  left: 7px !important;
  font-size: 10px !important;
  letter-spacing: 0.06em !important;
  color: rgba(219,224,229,0.46) !important;
}
body.in-game .buildCanvas {
  width: 46px !important;
  height: 46px !important;
  margin: 6px auto 5px !important;
  filter: brightness(1.22) contrast(1.08) saturate(0.92) !important;
}
body.in-game .buildName {
  font-size: 10.5px !important;
  font-weight: 650 !important;
  margin-top: 3px !important;
  color: rgba(245,247,248,0.90) !important;
}
body.in-game .buildPrice {
  font-size: 10px !important;
  margin-top: 1px !important;
  color: rgba(220,228,233,0.62) !important;
}

body.in-game #safeTimeHud {
  background-color: rgba(9, 12, 16, 0.76) !important;
  border-radius: 999px !important;
  padding: 10px 15px !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  color: rgba(231,235,239,0.84) !important;
}

body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #winOverlay .winCard {
  border-radius: 18px !important;
}
body.in-game #allianceRequestHud {
  padding: 14px 15px !important;
}
body.in-game #allianceRequestText,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirmText,
body.in-game #winOverlay .winText {
  color: rgba(225,230,235,0.76) !important;
  line-height: 1.45 !important;
}
body.in-game #allianceRequestHud button,
body.in-game #diplomacyMenu button,
body.in-game .demolishConfirmActions button,
body.in-game #continueAfterWinBtn {
  border-radius: 11px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.05) !important;
  color: rgba(241,244,247,0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}
body.in-game #allianceAcceptBtn,
body.in-game #formAllianceBtn,
body.in-game #continueAfterWinBtn {
  border-color: rgba(113,232,150,0.32) !important;
}
body.in-game #allianceAcceptBtn,
body.in-game #continueAfterWinBtn {
  color: rgba(246,250,247,0.96) !important;
}
body.in-game #allianceDeclineBtn,
body.in-game .demolishConfirmActions .demolishConfirmButton {
  border-color: rgba(255,175,125,0.22) !important;
}
body.in-game #diplomacyMenu .emojiBtn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
}
body.in-game #winOverlay .winCard {
  padding: 18px 18px 16px !important;
}
body.in-game #winOverlay .winTitle,
body.in-game .demolishConfirmTitle {
  color: rgba(248,250,251,0.95) !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 980px) {
  body.in-game #hud {
    width: min(690px, calc(100vw - 28px)) !important;
    gap: 10px !important;
    padding: 13px 14px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) {
    min-width: 170px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(2) {
    min-width: 94px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(3) {
    min-width: 104px !important;
  }
  body.in-game #hud .slider-group {
    min-width: 162px !important;
  }
  body.in-game #playersHud,
  body.in-game #eventsHud {
    width: 250px !important;
  }
}

@media (max-width: 820px) {
  body.in-game #hud {
    width: min(748px, calc(100vw - 24px)) !important;
    gap: 8px !important;
    padding: 11px 12px !important;
  }
  body.in-game #hud .hud-section,
  body.in-game #hud .slider-group {
    padding: 9px 9px !important;
    border-radius: 12px !important;
  }
  body.in-game #troopsValue {
    font-size: 22px !important;
  }
  body.in-game #coinsValue,
  body.in-game #populationValue {
    font-size: 20px !important;
  }
  body.in-game #playersHud,
  body.in-game #eventsHud {
    width: 220px !important;
    padding: 12px 13px !important;
  }
  body.in-game .buildItem {
    width: 68px !important;
    min-width: 68px !important;
    height: 92px !important;
  }
  body.in-game .buildCanvas {
    width: 42px !important;
    height: 42px !important;
  }
}


/* ALPHA 1.6ZZZZO-NG position guards for in-game HUD anchors */
body.in-game #hud {
  left: 18px !important;
  right: auto !important;
  top: auto !important;
  bottom: 18px !important;
  transform: none !important;
  z-index: 24 !important;
}
body.in-game #playersHud {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 268px !important;
  z-index: 24 !important;
}
body.in-game #eventsHud {
  right: 14px !important;
  bottom: 14px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 312px !important;
  max-height: 172px !important;
  z-index: 24 !important;
}
body.in-game #buildWrap {
  left: 18px !important;
  bottom: 110px !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: 26 !important;
}
@media (max-width: 980px) {
  body.in-game #playersHud { width: 242px !important; }
  body.in-game #eventsHud { width: 286px !important; }
}
@media (max-width: 820px) {
  body.in-game #hud { left: 12px !important; bottom: 12px !important; }
  body.in-game #buildWrap { left: 12px !important; bottom: 102px !important; }
  body.in-game #playersHud { top: 12px !important; right: 12px !important; }
  body.in-game #eventsHud { right: 12px !important; bottom: 12px !important; }
}


/* ALPHA 1.6ZZZZO-NG fixed positioning correction */
body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #backToMenuBtn,
body.in-game #safeTimeHud,
body.in-game #buildWrap {
  position: fixed !important;
}


/* ALPHA 1.6ZZZZO-NG compact-width fit corrections */
@media (max-width: 820px) {
  body.in-game #hud {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    gap: 6px !important;
    padding: 10px 10px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) { min-width: 168px !important; }
  body.in-game #hud .hud-section:nth-of-type(2) { min-width: 88px !important; }
  body.in-game #hud .hud-section:nth-of-type(3) { min-width: 92px !important; }
  body.in-game #hud .slider-group { min-width: 96px !important; }
  body.in-game #hud .hud-section,
  body.in-game #hud .slider-group {
    padding: 8px 8px !important;
  }
  body.in-game #troopsValue { font-size: 19px !important; }
  body.in-game #coinsValue,
  body.in-game #populationValue { font-size: 18px !important; }
  body.in-game #troopIncomeValue,
  body.in-game #coinIncomeValue,
  body.in-game #populationHint,
  body.in-game #attackValue { font-size: 11px !important; }
  body.in-game #playersHud,
  body.in-game #eventsHud {
    width: 292px !important;
  }
}


/* ALPHA 1.6ZZZZOA-NG · Build separation + slider neon detail fix */
body.in-game #buildWrap {
  bottom: 138px !important;
}
body.in-game #buildBar {
  position: relative !important;
}
body.in-game #buildBar::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -10px;
  bottom: -10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, rgba(8,11,15,0.36), rgba(8,11,15,0.18));
  pointer-events: none;
}
body.in-game #buildBar > * {
  position: relative;
  z-index: 1;
}
body.in-game #buildToggle {
  align-self: flex-end !important;
}
body.in-game #attackValue {
  color: var(--hud-green-main) !important;
  text-shadow: 0 0 12px rgba(113,232,150,0.28), 0 0 2px rgba(113,232,150,0.55) !important;
}
body.in-game #hud .slider-group {
  border-color: rgba(113,232,150,0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.022), inset 0 0 0 1px rgba(113,232,150,0.05) !important;
}
body.in-game #attackSlider {
  background: linear-gradient(90deg, rgba(115, 226, 156, 0.22), rgba(255,255,255,0.14)) !important;
  box-shadow: inset 0 0 0 1px rgba(113,232,150,0.08), inset 0 1px 2px rgba(0,0,0,0.36), 0 0 10px rgba(113,232,150,0.05) !important;
}
body.in-game #attackSlider::-webkit-slider-runnable-track {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(113,232,150,0.26), rgba(255,255,255,0.20)) !important;
  box-shadow: inset 0 0 12px rgba(113,232,150,0.10) !important;
}
body.in-game #attackSlider::-moz-range-track {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(113,232,150,0.26), rgba(255,255,255,0.20)) !important;
  box-shadow: inset 0 0 12px rgba(113,232,150,0.10) !important;
}
body.in-game #attackSlider::-webkit-slider-thumb {
  filter: drop-shadow(0 0 8px rgba(113,232,150,0.34)) drop-shadow(0 0 1px rgba(255,255,255,0.22)) !important;
}
body.in-game #attackSlider::-moz-range-thumb {
  filter: drop-shadow(0 0 8px rgba(113,232,150,0.34)) drop-shadow(0 0 1px rgba(255,255,255,0.22)) !important;
}
@media (max-width: 820px) {
  body.in-game #buildWrap {
    bottom: 130px !important;
  }
}


/* ALPHA 1.6ZZZZOB-NG · Toggle handle + value typography pass */
body.in-game #playersHudToggle,
body.in-game #eventsHudToggle {
  width: 26px !important;
  min-width: 26px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  opacity: 0.94 !important;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.12)) drop-shadow(0 4px 10px rgba(0,0,0,0.28)) !important;
}
body.in-game #playersHudToggle:hover,
body.in-game #eventsHudToggle:hover {
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}
body.in-game #playersHud .playersHudTop,
body.in-game #eventsHud .eventsHudTop {
  align-items: center !important;
}

body.in-game #allianceRequestHud {
  position: fixed !important;
  top: 82px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 38 !important;
  width: min(360px, calc(100vw - 28px)) !important;
  padding: 14px 16px 15px !important;
}
body.in-game #allianceRequestHud .allianceRequestActions {
  margin-top: 10px !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
}
@media (max-width: 820px) {
  body.in-game #allianceRequestHud {
    top: 72px !important;
    width: min(336px, calc(100vw - 22px)) !important;
  }
}

body.in-game #troopsValue,
body.in-game #populationValue,
body.in-game #coinsValue,
body.in-game #attackValue {
  color: rgba(246,248,250,0.97) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 0.96 !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}
body.in-game #troopsValue {
  font-size: 29px !important;
}
body.in-game #populationValue {
  font-size: 25px !important;
}
body.in-game #coinsValue {
  font-size: 27px !important;
}
body.in-game #attackValue {
  font-size: 24px !important;
  letter-spacing: -0.015em !important;
}
body.in-game #hud .hud-section .hud-value,
body.in-game #hud .slider-header #attackValue {
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

body.in-game #hud .slider-header {
  margin-bottom: 11px !important;
}
body.in-game #hud .slider-header span:first-child {
  color: rgba(190,198,205,0.52) !important;
}

@media (max-width: 980px) {
  body.in-game #troopsValue { font-size: 26px !important; }
  body.in-game #populationValue { font-size: 23px !important; }
  body.in-game #coinsValue { font-size: 24px !important; }
  body.in-game #attackValue { font-size: 22px !important; }
}
@media (max-width: 820px) {
  body.in-game #troopsValue { font-size: 21px !important; }
  body.in-game #populationValue { font-size: 20px !important; }
  body.in-game #coinsValue { font-size: 21px !important; }
  body.in-game #attackValue { font-size: 18px !important; }
  body.in-game #playersHudToggle,
  body.in-game #eventsHudToggle {
    width: 24px !important;
    min-width: 24px !important;
    height: 28px !important;
  }
}


/* ALPHA 1.6ZZZZOB-NG responsive correction pass */
@media (max-width: 980px) {
  body.in-game #hud {
    width: min(676px, calc(100vw - 26px)) !important;
    gap: 8px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) { min-width: 156px !important; }
  body.in-game #hud .hud-section:nth-of-type(2) { min-width: 84px !important; }
  body.in-game #hud .hud-section:nth-of-type(3) { min-width: 92px !important; }
  body.in-game #hud .slider-group { min-width: 124px !important; }
  body.in-game #troopsValue { font-size: 24px !important; }
  body.in-game #populationValue { font-size: 21px !important; }
  body.in-game #coinsValue { font-size: 23px !important; }
  body.in-game #attackValue { font-size: 20px !important; }
}
@media (max-width: 820px) {
  body.in-game #allianceRequestHud {
    left: 14px !important;
    top: 74px !important;
    transform: none !important;
    width: min(360px, calc(100vw - 324px)) !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) { min-width: 158px !important; }
  body.in-game #hud .hud-section:nth-of-type(2) { min-width: 80px !important; }
  body.in-game #hud .hud-section:nth-of-type(3) { min-width: 86px !important; }
  body.in-game #hud .slider-group { min-width: 82px !important; }
  body.in-game #troopsValue { font-size: 20px !important; }
  body.in-game #populationValue { font-size: 18px !important; }
  body.in-game #coinsValue { font-size: 20px !important; }
  body.in-game #attackValue { font-size: 16px !important; }
}


/* ALPHA 1.6ZZZZOB-NG typography tuning correction */
body.in-game #troopsValue { font-size: 27px !important; }
body.in-game #populationValue { font-size: 23px !important; }
body.in-game #coinsValue { font-size: 25px !important; }
body.in-game #attackValue { font-size: 22px !important; }
@media (max-width: 980px) {
  body.in-game #troopsValue { font-size: 23px !important; }
  body.in-game #populationValue { font-size: 20px !important; }
  body.in-game #coinsValue { font-size: 22px !important; }
  body.in-game #attackValue { font-size: 18px !important; }
}
@media (max-width: 820px) {
  body.in-game #troopsValue { font-size: 19px !important; }
  body.in-game #populationValue { font-size: 17px !important; }
  body.in-game #coinsValue { font-size: 19px !important; }
  body.in-game #attackValue { font-size: 15px !important; }
}


/* ALPHA 1.6ZZZZOE-NG · Start Join Panel Background Pass
   Visual-only: apply the start-page map artwork as a darker, quieter, matte background to the
   JOIN THE ROUND panel while keeping the Next Round / Operations Board card above unchanged. */
#startScreen .startJoinPanel {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: rgba(10, 13, 15, 0.56) !important;
  border: 1px solid rgba(214, 209, 188, .12) !important;
  box-shadow: 0 22px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.03) !important;
  backdrop-filter: blur(10px) saturate(105%) !important;
}
#startScreen .startJoinPanel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4,6,8,0.28), rgba(4,6,8,0.48)),
    url("assets/startpage_bg_zs.png") 67% center / cover no-repeat;
  opacity: .58;
  filter: brightness(.58) saturate(.62) contrast(1.02);
  transform: scale(1.02);
}
#startScreen .startJoinPanel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,10,12,0.24), rgba(8,10,12,0.34)),
    linear-gradient(135deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.012) 38%, rgba(0,0,0,0.10) 100%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 8px);
  opacity: .92;
}
#startScreen .startJoinPanel > * {
  position: relative;
  z-index: 1;
}
#startScreen .startJoinTopline,
#startScreen .startInlineNameField,
#startScreen .lobbyServerGrid,
#startScreen .queuePanel,
#startScreen .startSupportLine {
  position: relative;
  z-index: 1;
}
#startScreen .startInlineNameField,
#startScreen .queuePanel {
  background: rgba(6, 9, 11, 0.18) !important;
}
#startScreen .startJoinTopline {
  text-shadow: 0 1px 14px rgba(0,0,0,.22) !important;
}
#startScreen .startInlineNameField input {
  background: rgba(8, 11, 14, 0.38) !important;
}


/* ALPHA 1.6ZZZZOF-NG · Start Join Panel Background Visibility Fix */
#startScreen .startJoinPanel {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025) !important;
}
#startScreen .startJoinPanel::before {
  background:
    linear-gradient(180deg, rgba(4,6,8,0.10), rgba(4,6,8,0.18)),
    url("assets/startpage_bg_zs.png") 67% center / cover no-repeat !important;
  opacity: .92 !important;
  filter: brightness(.68) saturate(.72) contrast(1.04) !important;
  transform: scale(1.02) !important;
}
#startScreen .startJoinPanel::after {
  background:
    linear-gradient(180deg, rgba(8,10,12,0.06), rgba(8,10,12,0.12)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.008) 0 1px, transparent 1px 8px) !important;
  opacity: .78 !important;
}
#startScreen .startInlineNameField,
#startScreen .queuePanel {
  background: rgba(6, 9, 11, 0.10) !important;
}
#startScreen .startInlineNameField input {
  background: rgba(8, 11, 14, 0.24) !important;
}


/* ALPHA 1.6ZZZZOG-NG · Join title center + Next Round background sync */
#startScreen .startJoinTopline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  padding: 2px 8px 8px !important;
  gap: 0 !important;
  color: rgba(244, 242, 232, 0.96) !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.05),
    0 2px 0 rgba(0,0,0,0.38),
    0 8px 18px rgba(0,0,0,0.24) !important;
}
#startScreen .startJoinTopline span,
#startScreen .startJoinTopline strong {
  display: inline-block !important;
  margin: 0 !important;
  color: rgba(244, 242, 232, 0.96) !important;
  font-size: clamp(18px, 1.55vw, 24px) !important;
  font-weight: 900 !important;
  letter-spacing: .20em !important;
  transform: perspective(500px) translateZ(0) !important;
}
#startScreen .startJoinTopline strong { display: none !important; }
#startScreen .startJoinTopline span::before {
  content: none !important;
}

#startScreen .boardingCard.boardingOpsCard {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.025) !important;
}
#startScreen .boardingCard.boardingOpsCard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4,6,8,0.10), rgba(4,6,8,0.18)),
    url("assets/startpage_bg_zs.png") 67% center / cover no-repeat;
  opacity: .92;
  filter: brightness(.68) saturate(.72) contrast(1.04);
  transform: scale(1.02);
}
#startScreen .boardingCard.boardingOpsCard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,10,12,0.06), rgba(8,10,12,0.12)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.008) 0 1px, transparent 1px 8px);
  opacity: .78;
}
#startScreen .boardingOpsCard .opsBoardTop,
#startScreen .boardingOpsCard .opsBoardLeft,
#startScreen .boardingOpsCard .opsBoardRight {
  background: transparent !important;
}
#startScreen .boardingOpsCard .opsBoardTop {
  background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.006)) !important;
}
#startScreen .boardingOpsCard .opsBoardLeft {
  background: linear-gradient(180deg, rgba(255,255,255,.008), rgba(0,0,0,.015)) !important;
}
#startScreen .boardingOpsCard .opsBoardRight {
  background: linear-gradient(180deg, rgba(255,255,255,.006), rgba(0,0,0,.05)) !important;
}

@media (max-width: 1100px) {
  #startScreen .startJoinTopline span,
  #startScreen .startJoinTopline strong {
    font-size: clamp(16px, 1.5vw, 21px) !important;
    letter-spacing: .18em !important;
  }
}
@media (max-width: 820px) {
  #startScreen .startJoinTopline {
    padding-bottom: 6px !important;
  }
  #startScreen .startJoinTopline span,
  #startScreen .startJoinTopline strong {
    font-size: 16px !important;
    letter-spacing: .16em !important;
  }
}


/* ALPHA 1.6ZZZZOI-NG · Unified Ingame HUD System */
:root {
  --ui-hud-surface: rgba(18, 21, 25, 0.92);
  --ui-hud-surface-2: rgba(23, 26, 31, 0.92);
  --ui-hud-well: rgba(255, 255, 255, 0.024);
  --ui-hud-frame: rgba(255, 255, 255, 0.055);
  --ui-hud-frame-soft: rgba(255, 255, 255, 0.028);
  --ui-hud-shadow: 0 16px 34px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.040), inset 0 -1px 0 rgba(0,0,0,0.42), inset 0 0 0 1px rgba(255,255,255,0.025);
  --ui-hud-shadow-soft: 0 10px 22px rgba(0,0,0,0.19), inset 0 1px 0 rgba(255,255,255,0.030), inset 0 -1px 0 rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.020);
  --ui-hud-white: rgba(244, 246, 248, 0.98);
  --ui-hud-white-soft: rgba(224, 229, 233, 0.86);
  --ui-hud-white-dim: rgba(196, 204, 212, 0.62);
  --ui-hud-orange: rgba(229, 167, 103, 0.96);
  --ui-hud-orange-soft: rgba(214, 160, 108, 0.74);
}

body.in-game #backToMenuBtn,
body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #buildToggle,
body.in-game #buildBar,
body.in-game .buildItem,
body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #safeTimeHud,
body.in-game #winOverlay .winCard {
  background-color: var(--ui-hud-surface) !important;
  background-image: url("assets/hud_material_noise.png") !important;
  background-repeat: repeat !important;
  background-size: 128px 128px !important;
  border: 0 !important;
  outline: 0 !important;
  color: var(--ui-hud-white-soft) !important;
  box-shadow: var(--ui-hud-shadow) !important;
  backdrop-filter: blur(8px) saturate(102%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(102%) !important;
}

body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #buildBar,
body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #winOverlay .winCard {
  position: relative !important;
  overflow: hidden !important;
}

body.in-game #hud::before,
body.in-game #playersHud::before,
body.in-game #eventsHud::before,
body.in-game #buildBar::before,
body.in-game #allianceRequestHud::before,
body.in-game #diplomacyMenu::before,
body.in-game #buildingTooltip::before,
body.in-game #buildInfoTooltip::before,
body.in-game .demolishConfirm::before,
body.in-game #winOverlay .winCard::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  border-radius: inherit !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.022), inset 0 10px 14px rgba(255,255,255,0.010), inset 0 -12px 18px rgba(0,0,0,0.16) !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  pointer-events: none !important;
}

body.in-game #hud {
  width: min(728px, calc(100vw - 32px)) !important;
  padding: 13px 14px !important;
  gap: 10px !important;
  border-radius: 20px !important;
}

body.in-game #hud .hud-section,
body.in-game #hud .slider-group {
  min-height: 76px !important;
  padding: 10px 12px !important;
  border-radius: 15px !important;
  background-color: var(--ui-hud-well) !important;
  background-image: url("assets/hud_material_noise.png") !important;
  background-repeat: repeat !important;
  background-size: 128px 128px !important;
  border: 0 !important;
  box-shadow: var(--ui-hud-shadow-soft) !important;
}
body.in-game #hud .hud-section:nth-of-type(1) { min-width: 178px !important; }
body.in-game #hud .hud-section:nth-of-type(2) { min-width: 116px !important; }
body.in-game #hud .hud-section:nth-of-type(3) { min-width: 126px !important; }
body.in-game #hud .slider-group {
  min-width: 204px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

body.in-game #hud .hud-title,
body.in-game #hud .slider-header span:first-child,
body.in-game .panel-title,
body.in-game #buildToggle,
body.in-game #safeTimeHud,
body.in-game #allianceRequestHud .allianceRequestTitle,
body.in-game #diplomacyMenu .diploName,
body.in-game .demolishConfirmTitle,
body.in-game #winOverlay .winTitle {
  color: var(--ui-hud-white-dim) !important;
  letter-spacing: 0.15em !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}

body.in-game #troopsValue,
body.in-game #populationValue,
body.in-game #coinsValue,
body.in-game #attackValue {
  color: var(--ui-hud-white) !important;
  font-weight: 820 !important;
  letter-spacing: -0.03em !important;
  line-height: 0.96 !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 2px 0 rgba(0,0,0,0.28), 0 8px 12px rgba(0,0,0,0.14) !important;
}
body.in-game #troopsValue { font-size: 30px !important; }
body.in-game #populationValue { font-size: 25px !important; }
body.in-game #coinsValue { font-size: 28px !important; }
body.in-game #attackValue {
  font-size: 24px !important;
  text-transform: none !important;
  color: var(--ui-hud-white) !important;
}

body.in-game #troopIncomeValue,
body.in-game #populationHint,
body.in-game .soft,
body.in-game #playersHud .playerPercent,
body.in-game #eventsHud .eventItem,
body.in-game .buildName,
body.in-game #allianceRequestText,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirmText,
body.in-game #winOverlay .winText {
  color: var(--ui-hud-white-soft) !important;
  font-size: 12px !important;
  text-shadow: none !important;
}
body.in-game #coinIncomeValue,
body.in-game .buildPrice,
body.in-game .playerRole.bot,
body.in-game .demolishConfirmRefund,
body.in-game #diplomacyMenu .emojiBtn[title],
body.in-game .hotkey {
  color: var(--ui-hud-orange-soft) !important;
  text-shadow: none !important;
}
body.in-game #coinIncomeValue,
body.in-game #troopIncomeValue,
body.in-game #populationHint,
body.in-game .buildPrice {
  font-size: 11.5px !important;
  font-weight: 650 !important;
}
body.in-game #hud .slider-header {
  margin-bottom: 12px !important;
  align-items: center !important;
}

body.in-game #attackSlider {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 7px !important;
  border-radius: 999px !important;
  background-color: rgba(255,255,255,0.10) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.028) !important;
}
body.in-game #attackSlider::-webkit-slider-runnable-track,
body.in-game #attackSlider::-moz-range-track {
  height: 7px !important;
  border-radius: 999px !important;
  background-color: rgba(255,255,255,0.10) !important;
  background-image: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.028) !important;
}
body.in-game #attackSlider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 28px !important;
  height: 34px !important;
  margin-top: -14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
}
body.in-game #attackSlider::-moz-range-thumb {
  width: 28px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: pointer !important;
}

body.in-game #backToMenuBtn {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 13px !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: 0.14em !important;
  color: var(--ui-hud-white-soft) !important;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease !important;
}
body.in-game #backToMenuBtn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 28px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.042), inset 0 -1px 0 rgba(0,0,0,0.44), inset 0 0 0 1px rgba(255,255,255,0.032) !important;
  background-color: var(--ui-hud-surface-2) !important;
  color: var(--ui-hud-white) !important;
}

body.in-game #playersHud,
body.in-game #eventsHud {
  border-radius: 20px !important;
  padding: 13px 14px !important;
}
body.in-game #playersHud .playersHudTop,
body.in-game #eventsHud .eventsHudTop {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  align-items: center !important;
}
body.in-game #playersHud #playersList,
body.in-game #eventsHud #eventsList {
  padding-top: 2px !important;
}
body.in-game #playersHud .playerRow,
body.in-game #eventsHud .eventItem {
  padding: 7px 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.in-game #playersHud .playerRow + .playerRow,
body.in-game #eventsHud .eventItem + .eventItem {
  border: 0 !important;
  margin-top: 1px !important;
}
body.in-game #playersHud .playerName,
body.in-game #playersHud .you,
body.in-game #eventsHud .eventItem {
  color: var(--ui-hud-white-soft) !important;
}
body.in-game #playersHud .you {
  color: var(--ui-hud-white) !important;
}
body.in-game #playersHud .playerRole.real {
  color: var(--ui-hud-white-dim) !important;
}

body.in-game #playersHudToggle,
body.in-game #eventsHudToggle {
  width: 24px !important;
  min-width: 24px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  filter: none !important;
  opacity: 0.92 !important;
  box-shadow: none !important;
  transition: transform .22s ease, opacity .22s ease !important;
}
body.in-game #playersHudToggle:hover,
body.in-game #eventsHudToggle:hover {
  transform: translateY(-1px) !important;
  opacity: 1 !important;
}

body.in-game #buildWrap {
  background: transparent !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 10px !important;
  bottom: 138px !important;
}
body.in-game #buildToggle {
  height: 40px !important;
  min-width: 90px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  color: var(--ui-hud-white-soft) !important;
  align-self: flex-end !important;
  transition: transform .24s ease, box-shadow .24s ease, color .24s ease, background-color .24s ease !important;
}
body.in-game #buildToggle:hover {
  transform: translateY(-1px) !important;
  color: var(--ui-hud-white) !important;
  background-color: var(--ui-hud-surface-2) !important;
}
body.in-game #buildWrap.open #buildToggle {
  color: var(--ui-hud-white) !important;
}
body.in-game #buildBar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: thin !important;
  border-radius: 20px !important;
  max-width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  transform: translateX(-10px) translateY(2px) !important;
  pointer-events: none !important;
  transition: max-width .34s cubic-bezier(.22,.7,.2,1), opacity .26s ease, transform .34s cubic-bezier(.22,.7,.2,1), padding .34s cubic-bezier(.22,.7,.2,1) !important;
}
body.in-game #buildWrap.open #buildBar {
  max-width: min(688px, calc(100vw - 132px)) !important;
  opacity: 1 !important;
  padding: 10px 12px !important;
  transform: translateX(0) translateY(0) !important;
  pointer-events: auto !important;
}
body.in-game .buildItem {
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  height: 98px !important;
  padding: 10px 6px 8px !important;
  border-radius: 15px !important;
  justify-content: flex-start !important;
  background-color: rgba(255,255,255,0.022) !important;
  background-image: url("assets/hud_material_noise.png") !important;
  background-repeat: repeat !important;
  background-size: 128px 128px !important;
  border: 0 !important;
  box-shadow: var(--ui-hud-shadow-soft) !important;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease !important;
}
body.in-game .buildItem:hover {
  transform: translateY(-1px) !important;
  background-color: rgba(255,255,255,0.034) !important;
  box-shadow: 0 14px 24px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,255,255,0.034), inset 0 -1px 0 rgba(0,0,0,0.24), inset 0 0 0 1px rgba(255,255,255,0.022) !important;
}
body.in-game .buildItem.selected {
  background-color: rgba(255,255,255,0.042) !important;
  box-shadow: 0 14px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.040), inset 0 -1px 0 rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.036) !important;
}
body.in-game .hotkey {
  top: 7px !important;
  left: 7px !important;
  font-size: 10px !important;
  letter-spacing: 0.05em !important;
}
body.in-game .buildCanvas {
  width: 48px !important;
  height: 48px !important;
  margin: 5px auto 5px !important;
  filter: brightness(1.34) contrast(1.10) saturate(0.96) !important;
}
body.in-game .buildName {
  font-size: 10.5px !important;
  font-weight: 650 !important;
  margin-top: 2px !important;
  color: var(--ui-hud-white-soft) !important;
}
body.in-game .buildPrice {
  font-size: 10px !important;
  margin-top: 1px !important;
  color: var(--ui-hud-orange-soft) !important;
}

body.in-game #safeTimeHud {
  border-radius: 999px !important;
  padding: 10px 15px !important;
  color: var(--ui-hud-white-soft) !important;
}
body.in-game #safeTimeValue { color: var(--ui-hud-white) !important; }

body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #winOverlay .winCard {
  border-radius: 20px !important;
}
body.in-game #allianceRequestHud {
  width: min(360px, calc(100vw - 28px)) !important;
  padding: 14px 16px 15px !important;
}
body.in-game #allianceRequestHud .allianceRequestActions {
  margin-top: 10px !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
}
body.in-game #allianceRequestHud button,
body.in-game #diplomacyMenu button,
body.in-game .demolishConfirmActions button,
body.in-game #continueAfterWinBtn {
  border: 0 !important;
  border-radius: 12px !important;
  background-color: rgba(255,255,255,0.045) !important;
  background-image: url("assets/hud_material_noise.png") !important;
  background-repeat: repeat !important;
  background-size: 128px 128px !important;
  color: var(--ui-hud-white-soft) !important;
  box-shadow: var(--ui-hud-shadow-soft) !important;
  transition: transform .20s ease, background-color .20s ease, color .20s ease !important;
}
body.in-game #allianceRequestHud button:hover,
body.in-game #diplomacyMenu button:hover,
body.in-game .demolishConfirmActions button:hover,
body.in-game #continueAfterWinBtn:hover {
  transform: translateY(-1px) !important;
  background-color: rgba(255,255,255,0.060) !important;
  color: var(--ui-hud-white) !important;
}
body.in-game #diplomacyMenu .emojiBtn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
}
body.in-game #winOverlay .winCard {
  padding: 18px 18px 16px !important;
}

@media (max-width: 980px) {
  body.in-game #hud {
    width: min(684px, calc(100vw - 26px)) !important;
    gap: 8px !important;
    padding: 12px 12px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) { min-width: 164px !important; }
  body.in-game #hud .hud-section:nth-of-type(2) { min-width: 98px !important; }
  body.in-game #hud .hud-section:nth-of-type(3) { min-width: 112px !important; }
  body.in-game #hud .slider-group { min-width: 152px !important; }
  body.in-game #troopsValue { font-size: 26px !important; }
  body.in-game #populationValue { font-size: 22px !important; }
  body.in-game #coinsValue { font-size: 24px !important; }
  body.in-game #attackValue { font-size: 21px !important; }
  body.in-game #playersHud { width: 246px !important; }
  body.in-game #eventsHud { width: 290px !important; }
  body.in-game #buildWrap.open #buildBar { max-width: min(620px, calc(100vw - 118px)) !important; }
}
@media (max-width: 820px) {
  body.in-game #hud {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    gap: 6px !important;
    padding: 10px 10px !important;
    left: 12px !important;
    bottom: 12px !important;
  }
  body.in-game #buildWrap {
    left: 12px !important;
    bottom: 128px !important;
  }
  body.in-game #playersHud {
    top: 12px !important;
    right: 12px !important;
    width: 220px !important;
    padding: 12px 13px !important;
  }
  body.in-game #eventsHud {
    right: 12px !important;
    bottom: 12px !important;
    width: 244px !important;
    padding: 12px 13px !important;
  }
  body.in-game #hud .hud-section,
  body.in-game #hud .slider-group {
    padding: 8px 8px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) { min-width: 160px !important; }
  body.in-game #hud .hud-section:nth-of-type(2) { min-width: 82px !important; }
  body.in-game #hud .hud-section:nth-of-type(3) { min-width: 90px !important; }
  body.in-game #hud .slider-group { min-width: 94px !important; }
  body.in-game #troopsValue { font-size: 20px !important; }
  body.in-game #populationValue { font-size: 18px !important; }
  body.in-game #coinsValue { font-size: 20px !important; }
  body.in-game #attackValue { font-size: 17px !important; }
  body.in-game #playersHudToggle,
  body.in-game #eventsHudToggle {
    width: 22px !important;
    min-width: 22px !important;
    height: 28px !important;
  }
  body.in-game .buildItem {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 92px !important;
  }
  body.in-game .buildCanvas {
    width: 42px !important;
    height: 42px !important;
  }
  body.in-game #buildWrap.open #buildBar { max-width: calc(100vw - 120px) !important; }
  body.in-game #allianceRequestHud {
    left: 14px !important;
    top: 74px !important;
    transform: none !important;
    width: min(338px, calc(100vw - 28px)) !important;
  }
}


/* ALPHA 1.6ZZZZOL-NG · HUD Visibility + No Scroll Build Menu Fix
   Corrective pass after live placement-screen check: active HUD surfaces must be fully visible
   during placement/countdown, and the build menu must never become a scrollable strip. */
body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #buildWrap,
body.in-game #backToMenuBtn,
body.in-game #safeTimeHud {
  visibility: visible !important;
  opacity: 1 !important;
}

body.in-game #hud,
body.in-game #buildWrap {
  display: flex !important;
}

body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #backToMenuBtn,
body.in-game #safeTimeHud {
  display: block !important;
}

/* Keep the command HUD fully inside the visible viewport during placement/countdown. */
body.in-game #hud {
  left: max(14px, env(safe-area-inset-left)) !important;
  right: auto !important;
  top: auto !important;
  bottom: max(14px, env(safe-area-inset-bottom)) !important;
  transform: none !important;
  z-index: 44 !important;
  max-height: calc(100vh - 28px) !important;
}

/* Build lives above the command HUD, never detached in the left rail. */
body.in-game #buildWrap {
  left: max(14px, env(safe-area-inset-left)) !important;
  right: auto !important;
  top: auto !important;
  bottom: 124px !important;
  transform: none !important;
  z-index: 46 !important;
  max-width: calc(100vw - 28px) !important;
}

/* Build slide-out: no scrollbar, no scrollable strip, fit by compact sizing/wrap. */
body.in-game #buildBar,
body.in-game #buildWrap.open #buildBar {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  white-space: normal !important;
}

body.in-game #buildBar::-webkit-scrollbar,
body.in-game #buildWrap.open #buildBar::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

body.in-game #buildWrap.open #buildBar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: center !important;
  max-width: min(770px, calc(100vw - 132px)) !important;
  max-height: none !important;
  padding: 10px 12px !important;
}

body.in-game .buildItem {
  flex: 0 0 auto !important;
}

/* Prevent hidden inline styles from older screen transitions keeping HUDs invisible. */
body.in-game #hud:not(.hidden),
body.in-game #buildWrap:not(.hidden) {
  display: flex !important;
}
body.in-game #playersHud:not(.hidden),
body.in-game #eventsHud:not(.hidden),
body.in-game #backToMenuBtn:not(.hidden) {
  display: block !important;
}

/* Main HUD readable but still compact on narrower placements. */
@media (max-width: 980px) {
  body.in-game #hud {
    width: min(680px, calc(100vw - 28px)) !important;
    left: 14px !important;
    bottom: 14px !important;
  }
  body.in-game #buildWrap {
    left: 14px !important;
    bottom: 122px !important;
  }
  body.in-game #buildWrap.open #buildBar {
    max-width: min(660px, calc(100vw - 120px)) !important;
  }
  body.in-game .buildItem {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 88px !important;
  }
  body.in-game .buildCanvas {
    width: 40px !important;
    height: 40px !important;
  }
  body.in-game .buildName { font-size: 9.8px !important; }
  body.in-game .buildPrice { font-size: 9.5px !important; }
}

@media (max-width: 820px) {
  body.in-game #hud {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    left: 12px !important;
    bottom: 12px !important;
    gap: 6px !important;
    padding: 9px 9px !important;
  }
  body.in-game #hud .hud-section:nth-of-type(1) { min-width: 150px !important; }
  body.in-game #hud .hud-section:nth-of-type(2) { min-width: 76px !important; }
  body.in-game #hud .hud-section:nth-of-type(3) { min-width: 82px !important; }
  body.in-game #hud .slider-group { min-width: 82px !important; }
  body.in-game #buildWrap {
    left: 12px !important;
    bottom: 118px !important;
    max-width: calc(100vw - 24px) !important;
  }
  body.in-game #buildWrap.open #buildBar {
    max-width: calc(100vw - 118px) !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  body.in-game .buildItem {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 78px !important;
    padding: 8px 5px 6px !important;
  }
  body.in-game .buildCanvas {
    width: 34px !important;
    height: 34px !important;
    margin: 3px auto 3px !important;
  }
  body.in-game .buildName { font-size: 8.9px !important; }
  body.in-game .buildPrice { font-size: 8.6px !important; }
  body.in-game .hotkey { font-size: 8.5px !important; }
}

/* In placement/countdown, avoid showing a half-hidden command HUD behind the map edge. */
body:not(.menu-open) #hud,
body:not(.menu-open) #buildWrap,
body:not(.menu-open) #playersHud,
body:not(.menu-open) #eventsHud,
body:not(.menu-open) #backToMenuBtn {
  position: fixed !important;
}


/* ALPHA 1.6ZZZZOL-NG · build row correction after visual pass */
body.in-game #buildWrap.open #buildBar {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
body.in-game #buildBar {
  clip-path: none !important;
}
@media (max-width: 980px) {
  body.in-game #buildWrap.open #buildBar {
    flex-wrap: nowrap !important;
    max-width: none !important;
  }
}
@media (max-width: 820px) {
  body.in-game #buildWrap.open #buildBar {
    flex-wrap: wrap !important;
    max-width: calc(100vw - 118px) !important;
  }
}


/* ALPHA 1.6ZZZZOL-NG · compact fixed button widths for live placement visibility */
body.in-game #backToMenuBtn {
  width: auto !important;
  min-width: 84px !important;
  max-width: 112px !important;
  flex: 0 0 auto !important;
}
body.in-game #buildToggle {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  flex: 0 0 90px !important;
}
@media (max-width: 820px) {
  body.in-game #backToMenuBtn {
    min-width: 76px !important;
    max-width: 98px !important;
  }
  body.in-game #buildToggle {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    flex-basis: 82px !important;
  }
  body.in-game #buildWrap.open #buildBar {
    max-width: calc(100vw - 112px) !important;
  }
}


/* ALPHA 1.6ZZZZOL-NG · surgical player-role color + build offset pass */
body.in-game #playersHud .playerRole.real { color: var(--ui-hud-orange) !important; }
body.in-game #buildWrap { bottom: 162px !important; }
@media (max-width: 980px) { body.in-game #buildWrap { bottom: 160px !important; } }
@media (max-width: 820px) { body.in-game #buildWrap { bottom: 156px !important; } }


/* ALPHA 1.6ZZZZOL-NG · tooltip, safe-time and version badge correction */
body.in-game #safeTimeHud.hidden { display: none !important; visibility: hidden !important; opacity: 0 !important; }
body.in-game #buildInfoTooltip { position: fixed !important; z-index: 1000000 !important; overflow: visible !important; pointer-events: none !important; width: 264px !important; max-width: min(264px, calc(100vw - 28px)) !important; }
body.in-game #buildInfoTooltip:not(.hidden) { display: block !important; visibility: visible !important; opacity: 1 !important; }
body.in-game #buildInfoTooltip.hidden { display: none !important; visibility: hidden !important; opacity: 0 !important; }
body.in-game #versionBadge { left: auto !important; right: 14px !important; bottom: 206px !important; z-index: 18 !important; opacity: .42 !important; text-align: right !important; }
@media (max-width: 820px) { body.in-game #versionBadge { right: 12px !important; bottom: 182px !important; } }


/* ALPHA 1.6ZZZZOL-NG · build panel surface + safe-time menu fix */
body.in-game #buildBar,
body.in-game #buildWrap.open #buildBar {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.in-game #buildBar::before,
body.in-game #buildWrap.open #buildBar::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.menu-open #safeTimeHud,
body:not(.in-game) #safeTimeHud,
#safeTimeHud.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ALPHA 1.6ZZZZOL-NG · stronger build surface removal guard */
body.in-game #buildWrap {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.in-game #buildBar,
body.in-game #buildWrap.open #buildBar {
  border: 0 !important;
  outline: 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.in-game #buildBar::before,
body.in-game #buildBar::after,
body.in-game #buildWrap.open #buildBar::before,
body.in-game #buildWrap.open #buildBar::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  inset: auto !important;
  border: 0 !important;
  outline: 0 !important;
  background: none !important;
  box-shadow: none !important;
}


/* ALPHA 1.6ZZZZOL-NG · start join glass surface removal
   Visual-only: remove the single transparent/glass panel surface below the stacked
   JOIN THE ROUND title and NEXT ROUND card. Layout, size, spacing and behavior stay unchanged. */
#startScreen .startJoinPanel {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#startScreen .startJoinPanel::before,
#startScreen .startJoinPanel::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ALPHA 1.6ZZZZOL-NG · small game HUD glass surface removal
   Visual-only: remove only the four transparent/glass background surfaces inside the main game HUD.
   The large HUD container, child positions, sizes, content and behavior stay unchanged. */
body.in-game #hud > .hud-section,
body.in-game #hud > .slider-group {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.in-game #hud > .hud-section::before,
body.in-game #hud > .hud-section::after,
body.in-game #hud > .slider-group::before,
body.in-game #hud > .slider-group::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* ALPHA 1.6ZZZZOL-NG · Start join button anthracite + video map preview
   Visual-only: keep the Join Round button size, text, layout and behavior unchanged;
   only adjust its color and add a restrained high-quality hover depth response. */
#startScreen .boardingOpsCard .boardingJoinBtn {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.010) 42%, rgba(0,0,0,0.105) 100%),
    linear-gradient(180deg, rgba(49, 53, 56, 0.98), rgba(24, 27, 30, 0.98)) !important;
  border-color: rgba(213, 210, 195, 0.20) !important;
  box-shadow:
    0 10px 18px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.060),
    inset 0 -3px 0 rgba(0,0,0,0.34),
    inset 0 0 0 1px rgba(255,255,255,0.018) !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    filter .18s ease !important;
}

#startScreen .boardingOpsCard .boardingJoinBtn:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.070), rgba(255,255,255,0.014) 44%, rgba(0,0,0,0.125) 100%),
    linear-gradient(180deg, rgba(57, 61, 64, 0.99), rgba(27, 30, 33, 0.99)) !important;
  border-color: rgba(226, 221, 202, 0.28) !important;
  box-shadow:
    0 7px 14px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.075),
    inset 0 -1px 0 rgba(0,0,0,0.42),
    inset 0 0 0 1px rgba(255,255,255,0.024) !important;
  transform: translateY(1px) !important;
  filter: brightness(1.025) !important;
}


/* ALPHA 1.6ZZZZOL-NG · Recent Players 24h count accent */
#startScreen .recentPlayers24hCount {
  color: rgba(230, 154, 78, 0.96) !important;
  font-size: 12.5px !important;
  font-weight: 620 !important;
  letter-spacing: 1.15px !important;
  vertical-align: 0.02em !important;
}

/* ALPHA 1.6ZZZZOL-NG · Start next-round HUD stat readability pass
   Scope: color/depth only for the requested Startscreen Next Round / Join Round values. */
#startScreen .boardingOpsCard .opsStatLabel,
#startScreen .boardingOpsCard .opsStatRow strong,
#startScreen .boardingOpsCard .opsOnlyRealText {
  color: rgba(246, 244, 233, .94) !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.88),
    0 -1px 0 rgba(255,255,255,.055),
    0 2px 4px rgba(0,0,0,.42) !important;
}

#startScreen .boardingOpsCard .opsOnlyRealToggle {
  color: rgba(246, 244, 233, .94) !important;
}

#startScreen .boardingOpsCard .opsStatRow strong {
  color: rgba(255, 253, 243, .98) !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.94),
    0 -1px 0 rgba(255,255,255,.07),
    0 2px 5px rgba(0,0,0,.50) !important;
}

/* ALPHA 1.6ZZZZON-NG · subtle human startscreen polish pass
   Scope: visual-only refinement of the existing startscreen. No layout, UX, content,
   hierarchy, sizing or behavior changes. Background asset is subtly refined and the
   visible panels receive a restrained material/detail pass to reduce generic flatness. */
#startScreen {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 244, 219, 0.15), transparent 37%),
    linear-gradient(90deg, rgba(12,17,18,0.66), rgba(247,231,201,0.09) 33%, rgba(247,231,201,0.065) 66%, rgba(12,17,18,0.62)),
    linear-gradient(180deg, rgba(5,8,10,0.08), rgba(4,7,10,0.23)),
    url("assets/startpage_bg_zs_refined.png") center center / cover no-repeat !important;
}

#startScreen::before {
  background:
    radial-gradient(ellipse at 50% 49%, rgba(248,238,214,0.20), rgba(248,238,214,0.02) 35%, transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.16)),
    url("assets/hud_material_noise.png") center center / 118px 118px repeat;
  opacity: 0.96;
}

#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startLivePanel,
#startScreen .boardingCard,
#startScreen .startSupportLine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#startScreen .startSidePanel::before,
#startScreen .friendsPanel::before,
#startScreen .startLivePanel::before,
#startScreen .boardingCard::before,
#startScreen .startSupportLine::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.012) 28%, rgba(0,0,0,0.050) 72%, rgba(0,0,0,0.075)),
    radial-gradient(circle at 16% 0%, rgba(248,228,186,0.060), transparent 42%),
    url("assets/hud_material_noise.png") center center / 108px 108px repeat;
  opacity: 0.15;
  z-index: 0;
}

#startScreen .startSidePanel::after,
#startScreen .friendsPanel::after,
#startScreen .startLivePanel::after,
#startScreen .boardingCard::after,
#startScreen .startSupportLine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.038),
    inset 0 -20px 30px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.015);
  z-index: 0;
}

#startScreen .startSidePanel > *,
#startScreen .friendsPanel > *,
#startScreen .startLivePanel > *,
#startScreen .boardingCard > *,
#startScreen .startSupportLine > * {
  position: relative;
  z-index: 1;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle,
#startScreen .boardingEyebrow,
#startScreen .startJoinTopline,
#startScreen .boardingBody h2,
#startScreen .livePlayersSummary,
#startScreen .statRow strong,
#startScreen .scoreRow strong {
  text-shadow:
    0 1px 0 rgba(0,0,0,0.62),
    0 6px 16px rgba(0,0,0,0.18);
}

#startScreen .statRow,
#startScreen .scoreRow,
#startScreen .boardingMeta,
#startScreen .boardingCountdown,
#startScreen .livePlayersList,
#startScreen .friendsList,
#startScreen .startNameError,
#startScreen .startInlineNameField label,
#startScreen .startSupportButton,
#startScreen .startInfoButton {
  text-shadow: 0 1px 0 rgba(0,0,0,0.34);
}

#startScreen .boardingPreview.realMapPreview .boardingMapShade {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.22) 56%, rgba(0,0,0,0.43)),
    radial-gradient(circle at 68% 40%, rgba(255,244,220,0.055), transparent 42%);
}

/* ALPHA 1.6ZZZZOP-NG · stricter premium startscreen human polish
   Scope: startscreen visuals only. No layout, hierarchy, sizing, content, interaction or gameplay changes.
   Refines only the hero typography surface, the existing background material and the already visible matte panels. */
#startScreen .startLayout::before {
  animation: none !important;
  color: rgba(242, 244, 232, 0.94) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.55px rgba(3, 6, 6, 0.44) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,246,0.965) 0%, rgba(238,240,229,0.940) 48%, rgba(213,218,203,0.900) 100%),
    url("assets/hud_material_noise.png") !important;
  background-size: 100% 100%, 74px 74px !important;
  background-position: center center, 13px 7px !important;
  background-blend-mode: normal, soft-light !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: none !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.52),
    0 11px 30px rgba(0,0,0,0.48) !important;
}

#startScreen::before {
  background:
    radial-gradient(ellipse at 50% 49%, rgba(248,238,214,0.18), rgba(248,238,214,0.018) 35%, transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(0,0,0,0.175)),
    url("assets/hud_material_noise.png") center center / 112px 112px repeat !important;
  opacity: 0.92 !important;
}

#startScreen .startJoinPanel,
#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startLivePanel,
#startScreen .boardingCard,
#startScreen .startSupportLine {
  background-blend-mode: soft-light, normal !important;
}

#startScreen .startJoinPanel::before,
#startScreen .startSidePanel::before,
#startScreen .friendsPanel::before,
#startScreen .startLivePanel::before,
#startScreen .boardingCard::before,
#startScreen .startSupportLine::before {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  opacity: 0.125 !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.008) 30%, rgba(0,0,0,0.052) 100%),
    radial-gradient(circle at 18% 2%, rgba(238,224,185,0.050), transparent 38%),
    url("assets/hud_material_noise.png") 17px 11px / 94px 94px repeat !important;
  mix-blend-mode: soft-light !important;
  z-index: 0 !important;
}

#startScreen .startJoinPanel::after,
#startScreen .startSidePanel::after,
#startScreen .friendsPanel::after,
#startScreen .startLivePanel::after,
#startScreen .boardingCard::after,
#startScreen .startSupportLine::after {
  content: "" !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.030),
    inset 0 -18px 28px rgba(0,0,0,0.065),
    inset 0 0 0 1px rgba(255,255,255,0.012) !important;
  z-index: 0 !important;
}

#startScreen .startJoinPanel > *,
#startScreen .startSidePanel > *,
#startScreen .friendsPanel > *,
#startScreen .startLivePanel > *,
#startScreen .boardingCard > *,
#startScreen .startSupportLine > * {
  position: relative !important;
  z-index: 1 !important;
}

/* ALPHA 1.6ZZZZOP-NG · visual check correction: preserve title hierarchy/readability while keeping the glow removed. */
#startScreen .startLayout::before {
  color: rgba(244, 246, 236, 0.955) !important;
  -webkit-text-fill-color: rgba(244, 246, 236, 0.955) !important;
  -webkit-text-stroke: 0.42px rgba(4, 7, 7, 0.34) !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.48),
    0 10px 28px rgba(0,0,0,0.50) !important;
}

#startScreen::before {
  opacity: 0.80 !important;
}

#startScreen .startJoinPanel::before,
#startScreen .startSidePanel::before,
#startScreen .friendsPanel::before,
#startScreen .startLivePanel::before,
#startScreen .boardingCard::before,
#startScreen .startSupportLine::before {
  opacity: 0.095 !important;
}

/* ALPHA 1.6ZZZZOQ-NG · Hero typography + next-round status icon refinement
   Scope strictly limited to the large left hero title and the three small status icons
   inside the Next Round panel. No other startscreen elements, layout, content or behavior change. */
#startScreen .startLayout::before {
  font-size: clamp(56px, 7.15vw, 108px) !important;
  line-height: 0.835 !important;
  letter-spacing: -0.052em !important;
  color: rgba(245, 247, 237, 0.958) !important;
  -webkit-text-fill-color: rgba(245, 247, 237, 0.958) !important;
  -webkit-text-stroke: 0.36px rgba(5, 8, 8, 0.30) !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.52),
    0 8px 22px rgba(0,0,0,0.47) !important;
}

@media (max-width: 980px) {
  #startScreen .startLayout::before {
    font-size: clamp(46px, 10.8vw, 76px) !important;
    line-height: 0.845 !important;
    letter-spacing: -0.048em !important;
  }
}

@media (max-width: 900px) {
  #startScreen .startLayout::before {
    font-size: clamp(33px, 5.4vw, 50px) !important;
    line-height: 0.875 !important;
    letter-spacing: -0.042em !important;
  }
}

@media (max-width: 620px) {
  #startScreen .startLayout::before {
    font-size: 46px !important;
    line-height: 0.88 !important;
  }
}

#startScreen .boardingOpsCard .opsStatIcon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

#startScreen .boardingOpsCard .opsStatIcon::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(222,205,142,0.98), rgba(176,154,90,0.94)) !important;
  opacity: 0.98 !important;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.38));
  -webkit-mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-repeat: no-repeat !important;
  mask-position: center !important;
  mask-size: contain !important;
}

#startScreen .boardingOpsCard .opsStatRow:nth-of-type(1) .opsStatIcon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.1' cy='6.2' r='2.2'/%3E%3Ccircle cx='13.2' cy='7.0' r='1.8'/%3E%3Cpath d='M3.9 14.9c.55-2.25 2.14-3.66 4.34-3.66 2.17 0 3.74 1.4 4.28 3.66'/%3E%3Cpath d='M10.8 14.9c.28-1.6 1.32-2.72 2.86-2.72 1.46 0 2.5.98 2.83 2.72'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.1' cy='6.2' r='2.2'/%3E%3Ccircle cx='13.2' cy='7.0' r='1.8'/%3E%3Cpath d='M3.9 14.9c.55-2.25 2.14-3.66 4.34-3.66 2.17 0 3.74 1.4 4.28 3.66'/%3E%3Cpath d='M10.8 14.9c.28-1.6 1.32-2.72 2.86-2.72 1.46 0 2.5.98 2.83 2.72'/%3E%3C/g%3E%3C/svg%3E") !important;
}

#startScreen .boardingOpsCard .opsStatRow:nth-of-type(2) .opsStatIcon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='12' height='8' rx='2.1'/%3E%3Cpath d='M10 2.9v2.1M4 10H2.7M17.3 10H16M6 14.2v2M14 14.2v2'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='7.4' cy='9.4' r='1'/%3E%3Ccircle cx='12.6' cy='9.4' r='1'/%3E%3Cpath d='M7.5 12.1h5' stroke='black' stroke-width='1.45' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='12' height='8' rx='2.1'/%3E%3Cpath d='M10 2.9v2.1M4 10H2.7M17.3 10H16M6 14.2v2M14 14.2v2'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='7.4' cy='9.4' r='1'/%3E%3Ccircle cx='12.6' cy='9.4' r='1'/%3E%3Cpath d='M7.5 12.1h5' stroke='black' stroke-width='1.45' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") !important;
}

#startScreen .boardingOpsCard .opsStatRow:nth-of-type(3) .opsStatIcon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M10 10V6.4M10 10l3.3 1.9M7.1 2.8h5.8M6.4 4.3 4.9 2.8M13.6 4.3l1.5-1.5'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='M10 10V6.4M10 10l3.3 1.9M7.1 2.8h5.8M6.4 4.3 4.9 2.8M13.6 4.3l1.5-1.5'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* ALPHA 1.6ZZZZOR-NG · stricter hero and next-round icon final pass
   Scope remains strictly limited to the left hero title and the three Next Round status icons. */
#startScreen .startLayout::before {
  font-size: clamp(54px, 6.95vw, 104px) !important;
  line-height: 0.848 !important;
  letter-spacing: -0.047em !important;
  color: rgba(245, 247, 238, 0.958) !important;
  -webkit-text-fill-color: rgba(245, 247, 238, 0.958) !important;
  -webkit-text-stroke: 0.34px rgba(5, 8, 8, 0.28) !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.50),
    0 6px 18px rgba(0,0,0,0.44) !important;
}

@media (max-width: 980px) {
  #startScreen .startLayout::before {
    font-size: clamp(44px, 10.2vw, 72px) !important;
    line-height: 0.858 !important;
    letter-spacing: -0.044em !important;
  }
}

@media (max-width: 900px) {
  #startScreen .startLayout::before {
    font-size: clamp(31px, 5.05vw, 47px) !important;
    line-height: 0.885 !important;
    letter-spacing: -0.039em !important;
  }
}

@media (max-width: 620px) {
  #startScreen .startLayout::before {
    font-size: 44px !important;
    line-height: 0.89 !important;
  }
}

#startScreen .boardingOpsCard .opsStatIcon {
  width: 17px !important;
  height: 17px !important;
  transform: translateY(-0.5px) !important;
}

#startScreen .boardingOpsCard .opsStatIcon::before {
  inset: 0.2px !important;
  background: linear-gradient(180deg, rgba(220,203,144,0.96), rgba(169,148,88,0.93)) !important;
  opacity: 0.97 !important;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.30));
}

#startScreen .boardingOpsCard .opsStatRow:nth-of-type(1) .opsStatIcon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='6.6' r='1.95'/%3E%3Ccircle cx='12.95' cy='7.2' r='1.55'/%3E%3Cpath d='M4.35 14.25c.5-1.9 1.95-3.05 3.95-3.05 1.98 0 3.38 1.14 3.9 3.05'/%3E%3Cpath d='M10.95 14.25c.25-1.28 1.05-2.15 2.38-2.15 1.28 0 2.1.8 2.35 2.15'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='6.6' r='1.95'/%3E%3Ccircle cx='12.95' cy='7.2' r='1.55'/%3E%3Cpath d='M4.35 14.25c.5-1.9 1.95-3.05 3.95-3.05 1.98 0 3.38 1.14 3.9 3.05'/%3E%3Cpath d='M10.95 14.25c.25-1.28 1.05-2.15 2.38-2.15 1.28 0 2.1.8 2.35 2.15'/%3E%3C/g%3E%3C/svg%3E") !important;
}

#startScreen .boardingOpsCard .opsStatRow:nth-of-type(2) .opsStatIcon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.4' y='5.8' width='11.2' height='7.2' rx='1.8'/%3E%3Cpath d='M10 3.4v1.8M6.2 14v1.7M13.8 14v1.7M3.4 10h1.1M15.5 10h1.1'/%3E%3C/g%3E%3Ccircle cx='7.65' cy='9.15' r='0.92' fill='black'/%3E%3Ccircle cx='12.35' cy='9.15' r='0.92' fill='black'/%3E%3Cpath d='M7.8 11.45h4.4' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.4' y='5.8' width='11.2' height='7.2' rx='1.8'/%3E%3Cpath d='M10 3.4v1.8M6.2 14v1.7M13.8 14v1.7M3.4 10h1.1M15.5 10h1.1'/%3E%3C/g%3E%3Ccircle cx='7.65' cy='9.15' r='0.92' fill='black'/%3E%3Ccircle cx='12.35' cy='9.15' r='0.92' fill='black'/%3E%3Cpath d='M7.8 11.45h4.4' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

#startScreen .boardingOpsCard .opsStatRow:nth-of-type(3) .opsStatIcon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10.3' r='6.1'/%3E%3Cpath d='M10 10.3V6.95M10 10.3l2.85 1.62M7.35 3.55h5.3M6.85 5.05 5.5 3.7M13.15 5.05l1.35-1.35'/%3E%3C/g%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10.3' r='6.1'/%3E%3Cpath d='M10 10.3V6.95M10 10.3l2.85 1.62M7.35 3.55h5.3M6.85 5.05 5.5 3.7M13.15 5.05l1.35-1.35'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* ALPHA 1.6ZZZZOS-NG · Ingame HUD premium material pass
   Strict scope: only in-game HUDs, their minimized/open states, hints, tooltips,
   hover states and contextual overlays. No world/map/layout/logic changes. */
:root {
  --hud-panel-noise: url("assets/hud_material_noise.png");
}

body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #safeTimeHud,
body.in-game #inactivityKickNotice,
body.in-game #winOverlay .winCard,
body.in-game #backToMenuBtn,
body.in-game #buildToggle,
body.in-game .buildItem {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.013) 24%, rgba(0,0,0,0.032) 68%, rgba(0,0,0,0.080)),
    radial-gradient(145% 125% at 14% 0%, rgba(244,247,250,0.028), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,0.012) 0%, transparent 28%, transparent 72%, rgba(255,255,255,0.010) 100%),
    var(--hud-panel-noise) !important;
  background-size: auto, auto, auto, 126px 126px !important;
  background-blend-mode: normal, screen, normal, soft-light !important;
}

body.in-game #hud,
body.in-game #playersHud,
body.in-game #eventsHud,
body.in-game #allianceRequestHud,
body.in-game #diplomacyMenu,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirm,
body.in-game #safeTimeHud,
body.in-game #inactivityKickNotice,
body.in-game #winOverlay .winCard {
  box-shadow:
    0 18px 38px rgba(0,0,0,0.28),
    0 2px 8px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.040),
    inset 0 -1px 0 rgba(0,0,0,0.24) !important;
}

body.in-game #hud::after,
body.in-game #playersHud::after,
body.in-game #eventsHud::after,
body.in-game #allianceRequestHud::after,
body.in-game #diplomacyMenu::after,
body.in-game #buildInfoTooltip::after,
body.in-game #buildingTooltip::after,
body.in-game .demolishConfirm::after,
body.in-game #winOverlay .winCard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.9;
}

body.in-game #hud::after {
  background:
    linear-gradient(90deg, rgba(113,232,150,0.026), transparent 26%, transparent 72%, rgba(217,164,103,0.028)),
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 20%, transparent 75%, rgba(0,0,0,0.060));
}
body.in-game #playersHud::after {
  background:
    radial-gradient(100% 80% at 84% 0%, rgba(109,137,171,0.080), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.015), transparent 34%, rgba(0,0,0,0.055));
}
body.in-game #eventsHud::after {
  background:
    radial-gradient(100% 86% at 16% 0%, rgba(160,124,89,0.085), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.014), transparent 34%, rgba(0,0,0,0.058));
}
body.in-game #allianceRequestHud::after,
body.in-game #diplomacyMenu::after,
body.in-game #buildInfoTooltip::after,
body.in-game #buildingTooltip::after,
body.in-game .demolishConfirm::after,
body.in-game #winOverlay .winCard::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent 26%, rgba(0,0,0,0.050));
}

body.in-game #hud > *,
body.in-game #playersHud > *,
body.in-game #eventsHud > *,
body.in-game #allianceRequestHud > *,
body.in-game #diplomacyMenu > *,
body.in-game .demolishConfirm > *,
body.in-game #winOverlay .winCard > * {
  position: relative;
  z-index: 1;
}

body.in-game #hud .hud-section,
body.in-game #hud .slider-group {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.010) 22%, rgba(0,0,0,0.045) 100%),
    var(--hud-panel-noise) center center / 132px 132px repeat,
    rgba(255,255,255,0.014) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.026),
    inset 0 -14px 22px rgba(0,0,0,0.070) !important;
}
body.in-game #hud .hud-section:nth-of-type(1) {
  background-color: rgba(111, 146, 108, 0.020) !important;
}
body.in-game #hud .hud-section:nth-of-type(2) {
  background-color: rgba(111, 123, 146, 0.020) !important;
}
body.in-game #hud .hud-section:nth-of-type(3) {
  background-color: rgba(148, 123, 95, 0.024) !important;
}
body.in-game #hud .slider-group {
  background-color: rgba(132, 142, 148, 0.018) !important;
}

body.in-game #playersHud .playersHudTop,
body.in-game #eventsHud .eventsHudTop {
  padding-top: 1px !important;
  border-bottom-color: rgba(255,255,255,0.060) !important;
}
body.in-game #playersHud .playersHudTop {
  box-shadow: inset 0 -1px 0 rgba(95,121,149,0.055) !important;
}
body.in-game #eventsHud .eventsHudTop {
  box-shadow: inset 0 -1px 0 rgba(151,118,88,0.055) !important;
}

body.in-game #hud .hud-title,
body.in-game #hud .slider-header span:first-child,
body.in-game .panel-title,
body.in-game #buildToggle,
body.in-game #safeTimeHud,
body.in-game #allianceRequestHud .allianceRequestTitle,
body.in-game #diplomacyMenu .diploName,
body.in-game .demolishConfirmTitle,
body.in-game #winOverlay .winTitle,
body.in-game .inactivityKickNoticeTitle {
  letter-spacing: 0.17em !important;
  font-weight: 760 !important;
}

body.in-game #hud .hud-value,
body.in-game #attackValue,
body.in-game #coinsValue,
body.in-game #troopsValue,
body.in-game #populationValue,
body.in-game #playersHud .playerName,
body.in-game #eventsHud .eventItem,
body.in-game #allianceRequestText,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirmText,
body.in-game #winOverlay .winText,
body.in-game .inactivityKickNoticeText {
  letter-spacing: -0.012em !important;
}

body.in-game #troopsValue,
body.in-game #coinsValue,
body.in-game #populationValue {
  line-height: 1.02 !important;
}

body.in-game #playersHud .playerRow {
  padding: 7px 0 8px !important;
}
body.in-game #playersHud .playerRow:nth-child(odd) {
  background: linear-gradient(90deg, rgba(255,255,255,0.016), transparent 55%) !important;
}
body.in-game #eventsHud .eventItem {
  padding: 7px 0 8px !important;
}
body.in-game #eventsHud .eventItem:nth-child(odd) {
  background: linear-gradient(90deg, rgba(255,245,232,0.014), transparent 55%) !important;
}
body.in-game #playersHud .playerPercent {
  color: rgba(224,229,234,0.74) !important;
}
body.in-game #eventsHud .eventItem {
  color: rgba(237,241,245,0.86) !important;
}

body.in-game #playersHud.minimized,
body.in-game #eventsHud.minimized {
  box-shadow:
    0 16px 32px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.036),
    inset 0 -1px 0 rgba(0,0,0,0.22) !important;
}
body.in-game #playersHud.minimized .panel-title,
body.in-game #eventsHud.minimized .panel-title {
  color: rgba(210,217,224,0.70) !important;
}

body.in-game #playersHudToggle,
body.in-game #eventsHudToggle {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.060), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.030) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.040),
    0 1px 4px rgba(0,0,0,0.14) !important;
  transition: background-color .14s ease, border-color .14s ease, transform .14s ease !important;
}
body.in-game #playersHudToggle:hover,
body.in-game #eventsHudToggle:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.14) !important;
  transform: translateY(-1px) !important;
}

body.in-game #buildToggle,
body.in-game #backToMenuBtn,
body.in-game #allianceRequestHud button,
body.in-game #diplomacyMenu button,
body.in-game .demolishConfirmActions button,
body.in-game #continueAfterWinBtn,
body.in-game #inactivityKickNoticeClose {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.050), rgba(255,255,255,0.018)),
    var(--hud-panel-noise) !important;
  background-size: auto, 118px 118px !important;
  background-blend-mode: normal, soft-light !important;
  box-shadow:
    0 8px 16px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.044) !important;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease !important;
}
body.in-game #buildToggle:hover,
body.in-game #backToMenuBtn:hover,
body.in-game #allianceRequestHud button:hover,
body.in-game #diplomacyMenu button:hover,
body.in-game .demolishConfirmActions button:hover,
body.in-game #continueAfterWinBtn:hover,
body.in-game #inactivityKickNoticeClose:hover {
  transform: translateY(-1px) !important;
  box-shadow:
    0 10px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.050) !important;
}

body.in-game .buildItem {
  border-color: rgba(255,255,255,0.085) !important;
  box-shadow:
    0 12px 22px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.040),
    inset 0 -12px 20px rgba(0,0,0,0.065) !important;
}
body.in-game .buildItem::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 18% 0%, rgba(255,255,255,0.042), transparent 36%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.060));
}
body.in-game .buildItem > * {
  position: relative;
  z-index: 1;
}
body.in-game .buildItem:hover {
  background-color: rgba(14, 18, 23, 0.80) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
body.in-game .buildItem.selected {
  box-shadow:
    0 14px 24px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(113,232,150,0.12),
    inset 0 1px 0 rgba(255,255,255,0.045) !important;
}

body.in-game #safeTimeHud,
body.in-game #mapStartHint,
body.in-game #inactivityKickNotice,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip {
  color: rgba(234,239,243,0.88) !important;
}
body.in-game #mapStartHint,
body.in-game .mapStartHint {
  text-shadow: 0 2px 6px rgba(0,0,0,0.34) !important;
}
body.in-game #safeTimeHud {
  border-color: rgba(255,255,255,0.10) !important;
}
body.in-game #inactivityKickNotice {
  border-color: rgba(255,255,255,0.12) !important;
}
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip {
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border-color: rgba(255,255,255,0.095) !important;
  font-size: 12.5px !important;
  box-shadow:
    0 14px 28px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

body.in-game #allianceRequestHud .allianceRequestText,
body.in-game #buildingTooltip,
body.in-game #buildInfoTooltip,
body.in-game .demolishConfirmText,
body.in-game #winOverlay .winText,
body.in-game .inactivityKickNoticeText {
  color: rgba(223,229,234,0.78) !important;
}
body.in-game #winOverlay .winCard {
  box-shadow:
    0 22px 42px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.040),
    inset 0 -1px 0 rgba(0,0,0,0.24) !important;
}

/* ALPHA 1.6ZZZZOU-NG · push slider thumb asset refinement + HUD minimize button adoption
   Scope strictly limited to assets/push_slider_thumb.png usage.
   - updated slider thumb sizing/presence
   - same PNG now used as the minimize/expand button for minimizable ingame HUDs */
body.in-game #attackSlider::-webkit-slider-thumb {
  width: 30px !important;
  height: 36px !important;
  margin-top: -15px !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.26)) !important;
}
body.in-game #attackSlider::-moz-range-thumb {
  width: 30px !important;
  height: 36px !important;
  background: url("assets/push_slider_thumb.png") center / contain no-repeat !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.26)) !important;
}

body.in-game #playersHudToggle,
body.in-game #eventsHudToggle {
  width: 30px !important;
  min-width: 30px !important;
  height: 32px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 9px !important;
  background:
    url("assets/push_slider_thumb.png") center 53% / 18px 22px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(255,255,255,0.018) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.035) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  opacity: 0.98 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
  transition: transform .14s ease, filter .14s ease, opacity .14s ease, background-color .14s ease, border-color .14s ease !important;
}
body.in-game #playersHudToggle:hover,
body.in-game #eventsHudToggle:hover {
  background:
    url("assets/push_slider_thumb.png") center 53% / 18px 22px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.060), rgba(255,255,255,0.022)),
    rgba(255,255,255,0.030) !important;
  border-color: rgba(255,255,255,0.10) !important;
  transform: translateY(-1px) !important;
  filter: brightness(1.04) drop-shadow(0 2px 4px rgba(0,0,0,0.22)) !important;
  opacity: 1 !important;
}
body.in-game #playersHud.minimized #playersHudToggle,
body.in-game #eventsHud.minimized #eventsHudToggle {
  transform: rotate(180deg) !important;
}
body.in-game #playersHud.minimized #playersHudToggle:hover,
body.in-game #eventsHud.minimized #eventsHudToggle:hover {
  transform: rotate(180deg) translateY(-1px) !important;
}

/* ALPHA 1.6ZZZZOW-NG · push thumb fit / visibility integration pass
   Scope still restricted to push_slider_thumb usage as slider thumb and HUD minimize button. */
body.in-game #attackSlider::-webkit-slider-thumb {
  width: 32px !important;
  height: 38px !important;
  margin-top: -16px !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.28)) !important;
}
body.in-game #attackSlider::-moz-range-thumb {
  width: 32px !important;
  height: 38px !important;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.28)) !important;
}
body.in-game #attackSlider:hover::-webkit-slider-thumb,
body.in-game #attackSlider:active::-webkit-slider-thumb {
  filter: brightness(1.04) drop-shadow(0 2px 6px rgba(0,0,0,0.30)) !important;
}
body.in-game #attackSlider:hover::-moz-range-thumb,
body.in-game #attackSlider:active::-moz-range-thumb {
  filter: brightness(1.04) drop-shadow(0 2px 6px rgba(0,0,0,0.30)) !important;
}

body.in-game #playersHudToggle,
body.in-game #eventsHudToggle {
  width: 32px !important;
  min-width: 32px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background:
    url("assets/push_slider_thumb.png") center 54% / 20px 24px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.050), rgba(255,255,255,0.020)),
    rgba(255,255,255,0.020) !important;
  box-shadow: 0 5px 12px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.038) !important;
}
body.in-game #playersHudToggle:hover,
body.in-game #eventsHudToggle:hover {
  background:
    url("assets/push_slider_thumb.png") center 54% / 20px 24px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.024)),
    rgba(255,255,255,0.032) !important;
}

/* ALPHA 1.6ZZZZOY-NG · opened build menu HUD-surface alignment
   Strict scope: visual background/materiality of the expanded build menu only. */
body.in-game #buildWrap.open #buildBar {
  position: relative !important;
  isolation: isolate !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.078) !important;
  background-color: rgba(9, 12, 16, 0.72) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.013) 24%, rgba(0,0,0,0.034) 68%, rgba(0,0,0,0.082)),
    radial-gradient(145% 125% at 14% 0%, rgba(244,247,250,0.028), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,0.012) 0%, transparent 28%, transparent 72%, rgba(255,255,255,0.010) 100%),
    var(--hud-panel-noise) !important;
  background-size: auto, auto, auto, 126px 126px !important;
  background-blend-mode: normal, screen, normal, soft-light !important;
  box-shadow:
    0 18px 38px rgba(0,0,0,0.28),
    0 2px 8px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.040),
    inset 0 -1px 0 rgba(0,0,0,0.24) !important;
  backdrop-filter: blur(12px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(112%) !important;
}
body.in-game #buildWrap.open #buildBar::before {
  content: "" !important;
  position: absolute !important;
  inset: 6px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(255,255,255,0.040) !important;
  pointer-events: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 0 !important;
}
body.in-game #buildWrap.open #buildBar::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: .92 !important;
  background:
    radial-gradient(120% 85% at 18% 0%, rgba(151,118,88,0.050), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.016), transparent 34%, rgba(0,0,0,0.055)) !important;
  z-index: 0 !important;
}
body.in-game #buildWrap.open #buildBar > * {
  position: relative !important;
  z-index: 1 !important;
}


/* ALPHA 1.6ZZZZOZ-NG · Build menu scale + typography alignment repair
   Scope: only the opened build menu on the in-game screen. Fixes text/scale drift
   while preserving existing position, content, interaction and HUD family material. */
body.in-game #buildWrap.open #buildBar {
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 10px 10px 9px !important;
  min-height: 104px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  background-color: rgba(9, 12, 16, 0.78) !important;
  backdrop-filter: blur(10px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(108%) !important;
}

body.in-game #buildWrap.open .buildItem {
  display: grid !important;
  grid-template-rows: 13px 47px 16px 13px !important;
  align-items: center !important;
  justify-items: center !important;
  width: 74px !important;
  min-width: 74px !important;
  height: 98px !important;
  padding: 7px 6px 7px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-align: center !important;
  line-height: 1 !important;
}

body.in-game #buildWrap.open .buildItem > * {
  position: relative !important;
  z-index: 1 !important;
}

body.in-game #buildWrap.open .hotkey {
  position: static !important;
  justify-self: start !important;
  align-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  height: 13px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 13px !important;
  transform: none !important;
  text-align: left !important;
}

body.in-game #buildWrap.open .buildCanvas {
  width: 46px !important;
  height: 46px !important;
  display: block !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
  transform: none !important;
}

body.in-game #buildWrap.open .buildName,
body.in-game #buildWrap.open .buildPrice {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.05 !important;
  box-sizing: border-box !important;
}

body.in-game #buildWrap.open .buildName {
  font-size: 10.5px !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em !important;
}

body.in-game #buildWrap.open .buildPrice {
  font-size: 10px !important;
  font-weight: 720 !important;
  letter-spacing: 0.015em !important;
}

/* ALPHA 1.6ZZZZPA-NG · Diplomacy context menu visibility repair
   Scope: restore the existing right-click diplomacy HUD for enemy players and bots.
   No gameplay, alliance, bot, push or combat logic changes. */
body.in-game #diplomacyMenu {
  position: fixed !important;
  left: auto;
  top: auto;
  width: 232px !important;
  min-width: 206px !important;
  max-width: min(260px, calc(100vw - 24px)) !important;
  z-index: 100000 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  overflow: hidden !important;
}

body.in-game #diplomacyMenu.hidden,
#diplomacyMenu.hidden {
  display: none !important;
}

body.in-game #diplomacyMenu:not(.hidden) {
  display: block !important;
}

body.in-game #diplomacyMenu .diploName {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ALPHA 1.6ZZZZPE-NG · startscreen premium optical polish
   Scope strictly limited to startpage visuals: background treatment + panel material styling.
   No layout/structure/interaction changes. */
#startScreen {
  background:
    radial-gradient(circle at 50% 43%, rgba(233, 225, 203, 0.12), transparent 34%),
    radial-gradient(circle at 50% 56%, rgba(18, 24, 26, 0.18), transparent 48%),
    linear-gradient(90deg, rgba(8,12,15,0.72), rgba(228,218,194,0.06) 34%, rgba(228,218,194,0.04) 66%, rgba(8,12,15,0.74)),
    linear-gradient(180deg, rgba(4,7,10,0.10), rgba(4,7,10,0.26)),
    url("assets/startpage_bg_zs.png") center center / cover no-repeat !important;
}

#startScreen::before {
  background:
    radial-gradient(ellipse at 50% 47%, rgba(244,236,214,0.16), rgba(244,236,214,0.02) 33%, transparent 56%),
    radial-gradient(circle at 18% 22%, rgba(198,194,182,0.08), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(198,194,182,0.07), transparent 18%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.16));
}

#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startExplainPanel,
#startScreen .startLivePanel,
#startScreen .startNamePanel,
#startScreen .startJoinPanel,
#startScreen .startSupportLine {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.008) 18%, rgba(0,0,0,0.02) 100%),
    linear-gradient(145deg, rgba(17,23,24,0.82), rgba(28,28,24,0.68)) !important;
  border: 1px solid rgba(214, 188, 137, 0.19) !important;
  box-shadow:
    0 20px 52px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.040),
    inset 0 -18px 24px rgba(0,0,0,0.07) !important;
  backdrop-filter: blur(10px) saturate(1.02);
}

#startScreen .startJoinPanel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006) 22%, rgba(0,0,0,0.03) 100%),
    linear-gradient(145deg, rgba(15,20,22,0.88), rgba(30,29,25,0.74)) !important;
  border-color: rgba(220,193,141,0.22) !important;
  box-shadow:
    0 26px 64px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.045),
    inset 0 -24px 32px rgba(0,0,0,0.08) !important;
}

#startScreen .boardingCard {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.020), rgba(255,255,255,0.005) 20%, rgba(0,0,0,0.02) 100%),
    linear-gradient(145deg, rgba(12,17,19,0.84), rgba(24,24,21,0.70)) !important;
  border: 1px solid rgba(214,188,137,0.18) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.032),
    inset 0 -18px 24px rgba(0,0,0,0.08) !important;
}

#startScreen .boardingStats span {
  background: linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.012)) , rgba(255,255,255,0.018) !important;
  border: 1px solid rgba(255,255,255,0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.028);
}

#startScreen .lobbyStatus,
#startScreen #playerNameInput,
#startScreen .startInfoButton,
#startScreen .startSupportButton {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.032) !important;
}

#startScreen #playerNameInput {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)), rgba(255,248,226,0.06) !important;
  border-color: rgba(232,201,145,0.18) !important;
}

#startScreen .startSupportLine {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005)),
    linear-gradient(145deg, rgba(17,23,24,0.78), rgba(26,26,22,0.64)) !important;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle,
#startScreen .boardingEyebrow,
#startScreen .startJoinTopline {
  color: rgba(234,205,151,0.92) !important;
}

#startScreen .statRow,
#startScreen .scoreRow,
#startScreen .startExplainPanel p,
#startScreen .startLiveHint,
#startScreen .boardingMeta,
#startScreen .boardingCountdown,
#startScreen .lobbyStatus,
#startScreen .startJoinHint,
#startScreen .livePlayersList {
  color: rgba(255,248,232,0.68) !important;
}

#startScreen .statRow strong,
#startScreen .scoreRow strong,
#startScreen .boardingCountdown strong,
#startScreen .livePlayersHud,
#startScreen .livePlayersSummary {
  color: rgba(178, 240, 196, 0.94) !important;
}

/* ALPHA 1.6ZZZZPF-NG · startscreen panel material unification pass
   Strictly visual only: remove glass/frosted feel and make panels denser, darker and more integrated. */
#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startExplainPanel,
#startScreen .startLivePanel,
#startScreen .startNamePanel,
#startScreen .startJoinPanel,
#startScreen .startSupportLine {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.005) 14%, rgba(0,0,0,0.030) 100%),
    linear-gradient(145deg, rgba(16,20,22,0.94), rgba(23,24,22,0.92) 58%, rgba(18,18,17,0.94)) !important;
  border: 1px solid rgba(198, 176, 132, 0.17) !important;
  box-shadow:
    0 18px 42px rgba(0,0,0,0.30),
    0 2px 0 rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.030),
    inset 0 -22px 26px rgba(0,0,0,0.10) !important;
  backdrop-filter: none !important;
}

#startScreen .startJoinPanel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.020), rgba(255,255,255,0.006) 12%, rgba(0,0,0,0.034) 100%),
    linear-gradient(145deg, rgba(15,18,20,0.97), rgba(24,25,22,0.95) 56%, rgba(18,18,16,0.97)) !important;
  border-color: rgba(208,185,140,0.18) !important;
  box-shadow:
    0 24px 54px rgba(0,0,0,0.34),
    0 2px 0 rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.032),
    inset 0 -28px 32px rgba(0,0,0,0.12) !important;
}

#startScreen .boardingCard {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.004) 16%, rgba(0,0,0,0.032) 100%),
    linear-gradient(145deg, rgba(11,14,16,0.96), rgba(20,21,19,0.94) 60%, rgba(16,16,15,0.95)) !important;
  border: 1px solid rgba(195,174,133,0.14) !important;
  box-shadow:
    0 14px 36px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.022),
    inset 0 -18px 24px rgba(0,0,0,0.10) !important;
}

#startScreen .boardingPreview.realMapPreview {
  background: rgba(6, 10, 13, 0.96) !important;
  border-color: rgba(194,173,132,0.13) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.018),
    inset 0 -14px 24px rgba(0,0,0,0.16);
}

#startScreen .boardingMapShade {
  background: linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.30) 58%, rgba(0,0,0,0.54)) !important;
}

#startScreen .boardingStats span,
#startScreen .lobbyStatus,
#startScreen .startInfoButton,
#startScreen .startSupportButton,
#startScreen #playerNameInput {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.006)),
    rgba(255,255,255,0.016) !important;
  border-color: rgba(255,255,255,0.050) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.022),
    inset 0 -8px 12px rgba(0,0,0,0.06) !important;
}

#startScreen #playerNameInput {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.014), rgba(255,255,255,0.004)),
    rgba(255,248,226,0.05) !important;
  border-color: rgba(219,193,146,0.14) !important;
}

#startScreen .startLivePanel,
#startScreen .startStatsPanel,
#startScreen .startHighscorePanel,
#startScreen .startFriendsPanel {
  box-shadow:
    0 16px 40px rgba(0,0,0,0.28),
    0 2px 0 rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.028),
    inset 0 -18px 24px rgba(0,0,0,0.08) !important;
}

#startScreen .startPanelTitle,
#startScreen .friendsTitle,
#startScreen .boardingEyebrow,
#startScreen .startJoinTopline {
  text-shadow: none !important;
  color: rgba(232, 204, 151, 0.90) !important;
}

#startScreen .statRow,
#startScreen .scoreRow,
#startScreen .startExplainPanel p,
#startScreen .startLiveHint,
#startScreen .boardingMeta,
#startScreen .boardingCountdown,
#startScreen .lobbyStatus,
#startScreen .startJoinHint,
#startScreen .livePlayersList {
  color: rgba(248,243,232,0.66) !important;
}

#startScreen .statRow strong,
#startScreen .scoreRow strong,
#startScreen .boardingCountdown strong,
#startScreen .livePlayersHud,
#startScreen .livePlayersSummary {
  color: rgba(170, 234, 190, 0.92) !important;
}

/* ALPHA 1.6ZZZZPG-NG · startscreen textured panel material pass
   Scope strictly limited to startscreen HUD/panel visuals.
   Integrates the provided texture PNG as a subtle material layer inside startscreen HUDs only. */
#startScreen .startSidePanel,
#startScreen .friendsPanel,
#startScreen .startExplainPanel,
#startScreen .startLivePanel,
#startScreen .startNamePanel,
#startScreen .startJoinPanel,
#startScreen .startSupportLine,
#startScreen .boardingCard,
#startScreen .boardingStats span,
#startScreen .lobbyStatus,
#startScreen .startInfoButton,
#startScreen .startSupportButton,
#startScreen #playerNameInput {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#startScreen .startSidePanel::before,
#startScreen .friendsPanel::before,
#startScreen .startExplainPanel::before,
#startScreen .startLivePanel::before,
#startScreen .startNamePanel::before,
#startScreen .startJoinPanel::before,
#startScreen .startSupportLine::before,
#startScreen .boardingCard::before,
#startScreen .boardingStats span::before,
#startScreen .lobbyStatus::before,
#startScreen .startInfoButton::before,
#startScreen .startSupportButton::before,
#startScreen #playerNameInput::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background-image: url("assets/startscreen_panel_texture.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0.070;
  filter: grayscale(1) brightness(0.42) contrast(0.92) saturate(0.7);
}

#startScreen .startJoinPanel::before {
  opacity: 0.082;
  background-position: center 42%;
}

#startScreen .boardingCard::before {
  opacity: 0.068;
  background-position: center 58%;
}

#startScreen .startLivePanel::before,
#startScreen .startStatsPanel::before,
#startScreen .startHighscorePanel::before,
#startScreen .startFriendsPanel::before {
  opacity: 0.060;
  background-position: center 50%;
}

#startScreen .startSupportLine::before,
#startScreen .boardingStats span::before,
#startScreen .lobbyStatus::before,
#startScreen .startInfoButton::before,
#startScreen .startSupportButton::before,
#startScreen #playerNameInput::before {
  opacity: 0.045;
  background-size: 160% auto;
  background-position: center 46%;
}

#startScreen .startSidePanel::after,
#startScreen .friendsPanel::after,
#startScreen .startExplainPanel::after,
#startScreen .startLivePanel::after,
#startScreen .startNamePanel::after,
#startScreen .startJoinPanel::after,
#startScreen .startSupportLine::after,
#startScreen .boardingCard::after,
#startScreen .boardingStats span::after,
#startScreen .lobbyStatus::after,
#startScreen .startInfoButton::after,
#startScreen .startSupportButton::after,
#startScreen #playerNameInput::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.020), rgba(255,255,255,0.004) 22%, rgba(0,0,0,0.040) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.010), transparent 32%, rgba(0,0,0,0.040) 100%);
}

#startScreen .startSidePanel > *,
#startScreen .friendsPanel > *,
#startScreen .startExplainPanel > *,
#startScreen .startLivePanel > *,
#startScreen .startNamePanel > *,
#startScreen .startJoinPanel > *,
#startScreen .startSupportLine > *,
#startScreen .boardingCard > *,
#startScreen .boardingStats span > *,
#startScreen .lobbyStatus > *,
#startScreen .startInfoButton > *,
#startScreen .startSupportButton > *,
#startScreen #playerNameInput > * {
  position: relative;
  z-index: 1;
}

#startScreen .boardingStats span,
#startScreen .lobbyStatus,
#startScreen .startInfoButton,
#startScreen .startSupportButton,
#startScreen #playerNameInput {
  background-color: rgba(255,255,255,0.012) !important;
}

/* ALPHA 1.6ZZZZPH-NG · central lobby board premium redesign
   Scope strictly limited to the central start/lobby area on the startscreen.
   Design goal: calm, matte, tactical RTS product UI. No glass / no neon / no sci-fi template feel. */
#startScreen .startCenterStack {
  width: min(612px, calc(100vw - 576px)) !important;
  max-width: 612px !important;
}

#startScreen .startJoinPanel {
  padding: 16px 16px 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.003) 20%, rgba(0,0,0,0.03) 100%),
    linear-gradient(180deg, rgba(24,28,29,0.94), rgba(17,20,21,0.97)) !important;
  border: 1px solid rgba(185, 190, 178, 0.12) !important;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.022),
    inset 0 -18px 28px rgba(0,0,0,0.10) !important;
  clip-path: none !important;
}

#startScreen .startJoinPanel::before {
  opacity: 0.038 !important;
  filter: grayscale(1) brightness(0.34) contrast(0.9) !important;
}

#startScreen .startJoinTopline {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(198, 201, 192, 0.08) !important;
  color: rgba(202, 206, 198, 0.66) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}
#startScreen .startJoinTopline strong {
  color: rgba(224, 229, 217, 0.92) !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
}
#startScreen .startJoinTopline span::before {
  background: rgba(124, 142, 112, 0.78) !important;
  box-shadow: none !important;
}

#startScreen .startInlineNameField {
  padding: 10px 12px 11px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.002)),
    rgba(10, 13, 14, 0.54) !important;
  border: 1px solid rgba(196, 199, 190, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.014), inset 0 -8px 18px rgba(0,0,0,0.18) !important;
}
#startScreen .startInlineNameField label {
  color: rgba(184, 188, 180, 0.70) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
}
#startScreen .startInlineNameField #playerNameInput {
  min-height: 42px !important;
  padding: 0 14px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.001)),
    rgba(15, 18, 19, 0.96) !important;
  border: 1px solid rgba(185, 191, 181, 0.10) !important;
  border-radius: 0 !important;
  color: rgba(235, 238, 231, 0.95) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.015), inset 0 -8px 14px rgba(0,0,0,0.18) !important;
}
#startScreen .startInlineNameField #playerNameInput::placeholder {
  color: rgba(127, 134, 129, 0.70) !important;
}
#startScreen .startInlineNameField #playerNameInput:focus {
  border-color: rgba(122, 140, 110, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.015), inset 0 -8px 14px rgba(0,0,0,0.18), 0 0 0 1px rgba(122, 140, 110, 0.18) !important;
}

#startScreen .lobbyServerGrid {
  margin-top: 12px !important;
}

#startScreen .boardingCard.boardingOpsCard {
  max-width: 100% !important;
  padding: 0 !important;
  clip-path: none !important;
  border: 1px solid rgba(191, 196, 185, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.002) 18%, rgba(0,0,0,0.02) 100%),
    linear-gradient(180deg, rgba(22,26,27,0.985), rgba(15,18,19,0.985)) !important;
  box-shadow:
    0 26px 68px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.018),
    inset 0 -22px 34px rgba(0,0,0,0.10) !important;
}

#startScreen .boardingOpsCard .opsBoardTop {
  height: 40px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid rgba(194, 198, 189, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.010), rgba(255,255,255,0.002)),
    rgba(255,255,255,0.008) !important;
  color: rgba(194, 198, 189, 0.58) !important;
}
#startScreen .boardingOpsCard .opsBoardLabel,
#startScreen .boardingOpsCard .opsOnlyRealToggle {
  color: rgba(194, 198, 189, 0.66) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .16em !important;
}
#startScreen .boardingOpsCard .opsCheckboxBox {
  width: 14px !important;
  height: 14px !important;
  border: 1px solid rgba(183, 188, 177, 0.34) !important;
  background: rgba(8,10,11,0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.010), inset 0 -6px 10px rgba(0,0,0,0.18) !important;
}
#startScreen .boardingOpsCard .opsOnlyRealToggle input:checked + .opsCheckboxBox {
  background: rgba(93, 109, 79, 0.94) !important;
  border-color: rgba(146, 161, 130, 0.72) !important;
}
#startScreen .boardingOpsCard .opsCheckboxBox::after {
  border-right-color: rgba(241,244,236,.92) !important;
  border-bottom-color: rgba(241,244,236,.92) !important;
}

#startScreen .boardingOpsCard .opsBoardShell {
  grid-template-columns: minmax(0, 1fr) 182px !important;
  min-height: 248px !important;
}
#startScreen .boardingOpsCard .opsBoardLeft {
  padding: 18px 18px 17px !important;
  border-right: 1px solid rgba(194, 198, 189, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.010), rgba(255,255,255,0.002) 20%, transparent 100%),
    linear-gradient(90deg, rgba(255,255,255,0.006), transparent 24%),
    rgba(255,255,255,0.008) !important;
}
#startScreen .boardingOpsCard .boardingEyebrow {
  margin: 0 0 8px !important;
  color: rgba(167, 173, 161, 0.68) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .18em !important;
}
#startScreen .boardingOpsCard h2 {
  margin: 0 0 14px !important;
  color: rgba(233, 236, 228, 0.95) !important;
  font-size: clamp(28px, 3.9vw, 42px) !important;
  line-height: .94 !important;
  letter-spacing: .10em !important;
  text-shadow: none !important;
}

#startScreen .boardingOpsCard .boardingPreview,
#startScreen .boardingOpsCard .boardingPreview.realMapPreview {
  min-height: 114px !important;
  height: 114px !important;
  clip-path: none !important;
  border: 1px solid rgba(192, 196, 186, 0.10) !important;
  background: rgba(9, 12, 12, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.016), inset 0 -18px 22px rgba(0,0,0,0.14), 0 10px 24px rgba(0,0,0,0.18) !important;
}
#startScreen .boardingOpsCard .boardingMapImage {
  transform: scale(1.008) !important;
  filter: saturate(.74) contrast(1.06) brightness(.76) sepia(.02) !important;
}
#startScreen .boardingOpsCard .boardingMapShade {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%),
    linear-gradient(180deg, transparent 46%, rgba(0,0,0,.22) 72%, rgba(0,0,0,.34)) !important;
}
#startScreen .boardingOpsCard .opsPreviewTag {
  left: 10px !important;
  bottom: 10px !important;
  padding: 5px 8px !important;
  color: rgba(228, 232, 223, 0.76) !important;
  background: rgba(10,12,13,0.68) !important;
  border: 1px solid rgba(192, 196, 186, 0.10) !important;
  font-size: 9px !important;
  letter-spacing: .14em !important;
}

#startScreen .boardingOpsCard .opsBoardRight {
  padding: 18px 16px 16px !important;
  justify-content: flex-start !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.002) 22%, transparent 100%),
    rgba(255,255,255,0.006) !important;
}
#startScreen .boardingOpsCard .opsStatRow {
  grid-template-columns: 14px minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(194, 198, 189, 0.08) !important;
}
#startScreen .boardingOpsCard .opsStatIcon {
  color: rgba(118, 132, 103, 0.86) !important;
  font-size: 12px !important;
}
#startScreen .boardingOpsCard .opsStatLabel {
  color: rgba(167, 173, 163, 0.66) !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  letter-spacing: .12em !important;
}
#startScreen .boardingOpsCard .opsStatRow strong {
  color: rgba(231, 235, 227, 0.95) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: .03em !important;
}

#startScreen .boardingOpsCard .boardingActions {
  margin-top: auto !important;
  padding-top: 14px !important;
  gap: 8px !important;
}
#startScreen .boardingOpsCard .boardingJoinBtn,
#startScreen .boardingOpsCard .boardingLeaveBtn,
#startScreen .boardingOpsCard.locked .boardingLeaveBtn {
  height: 42px !important;
  border: 1px solid rgba(154, 166, 145, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.020), rgba(255,255,255,0.004) 22%, rgba(0,0,0,0.04) 100%),
    rgba(54, 62, 51, 0.92) !important;
  color: rgba(237, 240, 233, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.015), inset 0 -10px 14px rgba(0,0,0,0.14), 0 8px 18px rgba(0,0,0,0.18) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .14em !important;
  border-radius: 0 !important;
}
#startScreen .boardingOpsCard .boardingJoinBtn::after,
#startScreen .boardingOpsCard .boardingLeaveBtn::after {
  color: rgba(222, 228, 217, 0.58) !important;
  font-size: 21px !important;
}
#startScreen .boardingOpsCard .boardingJoinBtn:hover:not(:disabled),
#startScreen .boardingOpsCard .boardingLeaveBtn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.006) 22%, rgba(0,0,0,0.04) 100%),
    rgba(64, 74, 60, 0.95) !important;
  border-color: rgba(170, 182, 160, 0.46) !important;
  transform: translateY(-1px) !important;
}
#startScreen .boardingOpsCard .boardingJoinBtn:disabled {
  background: rgba(44, 49, 46, 0.92) !important;
  border-color: rgba(120, 124, 118, 0.18) !important;
  color: rgba(179, 184, 176, 0.62) !important;
  opacity: 1 !important;
}

@media (max-width: 1100px) {
  #startScreen .startCenterStack {
    width: min(700px, calc(100vw - 28px)) !important;
    max-width: 700px !important;
  }
}
@media (max-width: 900px) {
  #startScreen .boardingOpsCard .opsBoardTop {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
  }
  #startScreen .boardingOpsCard .opsBoardShell {
    grid-template-columns: minmax(0, 1fr) 158px !important;
  }
  #startScreen .boardingOpsCard .opsBoardLeft {
    padding: 16px 15px 15px !important;
  }
  #startScreen .boardingOpsCard h2 {
    font-size: clamp(24px, 5vw, 34px) !important;
  }
  #startScreen .boardingOpsCard .opsBoardRight {
    padding: 16px 14px 14px !important;
  }
}
@media (max-width: 640px) {
  #startScreen .startJoinPanel {
    padding: 12px !important;
  }
  #startScreen .boardingOpsCard .opsBoardShell {
    grid-template-columns: 1fr !important;
  }
  #startScreen .boardingOpsCard .opsBoardLeft {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(194,198,189,0.08) !important;
  }
  #startScreen .boardingOpsCard .opsBoardRight {
    padding: 14px !important;
  }
}

/* ALPHA 1.6ZZZZPI-NG · Targeted Game Join / Next Game / Players HUD refinement
   STRICT SCOPE: only the central-right Game Join / Next Game / Players HUD block on the startscreen.
   No global menu, left title, left stats, top-right online HUD, background, gameplay or other screen changes. */
#startScreen .startCenterStack {
  width: min(616px, calc(100vw - 576px)) !important;
  max-width: 616px !important;
}

#startScreen .startCenterStack .startJoinPanel {
  padding: 15px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.010), rgba(255,255,255,0.002) 19%, rgba(0,0,0,0.036) 100%),
    linear-gradient(135deg, rgba(21,25,26,0.97), rgba(15,18,19,0.985) 58%, rgba(13,16,17,0.988)) !important;
  border: 1px solid rgba(174, 181, 170, 0.13) !important;
  box-shadow:
    0 26px 64px rgba(0,0,0,0.39),
    0 1px 0 rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.018),
    inset 0 -18px 26px rgba(0,0,0,0.12) !important;
}

#startScreen .startCenterStack .startJoinPanel::before {
  opacity: 0.032 !important;
  filter: grayscale(1) brightness(0.32) contrast(0.86) !important;
}

#startScreen .startCenterStack .startJoinTopline {
  min-height: 38px !important;
  margin: 0 -2px 12px !important;
  padding: 0 12px 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(180, 187, 177, 0.075) !important;
  color: rgba(188, 195, 186, 0.64) !important;
  font-size: 10.5px !important;
  font-weight: 780 !important;
  letter-spacing: .19em !important;
  line-height: 1 !important;
  text-shadow: none !important;
}
#startScreen .startCenterStack .startJoinTopline strong {
  color: rgba(226, 231, 222, 0.92) !important;
  font-size: 10px !important;
  font-weight: 820 !important;
  letter-spacing: .13em !important;
}
#startScreen .startCenterStack .startJoinTopline span::before {
  width: 15px !important;
  background: rgba(113, 130, 102, 0.82) !important;
  box-shadow: none !important;
}

#startScreen .startCenterStack .startInlineNameField {
  margin-bottom: 12px !important;
  padding: 10px 11px 11px !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.002)),
    rgba(8, 11, 12, 0.58) !important;
  border: 1px solid rgba(176, 184, 173, 0.080) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.012),
    inset 0 -10px 18px rgba(0,0,0,0.18) !important;
}
#startScreen .startCenterStack .startInlineNameField label {
  margin: 0 !important;
  color: rgba(169, 177, 168, 0.70) !important;
  font-size: 9.5px !important;
  font-weight: 860 !important;
  letter-spacing: .14em !important;
  white-space: nowrap !important;
}
#startScreen .startCenterStack .startInlineNameField #playerNameInput {
  height: 39px !important;
  min-height: 39px !important;
  padding: 0 12px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.006), rgba(255,255,255,0.001)),
    rgba(10, 13, 14, 0.98) !important;
  border: 1px solid rgba(173, 181, 170, 0.10) !important;
  color: rgba(234, 238, 231, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.012),
    inset 0 -8px 14px rgba(0,0,0,0.20) !important;
}
#startScreen .startCenterStack .startInlineNameField #playerNameInput:focus {
  border-color: rgba(118, 135, 108, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.012),
    inset 0 -8px 14px rgba(0,0,0,0.20),
    0 0 0 1px rgba(118, 135, 108, 0.18) !important;
}
#startScreen .startCenterStack .startInlineNameField #startNameError {
  grid-column: 2 !important;
}

#startScreen .startCenterStack .lobbyServerGrid {
  margin-top: 0 !important;
}

#startScreen .startCenterStack .boardingCard.boardingOpsCard {
  border: 1px solid rgba(176, 184, 172, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.009), rgba(255,255,255,0.002) 18%, rgba(0,0,0,0.025) 100%),
    linear-gradient(135deg, rgba(19,23,24,0.992), rgba(13,16,17,0.992)) !important;
  box-shadow:
    0 28px 70px rgba(0,0,0,0.45),
    0 1px 0 rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.014),
    inset 0 -24px 32px rgba(0,0,0,0.105) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardTop {
  height: 38px !important;
  padding: 0 15px !important;
  border-bottom: 1px solid rgba(176, 184, 172, 0.080) !important;
  background: rgba(255,255,255,0.006) !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsBoardLabel,
#startScreen .startCenterStack .boardingOpsCard .opsOnlyRealToggle {
  color: rgba(181, 189, 178, 0.65) !important;
  font-size: 9.5px !important;
  font-weight: 820 !important;
  letter-spacing: .15em !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsOnlyRealText {
  color: rgba(207, 213, 203, 0.78) !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsCheckboxBox {
  width: 13px !important;
  height: 13px !important;
  border-color: rgba(170, 180, 165, 0.36) !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsOnlyRealToggle input:checked + .opsCheckboxBox {
  background: rgba(83, 102, 74, 0.92) !important;
  border-color: rgba(132, 150, 118, 0.78) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardShell {
  grid-template-columns: minmax(0, 1fr) 180px !important;
  min-height: 246px !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsBoardLeft {
  padding: 18px 18px 16px !important;
  border-right: 1px solid rgba(176,184,172,0.085) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.010) 0px, rgba(255,255,255,0.010) 1px, transparent 1px, transparent 9px),
    rgba(255,255,255,0.005) !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingEyebrow {
  margin-bottom: 9px !important;
  color: rgba(157, 168, 150, 0.74) !important;
  font-size: 9.5px !important;
  font-weight: 880 !important;
  letter-spacing: .18em !important;
}
#startScreen .startCenterStack .boardingOpsCard h2 {
  margin-bottom: 13px !important;
  color: rgba(232, 236, 228, 0.95) !important;
  font-size: clamp(29px, 3.85vw, 41px) !important;
  letter-spacing: .108em !important;
  font-weight: 820 !important;
  text-shadow: none !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingPreview,
#startScreen .startCenterStack .boardingOpsCard .boardingPreview.realMapPreview {
  height: 116px !important;
  min-height: 116px !important;
  border: 1px solid rgba(177, 184, 174, 0.115) !important;
  background: rgba(6, 9, 10, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.014),
    inset 0 -16px 22px rgba(0,0,0,0.15),
    0 11px 26px rgba(0,0,0,0.20) !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingPreview::before,
#startScreen .startCenterStack .boardingOpsCard .boardingPreview::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingPreview::before {
  opacity: .10 !important;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 13px, rgba(255,255,255,.035) 14px),
    repeating-linear-gradient(90deg, transparent 0, transparent 17px, rgba(0,0,0,.10) 18px) !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingPreview::after {
  opacity: .16 !important;
  background: radial-gradient(circle at 20% 18%, rgba(255,255,255,.08), transparent 30%), linear-gradient(180deg, transparent 58%, rgba(0,0,0,.20)) !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingMapImage {
  transform: scale(1.006) !important;
  filter: saturate(.68) contrast(1.09) brightness(.74) sepia(.025) !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingMapShade {
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.26)) !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsPreviewTag {
  z-index: 3 !important;
  left: 10px !important;
  bottom: 9px !important;
  padding: 5px 8px !important;
  color: rgba(220, 226, 216, 0.74) !important;
  background: rgba(9, 11, 12, 0.76) !important;
  border-color: rgba(177, 184, 174, 0.12) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardRight {
  padding: 17px 15px 15px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.006), transparent 22%),
    rgba(255,255,255,0.004) !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsStatRow {
  grid-template-columns: 13px minmax(0, 1fr) auto !important;
  gap: 7px !important;
  padding: 10px 0 !important;
  border-bottom-color: rgba(176, 184, 172, 0.080) !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsStatIcon {
  color: rgba(112, 128, 101, 0.92) !important;
  font-size: 11px !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsStatLabel {
  color: rgba(162, 170, 160, 0.68) !important;
  font-size: 8.7px !important;
  font-weight: 880 !important;
  letter-spacing: .12em !important;
}
#startScreen .startCenterStack .boardingOpsCard .opsStatRow strong {
  color: rgba(234, 238, 231, 0.95) !important;
  font-size: 15px !important;
  font-weight: 870 !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingActions {
  margin-top: auto !important;
  padding-top: 15px !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn,
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn,
#startScreen .startCenterStack .boardingOpsCard.locked .boardingLeaveBtn {
  height: 41px !important;
  border: 1px solid rgba(138, 154, 129, 0.38) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.016), rgba(255,255,255,0.004) 25%, rgba(0,0,0,0.050) 100%),
    rgba(49, 59, 48, 0.94) !important;
  color: rgba(235, 240, 232, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.014),
    inset 0 -9px 14px rgba(0,0,0,0.15),
    0 8px 18px rgba(0,0,0,0.20) !important;
  font-size: 11.5px !important;
  font-weight: 880 !important;
  letter-spacing: .145em !important;
}
#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn:hover:not(:disabled),
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.005) 25%, rgba(0,0,0,0.045) 100%),
    rgba(58, 70, 56, 0.97) !important;
  border-color: rgba(153, 171, 142, 0.50) !important;
}

@media (max-width: 1100px) {
  #startScreen .startCenterStack { width: min(700px, calc(100vw - 28px)) !important; max-width: 700px !important; }
}
@media (max-width: 900px) {
  #startScreen .startCenterStack .startInlineNameField { grid-template-columns: 98px minmax(0,1fr) !important; }
  #startScreen .startCenterStack .boardingOpsCard .opsBoardShell { grid-template-columns: minmax(0,1fr) 158px !important; }
}
@media (max-width: 640px) {
  #startScreen .startCenterStack .startInlineNameField { grid-template-columns: 1fr !important; align-items: start !important; gap: 7px !important; }
  #startScreen .startCenterStack .boardingOpsCard .opsBoardShell { grid-template-columns: 1fr !important; }
  #startScreen .startCenterStack .boardingOpsCard .opsBoardLeft { border-right: 0 !important; border-bottom: 1px solid rgba(176,184,172,0.085) !important; }
}

/* ALPHA 1.6ZZZZPI-NG · visual verification correction: keep player-name input full-width inside the target HUD. */
#startScreen .startCenterStack .startInlineNameField {
  display: block !important;
}
#startScreen .startCenterStack .startInlineNameField label {
  display: block !important;
  margin: 0 0 7px !important;
}
#startScreen .startCenterStack .startInlineNameField #playerNameInput {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
#startScreen .startCenterStack .startInlineNameField #startNameError {
  display: block !important;
  grid-column: auto !important;
}


/* ALPHA 1.6ZZZZPJ-NG · visual alignment check correction
   Strict scope: start-screen Game Join / Next Round / Players HUD block only.
   Purpose: clean line/frame alignment and box sizing after visual inspection.
   No gameplay, text, color, icon, animation, global screen or build-menu changes. */
#startScreen .startCenterStack .startJoinPanel,
#startScreen .startCenterStack .startJoinTopline,
#startScreen .startCenterStack .startInlineNameField,
#startScreen .startCenterStack .boardingCard.boardingOpsCard,
#startScreen .startCenterStack .boardingOpsCard .opsBoardTop,
#startScreen .startCenterStack .boardingOpsCard .opsBoardShell,
#startScreen .startCenterStack .boardingOpsCard .opsBoardLeft,
#startScreen .startCenterStack .boardingOpsCard .opsBoardRight,
#startScreen .startCenterStack .boardingOpsCard .boardingPreview,
#startScreen .startCenterStack .boardingOpsCard .opsStatRow,
#startScreen .startCenterStack .boardingOpsCard .boardingActions,
#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn,
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn {
  box-sizing: border-box !important;
}

#startScreen .startCenterStack .startJoinTopline {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#startScreen .startCenterStack .startInlineNameField {
  width: 100% !important;
}

#startScreen .startCenterStack .boardingCard.boardingOpsCard {
  width: 100% !important;
  overflow: hidden !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardTop {
  align-items: center !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardShell {
  width: 100% !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardRight {
  display: flex !important;
  flex-direction: column !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingActions {
  width: 100% !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn,
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn {
  box-sizing: border-box !important;
}

/* ALPHA 1.6ZZZZPK-NG · targeted visual clipping repair
   Scope: only start-screen Game Join / Next Round HUD + opened in-game build menu.
   Fixes: map-preview image anchoring, Join button bottom crowding, build-item price clipping. */
#startScreen .startCenterStack .boardingOpsCard .boardingPreview,
#startScreen .startCenterStack .boardingOpsCard .boardingPreview.realMapPreview {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingMapImage {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 0 !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingMapShade {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardRight {
  justify-content: flex-start !important;
  padding-bottom: 18px !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingActions {
  margin-top: 14px !important;
  padding-top: 12px !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn,
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn {
  flex: 0 0 auto !important;
}

body.in-game #buildWrap.open #buildBar {
  align-items: center !important;
  padding-top: 10px !important;
  padding-bottom: 12px !important;
  min-height: 126px !important;
}

body.in-game #buildWrap.open .buildItem {
  display: grid !important;
  grid-template-rows: 13px 44px 16px 15px !important;
  align-items: center !important;
  justify-items: center !important;
  height: 106px !important;
  min-height: 106px !important;
  padding: 7px 6px 8px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.in-game #buildWrap.open .buildCanvas {
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
}

body.in-game #buildWrap.open .buildName,
body.in-game #buildWrap.open .buildPrice {
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

body.in-game #buildWrap.open .buildName {
  line-height: 14px !important;
}

body.in-game #buildWrap.open .buildPrice {
  height: 15px !important;
  line-height: 15px !important;
}

@media (max-width: 980px) {
  body.in-game #buildWrap.open .buildItem {
    grid-template-rows: 12px 38px 15px 14px !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 6px 5px 7px !important;
  }
  body.in-game #buildWrap.open .buildCanvas {
    width: 38px !important;
    height: 38px !important;
  }
  body.in-game #buildWrap.open .buildPrice {
    height: 14px !important;
    line-height: 14px !important;
  }
}

@media (max-width: 820px) {
  body.in-game #buildWrap.open .buildItem {
    grid-template-rows: 11px 32px 14px 13px !important;
    height: 86px !important;
    min-height: 86px !important;
    padding: 5px 4px 6px !important;
  }
  body.in-game #buildWrap.open .buildCanvas {
    width: 32px !important;
    height: 32px !important;
  }
  body.in-game #buildWrap.open .buildPrice {
    height: 13px !important;
    line-height: 13px !important;
  }
}

/* ALPHA 1.6ZZZZPM-NG · start join HUD material depth pass
   Scope: only the central start-screen JOIN THE ROUND / NEXT ROUND HUD.
   CSS-only visual tuning: darker integrated metal/stone material, recessed depth, calmer RTS panel tone. */
#startScreen .startCenterStack .startJoinPanel {
  background:
    radial-gradient(circle at 50% 0%, rgba(122, 143, 111, 0.030), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.010), rgba(255,255,255,0.002) 22%, rgba(0,0,0,0.050) 100%),
    linear-gradient(135deg, rgba(18, 23, 22, 0.955), rgba(10, 14, 14, 0.965)) !important;
  border-color: rgba(126, 141, 119, 0.185) !important;
  box-shadow:
    0 22px 58px rgba(0,0,0,0.46),
    0 1px 0 rgba(255,255,255,0.016),
    inset 0 1px 0 rgba(213, 224, 203, 0.020),
    inset 0 -20px 34px rgba(0,0,0,0.175),
    inset 0 0 0 1px rgba(0,0,0,0.34) !important;
  backdrop-filter: blur(7px) saturate(0.86) !important;
}

#startScreen .startCenterStack .startJoinPanel::before {
  display: block !important;
  opacity: 0.028 !important;
  filter: grayscale(1) brightness(0.32) contrast(0.88) saturate(0.72) !important;
}

#startScreen .startCenterStack .startJoinTopline {
  color: rgba(213, 218, 207, 0.78) !important;
  border-bottom-color: rgba(133, 146, 124, 0.105) !important;
}

#startScreen .startCenterStack .startJoinTopline strong {
  color: rgba(167, 184, 151, 0.86) !important;
}

#startScreen .startCenterStack .startJoinTopline span::before {
  background: rgba(122, 142, 109, 0.72) !important;
}

#startScreen .startCenterStack .startInlineNameField {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.001) 30%, rgba(0,0,0,0.035) 100%),
    rgba(7, 11, 11, 0.58) !important;
  border-color: rgba(129, 143, 122, 0.105) !important;
  box-shadow:
    inset 0 1px 0 rgba(217, 224, 205, 0.012),
    inset 0 -11px 18px rgba(0,0,0,0.24),
    0 1px 0 rgba(255,255,255,0.006) !important;
}

#startScreen .startCenterStack .startInlineNameField label {
  color: rgba(174, 183, 169, 0.70) !important;
}

#startScreen .startCenterStack .startInlineNameField #playerNameInput {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.006), rgba(255,255,255,0.001) 34%, rgba(0,0,0,0.045) 100%),
    rgba(5, 8, 8, 0.94) !important;
  border-color: rgba(126, 141, 119, 0.145) !important;
  color: rgba(231, 236, 229, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.010),
    inset 0 0 0 1px rgba(0,0,0,0.26),
    inset 0 -9px 16px rgba(0,0,0,0.24) !important;
}

#startScreen .startCenterStack .startInlineNameField #playerNameInput::placeholder {
  color: rgba(140, 150, 138, 0.68) !important;
}

#startScreen .startCenterStack .startInlineNameField #playerNameInput:focus {
  border-color: rgba(141, 160, 126, 0.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.012),
    inset 0 0 0 1px rgba(0,0,0,0.24),
    inset 0 -9px 16px rgba(0,0,0,0.22),
    0 0 0 1px rgba(141, 160, 126, 0.16) !important;
}

#startScreen .startCenterStack .boardingCard.boardingOpsCard {
  border-color: rgba(128, 143, 120, 0.165) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(132, 148, 118, 0.026), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.008), rgba(255,255,255,0.001) 18%, rgba(0,0,0,0.038) 100%),
    linear-gradient(135deg, rgba(15, 19, 19, 0.992), rgba(8, 12, 12, 0.992)) !important;
  box-shadow:
    0 26px 66px rgba(0,0,0,0.48),
    0 1px 0 rgba(255,255,255,0.010),
    inset 0 1px 0 rgba(218, 225, 207, 0.012),
    inset 0 -24px 34px rgba(0,0,0,0.145),
    inset 0 0 0 1px rgba(0,0,0,0.31) !important;
}

#startScreen .startCenterStack .boardingCard.boardingOpsCard::before {
  display: block !important;
  opacity: 0.036 !important;
  filter: grayscale(1) brightness(0.30) contrast(0.86) saturate(0.72) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardTop {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.009), rgba(255,255,255,0.001)),
    rgba(255,255,255,0.004) !important;
  border-bottom-color: rgba(128, 143, 120, 0.105) !important;
  color: rgba(179, 189, 174, 0.66) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardShell {
  background: rgba(0,0,0,0.045) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.006), inset 0 -12px 20px rgba(0,0,0,0.11) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardLeft {
  border-right-color: rgba(128, 143, 120, 0.105) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.007), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.006) 0px, rgba(255,255,255,0.006) 1px, transparent 1px, transparent 10px),
    rgba(255,255,255,0.003) !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingEyebrow,
#startScreen .startCenterStack .boardingOpsCard .opsBoardLabel,
#startScreen .startCenterStack .boardingOpsCard .opsOnlyRealToggle,
#startScreen .startCenterStack .boardingOpsCard .opsStatLabel {
  color: rgba(166, 177, 160, 0.70) !important;
}

#startScreen .startCenterStack .boardingOpsCard h2 {
  color: rgba(229, 234, 226, 0.955) !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingPreview,
#startScreen .startCenterStack .boardingOpsCard .boardingPreview.realMapPreview {
  border-color: rgba(126, 141, 119, 0.145) !important;
  background: rgba(4, 7, 7, 0.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 229, 213, 0.012),
    inset 0 0 0 1px rgba(0,0,0,0.25),
    inset 0 -18px 24px rgba(0,0,0,0.18),
    0 10px 25px rgba(0,0,0,0.22) !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingPreview::before {
  opacity: .085 !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingPreview::after {
  opacity: .13 !important;
  background:
    radial-gradient(circle at 20% 16%, rgba(210,220,200,.055), transparent 29%),
    linear-gradient(180deg, transparent 54%, rgba(0,0,0,.24)) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsPreviewTag {
  color: rgba(211, 220, 207, 0.72) !important;
  background: rgba(6, 9, 9, 0.82) !important;
  border-color: rgba(126, 141, 119, 0.16) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsBoardRight {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.006), transparent 24%),
    rgba(0,0,0,0.070) !important;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.006), inset 12px 0 18px rgba(0,0,0,0.055) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsStatRow {
  border-bottom-color: rgba(126, 141, 119, 0.105) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsStatIcon {
  color: rgba(104, 122, 93, 0.92) !important;
}

#startScreen .startCenterStack .boardingOpsCard .opsStatRow strong {
  color: rgba(232, 238, 229, 0.96) !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn,
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn,
#startScreen .startCenterStack .boardingOpsCard.locked .boardingLeaveBtn {
  border-color: rgba(126, 148, 113, 0.40) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.004) 25%, rgba(0,0,0,0.058) 100%),
    rgba(43, 55, 43, 0.96) !important;
  color: rgba(235, 241, 232, 0.97) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.014),
    inset 0 0 0 1px rgba(0,0,0,0.18),
    inset 0 -10px 15px rgba(0,0,0,0.17),
    0 8px 18px rgba(0,0,0,0.22) !important;
}

#startScreen .startCenterStack .boardingOpsCard .boardingJoinBtn:hover:not(:disabled),
#startScreen .startCenterStack .boardingOpsCard .boardingLeaveBtn:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.005) 25%, rgba(0,0,0,0.050) 100%),
    rgba(51, 64, 49, 0.98) !important;
  border-color: rgba(145, 166, 129, 0.52) !important;
}

#startScreen .startCenterStack .queuePanel {
  background: rgba(6, 9, 9, 0.72) !important;
  border-color: rgba(126, 141, 119, 0.16) !important;
  color: rgba(208, 217, 204, 0.70) !important;
}

/* ALPHA 1.6ZZZZPO-NG · Startscreen background brightness layer removal
   Scope: Startscreen background treatment only. Removes the lightening CSS overlays so
   the stored background image renders dark like the asset itself. No layout, HUD,
   text, gameplay, HTML, JS or backend changes. */
#startScreen {
  background: url("assets/startpage_bg_zs.png") center center / cover no-repeat !important;
}

#startScreen::before {
  background: none !important;
  opacity: 0 !important;
}
