:root {
    --win-gray: #C0C0C0;
    --win-dark-gray: #808080;
    --win-light-gray: #DFDFDF;
    --win-blue: #000080;
    --win-title-blue: #0A246A;
    --win-white: #FFFFFF;
    --paint-pink: #FF00FF;
    --paint-lime: #00FF00;
    --paint-cyan: #00FFFF;
    --paint-red: #FF0000;
    --paint-yellow: #FFFF00;
    --paint-blue: #0000FF;
}

* { box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #008080;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.font-comic { font-family: 'Comic Neue', cursive; }
.font-pixel { font-family: 'VT323', monospace; }

.win-border-outset {
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
}

.win-border-inset {
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.win-button {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    padding: 4px 16px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    min-width: 75px;
    user-select: none;
}

.win-button:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    padding: 5px 15px 3px 17px;
}

.win-button:hover { background: #D4D4D4; }

.win-button:disabled {
    color: #808080;
    cursor: not-allowed;
}
.win-button:disabled:hover { background: #C0C0C0; }

.title-bar {
    background: linear-gradient(90deg, #0A246A, #A6CAF0);
    padding: 3px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-bar-text {
    color: white;
    font-weight: bold;
    font-size: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    margin-left: 2px;
    background: #C0C0C0;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    font-size: 8px;
    line-height: 1;
    cursor: default;
    min-width: unset;
    padding: 0;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-0.5deg); }
    25% { transform: rotate(0.5deg); }
    50% { transform: rotate(-0.3deg); }
    75% { transform: rotate(0.3deg); }
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes progressFake {
    0% { width: 5%; }
    20% { width: 45%; }
    40% { width: 42%; }
    60% { width: 70%; }
    75% { width: 68%; }
    90% { width: 85%; }
    100% { width: 87%; }
}

@keyframes progressSegment {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.wobble-animation { animation: wobble 2s ease-in-out infinite; }
.shimmer-animation { animation: shimmer 1.5s ease-in-out infinite; }

.progress-bar-fake { animation: progressFake 8s ease-in-out infinite; }

.progress-bar-xp {
    background: linear-gradient(90deg, #3168d5 0%, #3168d5 50%, #4a7ae8 50%, #4a7ae8 100%);
    background-size: 20px 100%;
    animation: progressSegment 0.5s linear infinite;
    height: 100%;
    transition: width 0.3s ease;
}

.drop-zone-active {
    background-color: #E8F0FE !important;
    border-color: #0000FF !important;
}

.sparkle {
    display: inline-block;
    color: #FFD700;
    animation: shimmer 1s ease-in-out infinite;
}

@keyframes spin98 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-cursor { animation: spin98 1s linear infinite; }

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

@media (max-width: 640px) {
    .thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.status-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: 'VT323', monospace;
}

.number-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #000080;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-family: 'VT323', monospace;
}

.remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #C0C0C0;
    border: 1px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.remove-btn:hover { background: #FF6B6B; color: white; }

.command-center {
    background: #2a2a2a;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    padding: 16px;
    margin-bottom: 16px;
}

.xp-progress-container {
    background: white;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    height: 24px;
    padding: 2px;
}

@keyframes celebrateIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.celebrate-in { animation: celebrateIn 0.5s ease-out forwards; }

.scrollbar-thin::-webkit-scrollbar { width: 14px; }
.scrollbar-thin::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 1px solid #808080;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
}