*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  background-color: #0b1f33;
  background-image: url("wmap.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (min-width: 768px) {
  body {
    background-image: url("wmap-desk.jpg");
  }
}

.page {
  min-height: 100vh;
  padding: clamp(0.65rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  max-width: 44rem;
  margin: 0 auto;
}

.hero {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 0.65rem;
  padding: clamp(0.75rem, 3.2vw, 1.25rem);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.headline {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: clamp(1.05rem, 4.2vw, 1.85rem);
  line-height: 1.28;
  color: #f8fafc;
}

.subhead {
  margin: 0.55rem 0 0;
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
  line-height: 1.5;
  color: #cbd5e1;
}

.subhead-note {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(0.62rem, 2.2vw, 0.78rem);
  line-height: 1.4;
  color: #e2e8f0;
  font-weight: 700;
}

.panel {
  flex: 1;
}

.status {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.82rem;
}

.status.error {
  border-color: rgba(248, 113, 113, 0.6);
}

.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.day {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-radius: 0.55rem;
  padding: 0.55rem 0.55rem 0.65rem;
  min-height: 11.5rem;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: clamp(0.78rem, 3.4vw, 0.95rem);
}

.day.good {
  border-color: rgba(34, 197, 94, 0.85);
  background: rgba(15, 30, 22, 0.62);
}

.day.bad {
  border-color: rgba(239, 68, 68, 0.85);
  background: rgba(30, 15, 18, 0.62);
}

.day--cfg-b {
  isolation: isolate;
}

.day-na-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: rgba(25, 25, 30, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.day-na-pill {
  display: inline-block;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  letter-spacing: 0.14em;
  line-height: 1;
  color: #020617;
  background: #f8fafc;
  padding: 0.38em 0.55em 0.42em;
  border-radius: 0.4rem;
  border: 3px solid #020617;
  box-shadow:
    0 0 0 5px rgba(248, 250, 252, 0.95),
    0 10px 28px rgba(0, 0, 0, 0.55);
}

.day-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}

.sym--sm {
  font-size: 1.1em;
  line-height: 1;
}

.wd {
  letter-spacing: 0.02em;
}

.md {
  color: #cbd5e1;
}

.day-wx {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.25rem;
}

.wx-icon {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  line-height: 1;
}

.hi-line {
  font-size: 1.15em;
  letter-spacing: 0.02em;
}

.day-verdict-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  padding-top: 0.4rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.verdict-ico {
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1;
}

.verdict-yesno {
  font-size: 1.08em;
  letter-spacing: 0.04em;
}

.verdict-thresh {
  font-size: 0.95em;
  opacity: 0.95;
}

.day.good .day-verdict-col {
  color: #bbf7d0;
}

.day.bad .day-verdict-col {
  color: #fecaca;
}

.was-tag {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0.25rem;
  padding: 0.14rem 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.footer a {
  color: #f8fafc;
  font-weight: 700;
}
