:root {
    --bg: #050510;
    --surface: #0d0d2b;
    --primary: #44aaff;
    --accent: #00ff88;
    --text: #ccd8ee;
    --muted: #667788;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Courier New", monospace;
    min-height: 100vh;
}

header {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--surface);
}

header a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

main {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

h1 { color: var(--primary); margin-bottom: 1.5rem; }
h2 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 360px; }
label { color: var(--muted); font-size: 0.8rem; }
input[type="text"] {
    background: var(--surface);
    border: 1px solid #224466;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 2px;
    width: 100%;
}
input[type="text"]:focus { outline: none; border-color: var(--primary); }

button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 2px;
    align-self: flex-start;
}
button:hover { background: var(--primary); color: var(--bg); }

.error { color: #ff6666; margin-top: 0.5rem; font-size: 0.875rem; }

section { margin-bottom: 2rem; }

dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.3rem 1.5rem;
}
dt { color: var(--muted); }
dd { color: var(--text); }

.htmx-request { opacity: 0.5; transition: opacity 0.2s; }

svg { display: block; }

@keyframes battle-line-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes bar-grow {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
