:root {
  --bg: #0b1017;
  --bg-accent: #131c27;
  --surface: #172231;
  --ink: #edf3fb;
  --muted: #9fb0c6;
  --brand: #44d5b0;
  --brand-2: #f2a64d;
  --line: #2d3d53;
  --shadow: 0 14px 36px rgba(4, 8, 14, 0.52);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  color-scheme: dark;
  background:
    radial-gradient(circle at 4% 8%, rgba(242, 166, 77, 0.2), transparent 24%),
    radial-gradient(circle at 94% 7%, rgba(68, 213, 176, 0.18), transparent 26%),
    linear-gradient(180deg, #131f2b 0%, var(--bg-accent) 40%, var(--bg) 100%);
  min-height: 100vh;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, #1a2736 0%, #152231 100%);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-size: 0.78rem;
  margin: 0 0 0.45rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}

.server {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.summary {
  margin-top: 0.8rem;
  font-weight: 500;
}

.controls {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(24, 35, 50, 0.9);
  backdrop-filter: blur(2px);
}

.controls label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.controls input,
.controls select {
  border: 1px solid #364b65;
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
  font: inherit;
  color: var(--ink);
  background: #0f1824;
}

.controls input:focus,
.controls select:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, white);
  outline-offset: 1px;
}

.checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem !important;
}

.checkbox input {
  accent-color: var(--brand);
}

.results {
  margin-top: 0.95rem;
}

.results-meta {
  margin: 0.8rem 0;
  font-weight: 500;
}

.sign-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.sign-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(3, 8, 15, 0.5);
  animation: rise 220ms ease-out;
}

.sign-text {
  margin: 0;
  min-height: 3.1rem;
  white-space: pre-wrap;
  font-size: 0.94rem;
  padding: 0.64rem;
  border-radius: 8px;
  background: #0f1824;
  border: 1px dashed #34506d;
  font-family: "IBM Plex Mono", monospace;
}

.meta {
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  word-break: break-word;
}

.pager {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pager button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.46rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #172232;
  cursor: pointer;
}

.pager button:hover:not(:disabled) {
  background: #1f3044;
}

.pager button:disabled {
  opacity: 0.55;
  cursor: default;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .page {
    padding-inline: 0.72rem;
  }

  .hero,
  .controls {
    border-radius: 14px;
  }
}
