
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* CSS Variables for our 8-bit color palette */
:root {
    --pixel-green: #00ff00;
    --pixel-blue: #0080ff;
    --pixel-red: #ff0040;
    --pixel-yellow: #ffff00;
    --pixel-purple: #8000ff;
    --pixel-cyan: #00ffff;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --pixel-white: #ffffff;
    --pixel-black: #000000;
}

/* Basic setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--dark-bg);
    color: var(--pixel-white);
    line-height: 1.8;
    /* Force nearest-neighbor scaling for a crisp pixel look */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    font-size: 12px;
    overflow-x: hidden; /* Prevent horizontal scrollbars */
}

/* --- ENHANCED VISUAL EFFECTS --- */

/* Animated Pixel Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--pixel-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--pixel-blue) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -2;
    animation: pixelGridMove 20s linear infinite;
}

/* Scan Lines Overlay for that CRT Monitor Vibe */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.2) 2px,
        rgba(0, 0, 0, 0.2) 4px
    );
    z-index: 10000;
    pointer-events: none; /* Make sure we can click through it */
}

/* Keyframe Animations */
@keyframes pixelGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Glitch effect for titles */
.glitch {
    position: relative;
    animation: glitch-anim 2.5s infinite steps(1);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--pixel-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--pixel-blue), 2px 2px var(--pixel-red);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(7px, 9999px, 87px, 0); }
    100% { clip: rect(92px, 9999px, 98px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(33px, 9999px, 74px, 0); }
    100% { clip: rect(15px, 9999px, 63px, 0); }
}
@keyframes glitch-anim {
    0% { transform: skew(0deg); }
    10% { transform: skew(0.5deg); }
    20% { transform: skew(0deg); }
    80% { transform: skew(0deg); }
    90% { transform: skew(-0.8deg); }
    100% { transform: skew(0deg); }
}

/* --- Navigation Bar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--darker-bg);
    border-bottom: 4px solid var(--pixel-green);
    z-index: 1000;
    padding: 15px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size:10px ;
}

.logo {
    font-size: 14px;
    color: var(--pixel-yellow);
    text-shadow: 2px 2px 0px var(--pixel-red);
    user-select: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--pixel-white);
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    position: relative;
                width: 50px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--pixel-yellow);
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px var(--pixel-green);
}
.nav-links a:hover::before {
    content: '>';
    position: absolute;
    left: 0;
    animation: blink 0.8s infinite;
}
.nav-links a:hover::after {
    content: '<';
    position: absolute;
    right: 0;
    animation: blink 0.8s infinite;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    
animation: matrixFall linear infinite;
white-space: pre-line;
line-height: 1.2;
    /*background: radial-gradient(circle, rgba(22, 33, 62, 0.8) 0%, rgba(26, 26, 46, 1) 70%);
*/}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.game-title {
    font-size: clamp(28px, 6vw, 34px);
    margin-bottom: 5px;
    color: var(--pixel-yellow);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.subtitle {
    font-size: 10px;
    margin-bottom: 10px;
    color: var(--pixel-green);
    animation: blink 2s infinite;
}

.game-description {
    font-size: 8px;
    margin-bottom: 40px;
    color: var(--pixel-white);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2.2;
}

.start-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--pixel-red);
    color: var(--pixel-white);
    text-decoration: none;
    border: 4px solid var(--pixel-yellow);
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px var(--pixel-blue);
}

.start-button:hover {
    background: var(--pixel-yellow);
    color: var(--pixel-red);
    border-color: var(--pixel-green);
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--pixel-blue);
}

.start-button::before {
    content: '▶ ';
    animation: blink 1s infinite;
}

/* --- General Section Styling --- */
.game-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-bottom: 4px dashed var(--pixel-blue);
}
.game-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: '★';
    color: var(--pixel-green);
    margin: 0 20px;
    animation: blink 1.5s infinite alternate;
}

/* --- Game Cards --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.game-grid > div:nth-child(3n + 1):last-child {
    grid-column: 2; /* Move it to the second column */
}

.game-card {
    background: var(--darker-bg);
    border: 4px solid var(--pixel-blue);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}
.game-card li{
    display: none;
}
.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--pixel-green);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.2);
}
.game-card-buttons{
    display: flex;
    justify-content: space-between;
}

.game-card h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--pixel-yellow);
    text-transform: uppercase;
}

.game-card h3::before {
    content: '◆ ';
    color: var(--pixel-green);
}

.game-card p {
    color: var(--pixel-white);
    margin-bottom: 20px;
    font-size: 10px;
    line-height: 1.8;
}
#game-grid-competition p,.game-section p{
    display: none;
}
.game-card h5{
    margin-bottom: 20px;
}

.pixel-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--pixel-green);
    color: var(--dark-bg);
    text-decoration: none;
    border: 2px solid var(--pixel-black);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;

}

.pixel-button:hover {
    background: var(--pixel-yellow);
    color: var(--pixel-red);
    border-color: var(--pixel-red);
}

.pixel-button-preview {
    display: inline-block;
    padding: 10px 20px;
    background: var(--pixel-white);
    color: var(--dark-bg);
    text-decoration: none;
    border: 2px solid var(--pixel-black);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-transform: uppercase;
    transition: all 0.2s ease;

}

.pixel-button-preview:hover {
    background: var(--pixel-yellow);
    color: var(--pixel-red);
    border-color: var(--pixel-red);
}


/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 60px; /* Space for countdown */
}

.stat-box {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    border: 4px solid var(--pixel-green);
    padding: 25px;
}

.stat-number {
    font-size: 28px;
    color: var(--pixel-red);
    display: block;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px var(--pixel-yellow);
}

.stat-label {
    font-size: 10px;
    color: var(--pixel-white);
    text-transform: uppercase;
}

/* --- Countdown Timer --- */
.countdown-container {
    text-align: center;
}
.countdown-title {
    font-size: 14px;
    color: var(--pixel-yellow);
    margin-bottom: 30px;
    text-transform: uppercase;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.time-box {
    background: var(--pixel-black);
    border: 2px solid var(--pixel-blue);
    padding: 15px;
    min-width: 100px;
}
.time-box span {
    display: block;
}
.time-box .time-number {
    font-size: 26px;
    color: var(--pixel-green);
    text-shadow: 0 0 5px var(--pixel-green);
}
.time-box .time-label {
    font-size: 10px;
    color: var(--pixel-white);
    margin-top: 10px;
}



/* --- Footer --- */
footer {
    background: var(--darker-bg);
    border-top: 6px solid var(--pixel-blue);
    padding: 40px 20px 20px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon {
    color: var(--pixel-white);
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--pixel-green);
    transform: scale(1.2) rotate(15deg);
}

.credits {
    color: var(--pixel-white);
    font-size: 8px;
    margin-top: 20px;
    opacity: 0.7;
}

/* --- Konami Code Modal --- */
.konami-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.konami-content {
    background: var(--dark-bg);
    margin: auto;
    padding: 30px;
    border: 4px solid var(--pixel-red);
    width: 90%;
    max-width: 1000px;
    text-align: center;
    box-shadow: 0 0 20px var(--pixel-red);
}

.konami-content h2 {
    color: var(--pixel-yellow);
    font-size: 18px;
    margin-bottom: 20px;
}

.konami-content p {
    color: var(--pixel-white);
    font-size: 12px;
    margin-bottom: 15px;
}
#event-title{
    font-size: 24px;
}
#event-rules-desc li,#event-match-desc li,#event-prize-desc li{
    list-style: decimal;
    margin:0px  40px;
}
#event-date{
    color: #00ffff;
    font-size: 18px;
    font-weight: 800;
}
#event-rules, #event-match,#event-prize{
    text-align: left;
    font-size: 14px;
    color: #56aaff;
}
#event-rules-desc,#event-match-desc,#event-prize-desc{
    text-align: justify;
}
#event-reg-fees{
    font-size: 14px;
}
.reg-fees{
    color: #00ff00;
    font-size: 18px;
}
#close-konami {
    background: var(--pixel-red);
    color: var(--pixel-white);
}
#close-konami:hover {
    background: var(--pixel-yellow);
    color: var(--pixel-red);
}
#change-disc-style li{
    list-style: disc;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .game-title { font-size: 24px; }
    .section-title { font-size: 20px; }
    .game-grid { grid-template-columns: 1fr; }
    .countdown-timer { gap: 10px; }
    .time-box { min-width: 70px; padding: 10px; }
    .time-box .time-number { font-size: 24px; }
}
