.hero-small {
    background: url('/images/start_section_bg.png');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    min-height: 60vh;
}

.rules-category {
    margin-bottom: 5rem;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffc801 20%, #ff6d01 50%, #ffc801 80%, transparent 100%);
    border-radius: 2px;
    max-width: 200px;
}

.category-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    position: relative;
}

.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.rule-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc801, #ff6d01);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.rule-card:hover::before {
    transform: scaleX(1);
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 174, 57, 0.3);
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 174, 57, 0.1);
}

.rule-card.highlighted {
    border-color: rgba(251, 191, 36, 0.7) !important;
    box-shadow: 0 0 30px 5px rgba(251, 191, 36, 0.3);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03));
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rule-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc801, #ff6d01);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rule-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.anchor-link {
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
    color: rgba(251, 191, 36, 0.6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.rule-card:hover .anchor-link {
    opacity: 1;
}

.anchor-link:hover {
    color: rgba(251, 191, 36, 1);
}

.rule-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

.empty-state {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.hero-back-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 174, 57, 0.3);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-back-btn:hover {
    background: rgba(255, 174, 57, 0.15);
    border-color: rgba(255, 174, 57, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 174, 57, 0.2);
}

.hero-back-btn .back-arrow {
    transition: transform 0.3s ease;
}

.hero-back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

.rule-card:nth-child(1) { animation-delay: 0.1s; }
.rule-card:nth-child(2) { animation-delay: 0.2s; }
.rule-card:nth-child(3) { animation-delay: 0.3s; }
.rule-card:nth-child(4) { animation-delay: 0.4s; }
.rule-card:nth-child(5) { animation-delay: 0.5s; }
.rule-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-line {
        width: 100px;
        max-width: none;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .rules-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rule-card {
        padding: 1.5rem;
    }
    
    .rule-title {
        font-size: 1.1rem;
    }
    
    .rule-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-back-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .hero-back-btn .back-arrow {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 640px) {
    .category-title {
        font-size: 1.5rem;
    }
    
    .rule-header {
        gap: 0.75rem;
    }
    
    .rule-card {
        padding: 1.25rem;
    }
}

.rules-tabs {
    margin-bottom: 3rem;
}

.rules-tab {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rules-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 174, 57, 0.5);
    color: #FFAE39;
    transform: translateY(-2px);
}

.rules-tab.active {
    background: linear-gradient(135deg, rgba(255, 174, 57, 0.2), rgba(255, 196, 1, 0.1));
    border-color: #FFAE39;
    color: #FFC401;
    box-shadow: 0 8px 25px rgba(255, 174, 57, 0.3);
}

.rules-tab svg {
    flex-shrink: 0;
}

.rules-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.rules-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guidelines-grid {
    display: grid;
    gap: 2rem;
}

.guideline-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.guideline-card:hover {
    border-color: rgba(255, 174, 57, 0.5);
    box-shadow: 0 8px 30px rgba(255, 174, 57, 0.15);
    transform: translateY(-2px);
}

.guideline-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 174, 57, 0.2);
}

.guideline-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFC401;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guideline-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 0.5rem;
}

.guideline-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.guideline-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFAE39;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guideline-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFC401;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guideline-content p {
    margin-bottom: 1rem;
}

.guideline-content ul,
.guideline-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.guideline-content li {
    margin-bottom: 0.5rem;
}

.guideline-content a {
    color: #FFAE39;
    text-decoration: underline;
}

.guideline-content a:hover {
    color: #FFC401;
}

.guideline-content strong {
    color: #FFC401;
    font-weight: 600;
}

.guideline-content code {
    background: rgba(255, 174, 57, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #FFAE39;
}

.guidelines-grid {
    margin-top: 2rem;
}

.guideline-card-small {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guideline-card-small:hover {
    border-color: rgba(255, 174, 57, 0.5);
    box-shadow: 0 8px 30px rgba(255, 174, 57, 0.2);
    transform: translateY(-4px);
}

.guideline-icon {
    font-size: 3rem;
    text-align: center;
}

.guideline-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFC401;
    text-align: center;
}

.guideline-card-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
}

.guideline-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #FFAE39;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guideline-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guideline-modal.active {
    opacity: 1;
    visibility: visible;
}

.guideline-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.guideline-modal-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid rgba(255, 174, 57, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.guideline-modal.active .guideline-modal-container {
    transform: scale(1);
}

.guideline-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 174, 57, 0.2);
}

.guideline-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFC401;
    margin: 0;
}

.guideline-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guideline-modal-close:hover {
    background: rgba(255, 174, 57, 0.3);
    transform: rotate(90deg);
}

.guideline-modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.guideline-modal-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFAE39;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 174, 57, 0.2);
}

.guideline-modal-body h2:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.guideline-modal-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFC401;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guideline-modal-body p {
    margin-bottom: 1rem;
}

.guideline-modal-body ul,
.guideline-modal-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.guideline-modal-body li {
    margin-bottom: 0.5rem;
}

.guideline-modal-body a {
    color: #FFAE39;
    text-decoration: underline;
}

.guideline-modal-body a:hover {
    color: #FFC401;
}

.guideline-modal-body strong {
    color: #FFC401;
    font-weight: 600;
}

.guideline-modal-body code {
    background: rgba(255, 174, 57, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #FFAE39;
}

.guideline-modal-body .bg-yellow-500\/20 {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

.guideline-modal-body .bg-red-500\/20 {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.guideline-modal-body .bg-blue-500\/20 {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.guideline-modal-body::-webkit-scrollbar {
    width: 8px;
}

.guideline-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.guideline-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFAE39, #FFC401);
    border-radius: 4px;
}

.guideline-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFC401, #FFAE39);
}

@media (max-width: 768px) {
    .guideline-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .guideline-modal-header {
        padding: 1.5rem;
    }
    
    .guideline-modal-title {
        font-size: 1.25rem;
    }
    
    .guideline-modal-body {
        padding: 1.5rem;
    }
}

.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    font-weight: 600;
}

.copy-notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.copy-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.copy-notification svg {
    flex-shrink: 0;
}

.highlight-rule {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 174, 57, 0);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 174, 57, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 174, 57, 0);
    }
}

@media (max-width: 768px) {
    .copy-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }
}
