/* ============================================================
   WIPE COUNTDOWN - cards rendered by wipe-countdown.js from the
   staff-managed wipe schedule. Used on index.html and wipe-info.html.
   ============================================================ */
.wipe-cd { margin: 0 0 2.2rem; }
.wipe-cd[hidden] { display: none; }
.wcd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.wcd-card {
  --c: #e6c84a;
  position: relative;
  padding: 1.15rem 1.3rem 1.2rem 1.55rem;
  background: linear-gradient(180deg, #1b1e26, #14161d);
  border: 1px solid var(--line, #353945);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wcd-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--c);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent);
}
.wcd-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.wcd-card > * { position: relative; z-index: 1; }
.wcd-card.is-soon { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 14px 40px rgba(0, 0, 0, 0.35); }
.wcd-card.is-soon .wcd-timer b { animation: wcd-pulse 1.6s ease-in-out infinite; }
.wcd-card.is-now .wcd-timer b { color: #ff5c48; }
@keyframes wcd-pulse { 0%, 100% { text-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); } 50% { text-shadow: 0 0 26px color-mix(in srgb, var(--c) 85%, transparent); } }
@media (prefers-reduced-motion: reduce) { .wcd-card.is-soon .wcd-timer b { animation: none; } }

.wcd-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.wcd-server { font-family: "Cinzel", serif; font-weight: 700; font-size: 1.02rem; color: #fff; }
.wcd-kind {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 4px;
  white-space: nowrap;
}
.wcd-card.is-force .wcd-kind { color: #ff9c8f; background: rgba(255, 92, 72, 0.12); border-color: rgba(255, 92, 72, 0.45); }
.wcd-kind em { font-style: normal; font-weight: 600; letter-spacing: 0.04em; text-transform: none; opacity: 0.8; }

.wcd-timer { display: flex; gap: 0.35rem; align-items: stretch; }
.wcd-unit {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.55rem 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.wcd-unit b {
  font-family: "Cinzel", serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--c);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent);
}
.wcd-unit small { margin-top: 0.3rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted, #b7becf); }
.wcd-when { margin: 0.8rem 0 0; font-size: 0.95rem; font-weight: 600; color: #f1f3f8; }
.wcd-local { display: block; margin-top: 0.15rem; font-size: 0.82rem; font-weight: 400; color: var(--muted, #b7becf); }
.wcd-note { margin: 0.45rem 0 0; font-size: 0.86rem; color: var(--muted, #b7becf); font-style: italic; }
.wcd-after { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted, #b7becf); }
.wcd-none { margin: 0; color: var(--muted, #b7becf); }
.wcd-foot { margin: 0.9rem 0 0; font-size: 0.86rem; color: var(--muted, #b7becf); }
.wcd-foot a { color: var(--accent, #b7cbe7); }

/* inline "Next wipe" line inside server cards */
.wipe-next { display: block; margin: 0.35rem 0 0.6rem; font-size: 0.88rem; color: var(--muted, #b7becf); }
.wipe-next[hidden] { display: none; }
.wipe-next-label { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--accent, #b7cbe7); margin-right: 0.3rem; }
.wipe-next-left { color: #ffd964; font-weight: 700; font-variant-numeric: tabular-nums; }
.wipe-next-when { color: var(--muted, #b7becf); }
