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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 195, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    text-align: center;
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6),
                0 0 0 1px rgba(76, 175, 80, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.back-button {
    text-align: left;
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.1);
}

.back-link:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateX(-5px);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.game-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.game-controls {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.game-controls h2 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.controls-grid {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.control-key {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.control-desc {
    color: #999;
    font-weight: 500;
}

.block-selector h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.block-types {
    display: grid;
    gap: 0.5rem;
}

.block-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #999;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.block-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

.block-btn.active {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    border-color: #4caf50;
}

.canvas-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    display: inline-block;
}

#minecraftCanvas {
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 1;
    cursor: crosshair;
}

.game-info {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    font-family: monospace;
    font-size: 0.8rem;
}

.game-info .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    color: #4caf50;
}

.game-info .info-item:last-child {
    margin-bottom: 0;
}

.game-info .info-label {
    color: #999;
    margin-right: 1rem;
}

@media (max-width: 1024px) {
    .game-section {
        grid-template-columns: 1fr;
    }
    
    .game-controls {
        order: 2;
    }
    
    .canvas-container {
        order: 1;
    }
}

.server-details {
    text-align: left;
    margin-bottom: 2rem;
}

.server-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    margin-bottom: 2rem;
}

.server-info-card h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.info-label {
    color: #999;
    font-weight: 500;
}

.info-value {
    color: #4caf50;
    font-weight: 600;
}

.features-section {
    margin-bottom: 2rem;
}

.features-section h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.3));
}

.feature-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-desc {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-button.primary {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
}

.action-button.primary:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    transform: translateY(-3px);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.action-button.secondary:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-3px);
}

.description {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

.description strong {
    color: #4caf50;
}

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

.container {
    animation: fadeIn 0.8s ease-out;
}

.feature-card {
    animation: fadeIn 0.8s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }
