/* Moderator welcome guide — one-time popup after promotion. Silver-white MOD badge language. */
/* Cache: ?v=20261129mc1  (also styles the Iced Mono Chain gift popup) */

#mod-welcome.mw-root,
#mod-chain.mw-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f3efff;
  -webkit-font-smoothing: antialiased;
}

#mod-welcome[hidden],
#mod-welcome.mw-root[hidden],
#mod-chain[hidden],
#mod-chain.mw-root[hidden] { display: none !important; }

.mw-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(226, 232, 240, 0.14), transparent 55%),
    rgba(8, 6, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mw-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(36, 42, 54, 0.55) 0%, rgba(16, 12, 28, 0.92) 38%, rgba(12, 10, 22, 0.96) 100%),
    #141018;
  border: 1px solid rgba(226, 232, 240, 0.55);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.08),
    0 0 28px rgba(226, 232, 240, 0.28),
    0 0 64px rgba(148, 163, 184, 0.18),
    0 28px 64px rgba(4, 2, 12, 0.65);
  padding: 28px 26px 22px;
}

.mw-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.16), transparent 28%);
}

.mw-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
  color: #e8eef5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mw-close:hover { background: rgba(248, 250, 252, 0.18); }
.mw-close:focus-visible { outline: 2px solid #f8fafc; outline-offset: 2px; }

.mw-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.mw-mod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  color: #0c1018;
  background: linear-gradient(115deg, #f8fafc, #e8eef5 45%, #c5ced8 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.55), 0 0 18px rgba(148, 163, 184, 0.35);
}

.mw-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d6dee8;
}

.mw-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(226, 232, 240, 0.25);
}

.mw-lead {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #d7d0ea;
}

.mw-shot-wrap {
  position: relative;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: 0 0 22px rgba(226, 232, 240, 0.16);
  background: #120c26;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.mw-shot-wrap[hidden] { display: none; }

.mw-shot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(48vh, 420px);
  object-fit: contain;
  object-position: center;
}

.mw-step-note {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e6e0f4;
}
.mw-step-note[hidden] { display: none; }
.mw-step-note strong { color: #f8fafc; font-weight: 700; }

.mw-chill {
  margin: 2px 0 16px;
  font-size: 0.92rem;
  font-weight: 600;
  font-style: italic;
  color: #c5ced8;
  letter-spacing: 0.02em;
}
.mw-chill[hidden] { display: none; }

.mw-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.mw-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.mw-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
}
.mw-dot[aria-current="true"] {
  width: 18px;
  background: linear-gradient(115deg, #f8fafc, #c5ced8);
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.7);
}
.mw-dot:focus-visible { outline: 2px solid #f8fafc; outline-offset: 2px; }

.mw-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 42px;
}
.mw-btn:focus-visible { outline: 2px solid #f8fafc; outline-offset: 2px; }
.mw-btn[hidden] { display: none; }

.mw-back, .mw-btn-ghost {
  color: #e8eef5;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.22);
}
.mw-back:hover, .mw-btn-ghost:hover { background: rgba(248, 250, 252, 0.16); }

.mw-next, .mw-gotit {
  color: #0c1018;
  background: linear-gradient(115deg, #f8fafc, #e8eef5 45%, #c5ced8 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 0 14px rgba(226, 232, 240, 0.45);
}
.mw-next:hover, .mw-gotit:hover { filter: brightness(1.06); }

.mw-gotit { min-width: 120px; }

@media (max-width: 520px) {
  .mw-card { padding: 24px 16px 16px; border-radius: 20px; }
  .mw-title { font-size: 1.32rem; }
  .mw-btn { padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mw-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
