/* Лендинг публичных комнат (этап 116) — палитра draft.css:
   фон #0b0b0b, текст #dbdee1, панели #101114, бордеры #26272b,
   акцент #5865f2, стороны #5b8def/#ef5b5b, золото #d7b76a.
   Этап 131: бренд — Oswald как на основном сайте (файлы в
   draft/static/fonts, сервис самодостаточен). */

@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/oswald-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC-20AC;
}
@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/oswald-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/oswald-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC-20AC;
}
@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/oswald-600-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}
@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/oswald-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC-20AC;
}
@font-face {
  font-family: "Oswald";
  src: url("/static/fonts/oswald-700-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: #0b0b0b;
    color: #dbdee1;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.hidden { display: none !important; }

/* Этап 154: шапка/бренд/hero сняты — страница = карточка настройки;
   переключатель языка — прямо под карточкой. */
.langs { display: flex; gap: 6px; justify-content: center; margin: 0 0 22px; }
.lang {
    padding: 4px 11px;
    border-radius: 6px;
    border: 1px solid #26272b;
    background: #151619;
    color: #b5bac1;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.lang:hover { color: #fff; border-color: #3f4147; }
.lang.active { background: #5865f2; border-color: #5865f2; color: #fff; }

.wrap { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 20px 0; }

.card {
    background: #101114;
    border: 1px solid #26272b;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
}
/* Заголовок и подводка prep-секции (этап 119). */
.card h2 { margin: 0 0 6px; font-size: 17px; color: #dbdee1; }
.card .sub { margin: 0 0 14px; color: #9ba0a8; font-size: 13px; line-height: 1.5; }
.frow { display: flex; gap: 14px; flex-wrap: wrap; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
/* Ряд селектов (этап 154): три поля в одну строку — узкий базис,
   без разрыва на две строки и дырки между ними. */
.frow-sel .field { flex: 1 1 140px; }
.field > label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #9ba0a8;
}
input[type="text"], input[type="number"], select {
    background: #151619;
    border: 1px solid #26272b;
    color: #dbdee1;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    width: 100%;
}
input:focus, select:focus { outline: none; border-color: #5865f2; }
/* Этап 168: ряд «имя + тег» — имя растёт, тег-поле узкое (4ch). */
.teamline { display: flex; gap: 8px; }
.teamline input:first-child { flex: 1 1 auto; min-width: 0; }
.teamline .tag { flex: 0 0 72px; width: 72px; text-transform: uppercase; }
/* Подписи сторон — цветом своей стороны (этап 131). */
label.lbl-blue { color: #5b8def; }
label.lbl-red { color: #ef5b5b; }
.hint { font-size: 12px; color: #8b93a7; min-height: 15px; }
/* min-height под две строки — блок не прыгает между модами. */
#mod-desc { min-height: 30px; line-height: 15px; }
select option:disabled { color: #5f646d; }

/* Этап 146: сетка отключаемых чемпионов в расширенных настройках —
   компактные иконки, клик тоглит; выбранные — затемнены и
   перечёркнуты диагональю.
   Этап 154: окно фикс-высоты ровно на 4 строки (46px тайл + 5px
   зазор + 4px паддинг = 203px) — поисковый ввод высоту не меняет;
   скролл работает, скроллбар скрыт; счётчик «N» снят. */
.dchamps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    grid-auto-rows: 46px;
    gap: 5px;
    height: 203px;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px;
}
.dchamps::-webkit-scrollbar { display: none; }
.dchamp {
    position: relative;
    padding: 0;
    border: 1px solid #26272b;
    border-radius: 6px;
    background: #101114;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1;
}
.dchamp img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dchamp:hover { border-color: #5865f2; }
.dchamp.off { border-color: #5865f2; }
.dchamp.off img { filter: grayscale(1); opacity: .35; }
.dchamp.off::after {
    content: "";
    position: absolute;
    left: 6%; right: 6%; top: 47%;
    border-top: 2px solid #ef5b5b;
    transform: rotate(-35deg);
}
#dchamp-search { margin-bottom: 6px; }

.adv { margin: 2px 0 16px; border-top: 1px solid #1e2128; padding-top: 8px; }
.adv summary {
    cursor: pointer;
    color: #b5bac1;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0 10px;
    list-style-position: inside;
}
.plist { display: grid; grid-template-columns: 1fr; gap: 7px; }

.submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #5865f2;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.submit:hover:not(:disabled) { background: #4752c4; }
.submit:disabled { opacity: .55; cursor: default; }

.error {
    margin-top: 14px;
    padding: 9px 13px;
    border-radius: 6px;
    background: #3a1d20;
    border: 1px solid #ed4245;
    color: #f0a5a8;
    font-size: 13px;
    line-height: 1.4;
}

.result { border-color: #248046; }
.result h2 { margin: 0 0 8px; font-size: 15px; color: #dbdee1; }
.lrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #1e2128;
}
.lrow:last-of-type { border-bottom: none; }
.llabel { flex: 0 0 120px; font-size: 13px; font-weight: 700; }
.lrow.blue .llabel { color: #5b8def; }
.lrow.red .llabel { color: #ef5b5b; }
.lrow.spec .llabel { color: #9ba0a8; }
.lurl {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #b5bac1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Ссылки prep-доски — живые, открываются в новой вкладке (этап 119). */
a.lurl { color: #8fb3f2; text-decoration: none; }
a.lurl:hover { text-decoration: underline; }
.copy, .open {
    background: #1a1f2b;
    border: 1px solid #2a3140;
    color: #dbdee1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.copy:hover, .open:hover { background: #232a3a; color: #dbdee1; }
.another {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background: #1a1f2b;
    border: 1px solid #2a3140;
    color: #dbdee1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.another:hover { background: #232a3a; }

@media (max-width: 560px) {
    .frow { flex-direction: column; gap: 0; }
    .llabel { flex-basis: 95px; }
}
