:root {
    --bg-color: #0b1120;
    --surface: rgba(30, 41, 59, 0.6);
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --secondary: #8b5cf6;
    --secondary-hover: #7c3aed;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.3;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 17, 32, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, #0ea5e9, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.white-text {
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px; 
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 24px;
    border-radius: 50px; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.avatar { 
    font-size: 1.8rem; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    gap: 4px; 
}

#playerName {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1; 
    color: var(--text-main);
}

.score-badge {
    font-size: 0.9rem;
    color: #fbbf24;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

.panel-header {
    text-align: center;
    margin-bottom: 40px;
}

.panel-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.panel-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.action-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

.action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.divider {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    border-radius: 50%;

    background: linear-gradient(#1e293b, #1e293b) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;

    border: 2px solid transparent;

    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.divider:hover {
    transform: scale(1.1);
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

input[type="text"] {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 1.2rem;
    width: 120px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    outline: none;
    transition: 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    width: 100%;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
    margin-top: 25px;
}

.btn-danger:hover {
    background: var(--danger); color: white;
}

.section-title {
    margin-bottom: 30px;
    text-align: left;
}

.section-title h2 {
    font-size: 2rem;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    font-weight: 800;
}

.game-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card .card-glow {
    position: absolute;
    top: 50%; 
    left: 50%;
    width: 0; 
    height: 0;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    border-radius: 50%;
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-12px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-card:hover .card-glow {
    width: 350px;
    height: 350px;
}

.game-card .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.game-card:hover .icon {
    transform: scale(1.1);
}

.game-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.game-card p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    letter-spacing: 4px;
}

.room-status {
    text-align: center;
    padding: 20px 0;
}

.room-status p {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .action-cards {
        flex-direction: column;
    }
    .divider{
        margin: 15px 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .panel-header hr {
        font-size: 2rem;
    }
}

.name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-icon {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.edit-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

#active-game,
#tictactoe-arena {
    display: none;
}

.leave-match-btn {
    display: block;
    margin: 30px auto 0;
}

.tictactoe-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cell:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.x-symbol {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

.o-symbol {
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

#skribbl-arena {
    display: none;
}

.skribbl-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#drawingBoard {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: crosshair;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

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

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.chat-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.chat-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 345px;
    max-height: 345px;
    padding: 15px;
    overflow-y: auto;
    display: block;
}

.chat-message {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    word-wrap: break-word;
    margin-bottom: 8px;
}

.chat-message strong {
    color: var(--primary);
}

.system-msg {
    background: rgba(139, 92, 246, 0.2);
    color: #e9d5ff;
    font-weight: 600;
    text-align: center;
}

.chat-log::-webkit-scrollbar {
    width: 10px;
}

.chat-log::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin: 5px 0;
}

.chat-log::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.4);
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.chat-log::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.chat-log {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.2)
}

.skribbl-header-info {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 10px;
}

.canvas-section {
    position: relative;
}

#word-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(11, 17, 32, 0.95);
    border-radius: 12px;
}

#word-selection-overlay h3 {
    margin-bottom: 20px;
}

#word-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-white { background-color: #ffffff; }
.color-red { background-color: #ef4444; }
.color-blue { background-color: #0ea5e9; }
.color-green { background-color: #2ecc71; }
.color-yellow { background-color: #fbbf24; }
.color-brown { background-color: #6e2e00; }

#floating-music-player {
    position: fixed;
    bottom: 20px;
    right: 0px;
    width: 280px;
    padding: 15px 20px;
    z-index: 10000;
    transition: width 0.3s ease, border-radius 0.3s ease;
    user-select: none;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.music-drag-handle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.music-grag-handle:active { 
    cursor: grabbing; 
}

#music-toggle-btn{
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-muted);
    transition: color 0.2s;
}

#music-toggle-btn:hover { 
    color: var(--primary);
}

.music-title-bar {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.music-info {
    text-align: center;
    margin-bottom: 15px;
}

#track-name {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.credit-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 5px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.music-controls {
    displaY: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.music-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.music-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}
.play-btn {
    font-size: 1.8rem;
    color: var(--primary);
}

.music-collapsed #music-content {
    display: none;
}
.music-collapsed {
    width: 180px !important;
    padding: 10px 15px !important;
    border-radius: 50px !important;
}
.music-collapsed .music-drag-handle {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.arena-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.db-scores {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.p1-score {
    color: var(--danger);
}
.p2-score {
    color: var(--primary);
}

.db-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px;
    user-select: none;
}

.db-row, .db-vline-container {
    display: flex;
    align-items: center;
}

.db-dot {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.db-hline {
    width: 60px;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.2s;
    margin: 0 5px;
    border-radius: 10px;
}

.db-vline {
    width: 15px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.2s;
    margin: 5px 0;
    border-radius: 10px;
}

.db-hline:hover:not(.drawn), .db-vline:hover:not(.drawn) {
    background: rgba(255, 255, 255, 0.4);
}

.db-box {
    width: 60px;
    height: 60px;
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: background 0.3s;
}

.db-line.drawn.p1 {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
    cursor: default;
}
.db-line.drawn.p2 {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    cursor: default;
}

.db-box.p1{
    background: rgba(239, 68, 68, 0.3);
}
.db-box.p2 {
    background: rgba(14, 165, 233, 0.3);
}

#music-upload-btn, #music-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

#music-upload-btn:hover {
    color: var(--primary);
    transform: scale(1.2);
}

#music-delete-btn:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.hidden-input {
    display: none;
}

.music-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 15px;
}

.room-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#copy-btn{
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

#copy-btn:hover {
    color: var(--primary);
    transform: scale(1.15);
}

#copy-btn.copied {
    color: #2ecc71;
}

#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050810;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-content {
    text-align: center;
    animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.intro-logo {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.click-to-start {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 1.5s infinite;
}

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

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

.intro-hidden {
    opacity: 0 !important;
    visibility: hidden !important;  
}

.startup-blob-1 {
    animation: blobExplosion 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.startup-blob-2 {
    animation: blobExplosion 2.5s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

@keyframes blobExplosion {
    0% {
        transform: scale(0);
        opacity: 0;
        filter: blur(40px);
    }
    40% {
        transform: scale(1.4);
        opacity: 0.8;
        filter: blur(80px);
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
        filter: blur(120px);
    }
}

.sb-board {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 12px;
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.disabled-board {
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.sb-cell {
    width: 30px;
    height: 30px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 4px;
    cursor: crosshair;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.sb-cell:hover:not(.hit):not(.miss) {
    background: rgba(14, 165, 233, 0.6);
}

.sb-cell.ship {
    background: var(--text-muted);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.sb-cell.hit {
    background: rgba(239, 68, 68, 0.3);
    color: var(--danger);
    text-shadow: 0 0 8px var(--danger);
    cursor: default;
}

.sb-cell.hit::after {
    content: '💥';
}

.sb-cell.miss {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: default;
}

.sb-cell.miss::after {
    content: '⚪';
    font-size: 0.6rem;
}

.sb-fleet-status {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fleet-box {
    flex: 1;
    text-align: left;
    font-weight: 800;
    font-size: 1.1rem;
}

.fleet-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fleet-bar-fill {
    height: 100%;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.c4-board {
    display: flex;
    gap: 8px;
    background: #0284c7;
    padding: 15px;
    border-radius: 12px;
    border: 4px solid #0369a1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    width: max-content;
}

.c4-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50px;
    transition: background 0.2s;
}

.c4-col:hover {
    background: rgba(255, 255, 255, 0.15);
}

.c4-cell {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: 50%;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.8);
    transition: 0.3s;
}

.c4-red {
    background: var(--danger);
    box-shadow: inset -3px -3px 10px rgba(0, 0, 0, 0.4), 0 2px 5px rbga(0, 0, 0, 0.5);
    animation: dropIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.c4-yellow {
    background: #fbbf24;
    box-shadow: inset -3px -3px 10px rgba(0, 0, 0, 0.4), 0 2px 5px rbga(0, 0, 0, 0.5);
    animation: dropIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

#leaderboard-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    border-radius: 24px 0 0 24px;
    border-right: none;
    z-index: 100000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

#leaderboard-panel.open {
    right: 0;
}

.close-lb-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-lb-btn:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.lb-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.lb-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lb-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.lb-value {
    font-size: 1.8rem;
    font-weight: 800;
}