@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;600&display=swap');

:root {
    --carbon: #16140F;
    --bone: #EDE6D6;
    --kenner-orange: #F2A030;
    --rebel-red: #C23B22;
    --steel: #3C5A73;
    --line: rgba(237, 230, 214, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--carbon);
    color: var(--bone);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

a { color: var(--kenner-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    background: linear-gradient(180deg, #1D1A13 0%, var(--carbon) 100%);
    border-bottom: 3px solid var(--kenner-orange);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: var(--kenner-orange);
    background: linear-gradient(90deg, var(--kenner-orange), var(--rebel-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.site-header nav a {
    color: var(--bone);
    margin-left: 18px;
    font-size: 0.95rem;
    font-weight: 500;
}
.site-header nav a:hover { color: var(--kenner-orange); }

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.filters input[type="text"],
.filters select {
    background: #221F17;
    border: 1px solid var(--line);
    color: var(--bone);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}
.filters button {
    background: var(--kenner-orange);
    color: var(--carbon);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.filters button:hover { background: var(--rebel-red); color: var(--bone); }

.progress {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    text-align: right;
}
.progress-bar {
    width: 180px;
    height: 8px;
    background: #2A261C;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kenner-orange), var(--rebel-red));
}
.login-hint { font-size: 0.9rem; opacity: 0.85; }

.figures-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.figures-table th {
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: var(--kenner-orange);
    border-bottom: 2px solid var(--line);
    padding: 10px 8px;
}
.figures-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.figures-table td:first-child {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--steel);
    font-weight: 600;
}
.figures-table tr.is-owned {
    background: rgba(194, 59, 34, 0.08);
}
.figures-table tr.is-owned td:nth-child(2) {
    color: var(--kenner-orange);
}

/* Checkbox styled like a foil "sealed" sticker on a blister card */
.status-toggle {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    background: #1D1A13;
}
.status-toggle:checked {
    background: linear-gradient(135deg, var(--kenner-orange), var(--rebel-red));
    border-color: var(--kenner-orange);
}
.status-toggle:checked::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--carbon);
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-form {
    max-width: 380px;
    margin: 40px auto;
    background: #1D1A13;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
}
.auth-form h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.03em;
    color: var(--kenner-orange);
    margin-top: 0;
}
.auth-form label {
    display: block;
    font-size: 0.85rem;
    margin: 14px 0 6px;
}
.auth-form input {
    width: 100%;
    padding: 10px 12px;
    background: #16140F;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--bone);
    font-family: 'Inter', sans-serif;
}
.auth-form button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: var(--kenner-orange);
    color: var(--carbon);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}
.auth-form button:hover { background: var(--rebel-red); color: var(--bone); }
.form-error {
    background: rgba(194, 59, 34, 0.15);
    border: 1px solid var(--rebel-red);
    color: var(--bone);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.site-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 0.8rem;
    opacity: 0.6;
    border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
    .figures-table { font-size: 0.8rem; }
    .figures-table th:nth-child(3), .figures-table td:nth-child(3) { display: none; }
}
