:root {
    --primary: #ff5e00;
    --secondary: #ff2a00;
    --accent: #ff9600;
    --background: #fff7e6;
    --card-bg: #fff;
    --text-light: #fff;
    --text-dark: #333;
    --success: #4CAF50;
    --error: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    background: var(--background);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    touch-action: manipulation;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 100vw;
}

.announcement-bar {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: bold;
  padding: 8px 0;
  position: relative;
  top: 0;
  left: 0;
  z-index: 5000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.announcement-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    min-width: 100%;
    will-change: transform;
    text-shadow: none;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    min-width: 200%;
    padding: 0 10px;
}
.announcement-text:hover {
  animation-play-state: paused;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    z-index: 10002;
}

.logo-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(255, 42, 0, 0.3);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    z-index: 9998;
    
    
}

.hamburger {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px; 
    z-index: 10003;
    position: relative;
    padding: 8px;
    background: rgba(255, 94, 0, 0.1);
    border-radius: 6px;
    width: auto;
    height: auto;
    line-height: 1;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    background: rgba(255, 42, 0, 0.1);
    color: var(--accent);
}

.hero {
    background: linear-gradient(135deg, rgba(255,150,0,0.1), rgba(255,94,0,0.05)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ff5e00" opacity="0.1"/></svg>');
    background-size: 20px 20px;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 0px;
    font-size: 48px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,150,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.games-section {
    padding: 20px 20px;
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.game-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 50%;
    background: rgba(255,255,255,0.1);
    transform: rotate(25deg) translateX(-50%);
    animation: shine 3s infinite;
}

.game-icon {
    font-size: 5rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.game-content {
    padding: 25px;
}

.game-content h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.game-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.games-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.games-scroll-wrapper .games-grid {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 30px;
  width: max-content;
  padding: 0;
}

.games-scroll-wrapper .game-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 450px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat .label {
    font-size: 0.9rem;
    color: #777;
}

.features-section {
    padding: 80px 20px;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.leaderboard-section {
    padding: 80px 20px;
    background: #f9f9f9;
}

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: #222;
    color: #aaa;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0px;
    text-align: left;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    margin-top: 550px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: space-between;
    display:block;
}
.social{
    width:32px; 
    height:32px; 
    cursor:pointer;
}
.reaction-test-mini {
  background-color:  #f9f9f9;
  padding: 1rem 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
  background-color: var(--card-bg); /* or var(--background) */
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.reaction-test-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

/* Scroll wrapper to center children */
.reaction-test-scroll-container {
  display: block;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0 1rem;

   -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;     /* Firefox */
  white-space: nowrap;

}

.reaction-test-scroll-container::-webkit-scrollbar {
 display: none;   
}
.reaction-test-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
}

.reaction-test-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: max-content;
}

.mini-btn {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--text-light);
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.3s ease;
}

.mini-btn:hover {
  transform: scale(1.05);
  background: var(--accent);
}
.reaction-test-mini {
  margin-top: x; /* Pull up to close the gap */
  z-index: 10;
  position: relative;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    
    .hamburger {
        display: block;
    }

    .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; 
    right: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px 40px;  
    gap: 25px;          
    border-radius: 15px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    z-index: 10001;
    min-width: 220px;    
    max-width: 300px;    
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    color: var(--primary);
    font-size: 1.1rem;   
    padding: 12px 20px;
    width: 100%;        
    text-align: center;
    background: rgba(255,94,0,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,94,0,0.15);
    color: var(--accent);
    transform: translateY(-2px);
}

    .hero {
        padding: 100px 20px 60px;
        margin-top: 0 !important;
        font-size: 28px;
        position: relative;
        z-index: 1; 
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .leaderboard-title {
        font-size: 1.5rem;
    }

    .leaderboard-filters {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: max-content;
    }

    .leaderboard-item {
        padding: 12px 5px;
    }

    .rank {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-right: 10px;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-right: 10px;
    }

    .user-name {
        font-size: 0.9rem;
        max-width: 120px;
    }

    .score {
        font-size: 1rem;
    }

    .games-scroll-wrapper {
        padding: 0 20px;
    }

    .games-scroll-wrapper .game-card {
        width: calc(100vw - 80px);
        min-width: 280px;
        max-width: 400px;
    }

    .games-scroll-wrapper .games-grid {
        gap: 20px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }
    
    .hamburger {
        font-size: 1rem;
        padding: 6px;
        margin-left: 10px;
    }
    
    .nav-links {
        padding: 70px 15px 20px;
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
    
    .hero {
        padding: 80px 15px 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }

    .leaderboard-container {
        padding: 20px;
        margin: 0 10px;
    }

    .leaderboard-title {
        font-size: 1.3rem;
    }

    .leaderboard-filters {
        gap: 5px;
    }

    .filter-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .leaderboard-item {
        padding: 10px 2px;
    }

    .rank {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-right: 8px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-right: 8px;
    }

    .user-name {
        font-size: 0.85rem;
        max-width: 100px;
    }

    .score {
        font-size: 0.9rem;
    }

    .games-scroll-wrapper {
        padding: 0 15px;
    }

    .games-scroll-wrapper .game-card {
        width: calc(100vw - 60px);
        min-width: 260px;
        max-width: 350px;
    }

    .games-scroll-wrapper .games-grid {
        gap: 15px;
    }
}

@media (max-width: 360px) {
    .games-scroll-wrapper {
        padding: 0 10px;
    }

    .games-scroll-wrapper .game-card {
        width: calc(100vw - 40px);
        min-width: 240px;
        max-width: 320px;
    }

    .games-scroll-wrapper .games-grid {
        gap: 10px;
    }
}

.training-tips-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.training-tips-table th,
.training-tips-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.training-tips-table thead {
  background-color: var(--primary);
  color: #fff;
}

.training-tips-table tbody tr:hover {
  background-color: #f9f9f9;
}