/* Minimalist Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0d1117;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  color: #c9d1d9;
  user-select: none;
}

/* ========================================================
   MINIMALIST LOADING SCREEN (Database style)
   ======================================================== */
.minimal-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #090d16;
}

.db-box {
  width: 100%;
  max-width: 540px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.db-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #21262d;
  padding-bottom: 14px;
}

.db-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #ff7b72;
  background: rgba(255, 123, 114, 0.1);
  border: 1px solid rgba(255, 123, 114, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.db-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 6px;
}

.db-subtitle {
  font-size: 0.82rem;
  color: #8b949e;
}

/* Minimal Progress Bar */
.progress-wrap {
  margin-bottom: 22px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #58a6ff;
  transition: width 0.08s linear;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #8b949e;
}

#percentage-text {
  color: #58a6ff;
  font-weight: 600;
}

/* Database Records List */
.records-list {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-row {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  gap: 8px;
  flex-wrap: wrap;
}

.record-status {
  font-size: 0.75rem;
  font-weight: bold;
}

.record-status.pending {
  color: #8b949e;
}

.record-status.loading {
  color: #e3b341;
}

.record-status.synced {
  color: #3fb950;
}

.record-name {
  color: #8b949e;
}

.record-value {
  color: #f0f6fc;
  font-weight: 500;
}

/* Minimal Continue Button */
.continue-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.minimal-btn {
  width: 100%;
  height: 44px;
  background: #238636;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.minimal-btn:hover {
  background: #2ea043;
}

.minimal-btn:active {
  background: #238636;
}

.fullpage-click-trap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 50;
  background: transparent;
  cursor: pointer;
}

/* ========================================================
   EXTREME RED / BLUE / GREEN STROBE FLASH PRANK
   ======================================================== */
.hidden {
  display: none !important;
}

.prank-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: none !important;
  animation: extreme-rgb-strobe 0.045s infinite alternate, violent-shake 0.04s infinite;
}

/* Extreme Strobe: Red -> Blue -> Green */
@keyframes extreme-rgb-strobe {
  0% {
    background-color: #ff0000;
    filter: invert(0%) contrast(250%) saturate(300%);
  }
  25% {
    background-color: #0015ff;
    filter: invert(100%) contrast(300%) saturate(300%);
  }
  50% {
    background-color: #00ff00;
    filter: invert(0%) contrast(300%) saturate(300%);
  }
  75% {
    background-color: #ffffff;
    filter: invert(50%) contrast(350%);
  }
  100% {
    background-color: #ff0000;
    filter: invert(0%) contrast(250%) saturate(300%);
  }
}

@keyframes violent-shake {
  0% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
  20% { transform: translate(-18px, 14px) rotate(-2deg) scale(1.05); }
  40% { transform: translate(20px, -16px) rotate(2.2deg) scale(1.07); }
  60% { transform: translate(-22px, -10px) rotate(-2.5deg) scale(1.04); }
  80% { transform: translate(16px, 18px) rotate(1.5deg) scale(1.06); }
  100% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
}

.flash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  z-index: 100;
  padding: 20px;
}

.prank-title {
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 900;
  color: #ffff00;
  text-shadow: 0 0 25px #ff0000, 0 0 50px #00ff00, 0 0 80px #0000ff;
  letter-spacing: 0.08em;
  animation: text-pulse 0.06s infinite alternate;
}

.chaos-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chaos-text {
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: -5px -5px 0 #ff0000, 5px 5px 0 #0022ff, 0 0 35px #00ff00;
}

.prank-emoji-rain {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 12px;
}

.fullscreen-warning {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 800;
  background: #000000;
  color: #ff0000;
  padding: 8px 24px;
  border: 3px solid #ff0000;
  border-radius: 6px;
}

@keyframes text-pulse {
  0% { transform: scale(1); color: #ffff00; }
  100% { transform: scale(1.15); color: #ffffff; }
}

/* Secret Emergency Stop Button */
.secret-stop-btn {
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.25;
}

.secret-stop-btn:hover {
  opacity: 1;
  background: #ff0000;
  color: #fff;
}
