:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #20201e;
  background: #f4f0e6;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(32px, env(safe-area-inset-top)) 24px 24px;
}

canvas {
  display: block;
  width: min(440px, 100%);
  height: clamp(80px, 20vh, 144px);
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(17px, 4.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.5px;
  text-align: center;
}

button {
  min-width: 112px;
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid #20201e;
  border-radius: 0;
  background: #f0c637;
  color: #20201e;
  font:
    600 14px Arial,
    Helvetica,
    sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:hover {
  background: #e4b820;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible {
  outline: 3px solid #2448d8;
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
}
button[aria-pressed="true"] {
  background: #de4033;
  color: #fff;
}
button[aria-pressed="true"]:hover {
  background: #c83226;
}

#status {
  min-height: 16px;
  margin: 20px 0 0;
  color: #65635d;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

footer {
  padding: 20px 24px max(24px, env(safe-area-inset-bottom));
}

#presence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
  color: #65635d;
  font-variant-numeric: tabular-nums;
}

.presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #99968e;
}

.live .presence-dot {
  background: #2448d8;
}

noscript {
  margin-top: 16px;
  font-size: 12px;
}

@media (max-height: 480px) {
  main {
    padding-top: 20px;
  }
  canvas {
    height: 60px;
    margin-bottom: 16px;
  }
  h1 {
    margin-bottom: 20px;
  }
  footer {
    padding-top: 0;
  }
}
