#lobby-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: radial-gradient(ellipse at 50% 63%, #141f2e, #101926 74%);
  color: #f7f8fc;
  font: 16px/1.4 "Roboto", "Arial", sans-serif;
}
#lobby-screen button { font: inherit; color: inherit; cursor: pointer; }
#lobby-screen a { color: inherit; text-decoration: none; }
#lobby-screen :focus-visible { outline: 2px solid #ffab38; outline-offset: 4px; }
.home-header { position: relative; z-index: 1; background: #111a27; border-bottom: 1px solid #1d2b3b; }
.home-header-inner {
  max-width: 1480px;
  min-height: 70px;
  width: 89%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.home-brand img { width: 204px; max-width: 100%; display: block; transform: translateY(-3px); }
.home-header nav { display: flex; align-items: stretch; gap: clamp(16px, 3.1vw, 52px); }
.home-header nav :is(a, button) {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 0 8px;
  background: none;
  border: 0;
  font-size: 19px;
  white-space: nowrap;
}
.home-header nav [aria-current] { font-weight: 700; }
.home-header nav [aria-current]::after {
  content: "";
  position: absolute;
  bottom: 13px;
  left: -9px;
  right: -9px;
  height: 3px;
  background: #ff8507;
}
.home-header .home-language {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  font-size: 18px;
}
.home-icon { width: 1.45em; height: 1.45em; flex: none; vertical-align: middle; }
.home-language .home-icon:last-child { width: 1em; }
.home-main { position: relative; }
.home-scenery {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(335px, 25.72vw, 480px);
  background: url('/home/fortress.webp') center top / cover no-repeat;
  pointer-events: none;
}
.home-content { width: min(1328px, 91%); margin: auto; position: relative; }
.home-hero { padding: 29px 0; text-align: center; }
.home-wordmark {
  display: block;
  width: min(393px, 85%);
  height: 66px;
  object-fit: contain;
  object-position: center top;
  margin: 0 auto 10px;
  transform: translateY(-3px);
}
.home-hero h1 { font-size: clamp(25px, 2vw, 32px); line-height: 1.2; }
.home-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin: 18px 0 24px;
  list-style: none;
  font-size: 18px;
}
.home-features li { display: inline-flex; align-items: center; gap: 10px; }
#lobby-screen .home-orange {
  border: 1px solid #ff9220;
  background: linear-gradient(145deg, #ff9d0d, #ff6904);
  color: white;
  font-weight: 750;
  box-shadow: inset 0 1px 0 #ffd18470, 0 3px 8px #0002;
}
#lobby-screen .home-orange:hover { filter: brightness(1.13); }
#lobby-screen .home-orange:disabled { opacity: .6; cursor: wait; }
#lobby-screen .home-play {
  width: min(367px, 100%);
  min-height: 73px;
  border-radius: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 30px;
}
.home-play .home-icon { width: 34px; height: 34px; }
.home-modes { display: grid; grid-template-columns: 1.04fr 1fr 1fr; gap: 24px; }
.mode-card {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 23px;
  min-height: 119px;
  padding: 12px clamp(14px, 1.65vw, 28px);
  border-radius: 18px;
  border: 2px solid #3b485b;
  background: linear-gradient(90deg, #151f2e 0%, #151f2e 56%, #151f2e40 75%, #151f2e15 89%), url('/home/mode.webp') right center / auto 100% no-repeat #151f2e;
}
.mode-card[aria-pressed="true"] { border-color: #ff9500; box-shadow: inset 0 0 0 1px #ff9500; }
.mode-card:hover, .home-actions button:hover { border-color: #ff9d24; }
.mode-card .home-icon { width: 44px; height: 44px; }
.home-modes strong, .home-actions strong { display: block; font-size: 23px; line-height: 1.18; }
.home-modes small, .home-actions small { display: block; margin-top: 7px; font-size: 16px; color: #e2eaf7; }
.home-lower { display: grid; grid-template-columns: 2.22fr 1fr; align-items: start; gap: 30px; margin-top: 24px; }
.home-servers { min-height: 206px; overflow: hidden; border-radius: 13px; border: 1px solid #263244; background: #182333a3; }
.home-servers > header {
  min-height: 47px;
  padding: 0 clamp(14px, 2vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-servers h2 { font-size: 22px; display: flex; align-items: center; gap: 13px; }
.home-servers h2 .home-icon { width: 27px; height: 27px; }
#lobby-screen #refresh-rooms-btn { border: 0; background: none; font-size: 14px; }
#refresh-rooms-btn .home-icon { margin-right: 5px; }
.home-room {
  padding: 5px clamp(12px, 2vw, 32px);
  min-height: 48px;
  border-top: 1px solid #253142;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) 1fr .96fr .94fr 88px;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.home-room-name { display: flex; gap: clamp(8px, 1vw, 17px); align-items: center; min-width: 0; }
.home-room-name img { width: clamp(48px, 5vw, 84px); border-radius: 7px; flex: none; }
.home-room-name strong { overflow-wrap: anywhere; }
.home-room-mode {
  justify-self: start;
  min-width: 84px;
  text-align: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 14px;
  background: #542731;
}
.home-room-mode.competitive { background: #203f64; }
.home-room-mode.deathmatch { background: #383160; }
.home-room-players, .home-room-latency { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.home-room-players .home-icon, .home-room-latency .home-icon { width: 19px; height: 19px; }
.home-room-latency { font-weight: 400; }
.home-room-latency .home-icon { filter: brightness(0) saturate(100%) invert(78%) sepia(97%) saturate(2550%) hue-rotate(48deg); }
.home-join { border-radius: 9px; min-height: 35px; }
.home-room-message { padding: 16px clamp(14px, 2vw, 32px); color: #c7d4e7; border-top: 1px solid #253142; }
.home-actions { display: grid; gap: 17px; }
.home-actions button {
  display: grid;
  position: relative;
  grid-template-columns: 39px 1fr;
  align-items: center;
  gap: 27px;
  min-height: 89px;
  padding: 10px 43px 10px 28px;
  border: 1px solid #29374a;
  border-radius: 14px;
  background: #222e3f;
  text-align: left;
}
.home-actions small { font-size: 14px; }
.home-actions .home-icon { width: 38px; height: 38px; opacity: .85; }
.home-actions .home-icon:last-child { position: absolute; right: 16px; width: 24px; height: 24px; }
.home-status { padding-top: 8px; color: #ffcd91; }
.home-footer { width: 94%; margin: 35px auto 0; padding: 24px 0 38px; border-top: 1px solid #334154; }
.home-footer-inner { width: min(1436px, 95%); margin: auto; display: grid; grid-template-columns: 2.9fr 1.52fr 1.31fr 1.37fr .95fr; }
.home-footer section { border-left: 1px solid #28374b; padding-left: clamp(15px, 3.8vw, 64px); }
.home-footer .home-about { border: 0; padding: 0 38px 0 0; }
.home-about p { margin-top: 3px; line-height: 1.65; }
.home-footer h2 { font-size: 18px; line-height: 1.2; margin-bottom: 10px; }
.home-footer .home-about h2 { font-size: 29px; font-weight: 900; font-style: italic; margin-bottom: 4px; }
#lobby-screen .home-footer button { display: block; text-align: left; background: none; border: 0; margin-top: 5px; }
.home-header :is(button, a):hover, .home-footer button:hover, #refresh-rooms-btn:hover { color: #ffab38 !important; }
.home-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, 92vw);
  padding: 22px;
  margin: auto;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #47576d;
  border-radius: 14px;
  background: #182433;
  color: inherit;
}
.home-dialog::backdrop { background: #070d17b8; }
.home-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.home-dialog .btn-ghost { padding: 5px 8px; }
#home-room-form fieldset { border: 0; margin-top: 14px; }
#home-create-fields > .field-label, .home-room-limits, #create-room-btn, #asset-status, #home-room-error { margin-top: 14px; }
.home-room-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-dialog select { color-scheme: dark; }
#home-room-error { color: #ffb0a4; }
@media (max-width: 1120px) {
  .home-lower { gap: 16px; grid-template-columns: minmax(0, 1fr) 285px; }
  .home-modes { gap: 14px; }
  .mode-card, .home-actions button { gap: 12px; }
  .home-modes strong, .home-actions strong { font-size: 20px; }
  .home-room { grid-template-columns: minmax(0, 2.1fr) 1fr auto auto 65px; gap: 9px; font-size: 14px; }
  .home-room-mode { font-size: 12px; min-width: 0; padding-inline: 6px; }
}
@media (max-width: 900px) {
  .home-header-inner { grid-template-columns: 150px 1fr; width: 91%; }
  .home-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; overflow-x: auto; }
  .home-header nav :is(a, button) { min-height: 48px; font-size: 15px; padding: 0 4px; }
  .home-header nav [aria-current]::after { bottom: 2px; left: 0; right: 0; }
  .home-brand { padding-block: 10px; }
  .home-lower { grid-template-columns: 1fr; }
  .home-actions { grid-template-columns: 1fr 1fr; }
  .mode-card .home-icon { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  .home-header nav { justify-content: space-between; gap: 6px; }
  .home-header nav :is(a, button), .home-header .home-language { font-size: 14px; }
  .home-hero { padding: 28px 0 20px; }
  .home-features { gap: 8px 15px; font-size: 13px; }
  #lobby-screen .home-play { min-height: 58px; font-size: 24px; }
  .home-modes, .home-actions { grid-template-columns: 1fr; }
  .mode-card, .home-actions button { min-height: 76px; }
  .home-room { grid-template-columns: minmax(0, 1fr) auto auto; }
  .home-room-players { grid-column: 2; }
  .home-room-latency { grid-column: 2; grid-row: 2; }
  .home-room-name { grid-column: 1; grid-row: 1; }
  .home-room-mode { grid-column: 1; grid-row: 2; }
  .home-join { grid-column: 3; grid-row: 1 / 3; padding-inline: 12px; }
  .home-footer-inner { grid-template-columns: 1fr 1fr; gap: 20px 6px; }
  .home-footer .home-about { grid-column: 1 / -1; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #lobby-screen *, #lobby-screen *::before, #lobby-screen *::after { transition: none; }
}
