@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

[hidden] {
  display: none !important;
}

/* Colours follow the artwork: an orange NEE and a blue JA. */
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--paper);
}

body.nee {
  --ink: #c34f22;
  --paper: #fdebd1;
  --glow: #feebd1;
  --edge: #ebcea4;
}

body.ja {
  --ink: #004e71;
  --paper: #dbe9f4;
  --glow: #e6f4fe;
  --edge: #b3c0d0;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(var(--glow), var(--edge));
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 32px 16px 24px;
}

.title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 12px;
  overflow-wrap: anywhere;
}

.verdict {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.main-image {
  flex: 1 0 100%;
  text-align: center;
}

.art {
  display: none;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58dvh, 620px);
  margin: 0 auto;
}

body.nee .art-nee,
body.ja .art-ja {
  display: block;
}

.date,
.side {
  flex: 1;
  min-width: 120px;
  margin: 12px 0 0;
  font-size: 15px;
  text-align: center;
}

.date {
  order: 2;
  font-weight: 400;
}

.date::first-letter {
  text-transform: uppercase;
}

.side {
  order: 3;
}

.side p {
  margin: 0 0 6px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.live.offline .live-dot {
  animation: none;
  opacity: 0.35;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.notify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.notify-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--glow);
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease-out;
}

.notify-button svg {
  fill: currentColor;
  flex: none;
}

.notify-button:hover {
  transform: translateY(-2px);
}

.notify-button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.notify-button:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.notify-button.is-on {
  color: var(--ink);
  background: transparent;
}

.notify-hint {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .container {
    padding-top: 48px;
  }

  .title {
    font-size: 54px;
  }

  .main-image {
    flex: 2 1 0;
    order: 2;
  }

  .date,
  .side {
    margin: 0;
    font-size: 18px;
  }

  .date {
    order: 1;
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }

  .notify-button {
    transition: none;
  }
}
