* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #fff8f0;
  color: #1a1a1a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 24px 16px;
  text-align: center;
}
#call {
  width: min(85vw, 52vh, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0;
  background: #b3261e;
  color: #fff;
  font: inherit;
  font-size: clamp(2.4rem, 11vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  padding: 1rem;
  box-shadow: 0 10px 0 #7a1712, 0 14px 30px rgba(0, 0, 0, .25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#call:active { transform: translateY(8px); box-shadow: 0 2px 0 #7a1712, 0 4px 10px rgba(0, 0, 0, .25); }
#call:disabled { background: #8a8a8a; box-shadow: 0 10px 0 #5c5c5c; }
#soon {
  width: min(85vw, 460px);
  min-height: 4.5rem;
  border-radius: 999px;
  border: 3px solid #1f4e79;
  background: #e8f1fa;
  color: #1f4e79;
  font: inherit;
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 700;
  padding: .7rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#soon:active { background: #cfe2f5; }
#soon:disabled { border-color: #8a8a8a; color: #8a8a8a; background: #eee; }
#status, #seen { margin: 0; font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; max-width: 22ch; }
#status:empty, #seen:empty { display: none; }
.good { color: #1b5e20; }
.bad { color: #b3261e; }

@media (max-height: 700px) {
  main { gap: .8rem; padding-top: 16px; padding-bottom: 16px; }
  #status, #seen { font-size: 1.4rem; }
}

/* Setup page */
.setup main { justify-content: flex-start; max-width: 40rem; margin: 0 auto; text-align: left; align-items: stretch; font-size: 1.15rem; line-height: 1.5; }
.setup h1 { font-size: 1.8rem; margin: .5rem 0 0; }
.setup code, .setup .link { word-break: break-all; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: .15rem .4rem; }
.setup .link { display: block; padding: .6rem; }
.setup .small-button { font: inherit; padding: .6rem 1rem; border-radius: 8px; border: 1px solid #b3261e; background: #fff; color: #b3261e; cursor: pointer; }

@media (prefers-color-scheme: dark) {
  body { background: #161210; color: #f2ece6; }
  .good { color: #81c784; }
  .bad { color: #ff8a80; }
  #soon { background: #142433; color: #9cc7ef; border-color: #9cc7ef; }
  #soon:disabled { background: #222; color: #777; border-color: #777; }
  .setup code, .setup .link { background: #221d1a; border-color: #444; }
  .setup .small-button { background: #221d1a; color: #ff8a80; border-color: #ff8a80; }
}
