/* === PANDAGOTCHI - RESPONSIVE SIDEBAR LAYOUT === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-dark: #2d5016;
    --forest-medium: #3d6b1e;
    --forest-light: #4a7c28;
    --bamboo-green: #6aa84f;
    --bamboo-light: #8bc34a;
    --cream: #fef9e7;
    --border-dark: #1b5e20;
    --sidebar-width: 280px;
    --header-height: 60px;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Bradley Hand', cursive, sans-serif;
    background: var(--forest-dark);
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(0,0,0,.1) 35px, rgba(0,0,0,.1) 40px),
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(0,0,0,.05) 35px, rgba(0,0,0,.05) 40px);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* === MOBILE HEADER (shown on mobile only) === */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--forest-dark);
    border-bottom: 3px solid var(--bamboo-green);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-header h1 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.menu-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    display: block;
    transition: 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-resources {
    display: flex;
    gap: 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

.resource-compact {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === GAME LAYOUT === */
.game-layout {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--forest-medium) 0%, var(--forest-dark) 100%);
    border-right: 3px solid var(--bamboo-green);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--bamboo-green);
    border-radius: 4px;
}

.sidebar-header {
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--bamboo-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h2 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

/* === SIDEBAR SECTIONS === */
.sidebar-section {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: var(--bamboo-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* === RESOURCES === */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.resource-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.resource-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--bamboo-light);
}

.resource-icon {
    font-size: 1.1rem;
}

.resource-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.resource-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
}

.resource-production {
    font-size: 0.65rem;
    color: var(--bamboo-light);
    font-weight: normal;
}

/* Buildings Summary in Sidebar */
.buildings-summary {
    margin-top: 10px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 0;
    font-size: 0.75rem;
}

.summary-item span:last-child {
    font-weight: bold;
    color: var(--bamboo-light);
}

/* === SANCTUARY INFO === */
.sanctuary-info-sidebar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 4px 0;
    font-size: 0.8rem;
}

.progress-bar-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bamboo-green), var(--bamboo-light));
    transition: width 0.3s;
    width: 45%;
}

/* === NAVIGATION MENU === */
.sidebar-nav {
    padding: 8px 10px;
}

.nav-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 0.85rem;
    text-align: left;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--bamboo-light);
    transform: translateX(3px);
}

.nav-btn:active {
    transform: translateX(3px) scale(0.98);
}

.nav-icon {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.nav-label {
    flex: 1;
}

/* === MAIN CONTENT === */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    min-height: 100vh;
    background: var(--forest-dark);
}

/* === PANDA DISPLAY === */
.panda-display {
    background: linear-gradient(135deg, var(--cream) 0%, #f5f5dc 100%);
    border: 6px solid var(--border-dark);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-display {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.panda-level-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.panda-level-badge span:first-child {
    font-size: 0.7rem;
}

.panda-level-badge span:last-child {
    font-size: 1.2rem;
}

.panda-container {
    font-size: 8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.panda-container .panda {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panda-container .panda svg {
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 200px;
}

.panda-container .panda.sleeping {
    animation: sleep 2s ease-in-out infinite;
}

@keyframes sleep {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.panda-name-tag {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest-dark);
    color: #fff;
    padding: 8px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* === XP SECTION === */
.xp-section {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--bamboo-green);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
}

.xp-label {
    color: var(--bamboo-light);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.xp-bar-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 8px;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s;
    width: 0%;
}

.xp-text {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

/* === STATS PANEL === */
.stats-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--bamboo-green);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.stat-bar:last-child {
    margin-bottom: 0;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}

.stat-icon {
    font-size: 1.3rem;
}

.stat-bar-container {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 18px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    transition: width 0.3s;
    width: 100%;
}

.hunger-bar { background: linear-gradient(90deg, #FF9800, #FFC107); }
.happiness-bar { background: linear-gradient(90deg, #E91E63, #F06292); }
.energy-bar { background: linear-gradient(90deg, #2196F3, #64B5F6); }
.cleanliness-bar { background: linear-gradient(90deg, #4CAF50, #81C784); }

.stat-value {
    min-width: 40px;
    text-align: right;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
}

/* Stat Warning States */
.stat-warning {
    animation: pulse-warning 2s ease-in-out infinite;
}

.stat-critical {
    animation: pulse-critical 1.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes pulse-critical {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 6px rgba(255, 82, 82, 0);
    }
}

.stat-warning .stat-icon,
.stat-critical .stat-icon {
    filter: drop-shadow(0 0 3px rgba(255, 152, 0, 0.8));
}

.stat-critical .stat-value {
    color: #ff5252;
}

/* === ACTION BUTTONS === */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    background: linear-gradient(135deg, var(--bamboo-green), var(--bamboo-light));
    border: 3px solid #fff;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.action-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 2rem;
}

.btn-label {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* === PANDAS SECTION === */
.pandas-section {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid var(--bamboo-green);
    border-radius: 15px;
    padding: 20px;
}

.section-heading {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.pandas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.panda-slot {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.panda-slot:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--bamboo-light);
    transform: translateY(-3px);
}

.panda-slot.active {
    background: rgba(139, 195, 74, 0.3);
    border-color: var(--bamboo-light);
    border-width: 4px;
}

.panda-slot .slot-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.panda-slot .slot-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.panda-slot .slot-level {
    color: var(--bamboo-light);
    font-size: 0.8rem;
}

.add-panda-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed var(--bamboo-light);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
}

.add-panda-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-style: solid;
}

/* === SIDEBAR OVERLAY (for mobile) === */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
}

/* === RESPONSIVE DESIGN === */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }

    .main-content {
        padding: 20px;
    }

    .panda-display {
        padding: 30px;
        min-height: 300px;
    }

    .panda-container {
        font-size: 6rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .main-content {
        margin-left: 0;
        margin-top: var(--header-height);
        padding: 15px;
    }

    .panda-display {
        padding: 20px;
        min-height: 250px;
    }

    .panda-container {
        font-size: 5rem;
    }

    .action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .btn-label {
        font-size: 0.75rem;
    }

    .stats-panel {
        padding: 15px;
    }

    .stat-label {
        min-width: 90px;
        font-size: 0.85rem;
    }

    .pandas-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .panda-display {
        padding: 15px;
        min-height: 220px;
    }

    .panda-container {
        font-size: 4rem;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-icon {
        font-size: 1.5rem;
    }

    .pandas-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
    border: 2px solid var(--bamboo-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .toast {
        bottom: 80px;
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

/* === MODALS === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, var(--forest-medium), var(--forest-dark));
    border: 4px solid var(--bamboo-green);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-bottom: 2px solid var(--bamboo-green);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

/* Modal Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.food-item,
.toy-item,
.minigame-item {
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.food-item:hover,
.toy-item:hover,
.minigame-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--bamboo-light);
    transform: translateY(-5px);
}

.item-icon {
    font-size: 3rem;
}

.item-name {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}

.item-cost {
    color: var(--bamboo-light);
    font-size: 0.9rem;
}

.item-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Buildings Modal */
.building-section {
    margin-bottom: 30px;
}

.building-section h3 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.building-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Buildings Display (Current Buildings) */
.buildings-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.buildings-display .building-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    background: linear-gradient(135deg, rgba(107, 153, 117, 0.2) 0%, rgba(74, 124, 89, 0.2) 100%);
    border-color: var(--bamboo-green);
}

.buildings-display .building-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.buildings-display .building-name {
    font-weight: bold;
    color: var(--bamboo-light);
    margin-bottom: 4px;
}

.buildings-display .building-stats {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-buildings {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    padding: 15px;
}

.building-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.building-icon {
    font-size: 2rem;
}

.building-name {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
}

.building-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.build-btn {
    background: linear-gradient(135deg, var(--bamboo-green), var(--bamboo-light));
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.build-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.build-btn:active {
    transform: translateY(0);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--bamboo-light);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--bamboo-light);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-btn {
    width: 100%;
    padding: 15px;
    border: 3px solid #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bamboo-green), var(--bamboo-light));
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.modal-btn:active {
    transform: translateY(0);
}

.modal-btn.btn-danger {
    background: linear-gradient(135deg, #d32f2f, #f44336);
}

/* Exploration Grid */
#exploration-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.exploration-tile {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.2s;
}

.exploration-tile:hover:not(.explored) {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--bamboo-light);
    transform: scale(1.05);
}

.exploration-tile.explored {
    opacity: 0.5;
    cursor: default;
}

/* Minigame Areas */
#game-area,
#bubble-area {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid var(--bamboo-green);
    border-radius: 12px;
    min-height: 400px;
    position: relative;
    margin-bottom: 15px;
}

#game-score,
#bubble-score {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Falling Bamboo Animation */
.falling-bamboo {
    position: absolute;
    top: -40px;
    font-size: 32px;
    cursor: pointer;
    animation: fall 3s linear;
    user-select: none;
}

@keyframes fall {
    from {
        top: -40px;
    }
    to {
        top: 100%;
    }
}

/* Bubble Animation */
.bubble {
    position: absolute;
    font-size: 40px;
    cursor: pointer;
    animation: bubble-float 2.5s ease-in-out infinite;
    transition: all 0.2s ease;
    user-select: none;
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* === ACHIEVEMENTS === */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    background: linear-gradient(135deg, rgba(107, 153, 117, 0.3) 0%, rgba(74, 124, 89, 0.2) 100%);
    border-color: var(--bamboo-green);
    box-shadow: 0 0 15px rgba(107, 153, 117, 0.3);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.7);
}

.achievement-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.achievement-name {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
    text-align: center;
}

.achievement-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-align: center;
}

.achievement-reward {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--bamboo-light);
    text-align: center;
}

.achievement-card.unlocked::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bamboo-green);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* === QUESTS === */
.quest-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.quest-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.quest-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.quest-tab.active {
    background: var(--bamboo-green);
    border-color: var(--bamboo-light);
    color: #fff;
}

.quests-container {
    max-height: 450px;
    overflow-y: auto;
    padding: 10px;
}

.quest-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.quest-card:hover {
    border-color: var(--bamboo-light);
    transform: translateX(5px);
}

.quest-card.completed {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(107, 153, 117, 0.2) 0%, rgba(74, 124, 89, 0.1) 100%);
    border-color: var(--bamboo-green);
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.quest-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quest-icon {
    font-size: 1.8rem;
}

.quest-name {
    color: var(--bamboo-light);
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.quest-type {
    background: rgba(0, 0, 0, 0.3);
    color: var(--bamboo-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.quest-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.quest-progress {
    margin-bottom: 15px;
}

.quest-progress-text {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-bar-quest {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-fill-quest {
    background: linear-gradient(90deg, var(--bamboo-green), var(--bamboo-light));
    height: 100%;
    transition: width 0.3s;
    border-radius: 10px;
}

.quest-rewards {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}

.quest-rewards h4 {
    color: var(--bamboo-light);
    margin: 0 0 8px 0;
    font-size: 0.85rem;
}

.reward-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reward-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: #fff;
    font-size: 0.85rem;
}

.claim-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.claim-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.accept-btn {
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--bamboo-light) 100%);
}

.empty-quests {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 20px;
    font-size: 1.1rem;
}

/* === CRAFTING === */
.crafting-recipes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.recipe-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.recipe-card:hover {
    border-color: var(--bamboo-light);
    box-shadow: 0 5px 20px rgba(107, 153, 117, 0.3);
}

.recipe-card.locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.recipe-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.recipe-icon {
    font-size: 3rem;
}

.recipe-info h3 {
    color: var(--bamboo-light);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.recipe-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.recipe-requirements {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
}

.recipe-requirements h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

.requirement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.requirement-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #fff;
}

.requirement-item.has {
    border-color: var(--bamboo-green);
    background: rgba(107, 153, 117, 0.2);
}

.requirement-item.missing {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.craft-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--bamboo-green) 0%, var(--bamboo-light) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.craft-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 153, 117, 0.5);
}

.craft-btn:active:not(:disabled) {
    transform: translateY(0);
}

.craft-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.crafting-animation {
    animation: craft-pulse 0.6s ease-out;
}

@keyframes craft-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === INVENTORY === */
.inventory-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.inv-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.inv-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.inv-tab.active {
    background: var(--bamboo-green);
    border-color: var(--bamboo-light);
    color: #fff;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.inventory-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.inventory-item:hover {
    transform: translateY(-5px);
    border-color: var(--bamboo-light);
    box-shadow: 0 5px 20px rgba(107, 153, 117, 0.3);
}

.item-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.item-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.item-quantity {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--bamboo-light);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.item-rarity {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.item-rarity.common { color: #aaa; }
.item-rarity.uncommon { color: #5cb85c; }
.item-rarity.rare { color: #5bc0de; }
.item-rarity.epic { color: #9b59b6; }
.item-rarity.legendary { color: #f39c12; }

.empty-inventory {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 60px 20px;
    font-size: 1.1rem;
}

/* === LUCKY WHEEL === */
.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.wheel-pointer {
    font-size: 3rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: pointer-pulse 1s ease-in-out infinite;
    margin-bottom: -20px;
    z-index: 10;
}

@keyframes pointer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.wheel {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    position: relative;
    border: 8px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: conic-gradient(
        from 0deg,
        #FFD700 0deg 45deg,
        #6B9975 45deg 90deg,
        #FFA500 90deg 135deg,
        #8B4513 135deg 180deg,
        #FF6B6B 180deg 225deg,
        #808080 225deg 270deg,
        #9B59B6 270deg 315deg,
        #4A7C59 315deg 360deg
    );
}

.wheel.spinning {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fff 0%, #f0f0f0 100%);
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-120px);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    pointer-events: none;
    line-height: 1.2;
}

.spin-button {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.spin-button:active:not(:disabled) {
    transform: scale(0.95);
}

.spin-button:disabled {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.wheel-result {
    text-align: center;
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 40px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.wheel-cooldown {
    text-align: center;
    color: var(--bamboo-light);
    font-size: 0.95rem;
    min-height: 30px;
}

/* === DAILY REWARDS SYSTEM === */
.daily-header {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 25px;
}

.daily-stat {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.3) 0%, rgba(107, 153, 117, 0.3) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 12px;
    text-align: center;
}

.daily-stat-label {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 8px;
}

.daily-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--bamboo-light);
    text-shadow: 0 2px 10px rgba(139, 195, 143, 0.5);
}

.daily-timer {
    text-align: center;
    font-size: 1.1rem;
    color: var(--bamboo-light);
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    font-weight: bold;
}

.next-reward {
    text-align: center;
    margin-bottom: 20px;
}

.next-reward h3 {
    color: var(--bamboo-light);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.next-reward-preview {
    font-size: 1.5rem;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 2px solid #FFD700;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
}

.claim-daily-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.4);
}

.claim-daily-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.6);
}

.claim-daily-btn:active:not(:disabled) {
    transform: translateY(0);
}

.claim-daily-btn:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.claim-daily-btn.ready {
    animation: pulse-reward 2s ease-in-out infinite;
}

@keyframes pulse-reward {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 195, 143, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(139, 195, 143, 0.8);
    }
}

.claim-daily-btn.claimed-animation {
    animation: claim-success 1s ease;
}

@keyframes claim-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    }
    100% {
        transform: scale(1);
    }
}

.calendar-section {
    margin-top: 30px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bbb;
    font-size: 0.9rem;
}

.legend-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #555;
}

.legend-box.claimed {
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    border-color: var(--bamboo-light);
}

.legend-box.next {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    animation: pulse-next 1.5s ease-in-out infinite;
}

.legend-box.milestone {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    border-color: #9B59B6;
}

@keyframes pulse-next {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.daily-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.calendar-day {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid #555;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.calendar-day.claimed {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.5) 0%, rgba(107, 153, 117, 0.5) 100%);
    border-color: var(--bamboo-light);
}

.calendar-day.next {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.3) 100%);
    border: 3px solid #FFD700;
    animation: pulse-next-day 2s ease-in-out infinite;
}

@keyframes pulse-next-day {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.calendar-day.milestone {
    border-color: #9B59B6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(142, 68, 173, 0.3) 100%);
}

.calendar-day.milestone.claimed {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.6) 0%, rgba(142, 68, 173, 0.6) 100%);
    border-color: #9B59B6;
}

.calendar-day-number {
    font-size: 1rem;
    font-weight: bold;
    color: var(--bamboo-light);
    margin-bottom: 10px;
}

.calendar-day-reward {
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.5;
}

/* === ACCESSORIES SYSTEM === */
.accessories-header {
    text-align: center;
    margin-bottom: 25px;
}

.accessories-stat {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.3) 0%, rgba(107, 153, 117, 0.3) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 12px;
}

.stat-label {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--bamboo-light);
}

.accessory-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.accessory-tab {
    padding: 10px 20px;
    border: 2px solid #555;
    background: rgba(40, 40, 40, 0.8);
    color: #bbb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.accessory-tab:hover {
    border-color: var(--bamboo-light);
    color: var(--bamboo-light);
    transform: translateY(-2px);
}

.accessory-tab.active {
    background: var(--bamboo-green);
    border-color: var(--bamboo-light);
    color: white;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.accessory-card {
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid #555;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.accessory-card.owned {
    border-color: var(--bamboo-light);
}

.accessory-card.equipped {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.4) 0%, rgba(107, 153, 117, 0.4) 100%);
    border-color: var(--bamboo-light);
    box-shadow: 0 0 15px rgba(139, 195, 143, 0.4);
}

.accessory-card.locked {
    opacity: 0.6;
}

.accessory-icon {
    font-size: 3rem;
    margin-bottom: 5px;
}

.accessory-info {
    flex: 1;
}

.accessory-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.accessory-rarity {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.rarity-common {
    color: #b8b8b8;
}

.rarity-uncommon {
    color: #5cb85c;
}

.rarity-rare {
    color: #5bc0de;
}

.rarity-epic {
    color: #9b59b6;
}

.rarity-legendary {
    color: #f0ad4e;
    animation: shimmer 2s ease-in-out infinite;
}

.rarity-seasonal {
    color: #ff6b6b;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.accessory-cost {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 5px 0;
    font-size: 0.9rem;
}

.cost-item {
    color: #ddd;
}

.accessory-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.buy-btn {
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    color: white;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.5);
}

.equip-btn {
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: white;
}

.equip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 184, 92, 0.5);
}

.equipped-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    cursor: default;
}

.locked-btn {
    background: #444;
    color: #888;
    cursor: not-allowed;
    font-size: 0.8rem;
}

.accessory-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Panda accessories display */
.panda-accessories {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.panda-accessories span {
    position: absolute;
    font-size: 1.5rem;
}

.acc-hat {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.acc-glasses {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.acc-outfit {
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.acc-accessory {
    bottom: 10px;
    right: 10px;
}

/* === PANDA JOBS SYSTEM === */
.jobs-header {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 25px;
}

.job-stat {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.3) 0%, rgba(107, 153, 117, 0.3) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 12px;
    text-align: center;
}

.job-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.job-tab {
    padding: 8px 16px;
    border: 2px solid #555;
    background: rgba(40, 40, 40, 0.8);
    color: #bbb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.job-tab:hover {
    border-color: var(--bamboo-light);
    color: var(--bamboo-light);
}

.job-tab.active {
    background: var(--bamboo-green);
    border-color: var(--bamboo-light);
    color: white;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.job-card {
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid #555;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--bamboo-light);
}

.job-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.job-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.job-info {
    flex: 1;
}

.job-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.job-duration, .job-energy {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 3px;
}

.job-requirements {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.requirement {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
}

.requirement.met {
    background: rgba(92, 184, 92, 0.3);
    color: #5cb85c;
}

.requirement.unmet {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.job-rewards {
    margin-bottom: 15px;
}

.job-rewards h4 {
    color: var(--bamboo-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rewards-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reward {
    padding: 5px 10px;
    background: rgba(74, 124, 89, 0.3);
    border: 1px solid var(--bamboo-light);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ddd;
}

.job-progress {
    margin-bottom: 10px;
}

.progress-text {
    text-align: center;
    color: var(--bamboo-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.progress-bar-job {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill-job {
    height: 100%;
    background: linear-gradient(90deg, var(--bamboo-green) 0%, var(--bamboo-light) 100%);
    transition: width 1s linear;
    border-radius: 10px;
}

.job-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn {
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    color: white;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.6);
}

.complete-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    cursor: default;
}

.job-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

/* === BREEDING SYSTEM === */
.breeding-header {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 25px;
}

.breeding-stat {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.3) 0%, rgba(107, 153, 117, 0.3) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 12px;
    text-align: center;
}

.breeding-info {
    background: rgba(40, 40, 40, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.breeding-info h3 {
    color: var(--bamboo-light);
    margin-bottom: 10px;
}

.breeding-info p {
    color: #ccc;
    margin: 5px 0;
    font-size: 0.95rem;
}

.parent-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.parent-select-group {
    flex: 1;
    max-width: 300px;
}

.parent-select-group label {
    display: block;
    color: var(--bamboo-light);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

.parent-select {
    width: 100%;
    padding: 12px;
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid #555;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.parent-select:hover {
    border-color: var(--bamboo-light);
}

.parent-select:focus {
    outline: none;
    border-color: var(--bamboo-light);
    box-shadow: 0 0 10px rgba(139, 195, 143, 0.3);
}

.parent-select option:disabled {
    color: #666;
}

.breeding-icon {
    font-size: 3rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.breed-start-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b9d 0%, #feca57 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.breed-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.breed-start-btn:active {
    transform: translateY(0);
}

.pregnancies-section {
    margin-top: 30px;
}

.pregnancies-section h3 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    text-align: center;
}

.pregnancies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.no-pregnancies {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
    grid-column: 1 / -1;
}

.pregnancy-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(254, 202, 87, 0.2) 100%);
    border: 2px solid #ff6b9d;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pregnancy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.pregnancy-header h3 {
    color: #ff6b9d;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.pregnancy-info {
    margin-bottom: 15px;
}

.pregnancy-info p {
    color: #ddd;
    margin: 5px 0;
    font-size: 0.95rem;
}

.time-left {
    color: #feca57;
    font-weight: bold;
}

.progress-bar-breeding {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill-breeding {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d 0%, #feca57 100%);
    transition: width 1s linear;
    border-radius: 10px;
}

.birth-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-birth 1.5s ease-in-out infinite;
}

@keyframes pulse-birth {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(74, 124, 89, 0);
    }
}

.birth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.6);
}

/* === SHOWS SYSTEM === */
.shows-header {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.show-stat {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.3) 0%, rgba(107, 153, 117, 0.3) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 12px;
    text-align: center;
}

.current-show-section {
    margin-bottom: 30px;
}

.current-show-section h3 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    text-align: center;
}

.no-show {
    text-align: center;
    color: #888;
    padding: 30px;
    font-style: italic;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 10px;
}

.current-show-card {
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
    border: 2px solid #feca57;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.current-show-card h3 {
    color: #feca57;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.current-show-card p {
    color: #ddd;
    margin: 8px 0;
}

.progress-bar-show {
    width: 100%;
    height: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill-show {
    height: 100%;
    background: linear-gradient(90deg, #feca57 0%, #ff6b9d 100%);
    transition: width 1s linear;
    border-radius: 12px;
}

.end-show-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: #555;
    color: #888;
    cursor: not-allowed;
    margin-top: 10px;
}

.end-show-btn.ready {
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    color: white;
    cursor: pointer;
    animation: pulse-reward 1.5s ease-in-out infinite;
}

.end-show-btn.ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.6);
}

.shows-section {
    margin-top: 30px;
}

.shows-section h3 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    text-align: center;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.show-card {
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid #555;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.show-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--bamboo-light);
}

.show-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.show-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.show-info h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
}

.show-duration {
    font-size: 0.85rem;
    color: #bbb;
}

.show-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.show-rewards {
    background: rgba(74, 124, 89, 0.2);
    border: 1px solid var(--bamboo-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.show-rewards h4 {
    color: var(--bamboo-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.reward-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #feca57;
    margin-bottom: 5px;
}

.bonus-text {
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
}

.show-start-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #feca57 0%, #ff6b9d 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-start-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.6);
}

.show-start-btn.disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

/* === PHOTO MODE SYSTEM === */
.photo-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.photo-stat {
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.3) 0%, rgba(107, 153, 117, 0.3) 100%);
    border: 2px solid var(--bamboo-light);
    border-radius: 12px;
    text-align: center;
}

.photo-studio {
    margin-bottom: 30px;
}

.photo-studio h3 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    text-align: center;
}

.photo-studio-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-preview {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.photo-preview.camera-flash {
    animation: flash 0.3s ease;
}

@keyframes flash {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(3);
    }
}

.photo-preview-card {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.panda-snapshot {
    position: relative;
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.panda-emoji {
    font-size: 8rem;
    margin-bottom: 20px;
}

.panda-info-overlay {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.panda-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.panda-level {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Frame styles */
.frame-none {
    border: none;
}

.frame-bamboo {
    border: 8px solid #4A7C59;
    box-shadow: inset 0 0 0 2px #6B9975;
}

.frame-gold {
    border: 10px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 0 2px #FFA500;
}

.frame-rainbow {
    border: 8px solid;
    border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.frame-hearts {
    border: 8px solid #ff6b9d;
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.5), inset 0 0 0 2px #feca57;
}

.frame-stars {
    border: 8px solid #feca57;
    box-shadow: 0 0 15px rgba(254, 202, 87, 0.5), inset 0 0 0 2px #ff6b9d;
}

.take-photo-btn {
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.take-photo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.take-photo-btn.photo-taken {
    animation: photo-snap 0.5s ease;
}

@keyframes photo-snap {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    }
}

.frame-selection {
    flex: 1;
}

.frame-selection h4 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
}

.frame-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.frame-btn {
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid #555;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: white;
}

.frame-btn:hover {
    border-color: var(--bamboo-light);
    transform: translateY(-2px);
}

.frame-btn.active {
    border-color: var(--bamboo-light);
    background: rgba(74, 124, 89, 0.3);
    box-shadow: 0 0 15px rgba(139, 195, 143, 0.4);
}

.frame-preview {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    border-radius: 8px;
    margin: 0 auto 8px;
}

.gallery-section {
    margin-top: 30px;
}

.gallery-section h3 {
    color: var(--bamboo-light);
    margin-bottom: 15px;
    text-align: center;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.no-photos {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
    grid-column: 1 / -1;
}

.photo-card {
    background: rgba(40, 40, 40, 0.9);
    border: 2px solid #555;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--bamboo-light);
}

.photo-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.panda-snapshot-small {
    background: linear-gradient(135deg, #4A7C59 0%, #6B9975 100%);
    padding: 20px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panda-emoji-small {
    font-size: 4rem;
}

.photo-info {
    text-align: center;
}

.photo-panda-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.photo-details {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 3px;
}

.photo-date {
    font-size: 0.8rem;
    color: #888;
}

.delete-photo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.8);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.delete-photo-btn:hover {
    background: rgba(255, 107, 107, 1);
    transform: scale(1.1);
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: auto;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .building-item {
        flex-direction: column;
        text-align: center;
    }

    .build-btn {
        width: 100%;
    }

    #exploration-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #exploration-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   PARTICLE EFFECTS
   ========================================== */

.particle {
    position: fixed;
    pointer-events: none;
    user-select: none;
    z-index: 10000;
    font-size: 24px;
    will-change: transform, opacity;
}

.floating-text {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(0.8);
        opacity: 0;
    }
}

/* Camera flash effect */
.camera-flash {
    animation: flash 0.3s ease-out;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; background: white; }
}

/* Photo taken button feedback */
.photo-taken {
    animation: photoClick 0.5s ease;
}

@keyframes photoClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

/* Button press animation */
.btn-pressed {
    animation: btnPress 0.2s ease;
}

@keyframes btnPress {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 1s ease-in-out infinite;
}

/* Glow animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--bamboo-light);
    }
    50% {
        box-shadow: 0 0 20px var(--bamboo-light), 0 0 30px var(--bamboo-light);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.3s ease;
}

/* Success bounce */
@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.success-bounce {
    animation: successBounce 0.4s ease;
}

/* ==========================================
   NOTIFICATION BADGES
   ========================================== */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff3838 0%, #ff6b6b 100%);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--dark-bg);
    box-shadow: 0 2px 8px rgba(255, 56, 56, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 56, 56, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(255, 56, 56, 0.8);
    }
}

.notification-badge.green {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
}

@keyframes badgePulseGreen {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(34, 197, 94, 0.8);
    }
}

.notification-badge.green {
    animation: badgePulseGreen 2s ease-in-out infinite;
}

/* Badge container for relative positioning */
.badge-container {
    position: relative;
    display: inline-block;
}

/* ==========================================
   STAT WARNING INDICATORS
   ========================================== */

.stat-warning .stat-bar-container {
    animation: warningPulse 2s ease-in-out infinite;
    border: 2px solid #ff9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.stat-critical .stat-bar-container {
    animation: criticalPulse 1s ease-in-out infinite;
    border: 2px solid #f44336;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
        border-color: #ff9800;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 152, 0, 0.6);
        border-color: #ffb74d;
    }
}

@keyframes criticalPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
        border-color: #f44336;
    }
    50% {
        box-shadow: 0 0 25px rgba(244, 67, 54, 0.8);
        border-color: #ff5252;
    }
}

/* Warning icons for critical stats */
.stat-warning .stat-label::after,
.stat-critical .stat-label::after {
    content: ' ⚠️';
    font-size: 0.9em;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Quick Features */
.quick-features { margin: 20px 0; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.quick-btn {
    border: 3px solid #000;
    background: #fff;
    padding: 10px 12px;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 0 #000;
}
.quick-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
/* Feature Dock: horizontal, mobile-friendly */
.feature-dock {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 10px;
    background: #f6f7f9;
    border-bottom: 2px solid #000;
}
.feature-dock::-webkit-scrollbar { height: 8px; }
.feature-dock::-webkit-scrollbar-thumb { background: #bbb; border-radius: 4px; }
.feature-chip {
    white-space: nowrap;
    border: 2px solid #000;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
    box-shadow: 0 3px 0 #000;
}
.feature-chip:active { transform: translateY(1px); box-shadow: 0 2px 0 #000; }
@media (min-width: 1024px) { .feature-dock { position: sticky; top: 0; z-index: 10; } }

/* Demo banner */
.demo-banner { background: #fff8c5; border-bottom: 2px solid #000; }
.demo-banner-content { max-width: 1000px; margin: 0 auto; padding: 8px 12px; display: flex; gap: 12px; align-items: center; }
.demo-badge { background: #ffec3d; border: 2px solid #000; border-radius: 6px; padding: 2px 6px; font-weight: 900; }
.demo-action { margin-left: auto; border: 2px solid #000; background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 800; }

/* Hide all top navigation - use sidebar only for cleaner UI */
.feature-dock { display: none !important; }
.quick-features { display: none !important; }
.demo-banner { display: none !important; }
body .mobile-header { padding-top: 0 !important; margin-top: 0 !important; }
.mobile-header .mobile-resources { display: none !important; }

/* Sidebar accordion styles */
.nav-accordion { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.nav-accordion details { border: 2px solid #000; background: #fff; border-radius: 12px; overflow: hidden; }
.nav-accordion summary { cursor: pointer; padding: 8px 12px; font-weight: 900; list-style: none; background: #eee; border-bottom: 2px solid #000; }
.nav-accordion summary::-webkit-details-marker { display: none; }
.nav-accordion .group-content { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #fff; }
.nav-accordion .nav-btn { width: 100%; }

/* Hide legacy icon spans that carry mojibake; replace with emoji via ::before */
.nav-icon, .stat-icon, .item-icon, .building-icon, .resource-icon, .btn-icon { display: none !important; }

/* Action button emojis */
#feed-btn::before { content: '🍽️ '; }
#play-btn::before { content: '🎮 '; }
#clean-btn::before { content: '🧼 '; }
#rest-btn::before { content: '🛌 '; }
#explore-btn::before { content: '🗺️ '; }

/* Resource emojis before amounts */
#coin-amount::before { content: '🪙 '; }
#bamboo-amount::before { content: '🎋 '; }
#wood-amount::before { content: '🪵 '; }
#stone-amount::before { content: '🪨 '; }

/* Sidebar menu emojis (icons via ::before) */
#minigames-btn::before { content: '🎮 '; }
#crafting-btn::before { content: '🛠️ '; }
#inventory-btn::before { content: '🎒 '; }
#accessories-btn::before { content: '👒 '; }
#jobs-btn::before { content: '🧰 '; }
#breeding-btn::before { content: '🐼🐼 '; }
#shows-btn::before { content: '🎪 '; }
#quests-btn::before { content: '🗺️ '; }
#achievements-btn::before { content: '🏆 '; }
#daily-reward-btn::before { content: '🎁 '; }
#wheel-btn::before { content: '🎡 '; }
#photo-btn::before { content: '📷 '; }
#buildings-btn::before { content: '🏗️ '; }

/* =========================================
   GUI OVERHAUL - Better Readability & Layout
   ========================================= */

/* Improve sidebar text readability - larger fonts and better contrast */
.sidebar .section-title {
    font-size: 0.9rem !important;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.sidebar .resource-label {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.95) !important;
}

.sidebar .resource-value {
    font-size: 1rem !important;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sidebar .info-row {
    font-size: 0.9rem !important;
    color: #fff !important;
}

.sidebar .nav-btn {
    font-size: 0.95rem !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sidebar .summary-item {
    font-size: 0.85rem !important;
    color: #fff !important;
}

/* Fix layout - remove fixed heights, use natural flow */
.game-layout {
    min-height: auto !important;
    height: auto !important;
}

.sidebar {
    height: auto !important;
    min-height: 100vh;
    position: relative !important;
}

.main-content {
    min-height: auto !important;
    height: auto !important;
}

/* Fix modal positioning - always center on screen */
.modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.85) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    padding: 20px;
}

.modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative !important;
    margin: auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        transform: translateX(-100%);
        height: 100vh !important;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .mobile-header {
        display: flex !important;
    }
}
