:root {
  --bg: #0b0d17;
  --card: #10121c;
  --accent: #818cf8;
  --accent-soft: rgba(129, 140, 248, 0.12);
  --accent-line: rgba(129, 140, 248, 0.18);
  --text: #dfe1eb;
  --dim: #858a9c;
  --border: rgba(129, 140, 248, 0.1);
  --input: #151824;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

h1 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 600;
}

.sub {
  margin: 0 0 16px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.45;
}

.pool {
  margin: 0 0 14px;
  color: var(--dim);
  font-size: 12.5px;
}

.pool strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.field {
  display: block;
  margin-bottom: 10px;
}

.field span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 11.5px;
}

select,
button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

select option {
  background: var(--input);
  color: var(--text);
}

select:focus,
button:focus {
  border-color: var(--accent-line);
}

select:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#get {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

#get:not(:disabled):hover {
  background: rgba(129, 140, 248, 0.17);
}

.status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--dim);
}

.status.bad {
  color: #d99a9a;
}

.result {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 9px 11px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.result a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #a6b0e8;
  text-decoration: none;
  font-size: 13px;
}

.result a:hover {
  text-decoration: underline;
}

.copy {
  width: auto;
  flex: none;
  padding: 6px 10px;
  font-size: 11.5px;
  color: var(--dim);
  cursor: pointer;
}

.copy:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.hidden {
  display: none;
}

.promo {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--dim);
}

.promo a {
  color: #a6b0e8;
  text-decoration: none;
}

.promo a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  body { padding: 14px; }
  .card { padding: 16px; }
  h1 { font-size: 17px; }
}
