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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
}

/* Top bar */
.topbar {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.topbar h1 img {
    height: 36px;
    width: auto;
}

.topbar a {
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #fff;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.15s;
}

.topbar a:hover {
    background: #fff;
    color: #111;
}

/* Main container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Section heading */
.section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Game card */
.game-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.game-card:hover {
    border-color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.game-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.game-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Progress bar */
.bar-track {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.bar-fill { height: 100%; background: #111; border-radius: 2px; }
.bar-fill.warn { background: #888; }

.spots-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Status badges */
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge.confirmed { background: #111; color: #fff; }
.badge.pending { background: #f0f0f0; color: #666; border: 1px solid #ddd; }

/* Detail page */
.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1.5px solid #e0e0e0;
}

.detail-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #444;
    margin-bottom: 16px;
}

.players-list { margin-top: 8px; }
.player-item {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

/* Forms */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid #e0e0e0;
    margin-bottom: 16px;
}

.form-card h2 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.field { margin-bottom: 14px; }

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field small { font-size: 12px; color: #999; display: block; margin-bottom: 4px; text-transform: none; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.15s;
}

.field input:focus, .field select:focus {
    outline: none;
    border-color: #111;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn:hover { opacity: 0.85; }
.btn.primary { background: #111; color: #fff; width: 100%; text-align: center; }
.btn.secondary { background: #f0f0f0; color: #444; border: 1.5px solid #e0e0e0; }

/* Back link */
.back-link {
    display: inline-block;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
}

.back-link:hover { color: #111; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}