/* Container Layout */
.rules-container {
    max-width: 540px;
    text-align: left;
    display: flex;
    flex-direction: column;
    max-height: 88vh; /* Keeps entire container inside the viewport */
}

.rules-container h1 {
    text-align: center;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* Scroll Area */
.rules-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-right: 0.6rem;
    margin-bottom: 0.5rem;
    flex-grow: 1;

    /* Firefox custom scrollbar */
    scrollbar-color: rgba(138, 43, 226, 0.4) rgba(0, 0, 0, 0.3);
}

/* WebKit (Chrome, Edge, Safari) Scrollbar */

.rules-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.rules-content::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.4);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.rules-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.7);
}

/* Rule Card Blocks */
.rule-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
}

.rule-block h3 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.rule-block p {
    font-size: 0.85rem;
    color: #a0a0a0;
    line-height: 1.45;
}

.rule-block ul {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    color: #a0a0a0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rule-block li {
    line-height: 1.4;
}

.rule-block strong {
    color: #d0d0d0;
}

/* Action Buttons */
.rules-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-shrink: 0;
}

.report-cta-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.report-cta-btn:hover {
    background-color: rgba(138, 43, 226, 0.15);
    border-color: rgba(138, 43, 226, 0.6);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.back-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 9px;
    border-radius: 6px;
    margin-top: 0;
}

.highlight-text {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.7);
}