* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', cursive;
}

body {
    overflow-y: hidden;
    background-color: #121212;
    color: #e0e0e0;
}

iframe {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

.preload {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
}

.loader {
    width: 100%;
    height: 100vh;
    background-color: #0f0f1a;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid #4e54c8;
    border-top: 8px solid #f64f59;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #4e54c8;
}

.logo {
    color: #f64f59;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0 #4e54c8;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
    filter: invert(1);
}

.social-icon:hover img {
    transform: scale(1.2);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 30px;
    padding: 30px 50px;
    height: calc(100vh - 120px);
}

.game-info {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 780px;
}

.info-card {
    background-color: rgba(30, 30, 46, 0.8);
    border: 2px solid #4e54c8;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.info-card h3 {
    color: #f64f59;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-card p {
    line-height: 1.6;
    font-size: 0.9rem;
}

.contract-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.contract-address {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(30, 30, 46, 0.8);
    border: 2px solid #4e54c8;
    border-radius: 5px;
    padding: 10px 15px;
    margin-left: 10px;
    width: 600PX;
}

.copy-btn {
    background: none;
    border: none;
    margin-left: 10px;
    cursor: pointer;
}

.copy-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    transition: transform 0.2s;
}

.copy-btn:hover img {
    transform: scale(1.1);
}

.launch-btn {
    background-color: #f64f59;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 18px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #c43a47;
}

.launch-btn:hover {
    background-color: #ff6b75;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #c43a47;
}

.launch-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c43a47;
}

.game-stats {
    grid-column: 2;
    grid-row: 1;
}

.stats-card {
    background-color: rgba(30, 30, 46, 0.8);
    border: 2px solid #4e54c8;
    border-radius: 10px;
    padding: 25px;
}

.stats-card h3 {
    color: #f64f59;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.stat-value {
    color: #8f94fb;
    font-weight: bold;
}

.community-chat {
    grid-column: 2;
    grid-row: 2;
    background-color: rgba(30, 30, 46, 0.8);
    border: 2px solid #4e54c8;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 574px;
}

.chat-title {
    color: #f64f59;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(20, 20, 36, 0.6);
    border-radius: 5px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: rgba(78, 84, 200, 0.2);
    border-radius: 5px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.user-message {
    background-color: rgba(246, 79, 89, 0.2);
    border-left: 3px solid #f64f59;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #4e54c8;
    border-radius: 5px;
    background-color: rgba(20, 20, 36, 0.8);
    color: white;
    font-size: 0.8rem;
}

.chat-input input:focus {
    outline: none;
    border-color: #f64f59;
}

.send-btn {
    background-color: #4e54c8;
    border: none;
    border-radius: 5px;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-btn:hover {
    background-color: #5b61e0;
}

.send-btn img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.visible {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 36, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4e54c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f64f59;
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .game-info {
        grid-column: 1;
        grid-row: 1;
    }
    
    .game-stats {
        grid-column: 1;
        grid-row: 2;
    }
    
    .community-chat {
        grid-column: 1;
        grid-row: 3;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
}