﻿#onlineFrameWrap[data-sabotage="FLICKER"] img {
  animation: online-flicker 5.4s linear infinite;
  background: #000;
}

.sabotage-preview-modal {
  display: grid;
  gap: 14px;
  width: min(680px, 100%);
}

.sabotage-preview-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.sabotage-preview-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 214, 210, 0.24);
  border-radius: 8px;
  background: var(--gf-panel-deep);
  object-fit: cover;
}

.sabotage-preview-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  color: var(--gf-text);
}

.sabotage-preview-question span {
  color: var(--gf-cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sabotage-preview-answers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sabotage-preview-answers span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid rgba(246, 200, 95, 0.22);
  border-radius: 8px;
  background: rgba(32, 35, 49, 0.8);
  color: var(--gf-warm);
  font-weight: 900;
}

.sabotage-effect-frame[data-sabotage="FLICKER"] .sabotage-preview-image {
  animation: online-flicker 5.4s linear infinite;
  background-color: #000;
}

#onlineFrameWrap[data-sabotage="BURNED_SCREEN"] img {
  filter: saturate(9) contrast(2.9) brightness(1.85) hue-rotate(18deg);
}

.sabotage-effect-frame[data-sabotage="BURNED_SCREEN"] .sabotage-preview-image {
  filter: saturate(9) contrast(2.9) brightness(1.85) hue-rotate(18deg);
}

#onlineFrameWrap[data-sabotage="BURNED_SCREEN"]::before,
.sabotage-effect-frame[data-sabotage="BURNED_SCREEN"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 186, 65, 0.18) 38%, rgba(255, 73, 40, 0.32)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 2px, rgba(0, 0, 0, 0.18) 2px 5px);
  mix-blend-mode: screen;
}

#onlineFrameWrap[data-sabotage="PARTIAL_CROP"] img {
  filter: brightness(1.05) contrast(1.08);
}

#onlineFrameWrap[data-sabotage="PARTIAL_CROP"]::before,
.sabotage-effect-frame[data-sabotage="PARTIAL_CROP"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--sabotage-light-x, 76%) var(--sabotage-light-y, 24%),
      rgba(255, 235, 180, 0.12) 0%,
      rgba(255, 235, 180, 0.04) 12%,
      rgba(0, 0, 0, 0.18) 18%,
      rgba(0, 0, 0, 1) 27%,
      rgba(0, 0, 0, 1) 100%
    );
}

@keyframes online-flicker {
  0% {
    filter: brightness(1) contrast(1);
    opacity: 1;
  }

  5% {
    filter: brightness(0.62) contrast(0.85);
    opacity: 0.7;
  }

  16%,
  78% {
    filter: brightness(0) contrast(0);
    opacity: 0;
  }

  91% {
    filter: brightness(0.48) contrast(0.8);
    opacity: 0.55;
  }

  100% {
    filter: brightness(1) contrast(1);
    opacity: 1;
  }
}

.online-result-row {
  grid-template-columns: 42px 38px minmax(0, 1fr) auto;
}

.online-result-note,
.online-result-winner p {
  color: var(--gf-muted);
}

.online-result-player,
.online-result-winner {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(246, 200, 95, 0.16);
  border-radius: 8px;
  background: rgba(9, 10, 15, 0.32);
}

.online-result-player p,
.online-result-winner p,
.online-result-list-title {
  margin: 0;
}

.online-result-player strong,
.online-result-winner h3,
.online-result-list-title {
  color: var(--gf-warm);
}

.online-result-player strong {
  font-size: 20px;
}

.online-result-winner h3,
.online-result-list-title {
  margin: 0;
  font-size: 18px;
}

.online-result-row.current {
  border-color: rgba(246, 200, 95, 0.58);
}

.online-result-row small {
  color: var(--gf-gold);
  font-size: 11px;
}

.online-result-empty {
  grid-template-columns: minmax(0, 1fr);
}

.online-result-header {
  grid-template-columns: 80px minmax(0, 1fr) auto;
  min-height: 32px;
  background: transparent;
}

.online-result-header strong,
.online-result-header span,
.online-result-header em {
  color: var(--gf-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.online-result-row span {
  color: var(--gf-gold);
  font-weight: 900;
}

.online-result-row em {
  color: var(--gf-warm);
  font-style: normal;
  font-weight: 900;
}

.online-result-row.online-result-header strong,
.online-result-row.online-result-header span,
.online-result-row.online-result-header em {
  color: var(--gf-muted);
  font-weight: 800;
}

.online-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

