/* Reference-led classic lobby. Fixed desktop chrome; compact responsive fallback. */
.classic-shell {
  --rail: 5%;
  --social: 4.7%;
  --chrome: rgba(72, 101, 125, 0.38);
  position: absolute;
  inset: 0;
  font-family: 'Arial', sans-serif;
  color: #f4f6f5;
  letter-spacing: 0.5px;
  pointer-events: none;
  background: linear-gradient(180deg, #6ba0d21c, transparent 70%, #171b1880);
}
.classic-shell button {
  border-radius: 0;
  font-weight: 600;
  transition: background 0.15s;
  letter-spacing: 0.6px;
}
.classic-shell button:focus-visible,
.classic-shell input:focus-visible,
.classic-shell select:focus-visible {
  outline: 2px solid #e6f7ff;
  outline-offset: -3px;
}
.classic-shell button:disabled {
  opacity: 0.35;
}
.classic-rail {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: linear-gradient(#5376957a, #566b787a 55%, #23271fbd);
  border-right: 1px solid #d4e3ec25;
  display: flex;
  align-items: center;
  flex-direction: column;
  pointer-events: auto;
  z-index: 3;
  backdrop-filter: blur(12px);
}
.classic-rail button {
  border: 0;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.classic-rail .cl-logo {
  height: 9%;
  min-height: 58px;
  font-size: clamp(9px, 1vw, 16px);
  font-weight: 900;
  letter-spacing: -0.8px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.cl-logo span {
  font-size: 0.8em;
  letter-spacing: 2px;
}
.cl-logo small {
  font-size: 5px;
  letter-spacing: 0.2px;
  margin-top: 4px;
  color: #e5ebf0a0;
}
.rail-item {
  height: 9%;
  min-height: 55px;
  color: #edf2f4;
  position: relative;
}
.rail-item svg {
  width: 42%;
  max-width: 39px;
  height: auto;
}
.rail-item:hover,
.rail-item.is-active {
  background: #dceaff24;
}
.rail-item.is-active:before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: #f5f9fb;
}
.classic-rail .rail-exit {
  margin-top: auto;
  height: 9%;
  min-height: 56px;
}
.rail-exit svg {
  width: 40%;
  max-width: 32px;
}
.classic-social {
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--social);
  background: linear-gradient(#26313560, #202322bd);
  border-left: 1px solid #dde8ed18;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  backdrop-filter: blur(10px);
}
.profile-avatar {
  width: 80%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #748b97;
  margin-top: 7px;
}
.rank-medal {
  color: #d3bd69;
  font-size: clamp(18px, 2.2vw, 36px);
  text-shadow: 1px 2px 3px #000;
  transform: rotate(-90deg);
  line-height: 1.05;
  margin: 2px 0;
}
.rank-stars {
  background: #183950a0;
  border: 1px solid #d6d7a84d;
  width: 86%;
  text-align: center;
  color: #e1d68c;
  font-size: clamp(8px, 0.85vw, 15px);
  padding: 4px 0;
}
.classic-social .social-heading {
  width: 100%;
  border: 0;
  border-top: 1px solid #ffffff20;
  border-bottom: 3px solid #e4ecee;
  padding: 3px 0;
  min-height: 44px;
  text-align: center;
  font-size: 25px;
  position: relative;
}
.social-heading small {
  font-size: 10px;
  position: absolute;
  top: 8px;
  right: 10%;
}
.social-portraits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
  overflow: auto;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
}
.social-portraits button {
  width: 68%;
  padding: 0;
  border: 0;
  border-left: 3px solid #78b8d2;
  min-height: 0;
  flex-shrink: 0;
  aspect-ratio: 1;
}
.social-portraits button:nth-child(3n) {
  border-left-color: #8bbd76;
}
.social-portraits img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offline-label {
  font-size: 8px;
  color: #d9e1de;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.classic-home {
  position: absolute;
  top: 2.2%;
  left: 6.7%;
  width: 37.5%;
  height: 95.6%;
  display: grid;
  grid-template-rows: minmax(0, 2.5fr) minmax(0, 1fr);
  gap: 10px;
  pointer-events: auto;
}
.news-panel {
  padding: 0 14px 12px;
  background: #8aa0b246;
  backdrop-filter: blur(14px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #c9dceb12;
}
.news-panel > h1 {
  font-size: 13px;
  line-height: 24px;
  font-weight: 400;
  margin: 0 -1px;
  letter-spacing: 1px;
}
.news-scroll {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #d3e5f04d transparent;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}
.news-scroll article {
  background: #111b24e0;
  flex-shrink: 0;
  box-shadow: 0 1px 5px #1119;
}
.news-teaser {
  background: linear-gradient(100deg, #7a6646d9, #27313bcc) !important;
  padding: 9px 14px;
  border-bottom: 3px solid #a9bbc331;
}
.news-teaser small {
  font-size: 9px;
  color: #e6d6b0;
}
.news-teaser p {
  font-size: 12px;
  line-height: 1.4;
  margin: 3px 0;
}
.news-lead > img {
  display: block;
  width: 100%;
  aspect-ratio: 445/227;
  object-fit: cover;
}
.news-lead > div {
  padding: 14px 16px 10px;
  background: linear-gradient(120deg, #4b4130b0, #141c24c0);
}
.news-scroll time {
  font-size: 9px;
  font-weight: 600;
  color: #d1d5d4;
  letter-spacing: 1px;
}
.news-scroll h2 {
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.25;
  margin: 7px 0;
}
.news-scroll p {
  font-size: clamp(11px, 0.93vw, 15px);
  line-height: 1.45;
  margin: 6px 0;
  color: #e0e5e5;
}
.news-link {
  padding: 5px 0 !important;
  border: 0;
  min-height: 28px;
  font-size: 11px;
  color: #d7e6b0;
}
.news-secondary {
  padding: 13px 16px;
}
.collection-panel {
  background: linear-gradient(#8d949695, #2e3329c9);
  backdrop-filter: blur(12px);
  min-height: 0;
  overflow: hidden;
}
.collection-panel > nav {
  height: 34px;
  display: flex;
  gap: 15px;
  margin: 0 12px;
  border-bottom: 1px solid #ffffff3b;
}
.collection-panel > nav button {
  font-size: 11px;
  padding: 4px 0;
  min-height: 0;
  border: 0;
  font-weight: 400;
  position: relative;
}
.collection-panel > nav button.selected:after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 2px;
  left: 0;
  right: 0;
  background: #fff;
}
.collection-body {
  padding: 10px 14px;
  overflow: auto;
  height: calc(100% - 34px);
}
.collection-body > img {
  width: 100%;
  height: clamp(60px, 14vh, 160px);
  object-fit: contain;
  mix-blend-mode: normal;
}
.collection-captions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 10px;
  color: #e1e3dc;
  text-align: center;
  margin-top: 0;
}
.collection-body > p {
  font-size: 9px;
  color: #d3dfc5;
  letter-spacing: 1px;
  line-height: 1.5;
}
.collection-body > h2 {
  font-size: 18px;
  margin: 8px 0;
}
.collection-body > button {
  font-size: 11px;
  min-height: 34px;
  padding: 8px 10px;
}
.operator-label {
  position: absolute;
  left: 59%;
  bottom: 3%;
  font-size: 12px;
  text-shadow: 0 2px 4px #000;
  display: flex;
  gap: 8px;
  flex-direction: column;
  pointer-events: none;
}
.operator-label small {
  font-size: 9px;
  color: #dce2e5;
  letter-spacing: 2px;
}
.classic-build {
  position: absolute;
  left: 6.8%;
  bottom: 0.3%;
  font-size: 8px;
  color: #dbe3eccc;
}
.classic-page {
  position: absolute;
  inset: 0 var(--social) 0 var(--rail);
  pointer-events: auto;
  background: linear-gradient(160deg, #6b96c07a, #222b2b9c 70%, #171b17d9);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.classic-page-title {
  height: 9%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #e9f5ff20;
  flex-shrink: 0;
}
.classic-page-title h1 {
  font-size: clamp(19px, 1.65vw, 30px);
  font-weight: 600;
  color: #e0edf2;
  letter-spacing: 2px;
  margin: 0;
}
.classic-page-title > span {
  font-size: 10px;
  color: #d2e0e9;
}
.classic-page-title .settings-back {
  border: 0;
  font-size: 11px;
}
.match-source {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 24px;
  border-bottom: 1px solid #eef6ff20;
  font-size: 11px;
  background: #c2e1ff0b;
}
.match-source > label {
  font-size: 10px;
  color: #e0ecf4;
}
.match-source select {
  background: #b6d7ee20;
  border: 0;
  font-size: 11px;
  min-height: 32px;
  padding: 7px 12px;
  width: auto;
}
.match-source > span {
  margin-left: auto;
  color: #d4e0e7;
  font-size: 10px;
}
.classic-tabs {
  display: flex;
  align-items: stretch;
  padding: 0 22px;
  gap: 20px;
  border-bottom: 1px solid #f2f5f530;
  min-height: 46px;
  flex-shrink: 0;
  background: #c5e1f010;
}
.classic-tabs > button {
  position: relative;
  border: 0;
  padding: 10px 5px;
  min-height: 46px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 400;
}
.classic-tabs > button.active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #eefbff;
}
.classic-tabs > button.active {
  background: #d5eaf00b;
}
.map-scroll {
  padding: 24px 4.8% 28px;
  overflow: auto;
  min-height: 0;
  flex: 1;
  scrollbar-color: #b8c3c680 transparent;
  scrollbar-width: thin;
}
.classic-map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.classic-map {
  aspect-ratio: 0.69;
  position: relative;
  padding: 0 !important;
  border: 3px solid #e0e3e7 !important;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 2px 5px #0007;
  background: #283f47 !important;
  isolation: isolate;
}
.classic-map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.75) brightness(0.85);
}
.classic-map:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 42%, #030b09db);
}
.classic-map.selected {
  border-color: white !important;
  box-shadow:
    0 0 0 2px #cedde97a,
    0 2px 8px #111a;
}
.classic-map:disabled {
  opacity: 0.42;
}
.classic-map:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 18px #cadbf650;
}
.map-top {
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.map-check {
  width: 15px;
  height: 15px;
  background: #eef4f3bd;
  color: #3e666d;
  line-height: 15px;
  text-align: center;
  border-radius: 2px;
}
.map-emblem {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 47%;
  background: linear-gradient(125deg, #b8493e, #762a26);
  border: 3px solid #d5d8b6;
  outline: 2px solid #314444;
  clip-path: polygon(50% 0, 97% 18%, 92% 80%, 50% 100%, 8% 80%, 3% 18%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 2px #000);
  color: #f7e8ae;
}
.map-emblem small {
  font-size: clamp(5px, 0.48vw, 9px);
  letter-spacing: 1px;
}
.map-emblem strong {
  font-family: Georgia, serif;
  font-size: clamp(24px, 3.1vw, 57px);
  line-height: 1.15;
}
.map-emblem > span {
  font-size: clamp(6px, 0.6vw, 11px);
  letter-spacing: 1px;
}
.emblem-kasbah {
  background: linear-gradient(#244f65, #132b37);
  color: #e3dfb8;
}
.emblem-range {
  background: linear-gradient(#bca042, #66592b);
}
.map-bottom {
  position: absolute;
  bottom: 7%;
  left: 0;
  right: 0;
  text-align: center;
}
.map-bottom b {
  display: block;
  font-size: clamp(9px, 0.9vw, 16px);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.map-bottom small {
  font-size: clamp(6px, 0.53vw, 10px);
  letter-spacing: 0;
  color: #e8e9df;
}
.map-summary {
  margin: 22px 0;
  color: #fff;
  font-size: 13px;
}
.map-summary span {
  color: #d5dfe2;
  font-size: 12px;
}
.match-rules {
  border-top: 1px solid #e5f1f52b;
  padding-top: 16px;
  max-width: 1000px;
}
.match-rules h2 {
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 400;
  margin: 0 0 18px;
  color: #edf5f7;
}
.match-rule-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.classic-shell .field {
  border-bottom: 1px solid #e1ebee29;
  min-height: 52px;
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.match-rules .field {
  font-size: 11px;
}
.match-rules .field select {
  font-size: 11px;
  width: auto;
  max-width: 60%;
  min-height: 34px;
  padding: 6px 8px;
  background: #12242a44;
  border: 0;
}
.match-rules .field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}
.side-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}
.side-picker button {
  font-size: 11px;
  padding: 10px 12px;
  min-height: 40px;
  flex: 1;
  white-space: nowrap;
}
.side-picker button.selected {
  border-color: #d8edf4;
  background: #a3cee333;
}
.side-picker button:last-child.selected {
  background: #ad8d4e44;
  border-color: #d9c592;
}
.rule-note {
  font-size: 12px;
  line-height: 1.8;
  color: #d8e3e6;
  margin: 8px 0;
}
.rule-checks {
  display: flex;
  gap: 30px;
  margin-top: 14px;
}
.rule-checks .field {
  border: 0;
  gap: 15px;
}
.classic-bottom {
  border-top: 1px solid #dceaf52b;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 3%;
  flex-shrink: 0;
  background: #151b17a3;
}
.classic-bottom > span {
  font-size: 11px;
  letter-spacing: 0.4px;
}
.classic-bottom small {
  display: inline-block;
  font-size: 10px;
  color: #d0d9d0;
  margin-left: 16px;
}
.classic-bottom .classic-start {
  min-width: 210px;
  min-height: 40px;
  text-align: center;
  letter-spacing: 2px;
  font-size: 22px;
  font-weight: 400;
  padding: 6px 30px;
  border: 1px solid #7cb66d;
  background: linear-gradient(90deg, #155f21, #358e32 50%, #1b6a21);
  box-shadow: inset 0 0 8px #091f1266;
  color: #e3f5d7;
}
.classic-start:hover {
  filter: brightness(1.2);
}
.settings-page {
  background: linear-gradient(120deg, #163c48e3, #212527eb 65%, #171919f0);
  backdrop-filter: blur(24px);
}
.settings-tabs {
  height: 64px;
  gap: 30px;
  padding-left: 36px;
  background: #b4cfe106;
}
.settings-tabs > button {
  font-size: 14px;
  font-weight: 600;
}
.settings-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid #c4d6de55;
  padding-left: 20px;
  align-self: center;
  height: 36px;
  margin-left: 4px;
}
.settings-search > span {
  font-size: 30px;
}
.settings-search input {
  background: none;
  border: 0;
  font-size: 14px;
  width: 150px;
  padding: 4px;
  min-height: 36px;
}
.settings-search input::placeholder {
  color: #e5ecee;
}
.settings-subtabs {
  display: flex;
  gap: 28px;
  min-height: 58px;
  padding: 0 36px;
  border-bottom: 1px solid #e1ecf02b;
  flex-shrink: 0;
  align-items: center;
}
.settings-subtabs button {
  font-size: 12px;
  border: 0;
  padding: 12px 0;
  min-height: 42px;
  font-weight: 400;
}
.settings-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
  scrollbar-color: #c4cbca70 transparent;
  scrollbar-width: thin;
  padding: 22px 20px 50px;
}
.classic-settings-content {
  width: 58%;
  max-width: 900px;
  margin: 0 auto;
}
.classic-settings-content h2 {
  font-size: 16px;
  color: #c4cfd3;
  letter-spacing: 1px;
  margin: 12px 0 38px;
  font-weight: 600;
  scroll-margin-top: 20px;
}
.classic-settings-content h2:not(:first-child) {
  margin-top: 64px;
}
.classic-settings-content .field {
  min-height: 61px;
  font-size: 15px;
  font-weight: 400;
  color: #d2dcdf;
  letter-spacing: 0.8px;
}
.classic-settings-content .field label {
  line-height: 1.5;
  flex: 1;
}
.classic-settings-content .field select {
  width: auto;
  max-width: 55%;
  text-align: right;
  padding: 10px 3px;
  background: transparent;
  border: 0;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  color: #f1f4f5;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.classic-settings-content select option {
  background: #22343c;
  color: white;
}
.classic-settings-content .field b {
  font-size: 14px;
  font-weight: 600;
}
.inline-setting {
  border: 0 !important;
  font-size: 13px;
  padding: 6px !important;
  max-width: 55%;
  text-align: right;
}
.range-control {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 45%;
  width: 290px;
}
.range-control input {
  width: 100%;
  min-width: 40px;
  min-height: 18px;
  height: 18px;
  accent-color: #d4dada;
  border: 0;
  background: transparent;
}
.range-control output {
  min-width: 58px;
  display: block;
  padding: 5px 7px;
  text-align: center;
  border: 1px solid #d8dfde4d;
  font-size: 13px;
  color: #e6ecea;
}
.settings-note {
  font-size: 12px;
  color: #b2c3c9;
  line-height: 1.7;
  margin: 24px 0;
}
.settings-bottom {
  justify-content: flex-end;
  position: relative;
  min-height: 80px;
  background: #101614bd;
  padding-bottom: 25px;
  gap: 16px;
}
.settings-bottom button {
  border: 0;
  font-size: 12px;
  padding: 10px;
  white-space: nowrap;
}
.settings-bottom button[data-action='apply-settings']:not(:disabled) {
  color: #c9f3ab;
  background: #71a44d27;
}
.settings-save-status {
  position: absolute;
  bottom: 7px;
  right: 3%;
  font-size: 9px !important;
  color: #c4cfc7;
}
.key-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  font-size: 13px;
  margin: 35px 0;
}
.settings-empty {
  font-size: 14px;
  color: #d0dbdd;
}
.classic-shell [hidden] {
  display: none !important;
}
.legacy-classic {
  position: absolute;
  inset: 0 var(--social) 0 var(--rail);
  pointer-events: auto;
  background: #1a2c36ed;
  backdrop-filter: blur(20px);
  overflow: auto;
}
.legacy-classic .panel-screen {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  height: 100%;
  padding: 24px 30px;
}
.legacy-classic .screen-head {
  padding-bottom: 22px;
}
.legacy-classic .footer {
  display: none;
}
@media (min-width: 1600px) {
  .classic-rail .cl-logo {
    font-size: 18px;
  }
  .classic-home {
    gap: 14px;
  }
  .news-panel {
    padding: 0 18px 16px;
  }
  .news-panel > h1 {
    font-size: 15px;
    line-height: 30px;
  }
  .news-teaser {
    padding: 14px 18px;
  }
  .news-teaser p {
    font-size: 14px;
  }
  .news-lead > div {
    padding: 18px 22px;
  }
  .news-scroll time {
    font-size: 11px;
  }
  .news-link {
    font-size: 13px;
    min-height: 36px;
  }
  .news-secondary {
    padding: 18px 22px;
  }
  .collection-panel > nav {
    height: 42px;
    gap: 22px;
  }
  .collection-panel > nav button {
    font-size: 13px;
  }
  .collection-body {
    height: calc(100% - 42px);
  }
  .collection-captions {
    font-size: 12px;
  }
  .collection-body > p {
    font-size: 11px;
  }
  .social-portraits {
    gap: 14px;
  }
  .classic-page-title {
    padding: 0 36px;
  }
  .match-source {
    min-height: 55px;
  }
  .classic-tabs > button {
    font-size: 14px;
  }
  .classic-tabs {
    min-height: 54px;
  }
  .map-scroll {
    padding-top: 26px;
  }
  .classic-map-grid {
    gap: 24px;
  }
  .match-rules .field {
    font-size: 13px;
  }
  .match-rules .field select {
    font-size: 13px;
  }
  .side-picker button {
    font-size: 13px;
  }
  .classic-bottom {
    min-height: 85px;
  }
}
@media (max-width: 1050px) {
  .classic-shell {
    --rail: 58px;
    --social: 52px;
  }
  .classic-home {
    left: 74px;
    width: 42%;
    top: 16px;
    bottom: 16px;
    height: auto;
  }
  .settings-tabs {
    gap: 16px;
    padding: 0 20px;
  }
  .settings-tabs > button {
    font-size: 12px;
  }
  .settings-search {
    padding-left: 10px;
  }
  .settings-search input {
    width: 80px;
  }
  .classic-settings-content {
    width: 82%;
  }
  .classic-map-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .match-rule-columns {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
  }
  .match-rule-columns > div:last-child {
    grid-column: 1/-1;
    display: flex;
    gap: 25px;
  }
  .match-rule-columns > div:last-child > .field {
    flex: 1;
  }
  .settings-bottom {
    gap: 4px;
  }
  .settings-bottom button {
    font-size: 10px;
    padding: 10px 6px;
  }
  .map-bottom small {
    font-size: 8px;
  }
  .map-bottom b {
    font-size: 12px;
  }
  .map-emblem small {
    font-size: 7px;
  }
  .map-emblem strong {
    font-size: 36px;
  }
  .map-emblem > span {
    font-size: 9px;
  }
  .match-source > span {
    display: none;
  }
}
@media (max-width: 650px) {
  .classic-shell {
    --rail: 48px;
    --social: 0px;
  }
  .classic-social {
    display: none;
  }
  .cl-logo small {
    display: none;
  }
  .classic-rail .cl-logo {
    font-size: 9px;
  }
  .classic-home {
    left: 60px;
    right: 12px;
    width: auto;
    top: 12px;
    bottom: 24px;
    height: auto;
    grid-template-rows: minmax(0, 2.4fr) minmax(0, 1fr);
  }
  .news-panel {
    background: #5b788bbf;
  }
  .news-lead > img {
    max-height: 180px;
  }
  .news-scroll p {
    font-size: 12px;
  }
  .news-scroll h2 {
    font-size: 16px;
  }
  .collection-body > img {
    height: 80px;
  }
  .operator-label {
    display: none;
  }
  .classic-build {
    left: 60px;
    font-size: 7px;
  }
  .classic-page-title {
    padding: 0 14px;
    min-height: 58px;
  }
  .classic-page-title h1 {
    font-size: 17px;
    letter-spacing: 1px;
  }
  .classic-page-title > span {
    display: none;
  }
  .match-source {
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .match-source > label {
    display: none;
  }
  .match-source select {
    width: 100%;
    font-size: 10px;
  }
  .classic-tabs {
    padding: 0 12px;
    gap: 12px;
    overflow-x: auto;
  }
  .classic-tabs > button {
    font-size: 11px;
  }
  .map-scroll {
    padding: 18px 14px;
  }
  .classic-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .classic-map {
    aspect-ratio: 0.7;
  }
  .map-emblem strong {
    font-size: 32px;
  }
  .map-emblem small {
    font-size: 6px;
  }
  .map-emblem > span {
    font-size: 7px;
  }
  .map-bottom b {
    font-size: 10px;
  }
  .map-bottom small {
    font-size: 7px;
  }
  .map-summary {
    font-size: 12px;
    line-height: 1.6;
  }
  .map-summary span {
    font-size: 11px;
  }
  .match-rule-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .match-rule-columns > div:last-child {
    display: block;
  }
  .rule-checks {
    display: block;
    margin: 0;
  }
  .classic-bottom {
    padding: 10px 12px;
    gap: 8px;
    min-height: 70px;
  }
  .classic-bottom > span {
    font-size: 9px;
    line-height: 1.6;
  }
  .classic-bottom small {
    margin: 0;
    font-size: 8px;
    display: block;
  }
  .classic-bottom .classic-start {
    min-width: 112px;
    font-size: 17px;
    padding: 6px 12px;
  }
  .settings-tabs {
    height: 54px;
    gap: 16px;
    padding: 0 14px;
    flex-wrap: nowrap;
    overflow: auto;
  }
  .settings-tabs > button {
    font-size: 11px;
  }
  .settings-search {
    padding-left: 10px;
    margin-right: 10px;
  }
  .settings-search input {
    width: 80px;
    font-size: 12px;
  }
  .settings-subtabs {
    padding: 0 14px;
    gap: 18px;
    min-height: 48px;
  }
  .settings-subtabs button {
    font-size: 10px;
  }
  .settings-scroll {
    padding: 15px 14px 30px;
  }
  .classic-settings-content {
    width: 100%;
  }
  .classic-settings-content h2 {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .classic-settings-content .field {
    font-size: 12px;
    letter-spacing: 0;
    gap: 8px;
    min-height: 66px;
  }
  .classic-settings-content .field select {
    font-size: 10px;
    letter-spacing: 0;
    max-width: 53%;
  }
  .classic-settings-content .field b {
    font-size: 11px;
  }
  .inline-setting {
    font-size: 10px;
  }
  .range-control {
    gap: 7px;
    max-width: 50%;
  }
  .range-control output {
    min-width: 39px;
    padding: 4px;
    font-size: 11px;
  }
  .settings-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 10px 24px;
    gap: 2px;
  }
  .settings-bottom button {
    white-space: normal;
    font-size: 9px;
    padding: 6px;
    min-height: 34px;
  }
  .settings-bottom button:first-child {
    grid-column: 1/-1;
  }
  .settings-save-status {
    font-size: 8px !important;
  }
  .settings-back {
    font-size: 9px !important;
    padding: 4px !important;
  }
  .legacy-classic .panel-screen {
    padding: 15px;
  }
  .legacy-classic .screen-head h1 {
    font-size: 20px;
  }
  .legacy-classic .inventory-grid,
  .legacy-classic .controls-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .classic-shell * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .classic-map:not(:disabled):hover {
    transform: none;
  }
}
/* Final reference alignment and icon rendering. */
.rank-medal {
  transform: none;
  width: 78%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-medal svg {
  width: 100%;
  height: 100%;
}
.social-heading svg {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
}
.search-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  display: block;
}
.news-teaser {
  padding: 5px 14px;
}
.news-teaser small {
  display: none;
}
.news-teaser p {
  margin: 0;
  line-height: 15px;
  max-height: 30px;
  overflow: hidden;
}
.classic-settings-content {
  width: 48%;
}
.match-rules .field label {
  font-family: Arial, sans-serif;
}
.classic-home .news-panel {
  border-radius: 0;
}
.settings-bottom button[data-action='reset-settings'] {
  font-family: Arial, sans-serif;
}
.collection-body > img {
  object-fit: cover;
}
.classic-settings-content input[type='range'] {
  appearance: none;
  height: 5px;
  min-height: 5px;
  background: #c4ccca90;
  border-radius: 0;
}
.classic-settings-content input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 9px;
  background: #d9dddd;
  border-radius: 1px;
  border: 0;
}
.classic-settings-content input[type='range']::-moz-range-thumb {
  width: 13px;
  height: 9px;
  background: #d9dddd;
  border: 0;
  border-radius: 1px;
}
@media (max-width: 1050px) {
  .classic-settings-content {
    width: 82%;
  }
}
@media (max-width: 650px) {
  .classic-settings-content {
    width: 100%;
  }
  .news-teaser p {
    max-height: 45px;
  }
  .collection-body > img {
    object-fit: contain;
  }
}
.settings-view .classic-rail {
  background: linear-gradient(#17343deb, #192524f5 55%, #171b19fa);
}
.settings-view .classic-social {
  background: #161c1de8;
}
.reset-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vertical-align: middle;
  margin-right: 7px;
}
/* Build 03: cleaner navigation, upstream Heroicons and CS-style map setup. */
.asset-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask-image: var(--icon);
  mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.classic-rail .cl-logo {
  height: 9%;
  min-height: 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1vw, 18px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.classic-rail .rail-item {
  height: 9%;
  min-height: 58px;
}
.classic-rail .rail-item .asset-icon {
  width: 43%;
  max-width: 38px;
  height: 38px;
}
.classic-rail {
  gap: 6px;
}
.classic-rail .cl-logo {
  margin-bottom: 8px;
}
.profile-only {
  background: linear-gradient(#293d4d50, #19242150);
  backdrop-filter: blur(10px);
}
.profile-question {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  aspect-ratio: 1;
  margin-top: 8px;
  border: 1px solid #c9dce059;
  background: linear-gradient(145deg, #758da28c, #354e5a9e);
  font-size: clamp(25px, 3vw, 52px);
  font-weight: 300;
  color: #ecf4fa;
  text-shadow: 0 1px 3px #0005;
}
.settings-view .profile-only {
  background: #172124b0;
}
.news-panel .news-lead > img {
  object-position: center 62%;
  filter: saturate(0.9);
}
.news-scroll .news-teaser p {
  max-height: 30px;
}
.operator-label,
.map-emblem,
.match-source,
.match-rules {
  display: none !important;
}
.map-page .classic-tabs {
  min-height: 49px;
  gap: 28px;
}
.map-page .classic-tabs > button {
  padding-left: 8px;
  padding-right: 8px;
  font-size: 13px;
}
.map-toolbar {
  padding: 10px 4.8%;
  min-height: 63px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #c9dbea09;
  border-bottom: 1px solid #e3f0f22b;
  flex-shrink: 0;
  font-size: 12px;
}
.map-toolbar > label {
  color: #e3edf1;
  font-size: 12px;
}
.map-toolbar > select {
  border: 0;
  border-bottom: 1px solid #d2dfe84d;
  background: #4c6d8266;
  min-height: 38px;
  padding: 6px 12px;
  font-size: 12px;
  width: 180px;
}
.map-toolbar > span {
  color: #e0e9ed;
}
.map-toolbar .match-options-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 11px;
  color: #edf6fa;
}
.match-options-button .asset-icon {
  width: 23px;
  height: 23px;
}
.map-page .map-scroll {
  padding-top: 24px;
}
.map-page .classic-map-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.map-page .classic-map {
  aspect-ratio: 0.69;
  border: 3px solid #dce5ea !important;
  box-shadow: 0 2px 5px #0008;
}
.map-page .classic-map > img {
  filter: saturate(0.88) brightness(0.95);
  object-position: center;
}
.map-page .classic-map:after {
  background: linear-gradient(transparent 25%, #07152030 53%, #000b12ee 100%);
}
.map-page .classic-map.selected {
  border-color: #fff !important;
  box-shadow:
    0 0 0 2px #bfd7e7aa,
    0 2px 7px #000b;
}
.map-page .classic-map:disabled {
  opacity: 0.4;
}
.map-page .map-bottom {
  bottom: 9%;
  padding: 0 6px;
}
.map-page .map-bottom b {
  font-size: clamp(11px, 1vw, 18px);
  font-weight: 600;
  letter-spacing: 1px;
}
.map-page .map-bottom small {
  font-size: clamp(8px, 0.65vw, 12px);
  color: #dce7ec;
}
.map-type {
  font-size: 9px;
  letter-spacing: 0.5px;
  background: #163244c9;
  border: 1px solid #f3f9ff60;
  padding: 3px 5px;
  align-self: flex-start;
}
.map-page .map-top {
  top: 8px;
  left: 8px;
  right: 8px;
  align-items: center;
}
.map-page .map-check {
  background: transparent;
  width: 20px;
  height: 20px;
}
.map-check .asset-icon {
  width: 20px;
  height: 20px;
  color: #eff8fb;
  filter: drop-shadow(0 1px 2px #071b23);
}
.map-detail {
  margin-top: 24px;
  max-width: 680px;
  border-top: 1px solid #dfebf126;
  padding-top: 18px;
}
.map-detail h2 {
  font-size: 16px;
  letter-spacing: 1.3px;
  margin: 0 0 10px;
  font-weight: 600;
}
.map-detail p {
  font-size: 12px;
  line-height: 1.7;
  color: #d8e4eb;
  margin: 0;
  max-width: 600px;
}
.match-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}
.classic-bottom .match-status small {
  margin: 0;
  font-size: 10px;
  color: #beced5;
}
.match-status > span {
  letter-spacing: 0.7px;
}
.match-dialog {
  pointer-events: auto;
  width: min(690px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  background: linear-gradient(125deg, #23414cfa, #1a242afa);
  color: #edf4f5;
  border: 1px solid #a2bccb80;
  box-shadow: 0 20px 80px #0008;
  font-family: Arial, sans-serif;
  overflow: hidden;
  letter-spacing: 0.4px;
}
.match-dialog[open] {
  display: flex;
  flex-direction: column;
}
.match-dialog::backdrop {
  background: #0c192b96;
  backdrop-filter: blur(8px);
}
.match-dialog > header {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 26px;
  border-bottom: 1px solid #d0e4ed33;
  flex-shrink: 0;
}
.match-dialog h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.4px;
  margin: 0;
}
.match-dialog > header button {
  border: 0;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  color: #e7f4f7;
}
.match-dialog > header .asset-icon {
  width: 25px;
  height: 25px;
}
.match-dialog-body {
  padding: 12px 28px 24px;
  overflow: auto;
  min-height: 0;
  scrollbar-color: #a4b5bf70 transparent;
  scrollbar-width: thin;
}
.match-dialog h3 {
  font-size: 12px;
  color: #c9d9e2;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  margin: 18px 0;
}
.match-dialog .side-picker {
  gap: 12px;
  margin-bottom: 26px;
}
.match-dialog .side-picker button {
  min-height: 48px;
  padding: 12px;
  font-size: 12px;
  text-align: center;
  border-color: #a1b9c44d;
}
.match-dialog .side-picker button.selected {
  background: #a7cde226;
  border-color: #d0e5ef;
}
.match-dialog .side-picker button:last-child.selected {
  background: #c3a25a26;
  border-color: #e2cf99;
}
.classic-shell .match-dialog .field {
  font-size: 13px;
  padding: 8px 0;
  min-height: 55px;
  gap: 20px;
  font-family: Arial, sans-serif;
}
.match-dialog .field label {
  font-family: Arial, sans-serif;
  line-height: 1.5;
}
.match-dialog .field select {
  min-height: 38px;
  width: auto;
  max-width: 53%;
  font-size: 12px;
  border: 0;
  background: #6b899c28;
  padding: 6px 12px;
  text-align: right;
}
.match-dialog .field input[type='checkbox'] {
  height: 19px;
  width: 19px;
  min-height: 19px;
  accent-color: #c3d7e0;
}
.match-dialog .field b {
  font-size: 12px;
}
.match-dialog > footer {
  padding: 15px 25px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #c4dbe733;
  background: #0d1c2580;
  flex-shrink: 0;
}
.match-dialog > footer button {
  min-height: 42px;
  font-size: 12px;
  padding: 10px 24px;
  border: 0;
}
.match-dialog > footer .match-dialog-apply {
  background: #8eb0c34a;
  border: 1px solid #b0cbdc7d;
}
.settings-search > .asset-icon {
  width: 24px;
  height: 24px;
}
.settings-bottom button > .asset-icon {
  width: 21px;
  height: 21px;
  margin-right: 7px;
}
@media (min-width: 1600px) {
  .map-page .classic-tabs {
    min-height: 58px;
  }
  .map-page .classic-tabs > button {
    font-size: 15px;
  }
  .map-toolbar {
    min-height: 72px;
  }
  .map-toolbar > label,
  .map-toolbar > select {
    font-size: 14px;
  }
  .map-toolbar .match-options-button {
    font-size: 12px;
  }
  .map-page .classic-map-grid {
    gap: 26px;
  }
  .map-detail h2 {
    font-size: 19px;
  }
  .map-detail p {
    font-size: 14px;
  }
  .match-dialog {
    width: 760px;
  }
  .match-dialog > header {
    min-height: 78px;
  }
  .match-dialog h2 {
    font-size: 21px;
  }
  .classic-shell .match-dialog .field {
    min-height: 60px;
    font-size: 14px;
  }
  .match-dialog .field select {
    font-size: 14px;
  }
}
@media (max-width: 1050px) {
  .map-page .classic-map-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .map-toolbar {
    gap: 10px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .map-toolbar .match-options-button {
    font-size: 10px;
    gap: 8px;
  }
}
@media (max-width: 650px) {
  .classic-rail .cl-logo {
    font-size: 10px;
  }
  .map-page .classic-tabs {
    gap: 16px;
    min-height: 49px;
  }
  .map-page .classic-tabs > button {
    font-size: 11px;
    min-height: 49px;
    padding: 10px 4px;
  }
  .map-toolbar {
    padding: 8px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .map-toolbar > label {
    font-size: 10px;
  }
  .map-toolbar > select {
    width: auto;
    font-size: 10px;
    min-height: 36px;
    max-width: 58%;
  }
  .map-toolbar .match-options-button {
    margin: 0;
    width: 100%;
    justify-content: flex-end;
    min-height: 36px;
    padding: 4px 0;
    font-size: 10px;
  }
  .map-toolbar .match-options-button .asset-icon {
    height: 20px;
    width: 20px;
  }
  .map-page .classic-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .map-page .map-bottom b {
    font-size: 11px;
  }
  .map-page .map-bottom small {
    font-size: 8px;
  }
  .map-page .map-top {
    left: 5px;
    right: 5px;
    top: 5px;
  }
  .map-type {
    font-size: 7px;
    padding: 2px 4px;
  }
  .map-detail h2 {
    font-size: 14px;
  }
  .map-detail p {
    font-size: 11px;
  }
  .match-status {
    font-size: 9px;
  }
  .classic-bottom .match-status small {
    font-size: 8px;
  }
  .match-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .match-dialog > header {
    padding: 10px 16px;
    min-height: 62px;
  }
  .match-dialog h2 {
    font-size: 14px;
  }
  .match-dialog-body {
    padding: 8px 16px 18px;
  }
  .classic-shell .match-dialog .field {
    font-size: 11px;
    gap: 12px;
    min-height: 53px;
  }
  .match-dialog .field select {
    font-size: 10px;
    padding: 6px 8px;
  }
  .match-dialog > footer {
    padding: 12px 16px;
  }
  .match-dialog > footer button {
    font-size: 11px;
    padding: 10px 15px;
  }
  .news-scroll .news-teaser p {
    max-height: 45px;
  }
}

/* The wordmark is also the persistent home control. */
.classic-rail button.cl-logo {
  background: transparent;
  color: #f4f6f5;
  cursor: pointer;
}
.classic-rail button.cl-logo:hover {
  background: #dceaff24;
}

.round-ad-warning{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:rgba(8,15,19,.88);color:#fff;text-align:center;pointer-events:all}.round-ad-warning>div{max-width:640px;margin:24px;padding:36px;border:1px solid #657784;background:#18252e;border-radius:8px}.round-ad-warning small{color:#becbd4;letter-spacing:.14em;font-size:14px}.round-ad-warning h2{font-size:clamp(22px,3vw,32px);line-height:1.3;margin:20px 0}.round-ad-warning p{font-size:16px;color:#becbd4}
/* Cross-browser dropdowns, including modal dialogs. Native values remain the form source. */
.game-select{position:relative;display:inline-flex;min-width:155px;max-width:55%;vertical-align:middle}
.game-select-native{display:none!important}
.game-select-control{width:100%;min-height:44px;padding:10px 34px 10px 12px!important;border:1px solid #8299a8!important;background:#243b4b!important;color:#fff!important;font-size:14px!important;line-height:1.35!important;letter-spacing:0!important;text-align:left!important;position:relative;white-space:normal}
.game-select-control:after{content:'';position:absolute;right:14px;top:45%;width:7px;height:7px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.game-select-control[aria-expanded=true]{outline:2px solid #c3e6ff;outline-offset:2px}
.map-toolbar>.game-select{width:180px;max-width:40%;flex-shrink:0}
.game-select-list{position:fixed;z-index:9000;background:#162b39;color:#fff;border:1px solid #95afc0;box-shadow:0 8px 32px #0008;overflow-y:auto;overscroll-behavior:contain;padding:4px;border-radius:4px}
.game-select-option{display:block;width:100%;min-height:44px;text-align:left!important;background:#162b39!important;color:#fff!important;border:0!important;padding:10px 12px!important;font-size:14px!important;line-height:1.35!important;letter-spacing:0!important;white-space:normal}
.game-select-option[aria-selected=true]{font-weight:700;background:#2d4c61!important}
.game-select-option:hover,.game-select-option.is-highlighted{background:#385f77!important;outline:1px solid #a8dfff;outline-offset:-1px}
.game-select-option:disabled{color:#a1abb2!important;opacity:.7}
select,option,optgroup{background-color:#243b4b;color:#fff;color-scheme:dark}
/* Keep the new short title inside the existing sidebar wordmark. */
.cl-logo{font-size:16px!important;line-height:1.1!important}.cl-logo>span{font-size:18px!important}.cl-logo>small{display:none!important}
