/* cyrillic-ext */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/raleway/v37/1Pt_g8zYS_SKggPNyCgSQamb1W0lwk4S4cHLDr4fIA9c.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/raleway/v37/1Pt_g8zYS_SKggPNyCgSQamb1W0lwk4S4cHLDrcfIA9c.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/raleway/v37/1Pt_g8zYS_SKggPNyCgSQamb1W0lwk4S4cHLDrwfIA9c.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/raleway/v37/1Pt_g8zYS_SKggPNyCgSQamb1W0lwk4S4cHLDr0fIA9c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/raleway/v37/1Pt_g8zYS_SKggPNyCgSQamb1W0lwk4S4cHLDrMfIA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

#onlineLobbyButton {
  display: inline-block;
}

#adminButton {
  display: inline-block;
}

.onlineModal[hidden] {
  display: none;
}

.onlineModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: inherit;
}

.onlineBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.onlinePanel {
  position: relative;
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 12px;
  overflow: auto;
  border: 1px solid #808080;
  border-radius: 6px;
  background: rgba(56, 56, 56, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  color: #fff;
}

.onlinePanelHeader,
.onlineCurrentRoomHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.onlinePanelHeader h2,
.onlineCard h3 {
  margin: 0;
}

.onlineEyebrow {
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfcfcf;
}

.onlineGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.onlineCard {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #6e6e6e;
  border-radius: 4px;
  background: rgba(42, 42, 42, 0.96);
}

.onlineCurrentRoomCard {
  margin-top: 10px;
}

.onlineLabel {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #d7d7d7;
}

.onlineInput {
  width: 100%;
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #8a8a8a;
  border-radius: 3px;
  background: #2f2f2f;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}

.onlineInput::placeholder {
  color: #a8a8a8;
}

.onlinePrimaryButton,
.onlineGhostButton,
.onlineDangerButton,
.onlineRoomAction {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #8b8b8b;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
}

.onlinePrimaryButton {
  width: 100%;
  margin-top: 10px;
  background: #d7d7d7;
  color: #1c1c1c;
}

.onlineGhostButton,
.onlineRoomAction {
  background: #4a4a4a;
  color: #fff;
}

.onlineDangerButton {
  background: #7b4747;
  color: #fff;
}

.onlineCurrentRoomButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onlineRoomsList,
.onlineCurrentRoom {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.onlineRoomCard {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 4px;
  background: #323232;
  border: 1px solid #666;
}

.onlineRoomTop,
.onlineRoomHeaderLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.onlineRoomAction {
  width: 100%;
  background: #5b5b5b;
  color: #fff;
}

.onlineRoomMeta,
.onlineRoomPlayers,
.onlineLastRound {
  color: #d8d8d8;
  font-size: 12px;
  line-height: 1.5;
}

.onlineLastRoundHighlight,
.onlineGameSummaryTitle {
  color: #d6d0bf;
}

.onlineStatus {
  margin-top: 8px;
  font-size: 12px;
  color: #d8d8d8;
}

.onlineStatus.is-error {
  color: #ffb5b5;
}

.onlineStatus.is-muted {
  color: #d8d8d8;
}

.onlineNicknameWarning {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(164, 30, 30, 0.92);
  border-radius: 4px;
  background: rgba(88, 8, 8, 0.34);
  color: #ff3d3d;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.22);
}

.onlineNicknameWarning[hidden] {
  display: none;
}

.onlinePill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #4a4a4a;
  font-size: 11px;
  color: #f1f1f1;
}

.onlineResultList {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.onlineResultItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #343434;
  border: 1px solid #5e5e5e;
  font-size: 12px;
}

.onlineResultItem strong {
  color: #fff;
}

.onlineResultItemHighlight {
  border-color: #6d6a5b;
  background: #3b3a34;
}

.onlineResultItemHighlight strong {
  color: #e6dfcb;
}

@media (max-width: 700px) {
  .onlinePanel {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    margin: 8px auto;
    padding: 10px;
  }

  .onlinePanelHeader,
  .onlineCurrentRoomHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .onlineCurrentRoomButtons {
    width: 100%;
  }

  .onlineGhostButton,
  .onlineDangerButton,
  .onlineRoomTop,
  .onlineRoomHeaderLine {
    width: 100%;
  }

  .onlineRoomTop,
  .onlineRoomHeaderLine {
    align-items: flex-start;
    flex-direction: column;
  }

  .onlineGhostButton,
  .onlineDangerButton,
  .onlineJoinLinkButton,
  .onlineRoomAction {
    width: 100%;
  }

}

.chat,
#chatVisible {
  width: min(var(--chat-width, 1000px), calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  position: relative !important;
}

#chatVisible .pages {
  position: absolute !important;
  width: 100% !important;
  max-width: 100% !important;
  top: .041666667in !important;
  left: 0 !important;
}

.chatArea {
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  width: 100%;
  min-height: 160px;
  height: calc(var(--chat-rows, 14) * 1.55em + 28px);
  padding: 14px 15px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(15, 15, 15, 0.72);
  border-radius: 8px;
  color: #fff;
  font-size: var(--chat-font-size, 15px);
  line-height: 1.45;
  font-family: var(--chat-font-family, Arial, sans-serif);
  font-weight: var(--chat-font-weight, 400);
  scrollbar-width: none;
  scroll-behavior: smooth;
  width: 100% !important;
  max-width: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

#chatVisible .typeChat {
  position: relative !important;
  width: 100% !important;
  padding-top: .104166667in !important;
}

#chatVisible .inputChat,
#chatInpt {
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  font-family: var(--chat-font-family, Arial, sans-serif) !important;
  font-size: var(--chat-font-size, 15px) !important;
  font-weight: var(--chat-font-weight, 400) !important;
  box-sizing: border-box !important;
}

.captchaDiv,
.typeDiv {
  z-index: 10000 !important;
}

.chatMessage {
  opacity: 1;
  transform: translateY(0);
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(232, 232, 232, 0.92);
}

.chatMessagePlayer {
  color: #fff;
}

.chatMessageMuted {
  color: rgba(173, 179, 186, 0.9);
}

.chatMessageOnline {
  color: rgba(156, 176, 192, 0.96);
}

.chatMessageCatch {
  color: rgba(210, 196, 154, 0.96);
}

.chatMessageSuccess {
  color: rgba(162, 194, 173, 0.96);
}

.chatMessageWarning {
  color: rgba(200, 187, 154, 0.96);
}

.chatMessageError {
  color: rgba(198, 157, 157, 0.96);
}

.chatMessage.is-animated {
  animation: chatMessageEnter 220ms ease-out;
}

.captchaDiv.captchaDivImageMode {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: 365px !important;
  height: 105px !important;
  line-height: 0 !important;
}

#captchaCanvas.captchaCanvasImageMode {
  width: 365px !important;
  height: 105px !important;
  display: block !important;
}

.chatSettings {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.chatSettings[hidden] {
  display: none;
}

.chatSettingsTitle {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 12px;
  color: #efefef;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roomBestWidget {
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 10000;
  min-width: 180px;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid rgba(214, 214, 214, 0.14);
  border-radius: 8px;
  background: rgba(22, 22, 22, 0.82);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #d8d8d8;
  font-size: 11px;
  line-height: 1.45;
  backdrop-filter: blur(6px);
}

.roomBestWidget[hidden] {
  display: none;
}

.roomBestWidgetTitle {
  margin-bottom: 4px;
  color: #e7dfc8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roomBestWidgetValue {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.roomBestWidgetMeta {
  color: #b9b9b9;
}

.roomBestWidgetList {
  display: grid;
  gap: 6px;
}

.roomBestWidgetItem {
  display: grid;
  gap: 1px;
}

.roomBestWidgetItemValue {
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 700;
}

.roomBestWidgetItemMeta {
  color: #b9b9b9;
  font-size: 10px;
}

.siteSettingsFab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10001;
  width: 42px;
  height: 34px;
  border: 1px solid #8b8b8b;
  border-radius: 3px;
  background: #4a4a4a;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: none;
}

.siteSettingsFab:hover,
.siteSettingsClose:hover {
  transform: none;
  border-top-color: #8b8b8b;
  border-right-color: #8b8b8b;
  border-bottom-color: #8b8b8b;
  border-left-color: #8b8b8b;
}

.siteSettingsPanel {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 10001;
  width: min(340px, calc(100vw - 24px));
  max-height: min(70vh, 620px);
  overflow: auto;
  padding: 12px;
  border: 1px solid #686868;
  border-radius: 4px;
  background: #2b2b2b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.siteSettingsPanel[hidden] {
  display: none;
}

.siteSettingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.siteSettingsTitle {
  font-size: 13px;
  font-weight: 700;
  color: #f3f3f3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.siteSettingsClose {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid #8b8b8b;
  border-radius: 3px;
  background: #4a4a4a;
  color: #fff;
  cursor: pointer;
}

.siteSettingsSection + .siteSettingsSection {
  margin-top: 12px;
}

.chatSettingsLabel,
.chatSettingsToggle {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: #d5d5d5;
}

.chatSettingsSelect,
.chatSettings input[type="range"] {
  width: 100%;
  margin-top: 4px;
}

.chatSettingsFile {
  width: 100%;
  margin-top: 4px;
  color: #d5d5d5;
}

.chatSettingsHint {
  margin-top: 6px;
  color: #bcbcbc;
  font-size: 11px;
  line-height: 1.45;
}

.chatSettingsHint.is-error {
  color: #ffb5b5;
}

.chatSettingsToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.plusChat {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  min-width: 220px;
  max-width: min(80vw, 980px);
  padding: 0;
  user-select: none;
  pointer-events: auto;
}

.plusChat[hidden] {
  display: none;
}

.plusChatBody {
  display: grid;
  gap: 6px;
  cursor: move;
}

.plusChatLine {
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
}

.plusChatLine.is-animated {
  animation: plusChatFadeIn 220ms ease-out;
}

.chatArea::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.chatArea::-webkit-scrollbar-thumb {
  background: transparent;
}

.chatArea::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes chatMessageEnter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plusChatFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.siteTopPanel {
  max-width: 700px;
}

.siteTopHero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 153, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 207, 120, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: none;
}

.siteTopHeroText {
  display: grid;
  gap: 4px;
  align-content: start;
}

.siteTopHeroTitle {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.siteTopHeroSubtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.siteTopLead {
  min-width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 210, 140, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 210, 140, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(15, 18, 23, 0.22);
  box-shadow: none;
}

.siteTopLead[hidden] {
  display: none;
}

.siteTopLeadLabel {
  color: rgba(255, 235, 198, 0.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.siteTopLeadNameRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.siteTopLeadName {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.siteTopLeadBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 223, 167, 0.1);
  border: 1px solid rgba(255, 223, 167, 0.16);
  color: #ffe4b6;
  font-size: 11px;
  font-weight: 700;
}

.siteTopLeadTime {
  margin-top: 4px;
  color: #fff3d1;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.siteTopLeadMeta {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.siteTopLeadStats {
  display: none;
}

.siteTopStatPill,
.siteTopStatMini {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.siteTopStatPill span,
.siteTopStatMini span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.siteTopStatPill strong,
.siteTopStatMini strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.siteTopList,
.onlinePlayerList {
  display: grid;
  gap: 8px;
}

.siteTopItem,
.onlinePlayerCard {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 10px 12px;
}

.siteTopItem {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.siteTopRank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 216, 147, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 216, 147, 0.12);
  color: #ffe0ac;
  font-size: 14px;
  font-weight: 700;
}

.siteTopItemBody {
  display: grid;
  gap: 4px;
}

.siteTopItemHeader,
.onlinePlayerCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.siteTopPlace,
.onlinePlayerCardName {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}

.siteTopTime,
.onlinePlayerCardBest {
  color: #a6f3a4;
  font-weight: 700;
  font-size: 15px;
}

.siteTopCodeRow {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.siteTopMeta,
.onlinePlayerCardMeta {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.3;
}

.siteTopMetaCompact {
  margin-top: 2px;
  font-size: 11px;
}

.siteTopStatsRow {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.3;
}

.siteTopStatsRow .siteTopStatMini {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
}

.siteTopStatsRow .siteTopStatMini + .siteTopStatMini::before {
  content: " • ";
  color: rgba(255, 255, 255, 0.5);
}

.siteTopStatsRow .siteTopStatMini span,
.siteTopStatsRow .siteTopStatMini strong {
  display: inline;
  font-size: inherit;
  line-height: inherit;
}

.siteTopStatsRow .siteTopStatMini span::after {
  content: ": ";
}

.siteTopAnswer {
  color: #ffd28c;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.siteTopPanel #siteTopStatus {
  display: none;
}

.adminPanel {
  width: min(980px, calc(100vw - 28px));
}

.adminList {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.adminItem {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #323232;
}

.adminItemHeader,
.adminItemActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.adminItemTitle {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.adminItemMeta {
  font-size: 12px;
  line-height: 1.5;
  color: #d8d8d8;
}

.adminInlineForm {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.adminInlineForm .onlineInput {
  min-width: 220px;
  flex: 1 1 220px;
}

.adminBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #757575;
  border-radius: 999px;
  background: #454545;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.adminBadge.is-danger {
  border-color: #8a3f3f;
  background: #6d3232;
}

.adminPageBody {
  min-height: 100vh;
  margin: 0;
  background: #242424;
  color: #fff;
}

.adminPageShell {
  width: min(1080px, calc(100vw - 28px));
  margin: 20px auto;
  padding-bottom: 20px;
}

.adminPageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.adminPageTitle {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.adminPageCard {
  margin-top: 12px;
}

.adminPageBack {
  text-decoration: none;
}

.adminTopLimitLabel {
  margin: 0;
  align-self: center;
}

.adminTopLimitSelect {
  width: auto;
  min-width: 88px;
}

.teamScoreHud {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.teamScoreHudItem {
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(24, 24, 24, 0.86);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.teamScoreHudName {
  display: block;
  font-size: 12px;
  color: #d8d8d8;
}

.teamScoreHudValue {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
}

.onlineTeamList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.onlineTeamButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #7f7f7f;
  border-radius: 4px;
  background: #373737;
  color: #fff;
  cursor: pointer;
}

.onlineTeamButton.is-selected {
  border-color: #f0f0f0;
  background: #4b4b4b;
}

@media (max-width: 640px) {
  .siteTopHero {
    flex-direction: column;
  }

  .siteTopLead {
    min-width: 0;
  }

  .siteTopLeadStats,
  .siteTopStatsRow {
    grid-template-columns: 1fr;
  }

  .siteTopItem {
    grid-template-columns: 1fr;
  }

  .siteTopRank {
    min-height: 34px;
  }

  .teamScoreHud {
    top: 6px;
    width: calc(100% - 16px);
    justify-content: center;
  }

  .teamScoreHudItem {
    min-width: 0;
    flex: 1 1 0;
    padding: 7px 8px;
  }
}

#record.is-visible {
  animation: recordReveal 1800ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes recordReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}
