/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

body {
    background-color: #0a0a12;
    color: #e0e0e0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 145, 161, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(255, 0, 80, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(107, 0, 255, 0.1) 0%, transparent 20%),
        linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(10, 10, 18, 0.95), rgba(0, 0, 0, 0.9)),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMxYTFhM2EiIGZpbGwtb3BhY2l0eT0iMC4wOCI+PHBhdGggZD0iTTM2IDM0aDR2MWgtNHYtMXptMC0yaDF2MWgtMXYtMXptMiAwSDM5djFoLTF2LTF6bS0xLTRoMnYxaC0ydi0xem0yIDBoMXYxaC0xdi0xem0wLTRoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXptMiAwSDM3djFoLTF2LTF6bS0xLTRoMnYxaC0ydi0xem0zIDJoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXptMSAwSDM5djFoLTF2LTF6bS0xIDZoMnYxaC0ydi0xem0xLTRoMnYxaC0ydi0xem0yIDJoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXptMiAwSDQydjFoLTF2LTF6bS0xIDZoMnYxaC0ydi0xem0yIDBoMnYxaC0ydi0xem0xLTRoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXptMSAwSDQ1djFoLTF2LTF6bS0xIDZoMnYxaC0ydi0xem0yIDBoMnYxaC0ydi0xem0xLTRoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXptMSAwSDQ4djFoLTF2LTF6bS0xIDZoMnYxaC0ydi0xem0yIDBoMnYxaC0ydi0xem0tMi00aDJ2MWgtMnYtMXptMSAwaDF2MWgtMXYtMXptMiAwSDUydjFoLTF2LTF6bS0xIDZoMnYxaC0ydi0xem0xLTRoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXptMSAwSDU1djFoLTF2LTF6bS0xIDZoMnYxaC0ydi0xem0yIDBoMnYxaC0ydi0xem0xLTRoMnYxaC0ydi0xem0tMi0yaDF2MWgtMXYtMXoiLz48L2c+PC9nPjwvc3ZnPg==');
}

/* Neon Text Effect */
.neon-text {
    color: #0ff;
    text-shadow: 
        0 0 5px #0ff,
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff;
    letter-spacing: 2px;
    font-weight: 600;
}

.neon-text.hero-title {
    color: #ff0055;
    text-shadow: 
        0 0 5px #ff0055,
        0 0 10px #ff0055,
        0 0 20px #ff0055,
        0 0 40px #ff0055;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
}

/* Navigation */
.neon-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container .logo {
    font-size: 2rem;
    font-weight: 900;
    color: #ff0055;
    text-shadow: 
        0 0 5px #ff0055,
        0 0 10px #ff0055,
        0 0 20px #ff0055;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.neon-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.neon-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0ff;
    transition: width 0.3s ease;
}

.neon-link:hover {
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
}

.neon-link:hover::after {
    width: 100%;
}

/* Neon Button Styles */
.neon-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid #0ff;
    color: #0ff;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neon-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.neon-button:hover::before {
    left: 100%;
}

.primary-button {
    border-color: #ff0055;
    color: #ff0055;
}

.primary-button:hover {
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 
        0 0 10px #ff0055,
        0 0 20px #ff0055,
        0 0 40px #ff0055;
}

.primary-button::before {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 85, 0.2), transparent);
}

.nav-button {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2rem;
    min-height: calc(100vh - 100px);
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 2rem;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #b0b0b0;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sudoku-preview {
    position: relative;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 2px;
    background-color: #1a1a2e;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.1);
}

.preview-grid {
    max-width: 400px;
    width: 100%;
}

.grid-cell {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a12;
    border: 1px solid rgba(0, 255, 255, 0.1);
    color: #0ff;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.grid-cell:nth-child(3n) {
    border-right: 2px solid rgba(0, 255, 255, 0.3);
}

.grid-cell:nth-child(9n) {
    border-right: 1px solid rgba(0, 255, 255, 0.1);
}

.grid-cell:nth-child(n+19):nth-child(-n+27),
.grid-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(10, 10, 18, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0ff, #ff0055);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.feature-description {
    color: #b0b0b0;
    line-height: 1.6;
}

/* How to Play Section */
.how-to-play {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    background: rgba(10, 10, 18, 0.6);
}

.instructions-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    min-width: 60px;
    text-align: center;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

.step-content p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Difficulty Levels Section */
.difficulty-section {
    padding: 5rem 2rem;
    position: relative;
    background: rgba(10, 10, 18, 0.7);
}

.difficulty-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.difficulty-card {
    background: rgba(16, 16, 30, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difficulty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.difficulty-card.easy::before {
    background: linear-gradient(90deg, #0ff, #0ff);
}

.difficulty-card.medium::before {
    background: linear-gradient(90deg, #0ff, #ff0055);
}

.difficulty-card.hard::before {
    background: linear-gradient(90deg, #ff0055, #ff0055);
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.difficulty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.difficulty-rank {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #606060;
}

.difficulty-level {
    font-size: 1.5rem;
    font-weight: 700;
}

.difficulty-card.easy .difficulty-level {
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

.difficulty-card.medium .difficulty-level {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.difficulty-card.hard .difficulty-level {
    color: #ff0055;
    text-shadow: 0 0 5px #ff0055;
}

.difficulty-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.difficulty-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.difficulty-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.difficulty-progress {
    height: 100%;
    transition: width 1s ease;
}

.easy-progress {
    width: 30%;
    background: linear-gradient(90deg, #0ff, #0ff);
    box-shadow: 0 0 10px #0ff;
}

.medium-progress {
    width: 60%;
    background: linear-gradient(90deg, #0ff, #ffaa00);
    box-shadow: 0 0 10px #ffaa00;
}

.hard-progress {
    width: 90%;
    background: linear-gradient(90deg, #ffaa00, #ff0055);
    box-shadow: 0 0 10px #ff0055;
}

/* Sudoku Tips Section */
.tips-section {
    padding: 5rem 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.9), rgba(16, 16, 30, 0.9));
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tip-card {
    background: rgba(16, 16, 30, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0ff, #ff0055);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.tip-icon {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ff0055;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px #ff0055;
}

.tip-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.tip-content {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Call to Action Section */
.call-to-action {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.1), rgba(0, 255, 255, 0.1));
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #0ff;
}

.cta-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #b0b0b0;
}

.secondary-button {
    border-color: #0ff;
    color: #0ff;
}

.secondary-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 
        0 0 10px #0ff,
        0 0 20px #0ff,
        0 0 40px #0ff;
}

/* Footer */
.neon-footer {
    background: rgba(10, 10, 18, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #b0b0b0;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #0ff;
    border-color: #0ff;
    box-shadow: 0 0 10px #0ff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #606060;
    font-size: 0.9rem;
}

/* Game Page Styles */
.game-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.game-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.game-timer, .game-difficulty {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.game-timer span, .game-difficulty span {
    color: #0ff;
    font-weight: 600;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.game-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.sudoku-game {
    flex: 1;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    background-color: #1a1a2e;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.game-cell {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a12;
    border: 1px solid rgba(0, 255, 255, 0.1);
    color: #0ff;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-cell:nth-child(3n) {
    border-right: 2px solid rgba(0, 255, 255, 0.3);
}

.game-cell:nth-child(9n) {
    border-right: 1px solid rgba(0, 255, 255, 0.1);
}

.game-cell:nth-child(n+19):nth-child(-n+27),
.game-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.game-cell:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

.game-cell.selected {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.5);
}

.game-cell.pre-filled {
    color: #ff0055;
    font-weight: 700;
}

.game-cell.error {
    color: #ff3333;
    background-color: rgba(255, 51, 51, 0.1);
}

.game-sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.number-button {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a2e;
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #0ff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.number-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.number-button.selected {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.clear-button {
    color: #ff3333;
    border-color: rgba(255, 51, 51, 0.3);
}

.clear-button:hover {
    background-color: rgba(255, 51, 51, 0.1);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
    border-color: rgba(255, 51, 51, 0.5);
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* About Page */
.about-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #0ff;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

/* Contact Page */
.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.contact-container h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #0ff;
}

.contact-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: #ff3366;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

/* Privacy Policy and Terms Pages */
.privacy-container, .terms-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(10, 10, 18, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* Win Celebration Modal */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.win-modal.active {
    opacity: 1;
    visibility: visible;
}

.win-modal-content {
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid #ff0055;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 0 20px #ff0055,
        0 0 40px rgba(255, 0, 85, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: modalPulse 2s infinite alternate;
}

@keyframes modalPulse {
    0% {
        box-shadow: 
            0 0 20px #ff0055,
            0 0 40px rgba(255, 0, 85, 0.5),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 30px #ff0055,
            0 0 60px rgba(255, 0, 85, 0.7),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

.win-title {
    font-size: 3rem;
    color: #ff0055;
    text-shadow: 
        0 0 10px #ff0055,
        0 0 20px #ff0055,
        0 0 40px #ff0055;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    animation: textGlow 1.5s infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 10px #ff0055,
            0 0 20px #ff0055,
            0 0 40px #ff0055;
    }
    100% {
        text-shadow: 
            0 0 15px #ff0055,
            0 0 30px #ff0055,
            0 0 60px #ff0055;
    }
}

.win-message {
    font-size: 1.2rem;
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.win-stats {
    margin-bottom: 2.5rem;
}

.win-stat-item {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
}

.win-stat-value {
    color: #ff0055;
    font-weight: 600;
    margin-left: 0.5rem;
}

.win-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.privacy-container h2, .terms-container h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #0ff;
}

.privacy-container h3, .terms-container h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #e0e0e0;
}

.privacy-container p, .terms-container p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #b0b0b0;
}

.privacy-container ul, .terms-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

.privacy-container li, .terms-container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.privacy-table th, .privacy-table td {
    padding: 0.8rem;
    text-align: left;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.privacy-table th {
    background-color: rgba(0, 255, 255, 0.1);
    color: #0ff;
    font-weight: 600;
}

.privacy-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        padding-top: 150px;
    }
    
    .game-main {
        flex-direction: column;
    }
    
    .game-sidebar {
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .neon-text.hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .instruction-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-info {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 1rem;
    }
    
    .logo-container .logo {
        font-size: 1.5rem;
    }
    
    .neon-text.hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .game-grid .game-cell {
        font-size: 1.2rem;
    }
}