@font-face {
  font-family: "Prometo";
  src: url("../fonts/Prometo.woff2") format("woff2"),
       url("../fonts/Prometo.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: rgba(0, 0, 0, 0);
  --card: rgba(5, 8, 12, 0.92);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.74);
  --line: rgba(255,255,255,0.18);
  --accent: #0aa3ff;
  --accent-soft: rgba(10, 163, 255, 0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; background: transparent; overflow: hidden; }
body { font-family: "Prometo", Arial, Helvetica, sans-serif; color: var(--text); }

.overlay {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.card {
  width: min(94vw, 760px);
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card), rgba(0,0,0,0.78));
  border: 2px solid var(--line);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background: var(--accent);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 30px 10px;
  align-items: center;
}

.source-pill,
.mode-pill {
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 20px;
  line-height: 1;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,255,255,0.22);
}

.mode-pill {
  font-size: 14px;
  color: var(--muted);
}

.content { padding: 8px 30px 20px; }
.level-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.level-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent); flex: 0 0 auto; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 54px); line-height: 0.94; letter-spacing: -0.04em; font-weight: 900; }
h2 { margin: 0 0 22px; font-size: clamp(24px, 4vw, 42px); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.meta-grid > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.11);
}
.label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
strong { display: block; font-size: 21px; line-height: 1.08; font-weight: 900; }
.summary { margin: 0; color: rgba(255,255,255,0.86); font-size: 20px; line-height: 1.22; max-height: 74px; overflow: hidden; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.footer-source { color: #fff; }

.level-red { --accent: #ee1b24; --accent-soft: rgba(238, 27, 36, 0.22); }
.level-yellow { --accent: #f6c700; --accent-soft: rgba(246, 199, 0, 0.20); }
.level-yellow h1, .level-yellow .source-pill { color: #fff; }
.level-preventive { --accent: #2f80ed; --accent-soft: rgba(47, 128, 237, 0.22); }
.level-info { --accent: #25d366; --accent-soft: rgba(37, 211, 102, 0.18); }

@media (max-width: 560px) {
  .card { width: 96vw; border-radius: 20px; }
  .topbar, .content, footer { padding-left: 20px; padding-right: 20px; }
  .meta-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
