:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #080a0d;
  color: #f0f1f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #080a0d;
}

body::after {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  content: "";
  inset: 0;
  opacity: 0.13;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.035) 4px);
}

.screen {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px 5vw 22px;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(35, 44, 54, 0.38), transparent 49%),
    linear-gradient(135deg, #0d1014 0%, #080a0d 50%, #0c0e12 100%);
}

.map-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #080a0d;
}

.map-backdrop::after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.42), rgba(8, 10, 13, 0.25) 48%, rgba(8, 10, 13, 0.42)),
    linear-gradient(0deg, rgba(8, 10, 13, 0.62) 0%, rgba(8, 10, 13, 0.2) 45%, rgba(8, 10, 13, 0.34) 100%);
}

.map-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.65) contrast(1.04) brightness(1.2);
  transition: opacity 0.35s ease;
}

.background-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(155, 168, 180, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 168, 180, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 78%);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
}

.glow--left {
  top: 26%;
  left: -18%;
  background: #b94a36;
}

.glow--right {
  right: -19%;
  bottom: 3%;
  background: #647d91;
}

.topbar,
.footer {
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.wordmark__symbol {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(220, 226, 231, 0.48);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wordmark__name,
.classification,
.eyebrow,
.loading-label,
.footer {
  font-family: "DM Mono", Consolas, monospace;
  letter-spacing: 0.12em;
}

.wordmark__name {
  color: #aeb5bc;
  font-size: 11px;
}

.classification {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #858e97;
  font-size: 9px;
}

.classification__dot,
.pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c56b54;
  box-shadow: 0 0 12px rgba(197, 107, 84, 0.75);
}

.content-grid {
  z-index: 2;
  display: flex;
  width: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.info-panel {
  padding: 22px 20px 19px;
  border: 1px solid rgba(184, 195, 205, 0.22);
  background: linear-gradient(145deg, rgba(14, 17, 21, 0.92), rgba(9, 11, 14, 0.86));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.team-panel,
.connection-panel,
.network-panel {
  position: absolute;
  z-index: 3;
  width: min(290px, 25vw);
}

.team-panel {
  top: 78px;
  left: clamp(16px, 2vw, 32px);
}

.connection-panel {
  bottom: clamp(64px, 9vh, 88px);
  left: clamp(16px, 2vw, 32px);
}

.network-panel {
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(64px, 9vh, 88px);
}

.content-grid {
  padding: 0 clamp(230px, 25vw, 320px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: #b87560;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.panel-heading h2 {
  margin: 0;
  color: #e2e5e8;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.panel-count,
.network-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(193, 120, 99, 0.35);
  color: #c17863;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 11px;
}

.team-list {
  display: grid;
  gap: 7px;
}

.team-member {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(164, 176, 187, 0.1);
}

.team-member__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: span 2;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(193, 120, 99, 0.35);
  background: linear-gradient(145deg, #342923, #1d2024);
  color: #d3a18f;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.team-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member__details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.team-member__name {
  overflow: hidden;
  color: #e2e5e8;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member__role {
  overflow: hidden;
  color: #828b94;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member__profile {
  grid-column: 2;
  justify-self: start;
  margin-top: 5px;
  color: #c17863;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 10px;
  text-decoration: none;
}

.team-member__profile:hover {
  color: #e4a18a;
  text-decoration: underline;
}

.team-member__profile--missing {
  color: #626b73;
  cursor: default;
}

.team-member__profile--missing:hover {
  color: #626b73;
  text-decoration: none;
}

.panel-note {
  margin: 12px 0 0;
  color: #6f7881;
  font-size: 11px;
  line-height: 1.5;
}

.network-mark {
  color: #aeb5bc;
  border-color: rgba(174, 181, 188, 0.25);
  font-size: 11px;
  font-weight: 600;
}

.network-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid rgba(164, 176, 187, 0.1);
  color: inherit;
  text-decoration: none;
}

.network-link:hover .network-link__url {
  color: #e4a18a;
}

.network-link__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(164, 176, 187, 0.17);
  color: #c17863;
  font-size: 15px;
}

.network-link > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.network-link__label,
.server-details > div > span {
  color: #7d858d;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.network-link__url {
  overflow: hidden;
  color: #c5cbd0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-details {
  display: grid;
  gap: 12px;
}

.connection-panel .server-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(164, 176, 187, 0.1);
}

.player-count-status {
  margin: 11px 0 0;
  color: #8d9c8b;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.player-count-status--error {
  color: #c17863;
}

.server-details > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.server-details strong {
  overflow: hidden;
  color: #bbc2c8;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.centerpiece {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: min(620px, 100%);
  padding: 20px 0 30px;
  text-align: center;
}

.logo-frame {
  position: relative;
  display: grid;
  width: clamp(170px, 17vw, 220px);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 27px;
}

.site-logo {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(222, 226, 231, 0.16));
  animation: logo-arrive 1.1s ease-out both;
}

.corner {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: rgba(192, 201, 208, 0.58);
  border-style: solid;
}

.corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  border: 1px solid rgba(183, 194, 204, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -68%);
}

.orbit--outer {
  width: clamp(340px, 39vw, 520px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: rotate 70s linear infinite;
}

.orbit--inner {
  width: clamp(270px, 31vw, 410px);
  aspect-ratio: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 11px;
  color: #c17863;
  font-size: 10px;
}

.eyebrow span {
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

h1 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(34px, 4.2vw, 62px);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  white-space: nowrap;
}

h1 span {
  color: #9ba3ab;
  font-size: 0.68em;
  font-weight: 500;
}

.subtitle {
  margin: 12px 0 0;
  color: #89919a;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.connecting-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(164, 176, 187, 0.17);
  background: rgba(13, 16, 20, 0.68);
  text-align: left;
}

.connecting-player[hidden] {
  display: none;
}

.connecting-player__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(193, 120, 99, 0.35);
  background: #1d2024;
  color: #d3a18f;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 10px;
}

.connecting-player__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connecting-player__details {
  display: grid;
  gap: 4px;
}

.connecting-player__label {
  color: #c17863;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.connecting-player__id {
  max-width: 190px;
  overflow: hidden;
  color: #aeb5bc;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-panel {
  z-index: 2;
  width: min(540px, 100%);
  margin: 28px auto 0;
}

.loading-panel__heading,
.loading-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.loading-panel__heading {
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.loading-label {
  color: #7d858d;
  font-size: 10px;
}

.loading-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c3c9ce;
  font-size: 14px;
  text-align: center;
}

.pulse {
  width: 6px;
  height: 6px;
  animation: pulse 1.8s ease-in-out infinite;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  background: rgba(204, 212, 219, 0.12);
}

.progress-track__bar {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #b96650, #df9a7f);
  box-shadow: 0 0 13px rgba(201, 111, 84, 0.48);
  animation: progress 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.progress-track--measured .progress-track__bar {
  background: linear-gradient(90deg, #b96650, #df9a7f);
  animation: none;
  transition: width 0.25s ease;
}

.loading-panel__footer {
  margin-top: 12px;
  color: #747d86;
  font-size: 12px;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.file-progress {
  flex: 0 0 auto;
  color: #9da5ad;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 10px;
}

.loading-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c17863;
  animation: dot 1.2s ease-in-out infinite;
}

.loading-dots i:nth-child(2) { animation-delay: 0.16s; }
.loading-dots i:nth-child(3) { animation-delay: 0.32s; }

.footer {
  position: relative;
  color: #606971;
  font-size: 8px;
}

.footer__separator {
  width: 1px;
  height: 12px;
  margin: 0 auto 0 18px;
  background: rgba(170, 179, 187, 0.3);
}

.footer__version {
  margin-left: auto;
  color: #89919a;
}

.footer__version span {
  color: #b96650;
}

@keyframes progress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(95%); }
  100% { transform: translateX(310%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes rotate {
  to { transform: translate(-50%, -68%) rotate(360deg); }
}

@keyframes logo-arrive {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 840px) {
  body { overflow: auto; }
  .screen { min-height: 100vh; height: auto; overflow: visible; gap: 16px; padding: 20px 18px 16px; }
  .classification { max-width: 145px; font-size: 8px; line-height: 1.5; }
  .team-panel, .connection-panel, .network-panel { position: static; width: 100%; padding: 17px 14px; }
  .team-panel { order: 1; }
  .content-grid { flex: none; order: 2; padding: 0; }
  .centerpiece { padding: 22px 0 28px; }
  .connection-panel { order: 3; }
  .network-panel { order: 4; }
  .panel-heading h2 { font-size: 16px; }
  .logo-frame { width: 150px; margin-bottom: 22px; }
  .orbit--outer { width: 280px; }
  .orbit--inner { width: 225px; }
  h1 { font-size: clamp(24px, 7vw, 42px); }
  .subtitle { font-size: 11px; }
  .loading-panel { margin: 20px auto 0; }
  .footer { gap: 8px; font-size: 7px; letter-spacing: 0.06em; }
  .footer__separator { margin-left: 4px; }
}

@media (max-height: 660px) {
  .screen { padding-top: 18px; padding-bottom: 14px; }
  .team-panel { top: 68px; }
  .logo-frame { width: 160px; margin-bottom: 18px; }
  .centerpiece { padding: 8px 0 12px; }
  .loading-panel { margin-top: 18px; }
}

@media (max-width: 900px) and (min-width: 841px) {
  .screen { padding-right: 3vw; padding-left: 3vw; }
  .info-panel { padding-right: 14px; padding-left: 14px; }
  .team-panel, .connection-panel, .network-panel { width: 210px; }
  .team-panel, .connection-panel { left: 2vw; }
  .network-panel { right: 2vw; }
  .content-grid { padding: 0 220px; }
  .team-member { gap: 0 7px; }
  .team-member__avatar { width: 38px; height: 38px; }
  .team-member { grid-template-columns: 38px minmax(0, 1fr); }
  .team-member__role { font-size: 9px; }
  .logo-frame { width: 150px; }
  h1 { font-size: 38px; }
}

@media (max-width: 1100px) and (min-width: 841px) {
  .info-panel { padding: 16px 14px 14px; }
  .team-panel, .connection-panel, .network-panel { width: 240px; }
  .team-panel { left: 16px; }
  .connection-panel { left: 16px; }
  .network-panel { right: 16px; }
  .content-grid { padding: 0 258px; }
  .panel-heading { margin-bottom: 10px; }
  .panel-kicker { font-size: 8px; }
  .panel-heading h2 { font-size: 19px; }
  .panel-count, .network-mark { width: 28px; height: 28px; font-size: 9px; }
  .team-list { gap: 2px; }
  .team-member { grid-template-columns: 36px minmax(0, 1fr); gap: 0 9px; padding: 7px 0; }
  .team-member__avatar { width: 36px; height: 36px; font-size: 13px; }
  .team-member__name { font-size: 11px; }
  .team-member__role { font-size: 9px; }
  .team-member__profile { margin-top: 3px; font-size: 8px; }
  .panel-note { margin-top: 8px; font-size: 9px; }
  .network-link { gap: 9px; padding: 9px 0; }
  .network-link__icon { width: 28px; height: 28px; }
  .network-link__url { font-size: 10px; }
  .server-details { gap: 8px; }
  .connection-panel .server-details { margin-top: 10px; padding-top: 10px; }
  .player-count-status { margin-top: 8px; font-size: 8px; }
  .centerpiece { width: 100%; padding: 8px 0 10px; }
  .logo-frame { width: 150px; margin-bottom: 16px; }
  .orbit--outer { width: 330px; }
  .orbit--inner { width: 260px; }
  h1 { font-size: clamp(30px, 3.8vw, 40px); }
  .subtitle { margin-top: 8px; font-size: 12px; }
  .loading-panel { width: 100%; margin-top: 18px; }
}

@media (min-width: 841px) and (max-height: 760px) {
  .team-panel { top: 72px; }
  .team-member { padding: 8px 0; }
  .team-list { gap: 3px; }
  .panel-note { margin-top: 9px; }
  .connection-panel, .network-panel { bottom: 34px; }
  .logo-frame { width: clamp(150px, 15vw, 190px); margin-bottom: 19px; }
  .centerpiece { padding: 8px 0 12px; }
  .loading-panel { margin-top: 18px; }
}

@media (max-width: 1100px) and (min-width: 841px) and (max-height: 760px) {
  .team-panel { top: 62px; }
  .team-member { padding: 6px 0; }
  .connection-panel, .network-panel { bottom: clamp(64px, 9vh, 88px); }
  .logo-frame { width: 132px; margin-bottom: 12px; }
  .orbit--outer { width: 300px; }
  .orbit--inner { width: 235px; }
  .centerpiece { padding-top: 0; padding-bottom: 0; }
  .loading-panel { margin-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   ICONIC v9: in-game compatibility and proportion fixes.
   Original colors, panel positions, markup and artwork retained.
   Garry's Mod's CEF 86 does not implement CSS aspect-ratio or inset.
   ------------------------------------------------------------ */
body::after,
.map-backdrop,
.map-backdrop::after,
.background-grid {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Protect the site image from CEF 86's unsupported aspect-ratio property. */
.logo-frame {
  width: clamp(206px, 18vw, 276px);
  height: clamp(206px, 18vw, 276px);
  aspect-ratio: auto;
  margin-bottom: 26px;
}
.site-logo {
  width: 83%;
  height: 83%;
  /* The image must not remain invisible if the loading-page animation is paused. */
  animation: none;
  opacity: 1;
}
.orbit--outer {
  width: clamp(370px, 39vw, 560px);
  height: clamp(370px, 39vw, 560px);
  aspect-ratio: auto;
}
.orbit--inner {
  width: clamp(292px, 31vw, 450px);
  height: clamp(292px, 31vw, 450px);
  aspect-ratio: auto;
}
.background-grid {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 78%);
}

.topbar,
.footer { width: 100%; }
.wordmark { gap: 14px; }
.wordmark__symbol { width: 49px; height: 40px; font-size: 20px; }
.wordmark__name { font-size: 13px; }
.classification { font-size: 11px; }

.team-panel,
.connection-panel,
.network-panel { width: clamp(285px, 22vw, 350px); }
.team-panel { top: clamp(85px, 9vh, 112px); }
.connection-panel,
.network-panel { bottom: clamp(67px, 9vh, 100px); }
.info-panel { padding: 24px 23px 21px; }
.panel-heading h2 { font-size: 27px; }
.panel-kicker { font-size: 11px; }
.panel-count,
.network-mark { width: 38px; height: 38px; font-size: 12px; }
.team-list { gap: 9px; }
.team-member { grid-template-columns: 48px minmax(0, 1fr); gap: 0 13px; padding: 12px 0; }
.team-member__avatar { width: 48px; height: 48px; font-size: 17px; }
.team-member__name { font-size: 15px; }
.team-member__role { font-size: 12px; }
.team-member__profile { font-size: 11px; }
.panel-note { font-size: 12px; }
.network-link { padding: 16px 0; }
.network-link__icon { width: 40px; height: 40px; font-size: 17px; }
.network-link__label,
.server-details > div > span { font-size: 11px; }
.network-link__url { font-size: 14px; }
.server-details strong { font-size: 13px; }
.player-count-status { font-size: 11px; }

.content-grid { padding: 0 clamp(295px, 24vw, 380px); }
.centerpiece { width: min(730px, 100%); padding: 20px 0 26px; }
.eyebrow { font-size: 12px; margin-bottom: 14px; }
h1 { font-size: clamp(46px, 4.25vw, 72px); letter-spacing: 0.075em; }
.subtitle { font-size: 17px; margin-top: 16px; }
.loading-panel { width: min(610px, 100%); margin-top: 32px; }
.loading-panel__heading { flex-direction: row; margin-bottom: 15px; }
.loading-label { font-size: 12px; }
.loading-state { font-size: 16px; text-align: right; }
.progress-track { height: 5px; }
.loading-panel__footer { font-size: 13px; }
.file-progress { font-size: 12px; }
.footer { font-size: 10px; }

/* Standard GMod viewports, including 1280x720, without panel collisions. */
@media (min-width: 841px) and (max-width: 1400px) {
  .team-panel, .connection-panel, .network-panel { width: clamp(240px, 22vw, 305px); }
  .info-panel { padding: 19px 19px 17px; }
  .panel-heading h2 { font-size: 24px; }
  .team-member { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 0; }
  .team-member__avatar { width: 44px; height: 44px; }
  .team-member__name { font-size: 13px; }
  .team-member__role { font-size: 11px; }
  .team-member__profile { font-size: 10px; }
  .network-link { padding: 12px 0; }
  .network-link__icon { width: 35px; height: 35px; }
  .network-link__url { font-size: 12px; }
  .content-grid { padding-right: 24vw; padding-left: 24vw; }
  .footer { font-size: 9px; }
}

@media (min-width: 841px) and (max-width: 1140px) {
  .team-panel, .connection-panel, .network-panel { width: 240px; }
  .team-panel, .connection-panel { left: 16px; }
  .network-panel { right: 16px; }
  .content-grid { padding: 0 260px; }
  .logo-frame { width: 185px; height: 185px; margin-bottom: 17px; }
  .orbit--outer { width: 340px; height: 340px; }
  .orbit--inner { width: 270px; height: 270px; }
  h1 { font-size: 40px; letter-spacing: 0.045em; }
  .subtitle { font-size: 13px; }
  .loading-panel { margin-top: 22px; }
  .loading-panel__heading { flex-direction: column; }
  .loading-state { font-size: 14px; text-align: center; }
  .wordmark__name { font-size: 11px; }
}

@media (min-width: 841px) and (max-height: 780px) {
  .screen { padding-top: 20px; padding-bottom: 16px; }
  .team-panel { top: 74px; }
  .connection-panel, .network-panel { bottom: 58px; }
  .logo-frame { width: clamp(184px, 16vw, 216px); height: clamp(184px, 16vw, 216px); margin-bottom: 17px; }
  .centerpiece { padding: 8px 0 10px; }
  .eyebrow { margin-bottom: 9px; }
  .subtitle { margin-top: 11px; }
  .loading-panel { margin-top: 21px; }
  .team-list { gap: 4px; }
  .team-member { padding-top: 8px; padding-bottom: 8px; }
  .panel-note { margin-top: 9px; }
}

@media (min-width: 841px) and (max-width: 1140px) and (max-height: 780px) {
  .logo-frame { width: 178px; height: 178px; }
  .orbit--outer { width: 300px; height: 300px; }
  .orbit--inner { width: 236px; height: 236px; }
  .content-grid { padding: 0 258px; }
  .panel-heading h2 { font-size: 21px; }
  .team-member__name { font-size: 12px; }
  .team-member__role { font-size: 10px; }
  .team-member__profile { font-size: 9px; }
}

/* Narrow browsers retain the existing original stacked/mobile arrangement. */
@media (max-width: 840px) {
  .screen { height: auto; min-height: 100vh; }
  .team-panel, .connection-panel, .network-panel { position: static; width: 100%; }
  .content-grid { padding: 0; }
  .centerpiece { padding: 22px 0 28px; }
  .logo-frame { width: 170px; height: 170px; margin-bottom: 22px; }
  .orbit--outer { width: 300px; height: 300px; }
  .orbit--inner { width: 235px; height: 235px; }
  h1 { font-size: clamp(26px, 7.2vw, 44px); letter-spacing: 0.05em; }
  .subtitle { font-size: 13px; }
  .loading-panel { margin-top: 24px; }
  .loading-panel__heading { flex-direction: column; gap: 8px; }
  .loading-state { text-align: center; }
  .footer { gap: 8px; font-size: 8px; }
}

@media (max-width: 420px) {
  .screen { padding-right: 13px; padding-left: 13px; }
  .wordmark__name { font-size: 10px; }
  .classification { font-size: 8px; max-width: 130px; }
  h1 { font-size: 27px; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 840px) {
  /* Decorative glows extend beyond the page bounds; clip only decorations. */
  .screen { overflow: hidden; }
}


/* ------------------------------------------------------------
   v10: remove IN / ICONIC header branding and align panels closer
   to the side walls while keeping the original look.
   ------------------------------------------------------------ */
.topbar { justify-content: flex-end; }

/* The old header branding is intentionally hidden/removed. */
.wordmark { display: none !important; }

/* Move status text and side panels closer to the scene walls. */
.screen { padding-right: clamp(10px, 1.4vw, 18px); padding-left: clamp(10px, 1.4vw, 18px); }
.classification { margin-right: 2px; }
.team-panel { left: clamp(8px, 0.9vw, 16px); }
.connection-panel { left: clamp(8px, 0.9vw, 16px); }
.network-panel { right: clamp(8px, 0.9vw, 16px); }
.team-panel, .connection-panel, .network-panel { backdrop-filter: blur(3px); }

/* Make the right panel header look balanced without the IN badge. */
.network-panel .panel-heading { align-items: flex-start; justify-content: flex-start; }
.network-panel .panel-heading > div { width: 100%; }
.network-panel .panel-heading h2 { line-height: 0.95; }
.network-panel .panel-kicker { margin-bottom: 8px; }

/* Slightly refine panel anchoring across common GMod sizes. */
@media (min-width: 841px) and (max-width: 1140px) {
  .team-panel, .connection-panel { left: 10px; }
  .network-panel { right: 10px; }
  .content-grid { padding: 0 252px; }
}

@media (min-width: 841px) and (max-width: 1400px) {
  .content-grid { padding-right: max(22vw, 252px); padding-left: max(22vw, 252px); }
}

@media (min-width: 841px) and (max-height: 780px) {
  .team-panel { top: 70px; }
  .connection-panel, .network-panel { bottom: 52px; }
}

@media (max-width: 840px) {
  .topbar { justify-content: center; }
}
