.rules-container {
    max-width: 900px;
    text-align: left;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(100, 100, 100, 0.2);
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

@media (prefers-color-scheme: dark) {
    .btn-back {
        background: rgba(200, 200, 200, 0.2);
        color: #f0f0f0;
    }
}

.btn-back:hover {
    background: rgba(100, 100, 100, 0.3);
}

@media (prefers-color-scheme: dark) {
    .btn-back:hover {
        background: rgba(200, 200, 200, 0.3);
    }
}

.rules-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .rules-section {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

.rules-section:last-of-type {
    border-bottom: none;
}

.rules-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #667eea;
}

@media (prefers-color-scheme: dark) {
    .rules-section h2 {
        color: #8b9aff;
    }
}

.rules-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #764ba2;
}

@media (prefers-color-scheme: dark) {
    .rules-section h3 {
        color: #a77bd4;
    }
}

.rules-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rules-section ul,
.rules-section ol {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.rules-section ul li,
.rules-section ol li {
    margin-bottom: 0.8rem;
}

.numbered-rules {
    counter-reset: rule-counter;
    list-style: none;
    margin-left: 0;
}

.numbered-rules > li {
    counter-increment: rule-counter;
    position: relative;
    padding-left: 2.5rem;
}

.numbered-rules > li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.numbered-rules ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
    list-style-type: disc;
}

.numbered-rules ul li {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.numbered-rules ul li::before {
    display: none;
}

.numbered-rules ul ul {
    list-style-type: circle;
}

.rules-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.rules-section a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .rules-section a {
        color: #8b9aff;
    }
}

code {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
}

@media (prefers-color-scheme: dark) {
    code {
        background: rgba(139, 154, 255, 0.2);
        color: #8b9aff;
    }
}

.odds-table {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    table {
        background: rgba(50, 50, 50, 0.5);
    }
}

thead {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    tbody tr {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.info-note {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .info-note {
        color: #aaa;
    }
}

.region-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.region-rule {
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

@media (prefers-color-scheme: dark) {
    .region-rule {
        background: rgba(139, 154, 255, 0.1);
        border-left-color: #8b9aff;
    }
}

.region-rule h3 {
    margin-top: 0;
}

.region-rule p {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .rules-container {
        padding: 1.5rem;
    }

    .rules-section h2 {
        font-size: 1.5rem;
    }

    .rules-section h3 {
        font-size: 1.2rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .numbered-rules li {
        padding-left: 2rem;
    }

    .numbered-rules li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}
