:root {
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #e6e6e6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 48px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: block;
  margin-bottom: 16px;
}

h1 {
  font-size: 18px;
  font-weight: 500;
  color: #999;
  text-align: center;
  margin: 0 0 32px;
}

#check-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

#query {
  flex: 1;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

#query:focus {
  border-color: #555;
}

button[type="submit"] {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: default;
}

#result {
  width: 100%;
  margin-top: 32px;
}

.loading {
  text-align: center;
  color: #777;
  font-size: 14px;
}

.error {
  text-align: center;
  color: #ff6666;
  font-size: 14px;
  padding: 16px 0;
}

.card {
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px;
}

.card .name {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card .headline {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}

.chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(4px);
  animation: reveal 0.35s ease forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.step .icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #151515;
}

.step.ok .icon { background: #123319; }
.step.fail .icon { background: #3a1414; }

.step .label {
  font-size: 14px;
  color: #ccc;
}

.step.fail .label { color: #ff8080; }

.connector {
  width: 1px;
  height: 14px;
  background: #2a2a2a;
  margin-left: 14px;
}

.break-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1a1010;
  color: #ff9d9d;
  font-size: 13px;
}

.extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #1a1a1a;
  font-size: 13px;
  color: #aaa;
}

.extra-row a { color: #9dc4ff; }

.score {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.score .value {
  font-size: 28px;
  font-weight: 700;
}

.score .caption {
  font-size: 12px;
  color: #777;
}
