/* ==========================================================================
   batch3.css — Batch 3: 反作弊 + 防沉迷 样式
   ========================================================================== */

/* ---- 反作弊：警告条动画 ---- */
@keyframes anti-cheat-slide-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ---- 机缘弹窗淡入（batch2 兜底，若 batch2.css 已定义则不覆盖） ---- */
@keyframes fortune-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- 反作弊警告条 ---- */
.anti-cheat-warning {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

/* ---- 反作弊锁定遮罩 ---- */
#anti-cheat-lock {
  user-select: none;
  -webkit-user-select: none;
}

#anti-cheat-lock button {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
#anti-cheat-lock button:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* ---- 防沉迷：休息提醒 ---- */
#anti-addiction-rest {
  user-select: none;
  -webkit-user-select: none;
}

#anti-addiction-rest button {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
#anti-addiction-rest button:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* ---- 防沉迷：时长锁定 ---- */
#anti-addiction-lock {
  user-select: none;
  -webkit-user-select: none;
}

#anti-addiction-lock button {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
#anti-addiction-lock button:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* ---- 响应式：小屏适配 ---- */
@media (max-width: 768px) {
  .anti-cheat-warning {
    font-size: 13px !important;
    padding: 10px 18px !important;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
  }

  #anti-cheat-lock > div:first-child,
  #anti-addiction-lock > div > div:first-child {
    font-size: 44px !important;
  }
}
