body {
    margin: 0;
    padding: 24px;
    background-color: #111827;
    color: white;
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    background-color: #111827;
    color: white;
}

h1 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.championship-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #1f2937;
    border-radius: 0.5rem;
}

.championship-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.championship-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
}

.status-ended { 
    background-color: #059669; 
}

.status-running { 
    background-color: #d97706; 
}

.status-started { 
    background-color: #2563eb; 
}

.controls {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
}

.btn-blue { 
    background-color: #2563eb; 
}

.btn-blue:hover { 
    background-color: #1d4ed8; 
}

.btn-green { 
    background-color: #059669; 
}

.btn-green:hover { 
    background-color: #047857; 
}

.btn-purple { 
    background-color: #7c3aed; 
}

.btn-purple:hover { 
    background-color: #6d28d9; 
}

.selected-info {
    text-align: center;
}

.selected-label {
    font-size: 0.875rem;
    color: #9ca3af;
}

.selected-name {
    font-weight: bold;
    font-size: 1.125rem;
}

.detail-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(to right, rgba(88, 28, 135, 0.5), rgba(30, 58, 138, 0.5));
    border-radius: 0.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.detail-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-align: center;
    color: #c084fc;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    font-size: 0.875rem;
}

.detail-card {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.detail-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: bold;
}

.detail-value-large {
    font-size: 1.25rem;
    font-weight: bold;
}

.detail-value-mono {
    font-family: monospace;
    font-size: 0.75rem;
    word-break: break-all;
}

.label-purple { 
    color: #c084fc; 
}

.label-blue { 
    color: #60a5fa; 
}

.label-green { 
    color: #34d399; 
}

.label-yellow { 
    color: #fbbf24; 
}

.label-red { 
    color: #f87171; 
}

.scene-container {
    background-color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.scene-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.mouse-hint {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #93c5fd;
}

.scene-canvas {
    display: flex;
    justify-content: center;
}

.json-section {
    margin-bottom: 1.5rem;
}

.json-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.json-container {
    background-color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    overflow: auto;
    max-height: 16rem;
}

.json-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
}

.table-section {
    overflow-x: auto;
}

.table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ranking-table {
    width: 100%;
    background-color: #1f2937;
    border-radius: 0.5rem;
    border-collapse: collapse;
}

.table-header {
    background-color: #374151;
}

.table-header th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.table-row {
    border-top: 1px solid #4b5563;
}

.table-row.rank-1 { 
    background-color: rgba(180, 83, 9, 0.3); 
}

.table-row.rank-2 { 
    background-color: rgba(75, 85, 99, 0.3); 
}

.table-row.rank-3 { 
    background-color: rgba(154, 52, 18, 0.3); 
}

.table-row td {
    padding: 0.75rem;
}

.rank-number {
    font-weight: bold;
}

.hash-cell {
    font-family: monospace;
    font-size: 0.75rem;
}