/* 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;
}

.time {
  position: absolute;
  right: 4%;
  bottom: 10.5%;
  display: none;
  user-select: none;
  font-family: 'Pricedown Bl', Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  text-transform: uppercase;
  transform: scaleY(.82);
  color: #f2f2f2;
  text-align: right;
  z-index: 20;
  opacity: 0;
}

.time.is-visible {
  animation: timeHudFadeOut 1.5s forwards;
}

@keyframes timeHudFadeOut {
  0%, 92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.time .timeLine {
  font-size: 64px;
  line-height: .72;
  white-space: nowrap;
  letter-spacing: 1px;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 #000,
    -2px 2px 0 #000,
    2px -2px 0 #000,
    -2px -2px 0 #000,
    0 4px 0 #000;
}

.time .month {
  color: #d8b453;
}

.time .hours {
  color: #f2f2f2;
  margin-top: -4px;
}

.time .played {
  margin-top: 2px;
}

.time .playedLabel {
  color: #2b6b2f;
}

.time .playedGreen {
  color: #f2f2f2;
}

#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;
}

.onlineBanOverlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.94);
  color: #ff2b2b;
  text-align: center;
}

.onlineBanOverlay[hidden] {
  display: none;
}

.onlineBanOverlayText {
  max-width: 1100px;
  font-size: clamp(42px, 9vw, 130px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 0 28px rgba(255, 43, 43, 0.62);
}

.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(17, 19, 23, 0.76);
  border-radius: 8px;
  color: #e9e3d5;
  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: #d9d6cf;
}

.chatMessagePlayer {
  color: #fff;
}

.chatMessageMuted {
  color: #aeb4bd;
}

.chatMessageOnline {
  color: #a9bfcb;
}

.chatMessageCatch {
  color: #d9c49a;
}

.chatMessageSuccess {
  color: #b7cab7;
}

.chatMessageWarning {
  color: #b7c3d0;
}

.chatMessageError {
  color: #d6a7aa;
}

.chatMessageText {
  display: inline;
}

.chatMessage.is-animated {
  animation: chatMessageEnter 220ms ease-out;
}

.captchaDiv.captchaDivImageMode {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: fit-content !important;
  height: fit-content !important;
  line-height: 0 !important;
}

#captchaCanvas.captchaCanvasImageMode {
  width: auto !important;
  height: auto !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: 16px;
  bottom: 16px;
  z-index: 1200;
}

.chatTimingTooltip {
  position: fixed;
  z-index: 3000;
  max-width: min(420px, calc(100vw - 16px));
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(12, 12, 12, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.04s linear, transform 0.04s linear;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

.chatTimingTooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.siteSettingsModal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.siteSettingsModal[hidden] {
  display: none;
}

.siteSettingsPanelContent {
  width: min(720px, calc(100vw - 36px));
  max-height: min(86vh, 690px);
  margin: 0;
}

.siteSettingsPanelContent .onlinePanelHeader {
  margin-bottom: 10px;
}

.siteSettingsPanelContent .onlinePanelHeader h2 {
  margin: 0;
}

.siteSettingsModal .chatSettingsTitle {
  margin-bottom: 0;
}

.siteSettingsBody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.siteSettingsSection {
  display: grid;
  gap: 10px;
  margin-top: 0;
  align-content: start;
}

.siteSettingsSectionDialogs {
  min-height: 0;
}

.siteSettingsSectionDialogs .siteSettingsControlGrid {
  align-content: start;
}

.siteSettingsSectionHeader {
  display: grid;
  gap: 4px;
}

.siteSettingsSectionText {
  display: none;
}

.siteSettingsControlGrid {
  display: grid;
  gap: 8px;
}

.siteSettingsControl {
  display: grid;
  gap: 4px;
}

.siteSettingsRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 132px);
  gap: 8px;
}

.chatSettingsLabel,
.chatSettingsToggle {
  display: block;
  font-size: 11px;
  color: #d5d5d5;
  line-height: 1.35;
}

.chatSettingsSelect,
.chatSettings input[type="range"],
.siteSettingsModal input[type="range"],
.siteSettingsModal input[type="url"],
.siteSettingsModal select {
  width: 100%;
  margin-top: 0;
}

.siteSettingsModal input[type="url"],
.siteSettingsModal select {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #666;
  border-radius: 4px;
  background: rgba(22, 22, 22, 0.95);
  box-sizing: border-box;
  color: #f3f3f3;
  font: inherit;
}

.chatSettingsColor {
  width: 100%;
  height: 32px;
  margin-top: 0;
  padding: 3px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #202020;
  box-sizing: border-box;
}

.chatSettingsFile {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.siteSettingsFileButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #4a4a4a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.chatSettingsHint {
  min-height: 0;
  margin-top: 0;
  color: #bcbcbc;
  font-size: 10px;
  line-height: 1.35;
}

.siteSettingsResetButton {
  width: 100%;
  min-height: 32px;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid #8b8b8b;
  border-radius: 4px;
  background: #4a4a4a;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.chatSettingsHint.is-error {
  color: #ffb5b5;
}

.chatSettingsToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.chatSettingsToggle input {
  margin: 0;
}

@media (max-width: 700px) {
  .siteSettingsModal {
    padding: 14px;
  }

  .siteSettingsPanelContent {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 36px);
  }

  .siteSettingsBody {
    grid-template-columns: 1fr;
  }

  .siteSettingsRow {
    grid-template-columns: 1fr;
  }
}

.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;
}

.siteTopPeriods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.siteTopPeriodButton {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.siteTopPeriodButton:hover {
  background: rgba(255, 255, 255, 0.09);
}

.siteTopPeriodButton.is-active {
  background: rgba(255, 216, 147, 0.14);
  border-color: rgba(255, 216, 147, 0.26);
  color: #ffe4b6;
}

.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;
}

.siteTopList {
  min-height: 112px;
}

.siteTopLead.is-loading,
.siteTopList.is-loading {
  pointer-events: none;
}

.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;
}

.onlineAntiCheatPanel {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(255, 210, 140, 0.22);
  border-radius: 6px;
  background: rgba(255, 210, 140, 0.08);
}

.onlineAntiCheatPanel.is-danger {
  border-color: rgba(255, 95, 95, 0.45);
  background: rgba(255, 95, 95, 0.1);
}

.onlineAntiCheatTitle {
  color: #f4f4f4;
  font-size: 13px;
  font-weight: 800;
}

.onlineAntiCheatGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.onlineAntiCheatGrid div {
  min-width: 0;
  padding: 8px;
  border-radius: 4px;
  background: transparent;
}

.onlineAntiCheatGrid span,
.onlineAntiCheatGrid strong {
  display: block;
  overflow-wrap: anywhere;
}

.onlineAntiCheatGrid span {
  color: #aaa;
  font-size: 11px;
}

.onlineAntiCheatGrid strong {
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
}

.adminPanel {
  width: min(980px, calc(100vw - 28px));
}

.adminList {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.adminToolbar {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.adminSearchInput {
  width: 100%;
}

.adminFilterBar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.adminFilterButton {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #606060;
  border-radius: 4px;
  background: #2b2b2b;
  color: #d4d4d4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.adminFilterButton:hover,
.adminFilterButton.is-active {
  border-color: #b48a4c;
  background: #403428;
  color: #fff;
}

.adminTabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.adminTab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #303030;
  color: #d8d8d8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.adminTab:hover,
.adminTab.is-active {
  border-color: #9b9b9b;
  background: #464646;
  color: #fff;
}

.adminTab span {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #202020;
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.adminStatsGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.adminStatCard {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #323232;
}

.adminStatTitle {
  font-size: 12px;
  font-weight: 700;
  color: #d8d8d8;
}

.adminStatValues {
  display: grid;
  gap: 6px;
}

.adminStatValues div {
  display: grid;
  gap: 2px;
}

.adminStatValues span {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.adminStatValues small {
  font-size: 11px;
  line-height: 1.25;
  color: #bdbdbd;
}

.adminItem {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #323232;
}

.adminSuspiciousGroup {
  border: 1px solid #666;
  border-radius: 4px;
  background: #323232;
}

.adminSuspiciousSummary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
}

.adminSuspiciousSummaryMain {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.adminSuspiciousGroupItems {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.adminNestedItem {
  border-color: #555;
  background: #2b2b2b;
}

.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;
}

.adminMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.adminMetric {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #5c5c5c;
  border-radius: 4px;
  background: #282828;
}

.adminMetric span {
  color: #bdbdbd;
  font-size: 11px;
  line-height: 1.25;
}

.adminMetric strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
}

.adminMetric.is-danger {
  border-color: #8a3f3f;
  background: #3d2828;
}

.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;
}

#adminContent > .adminPageCard:first-child {
  position: sticky;
  top: 0;
  z-index: 5;
  border-color: #7a7a7a;
}

.adminPageBack {
  text-decoration: none;
}

.adminTopLimitLabel {
  margin: 0;
  align-self: center;
}

.adminTopLimitSelect {
  width: auto;
  min-width: 88px;
}

@media (max-width: 820px) {
  .adminStatsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adminMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .onlineAntiCheatGrid {
    grid-template-columns: 1fr;
  }

  .adminStatsGrid {
    grid-template-columns: 1fr;
  }

  .adminMetrics {
    grid-template-columns: 1fr;
  }

  .adminSuspiciousSummary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.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;
}

body.dialogStyleNew .typeDiv {
  width: 246px;
  box-sizing: border-box;
  padding: 6px 8px 10px;
  background: rgba(0, 0, 0, .82);
  color: white;
  text-align: center;
  box-shadow: none;
}

body.dialogStyleNew .typeDiv .headline {
  padding: 0 0 5px;
  background: transparent;
  color: #e79d79;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .9);
}

body.dialogStyleNew .typeDiv .desc {
  width: 178px;
  margin: 0 0 10px 8px;
  padding: 0;
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.18;
  text-align: left;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .9);
}

body.dialogStyleNew .typeDiv .desc span {
  color: #c6db86;
}

body.dialogStyleNew .typeDiv .enter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  row-gap: 9px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

body.dialogStyleNew .typeDiv .enter input,
body.dialogStyleNew .typeDiv .enter #megasuperbebra {
  grid-column: 1 / -1;
  width: 100% !important;
  height: 34px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 5px 7px !important;
  border: 2px solid #b8b8b8 !important;
  border-radius: 5px !important;
  background: rgba(0, 0, 0, .92) !important;
  color: white !important;
  outline: 0 !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none;
}

body.dialogStyleNew .typeDiv button,
body.dialogStyleNew .typeDiv #send,
body.dialogStyleNew .typeDiv #cancel {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  height: 25px !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #bcbebf !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, .92) !important;
  color: white !important;
  outline: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 17px !important;
  box-shadow: none;
}

body.dialogStyleNew .typeDiv button:hover,
body.dialogStyleNew .typeDiv #send:hover,
body.dialogStyleNew .typeDiv #cancel:hover {
  border-color: red !important;
  transform: none !important;
}

@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);
  }
}

.checkSessionTimer {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 12000;
  min-width: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(231, 223, 200, 0.32);
  border-radius: 6px;
  background: rgba(18, 18, 18, 0.88);
  color: #f2f2f2;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
}

.checkSessionTimer[hidden] {
  display: none;
}

.checkCountdownOverlay {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-size: clamp(70px, 14vw, 190px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.64), 0 0 22px rgba(215, 201, 167, 0.34);
  pointer-events: none;
}

.checkCountdownOverlay[hidden] {
  display: none;
}

.checkCountdownOverlay.is-pulse {
  animation: checkCountdownPulse 840ms cubic-bezier(.16, 1, .3, 1) both;
}

.checkSessionModal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.checkSessionModal[hidden] {
  display: none;
}

.checkSessionPanel {
  width: min(820px, calc(100vw - 36px));
  max-height: min(88vh, 760px);
  margin: 0;
}

.checkSessionSection h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.checkSessionMeta {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #5f5f5f;
  border-radius: 4px;
  background: #2f2f2f;
  color: #cfcfcf;
  font-size: 12px;
}

.checkSessionMeta strong {
  color: #fff;
}

.checkSessionIssueList,
.checkSessionInputList {
  display: grid;
  gap: 7px;
}

.checkSessionIssue,
.checkSessionInputItem,
.checkSessionEmpty {
  padding: 8px 10px;
  border: 1px solid #5f5f5f;
  border-radius: 4px;
  background: #333;
  color: #e4e4e4;
  font-size: 12px;
  line-height: 1.4;
}

.checkSessionIssue {
  border-color: #786b4f;
  background: #3a362c;
}

.checkSessionStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.checkSessionStats div {
  padding: 9px 10px;
  border: 1px solid #5f5f5f;
  border-radius: 4px;
  background: #333;
}

.checkSessionStats span,
.checkSessionInputItem span {
  display: block;
  margin-top: 2px;
  color: #bdbdbd;
  font-size: 11px;
}

.checkSessionStats strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 18px;
}

.checkSessionInputItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkSessionInputItem strong {
  color: #fff;
}

.checkSessionInputTiming {
  max-width: 620px;
  color: #d7c9a7 !important;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.checkSessionForumHint {
  margin-bottom: 8px;
  color: #d7c9a7;
  font-size: 12px;
}

.checkSessionForumRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.checkSessionForumOpen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.checkSessionForumLink.is-loading .checkSessionForumOpen {
  pointer-events: none;
  opacity: 0.62;
}

@media (max-width: 560px) {
  .checkSessionStats {
    grid-template-columns: 1fr;
  }

  .checkSessionForumRow {
    grid-template-columns: 1fr;
  }

  .checkSessionInputItem {
    align-items: flex-start;
    flex-direction: column;
  }
}

@keyframes checkCountdownPulse {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  78% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}
