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

body {
    background: #0a0e1a;
    color: lightcyan;
    font-family: 'Courier New', monospace;
    font-size: 18px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f1624;
    padding: 5px 12px;
}

.top-bar h1 {
    color: #4af;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.top-bar nav a {
    color: orange;
    text-decoration: none;
    /* margin-left: 16px; */
    font-size: 18px;
}

.top-bar a {
    color: orange;
    text-decoration: none;
}

.top-bar nav a:hover {
    color: #4af;
}

.top-bar .nav-user {
    color: orange;
    font-size: 18px;
}

.page {
    padding: 16px 12px;
    max-width: 600px;
}

.page-wide {
    padding: 16px 12px;
    max-width: 800px;
}

.page-md {
    padding: 16px 12px;
    max-width: 700px;
}

.panel {
    background: #0f1624;
    border: 1px solid #1e2d45;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
}

.panel-title {
    color: #4af;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid #1e2d45;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    color: lightcyan;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.field input {
    width: 100%;
    background: #0a0e1a;
    border: 1px solid #1e2d45;
    border-radius: 3px;
    color: #c8d8e8;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    padding: 4px 4px;
    outline: none;
}

.field input:focus {
    border-color: #4af;
}

.field select {
    width: 100%;
    background: #0a0e1a;
    border: 1px solid #1e2d45;
    border-radius: 3px;
    color: #c8d8e8;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    padding: 4px 4px;
    outline: none;
}

.btn {
    padding: 8px 18px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid;
}

.btn-primary {
    background: #0a2a4a;
    border-color: #4af;
    color: #4af;
}

.btn-primary:hover {
    background: #0d3560;
}

.btn-success {
    background: #0d3320;
    border-color: #2d9;
    color: #2d9;
}

.btn-success:hover {
    background: #0f4428;
}

.btn-muted {
    background: #0f1624;
    border-color: #345;
    color: lightcyan;
}

.btn-disabled {
    background: #0f1624;
    border-color: #2a2a2a;
    color: #333;
    cursor: not-allowed;
}

.error {
    color: #f64;
    font-size: 18px;
    margin-bottom: 14px;
    padding: 4px 4px;
    border: 1px solid #3a1010;
    border-radius: 3px;
    background: #1a0a0a;
}

.hint {
    color: lightcyan;
    font-size: 18px;
    margin-top: 12px;
}

.hint a {
    color: #4af;
    text-decoration: none;
}

/* tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

thead tr {
    color: lightcyan;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

th {
    text-align: left;
    padding: 2px 4px;
    border-bottom: 1px solid #1e2d45;
}

td {
    padding: 8px;
}

td.muted {
    color: #567;
}

td.status-active {
    color: #2d9;
}

td.status-lobby {
    color: #fa4;
}

td.status-other {
    color: #567;
}

td.link-active a,
a.link-active {
    color: #4af;
    text-decoration: none;
    font-weight: bold;
}

td.link-lobby a,
a.link-lobby {
    color: #fa4;
    text-decoration: none;
}

/* dashboard cards */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.dash-card {
    border-radius: 4px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.dash-card-new {
    border: 1px solid #2d9;
    background: #0a1a10;
}

.dash-card-join {
    border: 1px solid #4af;
    background: #0a1a2a;
}

.dash-card-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.dash-card-label {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dash-card-new .dash-card-label {
    color: #2d9;
}

.dash-card-join .dash-card-label {
    color: #4af;
}

.dash-card-sub {
    color: #567;
    font-size: 13px;
    margin-top: 4px;
}

.no-campaigns {
    color: #567;
    font-size: 18px;
    padding: 8px 0;
}

/* lobby */
.lobby-code-label {
    color: #567;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-align: center;
}

.lobby-code {
    color: #4af;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 8px;
    text-align: center;
    margin-bottom: 18px;
}

.lobby-players-label {
    color: #567;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.lobby-player-row {
    padding: 8px;
    border-bottom: 1px solid;
    font-size: 18px;
}

.lobby-host-tag {
    color: #2d9;
    font-size: 13px;
    margin-left: 8px;
}

.lobby-waiting {
    color: #567;
    font-size: 18px;
    margin-top: 20px;
}

.lobby-action {
    margin-top: 20px;
}

/* join game pending */
.join-pending {
    text-align: center;
    padding: 10px 0;
}

.join-pending-status {
    color: #fa4;
    font-size: 18px;
    margin-bottom: 8px;
}

.join-pending-msg {
    color: #c8d8e8;
    font-size: 18px;
    margin-bottom: 20px;
}

.join-pending-note {
    color: #567;
    font-size: 18px;
}

.join-code-input {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 18px;
}

/* status page */
.player-name {
    color: #c8d8e8;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.player-email {
    color: lightcyan;
    font-size: 13px;
    font-weight: normal;
    margin-left: 8px;
}

.player-game-row {
    color: lightcyan;
    padding: 4px 12px;
    font-size: 18px;
}

.no-data {
    color: #567;
    font-size: 18px;
}

.player-block {
    margin-bottom: 16px;
}

/* create character */
.field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.char-note {
    color: #567;
    font-size: 13px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

/* admin tools */
.admin-tools {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* landing page */
.landing-hero {
    text-align: center;
    padding: 60px 24px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.landing-title {
    color: #4af;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.landing-sub {
    color: lightcyan;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.landing-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px 40px;
}

.landing-feature {
    background: #0f1624;
    border: 1px solid #1e2d45;
    border-radius: 4px;
    padding: 16px;
}

.landing-feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.landing-feature-title {
    color: #4af;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.landing-feature-body {
    color: #c8d8e8;
    font-size: 16px;
    line-height: 1.6;
}

.landing-cmd {
    color: #2d9;
    font-family: 'Courier New', monospace;
}

.landing-footer {
    text-align: center;
    padding: 20px 24px 60px;
}