/* Ministry of Full Night Affairs — Operation 69 */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #f8f4e9;
  color: #202b38;
  font: 16px/1.65 system-ui, sans-serif;
}

/* ── HEADER ─────────────────────────────────────── */
header {
  background: #142c42;
  color: #fff;
  text-align: center;
  padding: 30px 16px;
  border-bottom: 5px solid #e8a341;
}

header .gov-logo {
  font-size: 36px;
  letter-spacing: 8px;
}

header small {
  display: block;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 6px;
}

header h1 {
  font-size: clamp(22px, 5vw, 42px);
  line-height: 1.2;
  margin: 8px 0 4px;
}

header .subtitle {
  font-size: 13px;
  opacity: 0.75;
}

/* ── NOTICE BANNER ───────────────────────────────── */
.notice {
  background: #fff0ce;
  border: 1px solid #d6a24a;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 28px 0 16px;
}

.hero .mission-label {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #e8a341;
  text-transform: uppercase;
}

.hero h2 {
  font-size: clamp(28px, 7vw, 52px);
  margin: 6px 0 8px;
  line-height: 1.2;
}

.hero .tagline {
  font-size: 17px;
  color: #53606a;
  margin-bottom: 16px;
}

.stamp {
  display: inline-block;
  color: #b32c29;
  border: 3px double #b32c29;
  padding: 5px 18px;
  transform: rotate(-5deg);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 2px;
}

/* ── STATUS ROW ──────────────────────────────────── */
.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
}

.status-item {
  background: #fff;
  border: 1px solid #dcd5c5;
  border-radius: 8px;
  padding: 12px 24px;
  min-width: 180px;
  text-align: center;
}

.status-item .label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #53606a;
}

.status-item .value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
}

.status-item .value.active { color: #1a7a3a; }
.status-item .value.expired { color: #b32c29; }

/* ── ADVISORY TICKER ─────────────────────────────── */
.ticker {
  font-weight: 700;
  color: #b32c29;
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ── COUNTDOWN PANEL ─────────────────────────────── */
.panel {
  background: #142c42;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}

.panel small {
  display: block;
  letter-spacing: 2px;
  font-size: 11px;
  opacity: 0.65;
  margin-bottom: 8px;
}

#clock {
  font-size: clamp(28px, 8vw, 48px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f0b34c;
  letter-spacing: 4px;
}

.panel .clock-label {
  margin-top: 6px;
  opacity: 0.8;
  font-size: 14px;
}

/* ── SECTION HEADING ─────────────────────────────── */
.section-title {
  font-size: clamp(20px, 4vw, 28px);
  border-left: 5px solid #e8a341;
  padding-left: 12px;
  margin: 28px 0 14px;
}

/* ── MEME CARD GRID ──────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid #dcd5c5;
  border-top: 4px solid #315b78;
  padding: 18px;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.card .emoji { font-size: 32px; }
.card h3 { margin: 6px 0 4px; font-size: 17px; }
.card p { margin: 0; color: #3e4a56; font-size: 14px; }

/* ── SAFETY BOX ──────────────────────────────────── */
.safety-box {
  background: #2a1f1f;
  color: #f8e9b0;
  border-radius: 10px;
  padding: 18px 24px;
  margin: 24px 0;
  text-align: center;
  border: 2px solid #e8a341;
}

.safety-box .safety-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.safety-box p { margin: 4px 0; font-size: 14px; }

/* ── INTERACTIVE PANEL ───────────────────────────── */
.scanner-panel {
  background: #142c42;
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  margin: 24px 0;
  text-align: center;
}

.scanner-panel h2 { margin: 0 0 8px; font-size: clamp(20px, 4vw, 28px); }
.scanner-panel p { opacity: 0.8; margin-bottom: 16px; }

#result {
  min-height: 55px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 14px 0;
  font-weight: 600;
  font-size: 15px;
  color: #f0b34c;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  background: #f0b34c;
  color: #182b3b;
  border: 0;
  border-radius: 7px;
  padding: 12px 20px;
  cursor: pointer;
  margin: 5px;
  font-size: 15px;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { background: #e8a341; transform: scale(1.03); }
.btn:focus-visible { outline: 3px solid #e56b35; }
.btn.whatsapp { background: #25D366; color: #fff; }
.btn.whatsapp:hover { background: #1ebe5a; }

#msg {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #f0b34c;
  min-height: 24px;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  text-align: center;
  font-size: 13px;
  padding: 28px 16px;
  color: #53606a;
  border-top: 1px solid #dcd5c5;
  margin-top: 20px;
}

footer a { color: #315b78; }

/* ── CONFETTI ─────────────────────────────────────── */
.confetti {
  position: fixed;
  top: -20px;
  pointer-events: none;
  font-size: 22px;
  animation: fall 2.2s linear forwards;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── MAIN WRAPPER ────────────────────────────────── */
main {
  max-width: 960px;
  margin: auto;
  padding: 18px;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  header h1 { font-size: 20px; }
  .status-row { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .confetti, .card { animation: none; transition: none; }
}
