:root {
    --win-gray: #C0C0C0;
    --win-dark-gray: #808080;
    --win-light-gray: #DFDFDF;
    --win-blue: #000080;
    --crypto-dark: #0d1117;
    --crypto-panel: #161b22;
    --crypto-border: #30363d;
    --crypto-green: #00ff88;
    --crypto-orange: #f7931a;
    --crypto-purple: #627eea;
    --crypto-pink: #ff00ff;
    --paint-cyan: #00FFFF;
    --paint-lime: #00FF00;
    --paint-yellow: #FFFF00;
    --paint-red: #FF0000;
    --paint-blue: #0000FF;
}

* { box-sizing: border-box; }

body {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--crypto-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #e6edf3;
    overflow-x: hidden;
}

.font-comic { font-family: 'Comic Neue', cursive; }
.font-pixel { font-family: 'VT323', monospace; }
.font-press { font-family: 'Press Start 2P', cursive; }
.font-mono { font-family: 'IBM Plex Mono', 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 Mono', monospace;
    font-size: 13px;
    cursor: pointer;
    min-width: 60px;
    color: #000;
    user-select: none;
}

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

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

.win-button-green {
    background: #90EE90;
}
.win-button-green:hover { background: #7CFC00; }

.win-button-red {
    background: #FF6B6B;
    color: white;
}
.win-button-red:hover { background: #FF4444; }

.win-button-crypto {
    background: linear-gradient(135deg, #627eea, #00ff88);
    color: #000;
    font-weight: bold;
}

.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 Mono', monospace;
}

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

.crypto-panel {
    background: var(--crypto-panel);
    border: 1px solid var(--crypto-border);
    border-radius: 6px;
}

.rainbow-text {
    background: linear-gradient(90deg, #ff0000, #ff8800, #ffff00, #00ff00, #0088ff, #8800ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticker-scroll {
    animation: tickerScroll 30s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-200%); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-1deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.01); }
    50% { transform: rotate(-0.5deg) scale(0.99); }
    75% { transform: rotate(0.5deg) scale(1.005); }
}

.wobble-animation { animation: wobble 3s ease-in-out infinite; }

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

.spin-eth { animation: spinEth 2s linear infinite; }

@keyframes progressFake {
    0% { width: 5%; }
    20% { width: 35%; }
    35% { width: 33%; }
    50% { width: 60%; }
    65% { width: 58%; }
    80% { width: 80%; }
    90% { width: 78%; }
    100% { width: 82%; }
}

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

@keyframes progressXP {
    0% { width: 0%; }
}

@keyframes slotSpin {
    0% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(5px); }
    75% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.slot-spin { animation: slotSpin 0.3s ease-in-out; }

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

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

.glitch-animation { animation: glitch 0.3s ease-in-out; }

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

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

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

.fade-in { animation: fadeIn 0.3s ease-out; }

.rarity-common { color: #9e9e9e; }
.rarity-uncommon { color: #4caf50; }
.rarity-rare { color: #2196f3; }
.rarity-legendary { color: #ff9800; text-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
.rarity-rugpull { color: #f44336; text-shadow: 0 0 10px rgba(244, 67, 54, 0.5); }

.rarity-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.rarity-badge-common { background: #3a3a3a; color: #9e9e9e; }
.rarity-badge-uncommon { background: #1b3a1b; color: #4caf50; }
.rarity-badge-rare { background: #1a2a3a; color: #42a5f5; }
.rarity-badge-legendary { background: #3a2a0a; color: #ffb74d; border: 1px solid #ff9800; }
.rarity-badge-rugpull { background: #3a0a0a; color: #ef5350; border: 1px solid #f44336; }

.tab-btn {
    background: var(--crypto-panel);
    border: 1px solid var(--crypto-border);
    color: #8b949e;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 16px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #e6edf3;
    background: #1c2230;
}

.tab-btn.active {
    color: var(--crypto-green);
    border-bottom-color: var(--crypto-green);
    background: #0d1117;
}

.nft-card {
    background: var(--crypto-panel);
    border: 1px solid var(--crypto-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
}

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

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(180deg, #00ff88, #00cc66);
    transition: width 0.5s ease;
}

.paint-toolbox {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
}

.trait-select {
    background: white;
    border: 2px solid;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    padding: 2px 4px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    width: 100%;
}

@keyframes burnAnimation {
    0% { transform: scale(1); opacity: 1; filter: hue-rotate(0deg); }
    50% { transform: scale(1.1); opacity: 0.7; filter: hue-rotate(30deg) brightness(2); }
    100% { transform: scale(0); opacity: 0; filter: hue-rotate(60deg) brightness(3); }
}

.burn-anim { animation: burnAnimation 0.6s ease-in forwards; }

.scrollbar-thin::-webkit-scrollbar { width: 8px; }
.scrollbar-thin::-webkit-scrollbar-track { background: var(--crypto-dark); }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--crypto-border); border-radius: 4px; }

@media (max-width: 768px) {
    .tab-btn { padding: 6px 10px; font-size: 13px; }
}