* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  transition: filter 0.35s ease;
  background-color: #fdfdfd;
  background-image:
    linear-gradient(#dfe6ee 1px, transparent 1px),
    linear-gradient(90deg, #dfe6ee 1px, transparent 1px),
    linear-gradient(#eef2f6 1px, transparent 1px),
    linear-gradient(90deg, #eef2f6 1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

body.bw {
  filter: grayscale(1);
}

.container {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 .accent {
  color: #b8b8b8;
}

h1 .rainbow-word {
  cursor: pointer;
  user-select: none;
}

h1 .rainbow-word:hover {
  opacity: 0.85;
}

.signup {
  margin: 0 auto 32px;
  max-width: 460px;
}

.signup-prompt {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #555;
}

.signup-row {
  display: flex;
  gap: 8px;
}

.signup-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  font-size: 1rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.signup-row input:focus {
  outline: none;
  border-color: #333;
}

.signup-row button {
  flex: 0 0 auto;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  cursor: pointer;
}

.signup-row button:hover:not(:disabled) {
  background: #333;
}

.signup-row button:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-status {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 0.95rem;
  color: #2e7d32;
}

.signup-status.error {
  color: #c0392b;
}

#court {
  border: none;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
}
