:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #070b12;
  color: #f8fafc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.1), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08), transparent 32rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #070b12;
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 20px;
}

.checker {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid #253043;
  border-radius: 24px;
  background: rgba(13, 19, 30, 0.92);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #3f5d62;
  border-radius: 15px;
  background: #13282a;
  color: #5eead4;
  font: 700 1.45rem/1 ui-monospace, "Cascadia Code", monospace;
  box-shadow: inset 0 0 24px rgba(94, 234, 212, 0.08);
}

.eyebrow {
  margin: 0 0 4px;
  color: #5eead4;
  font: 700 0.75rem/1.2 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.intro {
  margin: 32px 0;
  color: #aeb9c9;
  font-size: 1.05rem;
  line-height: 1.75;
}

.intro strong {
  color: #e2e8f0;
}

.search-form label {
  display: block;
  margin-bottom: 10px;
  color: #dce5ef;
  font-size: 0.9rem;
  font-weight: 650;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.input-wrap {
  position: relative;
}

.prompt {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #5eead4;
  font: 700 1.45rem/1 ui-monospace, monospace;
  transform: translateY(-52%);
  pointer-events: none;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px 0 42px;
  border: 1px solid #334155;
  border-radius: 12px;
  outline: none;
  background: #090e17;
  color: #f8fafc;
  font: 500 1rem/1.4 ui-monospace, "Cascadia Code", monospace;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #667386;
}

input:focus {
  border-color: #5eead4;
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.1);
}

button {
  min-height: 54px;
  padding: 0 23px;
  border: 0;
  border-radius: 12px;
  background: #5eead4;
  color: #06211f;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

button:hover {
  background: #99f6e4;
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(94, 234, 212, 0.35);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.hint {
  margin: 10px 0 0;
  color: #748197;
  font-size: 0.82rem;
  line-height: 1.6;
}

.result {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid;
  border-radius: 16px;
  animation: reveal 240ms ease-out;
}

.result.available {
  border-color: rgba(94, 234, 212, 0.42);
  background: rgba(20, 83, 75, 0.18);
}

.result.registered {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(120, 53, 15, 0.16);
}

.result.error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.16);
}

.result.loading {
  border-color: #334155;
  background: rgba(30, 41, 59, 0.35);
}

.status-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.status-label {
  margin: 0 0 7px;
  color: #93a2b7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.domain-name {
  margin: 0;
  overflow-wrap: anywhere;
  font: 700 clamp(1.2rem, 4vw, 1.6rem)/1.3 ui-monospace, "Cascadia Code", monospace;
}

.badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.available .badge {
  background: #5eead4;
  color: #07302c;
}

.registered .badge {
  background: #fbbf24;
  color: #301c02;
}

.error .badge {
  background: #f87171;
  color: #360909;
}

.result-message {
  margin: 16px 0 0;
  color: #bdc7d5;
  line-height: 1.65;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}

.details div {
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.26);
}

.details dt {
  margin-bottom: 5px;
  color: #7e8ba0;
  font-size: 0.75rem;
}

.details dd {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #263142;
  color: #69778d;
  font-size: 0.78rem;
  line-height: 1.65;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (max-width: 620px) {
  .shell {
    align-items: start;
    padding: 18px 12px;
  }

  .checker {
    border-radius: 18px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .status-line {
    flex-direction: column;
    gap: 12px;
  }

  .details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
