* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000;
    min-height: 100vh;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bgmain.jpg') center/cover no-repeat;
    filter: blur(3px);
    z-index: -2;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo h1 {
    color: #ff6b6b;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.logo-text:hover {
    color: #ff5252;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
    background: transparent;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-link.active:hover {
    background: linear-gradient(135deg, #ff5252, #ff4444);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 25, 0.98);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.auth-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.auth-btn.secondary {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
}

.auth-btn.secondary:hover {
    background: #ff6b6b;
    color: white;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.guide-card h3 {
    color: #ff6b6b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.guide-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.card-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #ff6b6b;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: #ff6b6b;
    color: #000;
}

/* Table Styles */
.table-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.table-container h2 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
}

th {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    font-weight: bold;
}

tr:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.content-section h2 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #ff6b6b;
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    color: #cccccc;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #ff6b6b;
    margin-top: 3rem;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 107, 107, 0.3);
}

.footer-bottom p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* Mobile Navigation Media Query */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        padding: 15px;
    }
    
    .auth-section {
        position: fixed;
        top: 70px;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        padding: 15px 20px;
        border-left: 1px solid rgba(255, 107, 107, 0.2);
        z-index: 999;
    }
    
    .auth-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 107, 107, 0.1);
        border: none;
        box-shadow: none;
        margin-top: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    }
}

/* Timer Styles */
.timer-container {
    text-align: center;
    margin: 2rem 0;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timer-section {
    background: rgba(255, 107, 107, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 100px;
    border: 2px solid rgba(255, 107, 107, 0.5);
}

.timer-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.timer-label {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-subtitle {
    color: #cccccc;
    font-size: 1.1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guide-card {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .table-container {
        padding: 1rem;
        overflow-x: auto;
    }
    
    table {
        font-size: 0.9rem;
        min-width: 600px;
    }
    
    th, td {
        padding: 8px;
        word-wrap: break-word;
    }
    
    .timer-display {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .timer-section {
        padding: 1rem;
        min-width: 80px;
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .timer-label {
        font-size: 0.9rem;
    }
    
    .timer-subtitle {
        font-size: 1rem;
    }
    
    /* Team builds mobile */
    .team-title {
        font-size: 2rem;
    }
    
    .team-cards {
        gap: 1rem;
    }
    
    .character-card {
        width: 140px;
        height: 200px;
        padding: 1rem;
    }
    
    .character-portrait {
        width: 70px;
        height: 70px;
    }
    
    .character-name {
        font-size: 1rem;
    }
    
    .character-role {
        font-size: 0.7rem;
    }
    
    /* Timezone grid mobile */
    .timezone-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .timezone-card {
        padding: 1rem;
    }
    
    .timezone-card h4 {
        font-size: 1rem;
    }
    
    .timezone-card p {
        font-size: 0.9rem;
    }
}

/* Build Cards */
.build-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.build-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.build-card .build-type {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.build-card .personas {
    color: #cccccc;
    margin-bottom: 1rem;
}

.build-card .strategy {
    color: #a8d8ff;
    font-style: italic;
}

/* Romance Cards */
.romance-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.romance-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.romance-card .character-info {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.romance-card .availability {
    color: #a8d8ff;
    margin-bottom: 1rem;
}

.romance-card .tips {
    color: #cccccc;
}

/* Character Table Styles */
.characters-table {
    font-size: 0.9rem;
}

.character-portrait {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #ff6b6b;
    object-fit: cover;
}

.element-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.rarity-5 {
    color: #ffaa00;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.rarity-4 {
    color: #aa00ff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(170, 0, 255, 0.5);
}

.codename {
    color: #ff6b6b;
    font-style: italic;
    font-size: 0.8rem;
}

.role {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role.sweeper {
    background: linear-gradient(45deg, #ff4444, #cc2222);
    color: white;
}

.role.strategist {
    background: linear-gradient(45deg, #4444ff, #2222cc);
    color: white;
}

.role.medic {
    background: linear-gradient(45deg, #44ff44, #22cc22);
    color: white;
}

.role.assassin {
    background: linear-gradient(45deg, #8844ff, #5522cc);
    color: white;
}

.role.saboteur {
    background: linear-gradient(45deg, #ff8844, #cc5522);
    color: white;
}

.role.navigator {
    background: linear-gradient(45deg, #44ffff, #22cccc);
    color: white;
}

.role.guardian {
    background: linear-gradient(45deg, #ffff44, #cccc22);
    color: black;
}

.banner-info {
    font-size: 0.8rem;
    color: #cccccc;
}

@media (max-width: 768px) {
    .characters-table {
        font-size: 0.7rem;
    }
    
    .character-portrait {
        width: 40px;
        height: 40px;
    }
    
    .element-icon {
        width: 16px;
        height: 16px;
    }
    
    .banner-info {
        font-size: 0.6rem;
    }
    
    .role {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
    
    .codename {
        font-size: 0.7rem;
    }
    
    /* Table scroll for mobile */
    .table-container {
        overflow-x: auto;
    }
    
    .characters-table {
        min-width: 800px;
    }
}

/* Team Builds Styles - Modern Futuristic Design */
.team-preset {
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.team-preset::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    z-index: 1;
}

.team-preset::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00f5ff, #ff00f5, #f5ff00, #00f5ff);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Team Specific Themes */
.control-theme::after {
    background: linear-gradient(45deg, #3b82f6, #1e40af, #60a5fa, #3b82f6);
}

.curse-theme::after {
    background: linear-gradient(45deg, #7c3aed, #4c1d95, #a855f7, #7c3aed);
}

.fire-theme::after {
    background: linear-gradient(45deg, #ef4444, #dc2626, #f87171, #ef4444);
}

.wind-theme::after {
    background: linear-gradient(45deg, #10b981, #059669, #34d399, #10b981);
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.team-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-description {
    color: #9ca3af;
    font-size: 1.1rem;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.character-card {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 1.5rem;
    width: 160px;
    height: 220px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.character-card.leader {
    background: linear-gradient(145deg, #374151 0%, #1f2937 100%);
    border: 2px solid #fbbf24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.character-card.leader::after {
    content: 'LEADER';
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.character-frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.character-portrait {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #374151;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.character-card:hover .character-portrait {
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

.character-card.leader .character-portrait {
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.element-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 2px solid #374151;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.element-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.element-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.character-card:hover .element-badge {
    border-color: #60a5fa;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.character-card.leader .element-badge {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.character-info {
    text-align: center;
}

.character-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.character-role {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-section h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Card Game Styles */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.game-header {
    text-align: center;
    margin-bottom: 3rem;
}

.game-title {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.currency-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.money-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.currency-icon {
    font-size: 2rem;
}

.next-claim {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cccccc;
}

.claim-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.claim-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.claim-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.tab-btn.active {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* Shop Section */
.shop-section {
    text-align: center;
}

.shop-section h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 2rem;
}

.booster-shop {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.booster-pack {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 300px;
    transition: all 0.3s ease;
}

.booster-pack:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.booster-image {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.booster-pack h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.booster-pack p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.rarity-chances {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
}

.rarity-chance {
    text-align: center;
}

.rarity-chance span:first-child {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.rarity-5 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.rarity-4 {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
}

.rarity-3 {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
}

.pack-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 1rem;
}

.buy-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #ff4444, #ff2222);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.buy-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Collection Section */
.collection-section h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-align: center;
}

.collection-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.collection-stats p {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0;
    text-align: center;
    color: #cccccc;
}

.collection-stats span {
    font-weight: bold;
    color: #ff6b6b;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card.rarity-5 {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.card.rarity-4 {
    border-color: #c084fc;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.1), rgba(255, 255, 255, 0.1));
}

.card.rarity-3 {
    border-color: #60a5fa;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(255, 255, 255, 0.1));
}

.card.not-owned {
    opacity: 0.3;
    filter: grayscale(100%);
}

.card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.card-name {
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-rarity {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-role {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Pack Opening Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
}

.pack-opening-animation {
    margin-bottom: 2rem;
}

.booster-opening {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 1rem;
    transition: all 1s ease;
}

.booster-opening.opening {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

.opening-text {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-top: 1rem;
    font-weight: bold;
    animation: pulse 1s infinite;
}

.cards-revealed {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.revealed-card {
    animation: cardReveal 0.8s ease-out;
    transform-origin: center;
}

.close-modal {
    background: linear-gradient(135deg, #ff6b6b, #ff4444);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: none;
}

.close-modal:hover {
    background: linear-gradient(135deg, #ff4444, #ff2222);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes cardReveal {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes legendaryGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

@keyframes moneyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .currency-display {
        flex-direction: column;
        gap: 1rem;
    }
    
    .money-counter {
        font-size: 1.2rem;
    }
    
    .game-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .collection-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .booster-pack {
        width: 100%;
        max-width: 280px;
    }
    
    .cards-revealed {
        flex-direction: column;
        align-items: center;
    }
    
    .revealed-card {
        width: 100%;
        max-width: 200px;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .timer-section {
        min-width: calc(50% - 0.5rem);
        padding: 0.8rem;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .timer-label {
        font-size: 0.8rem;
    }
    
    .character-card {
        width: 120px;
        height: 180px;
        padding: 0.8rem;
    }
    
    .character-portrait {
        width: 60px;
        height: 60px;
    }
    
    .character-name {
        font-size: 0.9rem;
    }
    
    .team-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .timezone-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .timezone-card {
        padding: 0.8rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .guide-card {
        padding: 1rem;
    }
    
    .guide-card h3 {
        font-size: 1.2rem;
    }
    
    .card-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .table-search {
        font-size: 14px;
        padding: 8px;
    }
    
    th, td {
        padding: 6px;
        font-size: 0.8rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .timer-display {
        gap: 0.5rem;
    }
    
    .timer-section {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .character-card {
        width: 130px;
        height: 190px;
    }
}

/* Timezone grid styles */
.timezone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.timezone-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timezone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.timezone-card h4 {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timezone-card p {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

/* Character Build Page Styles */
.character-selector {
    text-align: center;
    margin-bottom: 3rem;
}

.character-selector h2 {
    color: #ff6b6b;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.character-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.character-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.character-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.character-btn:hover::before {
    left: 100%;
}

.character-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

.character-btn.active {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transform: translateY(-3px);
}

.character-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.character-role {
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
}

.build-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
    margin-top: 2rem;
}

.build-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.tab-btn.active {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.build-content {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

.build-image-container,
.tree-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.build-image,
.tree-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
}

.build-image:hover,
.tree-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

.build-info,
.tree-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.build-info h3,
.tree-info h3 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.build-info p,
.tree-info p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.build-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.stat-label {
    color: #ff6b6b;
    font-weight: bold;
}

.stat-value {
    color: #ffffff;
    font-weight: bold;
}

.tree-tips {
    margin-top: 1.5rem;
}

.tree-tips h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tree-tips ul {
    list-style: none;
    padding: 0;
}

.tree-tips li {
    color: #cccccc;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    position: relative;
    padding-left: 2rem;
}

.tree-tips li:before {
    content: '▶';
    color: #ff6b6b;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.tree-tips li:last-child {
    border-bottom: none;
}

/* Palace Maps Styles - Dark Theme */
.palace-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.palace-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 30px 30px;
    animation: float 25s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.palace-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.palace-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.palace-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #e0e0e0;
}

.palace-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    color: #e0e0e0;
}

.credit-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-top: 2px solid rgba(255, 107, 107, 0.3);
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
}

.credit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.credit-icon {
    font-size: 2rem;
    color: #ff6b6b;
}

.credit-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #ff6b6b;
}

.credit-content p {
    margin: 0;
    opacity: 0.9;
    color: #e0e0e0;
}

.credit-content a {
    color: #ffa726;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.credit-content a:hover {
    color: #ff6b6b;
}

.palace-navigation {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.nav-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tab {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    color: #e0e0e0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover, .nav-tab.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.palace-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.palace-intro {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.palace-intro h2 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.palace-intro p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.maps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.map-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-color: rgba(255, 107, 107, 0.5);
}

.map-preview {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.map-item:hover .map-preview img {
    transform: scale(1.1);
    filter: brightness(1);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 167, 38, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-item:hover .map-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.zoom-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.overlay-content span {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.map-info {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.map-info h3 {
    font-size: 1.4rem;
    color: #ff6b6b;
    margin-bottom: 0.8rem;
}

.map-info p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.map-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tips-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tips-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tip-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.tip-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 107, 107, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.modal-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.modal-image-container {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.1s ease;
}

.modal-image:active {
    cursor: grabbing;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .palace-hero-title {
        font-size: 2.5rem;
    }
    
    .palace-hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-tab {
        padding: 0.8rem 1.5rem;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .map-preview {
        height: 200px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-section {
        padding: 2rem 1rem;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95%;
    }
    
    .modal-image-container {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .palace-hero {
        padding: 2rem 0;
    }
    
    .palace-hero-title {
        font-size: 2rem;
    }
    
    .palace-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .palace-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .credit-container {
        flex-direction: column;
        text-align: center;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-info {
        padding: 1rem;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
