:root {
  --bg: #05060a;
  --card-bg: #0d1018;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.2);
  --text: #f5f7ff;
  --muted: #9aa0b5;
  --border: #1b2130;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #101426 0, #05060a 55%);
  color: var(--text);
  font-family: var(--sans);
}

.container {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.25rem 3rem;
}

header {
  margin-bottom: 1.75rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  letter-spacing: 0.03em;
}

header p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: linear-gradient(145deg, #0b0f18, #05060a);
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.card h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(5, 6, 10, 0.7);
  border-radius: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  white-space: pre-wrap;
  overflow-wrap: break-word; /* key for long IP/base64 */
  word-break: break-all;     /* aggressive break for huge tokens */
}

#status {
  border-left: 3px solid var(--accent);
  background: radial-gradient(circle at top left, var(--accent-soft), #05060a);
}

#score-bar {
  width: 100%;
  height: 14px;
  background: #1b2130;
  border-radius: 6px;
  margin-top: 0.5rem;
  overflow: hidden;
}

#score-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4f4f, #ffd24f, #4fff7a);
  transition: width 0.6s ease;
}

#score-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.button-card {
  cursor: pointer;
  margin-bottom: 1rem;
  text-align: left;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  transition: background 0.2s;
}

.button-card:hover {
  background: #111522;
}