/* rickroller overlay - glossy "frutiger aero" flavor to match the event theme.
   Namespaced under .rr- so it never collides with the CTFd theme. */

.rr-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(120, 200, 255, 0.55), transparent 60%),
    linear-gradient(160deg, rgba(8, 40, 80, 0.88), rgba(2, 16, 40, 0.94));
  backdrop-filter: blur(6px);
  animation: rr-fade 0.35s ease-out;
}

@keyframes rr-fade { from { opacity: 0; } to { opacity: 1; } }

.rr-card {
  position: relative;
  width: min(760px, 96vw);
  max-height: 94vh;
  overflow: auto;
  padding: 22px 22px 26px;
  border-radius: 22px;
  color: #06243f;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(222, 242, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 70px rgba(0, 20, 60, 0.55),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -24px 48px rgba(120, 190, 255, 0.35);
}

.rr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #fff, #cfe8ff);
  color: #0a3a66;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 30, 80, 0.3), inset 0 1px 0 #fff;
}
.rr-close:hover { background: linear-gradient(180deg, #fff, #bfe0ff); }

.rr-warn {
  font-weight: 800;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: #b8390b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.rr-sub {
  margin: 4px 0 14px;
  font-style: italic;
  color: #3a5a78;
  font-size: 0.95rem;
}

.rr-stage {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 10px 30px rgba(0, 20, 60, 0.45);
}

.rr-video {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: #000;
}

.rr-bar {
  height: 10px;
  margin: 12px 2px 4px;
  border-radius: 999px;
  background: rgba(10, 50, 90, 0.18);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 20, 60, 0.35);
}
.rr-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6fe3a0, #39c6f0, #2a8bff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: width 0.2s linear;
}

.rr-play {
  margin-top: 14px;
  padding: 12px 26px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #06243f;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, #ffffff, #bfe8ff 55%, #8fd4ff);
  box-shadow:
    0 6px 16px rgba(0, 60, 120, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.95);
}
.rr-play:hover { filter: brightness(1.05); }
.rr-play:active { transform: translateY(1px); }

.rr-status {
  margin-top: 12px;
  min-height: 1.2em;
  font-weight: 600;
  color: #244a6e;
}

.rr-done { padding: 18px 6px 6px; }
.rr-done-h {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #0a3a66;
  margin-bottom: 14px;
}
.rr-flag {
  display: inline-block;
  padding: 12px 18px;
  font-size: clamp(1rem, 3.4vw, 1.4rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #063b1f;
  background: linear-gradient(180deg, #e9fff2, #c7f6dc);
  border: 1px dashed #2f9e5e;
  border-radius: 12px;
  cursor: pointer;
  user-select: all;
  box-shadow: inset 0 1px 0 #fff;
}
.rr-flag.rr-copied { outline: 2px solid #2a8bff; }
.rr-note {
  margin-top: 14px;
  color: #3a5a78;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .rr-overlay { animation: none; }
  .rr-bar-fill { transition: none; }
}
