* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oxanium', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    background-color: rgb(26, 26, 26);
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.container {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    padding: 80px 20px 20px 20px;
    z-index: 1;
}

.rules-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
}

.title {
    color: white;
    font-size: 3.5rem;
    text-align: center;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    background: linear-gradient(45deg, #ffffff, #a8a8a8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto 2rem auto;
    width: 100%;
    text-align: center;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.quick-links a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.rule-card {
    background: rgba(0, 0, 0, 0.3);
    margin: 1rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rule-card:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
    border-color: #ff8533;
    box-shadow: 0 8px 25px rgba(255, 133, 51, 0.15),
                0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
}

.rule-description {
    color: #dedede;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    line-height: 1.6;
    font-size: 1.1rem;
}

.rule-card.expanded .rule-description,
.rule-card:hover .rule-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    z-index: 2;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.rule-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-card:hover .rule-actions,
.rule-card.expanded .rule-actions {
    opacity: 1;
}

.rule-actions button {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rule-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    border-color: #ff8533;
}

.rule-caret {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.rule-card:not(.expanded):hover .rule-caret {
    transform: rotate(-180deg);
}

.rule-card.expanded .rule-caret {
    transform: rotate(-180deg);
}

.disclaimer {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.disclaimer p {
    color: #dedede;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.disclaimer .ownership {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1000;
    animation: fadeInOut 3s ease forwards;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2b2b2b;
}

::-webkit-scrollbar-thumb {
    background: #3d3d3d;
}

::-webkit-scrollbar-thumb:hover {
    background: #222222;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 1rem); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -1rem); }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .quick-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quick-links a {
        width: 100%;
        max-width: 300px;
    }
    
    .rule-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
    
    .rule-actions {
        opacity: 1;
    }
    
    .back-btn {
        position: relative;
        top: 0;
        left: 0;
        margin: 1rem;
        width: calc(100% - 2rem);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .rule-title {
        font-size: 1.25rem;
    }
    
    .rule-description {
        font-size: 1rem;
    }
    
    .disclaimer p {
        font-size: 1rem;
    }
}