/**
 * 首页首访广告说明弹窗（像素 GUI 风格，与 mc-gui / pixel-skin 保持一致）
 */

.mcan-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.18s ease;
  font-family: 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
}

.mcan-mask.on { opacity: 1; }

.mcan-box {
  position: relative;
  width: min(460px, 100%);
  background: #2f2f2f;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow:
    inset 0 0 0 2px #4a4a4a,
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    0 16px 42px rgba(0, 0, 0, 0.62);
  padding: 20px 22px 18px;
  color: #cfcfcf;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.mcan-mask.on .mcan-box { transform: none; }

.mcan-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 24px;
  border: 0;
  background: transparent;
  color: #8f8f8f;
  font-size: 20px;
  cursor: pointer;
}
.mcan-close:hover { color: #ffffff; }

.mcan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 24px;
}

.mcan-badge {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  background: #ffd75e;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px #fff0bf;
}

.mcan-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffd75e;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.mcan-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1f1f1f;
}

.mcan-body p {
  margin: 0 0 9px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #c4c4c4;
}
.mcan-body p:last-child { margin-bottom: 0; }
.mcan-body b { color: #ffffff; font-weight: 600; }

.mcan-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.mcan-btn {
  min-width: 96px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  color: #e8e8e8;
  background: #4a4a4a;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px #5e5e5e, inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s ease;
}
.mcan-btn:hover { background: #5a5a5a; }
.mcan-btn.ghost {
  background: #3a3a3a;
  color: #b9b9b9;
}
.mcan-btn.ghost:hover { background: #474747; color: #ffffff; }

.mcan-btn.primary {
  background: #3c8527;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #4fa336, inset 0 -2px 0 rgba(0, 0, 0, 0.35);
}
.mcan-btn.primary:hover { background: #469a2f; }

@media (max-width: 420px) {
  .mcan-box { padding: 18px 16px 15px; }
  .mcan-body p { font-size: 13px; }
  .mcan-actions { gap: 8px; }
  .mcan-btn { flex: 1; min-width: 0; padding: 9px 10px; }
}
