html, body {
  margin: 0;
  padding: 0;
  background: #111;
  color: #f5f5f5;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "ocr-a-std", "Courier New", monospace;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.remark-screen {
  padding: 28px 24px 36px;
}

.remark-label {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.remark-message {
  font-size: clamp(1.65rem, 4vw, 2rem);
  line-height: 1.35;
  max-width: 22ch;
  word-wrap: break-word;
}

body.remark-pending .remark-message {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.remark-message.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 120ms ease, transform 120ms ease;
}

.remark-again-wrap {
  margin-top: 110px;
  display: flex;
  justify-content: center;
}

.remark-contact-required {
  margin-top: 150px;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: rgba(245, 245, 245, 0.75);
}

.remark-again {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #f5f5f5;
}

.remark-again:link,
.remark-again:visited,
.remark-again:hover,
.remark-again:active,
.remark-again:focus {
  color: #f5f5f5;
  text-decoration: none;
}

.remark-again-dot {
  display: block;
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #000;
  border: 5px solid #f5f5f5;
  box-sizing: border-box;
  transition: transform 120ms ease, border-color 120ms ease;
}

.remark-again-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(245, 245, 245, 0.35);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.remark-register-dot.is-registering {
  animation: remarkDotPulse 220ms ease-out 1;
}

.remark-register-dot.is-registering::after {
  animation: remarkDotRing 260ms ease-out 1;
}

.remark-again:hover .remark-again-dot,
.remark-again:focus .remark-again-dot {
  transform: scale(1.02);
}

.remark-again-label {
  display: block;
  margin-top: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
}

@keyframes remarkDotPulse {
  0% {
    transform: scale(1);
    border-color: #f5f5f5;
  }
  45% {
    transform: scale(1.055);
    border-color: #ffffff;
  }
  100% {
    transform: scale(1);
    border-color: #f5f5f5;
  }
}

@keyframes remarkDotRing {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  25% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (max-width: 640px) {
  .remark-screen {
    padding: 24px 20px 32px;
  }

  .remark-label {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .remark-message {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    max-width: 20ch;
  }

  .remark-again-wrap {
    margin-top: 90px;
  }

  .remark-contact-required {
    margin-top: 130px;
    font-size: 0.92rem;
  }

  .remark-again-dot {
    width: 110px;
    height: 110px;
    border-width: 4px;
  }

  .remark-again-label {
    margin-top: 14px;
    font-size: 0.92rem;
  }
}