:root {
    color-scheme: dark;
    --bg: #0f1115;
    --text: #f2f4f8;
    --muted: #9aa3b2;
    --accent: #c9a227;
    --border: #2a3140;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

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

.page-shell {
    width: min(960px, 92vw);
    margin: 0 auto;
}

.site-header,
.site-footer {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.site-footer {
    border-bottom: none;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    color: var(--muted);
}

.site-header .page-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-logout-form button {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.nav-logout-form button:hover {
    text-decoration: underline;
}

main {
    padding: 2rem 0 3rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.muted {
    color: var(--muted);
}

.notice {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.notice.error {
    border-color: #8b3a3a;
    color: #ffb4b4;
}

label {
    display: block;
    margin-bottom: 1rem;
}

input,
textarea,
button {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #171b22;
    color: var(--text);
}

button {
    width: auto;
    cursor: pointer;
}

.cover {
    max-width: 240px;
    border-radius: 8px;
    margin: 1rem 0;
}

.button-link {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: var(--accent);
    color: #1a1408;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

code {
    font-size: 0.9em;
    word-break: break-all;
}

.lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.lobby-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #171b22;
}

.lobby-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lobby-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

.lobby-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.lobby-status--ready {
    color: #8fd48f;
    border-color: #3a5c3a;
}

.lobby-status--coming-soon {
    color: var(--muted);
}

.product-type-choice {
    margin: 0 0 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.product-type-option {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.product-type-option input {
    width: auto;
    margin-top: 0.25rem;
}

.collection-tracks-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.collection-track-list {
    padding-left: 0;
    list-style: none;
}

.collection-track-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.track-order {
    color: var(--muted);
    margin-right: 0.35rem;
}

.collection-flow-help {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.product-type-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
}
