/* Поверх оригинальных стилей 2017 года: шрифт из инлайнового <style> старого сайта и всё новое. */
@font-face {
  font-family: Monocraft;
  src: url("../fonts/Monocraft.ttf");
}

.mc { font-family: Monocraft, monospace; font-size: 13px; }
.mc-title { font-family: Monocraft, monospace; font-size: 13px; color: #4caf50; }
.mc-title .k { color: #000; }
.pixel { image-rendering: pixelated; }
.head { width: 25px; height: 25px; margin-right: 4px; vertical-align: middle; }

.loading { padding: 60px 0; text-align: center; }
.loader { display: inline-flex; gap: 6px; }
.loader i { width: 12px; height: 12px; background: #4caf50; animation: loader 0.9s steps(3) infinite; }
.loader i:nth-child(2) { animation-delay: 0.15s; }
.loader i:nth-child(3) { animation-delay: 0.3s; }
@keyframes loader { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .loader i { animation: none; } }
.mode-icon { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: -4px; margin-left: 6px; }
.notice { padding: 40px 15px; text-align: center; color: #777; }
.notice.error { color: #f34141; }

.widget-tile .desc { color: #333; }
.widget-tile .value { font-size: 24px; }
.data-info { text-align: center; padding: 18px 0; }

.search-switch { cursor: pointer; text-align: center; }
.search-switch .on { font-weight: bold; }
.search-box { max-width: 560px; margin: 24px auto; }

.online-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.online-row .name { flex: 0 0 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-row .bar { flex: 1; height: 8px; background: #eee; border-radius: 2px; overflow: hidden; }
.online-row .bar i { display: block; height: 100%; background: #4caf50; }
.online-row .num { flex: 0 0 56px; text-align: right; }

.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; }
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable .dir { color: #4caf50; }
.table-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.table-tools select, .table-tools input { border: 0; border-bottom: 1px solid #d2d2d2; background: transparent; padding: 4px; outline: 0; }
.table-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.table-foot .pagination { margin: 0; }

.pills { margin-bottom: 14px; }
.pills a { display: inline-block; margin: 0 4px 6px 0; padding: 3px 10px; border: 1px solid #ddd; border-radius: 3px; }
.pills a.on { background: #4caf50; border-color: #4caf50; color: #fff; }

.tab-container .nav-tabs { font-family: Monocraft, monospace; font-size: 13px; }
.body-skin { height: 320px; }
.profile-facts { font-size: 13px; line-height: 1.6; }
.stat-card { min-height: 190px; text-align: center; font-size: 13px; }
.stat-grid { display: flex; flex-wrap: wrap; }
.stat-grid > div { display: flex; }
.stat-grid .panel { width: 100%; }
.guild-avatar { width: 96px; height: 96px; object-fit: cover; }

.notifications-menu { position: relative; }
.notifications-menu.open > #staff-list { display: block; }
#staff-list { max-height: 360px; overflow: auto; padding: 8px 0; min-width: 240px; right: 0; left: auto; list-style: none; }
#staff-list li { padding: 3px 12px; white-space: nowrap; }

.main-footer a { color: #4caf50; }

/* Уровень страницы: на узких экранах ничего не вылезает за край */
@media (max-width: 767px) {
  .content { padding-left: 8px; padding-right: 8px; }
  .online-row .name { flex-basis: 110px; }
  /* Фиксированная панель темы перекрывает логотип: выносим его поверх неё */
  .main-header .logo { position: fixed; top: 0; left: 44px; width: auto; z-index: 1031; padding: 0 8px; background: transparent !important; }
  .main-sidebar { padding-top: 50px; }
  /* Логотип и панель вне потока: высоту шапки задаём сами, иначе контент уезжает под панель */
  .main-header { height: 50px; }
}

.site-logo { image-rendering: pixelated; vertical-align: middle; margin-top: -3px; }

.stat-extra { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eee; }
.limit-note { background: #fff3e0; color: #8a4b00; padding: 8px 16px; text-align: center; }
.limit-note[hidden] { display: none; }
.tab-container .nav-tabs > li > a { padding-left: 9px; padding-right: 9px; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: #eceff1; stroke-width: 1; }
.chart .tick { fill: #78909c; font-size: 12px; }
.chart .line { fill: none; stroke: #2e7d32; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: #b0bec5; stroke-width: 1; }
.chart .dot { fill: #2e7d32; stroke: #fff; stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart [hidden] { display: none; }
.chart-tip { position: absolute; padding: 4px 8px; background: #1f2d33; color: #fff; border-radius: 3px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.chart-note { color: #777; font-size: 13px; }
.chart-pick { display: block; font-weight: normal; margin-bottom: 12px; }
.chart-pick select { max-width: 100%; margin-left: 6px; }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; color: #4caf50; margin-bottom: 8px; }

.ub-preview { overflow-x: auto; }
.ub-preview img { max-width: 100%; height: auto; image-rendering: pixelated; }
.ub-code { display: block; font-weight: normal; margin-bottom: 8px; }
.ub-code input { display: block; width: 100%; padding: 4px 6px; border: 1px solid #ddd; font-family: monospace; font-size: 12px; }

.profile-facts { font-size: 13px; }
.stat-card { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .chart .tick { font-size: 22px; }
}

.game-card { cursor: pointer; }
.game-card:focus-visible { outline: 2px solid #4caf50; outline-offset: 2px; }
.card-hint { float: right; font-size: 14px; color: #cfd8dc; margin-top: 6px; }
.game-card:hover .card-hint, .game-card[aria-expanded="true"] .card-hint { color: #ffb300; }
.stat-places { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; cursor: default; }
.stat-places[hidden] { display: none; }
.stat-places .loading { padding: 12px 0; }
.places-table { width: 100%; font-size: 13px; }
.places-table th { font-weight: 600; color: #607d8b; padding: 2px 4px; text-align: center; }
.places-table th:first-child, .places-table td:first-child { text-align: left; }
.places-table td { padding: 2px 4px; text-align: center; }
.places-table td:not(:first-child), .places-table th:not(:first-child) { white-space: nowrap; }
