.event-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.event-card-body {
    min-width: 0;
}

.event-format {
    display: inline-block;
    flex-shrink: 0;
    background: #cc2200;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
}

.event-page-format {
    display: inline-block;
    background: #cc2200;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
    margin-bottom: 1.25rem;
}

.event-meta p {
    margin: 0.3rem 0;
    color: #bbb;
    font-size: 0.9rem;
}

.event-body {
    margin-top: 1.5rem;
}

.event-flyer img {
    width: 100%;
    border-radius: 4px;
}

.event-prizing h2 {
    margin-top: 2rem;
}

.prize-tier {
    margin-bottom: 1.5rem;
}

.prize-tier h3 {
    font-size: 1.1rem;
    color: #cc2200;
    margin-bottom: 0.5rem;
}

.prize-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prize-card {
    position: relative;
    width: 200px;
}

.prize-card img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.card-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #cc2200;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.card-label {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .event-layout {
        grid-template-columns: 1fr;
    }

    .event-flyer {
        order: -1;
    }

    .prize-card {
        flex: 1 1 100px;
        max-width: 150px;
    }
}

.result-row {
    margin-bottom: 1rem;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-nickname {
    color: #888;
    font-size: 0.85rem;
}

.crew-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
}

.deck-toggle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    background: transparent;
    border: 1px solid #cc2200;
    color: #cc2200;
    border-radius: 3px;
    cursor: pointer;
    margin: 0;
    width: auto;
}

.deck-toggle:hover {
    background: #cc2200;
    color: #fff;
}

.deck-viewer {
    margin-top: 0.75rem;
}

.decklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.decklist-grid > div {
    min-width: 0;
}

@media (max-width: 768px) {
    .decklist-grid {
        grid-template-columns: 1fr;
    }

    .decklist-grid .output-empty {
        display: none;
    }
}

.event-results {
    margin: 2rem 0;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1.5rem;
    background: #111;
}

.event-results h2 {
    margin-top: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.results-table thead {
    background: #1a1a1a;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #222;
}

.results-table th {
    font-weight: 600;
    color: #fff;
}

.results-table td {
    color: #bbb;
}

.results-table a {
    color: #cc2200;
    text-decoration: none;
}

.results-table a:hover {
    color: #e62800;
    text-decoration: underline;
}

.event-results-error {
    background: #3a1a1a;
    border: 1px solid #cc2200;
    border-radius: 4px;
    padding: 1rem;
    color: #ff9999;
    margin: 1rem 0;
}
