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

/* Auto-Update Notification */
.update-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #00aa00, #00cc00);
    padding: 0.8rem;
    z-index: 99999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.update-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: bold;
    color: #fff;
}

.update-btn {
    background: #fff;
    color: #00aa00;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.update-btn:hover {
    transform: scale(1.05);
}

.update-btn-later {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.update-btn-later:hover {
    background: rgba(255, 255, 255, 0.1);
}

.update-btn-stop {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.update-btn-stop:hover {
    background: #cc0000;
    transform: scale(1.05);
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(180deg, #001a33 0%, #003d66 50%, #004d7a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

@media (max-width: 1024px) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-height: 700px) {
    body {
        align-items: flex-start;
        padding-top: 0.5rem;
    }
}

#game-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.screen {
    display: none;
    padding: 2rem;
    background: rgba(0, 20, 40, 0.9);
    border-radius: 20px;
    border: 3px solid #00bfff;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

@media (max-width: 768px) {
    .screen {
        padding: 1rem;
        border-radius: 15px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 0.75rem;
        border-radius: 10px;
    }
}

.screen.active {
    display: block;
}

/* Title screen scrolling on mobile */
@media (max-width: 768px) {
    #title-screen {
        max-height: none;
        overflow: visible;
        margin-bottom: 2rem;
    }

    #game-container {
        padding-bottom: 2rem;
    }
}

/* Title Screen */
.game-title {
    font-size: 4rem;
    text-align: center;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff, 0 0 40px #00bfff;
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
}

.game-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #87ceeb;
    margin-bottom: 3rem;
}

.version-info {
    text-align: center;
    font-size: 0.85rem;
    color: #4a6a7a;
    margin-top: 2rem;
}

/* User Status Bar */
.user-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 50, 80, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 191, 255, 0.3);
}

#user-status-text {
    font-size: 0.9rem;
    color: #87ceeb;
}

#user-status-text.logged-in {
    color: #00ff88;
}

.user-btn {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    color: white;
    border: none;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s;
}

.user-btn:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    transform: scale(1.05);
}

.user-btn.logout {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
}

.user-btn.logout:hover {
    background: linear-gradient(135deg, #ff8080 0%, #ff6b6b 100%);
}

/* Auth Forms */
.auth-form {
    max-width: 350px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(0, 50, 80, 0.6);
    border-radius: 15px;
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: #87ceeb;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    background: rgba(0, 30, 50, 0.8);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    color: white;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.form-group input::placeholder {
    color: #5a7a8a;
}

.input-status {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 18px;
}

.input-status.available {
    color: #00ff88;
}

.input-status.taken {
    color: #ff6b6b;
}

.input-status.checking {
    color: #ffd700;
}

.auth-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 20px;
    text-align: center;
}

.auth-switch {
    margin-top: 1.5rem;
    color: #87ceeb;
    font-size: 0.9rem;
    text-align: center;
}

.auth-switch a {
    color: #00bfff;
    text-decoration: none;
    font-weight: bold;
}

.auth-switch a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

.menu-btn.primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    width: 100%;
    margin-top: 1rem;
}

.menu-btn.primary:hover {
    background: linear-gradient(135deg, #00ffa0 0%, #00dd7a 100%);
}

/* Profile Button */
.user-btn.profile-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.user-btn.profile-btn:hover {
    background: linear-gradient(135deg, #a569bd 0%, #9b59b6 100%);
}

/* Profile Screen */
.profile-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 50, 80, 0.6);
    border-radius: 15px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    margin-bottom: 1.5rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar canvas {
    background: rgba(0, 30, 50, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.profile-info {
    flex-grow: 1;
}

.profile-username {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.profile-level-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.profile-level-badge.beginner {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.profile-level-badge.intermediate {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.profile-level-badge.advanced {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.profile-level-badge.expert {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.profile-level-badge.godlike {
    background: linear-gradient(135deg, #c0392b 0%, #9b59b6 50%, #3498db 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.7);
    animation: godlike-glow 2s ease-in-out infinite;
}

@keyframes godlike-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(192, 57, 43, 0.7); }
    50% { box-shadow: 0 0 25px rgba(52, 152, 219, 0.7); }
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stat-card {
    background: rgba(0, 50, 80, 0.6);
    border-radius: 12px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.profile-stat-card:hover {
    border-color: #00bfff;
    transform: translateY(-2px);
}

.profile-stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #87ceeb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.profile-equipment {
    background: rgba(0, 50, 80, 0.6);
    border-radius: 15px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.profile-equipment h3 {
    color: #87ceeb;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 2px;
}

.profile-equipment-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.profile-equipment-item {
    text-align: center;
}

.profile-equipment-item canvas {
    background: rgba(0, 30, 50, 0.5);
    border-radius: 8px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    margin-bottom: 0.5rem;
}

.equipment-label {
    font-size: 0.7rem;
    color: #5a7a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.equipment-name {
    font-size: 0.9rem;
    color: #00ffff;
    font-weight: bold;
}

.profile-level-progress {
    background: rgba(0, 50, 80, 0.6);
    border-radius: 12px;
    border: 2px solid rgba(0, 191, 255, 0.3);
    padding: 1rem;
}

.level-progress-label {
    display: flex;
    justify-content: space-between;
    color: #87ceeb;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

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

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00bfff, #00ffff);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.level-progress-fill.beginner {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.level-progress-fill.intermediate {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.level-progress-fill.advanced {
    background: linear-gradient(90deg, #2980b9, #3498db);
}

.level-progress-fill.expert {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.level-progress-fill.godlike {
    background: linear-gradient(90deg, #c0392b, #9b59b6, #3498db);
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .menu-buttons {
        gap: 0.5rem;
    }

    .menu-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

.menu-btn {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.menu-btn:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6);
}

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

.game-stats-preview {
    margin-top: 3rem;
    text-align: center;
}

.stat-item {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0, 100, 150, 0.5);
    border-radius: 10px;
}

.stat-label {
    color: #87ceeb;
    margin-right: 1rem;
}

.stat-value {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Controls Screen */
.controls-info {
    max-width: 500px;
    margin: 2rem auto;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 8px;
}

.key {
    background: #333;
    color: #00ffff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.description {
    color: #87ceeb;
}

/* Sound Toggle Switch */
.sound-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 32px;
    border: 2px solid #555;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: #87ceeb;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #00bfff;
    border-color: #00ffff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
    background-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

/* Wardrobe Screen */
.wardrobe-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wardrobe-tab {
    background: rgba(0, 100, 150, 0.3);
    border: 2px solid #00bfff;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    color: #87ceeb;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.wardrobe-tab:hover {
    background: rgba(0, 150, 200, 0.4);
}

.wardrobe-tab.active {
    background: rgba(0, 191, 255, 0.3);
    border-color: #00ffff;
    color: #00ffff;
}

.wardrobe-content {
    max-height: 420px;
    overflow-y: auto;
}

.wardrobe-subtitle {
    text-align: center;
    color: #87ceeb;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.wardrobe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.skin-card {
    background: rgba(0, 100, 150, 0.3);
    border: 3px solid #00bfff;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.skin-card:hover {
    background: rgba(0, 150, 200, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}

.skin-card.selected {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.skin-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: #555;
}

.skin-card.locked:hover {
    transform: none;
    box-shadow: none;
    background: rgba(0, 100, 150, 0.3);
}

.skin-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem auto;
    display: block;
}

.skin-name {
    color: #00ffff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.skin-unlock {
    color: #87ceeb;
    font-size: 0.75rem;
}

.skin-card.locked .skin-unlock {
    color: #ff6b6b;
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #555;
    pointer-events: none;
}

.selected-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #00ff00;
    color: #000;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: bold;
}

/* Mobile wardrobe adjustments */
@media (max-width: 768px) {
    .wardrobe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-height: 350px;
    }

    .skin-preview {
        width: 60px;
        height: 60px;
    }

    .skin-name {
        font-size: 0.8rem;
    }

    .skin-unlock {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .wardrobe-tabs {
        gap: 0.3rem;
    }

    .wardrobe-tab {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .wardrobe-content {
        max-height: 320px;
    }

    .wardrobe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-height: 300px;
    }

    .skin-card {
        padding: 0.5rem;
    }

    .skin-preview {
        width: 50px;
        height: 50px;
    }

    .enemy-skin-row {
        gap: 0.3rem;
    }

    .skin-card.mini {
        padding: 0.3rem;
        min-width: 55px;
    }

    .skin-card.mini .skin-preview {
        width: 40px;
        height: 40px;
    }

    .skin-name.mini {
        font-size: 0.55rem;
    }
}

/* Enemy Wardrobe Sections */
.enemy-section {
    width: 100%;
    margin-bottom: 1rem;
}

.enemy-section-title {
    color: #00ffff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    border-left: 3px solid #00bfff;
}

.enemy-skin-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: #00bfff transparent;
}

.enemy-skin-row::-webkit-scrollbar {
    height: 6px;
}

.enemy-skin-row::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 3px;
}

.skin-card.mini {
    min-width: 70px;
    padding: 0.4rem;
    flex-shrink: 0;
}

.skin-card.mini.boss {
    min-width: 85px;
}

.skin-card.mini .skin-preview {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.25rem auto;
}

.skin-card.mini.boss .skin-preview {
    width: 70px;
    height: 70px;
}

.skin-name.mini {
    font-size: 0.7rem;
}

.selected-badge.mini {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    top: 2px;
    right: 2px;
}

/* High Scores Screen */
.highscores-list {
    max-width: 600px;
    margin: 2rem auto;
    max-height: 400px;
    overflow-y: auto;
}

.highscore-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 8px;
    border-left: 4px solid #00bfff;
}

.highscore-entry.top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(0, 100, 150, 0.3));
    border-left-color: gold;
}

.highscore-entry.top-2 {
    background: linear-gradient(90deg, rgba(128, 128, 128, 0.35), rgba(0, 100, 150, 0.3));
    border-left-color: #808080;
}

.highscore-entry.top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.3), rgba(0, 100, 150, 0.3));
    border-left-color: #cd7f32;
}

.medal-badge {
    font-size: 0.65rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-align: center;
}

.medal-gold {
    background: linear-gradient(135deg, #ffd700, #ffec8b);
    color: #5c4a00;
    box-shadow: 0 0 5px gold;
}

.medal-silver {
    background: linear-gradient(135deg, #808080, #a0a0a0);
    color: #ffffff;
    box-shadow: 0 0 5px #808080;
}

.medal-bronze {
    background: linear-gradient(135deg, #cd7f32, #daa06d);
    color: #3d2314;
    box-shadow: 0 0 5px #cd7f32;
}

.medal-quartz {
    background: linear-gradient(135deg, #e6e6fa, #fff0f5);
    color: #6a5acd;
    box-shadow: 0 0 5px #e6e6fa;
}

.highscore-entry.top-4 {
    background: linear-gradient(90deg, rgba(230, 230, 250, 0.25), rgba(0, 100, 150, 0.3));
    border-left-color: #e6e6fa;
}

.highscore-rank {
    color: #00ffff;
    font-weight: bold;
    min-width: 40px;
}

.highscore-name {
    flex: 1;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.highscore-score {
    color: #00ff00;
    font-weight: bold;
}

.highscore-difficulty {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-easy {
    background: #44ff44;
    color: #000;
}

.difficulty-normal {
    background: #4488ff;
    color: #fff;
}

.difficulty-hard {
    background: #ff8844;
    color: #000;
}

.difficulty-expert {
    background: #ff4444;
    color: #fff;
}

.difficulty-god {
    background: linear-gradient(90deg, #ff0000, #ff00ff, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000);
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

/* Profile button in leaderboards */
.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    margin: 0 0.3rem;
    opacity: 0.7;
    transition: all 0.2s;
    border-radius: 4px;
}

.profile-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Profile Modal */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

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

.profile-modal {
    background: linear-gradient(180deg, #1a3a4a 0%, #0d2030 100%);
    border: 2px solid #00bfff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.3);
    animation: slideIn 0.3s ease;
}

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

.profile-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4444;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal {
    position: relative;
}

.profile-modal-name {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 1.5rem;
}

.profile-modal-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.profile-stat {
    background: rgba(0, 100, 150, 0.3);
    padding: 0.8rem;
    border-radius: 8px;
    flex: 1;
}

.profile-stat-value {
    display: block;
    font-size: 1.3rem;
    color: #00ff00;
    font-weight: bold;
}

.profile-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #87ceeb;
    margin-top: 0.3rem;
}

.profile-modal-since {
    color: #888;
    font-size: 0.8rem;
    margin: 1rem 0;
}

.profile-modal-difficulty {
    color: #fff;
    font-size: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.difficulty-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 0.5rem;
}

.difficulty-easy {
    background: #44ff44;
    color: #000;
}

.difficulty-normal {
    background: #4488ff;
    color: #fff;
}

.difficulty-hard {
    background: #ff8844;
    color: #000;
}

.difficulty-expert {
    background: #ff4444;
    color: #fff;
}

.difficulty-god {
    background: linear-gradient(90deg, #ff0000, #ff00ff, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000);
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

.profile-modal-scores {
    margin-top: 1rem;
    text-align: left;
}

.profile-modal-scores h3 {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.profile-score-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 50, 80, 0.5);
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.profile-score-entry span:first-child {
    color: #00ff00;
}

.profile-score-entry span:last-child {
    color: #87ceeb;
}

.profile-modal-best {
    margin-top: 1rem;
    text-align: center;
}

.profile-modal-best h3 {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.profile-best-score {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 1rem;
}

.best-score-value {
    display: block;
    font-size: 1.8rem;
    color: #ffd700;
    font-weight: bold;
}

.best-score-level {
    display: block;
    font-size: 0.9rem;
    color: #87ceeb;
    margin-top: 0.3rem;
}

/* Profile Modal - Equipped Items */
.profile-modal-equipped {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 50, 80, 0.4);
    border-radius: 12px;
}

.profile-equipped-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-equipped-item canvas {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #00bfff;
}

.equipped-label {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Profile Modal - Collection Stats */
.profile-modal-collection {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(0, 100, 100, 0.2);
    border-radius: 8px;
}

.collection-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collection-label {
    color: #87ceeb;
    font-size: 0.9rem;
}

.collection-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 1rem;
}

.loading {
    text-align: center;
    color: #87ceeb;
    padding: 2rem;
}

/* Daily Challenge Screen */
.daily-date {
    text-align: center;
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.daily-stats {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.daily-target,
.daily-best {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 8px;
}

.daily-target .label,
.daily-best .label {
    color: #87ceeb;
}

.daily-target .value {
    font-size: 1.8rem;
    color: #00ffff;
    font-weight: bold;
}

.daily-best .value {
    font-size: 1.5rem;
    color: #00ff00;
    font-weight: bold;
}

.badge {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

.badge.hidden {
    display: none;
}

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

.daily-leaderboard {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.daily-leaderboard h3 {
    text-align: center;
    color: #00ffff;
    margin-bottom: 1rem;
}

.leaderboard-list {
    max-height: 200px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 6px;
    border-left: 3px solid #00bfff;
}

.leaderboard-entry.top-score {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(0, 100, 150, 0.3));
    border-left-color: gold;
}

.leaderboard-rank {
    color: #00ffff;
    font-weight: bold;
    min-width: 35px;
}

.leaderboard-name {
    flex: 1;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-score {
    color: #00ff00;
    font-weight: bold;
}

.menu-btn.primary {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
    font-weight: bold;
}

.menu-btn.primary:hover {
    background: linear-gradient(135deg, #00ffaa 0%, #00dd77 100%);
}

#daily-screen .menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Difficulty Screen */
.difficulty-subtitle {
    text-align: center;
    color: #87ceeb;
    margin-bottom: 1.5rem;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 500px) {
    .difficulty-grid {
        grid-template-columns: 1fr;
    }
}

.difficulty-card {
    background: rgba(0, 100, 150, 0.3);
    border: 2px solid #00bfff;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.difficulty-card:hover {
    background: rgba(0, 150, 200, 0.4);
    transform: translateY(-2px);
}

.difficulty-card.selected {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.4), rgba(0, 100, 200, 0.4));
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.difficulty-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.difficulty-card.selected .difficulty-name {
    color: #ffffff;
}

.difficulty-desc {
    font-size: 0.85rem;
    color: #87ceeb;
    line-height: 1.3;
}

.difficulty-card[data-difficulty="peaceful"] .difficulty-name { color: #90EE90; }
.difficulty-card[data-difficulty="easy"] .difficulty-name { color: #98FB98; }
.difficulty-card[data-difficulty="normal"] .difficulty-name { color: #00BFFF; }
.difficulty-card[data-difficulty="hard"] .difficulty-name { color: #FFA500; }
.difficulty-card[data-difficulty="expert"] .difficulty-name { color: #FF6347; }
.difficulty-card[data-difficulty="god"] .difficulty-name { color: #FF0000; }

.difficulty-card[data-difficulty="god"] {
    border-color: #FF4444;
}

.difficulty-card[data-difficulty="god"].selected {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3), rgba(100, 0, 0, 0.4));
    border-color: #FF0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.difficulty-card[data-difficulty="nightmare"] .difficulty-name { color: #8B00FF; }

.difficulty-card[data-difficulty="nightmare"] {
    border-color: #8B00FF;
    animation: nightmare-pulse 2s infinite;
}

.difficulty-card[data-difficulty="nightmare"].selected {
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(50, 0, 100, 0.4));
    border-color: #8B00FF;
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.6);
}

@keyframes nightmare-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(139, 0, 255, 0.3); }
    50% { box-shadow: 0 0 15px rgba(139, 0, 255, 0.6); }
}

/* Auto Difficulty */
.difficulty-card[data-difficulty="auto"] .difficulty-name { color: #00FF88; }

.difficulty-card[data-difficulty="auto"] {
    border-color: #00FF88;
    animation: auto-pulse 2s infinite;
}

.difficulty-card[data-difficulty="auto"].selected {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 100, 50, 0.4));
    border-color: #00FF88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

@keyframes auto-pulse {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.6); }
}

/* Auto Difficulty Select Modal */
.auto-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.auto-modal-content {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.95), rgba(0, 20, 40, 0.98));
    border: 3px solid #00FF88;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.auto-modal-content h3 {
    color: #00FF88;
    font-size: 24px;
    margin-bottom: 10px;
}

.auto-modal-subtitle {
    color: #88CCFF;
    font-size: 14px;
    margin-bottom: 20px;
}

.auto-diff-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.auto-diff-option {
    background: rgba(0, 191, 255, 0.1);
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.auto-diff-option:hover {
    background: rgba(0, 191, 255, 0.2);
    border-color: #00BFFF;
    transform: scale(1.02);
}

.auto-diff-option.selected {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00FF88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.auto-diff-name {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
}

.auto-diff-option[data-difficulty="easy"] .auto-diff-name { color: #98FB98; }
.auto-diff-option[data-difficulty="normal"] .auto-diff-name { color: #00BFFF; }
.auto-diff-option[data-difficulty="hard"] .auto-diff-name { color: #FFA500; }
.auto-diff-option[data-difficulty="expert"] .auto-diff-name { color: #FF6347; }
.auto-diff-option[data-difficulty="god"] .auto-diff-name { color: #FF0000; }
.auto-diff-option[data-difficulty="nightmare"] .auto-diff-name { color: #8B00FF; }

.auto-modal-close {
    margin-top: 10px;
}

/* FPS Counter */
.fps-counter {
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #00FF00;
    font-family: monospace;
    font-weight: bold;
}

#fps-display {
    color: #00FF00;
}

/* +1 Bubble Counter */
.plus-one-counter {
    position: absolute;
    top: 10px;
    right: 60px;
    background: linear-gradient(135deg, rgba(0, 150, 200, 0.8), rgba(0, 100, 150, 0.9));
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid #00ffff;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    z-index: 100;
}

.plus-one-icon {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
    font-weight: bold;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    border: 1px solid #00ffff;
}

#plus-one-display {
    color: #00ffff;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

#plus-one-display.pulse {
    animation: plusOnePulse 0.2s ease-out;
}

@keyframes plusOnePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ffffff; }
    100% { transform: scale(1); }
}

/* FPS Limit Input */
.fps-limit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fps-limit-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

#fps-limit-input {
    width: 60px;
    padding: 5px 8px;
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid #00bfff;
    border-radius: 5px;
    color: #00ffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

#fps-limit-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.fps-label {
    color: #88ccff;
    font-size: 12px;
}

/* Rain Warning UI */
.rain-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 30, 0.9);
    border: 3px solid #8B00FF;
    border-radius: 15px;
    padding: 20px 40px;
    text-align: center;
    z-index: 1000;
    animation: warning-flash 0.5s infinite alternate;
}

@keyframes warning-flash {
    0% { border-color: #8B00FF; box-shadow: 0 0 20px rgba(139, 0, 255, 0.5); }
    100% { border-color: #FF0000; box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); }
}

.rain-warning-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.rain-warning-text {
    font-size: 24px;
    color: #FF6666;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rain-warning-countdown {
    font-size: 48px;
    color: #FFFFFF;
    font-weight: bold;
}

.rain-warning-hint {
    font-size: 14px;
    color: #00FFFF;
    margin-top: 10px;
}

/* Umbrella Button */
.umbrella-btn {
    position: fixed;
    bottom: 200px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(50, 0, 100, 0.5));
    border: 3px solid #8B00FF;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.umbrella-btn:active {
    transform: scale(0.9);
    background: linear-gradient(135deg, rgba(139, 0, 255, 0.6), rgba(80, 0, 150, 0.8));
    box-shadow: 0 0 20px rgba(139, 0, 255, 0.8);
}

.umbrella-btn svg {
    width: 32px;
    height: 32px;
    fill: #FFFFFF;
}

.umbrella-btn span {
    font-size: 10px;
    color: #FFFFFF;
    margin-top: 2px;
    font-weight: bold;
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 20, 40, 0.8);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
}

.settings-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 191, 255, 0.2);
    border: 2px solid #00bfff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #00ffff;
}

.settings-btn:hover {
    background: rgba(0, 191, 255, 0.4);
    transform: translateY(-50%) rotate(90deg);
}

.settings-btn:active {
    background: rgba(0, 191, 255, 0.6);
}

.settings-btn svg {
    pointer-events: none;
}

.stat-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-display .label {
    color: #87ceeb;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-display .value {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: bold;
}

#game-canvas {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #001a33 0%, #003d66 100%);
    border: 3px solid #00bfff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 20, 40, 0.95);
    padding: 3rem;
    border-radius: 15px;
    border: 3px solid #00bfff;
    text-align: center;
    z-index: 10;
}

.overlay.active {
    display: block;
}

.overlay h2 {
    color: #00ffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overlay p {
    color: #87ceeb;
    margin-bottom: 2rem;
}

/* Leave Party Button (multiplayer) */
.leave-party-btn {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%) !important;
    border-color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
}

.leave-party-btn:hover {
    background: linear-gradient(180deg, #ff0000 0%, #cc0000 100%) !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6) !important;
}

/* Game Over Screen */
.game-over-title {
    text-align: center;
    font-size: 3rem;
    color: #ff6b6b;
    text-shadow: 0 0 20px #ff6b6b;
    margin-bottom: 2rem;
}

.final-stats {
    max-width: 500px;
    margin: 2rem auto;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 8px;
}

.stat-row .label {
    color: #87ceeb;
}

.stat-row .value {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.3rem;
}

.highscore-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid gold;
    border-radius: 10px;
    display: none;
}

.highscore-form.active {
    display: block;
}

.highscore-form h3 {
    color: gold;
    text-align: center;
    margin-bottom: 1rem;
}

#player-name {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid #00bfff;
    border-radius: 5px;
    color: #00ffff;
    margin-bottom: 1rem;
    text-align: center;
}

#player-name::placeholder {
    color: #87ceeb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .menu-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .game-over-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px #00ffff, 0 0 40px #00bfff;
    }
    50% {
        text-shadow: 0 0 30px #00ffff, 0 0 60px #00bfff, 0 0 80px #0080ff;
    }
}

.game-title {
    animation: glow 2s infinite;
}

/* Mobile Touch Controls */
.mobile-controls {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    gap: 1rem;
    background: rgba(0, 20, 40, 0.5);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.shoot-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    border: 3px solid #ff3838;
    border-radius: 15px;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.shoot-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #ff3838 100%);
}

.shoot-btn span {
    margin-top: 0.3rem;
    font-family: 'Courier New', monospace;
}

.shoot-btn svg {
    pointer-events: none;
}

.shield-btn {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    border: 3px solid #00ffff;
    border-radius: 15px;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.shield-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.6);
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
}

.shield-btn span {
    margin-top: 0.3rem;
    font-family: 'Courier New', monospace;
}

.shield-btn svg {
    pointer-events: none;
}

.mirror-btn {
    background: linear-gradient(135deg, #aa66ff 0%, #8833dd 100%);
    border: 3px solid #cc99ff;
    border-radius: 15px;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(170, 102, 255, 0.4);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.mirror-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(170, 102, 255, 0.6);
    background: linear-gradient(135deg, #9955ee 0%, #7722cc 100%);
}

.mirror-btn span {
    margin-top: 0.3rem;
    font-family: 'Courier New', monospace;
}

.mirror-btn svg {
    pointer-events: none;
}

.knockback-btn {
    background: linear-gradient(135deg, #ff4500 0%, #cc3300 100%);
    border: 3px solid #ff6347;
    border-radius: 15px;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.knockback-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.6);
    background: linear-gradient(135deg, #ee3300 0%, #bb2200 100%);
}

.knockback-btn span {
    margin-top: 0.3rem;
    font-family: 'Courier New', monospace;
}

.knockback-btn svg {
    pointer-events: none;
}

.movement-control {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.touch-slider {
    position: relative;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 100, 150, 0.4) 0%, rgba(0, 150, 200, 0.4) 100%);
    border: 3px solid #00bfff;
    border-radius: 15px;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.slider-thumb {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ffff 0%, #00bfff 100%);
    border: 3px solid #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: background 0.2s;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.6);
    color: rgba(0, 20, 40, 0.8);
}

.slider-thumb:active {
    cursor: grabbing;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.8);
}

.slider-thumb svg {
    pointer-events: none;
}

.control-label {
    color: #87ceeb;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
}

/* Hide mobile controls on large desktop only (over 1280px) */
@media (min-width: 1281px) {
    .mobile-controls {
        display: none;
    }
}

/* Show touch controls on tablets (768px - 1280px) */
@media (min-width: 769px) and (max-width: 1280px) {
    .mobile-controls {
        display: flex;
        padding: 1rem;
        gap: 1.5rem;
    }

    .action-buttons {
        gap: 1rem;
    }

    .action-btn {
        width: 70px;
        height: 70px;
    }

    .action-btn svg {
        width: 35px;
        height: 35px;
    }

    .action-btn span {
        font-size: 0.7rem;
    }

    .movement-slider {
        width: 280px;
        height: 60px;
    }

    .slider-thumb {
        width: 55px;
        height: 55px;
    }

    #game-canvas {
        height: 500px !important;
        max-height: 55vh;
    }
}

/* Show mobile controls and optimize layout for mobile */
@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }

    #game-screen {
        padding: 1rem;
        max-height: 100vh;
        overflow-y: auto;
    }

    .game-header {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .stat-display .label {
        font-size: 0.7rem;
    }

    .stat-display .value {
        font-size: 1.2rem;
    }

    .settings-btn {
        width: 40px;
        height: 40px;
        right: 0.5rem;
    }

    .settings-btn svg {
        width: 20px;
        height: 20px;
    }

    #game-canvas {
        border-width: 2px;
        height: 400px !important;
        max-height: 50vh;
    }

    .shoot-btn,
    .shield-btn,
    .mirror-btn,
    .knockback-btn {
        width: 80px;
        height: 80px;
        font-size: 0.8rem;
    }

    .touch-slider {
        height: 90px;
    }

    .slider-thumb {
        width: 70px;
        height: 70px;
    }

    .movement-control {
        flex: 2;
        min-width: 200px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #game-screen {
        padding: 0.5rem;
    }

    .game-header {
        padding: 0.4rem;
        margin-bottom: 0.4rem;
    }

    #game-canvas {
        height: 350px !important;
        max-height: 45vh;
    }

    .mobile-controls {
        padding: 0.4rem;
        gap: 0.5rem;
        margin-top: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .shoot-btn,
    .shield-btn,
    .mirror-btn,
    .knockback-btn {
        width: 70px;
        height: 70px;
        font-size: 0.65rem;
    }

    .shoot-btn svg,
    .shield-btn svg,
    .mirror-btn svg,
    .knockback-btn svg {
        width: 28px;
        height: 28px;
    }

    .touch-slider {
        height: 80px;
    }

    .slider-thumb {
        width: 65px;
        height: 65px;
    }

    .slider-thumb svg {
        width: 30px;
        height: 30px;
    }

    .movement-control {
        flex: 2;
        min-width: 150px;
    }

    .stat-display .label {
        font-size: 0.6rem;
    }

    .stat-display .value {
        font-size: 1rem;
    }

    .control-label {
        font-size: 0.75rem;
    }

    .settings-btn {
        width: 35px;
        height: 35px;
    }

    .settings-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Shop Screen */
.shop-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.shop-coins {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 2px solid #ffd700;
}

.coin-icon {
    font-size: 1.5rem;
}

.shop-coins #shop-coin-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

.coin-value {
    color: #ffd700 !important;
}

.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-tab {
    background: rgba(0, 100, 150, 0.3);
    border: 2px solid #00bfff;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    color: #87ceeb;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.shop-tab:hover {
    background: rgba(0, 150, 200, 0.4);
}

.shop-tab.active {
    background: rgba(0, 191, 255, 0.3);
    border-color: #00ffff;
    color: #00ffff;
}

.shop-content {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
}

.shop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.shop-item:hover {
    background: rgba(0, 150, 200, 0.4);
}

.shop-item.owned {
    border-left: 4px solid #00ff00;
}

.shop-item.selected {
    border-color: #00ffff;
    background: rgba(0, 191, 255, 0.2);
}

.shop-item.equipped {
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.15);
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-weight: bold;
    color: #00ffff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.shop-item-desc {
    color: #87ceeb;
    font-size: 0.8rem;
}

.shop-item-price {
    color: #ffd700;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.shop-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.shop-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.shop-btn.buy {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.shop-btn.buy:hover {
    background: linear-gradient(135deg, #ffe44d, #ffbb33);
    transform: translateY(-1px);
}

.shop-btn.select {
    background: linear-gradient(135deg, #00bfff, #0080ff);
    color: #fff;
}

.shop-btn.select:hover {
    background: linear-gradient(135deg, #00d4ff, #0099ff);
}

.shop-btn.equip {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}

.shop-btn.equip:hover {
    background: linear-gradient(135deg, #00ffaa, #00dd77);
}

.shop-btn.unequip {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
}

.shop-btn.unequip:hover {
    background: linear-gradient(135deg, #ff7f7f, #ff5a5a);
}

.shop-btn:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.shop-item-status {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 0, 0.15);
    border-radius: 6px;
}

.shop-item-count {
    background: rgba(0, 191, 255, 0.2);
    color: #00ffff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

/* Shop preview canvas */
.shop-item-preview {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 8px;
    background: rgba(0, 20, 40, 0.5);
}

/* Mobile adjustments for shop */
@media (max-width: 768px) {
    .shop-tabs {
        gap: 0.3rem;
    }

    .shop-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .shop-content {
        max-height: 300px;
    }

    .shop-item {
        padding: 0.6rem 0.8rem;
        flex-wrap: wrap;
    }

    .shop-item-preview {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }

    .shop-item-name {
        font-size: 0.9rem;
    }

    .shop-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .shop-tab {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .shop-content {
        max-height: 250px;
    }

    .shop-item-preview {
        width: 35px;
        height: 35px;
    }

    .shop-item-actions {
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Shop Stars Display */
.shop-stars {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #2a1a4a, #4a2a6a);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 2px solid #aa66ff;
}

.shop-stars .star-icon {
    font-size: 1.1rem;
}

#shop-star-count {
    font-weight: bold;
    color: #ffdd00;
    font-size: 1rem;
}

/* Special Shop Tab */
.shop-tab.special-tab {
    background: linear-gradient(135deg, #4a2a6a, #6a3a8a);
    border-color: #aa66ff;
    color: #ffdd00;
}

.shop-tab.special-tab:hover {
    background: linear-gradient(135deg, #5a3a7a, #7a4a9a);
}

.shop-tab.special-tab.active {
    background: linear-gradient(135deg, #6a4a8a, #8a5aaa);
    border-color: #ffdd00;
    box-shadow: 0 0 15px rgba(255, 221, 0, 0.5);
}

/* Special Shop Lock Overlay */
.special-shop-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(40, 20, 60, 0.9), rgba(60, 30, 80, 0.9));
    border: 3px solid #aa66ff;
    border-radius: 20px;
    margin: 1rem;
}

.special-lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: starPulse 2s infinite ease-in-out;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.special-shop-lock h3 {
    color: #ffdd00;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.special-shop-lock p {
    color: #87ceeb;
    margin-bottom: 1rem;
}

.special-lock-progress {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 1rem 0;
}

.special-lock-progress .star-count {
    color: #ffdd00;
}

.special-lock-progress .star-required {
    color: #aa66ff;
}

.special-lock-hint {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* Special Shop Unlocked Content */
.special-stars-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffdd00;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(40, 20, 60, 0.8), rgba(60, 30, 80, 0.8));
    border: 2px solid #aa66ff;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.special-stars-display .star-icon {
    font-size: 1.5rem;
}

.special-section-header {
    background: linear-gradient(90deg, transparent, rgba(170, 102, 255, 0.3), transparent);
    color: #aa66ff;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    margin: 1rem 0 0.5rem;
    border-top: 1px solid rgba(170, 102, 255, 0.3);
    border-bottom: 1px solid rgba(170, 102, 255, 0.3);
}

/* Special Shop Items */
.shop-item.special-item {
    background: linear-gradient(135deg, rgba(40, 20, 60, 0.8), rgba(60, 30, 80, 0.6));
    border-color: #aa66ff;
}

.shop-item.special-item:hover {
    border-color: #ffdd00;
    box-shadow: 0 0 15px rgba(255, 221, 0, 0.3);
}

.shop-item.special-item.owned {
    border-color: #00ff00;
    background: linear-gradient(135deg, rgba(20, 60, 40, 0.8), rgba(30, 80, 50, 0.6));
}

.shop-item-name.special-name {
    color: #ffdd00;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.5);
}

.shop-btn.special-buy {
    background: linear-gradient(135deg, #6a3a8a, #8a4aaa);
    border-color: #aa66ff;
}

.shop-btn.special-buy:hover:not(:disabled) {
    background: linear-gradient(135deg, #7a4a9a, #9a5aba);
    border-color: #ffdd00;
}

.shop-item-status.special-owned {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Key Room */
.keyroom-header {
    text-align: center;
    margin-bottom: 1rem;
}

.key-inventory {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.key-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 10px;
    border: 2px solid #444;
    min-width: 50px;
}

.key-icon {
    font-size: 24px;
}

.key-icon.white-key { color: #ffffff; text-shadow: 0 0 10px #cccccc; }
.key-icon.orange-key { color: #ff8800; text-shadow: 0 0 10px #ffaa00; }
.key-icon.epic-key { color: #ff6600; text-shadow: 0 0 10px #ff9900; }
.key-icon.green-key { color: #00ff00; text-shadow: 0 0 10px #44ff44; }
.key-icon.blue-key { color: #00aaff; text-shadow: 0 0 10px #00ddff; }
.key-icon.purple-key { color: #aa00ff; text-shadow: 0 0 10px #dd44ff; }

.key-count {
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
}

.total-keys {
    color: #87ceeb;
    font-size: 14px;
}

.keyroom-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(50, 50, 50, 0.8);
    border: 3px solid #666;
    border-radius: 15px;
    margin: 1rem;
}

.keyroom-lock .lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.keyroom-lock h3 {
    color: #ff6666;
    margin-bottom: 0.5rem;
}

.keyroom-lock p {
    color: #aaaaaa;
}

.keyroom-lock .lock-hint {
    color: #666;
    font-size: 12px;
    margin-top: 0.5rem;
}

.keyroom-content {
    padding: 1rem;
}

.chest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.chest {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid;
}

.chest-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.chest-label {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 0.25rem;
}

.chest-cost {
    font-size: 10px;
    opacity: 0.8;
}

.chest.white-chest { background: linear-gradient(135deg, #333, #555); border-color: #ffffff; color: #ffffff; }
.chest.orange-chest { background: linear-gradient(135deg, #442200, #663300); border-color: #ff8800; color: #ff8800; }
.chest.epic-chest { background: linear-gradient(135deg, #331100, #552200); border-color: #ff6600; color: #ff6600; }
.chest.green-chest { background: linear-gradient(135deg, #003300, #005500); border-color: #00ff00; color: #00ff00; }
.chest.blue-chest { background: linear-gradient(135deg, #002244, #003366); border-color: #00aaff; color: #00aaff; }
.chest.purple-chest { background: linear-gradient(135deg, #220033, #440055); border-color: #aa00ff; color: #aa00ff; }
.chest.infinite-chest { background: linear-gradient(135deg, #332200, #554400); border-color: #ffd700; color: #ffd700; }
.chest.infinite-chest .infinite-icon { font-size: 36px; }
.chest.infinite-chest.affordable { cursor: pointer; opacity: 1; }
.chest.infinite-chest.affordable:hover { transform: scale(1.05); box-shadow: 0 0 25px #ffd700; }
.chest.infinite-chest.too-expensive { opacity: 0.4; cursor: not-allowed; }
.chest.infinite-chest.shake { animation: chestShake 0.5s ease; }

@keyframes chestShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.chest.available:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px currentColor;
}

.chest.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Chest Reward Modal */
.chest-reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.reward-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #ffd700;
    text-align: center;
    min-width: 250px;
    animation: rewardPop 0.5s ease-out;
}

@keyframes rewardPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.reward-content h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.reward-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.reward-text {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Key Notification Animation */
@keyframes keyNotify {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(0.8); }
}

/* Mobile responsive for key room */
@media (max-width: 480px) {
    .chest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .key-slot {
        padding: 5px 8px;
        min-width: 40px;
    }

    .key-icon {
        font-size: 18px;
    }
}

/* Map Screen */
.map-subtitle {
    text-align: center;
    color: #87ceeb;
    margin-bottom: 1rem;
}

.map-progress {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 100, 150, 0.3);
    border-radius: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.map-progress-label {
    color: #87ceeb;
    margin-right: 0.5rem;
}

.map-progress-value {
    color: #00ffff;
    font-weight: bold;
    font-size: 1.3rem;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
}

.map-level {
    background: rgba(0, 100, 150, 0.3);
    border: 3px solid #00bfff;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.map-level:hover {
    background: rgba(0, 150, 200, 0.4);
    transform: translateY(-2px);
}

.map-level.locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
}

.map-level.locked:hover {
    transform: none;
    background: rgba(0, 100, 150, 0.3);
}

.map-level.completed {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.map-level.current {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.map-level-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 0.25rem;
}

.map-level.locked .map-level-number {
    color: #666;
}

.map-level.completed .map-level-number {
    color: #00ff00;
}

.map-level-name {
    font-size: 0.7rem;
    color: #87ceeb;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-level-score {
    font-size: 0.65rem;
    color: #ffd700;
}

.map-level.locked .map-level-score {
    color: #888;
}

.map-level-reward {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
}

.map-level.completed .map-level-reward {
    background: linear-gradient(135deg, #00ff00, #00cc00);
}

.map-level-lock {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.map-level-check {
    position: absolute;
    top: -5px;
    left: -5px;
    font-size: 1rem;
}

/* Mobile adjustments for map */
@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        max-height: 300px;
    }

    .map-level {
        padding: 0.5rem;
    }

    .map-level-number {
        font-size: 1.2rem;
    }

    .map-level-name {
        font-size: 0.6rem;
    }

    .map-level-score {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .map-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .map-level {
        padding: 0.4rem;
    }

    .map-level-number {
        font-size: 1rem;
    }
}

/* Custom Levels Screen */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 40, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.lock-overlay.hidden {
    display: none;
}

.lock-content {
    text-align: center;
    padding: 2rem;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.lock-content h3 {
    color: #00bfff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lock-content p {
    color: #87ceeb;
    margin-bottom: 1.5rem;
}

.menu-btn.secondary {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    margin-top: 0.5rem;
}

.custom-levels-content {
    padding: 1rem;
    max-height: 100%;
    overflow-y: auto;
}

.custom-levels-content h2 {
    text-align: center;
    color: #00bfff;
    margin-bottom: 1rem;
}

.custom-levels-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.custom-tab {
    background: rgba(0, 100, 150, 0.3);
    border: 2px solid #00bfff;
    color: #87ceeb;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s;
}

.custom-tab:hover {
    background: rgba(0, 150, 200, 0.4);
}

.custom-tab.active {
    background: rgba(0, 191, 255, 0.4);
    border-color: #00ffff;
    color: #fff;
}

.custom-tab-content {
    display: none;
}

.custom-tab-content.active {
    display: block;
}

.creator-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.canvas-section {
    background: rgba(0, 50, 80, 0.5);
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid rgba(0, 191, 255, 0.3);
}

.canvas-label {
    color: #00bfff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

#custom-level-canvas {
    border: 2px solid #00bfff;
    border-radius: 5px;
    cursor: crosshair;
    background: #1a3a4a;
    display: block;
    max-width: 100%;
}

.drawing-tools {
    margin-top: 0.75rem;
}

.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.brush-sizes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.brush-btn {
    background: rgba(0, 100, 150, 0.5);
    border: 2px solid #00bfff;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.brush-btn.active {
    background: rgba(0, 191, 255, 0.5);
    border-color: #00ffff;
}

.canvas-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.tool-btn {
    background: rgba(100, 50, 50, 0.5);
    border: 2px solid #ff6b6b;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.tool-btn:hover {
    background: rgba(150, 50, 50, 0.6);
}

.settings-section {
    background: rgba(0, 50, 80, 0.5);
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid rgba(0, 191, 255, 0.3);
    min-width: 200px;
}

.settings-section .form-group {
    margin-bottom: 1rem;
}

.settings-section label {
    display: block;
    color: #00bfff;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.settings-section input,
.settings-section select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 30, 50, 0.8);
    border: 2px solid #00bfff;
    border-radius: 5px;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.settings-section select {
    cursor: pointer;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.level-card {
    background: rgba(0, 50, 80, 0.6);
    border: 2px solid #00bfff;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.level-card:hover {
    transform: translateY(-3px);
    border-color: #00ffff;
}

.level-card-preview {
    width: 100%;
    height: 80px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 191, 255, 0.3);
}

.level-card-name {
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.level-card-score {
    color: #ffd700;
    font-size: 0.75rem;
}

.level-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.level-card-btn {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    border: none;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
}

.level-card-btn.delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #cc4444 100%);
}

.level-card-btn.edit-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000;
}

.level-card-btn.copy-btn {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.no-levels, .coming-soon {
    text-align: center;
    padding: 2rem;
    color: #87ceeb;
}

.no-levels p, .coming-soon p {
    margin: 0.5rem 0;
}

#custom-levels-back {
    display: block;
    margin: 1rem auto 0;
    max-width: 200px;
}

@media (max-width: 600px) {
    .creator-layout {
        flex-direction: column;
    }

    #custom-level-canvas {
        width: 100%;
        height: auto;
    }

    .settings-section {
        width: 100%;
    }
}

/* OG Backgrounds */
.og-backgrounds {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 191, 255, 0.3);
}

.og-label {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.og-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.og-btn {
    background: linear-gradient(135deg, #4a0080 0%, #800080 100%);
    border: 2px solid #9932cc;
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    transition: all 0.2s;
}

.og-btn:hover {
    background: linear-gradient(135deg, #6a00a0 0%, #a000a0 100%);
    transform: scale(1.05);
}

.og-btn[data-bg="rainbow"] {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff);
    border-color: #fff;
    color: #000;
    text-shadow: 0 0 2px #fff;
}

.og-btn[data-bg="plain"] {
    background: linear-gradient(135deg, #1a3a4a 0%, #0a2030 100%);
    border-color: #00bfff;
}

.og-btn[data-bg="aurora"] {
    background: linear-gradient(135deg, #00ff88 0%, #00bfff 50%, #ff00ff 100%);
    border-color: #00ffff;
    color: #000;
}

.og-btn[data-bg="snowfall"] {
    background: linear-gradient(135deg, #e0ffff 0%, #87ceeb 100%);
    border-color: #fff;
    color: #1a3a4a;
}

/* ============================================
   MULTIPLAYER STYLES
   ============================================ */

/* Multiplayer Screen */
#multiplayer-screen,
#join-party-screen,
#party-lobby-screen {
    text-align: center;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding-bottom: 1rem;
}

#mp-back-button,
#join-back-btn,
#leave-party-btn {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.mp-lock-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    margin: 1rem 0;
}

.mp-lock-overlay .lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mp-lock-overlay p {
    color: #87ceeb;
    margin-bottom: 1rem;
}

.mp-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.mp-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.mp-btn {
    min-width: 200px;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* Pause Party Button */
.pause-party-btn {
    background: linear-gradient(180deg, #cc8800 0%, #996600 100%) !important;
    border-color: #ffaa00 !important;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.4) !important;
}

.pause-party-btn:hover {
    background: linear-gradient(180deg, #ffaa00 0%, #cc8800 100%) !important;
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.6) !important;
}

/* Stop Party Button */
.stop-party-btn {
    background: linear-gradient(180deg, #cc0000 0%, #990000 100%) !important;
    border-color: #ff3333 !important;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4) !important;
}

.stop-party-btn:hover {
    background: linear-gradient(180deg, #ff0000 0%, #cc0000 100%) !important;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6) !important;
}

@media (max-width: 480px) {
    .mp-btn {
        min-width: 160px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .mp-lock-overlay {
        padding: 1rem;
    }

    .mp-lock-overlay .lock-icon {
        font-size: 2rem;
    }
}

#host-party-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
}

#join-party-btn {
    background: linear-gradient(135deg, #ff8800 0%, #ff6600 100%);
    color: #000;
}

/* Join Party Screen */
.party-code-input-container {
    text-align: center;
    margin: 2rem 0;
}

.party-code-input-container label {
    display: block;
    color: #87ceeb;
    margin-bottom: 0.5rem;
}

.code-input {
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 50, 80, 0.8);
    border: 2px solid #00bfff;
    border-radius: 10px;
    color: #00ffff;
    width: 200px;
    text-transform: uppercase;
}

.code-input::placeholder {
    color: rgba(0, 191, 255, 0.4);
    letter-spacing: 0.3rem;
}

.code-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.menu-btn.secondary {
    background: linear-gradient(135deg, #555 0%, #333 100%);
}

/* Party Lobby Screen */
#party-lobby-screen {
    text-align: center;
}

.party-code-display {
    background: rgba(0, 50, 80, 0.8);
    border: 2px solid #00bfff;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem auto;
    display: inline-block;
}

.code-label {
    color: #87ceeb;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.party-code {
    font-size: 2.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.party-members-container {
    margin: 1.5rem 0;
}

.party-members-container h3 {
    color: #87ceeb;
    margin-bottom: 0.75rem;
}

.party-members {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.party-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 50, 80, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.party-member.ready {
    border-color: #00ff00;
    background: rgba(0, 100, 50, 0.3);
}

.member-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.member-name {
    flex: 1;
    text-align: left;
    color: #ffffff;
}

.member-status {
    font-size: 0.8rem;
    color: #ff6666;
}

.party-member.ready .member-status {
    color: #00ff00;
}

.lobby-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.lobby-bottom-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

#ready-btn {
    background: linear-gradient(135deg, #ff6666 0%, #cc4444 100%);
}

#ready-btn.ready {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #000;
}

.start-btn {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
}

.start-btn:disabled {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

#leave-party-btn {
    margin-top: 0.5rem;
}

/* Target Level Setting */
.target-level-setting {
    background: rgba(0, 50, 80, 0.8);
    border: 2px solid #ffa500;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 300px;
    text-align: center;
}

.target-level-setting .target-label {
    color: #ffa500;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.target-level-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.level-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ffa500;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.level-btn:hover {
    background: rgba(255, 165, 0, 0.4);
    transform: scale(1.1);
}

.target-level-value {
    font-size: 2rem;
    color: #ffffff;
    font-weight: bold;
    min-width: 60px;
}

.target-hint {
    display: block;
    color: #87ceeb;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.target-level-display-only {
    background: rgba(0, 50, 80, 0.6);
    border: 1px solid #ffa500;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.5rem auto;
    max-width: 200px;
    text-align: center;
}

.target-level-display-only .target-label {
    color: #ffa500;
    margin-right: 0.5rem;
}

.target-level-display-only .target-level-value {
    font-size: 1rem;
}

/* Multiplayer Progress Bar */
.mp-progress-container {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid #ffa500;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 100;
}

.mp-progress-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.mp-target {
    color: #ffa500;
    font-weight: bold;
    font-size: 0.9rem;
}

.mp-progress-bars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mp-player-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-player-name {
    min-width: 80px;
    font-size: 0.75rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-progress-bar {
    flex: 1;
    height: 16px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.mp-progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
    position: relative;
}

.mp-progress-level {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

/* Player color indicators for progress bars */
.mp-progress-fill.player-0 { background: linear-gradient(90deg, #00ffff, #00bfff); }
.mp-progress-fill.player-1 { background: linear-gradient(90deg, #ff00ff, #cc00cc); }
.mp-progress-fill.player-2 { background: linear-gradient(90deg, #ffff00, #cccc00); }
.mp-progress-fill.player-3 { background: linear-gradient(90deg, #00ff00, #00cc00); }
.mp-progress-fill.player-4 { background: linear-gradient(90deg, #ff6600, #cc5200); }
.mp-progress-fill.player-5 { background: linear-gradient(90deg, #ff0066, #cc0052); }

/* Progress bar label and bar structure */
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.progress-name {
    color: #ffffff;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-level {
    color: #ffa500;
    font-weight: bold;
}

.progress-bar-outer {
    width: 100%;
    height: 12px;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    border-radius: 6px;
    transition: width 0.2s ease;
}

.mp-player-progress.completed {
    opacity: 0.8;
}

.mp-player-progress.completed .progress-name {
    color: #00ff00;
}

.mp-player-progress.completed .progress-level {
    color: #00ff00;
    font-weight: bold;
}

/* Multiplayer score bonus indicator */
.mp-bonus {
    margin-left: 8px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    animation: pulse-bonus 1s ease-in-out infinite;
}

@keyframes pulse-bonus {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Helper Mode UI */
.helper-mode-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 50, 100, 0.9);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 10px 15px;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.helper-header {
    text-align: center;
    margin-bottom: 10px;
}

.helper-title {
    display: block;
    color: #00ffff;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
}

.helper-subtitle {
    display: block;
    color: #88ccff;
    font-size: 0.7rem;
    margin-top: 2px;
}

.helper-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.helper-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px;
    background: rgba(0, 100, 150, 0.8);
    border: 2px solid #006699;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
}

.helper-item-btn:hover {
    background: rgba(0, 150, 200, 0.9);
    border-color: #00ffff;
    transform: scale(1.1);
}

.helper-item-btn.selected {
    background: rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.helper-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.shield-icon { background: radial-gradient(circle, #00ffff, #006699); }
.rapid-icon { background: radial-gradient(circle, #ff6600, #993300); }
.triple-icon { background: radial-gradient(circle, #ffff00, #999900); }
.pierce-icon { background: radial-gradient(circle, #ff3366, #990033); }
.ultra-icon { background: radial-gradient(circle, #ffffff, #ffcc00); box-shadow: 0 0 10px #ffcc00; }
.invincible-icon { background: radial-gradient(circle, #ff00ff, #990099); }
.life-icon { background: radial-gradient(circle, #ff6666, #cc0000); }
.aurora-icon { background: radial-gradient(circle, #88ffaa, #228833); }
.snow-icon { background: radial-gradient(circle, #ffffff, #aaccff); }

.helper-cooldown {
    text-align: center;
    color: #ff6666;
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 5px;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 5px;
}

/* Helper mode cursor when clicking to spawn */
.helper-spawn-mode {
    cursor: crosshair !important;
}

/* Multiplayer HUD */
.mp-players-hud {
    position: absolute;
    top: 50px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mp-player-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.mp-player-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Player name label in game */
.player-label {
    font-size: 12px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 0 3px #000, 0 0 5px currentColor;
}
