/* ===== CSS Reset & Variables ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Deego Colors from Logo */
    --primary-orange: #FF8C42;
    --primary-yellow: #FFD700;
    --secondary-orange: #FFA500;
    --accent-pink: #FF6B6B;
    --accent-coral: #FF7F50;
    --dark: #1a1a1a;
    --black: #000000;
    --white: #ffffff;
    --light: #f8f9fa;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #FFD700 0%, #FF8C42 100%);
    --gradient-2: linear-gradient(135deg, #FF7F50 0%, #FF6B6B 100%);
    --gradient-3: linear-gradient(135deg, #FFA500 0%, #FF8C42 100%);

    /* Shadows */
    --shadow-sm: 4px 4px 0px rgba(0, 0, 0, 0.3);
    --shadow-md: 6px 6px 0px rgba(0, 0, 0, 0.3);
    --shadow-lg: 8px 8px 0px rgba(0, 0, 0, 0.3);

    /* Fonts */
    --font-pixel: 'Press Start 2P', cursive;
    --font-main: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-main);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Tetris Background ===== */
.tetris-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.tetris-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 140, 66, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* ===== Pixel Styling ===== */
.pixel-text {
    font-family: var(--font-pixel);
    text-transform: uppercase;
}

.pixel-btn {
    font-family: var(--font-pixel);
    font-size: 12px;
    padding: 15px 30px;
    border: 4px solid var(--black);
    background: var(--gradient-1);
    color: var(--black);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.pixel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.pixel-btn:hover::before {
    left: 100%;
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.pixel-btn.primary {
    background: var(--gradient-1);
    color: var(--black);
}

.pixel-btn.secondary {
    background: transparent;
    border: 4px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

.pixel-btn.secondary:hover {
    background: var(--primary-yellow);
    color: var(--black);
}

.pixel-btn.large {
    padding: 20px 40px;
    font-size: 14px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--primary-yellow);
    z-index: 1000;
}

.buy-btn {
    text-decoration: none;
    display: inline-block;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    image-rendering: pixelated;
    animation: bounce 2s ease-in-out infinite;
}

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

.logo-text {
    font-family: var(--font-pixel);
    font-size: 24px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 4px;
    background: var(--primary-yellow);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.glitch-text {
    font-family: var(--font-pixel);
    font-size: 72px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--accent-pink);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-block {
    background: rgba(255, 215, 0, 0.1);
    border: 4px solid var(--primary-yellow);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.stat-block:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-family: var(--font-pixel);
    font-size: 28px;
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--light);
}

.floating-card {
    position: relative;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.mascot {
    width: 100%;
    max-width: 500px;
    image-rendering: pixelated;
    filter: drop-shadow(0 20px 40px rgba(255, 140, 66, 0.4));
}

.bnb-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.coin {
    position: absolute;
    font-family: var(--font-pixel);
    font-size: 16px;
    background: var(--gradient-1);
    color: var(--black);
    padding: 10px 15px;
    border: 3px solid var(--black);
    box-shadow: var(--shadow-sm);
    animation: coinFloat 3s ease-in-out infinite;
}

.coin-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.coin-2 {
    top: 50%;
    right: -10%;
    animation-delay: 1s;
}

.coin-3 {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes coinFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ===== Section Styling ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== About Section ===== */
.about {
    background: rgba(255, 140, 66, 0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tetris-card {
    background: rgba(26, 26, 26, 0.8);
    border: 4px solid var(--primary-yellow);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tetris-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tetris-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-pink);
}

.tetris-card:hover::before {
    opacity: 0.1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.tetris-card h3 {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--primary-yellow);
    margin-bottom: 15px;
}

.tetris-card p {
    color: var(--light);
    line-height: 1.8;
}

/* ===== Gaming Section ===== */
.gaming {
    background: var(--dark);
}

.gaming-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.gaming-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-pixel);
    font-size: 32px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
}

.step-content h3 {
    font-family: var(--font-pixel);
    font-size: 16px;
    color: var(--primary-yellow);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--light);
    line-height: 1.8;
}

.game-window {
    background: rgba(26, 26, 26, 0.9);
    border: 6px solid var(--primary-yellow);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--primary-yellow);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-yellow);
    margin-bottom: 20px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    position: relative;
}

.tetris-piece {
    width: 100%;
    aspect-ratio: 1;
    border: 3px solid var(--black);
    box-shadow: var(--shadow-sm);
    animation: pieceFall 2s ease-in-out infinite;
}

.piece-1 {
    background: var(--primary-yellow);
    animation-delay: 0s;
}

.piece-2 {
    background: var(--primary-orange);
    animation-delay: 0.5s;
}

.piece-3 {
    background: var(--accent-pink);
    animation-delay: 1s;
}

.piece-4 {
    background: var(--accent-coral);
    animation-delay: 1.5s;
}

@keyframes pieceFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(0) rotate(360deg); opacity: 1; }
}

.game-footer {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--accent-pink);
    text-align: center;
    padding-top: 15px;
    border-top: 3px solid var(--primary-yellow);
    margin-top: 20px;
}

/* ===== Features Section ===== */
.features {
    background: rgba(255, 107, 107, 0.05);
    padding: 60px 0;
}

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

.feature-box {
    background: var(--gradient-1);
    padding: 30px;
    text-align: center;
    border: 4px solid var(--black);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: scale(1.05);
}

.feature-box h4 {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--black);
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--black);
    font-weight: 600;
}

/* ===== Tokenomics Section ===== */
.tokenomics {
    background: var(--dark);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.token-card {
    background: rgba(26, 26, 26, 0.8);
    border: 4px solid var(--primary-yellow);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.token-card h3 {
    font-family: var(--font-pixel);
    font-size: 20px;
    color: var(--primary-yellow);
    margin-bottom: 25px;
}

.token-list {
    list-style: none;
}

.token-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    color: var(--light);
}

.token-list li:last-child {
    border-bottom: none;
}

.token-list span {
    color: var(--primary-orange);
    font-weight: 600;
}

.tax-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tax-bar {
    position: relative;
}

.bar-label {
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 600;
}

.bar-fill {
    background: var(--gradient-1);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--black);
    border: 3px solid var(--black);
    box-shadow: var(--shadow-sm);
    animation: barGrow 1s ease-out;
}

@keyframes barGrow {
    from { width: 0; }
}

.token-distribution {
    background: rgba(26, 26, 26, 0.8);
    border: 4px solid var(--primary-yellow);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.token-distribution h3 {
    font-family: var(--font-pixel);
    font-size: 20px;
    color: var(--primary-yellow);
    margin-bottom: 40px;
    text-align: center;
}

.pie-chart {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-yellow) 0deg 144deg,
        var(--primary-orange) 144deg 252deg,
        var(--accent-pink) 252deg 324deg,
        var(--accent-coral) 324deg 360deg
    );
    margin: 0 auto 30px;
    border: 6px solid var(--black);
    box-shadow: var(--shadow-lg);
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--light);
    font-weight: 600;
}

.legend-item span {
    width: 30px;
    height: 30px;
    border: 3px solid var(--black);
    display: block;
}

.color-1 { background: var(--primary-yellow); }
.color-2 { background: var(--primary-orange); }
.color-3 { background: var(--accent-pink); }
.color-4 { background: var(--accent-coral); }

/* ===== Roadmap Section ===== */
.roadmap {
    background: rgba(255, 140, 66, 0.03);
}

.roadmap-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-1);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border: 5px solid var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10;
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-content {
    background: rgba(26, 26, 26, 0.8);
    border: 4px solid var(--primary-yellow);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--light);
}

.timeline-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-pink);
}

.timeline-item.completed .timeline-content {
    border-color: #4ade80;
}

.timeline-item.completed .timeline-marker {
    background: #4ade80;
}

.timeline-item.active .timeline-content {
    border-color: var(--accent-pink);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--shadow-md); }
    50% { box-shadow: 0 0 20px var(--accent-pink); }
}

/* ===== CTA Section ===== */
.cta {
    background: var(--gradient-1);
    padding: 100px 0;
    text-align: center;
    border-top: 6px solid var(--black);
    border-bottom: 6px solid var(--black);
}

.cta h2 {
    font-size: 48px;
    color: var(--black);
    margin-bottom: 20px;
}

.cta p {
    font-size: 20px;
    color: var(--black);
    margin-bottom: 40px;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta .pixel-btn.primary {
    background: var(--black);
    color: var(--primary-yellow);
    border-color: var(--black);
}

.cta .pixel-btn.secondary {
    background: transparent;
    border-color: var(--black);
    color: var(--black);
}

.cta .pixel-btn.secondary:hover {
    background: var(--black);
    color: var(--primary-yellow);
}

/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 60px 0 30px;
    border-top: 4px solid var(--primary-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-family: var(--font-pixel);
    font-size: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col p {
    color: var(--light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col h4 {
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--primary-yellow);
    color: var(--black);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.footer-bottom p {
    color: var(--light);
    margin-bottom: 10px;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .glitch-text {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .gaming-content {
        grid-template-columns: 1fr;
    }

    .gaming-steps {
        grid-template-columns: 1fr;
    }

    .tokenomics-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-timeline::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: left 0.3s ease;
        border-bottom: 4px solid var(--primary-yellow);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .buy-btn {
        display: none;
    }

    .glitch-text {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .pixel-btn {
        width: 100%;
    }

    .section-title {
        font-size: 32px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .gaming-steps {
        grid-template-columns: 1fr;
    }
}

/* ===== Tetris Game Modal ===== */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.game-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-modal-content {
    background: var(--dark);
    border: 6px solid var(--primary-yellow);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    max-width: 800px;
    width: 100%;
    position: relative;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.game-modal-header {
    background: var(--gradient-1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 6px solid var(--black);
}

.game-modal-header h2 {
    font-size: 24px;
    color: var(--black);
    margin: 0;
}

.close-game {
    background: var(--black);
    color: var(--primary-yellow);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.close-game:hover {
    background: var(--primary-yellow);
    color: var(--black);
    transform: rotate(90deg);
}

.game-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

/* ===== Game Sidebar ===== */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-info-box {
    background: rgba(26, 26, 26, 0.8);
    border: 4px solid var(--primary-yellow);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.game-info-box h3 {
    font-size: 10px;
    color: var(--primary-yellow);
    margin-bottom: 10px;
    text-align: center;
}

.score-value,
.level-value,
.lines-value,
.bnb-value {
    font-family: var(--font-pixel);
    font-size: 24px;
    color: var(--primary-orange);
    text-align: center;
}

.bnb-value {
    color: var(--accent-pink);
    font-size: 20px;
}

#nextCanvas {
    display: block;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--black);
}

/* ===== Game Board ===== */
.game-board-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameCanvas {
    border: 6px solid var(--primary-yellow);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ===== Mobile Warning ===== */
.mobile-warning {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.98);
    border: 6px solid var(--primary-yellow);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    min-width: 300px;
    max-width: 400px;
}

.mobile-warning h2 {
    font-size: 24px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.mobile-warning p {
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Show mobile warning on touchscreen devices and tablets/phones */
@media (max-width: 1024px) and (pointer: coarse) {
    .mobile-warning {
        display: block;
    }

    #gameStart,
    #gameOver {
        display: none !important;
    }
}

/* Also show on very small screens regardless of pointer type */
@media (max-width: 768px) {
    .mobile-warning {
        display: block;
    }

    #gameStart,
    #gameOver {
        display: none !important;
    }
}

/* ===== Game Screens ===== */
.game-start-screen,
.game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.98);
    border: 6px solid var(--primary-yellow);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    min-width: 300px;
}

.game-start-screen h2,
.game-over-screen h2 {
    font-size: 24px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.game-start-screen p,
.game-over-screen p {
    color: var(--light);
    margin-bottom: 15px;
    font-size: 18px;
}

.game-over-screen p span {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 24px;
}

.controls-info {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary-orange);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.controls-info p {
    margin: 8px 0;
    font-size: 14px;
    font-family: var(--font-main);
}

.controls-info strong {
    color: var(--primary-yellow);
}

.game-over-screen.hidden,
.game-start-screen.hidden {
    display: none;
}

/* ===== Responsive Game ===== */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .game-sidebar {
        order: 2;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .game-info-box {
        flex: 1;
        min-width: 100px;
    }

    .game-info-box:nth-child(4) {
        display: none;
    }

    .game-board-wrapper {
        order: 1;
    }

    #gameCanvas {
        max-width: 100%;
        height: auto;
    }

    .game-start-screen,
    .game-over-screen {
        padding: 20px;
        min-width: 250px;
    }

    .game-modal-header h2 {
        font-size: 16px;
    }

    .close-game {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}
