/* CSS Variables for Theming */
:root {
    --bg-1: #0A0A0A;
    --bg-2: #1A1A1A;
    --bg-3: #2A2A2A;
    --panel-1-start: #7A2BFF;
    --panel-1-end: #B24BFF;
    --accent: #FFD24A;
    --accent-dark: #E6B800;
    --text-1: #FFFFFF;
    --text-2: #E6E2F3;
    --text-3: #B8B5C7;
    --muted: #9C8ACF;
    --nav-bg: #FFFFFF;
    --nav-bg-active: #FFD24A;
    --nav-text: #2A1F40;
    --nav-text-active: #1A0F30;
    --border-radius: 0px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
    --angle: 12deg;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg-1);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    pointer-events: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: var(--bg-2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.nav-right {
    display: flex;
    gap: 12px;
}

.nav-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.store-btn {
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
}

.store-btn:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
}

.rules-btn {
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
}

.rules-btn.active,
.store-btn.active {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.5);
}

.rules-btn:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
}

.nav-btn.home-btn {
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
    text-decoration: none;
}

.nav-btn.home-btn:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
    color: white;
}

.nav-btn.home-btn.active {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.5);
}

.discord-btn {
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
    text-decoration: none;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
    color: white;
}

.discord-btn.active {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.5);
}


/* Mobile Spacer Banner - Only visible on mobile devices */
.mobile-spacer-banner {
    display: none;
    position: relative;
    width: 100%;
    height: 60px;
    margin-top: 45px; /* Height of the top navigation bar */
    z-index: 5;
    background: transparent;
}

.mobile-spacer-content {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Show mobile spacer banner only on mobile devices */
@media (max-width: 768px) {
    .mobile-spacer-banner {
        display: block;
    }
}

/* Hero Header */
.hero-header {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    background: transparent;
}

/* Mobile hero header positioning */
@media (max-width: 768px) {
    .hero-header {
        position: relative;
        margin-top: -60px; /* Negative margin to eliminate gap with spacer banner */
        margin-bottom: 20px;
        z-index: 1;
        width: 100%;
        height: 50px;
        min-height: 50px;
    }
    
    .hero-banner {
        margin: 0 10px;
        width: calc(100% - 20px);
        height: 40px;
        border-radius: 8px;
        clip-path: none;
    }
    
    .hero-banner h1 {
        font-size: 1.2rem;
    }
}

.hero-banner {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    width: 100%;
    max-width: 1400px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 20px;
    border-radius: 8px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(26, 155, 148, 0.3);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    z-index: 11;
}

.hero-banner h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}


/* Main Container */
.main-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 5px;
    flex-direction: column;
}

/* Rules page specific layout */
.main-container.rules-page {
    flex-direction: row;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Navigation */
.left-nav {
    width: 350px;
    padding: 40px 0;
    position: sticky;
    top: 150px;
    height: fit-content;
    z-index: 50;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    border-left: 6px solid transparent;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
    height: 80px;
    min-height: 80px;
    max-height: 80px;
}

.nav-item:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(26, 155, 148, 0.6);
    border-left-color: #15968F;
}

.nav-item.active {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    border-left-color: #15968F;
    box-shadow: 0 10px 30px rgba(26, 155, 148, 0.7);
    transform: translateX(10px);
}

.nav-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 31, 64, 0.1);
    border-radius: 6px;
    margin-right: 16px;
    flex-shrink: 0;
}

.nav-icon svg {
    color: var(--nav-text);
    transition: var(--transition);
}

.nav-item.active .nav-icon svg {
    color: var(--nav-text-active);
}

.nav-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.nav-content p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.nav-item.active .nav-content h3 {
    color: white;
    font-weight: 800;
}

.nav-item.active .nav-content p {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.nav-item:hover .nav-content h3 {
    color: white;
    font-weight: 800;
}

.nav-item:hover .nav-content p {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 40px 0 40px 40px;
    position: relative;
    margin-top: 10px;
    min-width: 0; /* Allow flex item to shrink below content size */
    display: block;
    width: 100%;
}

.rule-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
}

.rule-section.active {
    display: block;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rule Panels */
.rule-panel {
    background: transparent;
    padding: 0;
    box-shadow: none;
    position: relative;
    clip-path: none;
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

.panel-header {
    background: linear-gradient(135deg, rgba(74, 11, 223, 0.5), rgba(122, 43, 255, 0.5));
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    display: flex;
    align-items: center;
    backdrop-filter: blur(15px);
}

.panel-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin-right: 20px;
    flex-shrink: 0;
}

.panel-icon svg {
    color: var(--accent);
}

.panel-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-1);
}

.panel-content {
    color: var(--text-1);
    background: transparent;
    display: block;
    width: 100%;
    margin-bottom: 0;
}

.content-section {
    background: linear-gradient(135deg, rgba(74, 11, 223, 0.5), rgba(122, 43, 255, 0.5));
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    backdrop-filter: blur(15px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


.content-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h3::before {
    content: "★";
    font-size: 1.2rem;
    color: var(--accent);
}

.content-section p {
    font-size: 1rem;
    color: var(--text-2);
    margin-bottom: 16px;
    line-height: 1.7;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.6;
}

.content-section li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
    top: 2px;
}

.content-section a {
    color: #FFD24A;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.content-section a:hover {
    color: #FFA500;
    border-bottom-color: #FFA500;
    transform: translateY(-1px);
}

/* Callout Boxes */
.callout {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.callout h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Regular Footer */
.footer {
    width: 100%;
    background: var(--bg-2);
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60px;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.logo-purple {
    color: var(--panel-1-start);
}

.logo-white {
    color: var(--text-1);
}

.footer-center {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    margin-left: 0;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-1);
    margin: 0;
    line-height: 1.4;
}

.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff8800, #00ff00, #0088ff, #8800ff, #ff0088);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pink-purple-gradient {
    background: linear-gradient(45deg, #ba55d3, #9370db, #8a2be2, #7b68ee, #6a5acd, #483d8b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pinkPurpleGradient 3s ease-in-out infinite;
}

@keyframes pinkPurpleGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-right {
    flex: 0 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-link-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.footer-link {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.link-icon {
    font-size: 0.6rem;
    color: var(--text-2);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--panel-1-start);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
}

.back-to-top svg {
    color: var(--text-1);
}

.back-to-top.visible {
    display: flex;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-1);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
}

.mobile-nav-toggle:hover {
    color: var(--accent);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Desktop Layout Enforcement */
@media (min-width: 1025px) {
    .main-container.rules-page {
        flex-direction: row !important;
        display: flex !important;
    }
    
    .left-nav {
        width: 350px;
        position: sticky;
        top: 150px;
        flex-shrink: 0;
    }
    
    .content-area {
        flex: 1;
        display: block !important;
        padding: 40px 0 40px 40px;
    }
    
    .rule-section {
        width: 100%;
    }
    
    .rule-section.active {
        display: block !important;
        width: 100%;
    }
    
    .rule-panel {
        width: 100%;
        display: block;
    }
    
    .panel-content {
        display: block;
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        padding: 0 15px;
        flex: 1;
    }
    
    .left-nav {
        width: 100%;
        padding: 20px 0;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 12px;
        padding-bottom: 20px;
        overflow-x: visible;
    }
    
    .nav-item {
        width: 100%;
        min-width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        height: 70px;
        min-height: 70px;
        max-height: 70px;
        padding: 12px 16px;
    }
    
    .content-area {
        padding: 0;
        width: 100%;
        display: block !important;
    }
    
    .rule-section {
        display: none;
    }
    
    .rule-section.active {
        display: block !important;
    }
    
    .hero-banner {
        margin: 0 15px;
        height: 35px;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-header {
        margin-top: 20px;
        height: 50px;
    }
    
    .main-container {
        margin-top: 20px;
    }
    
    .content-area {
        margin-top: 5px;
    }
    
    .footer-content {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-center {
        margin-left: 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    
    .footer-link-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        margin: 0 10px;
        height: 45px;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .rule-panel {
        padding: 0;
        margin-bottom: 16px;
    }
    
    .panel-header {
        padding: 24px 30px;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    }
    
    .content-section {
        padding: 24px;
        margin-bottom: 16px;
        clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    }
    
    .panel-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .panel-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .panel-header h2 {
        font-size: 1.5rem;
    }
    
    .left-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px 0;
    }
    
    .nav-item {
        height: 55px;
        min-height: 55px;
        max-height: 55px;
    }
    
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-icon img {
        width: 20px;
        height: 20px;
    }
    
    .nav-item {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
        height: 65px;
        min-height: 65px;
        max-height: 65px;
    }
    
    .nav-content h3 {
        font-size: 0.9rem;
    }
    
    .nav-content p {
        font-size: 0.7rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-header {
        height: 40px;
        margin-top: -60px; /* Negative margin to eliminate gap with spacer banner */
    }
    
    .hero-banner {
        margin: 0 5px;
        height: 30px;
    }
    
    .hero-banner h1 {
        font-size: 1.1rem;
    }
    
    .main-container {
        margin-top: 15px;
        padding: 0 10px;
    }
    
    .content-area {
        margin-top: 0;
        padding: 0;
    }
    
    .rule-panel {
        padding: 0;
        clip-path: none;
        border-radius: none;
    }
    
    .panel-header {
        padding: 20px 24px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    }
    
    .content-section {
        padding: 16px 12px;
        margin-bottom: 12px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    
    .content-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 12px;
        word-spacing: 0.05em;
    }
    
    .content-section li {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 8px;
        padding-left: 18px;
    }
    
    .content-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .content-section h4 {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .left-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 10px 0;
    }
    
    .nav-item {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-icon img {
        width: 18px;
        height: 18px;
    }
    
    .nav-item {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
        padding: 10px 14px;
        width: 100%;
    }
    
    .nav-content h3 {
        font-size: 0.8rem;
    }
    
    .nav-content p {
        font-size: 0.6rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-content {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .footer-center {
        margin-left: 0;
    }
    
    .footer-logo {
        font-size: 1.2rem;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
    
    .footer-links {
        gap: 8px;
    }
    
    .footer-link-row {
        gap: 6px;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .main-container {
        padding: 0 5px;
    }
    
    .hero-banner {
        margin: 0 2px;
        height: 28px;
    }
    
    .hero-banner h1 {
        font-size: 1rem;
    }
    
    .left-nav {
        padding: 8px 0;
        gap: 4px;
    }
    
    .nav-item {
        height: 55px;
        min-height: 55px;
        max-height: 55px;
        padding: 8px 12px;
    }
    
    .nav-content h3 {
        font-size: 0.75rem;
    }
    
    .nav-content p {
        font-size: 0.55rem;
    }
    
    .panel-header {
        padding: 16px 20px;
    }
    
    .content-section {
        padding: 12px 10px;
        margin-bottom: 10px;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    
    .content-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 10px;
        word-spacing: 0.02em;
    }
    
    .content-section li {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 6px;
        padding-left: 16px;
    }
    
    .content-section h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.1;
    }
    
    .content-section h4 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .nav-container {
        padding: 0 5px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .left-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .nav-item {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }
    
    .nav-content h3 {
        font-size: 0.8rem;
    }
    
    .nav-content p {
        font-size: 0.6rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Mobile Icon-Only Navigation */
    .left-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 20px 0;
        width: 100%;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    
    /* Ensure main container is properly set up for mobile */
    .main-container.rules-page {
        flex-direction: column;
        width: 100%;
        max-width: none;
        margin: 20px auto 0 auto;
        padding: 0 15px;
        display: block;
    }
    
    /* Remove order properties to use natural document flow */
    .left-nav {
        order: unset;
    }
    
    .hero-header {
        order: unset;
    }
    
    .content-area {
        order: unset;
    }
    
    .nav-item {
        width: 100%;
        height: 60px;
        min-height: 60px;
        max-height: 60px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        clip-path: none;
        margin-bottom: 0;
        touch-action: manipulation;
        position: relative;
    }
    
    /* Hide text on mobile, show only icons */
    .nav-content {
        display: none;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }
    
    .nav-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    
    /* Active state for mobile icons */
    .nav-item.active {
        background: linear-gradient(135deg, #1A9B94, #20B2AA);
        transform: none;
        box-shadow: 0 4px 15px rgba(26, 155, 148, 0.4);
    }
    
    .nav-item:hover {
        background: linear-gradient(135deg, #1A9B94, #20B2AA);
        transform: none;
        box-shadow: 0 4px 15px rgba(26, 155, 148, 0.4);
    }
    
    /* Tooltip for mobile navigation */
    .nav-item::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }
    
    .nav-item:hover::after,
    .nav-item:focus::after {
        opacity: 1;
    }
    
    .nav-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .back-to-top {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Improve text readability on mobile */
    .content-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-section li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .content-section h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Improve mobile scrolling and spacing */
    .main-container {
        padding-bottom: 20px;
    }
    
    /* Better mobile content spacing */
    .panel-content {
        margin-bottom: 0;
    }
    
    /* Ensure proper mobile viewport handling */
    .content-area {
        overflow-x: hidden;
        word-wrap: break-word;
        padding: 20px 0;
        margin-top: 0;
        width: 100%;
        min-width: 0;
        display: block !important;
    }
    
    /* Ensure rule sections are visible on mobile */
    .rule-section {
        display: none;
        width: 100%;
    }
    
    .rule-section.active {
        display: block !important;
        width: 100%;
    }
    
    /* Improve mobile link accessibility */
    .content-section a {
        font-size: 1rem;
        padding: 2px 4px;
        border-radius: 3px;
        display: inline-block;
        min-height: 44px;
        line-height: 40px;
    }
    
    /* Prevent content squishing on mobile */
    .content-section {
        padding: 20px 16px;
        margin-bottom: 16px;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    
    .content-section p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 14px;
        word-spacing: 0.1em;
    }
    
    .content-section li {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
        margin-bottom: 14px;
        line-height: 1.3;
    }
    
    .content-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    /* Better mobile content flow */
    .panel-content {
        width: 100%;
        max-width: none;
        display: block !important;
    }
    
    .rule-panel {
        width: 100%;
        max-width: none;
        display: block !important;
    }
    
    /* Ensure panel header is visible */
    .panel-header {
        display: flex !important;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Ensure content sections are visible */
    .content-section {
        display: block !important;
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Better mobile text flow */
    .content-section p,
    .content-section li {
        max-width: none;
        width: 100%;
    }
    
    /* Improve mobile bullet points */
    .content-section li::before {
        font-size: 0.7rem;
        top: 1px;
    }
}

/* Focus States for Accessibility */
.nav-item:focus,
.back-to-top:focus,
.nav-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .left-nav,
    .back-to-top,
    .top-nav {
        display: none;
    }
    
    .content-area {
        padding: 0;
    }
    
    .rule-section {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .rule-panel {
        box-shadow: none;
        border: 1px solid #ccc;
        clip-path: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-1: #FFFFFF;
        --text-2: #FFFFFF;
        --muted: #CCCCCC;
        --nav-bg: #FFFFFF;
        --nav-text: #000000;
    }
    
    .nav-item {
        border: 2px solid var(--accent);
    }
    
    .nav-item.active {
        background: var(--accent);
        color: var(--nav-text-active);
    }
}

/* Dark Mode Intensity Toggle Support */
body.light-intensity {
    --bg-1: #1A1A1A;
    --bg-2: #2A2A2A;
    --panel-1-start: #8A3BFF;
    --panel-1-end: #C25BFF;
}

body.dark-intensity {
    --bg-1: #050505;
    --bg-2: #0F0F0F;
    --panel-1-start: #6A1BFF;
    --panel-1-end: #A23BFF;
}

/* Construction Page Styles */
.main-container.store-page {
    justify-content: center;
    align-items: center;
    padding: 0;
    max-width: none;
    flex: 1;
}

.construction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.construction-image {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.construction-image img {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.construction-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.construction-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--panel-1-start), var(--panel-1-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.construction-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.construction-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: var(--text-1);
}

.construction-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-2);
    line-height: 1.7;
}

.construction-content ul {
    text-align: center;
    margin: 1rem auto;
    padding: 0;
    list-style: none;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.construction-content li {
    margin-bottom: 0.5rem;
    color: var(--text-2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.construction-content li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive adjustments for construction page */
@media (max-width: 768px) {
    .construction-image img {
        width: 250px;
        height: 250px;
    }
    
    .construction-title {
        font-size: 2rem;
    }
    
    .construction-content {
        padding: 0 1rem;
    }
}

/* Home Page Styles */
.home-page {
    padding-top: 0;
}

.main-container.home-page {
    margin-top: 0;
    flex: 1;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 0;
}

.home-logo {
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

.home-logo-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.home-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--panel-1-start), var(--panel-1-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-2);
    max-width: 500px;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.home-content-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.home-content-btn.primary {
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
}

.home-content-btn.primary:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
}

.home-content-btn.secondary {
    background: linear-gradient(135deg, #4A0BDF, #7A2BFF);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 11, 223, 0.3);
}

.home-content-btn.secondary:hover {
    background: linear-gradient(135deg, #1A9B94, #20B2AA);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 155, 148, 0.4);
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
        flex: 1;
    }
    
    .home-logo-image {
        width: 250px;
        height: 250px;
    }
    
    .home-content h2 {
        font-size: 1.5rem;
    }
    
    .home-content p {
        font-size: 1rem;
    }
    
    .home-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .home-content-btn {
        width: 200px;
        text-align: center;
    }
}

/* Large screen adjustments for better centering */
@media (min-width: 1920px) {
    .home-container {
        padding: 3rem 2rem;
    }
    
    .home-logo {
        margin-bottom: 3rem;
    }
    
    .home-logo-image {
        width: 350px;
        height: 350px;
    }
}

@media (min-width: 2560px) {
    .home-container {
        padding: 4rem 2rem;
    }
    
    .home-logo {
        margin-bottom: 4rem;
    }
    
    .home-logo-image {
        width: 400px;
        height: 400px;
    }
}