:root {
    --bg: #0b0f19;
    --panel: #131a2a;
    --text: #e3e8f0;
    --accent: #4fd1c5;
    --error: #ff6b6b;
    --success: #6bcf7f;
    --border: #263148;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg) url("../images/sector-field.svg") center top / cover fixed no-repeat;
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

/* Table cells didn't need their own background before - the page behind
   them was flat. Now that body has a starfield image, an unset cell
   background would let it show through and make the table harder to read. */
.trade-table td {
    background: var(--panel);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.brand-mark {
    display: block;
}

nav a, .link-button {
    color: var(--text);
    text-decoration: none;
    margin-left: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

nav a:hover, .link-button:hover { color: var(--accent); }

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

h1 { color: var(--accent); }

/* Plain links (e.g. "Back to sector", the login/register cross-links) were
   falling back to the browser's default blue, which is nearly unreadable
   on this dark background - noticed it while reviewing the new art. */
a { color: var(--accent); }
a:hover { color: #7ee8de; }

.error { color: var(--error); }
.success { color: var(--success); }

.form-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 320px;
}

.form-panel label { font-weight: bold; margin-top: 0.5rem; }
.form-panel input {
    padding: 0.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
}

button, .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #06121a;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.status-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.warp-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.warp-list .link-button {
    padding: 0.5rem 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin: 0;
}

.ship-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}

.ship-card img { flex-shrink: 0; }

.dock-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.dock-link img { flex-shrink: 0; }

.port-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.port-banner img { flex-shrink: 0; }

.trade-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.trade-table th, .trade-table td {
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: left;
}

.trade-table th { background: var(--panel); }

.inline-form { display: inline; }

.site-footer {
    text-align: center;
    color: #6b7789;
    padding: 2rem 0;
    font-size: 0.85rem;
}
