@font-face {
    font-family: 'Coinbase Text';
    src: url('fonts/Coinbase_Text-Regular-web-1.32.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==================== SPLASH SCREEN ==================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1434F8; /* Кастомный синий */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.splash-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-loader {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 80%;
    max-width: 300px;
    z-index: 10;
}

.loader-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: #FFFFFF;
    border-radius: 4px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.loader-text {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .splash-loader {
        bottom: 60px;
        max-width: 250px;
    }
    
    .loader-bar {
        height: 6px;
    }
    
    .loader-text {
        font-size: 14px;
    }
}
/* ==================== END SPLASH SCREEN ==================== */

/* ==================== ONBOARDING SCREEN ==================== */
.onboarding-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.onboarding-screen.hidden {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.onboarding-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.onboarding-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideIn 0.4s ease-out;
    width: 100%;
}

.onboarding-slide.active {
    display: flex;
}

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

.onboarding-slide-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.onboarding-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 82, 255, 0.6));
}

.onboarding-emoji {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.onboarding-slide-title {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 20px rgba(0, 82, 255, 0.5);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.onboarding-slide-description {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1em;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 340px;
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.onboarding-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.onboarding-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5em;
    width: 36px;
    text-align: center;
    display: none;
}

.feature-text {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.95em;
    color: var(--text-color, #ffffff);
    font-weight: 500;
}

.onboarding-dots {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 24px;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: var(--base-blue);
    box-shadow: 0 0 12px rgba(0, 82, 255, 0.6);
    transform: scale(1.2);
}

.onboarding-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.onboarding-buttons {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 320px;
}

.btn-onboarding-skip {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-onboarding-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-onboarding-next {
    flex: 1.5;
    padding: 14px 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-onboarding-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 82, 255, 0.6);
}

/* Light Theme Styles for Onboarding */
body.light-theme .onboarding-screen {
    background: var(--bg-color);
}

body.light-theme .onboarding-slide-description {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .onboarding-feature {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .onboarding-feature:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .feature-text {
    color: var(--text-color);
}

body.light-theme .onboarding-dot {
    background: rgba(0, 0, 0, 0.2);
}

body.light-theme .onboarding-dot:hover:not(.active) {
    background: rgba(0, 0, 0, 0.4);
}

body.light-theme .btn-onboarding-skip {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .btn-onboarding-skip:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

@media (max-width: 768px) {
    .onboarding-container {
        padding: 30px 20px;
    }
    
    .onboarding-slide-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .onboarding-emoji {
        font-size: 56px;
    }
    
    .onboarding-slide-title {
        font-size: 1.5em;
    }
    
    .onboarding-slide-description {
        font-size: 0.9em;
        margin-bottom: 24px;
    }
    
    .onboarding-feature {
        padding: 12px 14px;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 1.3em;
        width: 30px;
    }
    
    .feature-text {
        font-size: 0.85em;
    }
    
    .onboarding-dots {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .btn-onboarding-skip,
    .btn-onboarding-next {
        padding: 12px 16px;
        font-size: 0.9em;
    }
}
/* ==================== END ONBOARDING SCREEN ==================== */

@font-face {
    font-family: 'Coinbase Text';
    src: url('fonts/Coinbase_Text-Medium-web-1.32.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Coinbase Text';
    src: url('fonts/Coinbase_Text-Bold-web-1.32.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Coinbase Text';
    src: url('fonts/Coinbase_Text-Light-web-1.32.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

/* Убираем все возможные красные подсветки браузера */
*:focus-visible {
    outline: none !important;
}

*:invalid,
*:valid {
    box-shadow: none !important;
}

:root {
    /* Base Brand Colors */
    --base-blue: #0052FF;
    --base-blue-dark: #0039B3;
    --base-blue-light: #3375FF;
    --base-black: #000000;
    --base-white: #FFFFFF;
    --base-gray-dark: #1A1A1A;
    --base-gray: #333333;
    --base-gray-light: #666666;
    
    --primary-gradient: linear-gradient(135deg, #0052FF 0%, #0039B3 100%);
    --secondary-gradient: linear-gradient(135deg, #3375FF 0%, #0052FF 100%);
    --success-gradient: linear-gradient(135deg, #0052FF 0%, #3375FF 100%);
    --board-bg: rgba(0, 0, 0, 0.8);
    --cell-size: 60px;
    --glow-color: rgba(0, 82, 255, 0.5);
    
    /* Dark mode colors (default) */
    --bg-color: #000000;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text-color: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Dark theme is default - no need for media query */

body {
    font-family: 'Coinbase Text', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    /* Убрали height: 100vh для совместимости с Farcaster iframe */
    /* display: flex может вызывать проблемы в iframe, поэтому используем block */
    display: block !important;
    padding: 5px;
    /* Убрали overflow: hidden - это может скрывать контент в Farcaster */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    margin: 0;
    /* Убеждаемся, что body виден - критично для Farcaster */
    visibility: visible !important;
    opacity: 1 !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 82, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 57, 179, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.game-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* Убрали max-height: 100vh для совместимости с Farcaster */
    overflow-y: auto;
    overflow-x: hidden;
    /* Убеждаемся, что контент виден - критично для Farcaster */
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
    /* Добавили display для явного отображения */
    display: block !important;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 3s infinite;
}

.particle.explosion {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffe66d, #ff6b6b);
    box-shadow: 0 0 10px rgba(255, 230, 109, 0.8);
    animation: explosionParticle 0.8s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

@keyframes explosionParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x, 0), var(--y, 0)) scale(0);
        opacity: 0;
    }
}

.game-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 6px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    /* GPU ускорение */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    /* Базовые стили видимости - без !important, чтобы JS мог скрывать */
    visibility: visible;
    opacity: 1;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.game-header {
    margin-bottom: 4px;
}

.logo {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
}

.base-logo {
    height: 20px;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(0, 82, 255, 0.6));
    margin-bottom: 2px;
    display: block;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ecosystem-label {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.7em;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.logo h1 {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 20px rgba(0, 82, 255, 0.6);
    letter-spacing: 1px;
    margin-bottom: 1px;
}

.logo .subtitle {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.stats-panel {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.rpg-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rpg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.8);
}

.rpg-level {
    font-weight: 600;
    color: var(--base-blue);
}

.rpg-xp-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.rpg-xp-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.rpg-points {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
}

.rpg-perks {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.rpg-perk {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.65em;
    text-align: center;
}

.rpg-perk-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.rpg-perk-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.rpg-perk-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.rpg-perk-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.rpg-perk-value {
    font-weight: 700;
    color: var(--base-blue);
    min-width: 16px;
    text-align: right;
}

.rpg-perk-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.4);
}

.rpg-perk-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.5);
}

.rpg-perk-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wallet-panel {
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.btn-wallet {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4);
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 1000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.btn-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 82, 255, 0.6);
}

.btn-wallet.connected {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.btn-wallet.connected:hover {
    background: rgba(76, 175, 80, 0.3);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.wallet-info {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    display: none !important;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75em;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    color: var(--base-blue);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.6);
    word-break: break-all;
}

.wallet-network {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

.wallet-network.base-network {
    color: rgba(76, 175, 80, 0.9);
}

.wallet-network.wrong-network {
    color: rgba(255, 71, 87, 0.9);
}

.wallet-modal-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    line-height: 1.6;
    white-space: pre-line;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

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

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

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.stat-icon {
    font-size: 0.85em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-value {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.objectives-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    display: none; /* Скрываем панель целей для экономии места */
}

.objective-title {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9em;
}

.objective-icon {
    font-size: 1.2em;
}

.objective-text {
    flex: 1;
}

.objective-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(0, 82, 255, 0.8);
}

.board-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--board-bg);
    padding: 2px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(102, 126, 234, 0.1);
    max-width: 100%;
    aspect-ratio: 1;
}

.board-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--primary-gradient);
    border-radius: 25px;
    opacity: 0.4;
    filter: blur(20px);
    z-index: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.cell {
    aspect-ratio: 1;
    border-radius: 16px;
    cursor: grab;
    transition: transform 0.1s ease, border-color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.3);
    will-change: transform;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* GPU ускорение для лучшей производительности */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Дополнительные оптимизации */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    /* Убираем красный outline при фокусе */
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cell::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    z-index: 2;
}

/* Hover эффекты только для устройств с мышью (не touch) */
@media (hover: hover) and (pointer: fine) {
    .cell:hover::after {
        width: 150%;
        height: 150%;
    }

    .cell:hover {
        transform: scale(1.08) translateY(-2px);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 255, 255, 0.1);
        z-index: 10;
    }
}

.cell.selected {
    border: 2px solid rgba(0, 82, 255, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 25px rgba(0, 82, 255, 0.7),
        0 0 50px rgba(0, 82, 255, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.5);
    transform: scale(1.15);
    z-index: 20;
    animation: selectedPulse 1s ease-in-out infinite;
}

.cell.dragging {
    opacity: 0.7;
    transform: scale(1.1);
    z-index: 30;
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cell:active {
    cursor: grabbing;
}

.cell:focus,
.cell:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

@keyframes selectedPulse {
    0%, 100% { 
        border-color: rgba(0, 82, 255, 0.6);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 25px rgba(0, 82, 255, 0.7),
            0 0 50px rgba(0, 82, 255, 0.4),
            0 4px 15px rgba(0, 0, 0, 0.5);
    }
    50% { 
        border-color: rgba(0, 82, 255, 0.8);
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 35px rgba(0, 82, 255, 0.9),
            0 0 70px rgba(0, 82, 255, 0.6),
            0 6px 20px rgba(0, 0, 0, 0.6);
    }
}

.cell.matched {
    animation: matchExplosion 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.cell.matched:focus,
.cell.matched:active,
.cell.matched:hover,
.cell.matched.selected {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    transform: none !important;
    animation: matchExplosion 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes matchExplosion {
    0% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.3) rotate(180deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.cell.falling {
    animation: fallAnimation 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fallAnimation {
    from {
        transform: translateY(-200%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cell.swapping {
    animation: swapAnimation 0.15s ease;
}

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

/* Контейнер для логотипа с закругленными углами */
.cell-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Изображение логотипа внутри контейнера */
.cell-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Скрываем старые псевдоэлементы ::before */
.cell.type-0::before,
.cell.type-1::before,
.cell.type-2::before,
.cell.type-3::before,
.cell.type-4::before,
.cell.type-5::before {
    display: none !important;
}

/* Специальные типы */
.cell.type-bomb {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.6);
    animation: bombPulse 1s ease-in-out infinite;
}

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

.cell.type-rocket-h {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
    box-shadow: 0 4px 20px rgba(55, 66, 250, 0.6);
}

.cell.type-rocket-v {
    background: linear-gradient(135deg, #5352ed 0%, #2f3542 100%);
    box-shadow: 0 4px 20px rgba(83, 82, 237, 0.6);
}

.game-controls {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 auto;
}

.btn {
    padding: 10px 16px;
    min-height: 44px;
    min-width: 0;
    border: none;
    border-radius: 14px;
    font-size: 0.75em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    overflow: hidden;
    font-family: 'Coinbase Text', sans-serif;
    flex: 1 1 0;
    white-space: nowrap;
}

.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;
}

.btn:hover::before,
.btn:active::before {
    width: 2000px;
    height: 2000px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 82, 255, 0.6);
}

.btn-secondary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 82, 255, 0.6);
}


.btn-icon {
    font-size: 1.2em;
}

.combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-family: 'Coinbase Text', sans-serif;
    font-size: 4em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 
        0 0 20px rgba(0, 82, 255, 0.8),
        0 0 40px rgba(0, 82, 255, 1),
        0 0 60px rgba(0, 82, 255, 0.8);
    pointer-events: none;
    z-index: 1000;
    transition: transform 0.3s;
}

.combo-display.show {
    transform: translate(-50%, -50%) scale(1);
    animation: comboPop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes comboPop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.score-popup {
    position: fixed;
    pointer-events: none;
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.score-popup.show {
    opacity: 1;
    animation: scoreFloat 1s ease-out forwards;
}

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

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header h2 {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 2.5em;
    color: var(--base-blue);
    text-shadow: 0 0 20px rgba(0, 82, 255, 0.6);
    text-align: center;
    margin-bottom: 20px;
}

.modal-body {
    text-align: center;
    color: white;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.final-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.final-stat-value {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 15px rgba(0, 82, 255, 0.6);
    margin-bottom: 5px;
}

.final-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    margin-top: 20px;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.player-info {
    margin-top: 5px;
    text-align: center;
}

.player-name-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-change-name {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    padding: 2px 4px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-change-name:hover {
    opacity: 1;
    transform: scale(1.1);
}

.player-label {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-name {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--base-blue);
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.6);
}

.player-name.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    letter-spacing: 0.5px;
}

.name-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1em;
    text-align: center;
    transition: all 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: var(--base-blue);
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-top: 10px;
    text-align: center;
}

.leaderboard-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 1px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    color: var(--base-blue);
    border-bottom-color: var(--base-blue);
    font-weight: 600;
}

.leaderboard-content {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    font-size: 1.1em;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 40px 36px 1fr 100px;
    gap: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.leaderboard-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.player-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.current-player .player-avatar {
    border-color: var(--base-blue);
    box-shadow: 0 0 10px rgba(0, 82, 255, 0.5);
}

.current-player .player-avatar-placeholder {
    border-color: var(--base-blue);
    background: rgba(0, 82, 255, 0.2);
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.3);
    transform: translateX(5px);
}

.leaderboard-item.current-player {
    background: rgba(0, 82, 255, 0.15);
    border-color: rgba(0, 82, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.3);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    width: 40px;
    height: 40px;
}

.rank-number {
    font-size: 1.2em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.leaderboard-player {
    flex: 1;
}

.player-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.leaderboard-player .player-name {
    font-weight: 600;
    color: white;
    font-size: 1em;
}

.leaderboard-player .player-name.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    letter-spacing: 0.3px;
    color: var(--base-blue);
    text-shadow: 0 0 8px rgba(0, 82, 255, 0.5);
}

.you-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
}

.win-badge {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: 700;
}

.player-date {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.4);
}

.leaderboard-score {
    text-align: right;
}

.score-value {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.6);
    margin-bottom: 4px;
}

.combo-value {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboard-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item .stat-label {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.6);
}

/* Оптимизации для мобильных устройств */
@media (max-width: 768px) {
    /* Отключаем тяжелые эффекты для лучшей производительности */
    .game-container {
        backdrop-filter: blur(5px);
        padding: 20px;
    }
    
    .game-container::before {
        display: none; /* Отключаем вращающийся градиент на мобильных */
    }
    
    /* Упрощаем тени для лучшей производительности */
    .cell {
        font-size: 1.5em;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        transition: transform 0.05s ease;
        will-change: transform;
    }
    
    /* Отключаем hover на мобильных - он "залипает" после touch */
    .cell:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        z-index: auto;
    }
    
    .cell:hover::after {
        width: 0;
        height: 0;
    }
    
    .cell.selected {
        box-shadow: 0 0 10px rgba(0, 82, 255, 0.5);
    }
    
    .cell.dragging {
        opacity: 0.8;
        transform: scale(1.05) translateZ(0);
        will-change: transform;
    }
    
    /* Упрощаем анимации */
    .cell.selected {
        animation: none; /* Отключаем пульсацию на мобильных */
    }
    
    .cell.type-bomb {
        animation: none; /* Отключаем пульсацию бомбы */
    }
    
    /* Уменьшаем количество фоновых частиц */
    .particles-container {
        display: none; /* Полностью скрываем частицы на мобильных */
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .stats-panel {
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .game-board {
        gap: 3px;
        padding: 5px;
    }
    
    .leaderboard-item {
        grid-template-columns: 30px 30px 1fr 80px;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .leaderboard-rank {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    
    .leaderboard-avatar,
    .player-avatar,
    .player-avatar-placeholder {
        width: 30px;
        height: 30px;
    }
    
    .player-avatar-placeholder {
        font-size: 14px;
    }
    
    .score-value {
        font-size: 1em;
    }
    
    .leaderboard-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .game-controls {
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .game-controls .btn {
        padding: 8px 10px;
        font-size: 0.65em;
        min-width: 0;
        flex: 1 1 0;
    }
    
    /* Упрощаем фон body */
    body::before {
        opacity: 0.5; /* Уменьшаем интенсивность фонового градиента */
    }
}

@media (max-width: 600px) {
    .game-container {
        padding: 15px;
    }
}

/* Onboarding modal styles */
.onboarding-modal {
    max-width: 500px;
}

.onboarding-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.onboarding-step {
    text-align: center;
}

.onboarding-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.onboarding-step h3 {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--base-blue);
    margin-bottom: 8px;
}

.onboarding-step p {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

/* Start Menu Styles */
.start-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

.start-menu.hidden {
    display: none !important;
}

.start-menu-content {
    width: 100%;
    max-width: 500px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.start-menu-logo {
    text-align: center;
    margin-bottom: 20px;
}

.start-menu-logo .base-logo {
    height: 30px;
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 8px rgba(0, 82, 255, 0.6));
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.start-menu-logo .ecosystem-label {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    opacity: 0.9;
}

.start-menu-logo h1 {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 20px rgba(0, 82, 255, 0.6);
    letter-spacing: 2px;
    margin: 0;
}

.start-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.btn-menu {
    width: 100%;
    padding: 16px 24px;
    min-height: 54px;
    font-size: 1.1em;
    font-weight: 600;
}

.day-streak-display {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 100%;
    max-width: 300px;
}

.day-streak-value {
    font-size: 3em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 20px rgba(0, 82, 255, 0.8);
    margin-bottom: 8px;
}

.day-streak-label {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Settings Modal Styles */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.setting-label {
    font-size: 1.1em;
    color: white;
    font-weight: 500;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary-gradient);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Coinbase Text', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.theme-btn span:first-child {
    font-size: 1.2em;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.theme-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.4);
}

/* Light Theme Styles */
body.light-theme {
    --bg-color: #FFFFFF;
    --bg-secondary: rgba(0, 0, 0, 0.05);
    --text-color: #000000;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --border-color: rgba(0, 0, 0, 0.1);
    --board-bg: rgba(255, 255, 255, 0.8);
    background: var(--bg-color);
    color: var(--text-color);
}

body.light-theme .game-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

body.light-theme .stat-card,
body.light-theme .wallet-info,
body.light-theme .objectives-panel,
body.light-theme .player-name-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

body.light-theme .rpg-panel,
body.light-theme .rpg-perk {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .rpg-perk-name {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .rpg-perk-desc,
body.light-theme .rpg-points,
body.light-theme .rpg-header {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .stat-label,
body.light-theme .objective-title,
body.light-theme .player-label {
    color: var(--text-secondary);
}

body.light-theme .stat-value,
body.light-theme .player-name {
    color: var(--text-color);
}

body.light-theme .cell {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
}

body.light-theme .modal-header h2,
body.light-theme .modal-body {
    color: var(--text-color);
}

body.light-theme .final-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

body.light-theme .start-menu {
    background: var(--bg-color);
}

body.light-theme .start-menu-logo .ecosystem-label {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .setting-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .setting-label {
    color: var(--text-color);
}

body.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .theme-btn {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .theme-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

body.light-theme .leaderboard-item,
body.light-theme .rule-section,
body.light-theme .day-streak-display,
body.light-theme .streak-display-large {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .leaderboard-item:hover,
body.light-theme .rule-section:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .name-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-color);
}

body.light-theme .name-input:focus {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .name-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-theme .tab-btn {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .tab-btn:hover {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .leaderboard-empty {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .player-date,
body.light-theme .combo-value,
body.light-theme .final-stat-label,
body.light-theme .streak-description,
body.light-theme .gm-status,
body.light-theme .gm-last-said {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .leaderboard-stats {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .stat-item .stat-label {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .day-streak-label {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .deploy-description,
body.light-theme .rule-section p {
    color: rgba(0, 0, 0, 0.8);
}

body.light-theme .contract-preview {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.2);
}

body.light-theme .contract-preview-header {
    background: rgba(0, 82, 255, 0.1);
    border-bottom: 1px solid rgba(0, 82, 255, 0.15);
}

body.light-theme .contract-code {
    color: rgba(0, 0, 0, 0.85);
}

body.light-theme .deploy-history {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .history-header {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .history-item {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .history-item .history-date {
    color: rgba(0, 0, 0, 0.4);
}

/* Day Streak Modal Styles */
.streak-content {
    text-align: center;
    padding: 20px 0;
}

.streak-display-large {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.streak-value-large {
    font-size: 4em;
    font-weight: 700;
    color: var(--base-blue);
    text-shadow: 0 0 30px rgba(0, 82, 255, 0.8);
    margin-bottom: 10px;
}

.streak-label-large {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.streak-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

/* GM Button Styles */
.gm-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.btn-gm {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #000;
    font-size: 1.3em;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 165, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.btn-gm:hover::before {
    left: 100%;
}

.btn-gm:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 30px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(255, 165, 0, 0.5);
}

.btn-gm:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-gm:disabled {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-gm:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-gm.loading {
    pointer-events: none;
}

.btn-gm.loading .gm-icon {
    animation: gmSpin 1s linear infinite;
}

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

.btn-gm.success {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
}

.gm-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.gm-status {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    min-height: 20px;
}

.gm-status.error {
    color: #ff6b6b;
}

.gm-status.success {
    color: #4caf50;
}

.mint-result {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mint-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mint-status {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    min-height: 20px;
}

.mint-status.error {
    color: #ff6b6b;
}

.mint-status.success {
    color: #4caf50;
}

.mint-status a {
    color: var(--base-blue);
    text-decoration: none;
    font-weight: 500;
}

.mint-status a:hover {
    color: var(--base-blue-light);
    text-decoration: underline;
}

.gm-last-said {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.gm-tx-link {
    color: var(--base-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.gm-tx-link:hover {
    color: var(--base-blue-light);
    text-decoration: underline;
}

/* Rules Modal Styles */
.rules-modal {
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.rule-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.rule-section:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.3);
    transform: translateX(5px);
}

.rule-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    text-align: center;
}

.rule-section h3 {
    font-family: 'Coinbase Text', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--base-blue);
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.5);
    margin-bottom: 10px;
    text-align: center;
}

.rule-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Deploy Contract Modal Styles */
.btn-deploy {
    background: linear-gradient(135deg, #00D4AA 0%, #00A080 50%, #008060 100%);
    color: white;
    border: 2px solid rgba(0, 212, 170, 0.4);
    box-shadow: 
        0 4px 20px rgba(0, 212, 170, 0.4),
        0 0 40px rgba(0, 160, 128, 0.2);
}

.btn-deploy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 30px rgba(0, 212, 170, 0.6),
        0 0 60px rgba(0, 160, 128, 0.4);
}

.deploy-modal {
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
}

.deploy-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.deploy-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 10px;
}

.contract-preview {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 82, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.contract-preview-header {
    background: rgba(0, 82, 255, 0.15);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--base-blue);
    font-weight: 600;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(0, 82, 255, 0.2);
}

.contract-icon {
    font-size: 1.2em;
}

.contract-code {
    margin: 0;
    padding: 16px;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.75em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    overflow-x: auto;
    white-space: pre;
    max-height: 250px;
    overflow-y: auto;
}

.contract-code code {
    color: inherit;
}

.deploy-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.btn-deploy-action {
    background: var(--primary-gradient);
    color: white;
    font-size: 1.3em;
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 20px;
    box-shadow: 
        0 4px 25px rgba(0, 82, 255, 0.5),
        0 0 50px rgba(0, 57, 179, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-deploy-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-deploy-action:hover::before {
    left: 100%;
}

.btn-deploy-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 6px 35px rgba(0, 82, 255, 0.7),
        0 0 70px rgba(0, 57, 179, 0.5);
}

.btn-deploy-action:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-deploy-action:disabled {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-deploy-action.loading {
    pointer-events: none;
}

.btn-deploy-action.loading .deploy-icon {
    animation: rocketLaunch 0.8s ease-in-out infinite;
}

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

.deploy-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.deploy-status {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    min-height: 20px;
}

.deploy-status.error {
    color: #ff6b6b;
}

.deploy-status.success {
    color: var(--base-blue);
}

/* ==================== SPONSORED TRANSACTION BADGES ==================== */

.sponsored-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #00d26a 0%, #00a854 100%);
    color: #ffffff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 210, 106, 0.4);
    animation: sponsoredPulse 2s ease-in-out infinite;
    margin-right: 6px;
    vertical-align: middle;
}

.sponsored-badge::before {
    content: "⚡";
    font-size: 0.9em;
}

.sponsored-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #00d26a 0%, #00a854 100%);
    color: #ffffff;
    font-size: 0.65em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 4px rgba(0, 210, 106, 0.3);
    margin-left: 6px;
    vertical-align: middle;
}

.sponsored-badge-small::before {
    content: "⚡";
    font-size: 0.8em;
}

@keyframes sponsoredPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 210, 106, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(0, 210, 106, 0.7);
    }
}

/* Sponsored badge in GM status */
.gm-status .sponsored-badge {
    margin-right: 8px;
}

/* Sponsored badge in deploy result header */
.result-header .sponsored-badge {
    font-size: 0.6em;
    margin-right: 10px;
}

/* Sponsored indicator in history */
.history-item .sponsored-badge-small {
    margin-left: auto;
    margin-right: 8px;
}

/* Light theme adjustments for sponsored badges */
body.light-theme .sponsored-badge,
body.light-theme .sponsored-badge-small {
    background: linear-gradient(135deg, #00c462 0%, #009a4a 100%);
    box-shadow: 0 2px 8px rgba(0, 180, 90, 0.5);
}

/* Gasless indicator on buttons */
.btn-gasless-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #00d26a 0%, #00a854 100%);
    color: #ffffff;
    font-size: 0.6em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 210, 106, 0.4);
    z-index: 10;
}

/* ==================== END SPONSORED TRANSACTION BADGES ==================== */

.deploy-result {
    background: rgba(0, 82, 255, 0.1);
    border: 1px solid rgba(0, 82, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.result-header {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--base-blue);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 82, 255, 0.6);
}

.result-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.result-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.contract-address-link {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.85em;
    color: var(--base-blue);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    word-break: break-all;
    transition: all 0.3s ease;
}

.contract-address-link:hover {
    color: var(--base-blue-light);
    background: rgba(0, 82, 255, 0.15);
    text-decoration: underline;
}

.result-actions {
    margin-top: 15px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    min-height: auto;
    text-decoration: none;
    display: inline-flex;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.deploy-history {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.history-header {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 0.8em;
}

.history-item a {
    color: var(--base-blue);
    text-decoration: none;
    font-family: 'Courier New', Monaco, monospace;
    word-break: break-all;
    flex: 1;
}

.history-item a:hover {
    color: var(--base-blue-light);
    text-decoration: underline;
}

.history-item .history-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .deploy-modal {
        max-width: 95%;
        padding: 25px;
    }
    
    .contract-code {
        font-size: 0.65em;
        max-height: 180px;
    }
    
    .btn-deploy-action {
        padding: 14px 30px;
        font-size: 1.1em;
    }
}

/* Profile Modal Styles */
.profile-modal {
    max-width: 500px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
}

.profile-avatar-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--base-blue);
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.5);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 82, 255, 0.2);
    border: 3px solid var(--base-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    box-shadow: 0 0 20px rgba(0, 82, 255, 0.3);
}

.profile-info-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.3);
    transform: translateX(5px);
}

.profile-info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-weight: 500;
}

.profile-info-value {
    color: white;
    font-size: 1em;
    font-weight: 600;
}

.profile-info-value.highlight {
    color: var(--base-blue);
    text-shadow: 0 0 10px rgba(0, 82, 255, 0.6);
    font-size: 1.2em;
}

.profile-info-value.wallet-address-display {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--base-blue);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Light theme for profile */
body.light-theme .profile-info-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .profile-info-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.light-theme .profile-info-label {
    color: rgba(0, 0, 0, 0.6);
}

body.light-theme .profile-info-value {
    color: var(--text-color);
}

body.light-theme .profile-avatar-placeholder {
    background: rgba(0, 82, 255, 0.1);
}

@media (max-width: 768px) {
    .profile-modal {
        max-width: 95%;
        padding: 25px;
    }
    
    .profile-avatar,
    .profile-avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar-placeholder {
        font-size: 2.5em;
    }
    
    .profile-info-item {
        padding: 12px 14px;
    }
    
    .profile-info-value.wallet-address-display {
        max-width: 140px;
    }
}
