/* 版权所有者：姚程樱软件开发工作室 https://anyio.club */
/* public/antiAddiction.css
 * 防沉迷休息提醒的样式定义（与 public/antiAddiction.js 配套）。
 * 由 shooter.html 通过 <link> 引入，与游戏主样式 shooter.css 解耦。 */

/* 防沉迷提醒：当日累计每满 1 小时弹出，仅提醒不强制，可关闭/自动消失 */
.rest-reminder {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: flex-start;
  gap: 10px;
  width: calc(100% - 32px);
  max-width: 340px;
  background: rgba(12, 28, 18, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(126, 224, 160, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  z-index: 300;
  color: #eafaf0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: restReminderIn 0.25s ease;
}
.rest-reminder.show {
  display: flex;
}
@keyframes restReminderIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.rest-reminder-icon {
  font-size: 22px;
  line-height: 1.2;
}
.rest-reminder-body {
  flex: 1;
  min-width: 0;
}
.rest-reminder-title {
  font-size: 15px;
  font-weight: 700;
  color: #7ee0a0;
  margin-bottom: 3px;
}
.rest-reminder-text {
  font-size: 13px;
  line-height: 1.6;
  color: #cdeeda;
}
.rest-reminder-quote {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(126, 224, 160, 0.28);
  font-size: 13px;
  line-height: 1.6;
  color: #7ee0a0;
  font-style: italic;
}
.rest-reminder-close {
  background: transparent;
  border: none;
  color: #9fd6b2;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex: none;
}
.rest-reminder-close:active {
  transform: scale(0.9);
}
