:root {
    --dirt-brown: #7C5C4D;
    --grass-green: #7FB238;
    --stone-gray: #7D7D7D;
    --diamond-cyan: #5DCDE3;
    --gold-yellow: #FAEE4D;
    --redstone-red: #DC143C;
    --wood-brown: #8B6F47;
    --coal-black: #2C2C2C;
    --sky-blue: #7EC0EE;
    --sol-purple: #9945FF;
    --sol-green: #14F195;
}

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

@font-face {
    font-family: 'Minecraft';
    src: local('Press Start 2P');
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: var(--sky-blue);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    overflow-x: hidden !important;  
    overflow-y: auto !important;    
}
}

/* Sky and Background */
.game-world {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.sky-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        #87CEEB 0%, 
        #7EC0EE 50%, 
        #B0D9E8 100%
    );
    z-index: 0;
}

/* Clouds */
.cloud {
    position: absolute;
    width: 120px;
    height: 40px;
    background: white;
    box-shadow: 
        30px 0 0 white,
        60px 0 0 white,
        90px 0 0 white,
        15px -10px 0 white,
        45px -10px 0 white,
        75px -10px 0 white,
        30px 10px 0 white,
        60px 10px 0 white;
    animation: float-cloud 60s linear infinite;
    opacity: 0.9;
}

.cloud-1 {
    top: 10%;
    left: -150px;
    animation-delay: 0s;
}

.cloud-2 {
    top: 25%;
    left: -180px;
    animation-delay: 20s;
}

.cloud-3 {
    top: 15%;
    left: -200px;
    animation-delay: 40s;
}

@keyframes float-cloud {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 200px)); }
}

/* Main Container */
.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* HUD */
.minecraft-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

.hud-left, .hud-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.hud-left {
    justify-content: flex-start;
}

.hud-right {
    justify-content: flex-end;
}

.hud-center {
    text-align: center;
}

.game-title {
    position: relative;
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.title-shadow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 0, 0, 0.5);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.title-main {
    position: relative;
    color: white;
    text-shadow: 
        2px 2px 0 #222,
        4px 4px 0 rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 0.6rem;
    color: var(--sol-green);
    text-shadow: 1px 1px 0 #000;
}

/* Pixel Button */
.pixel-button {
    background: #5E5E5E;
    border: none;
    padding: 10px 20px;
    color: white;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
    box-shadow: 
        inset -4px -4px 0 rgba(0, 0, 0, 0.5),
        inset 4px 4px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 0 #000;
    transition: all 0.1s;
}

.pixel-button:hover {
    background: #6E6E6E;
    transform: translateY(-2px);
}

.pixel-button:active {
    transform: translateY(1px);
    box-shadow: 
        inset -2px -2px 0 rgba(0, 0, 0, 0.5),
        inset 2px 2px 0 rgba(255, 255, 255, 0.3);
}

.connect-btn {
    background: var(--sol-purple);
}

.claim-btn {
    background: var(--sol-green);
    color: #000;
    width: 100%;
    margin-top: 10px;
}

/* Game Screen */
.game-screen {
    flex: 1;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 15px;
    padding: 15px;
    position: relative;
}

/* Stats Panels */
.stats-panel {
    background: rgba(0, 0, 0, 0.6);
    border: 4px solid rgba(0, 0, 0, 0.8);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.panel-header {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    font-size: 0.7rem;
    color: white;
    text-shadow: 2px 2px 0 #000;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-block {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.highlight-block {
    border-color: var(--sol-green);
    background: rgba(20, 241, 149, 0.1);
    box-shadow: 
        inset 0 0 20px rgba(20, 241, 149, 0.2),
        0 0 15px rgba(20, 241, 149, 0.3);
}

.stat-label {
    font-size: 0.6rem;
    color: #AAA;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0 #000;
}

.stat-value {
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 0 #000;
}

.sol-value {
    color: var(--sol-green);
}

.stat-sublabel {
    font-size: 0.5rem;
    color: #888;
    margin-top: 3px;
}

/* Action Cards */
.action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.action-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-cube {
    width: 32px;
    height: 32px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 4s linear infinite;
}

.cube-purple {
    background: var(--sol-purple);
    box-shadow: 
        2px 0 0 var(--sol-purple),
        0 2px 0 var(--sol-purple),
        2px 2px 0 var(--sol-purple),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

.cube-gold {
    background: var(--gold-yellow);
    box-shadow: 
        2px 0 0 var(--gold-yellow),
        0 2px 0 var(--gold-yellow),
        2px 2px 0 var(--gold-yellow),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

@keyframes rotate-cube {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(90deg); }
    75% { transform: rotateY(270deg) rotateX(180deg); }
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 0.7rem;
    color: white;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #000;
}

.action-desc {
    font-size: 0.5rem;
    color: #AAA;
}

.info-box {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid rgba(255, 193, 7, 0.5);
    padding: 10px;
    font-size: 0.5rem;
    color: #FFC107;
    text-align: center;
    line-height: 1.6;
}

/* Mining World */
.mining-world {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 60%, 
        var(--dirt-brown) 60%, 
        var(--dirt-brown) 100%
    );
    position: relative;
    border: 4px solid rgba(0, 0, 0, 0.8);
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.world-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: repeating-linear-gradient(
        0deg,
        var(--dirt-brown) 0px,
        var(--dirt-brown) 8px,
        #6B4C3D 8px,
        #6B4C3D 16px
    );
    border-top: 8px solid var(--grass-green);
    box-shadow: 
        inset 0 8px 0 #6FAF32,
        inset 0 16px 0 var(--grass-green);
}

/* Minecraft Character */
.minecraft-character {
    position: absolute;
    bottom: 41%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 90px;
    animation: idle-bounce 2s ease-in-out infinite;
}

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

.char-head {
    width: 40px;
    height: 40px;
    background: #D2A679;
    position: absolute;
    top: 0;
    left: 10px;
    box-shadow: 
        inset -4px -4px 0 rgba(0, 0, 0, 0.2),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 rgba(0, 0, 0, 0.3);
}

.char-face {
    position: absolute;
    width: 100%;
    height: 100%;
}

.char-face::before,
.char-face::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    top: 12px;
}

.char-face::before { left: 8px; }
.char-face::after { right: 8px; }

.char-body {
    width: 40px;
    height: 30px;
    background: #4A90E2;
    position: absolute;
    top: 42px;
    left: 10px;
    box-shadow: 
        inset -2px -2px 0 rgba(0, 0, 0, 0.2),
        inset 2px 2px 0 rgba(255, 255, 255, 0.1);
}

.char-arm {
    width: 16px;
    height: 30px;
    background: #D2A679;
    position: absolute;
    top: 44px;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}

.char-arm-left {
    left: -6px;
    animation: swing-arm 1s ease-in-out infinite;
}

.char-arm-right {
    right: -6px;
    animation: swing-arm 1s ease-in-out infinite reverse;
}

@keyframes swing-arm {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.char-leg {
    width: 16px;
    height: 18px;
    background: #2C5AA0;
    position: absolute;
    top: 72px;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.2);
}

.char-leg-left { left: 13px; }
.char-leg-right { left: 31px; }

/* Mining Rigs Container */
.mining-rigs-container {
    position: absolute;
    bottom: 41%;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 80px;
}

.mining-rig {
    width: 80px;
    height: 80px;
    position: relative;
    animation: machine-work 2s ease-in-out infinite;
}

@keyframes machine-work {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.rig-block {
    width: 100%;
    height: 100%;
    background: var(--stone-gray);
    box-shadow: 
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 4px 0 rgba(0, 0, 0, 0.5);
    position: relative;
}

.rig-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--sol-green);
    box-shadow: 
        0 0 20px var(--sol-green),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.rig-empty {
    background: #3C3C3C;
    opacity: 0.3;
}

/* Hotbar */
.hotbar {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 4px solid rgba(0, 0, 0, 0.8);
}

.hotbar-slot {
    width: 60px;
    height: 60px;
    background: rgba(139, 139, 139, 0.8);
    border: 3px solid rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.hotbar-slot:hover {
    background: rgba(180, 180, 180, 0.9);
    transform: translateY(-3px);
}

.hotbar-slot.active {
    border-color: white;
    border-width: 4px;
    box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    padding: 5px;
}

.hotbar-slot.active .balance-display {
    display: inline-block;
}

/* Pixel Icons */
.pixel-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.sol-icon {
    background: radial-gradient(circle, var(--sol-purple) 30%, var(--sol-green) 100%);
    border-radius: 50%;
    animation: rotate-coin 3s linear infinite;
}

@keyframes rotate-coin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.pickaxe-icon {
    background: linear-gradient(135deg, 
        transparent 40%, 
        var(--stone-gray) 40%, 
        var(--stone-gray) 45%, 
        var(--wood-brown) 45%
    );
}

.shovel-icon {
    background: linear-gradient(135deg, 
        transparent 42%, 
        var(--stone-gray) 42%, 
        var(--stone-gray) 47%, 
        var(--wood-brown) 47%
    );
}

.sword-icon {
    background: linear-gradient(135deg, 
        transparent 43%, 
        var(--diamond-cyan) 43%, 
        var(--diamond-cyan) 48%, 
        var(--wood-brown) 48%
    );
}

.gpu-icon {
    background: repeating-linear-gradient(
        90deg,
        var(--sol-purple) 0px,
        var(--sol-purple) 4px,
        var(--sol-green) 4px,
        var(--sol-green) 8px
    );
    box-shadow: 0 0 10px var(--sol-purple);
}

.hash-icon {
    background: var(--redstone-red);
    box-shadow: 0 0 8px var(--redstone-red);
}

/* Balance Display */
.balance-display {
    font-size: 0.8rem;
    margin-left: 10px;
    color: var(--sol-green);
    text-shadow: 2px 2px 0 #000;
    font-family: 'Press Start 2P', monospace;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 1200px) {
    .game-screen {
        grid-template-columns: 200px 1fr 200px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {
    .stats-panel {
        padding: 10px;
    }
    
    .panel-header {
        font-size: 0.6rem;
    }
    
    .hotbar-slot {
        width: 50px;
        height: 50px;
    }
}

/* Send Form Styles */
.send-form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 500px;
}

.form-panel {
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid rgba(255, 255, 255, 0.3);
    padding: 25px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 0, 0, 0.8);
}

.form-header {
    font-size: 1rem;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.amount-showcase {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(20, 241, 149, 0.1);
    border: 3px solid var(--sol-green);
    box-shadow: 
        inset 0 0 20px rgba(20, 241, 149, 0.2),
        0 0 20px rgba(20, 241, 149, 0.3);
}

.amount-label {
    font-size: 0.5rem;
    color: #AAA;
    margin-bottom: 10px;
}

.amount-big {
    font-size: 2.5rem;
    color: var(--sol-green);
    text-shadow: 
        3px 3px 0 #000,
        0 0 20px var(--sol-green);
    margin: 10px 0;
}

.amount-sublabel {
    font-size: 0.4rem;
    color: #888;
}

.recipient-display {
    margin: 25px 0;
    padding: 20px;
    background: rgba(153, 69, 255, 0.1);
    border: 3px solid var(--sol-purple);
    box-shadow: inset 0 0 20px rgba(153, 69, 255, 0.2);
}

.recipient-label {
    font-size: 0.5rem;
    color: #AAA;
    margin-bottom: 10px;
    text-align: center;
}

.recipient-address {
    font-size: 0.45rem;
    color: var(--sol-purple);
    text-align: center;
    word-break: break-all;
    line-height: 1.6;
    text-shadow: 2px 2px 0 #000;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(153, 69, 255, 0.3);
}

.input-group {
    margin: 25px 0;
}

.pixel-label {
    display: block;
    font-size: 0.6rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.pixel-input {
    width: 100%;
    padding: 15px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--sol-purple);
    color: white;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.pixel-input:focus {
    border-color: var(--sol-green);
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(20, 241, 149, 0.5);
}

.pixel-input::placeholder {
    color: #555;
}

.send-btn {
    width: 100%;
    background: var(--sol-green);
    color: #000;
    font-size: 0.8rem;
    padding: 20px;
    margin-top: 20px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.3),
        0 0 20px rgba(20, 241, 149, 0.5);
}

.send-btn:hover {
    background: #1AFF9F;
    transform: translateY(-2px);
    box-shadow: 
        inset -4px -4px 0 rgba(0, 0, 0, 0.3),
        inset 4px 4px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(20, 241, 149, 0.8);
}

.send-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    font-size: 0.5rem;
    text-align: center;
    border: 3px solid;
    line-height: 1.6;
}

.status-success {
    background: rgba(20, 241, 149, 0.1);
    border-color: var(--sol-green);
    color: var(--sol-green);
}

.status-error {
    background: rgba(220, 20, 60, 0.1);
    border-color: var(--redstone-red);
    color: var(--redstone-red);
}

.status-warning {
    background: rgba(250, 238, 77, 0.1);
    border-color: var(--gold-yellow);
    color: var(--gold-yellow);
}

.status-info {
    background: rgba(93, 205, 227, 0.1);
    border-color: var(--diamond-cyan);
    color: var(--diamond-cyan);
}

/* Coin Effects */
.coin-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}

.floating-coin {
    position: absolute;
    font-size: 2rem;
    color: var(--sol-green);
    text-shadow: 0 0 10px var(--sol-green);
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) scale(1.5);
    }
}

.success-particle {
    position: absolute;
    font-size: 1.5rem;
    animation: explode 3s ease-out forwards;
}

@keyframes explode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc((var(--random-x, 0.5) - 0.5) * 200px),
            calc((var(--random-y, 0.5) - 0.5) * 200px)
        ) scale(1.5) rotate(360deg);
    }
}

/* Mining Animation */
.minecraft-character.mining {
    animation: mining-bounce 0.5s ease-in-out infinite;
}

@keyframes mining-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.minecraft-character.mining .char-arm-right {
    animation: mining-swing 0.5s ease-in-out infinite;
}

@keyframes mining-swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-45deg);
    }
}

/* Connected Wallet Style */
.connect-btn.connected {
    background: var(--sol-green);
    color: #000;
}
