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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background: #0a0e27;
    padding: 0;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.98), rgba(10, 10, 30, 0.98));
    backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    border-top: 3px solid rgba(138, 43, 226, 0.6);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consent-content {
    max-width: 1000px;
    margin: 0 auto;
}

.consent-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-align: center;
}

.consent-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
}

.consent-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.consent-category {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
}

.consent-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.consent-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8a2be2;
}

.consent-checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.consent-category-title {
    font-weight: bold;
    color: #ffffff;
    font-size: 1rem;
}

.consent-category-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 8px;
    line-height: 1.4;
}

.consent-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.consent-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consent-accept {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.4);
}

.consent-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 222, 128, 0.5);
}

.consent-accept-selected {
    background: linear-gradient(135deg, #8a2be2 0%, #6a0dad 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.consent-accept-selected:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(138, 43, 226, 0.5);
}

.consent-reject {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.4);
}

.consent-reject:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(248, 113, 113, 0.5);
}

/* Tab Navigation */
.tab-navigation {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.theme-toggle-btn-global {
    position: absolute;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(138, 43, 226, 0.4);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.theme-toggle-btn-global:hover {
    transform: rotate(20deg) scale(1.1);
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
}

.theme-toggle-btn-global:active {
    transform: rotate(20deg) scale(0.95);
}

.tab-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.tab-btn.support-btn {
    background: linear-gradient(135deg, #FF5E5B 0%, #FF9A56 100%);
    border-color: #FF5E5B;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.tab-btn.support-btn:hover {
    background: linear-gradient(135deg, #FF9A56 0%, #FFD275 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 94, 91, 0.5);
}

/* Tab Content */
.tab-content {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: flex;
}

/* Games Section */
.games-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(138, 43, 226, 0.8);
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    gap: 40px;
    width: 100%;
    max-width: 900px;
    justify-content: center;
}

.game-card {
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(138, 43, 226, 0.6);
    border-radius: 25px;
    padding: 50px 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(40, 40, 80, 0.8);
    border-color: rgba(138, 43, 226, 0.9);
    box-shadow: 0 15px 50px rgba(138, 43, 226, 0.5);
}

.game-card-icon {
    font-size: 6rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 6px 15px rgba(138, 43, 226, 0.6));
    display: block;
}

.game-card-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.game-card-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Game Fullscreen View */
.game-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0e27;
    z-index: 100;
    overflow-y: auto;
    padding: 20px;
}

.game-fullscreen.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
}

.game-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
}

.game-back-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateX(-5px);
}

.audio-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
    transform: scale(1.1) rotate(15deg);
}

.audio-toggle-btn.muted {
    opacity: 0.5;
}

/* Main Layout */
@media (max-width: 1350px) {
    
    .tab-navigation {
        padding: 15px 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .games-title {
        font-size: 2rem;
    }
    
    .game-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card-icon {
        font-size: 4rem;
    }
    
    .game-fullscreen.active {
        padding-top: 70px;
    }
    
    .game-back-btn {
        top: 10px;
        left: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animierter Hintergrund */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -10%;
    right: -10%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Container & Card */
.container {
    position: relative;
    max-width: 550px;
    width: 95%;
    padding: 10px;
    flex: 1;
    min-width: 320px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 35px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.6s ease-out;
    width: 100%;
}

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

h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.time-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.time-input {
    flex: 1;
    padding: 14px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.05rem;
    background: white;
    cursor: text;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    min-width: 0;
    width: 100%;
}

.time-input:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.separator {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: bold;
    flex-shrink: 0;
    padding: 0 4px;
}

/* Buttons */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    padding: 13px 18px;
    border: none;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn:nth-child(3) {
    grid-column: 1 / -1;
}

.btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn-calculate:active {
    transform: translateY(-1px);
}

.btn-auto {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.btn-auto:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
}

.btn-auto:active {
    transform: translateY(-1px);
}

.btn-reset {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 87, 108, 0.4);
}

.btn-reset:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Result */
.result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #667eea30;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result.show {
    opacity: 1;
    animation: resultPulse 0.5s ease;
}

@keyframes resultPulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.result.positive {
    background: linear-gradient(135deg, #4facfe15 0%, #00f2fe15 100%);
    border-color: #4facfe;
    color: #0088cc;
}

.result.negative {
    background: linear-gradient(135deg, #f093fb15 0%, #f5576c15 100%);
    border-color: #f5576c;
    color: #cc0055;
}

/* Auto Result */
.auto-result {
    margin-top: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #4facfe15 0%, #00f2fe15 100%);
    border-radius: 15px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0088cc;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #4facfe;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 6px;
}

.auto-result.show {
    opacity: 1;
    animation: resultPulse 0.5s ease;
}

.auto-result .time-big {
    font-size: 1.4rem;
    font-weight: 700;
}

.auto-result .subtitle-text {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Info Card */
.info-card {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.info-content {
    flex: 1;
}

.info-card p {
    margin: 6px 0;
    color: #555;
    font-size: 0.9rem;
}

.info-card strong {
    color: #667eea;
}

.edit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.edit-btn:hover {
    transform: translateY(-3px) rotate(15deg);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.edit-btn:active {
    transform: translateY(-1px) rotate(5deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    background: none;
    -webkit-text-fill-color: white;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.settings-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.settings-input:hover {
    border-color: #667eea;
}

.settings-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    padding: 20px 30px 30px;
}

.modal-footer .btn {
    width: 100%;
}

/* ==================== WORDLE STYLES ==================== */

/* Wordle Container */
.wordle-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 5px;
    flex: 1 1 350px;
    min-width: 280px;
}

/* Calculator Container */
.calculator-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.wordle-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.6s ease-out 0.2s both;
}

.wordle-title {
    font-size: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 5px;
}

.wordle-date {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.wordle-board {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.wordle-row {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.wordle-tile {
    width: 50px;
    height: 50px;
    border: 2px solid #d3d6da;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: white;
}

.wordle-tile.filled {
    border-color: #878a8c;
    animation: pop 0.1s ease;
}

.wordle-tile.correct {
    background: #6aaa64;
    border-color: #6aaa64;
    color: white;
    animation: flip 0.5s ease;
}

.wordle-tile.present {
    background: #c9b458;
    border-color: #c9b458;
    color: white;
    animation: flip 0.5s ease;
}

.wordle-tile.absent {
    background: #787c7e;
    border-color: #787c7e;
    color: white;
    animation: flip 0.5s ease;
}

@keyframes pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes flip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

.wordle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.wordle-keyboard-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.wordle-key {
    min-width: 32px;
    height: 45px;
    padding: 0 8px;
    border: none;
    border-radius: 4px;
    background: #d3d6da;
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.wordle-key:hover {
    background: #bec1c4;
    transform: translateY(-2px);
}

.wordle-key:active {
    transform: translateY(0);
}

.wordle-key.wide {
    min-width: 55px;
    font-size: 0.75rem;
}

.wordle-key.correct {
    background: #6aaa64;
    color: white;
}

.wordle-key.present {
    background: #c9b458;
    color: white;
}

.wordle-key.absent {
    background: #787c7e;
    color: white;
}

.wordle-message {
    text-align: center;
    min-height: 30px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wordle-message.show {
    opacity: 1;
}

.wordle-message.success {
    background: linear-gradient(135deg, #6aaa6420 0%, #6aaa6420 100%);
    color: #6aaa64;
    border: 2px solid #6aaa64;
}

.wordle-message.error {
    background: linear-gradient(135deg, #f5576c20 0%, #f5576c20 100%);
    color: #f5576c;
    border: 2px solid #f5576c;
}

.wordle-message.info {
    background: linear-gradient(135deg, #4facfe20 0%, #00f2fe20 100%);
    color: #0088cc;
    border: 2px solid #4facfe;
}

.wordle-btn-small {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 8px 16px rgba(245, 87, 108, 0.3);
}

.wordle-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245, 87, 108, 0.4);
}

.wordle-btn-small:active {
    transform: translateY(0);
}

/* ==================== COOKIE CLICKER STYLES ==================== */

/* Cookie Clicker Fullscreen Layout */
.cookie-fullscreen-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.cookie-left-column,
.cookie-center-column,
.cookie-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding: 10px;
}

.cookie-left-column::-webkit-scrollbar,
.cookie-center-column::-webkit-scrollbar,
.cookie-right-column::-webkit-scrollbar {
    width: 8px;
}

.cookie-left-column::-webkit-scrollbar-thumb,
.cookie-center-column::-webkit-scrollbar-thumb,
.cookie-right-column::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 10px;
}

.cookie-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 20px;
}

.cookie-header {
    text-align: center;
    margin-bottom: 20px;
}

.cookie-title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(245, 175, 25, 0.8);
    margin-bottom: 20px;
}

.cookie-main-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(245, 175, 25, 0.4);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

.stat-card-wide {
    grid-column: 1 / -1;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-big-value {
    color: #f5af19;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(245, 175, 25, 0.6);
}

.cookie-clicker-area {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    min-height: 300px;
}

.big-cookie {
    font-size: 14rem;
    border: none;
    background: radial-gradient(circle at 30% 30%, #ffd57a 0%, #f5af19 40%, #cc8a00 100%);
    color: #5a2b00;
    width: 420px;
    height: 420px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    padding: 0;
    line-height: 1;
    box-shadow: 0 20px 60px rgba(245,175,25,0.18), inset 0 -8px 20px rgba(0,0,0,0.12);
    user-select: none;
    -webkit-user-select: none;
}

.big-cookie:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 30px 80px rgba(245,175,25,0.25), inset 0 -10px 30px rgba(0,0,0,0.15);
}

.big-cookie:active {
    transform: scale(0.96);
}

.big-cookie.fever-mode {
    animation: fever-pulse 0.5s infinite;
    box-shadow: 0 40px 120px rgba(255,107,107,0.18), inset 0 -14px 40px rgba(255,107,107,0.06);
}

@keyframes fever-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.cookie-hint {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    animation: pulse-hint 2s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

.combo-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    animation: pulse 0.5s infinite;
}

.golden-cookie {
    position: absolute;
    font-size: 4rem;
    cursor: pointer;
    z-index: 100;
    animation: golden-float 3s infinite ease-in-out, golden-shine 1s infinite;
    transition: transform 0.1s;
}

.golden-cookie:hover {
    transform: scale(1.2) rotate(20deg);
}

@keyframes golden-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes golden-shine {
    0%, 100% { filter: drop-shadow(0 0 10px gold); }
    50% { filter: drop-shadow(0 0 30px gold); }
}

.notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    font-weight: 600;
    transition: right 0.3s ease;
    max-width: 350px;
}

.notification.show {
    right: 20px;
}

.cookie-float.fever {
    color: #ff6b6b;
    font-size: 2rem;
    text-shadow: 0 0 10px #ff6b6b;
}

.quests-section {
    margin-bottom: 15px;
}

.quests-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.quest-item.completed {
    background: linear-gradient(135deg, #a8edea22 0%, #fed6e322 100%);
    border-color: #4ade80;
    opacity: 0.7;
}

.quest-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.quest-info {
    flex: 1;
}

.quest-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.quest-progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 4px 0;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.quest-text {
    font-size: 12px;
    color: #666666;
}

.quest-reward {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f5af19;
    white-space: nowrap;
}

.stats-section {
    margin-bottom: 15px;
}

.stats-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.stats-display > div {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,215,120,0.08), rgba(245,175,25,0.02));
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    color: #fff7ea;
    font-size: 0.98rem;
    border: 1px solid rgba(245,175,25,0.12);
}

#cookie-floats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cookie-float {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5af19;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

.section-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrades-section,
.buildings-section {
    margin-bottom: 20px;
}

.upgrades-list,
.buildings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.upgrade-item,
.building-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(180deg, rgba(255,215,120,0.03), rgba(245,175,25,0.01));
    border: 1px solid rgba(245,175,25,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.upgrade-item:hover:not(.disabled),
.building-item:hover:not(.disabled) {
    border-color: rgba(245,175,25,0.22);
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(245,175,25,0.12);
}

.upgrade-item.disabled,
.building-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-info,
.building-info {
    flex: 1;
}

.upgrade-name,
.building-name {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upgrade-desc,
.building-desc {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
}

.building-count {
    background: #f5af19;
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 8px;
}

.upgrade-cost,
.building-cost {
    font-weight: 700;
    color: #f12711;
    font-size: 0.9rem;
    white-space: nowrap;
}

.achievements-section {
    margin-bottom: 15px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    /* No max-height or overflow - shows all achievements */
}

.achievement-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievement-item.unlocked {
    border-color: #f5af19;
    background: linear-gradient(135deg, #f5af1915 0%, #f1271115 100%);
}

.achievement-item.locked {
    opacity: 0.3;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 1.8rem;
}

.achievement-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.5);
    max-width: 220px;
    white-space: normal;
    text-align: center;
}

.achievement-item:hover .achievement-tooltip {
    opacity: 1;
}

/* Achievements at bottom - no overflow issues */

.cookie-btn-reset {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(108, 117, 125, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.cookie-btn-reset:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.cookie-btn-reset:active {
    transform: translateY(-1px);
}

/* Scrollbar styling */
.upgrades-list::-webkit-scrollbar,
.buildings-list::-webkit-scrollbar,
.achievements-list::-webkit-scrollbar {
    width: 6px;
}

.upgrades-list::-webkit-scrollbar-track,
.buildings-list::-webkit-scrollbar-track,
.achievements-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.upgrades-list::-webkit-scrollbar-thumb,
.buildings-list::-webkit-scrollbar-thumb,
.achievements-list::-webkit-scrollbar-thumb {
    background: #f5af19;
    border-radius: 10px;
}

.upgrades-list::-webkit-scrollbar-thumb:hover,
.buildings-list::-webkit-scrollbar-thumb:hover,
.achievements-list::-webkit-scrollbar-thumb:hover {
    background: #f12711;
}

/* Responsive */
@media (max-width: 1350px) {
    .main-layout {
        flex-direction: column;
        align-items: center;
    }
    
    .wordle-container,
    .calculator-container {
        max-width: 550px;
        width: 100%;
    }
    
    /* Cookie Clicker: 2-column layout on tablets */
    .cookie-fullscreen-layout {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        height: auto;
    }
    
    .cookie-center-column {
        grid-column: 1 / -1;
        order: -1;
    }
    
    .big-cookie {
        font-size: 12rem;
    }
}

@media (max-width: 900px) {
    /* Cookie Clicker: Single column on mobile */
    .cookie-fullscreen-layout {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .cookie-left-column,
    .cookie-center-column,
    .cookie-right-column {
        order: 0;
    }
    
    .big-cookie {
        font-size: 10rem;
    }
    
    .cookie-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .card {
        padding: 25px 18px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .time-input {
        font-size: 1rem;
        padding: 12px 10px;
    }
    
    .separator {
        font-size: 1.3rem;
    }
    
    .button-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn:nth-child(3) {
        grid-column: 1;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .auto-result .time-big {
        font-size: 1.2rem;
    }
    
    .auto-result .subtitle-text {
        font-size: 0.8rem;
    }
    
    /* Wordle Responsive */
    .wordle-card {
        padding: 25px 18px;
    }
    
    .wordle-title {
        font-size: 1.6rem;
    }
    
    .wordle-tile {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .wordle-key {
        min-width: 28px;
        height: 42px;
        font-size: 0.75rem;
    }
    
    .wordle-key.wide {
        min-width: 48px;
    }
}

/* ===== COOKIE CLICKER NEW FEATURES ===== */

/* Golden Cookie */
.golden-cookie {
    position: absolute;
    font-size: 48px;
    cursor: pointer;
    animation: goldenPulse 1s infinite, goldenFloat 3s ease-in-out infinite;
    z-index: 1000;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    transition: transform 0.1s;
}

.golden-cookie:hover {
    transform: scale(1.3) rotate(20deg);
}

@keyframes goldenPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes goldenFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(75, 0, 130, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Combo Display */
.combo-display {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    animation: comboPulse 0.5s ease-in-out infinite;
}

@keyframes comboPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Fever Mode */
#big-cookie.fever-mode {
    animation: feverShake 0.1s infinite, cookieSpin 0.5s linear infinite !important;
}

@keyframes feverShake {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-3px, 3px) scale(1.05); }
    75% { transform: translate(3px, -3px) scale(1.05); }
}

@keyframes cookieSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cookie-float.fever {
    font-size: 28px !important;
    color: #ff4500 !important;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.8);
    font-weight: 900;
}

/* Quests Section */
.quests-section {
    margin-top: 20px;
}

.quests-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* New Cookie Clicker Quest Styles - Dark background for better contrast */
.cookie-card .quest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    transition: all 0.3s;
}

.cookie-card .quest-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(138, 43, 226, 0.6);
}

.cookie-card .quest-item.completed {
    opacity: 0.7;
    background: rgba(0, 100, 0, 0.3);
    border-color: rgba(0, 255, 0, 0.5);
}

.cookie-card .quest-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.cookie-card .quest-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cookie-card .quest-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.cookie-card .quest-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.cookie-card .quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s;
}

.cookie-card .quest-text {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
}

.quest-reward {
    font-weight: 700;
    color: #ffd700;
    font-size: 14px;
    white-space: nowrap;
}

/* Stats Section */
.stats-section {
    margin-top: 20px;
    margin-bottom: 15px;
}

.stats-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.stats-display > div {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    padding: 6px;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 6px;
}

/* ==================== CHANGELOG STYLES ==================== */

.changelog-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.changelog-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.changelog-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    opacity: 0.8;
}

.changelog-timeline {
    position: relative;
    padding: 20px 0;
}

/* Timeline Line */
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.6), rgba(138, 43, 226, 0.2));
}

.changelog-entry {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.changelog-badge {
    position: relative;
    z-index: 2;
    min-width: 100px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
    flex-shrink: 0;
}

.changelog-badge::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 3px;
    background: rgba(138, 43, 226, 0.4);
}

.changelog-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 25px 30px;
    transition: all 0.3s ease;
}

.changelog-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.changelog-version {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.changelog-date {
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 600;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-list li {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.changelog-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: rgba(138, 43, 226, 0.8);
    transform: translateX(5px);
}

/* Responsive Changelog */
@media (max-width: 768px) {
    .changelog-timeline::before {
        left: 20px;
    }
    
    .changelog-entry {
        flex-direction: column;
        gap: 15px;
    }
    
    .changelog-badge {
        width: 100px;
    }
    
    .changelog-badge::before {
        display: none;
    }
    
    .changelog-title {
        font-size: 2rem;
    }
    
    .changelog-version {
        font-size: 1.2rem;
    }
    
    .changelog-content {
        padding: 20px;
    }
}

/* ==================== LEADERBOARD STYLES ==================== */

.leaderboard-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.leaderboard-main-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.leaderboard-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.leaderboard-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.leaderboard-tab-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(245, 175, 25, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-tab-btn:hover {
    background: rgba(245, 175, 25, 0.2);
    border-color: rgba(245, 175, 25, 0.5);
    transform: translateY(-2px);
}

.leaderboard-tab-btn.active {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    border-color: #f12711;
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 175, 25, 0.4);
}

.leaderboard-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

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

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

.leaderboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.leaderboard-desc {
    font-size: 0.95rem;
    opacity: 0.7;
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid rgba(245, 175, 25, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.sort-select:hover {
    border-color: rgba(245, 175, 25, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-controls label {
    color: #ffffff;
    font-weight: 600;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(245, 175, 25, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out;
}

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

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 175, 25, 0.4);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(245, 175, 25, 0.2);
}

.leaderboard-entry.top-three {
    background: linear-gradient(90deg, rgba(245, 175, 25, 0.2), rgba(255, 255, 255, 0.05));
    border-left: 4px solid;
}

.leaderboard-entry.top-three:nth-child(1) {
    border-left-color: #FFD700;
}

.leaderboard-entry.top-three:nth-child(2) {
    border-left-color: #C0C0C0;
}

.leaderboard-entry.top-three:nth-child(3) {
    border-left-color: #CD7F32;
}

.leaderboard-entry .rank {
    min-width: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.leaderboard-entry .username {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
}

.leaderboard-entry .score,
.leaderboard-entry .cps,
.leaderboard-entry .achievements,
.leaderboard-entry .time {
    font-weight: 700;
    font-size: 0.95rem;
    color: #4ade80;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    opacity: 0.7;
}

.leaderboard-info {
    background: rgba(245, 175, 25, 0.1);
    border: 2px solid rgba(245, 175, 25, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.leaderboard-info p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Leaderboard */
@media (max-width: 768px) {
    .leaderboard-main-title {
        font-size: 2rem;
    }
    
    .leaderboard-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .leaderboard-tab-btn {
        width: 100%;
    }
    
    .leaderboard-entry {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .leaderboard-entry .rank {
        min-width: 50px;
    }
    
    .leaderboard-header h3 {
        font-size: 1.5rem;
    }
}

/* ===== TETRIS STYLES ===== */
@keyframes tetrisGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3), 0 0 40px rgba(118, 75, 162, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.5), 0 0 60px rgba(118, 75, 162, 0.4);
    }
}

@keyframes floatPiece {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(var(--drift)) rotate(360deg);
        opacity: 0;
    }
}

.tetris-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.tetris-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px;
}

.tetris-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.tetris-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tetris-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.tetris-stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.tetris-stat-box .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.tetris-stat-box .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.tetris-hold-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px;
    animation: floatPiece 3s ease-in-out infinite;
}

.tetris-hold-box h3 {
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 1.1rem;
    color: #FFD700;
}

.tetris-hold-box canvas {
    display: block;
    margin: 0 auto;
    background: #000;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.tetris-controls-info {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px;
}

.tetris-controls-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    text-align: center;
}

.control-item {
    padding: 8px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
}

.control-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.tetris-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tetris-btn {
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.tetris-btn-reset {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.tetris-btn-reset:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.tetris-btn-submit {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-weight: bold;
}

.tetris-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.tetris-game-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tetris-game-area canvas {
    border: 3px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    animation: tetrisGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.tetris-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tetris-next-pieces {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.tetris-next-pieces h3 {
    text-align: center;
    font-size: 1.2rem;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.next-pieces-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-pieces-container canvas {
    display: block;
    background: #000;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.next-pieces-container canvas:nth-child(1) {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.next-pieces-container canvas:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.8);
}

@media (max-width: 1024px) {
    .tetris-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tetris-game-area {
        order: -1;
    }
    
    .tetris-next-pieces {
        width: 100%;
        max-width: 400px;
    }
    
    .next-pieces-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tetris-container {
        flex-direction: column;
        align-items: center;
    }
    
    .tetris-sidebar {
        width: 100%;
        max-width: 400px;
    }
    
    .tetris-game-area canvas {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   NEXUS FORGE STYLES
   ======================================== */

.nexus-container {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    grid-template-rows: 1fr auto;
    gap: 25px;
    padding: 25px;
    max-width: 1700px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    overflow: hidden;
}

.nexus-sidebar {
    background: linear-gradient(180deg, rgba(20, 20, 45, 0.95), rgba(10, 10, 30, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    overflow-y: auto;
    border: 2px solid;
    border-image: linear-gradient(180deg, rgba(100, 200, 255, 0.5), rgba(138, 43, 226, 0.5)) 1;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(100, 200, 255, 0.1);
    transition: all 0.3s ease;
}

.nexus-sidebar:hover {
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(100, 200, 255, 0.2);
}

.nexus-sidebar::-webkit-scrollbar {
    width: 10px;
}

.nexus-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.nexus-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ccff, #8a2be2);
    border-radius: 10px;
}

.nexus-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #9d4edd);
}

.nexus-left {
    border-image: linear-gradient(180deg, rgba(0, 255, 136, 0.5), rgba(0, 204, 255, 0.5)) 1;
}

.nexus-right {
    border-image: linear-gradient(180deg, rgba(138, 43, 226, 0.5), rgba(255, 100, 255, 0.5)) 1;
}

.nexus-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.nexus-title {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #00ff88, #00ccff, #8a2be2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Stats Panel */
.nexus-stats-panel {
    background: linear-gradient(135deg, rgba(10, 10, 40, 0.8), rgba(20, 10, 50, 0.8));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 200, 255, 0.3);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(100, 200, 255, 0.05), rgba(138, 43, 226, 0.05));
    border-radius: 12px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #00ccff, #8a2be2) 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-row:hover::before {
    left: 100%;
}

.stat-row:hover {
    background: linear-gradient(90deg, rgba(100, 200, 255, 0.1), rgba(138, 43, 226, 0.1));
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(100, 200, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
    filter: drop-shadow(0 0 10px currentColor);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.4rem;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Level Panel */
.nexus-level-panel {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.level-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #fff;
}

.level-label {
    font-size: 1.1rem;
    font-weight: bold;
}

.level-xp {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.level-progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2be2, #00ccff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
}

/* Node Shop */
.nexus-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, rgba(0, 255, 136, 0.5), transparent) 1;
    font-weight: 700;
    letter-spacing: 1px;
}

.nexus-nodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nexus-shop-item {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.08), rgba(138, 43, 226, 0.08));
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nexus-shop-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.nexus-shop-item:hover::before {
    left: 100%;
}

.nexus-shop-item:hover {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.15), rgba(138, 43, 226, 0.15));
    border-color: rgba(100, 200, 255, 0.6);
    transform: translateX(8px);
    box-shadow: 
        -5px 0 20px rgba(100, 200, 255, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.3);
}

.nexus-shop-item:active {
    transform: translateX(5px) scale(0.98);
}

.nexus-shop-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(70%);
}

.nexus-shop-item.disabled:hover {
    transform: none;
    box-shadow: none;
}

.shop-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.shop-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
    animation: shopIconPulse 2s ease-in-out infinite;
}

@keyframes shopIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.shop-name {
    font-weight: 700;
    color: #fff;
    flex: 1;
    font-size: 1.05rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.unlock-badge {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 100, 0, 0.4));
    border: 2px solid rgba(255, 165, 0, 0.8);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #ffa500;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 165, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 165, 0, 0.6); }
}

.shop-item-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.4;
}

.shop-item-cost {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.shop-item-owned {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    font-style: italic;
}

/* Canvas Click Area */
.nexus-click-area {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 40, 0.95), rgba(20, 10, 50, 0.95));
    border: 4px solid transparent;
    border-image: linear-gradient(135deg, #00ccff, #8a2be2, #00ff88) 1;
    border-radius: 25px;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 100px rgba(100, 200, 255, 0.05),
        0 0 50px rgba(100, 200, 255, 0.2);
    position: relative;
}

/* Animated border glow */
.nexus-click-area::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #00ccff, #8a2be2, #00ff88, #00ccff);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: borderGlow 6s ease infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nexus-click-area:hover::before {
    opacity: 0.5;
}

.nexus-click-area:hover {
    transform: scale(1.02);
    box-shadow: 
        0 15px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 120px rgba(100, 200, 255, 0.1),
        0 0 80px rgba(100, 200, 255, 0.4);
}

.nexus-click-area:active {
    transform: scale(0.98);
    box-shadow: 
        0 5px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 50px rgba(100, 200, 255, 0.2),
        0 0 100px rgba(100, 200, 255, 0.6);
}

/* Click ripple effect */
.nexus-click-area::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 204, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.nexus-click-area:active::after {
    animation: clickPulse 0.6s ease-out;
}

@keyframes clickPulse {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

#nexus-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.3));
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#nexus-floats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.float-text {
    position: absolute;
    font-size: 2rem;
    font-weight: 900;
    animation: floatUp 2s ease-out forwards;
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
    pointer-events: none;
    letter-spacing: 1px;
    transform: translate(-50%, -50%); /* Center the text */
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -80px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -140px) scale(0.8);
    }
}

/* Lightning Bolt Effect (Hold Animation) */
.lightning-bolt {
    position: absolute;
    width: 4px;
    height: 80px;
    background: linear-gradient(180deg, 
        transparent,
        #00ffff 20%,
        #ffffff 50%,
        #00ffff 80%,
        transparent
    );
    box-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #0088ff;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg));
    animation: lightning 0.5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
    filter: blur(1px);
}

.lightning-bolt::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -8px;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 10px #00ffff;
    transform: rotate(-25deg);
}

.lightning-bolt::after {
    content: '';
    position: absolute;
    top: 60%;
    right: -8px;
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 10px #00ffff;
    transform: rotate(25deg);
}

@keyframes lightning {
    0% {
        opacity: 0;
        filter: blur(2px);
    }
    10% {
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        opacity: 0.8;
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        filter: blur(3px);
        transform: translate(-50%, -80%) rotate(var(--rotation, 0deg));
    }
}

/* Holding State for Click Area */
.nexus-click-area.holding {
    background: radial-gradient(circle at center, 
        rgba(0, 255, 255, 0.3), 
        rgba(0, 136, 255, 0.2),
        rgba(138, 43, 226, 0.15)
    );
    box-shadow: 
        0 0 60px rgba(0, 255, 255, 0.6),
        0 0 100px rgba(0, 136, 255, 0.4),
        inset 0 0 80px rgba(0, 255, 255, 0.3);
    animation: holdingPulse 0.5s ease-in-out infinite;
}

@keyframes holdingPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1.2);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.4);
    }
}

/* Stability Panel */
.nexus-stability-panel {
    background: linear-gradient(135deg, rgba(40, 40, 60, 0.95), rgba(30, 30, 50, 0.95));
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff4444, #ffaa00, #ff4444) 1;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nexus-stability-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff4444, #ffaa00, #ff4444, #ffaa00);
    background-size: 300% 300%;
    animation: warningGlow 4s ease infinite;
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nexus-stability-panel:hover::before {
    opacity: 0.3;
}

@keyframes warningGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stability-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #ffaa00;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.stability-label::before {
    content: '⚠️ ';
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.stability-bar {
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 4px 10px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.stability-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00ffcc, #00ff88);
    background-size: 200% 100%;
    transition: width 0.5s ease, background 0.5s ease;
    animation: shimmer 3s ease infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    position: relative;
}

.stability-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 20px 20px 0 0;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stability-fill[style*="rgb(255, 0, 0)"],
.stability-fill[style*="red"] {
    background: linear-gradient(90deg, #ff0000, #ff4444, #ff0000) !important;
    animation: criticalPulse 1s ease infinite, shimmer 3s ease infinite !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8) !important;
}

@keyframes criticalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stability-warning {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.25), rgba(255, 68, 68, 0.25));
    border: 2px solid rgba(255, 0, 0, 0.6);
    border-radius: 10px;
    color: #ff6666;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

/* Synergy Panel */
.nexus-synergy-panel {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(106, 13, 173, 0.25));
    border: 2px solid;
    border-image: linear-gradient(135deg, #8a2be2, #c77dff, #8a2be2) 1;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 8px 30px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nexus-synergy-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8a2be2, #c77dff, #8a2be2, #c77dff);
    background-size: 300% 300%;
    animation: synergyGlow 6s ease infinite;
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nexus-synergy-panel:hover::before {
    opacity: 0.4;
}

@keyframes synergyGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nexus-synergy-panel h3 {
    margin-bottom: 15px;
    color: #c77dff;
    background: linear-gradient(135deg, #c77dff, #e0aaff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 20px rgba(199, 125, 255, 0.5);
}

.synergies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.synergy-item {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(106, 13, 173, 0.15));
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.synergy-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.synergy-item:hover::before {
    left: 100%;
}

.synergy-item:hover {
    border-color: rgba(199, 125, 255, 0.7);
    transform: translateX(5px);
    box-shadow: 
        0 6px 25px rgba(138, 43, 226, 0.5),
        0 0 30px rgba(138, 43, 226, 0.3);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(106, 13, 173, 0.25));
}

.synergy-item.active {
    border-color: rgba(138, 43, 226, 0.8);
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.synergy-name {
    font-weight: bold;
    color: #c77dff;
    margin-bottom: 4px;
}

.synergy-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.synergy-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: italic;
}

/* Action Buttons */
.nexus-actions {
    display: flex;
    gap: 20px;
}

.nexus-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.nexus-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nexus-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nexus-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(70%);
}

.nexus-btn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.nexus-btn-overdrive {
    background: linear-gradient(135deg, #ff4444, #ff0066, #cc0000);
    color: white;
    border: 2px solid rgba(255, 68, 68, 0.5);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.nexus-btn-overdrive:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff6666, #ff0088, #ff0000);
    transform: translateY(-5px);
    box-shadow: 
        0 12px 35px rgba(255, 68, 68, 0.6),
        0 0 40px rgba(255, 68, 68, 0.4);
}

.nexus-btn-overdrive:active:not(:disabled) {
    transform: translateY(-2px);
}

.nexus-btn-ascend {
    background: linear-gradient(135deg, #8a2be2, #9d4edd, #6a0dad);
    color: white;
    border: 2px solid rgba(138, 43, 226, 0.5);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.nexus-btn-ascend:hover:not(:disabled) {
    background: linear-gradient(135deg, #9d4edd, #b565ff, #7b2cbf);
    transform: translateY(-5px);
    box-shadow: 
        0 12px 35px rgba(138, 43, 226, 0.6),
        0 0 40px rgba(138, 43, 226, 0.4);
}

.nexus-btn-ascend:active:not(:disabled) {
    transform: translateY(-2px);
}

/* Hotkeys Hint */
.hotkeys-hint {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.hotkeys-hint strong {
    color: #00ccff;
}

/* Active Nodes List */
.nexus-active-nodes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.active-node-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.active-node-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(100, 200, 255, 0.5);
    transform: translateX(3px);
}

.active-node-item.selected {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.15), rgba(50, 150, 255, 0.15));
    border: 2px solid rgba(100, 200, 255, 0.7);
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.3);
}

.active-node-item.can-install {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.15));
    border: 2px solid rgba(0, 255, 136, 0.6);
    animation: pulse-green 1.5s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    }
}

.node-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    color: #fff;
    font-weight: bold;
}

.node-level {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #00ff88;
}

.node-modules {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: italic;
    padding: 20px;
}

/* Modules Shop */
.nexus-modules-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nexus-module-item {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(106, 13, 173, 0.12));
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nexus-module-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 125, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.nexus-module-item:hover::before {
    left: 100%;
}

.nexus-module-item:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(106, 13, 173, 0.2));
    border-color: rgba(199, 125, 255, 0.7);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(138, 43, 226, 0.5),
        0 0 30px rgba(138, 43, 226, 0.3);
}

.nexus-module-item.disabled {
    opacity: 0.4;
    filter: grayscale(70%);
    cursor: not-allowed;
}

.nexus-module-item.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nexus-module-item.selected {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
    border: 2px solid rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse-gold 1.5s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 215, 0, 0.6);
    }
}

.module-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.module-icon {
    font-size: 1.3rem;
}

.module-name {
    font-weight: bold;
    color: #c77dff;
    flex: 1;
}

.module-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.module-cost {
    font-size: 0.85rem;
    color: #00ff88;
    margin-bottom: 4px;
}

.module-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Stats Display */
.nexus-stats-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-item span {
    color: #00ff88;
    font-weight: bold;
}

/* Footer Buttons */
.nexus-footer-buttons {
    grid-column: 1 / -1; /* Span all columns */
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.5), rgba(30, 30, 50, 0.5));
    border-radius: 15px;
    box-shadow: 
        0 -4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Push to bottom */
}

.nexus-btn-submit,
.nexus-btn-save,
.nexus-btn-reset {
    min-width: 220px;
    max-width: 280px;
}

.nexus-btn-submit {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    color: #1a1a2e;
    border: 2px solid rgba(255, 215, 0, 0.6);
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.nexus-btn-submit::after {
    content: '🏆';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-60%); }
}

.nexus-btn-submit:hover {
    background: linear-gradient(135deg, #FFE44D, #FFB84D, #FFA500);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4);
}

.nexus-btn-save {
    background: linear-gradient(135deg, #00c864, #00a854, #008844);
    color: white;
    border: 2px solid rgba(0, 200, 100, 0.6);
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nexus-btn-save::after {
    content: '💾';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

.nexus-btn-save:hover {
    background: linear-gradient(135deg, #00e673, #00c864, #00a854);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 200, 100, 0.6),
        0 0 40px rgba(0, 200, 100, 0.4);
}

.nexus-btn-reset {
    background: linear-gradient(135deg, #dc3545, #c82333, #a71d2a);
    color: white;
    border: 2px solid rgba(220, 53, 69, 0.6);
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nexus-btn-reset::after {
    content: '🔄';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

.nexus-btn-reset:hover {
    background: linear-gradient(135deg, #e74c3c, #dc3545, #c82333);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(220, 53, 69, 0.6),
        0 0 40px rgba(220, 53, 69, 0.4);
}

.nexus-btn-reset:active,
.nexus-btn-save:active,
.nexus-btn-submit:active {
    transform: translateY(-2px) scale(1.02);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nexus-container {
        grid-template-columns: 250px 1fr 250px;
        grid-template-rows: 1fr auto;
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .nexus-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        height: auto;
    }
    
    .nexus-footer-buttons {
        grid-column: 1;
    }
    
    .nexus-sidebar {
        max-height: 400px;
    }
    
    .nexus-click-area {
        min-height: 300px;
    }
}

/* Notification styles */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Legal Pages (Privacy & Imprint) */
.legal-container {
    max-width: 900px;
    width: 100%;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 25px;
    padding: 40px;
    margin: 20px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.legal-container h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.6);
}

.legal-date,
.legal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: #c77dff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}

.legal-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.legal-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.legal-section ul li {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #8a2be2;
    font-weight: bold;
}

.legal-section a {
    color: #c77dff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.imprint-box {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
}

.imprint-box p {
    margin: 0;
    line-height: 1.8;
}

.legal-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.legal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-container {
        padding: 25px 20px;
    }
    
    .legal-container h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}

/* Site Footer */
.site-footer {
    position: relative;
    z-index: 5;
    width: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    padding: 20px 0;
    margin-top: auto;
}

/* Hide footer when game is active */
.game-fullscreen.active ~ .site-footer {
    display: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-link:hover {
    color: #c77dff;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tab-content {
    flex: 1;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}
