html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0 auto;
    padding: 0 auto;
    color: #FFF;
    font-family: 'Helvetica', 'Segoe UI', Arial, sans-serif;
}

h1,h2,h3,h4,h5,p,ul {
    padding: 0;
    margin: 0;
    font-weight: 400;
}

.venue-header {
    padding: 40px 40px 30px;
    text-align: center;
}

.venue-header-container {
    max-width: 900px;
    margin: 0 auto;
}

.venue-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.venue-header p {
    font-size: 15px;
}

.rules-container {
    display: flex;
    flex-direction: row;
    margin: 20px 40px;
}

.tabs-wrapper {
    flex-basis: 800px;
    min-width: 0;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(100,116,139,0.2);
}

.tab-btn {
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(168,184,192,0.7);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: 'Helvetica', 'Segoe UI', Arial, sans-serif;
    text-align: center;
}

.tab-btn:hover {
    color: rgba(255,255,255,0.9);
}

.tab-btn.active {
    color: rgba(255,255,255,0.95);
    border-bottom-color: rgba(100,116,139,0.5);
}

.tab-content {
    display: none;
    padding: 32px 22px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.richtext-content a {
    color: #2ec396;
    text-decoration: underline;
}

.richtext-content h1 {
    font-size: 2rem;
    margin: 1.3rem 0;
}

.richtext-content h2 {
    font-size: 1.5rem;
    margin: 1.3rem 0;
}

.richtext-content h3 {
    font-size: 1.2rem;
    margin: 1.3rem 0;
}

.richtext-content p {
    margin-bottom: 1.3rem;
    line-height: 1.85;
}

.richtext-content ul {
    margin: 1rem 0 1.6rem 2.2rem;
    line-height: 1.9;
}

.richtext-content li {
    margin-bottom: 5px;
}

.richtext-content strong {
    font-weight: 600;
}

.risk-alert {
    border-left: 4px solid rgba(255,183,3,0.8);
    padding: 20px 24px;
    margin: 24px 0 28px 0;
}

.risk-box {
    border: 1px solid rgba(100,116,139,0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0 28px 0;
}

.risk-box p {
    margin: 0;
    line-height: 1.8;
}

.risk-box p + p {
    margin-top: 12px;
}

li {
    margin-bottom: 5px;
}

.toc {
    flex-basis: 450px;
    margin-right: 100px;
}

.toc h1 {
    border: 1px solid #FFF;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.toc-wrap {
    padding: 20px 0px;
    border: 1px solid #FFF;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#toc-list {
    list-style: none;
    margin: 0;
    padding: 0 20px;
}

#toc-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

#toc-list li::before {
    content: "- ";
    color: #fff;
    margin: auto 10px;
}

#toc-list a {
    color: #FFF;
    text-decoration: none;
}

@media (max-width: 900px) {
    .rules-container {
        display: block;
    }
    .toc {
        margin: 20px 0px;
    }
}