/* Arbitrary TD website: the game's 1940s look (gold art-deco on crimson lacquer, teal glow). */
:root {
    --gold: #d6a038;
    --gold-hi: #ffd77a;
    --gold-dark: #7a4e1a;
    --teal: #3ff2e6;
    --cream: #fff1d6;
    --crimson: #4a0c22;
    --night: #0c0614;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--cream);
    font-family: 'Saira Semi Condensed', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: radial-gradient(ellipse at 50% 0%, #2a0c2e 0%, var(--night) 60%) fixed, var(--night);
}

a { color: var(--gold-hi); }
a:hover { color: var(--teal); }
h1, h2 { font-family: 'Limelight', 'Georgia', serif; font-weight: normal; color: var(--gold-hi); letter-spacing: 1px; }
h1 { font-size: 34px; margin: 0 0 12px; text-shadow: 0 2px 0 #5a2a00, 0 0 18px rgba(255, 190, 80, 0.45); }
h2 { font-size: 22px; margin: 22px 0 8px; }

/* ---- header ---- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 24px;
    background: linear-gradient(180deg, rgba(110, 16, 40, 0.95), rgba(36, 6, 28, 0.95));
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(12, 4, 18, 0.9), 0 6px 20px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand-main {
    font-family: 'Limelight', 'Georgia', serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-hi);
    text-shadow: 0 2px 0 #5a2a00, 0 0 14px rgba(255, 190, 80, 0.55);
}
.brand-sub { font-size: 12px; letter-spacing: 8px; color: var(--teal); text-shadow: 0 0 8px rgba(63, 242, 230, 0.8); }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 600; }
nav .play-link { color: #071c1c; background: var(--teal); padding: 3px 14px; border-radius: 4px; box-shadow: 0 0 12px rgba(63, 242, 230, 0.5); }
nav .play-link:hover { color: #071c1c; filter: brightness(1.1); }
form.inline { display: inline; margin: 0; }
button.link { font: inherit; font-weight: 600; color: var(--gold-hi); background: none; border: none; padding: 0; cursor: pointer; }
button.link:hover { color: var(--teal); }

main { flex: 1; width: min(1100px, 100%); margin: 0 auto; padding: 24px 16px 40px; }

.site-footer { padding: 14px; text-align: center; font-size: 13px; opacity: 0.6; }

/* ---- blocks ---- */
.card {
    padding: 20px 24px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, rgba(74, 12, 34, 0.9), rgba(30, 6, 26, 0.9));
    border: 2px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(12, 4, 18, 0.9), 0 0 0 4px var(--gold-dark), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.columns .card { margin-bottom: 0; }
img.wide { width: 100%; border-radius: 4px; border: 1px solid var(--gold-dark); }
.muted { opacity: 0.7; }
.error { color: #ff9b8a; }
.ok { color: #7dffb0; }

.hero {
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    margin: -24px -16px 24px;
    background-size: cover;
    background-position: center 40%;
    border-bottom: 2px solid var(--gold-dark);
}
.hero-text {
    max-width: 560px;
    margin: 24px;
    padding: 20px 24px;
    background: rgba(12, 4, 20, 0.72);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}
.hero-text h1 { font-size: 40px; }
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin: -24px -16px 24px;
    background-size: cover;
    background-position: center;
}
.banner h1 { font-size: 48px; }

.button {
    display: inline-block;
    margin: 6px 8px 6px 0;
    padding: 7px 18px;
    font: inherit;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    background: linear-gradient(180deg, rgba(40, 20, 70, 0.95), rgba(16, 8, 30, 0.95));
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
}
.button:hover { color: var(--cream); border-color: var(--teal); box-shadow: 0 0 12px rgba(63, 242, 230, 0.4); }
.button.primary { color: #071c1c; background: var(--teal); border-color: var(--teal); box-shadow: 0 0 14px rgba(63, 242, 230, 0.5); }
.button.primary:hover { color: #071c1c; filter: brightness(1.1); }

.providers { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin: 16px 0; }
.providers .button { text-align: center; font-size: 17px; padding: 10px; }
.dev-login { margin-top: 24px; padding-top: 8px; border-top: 1px dashed var(--gold-dark); }
.dev-login input, .row-form input {
    font: inherit;
    padding: 5px 10px;
    color: var(--cream);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--gold);
    border-radius: 4px;
}
.row-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-form input { flex: 1; min-width: 200px; }
ul.plain { list-style: none; padding: 0; margin: 0; }

table.scores { width: 100%; border-collapse: collapse; font-size: 15px; }
table.scores th { text-align: left; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); padding: 4px 8px; border-bottom: 1px solid var(--gold-dark); }
table.scores td { padding: 5px 8px; border-bottom: 1px solid rgba(122, 78, 26, 0.35); }
table.scores:not(.admin) tbody tr:first-child td { color: var(--gold-hi); font-weight: 700; }
.status-verified { color: #7dffb0; }
.status-mismatch { color: #ffd25e; }
.status-rejected { color: #ff9b8a; }

body.done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }

/* ---- admin ---- */
.admin-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-nav .admin-label { font-family: 'Limelight', 'Georgia', serif; color: var(--gold-hi); font-size: 20px; margin-right: 10px; }
.admin-nav a { text-decoration: none; font-weight: 600; padding: 4px 14px; border: 1px solid var(--gold-dark); border-radius: 4px; background: rgba(30, 6, 26, 0.85); }
.admin-nav a.on { color: #071c1c; background: var(--teal); border-color: var(--teal); }
.small-link { font-size: 13px; font-family: 'Saira Semi Condensed', sans-serif; margin-left: 8px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; color: var(--cream); text-decoration: none;
    background: linear-gradient(180deg, rgba(74, 12, 34, 0.9), rgba(30, 6, 26, 0.9));
    border: 1px solid var(--gold); border-radius: 6px;
}
a.tile:hover { color: var(--cream); border-color: var(--teal); box-shadow: 0 0 12px rgba(63, 242, 230, 0.35); }
.tile-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
.tile-value { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--gold-hi); }
.tile-sub { font-size: 13px; opacity: 0.8; }

.filters { display: flex; align-items: flex-end; gap: 10px 14px; flex-wrap: wrap; margin: 4px 0 14px; }
.filters label { display: flex; flex-direction: column; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.filters label.check { flex-direction: row; align-items: center; gap: 6px; text-transform: none; font-size: 14px; color: var(--cream); padding-bottom: 8px; }
.filters input, .filters select, .admin-actions input {
    font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; margin-top: 2px; padding: 4px 8px;
    color: var(--cream); background: rgba(0, 0, 0, 0.45); border: 1px solid var(--gold); border-radius: 4px;
}
.filters select option { background: #1e061a; }
.filters .button { margin: 0; }

.admin-actions { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 10px 0 6px; }
.admin-actions .row-form { gap: 6px; }
.admin-actions .row-form input { min-width: 180px; flex: none; }
.admin-actions .button { margin: 0; }
.admin-actions label.check { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.button.danger { border-color: #ff7a6a; color: #ffb4a8; }
.button.danger:hover { border-color: #ff7a6a; box-shadow: 0 0 12px rgba(255, 110, 90, 0.45); color: #ffd0c8; }
.button[disabled] { opacity: 0.45; pointer-events: none; }

table.scores.admin { font-size: 14px; }
table.scores.admin td { vertical-align: top; }
table.scores.admin tbody tr:hover td { background: rgba(255, 215, 122, 0.05); }
table.scores.compare { max-width: 720px; }
table.scores.commands { max-width: 720px; }
td.nowrap, .nowrap { white-space: nowrap; }
td.clip { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: 13px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: 15px; }
.kv > span:nth-child(odd) { font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--gold); padding-top: 3px; }

.badge {
    display: inline-block; padding: 1px 9px; font-size: 13px; font-weight: 600; font-family: 'Saira Semi Condensed', sans-serif; letter-spacing: 0;
    text-decoration: none; vertical-align: middle; color: var(--cream); border: 1px solid var(--gold-dark); border-radius: 10px; background: rgba(0, 0, 0, 0.3);
}
.badge a { text-decoration: none; margin-left: 4px; }
.badge.admin { color: var(--teal); border-color: var(--teal); }
.badge.status-verified { border-color: #3fbf7f; }
.badge.status-mismatch { border-color: #d6a038; }
.badge.status-rejected { border-color: #ff7a6a; }
.badge.status-pending, .status-pending { color: #9fd4ff; }
.badge.status-pending { border-color: #6aa8e0; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }

.level-warning, tr.level-warning td:first-child { color: #ffd25e; }
.level-error, tr.level-error td:first-child { color: #ff9b8a; }
tr.level-error td { background: rgba(255, 90, 70, 0.06); }

details.data { margin-top: 2px; }
details.data summary { cursor: pointer; font-size: 12px; color: var(--gold); }
details.data pre { margin: 4px 0; padding: 6px 8px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all;
    font-size: 12px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--gold-dark); border-radius: 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
body.admin main { width: min(1400px, 100%); }
.table-wrap { overflow-x: auto; max-width: 100%; }

/* ---- the privacy page ---- */
.privacy ul { padding-left: 20px; }
.privacy li { margin-bottom: 6px; line-height: 1.5; }
