/*
  DialUp Den - Retro Games Portal Stylesheet
  © 2026 DialUp Den - www.dialupden.com
  All Rights Reserved.
  Unauthorized copying, distribution, or modification prohibited.
*/

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', cursive;
    background: #0a0a12;
    color: #00ff00;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* Prevent zoom on double-tap (mobile) */
    touch-action: manipulation;
}

/* CRT Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline-animation 8s linear infinite;
}

@keyframes scanline-animation {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00,
        0 0 40px #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.3;
    word-break: break-word;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
    to { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

.dial { color: #ff00ff; }
.up { color: #00ffff; }
.den { color: #ffff00; }

.tagline {
    font-size: 0.7rem;
    color: #00ff00;
    margin-bottom: 20px;
    animation: blink 1s step-end infinite;
    padding: 0 10px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.loading-bar {
    width: min(300px, 90%);
    height: 20px;
    border: 2px solid #00ff00;
    margin: 0 auto;
    position: relative;
    background: rgba(0, 255, 0, 0.1);
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: #00ff00;
    transition: width 0.1s;
    box-shadow: 0 0 10px #00ff00;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.game-card {
    background: rgba(0, 255, 0, 0.05);
    border: 3px solid #00ff00;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #00ff00;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    /* Better touch targets on mobile */
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 0, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s;
}

.game-card:hover::before,
.game-card:active::before {
    left: 100%;
}

.game-card:hover,
.game-card:active {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
    border-color: #00ffff;
}

.game-card.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-card.coming-soon:hover,
.game-card.coming-soon:active {
    transform: none;
    box-shadow: none;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.game-card h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #00ffff;
    line-height: 1.4;
}

.game-card p {
    font-size: 0.7rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #00ff00;
}

.play-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #00ff00;
    color: #0a0a12;
    font-size: 0.8rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: inherit;
    /* Larger tap target for mobile */
    min-width: 140px;
}

.game-card:hover .play-btn,
.game-card:active .play-btn {
    background: #00ffff;
    box-shadow: 0 0 20px #00ffff;
}

footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 2px solid #00ff00;
    font-size: 0.6rem;
    color: #00ff00;
    line-height: 1.8;
}

/* Tablet & Small Desktop */
@media (max-width: 768px) {
    header {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 0;
    }
    
    .game-card {
        padding: 25px 20px;
    }
    
    .game-card h2 {
        font-size: 1rem;
    }
    
    .game-card p {
        font-size: 0.65rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 20px 10px;
        margin-bottom: 15px;
    }
    
    .logo {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: 0.6rem;
        margin-bottom: 15px;
    }
    
    .loading-bar {
        width: 85%;
        height: 16px;
    }
    
    .games-grid {
        gap: 15px;
    }
    
    .game-card {
        padding: 20px 15px;
        border-width: 2px;
    }
    
    .game-icon