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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 20px; /* Removed extra padding for mobile ad */
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: #000;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.action-btn {
    background: #6aaa64;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #5a9a54;
}

.examples {
    margin-top: 20px;
}

.examples h3 {
    margin-bottom: 15px;
    color: #333;
}

.example-row {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.example-row .tile {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
}

.examples p {
    margin: 10px 0 20px 0;
    color: #666;
    font-size: 0.9em;
}

#share-section {
    text-align: center;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5em;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Game Container Styles */
.game-container {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    /* Make container fill viewport height on desktop to eliminate scrolling */
    /* Navbar 75px, margins 30px, footer 163px, body padding 20px = 288px, plus buffer 60px = 348px */
    min-height: calc(100vh - 348px);
}

@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        margin: 10px auto;
        padding: 0 10px;
        gap: 15px;
        /* Remove min-height on mobile to allow natural scrolling */
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .game-container {
        margin: 8px auto;
        padding: 0 10px;
        gap: 12px;
    }
}

.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Make game card fill the full height of its grid cell on desktop */
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(14, 165, 233, 0.08);
}

/* Reduce padding on desktop to maximize content space */
@media (min-width: 769px) {
    .game-card {
        padding: 15px;
    }
    
    /* Make game elements more compact on desktop */
    .game-card h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .game-card p {
        font-size: 0.95em;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .game-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .game-card {
        padding: 15px 12px;
    }
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #666;
    font-size: 1em;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover {
    border-color: #bbb;
}

/* Password input wrapper for toggle button */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
}

.password-toggle:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.navbar .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-google {
    background: white;
    color: #444;
    border: 2px solid #e0e0e0;
    width: 100%;
    padding: 14px;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f8f8;
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #666;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 15px;
    font-size: 0.9em;
}

.toggle-mode {
    margin-top: 20px;
    color: #666;
    font-size: 0.95em;
}

.toggle-mode a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.toggle-mode a:hover {
    text-decoration: underline;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Setup Instructions Styles */
.setup-instructions {
    text-align: center;
    padding: 20px;
}

.setup-instructions h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.alert {
    background: #e7f3ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.alert-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
}

.alert p {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

.alert strong {
    color: #0ea5e9;
}

.setup-steps {
    margin: 30px 0;
    text-align: left;
}

.setup-step {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.setup-step:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1em;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.step-content a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.step-content a:hover {
    text-decoration: underline;
}

.step-content code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.setup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.setup-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* Default btn-secondary for forms and setup */
.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #0ea5e9;
}

.notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification-toast.error {
    background: #ef5350;
}

.notification-toast.success {
    background: #4caf50;
}

.notification-toast.slideOut {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Game Page Styles */
.game-card, .stats-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover, .stats-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Game Board Styles */
/* Main container for the 6x5 word game grid where players make their guesses */
.game-board {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.board-row {
    display: flex;
    gap: 5px;
}

.tile {
    width: 62px;
    height: 62px;
    border: 2px solid #d3d6da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    background: white;
    color: #000;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tile.filled {
    border-color: #878a8c;
    animation: pop 0.1s ease;
}

@keyframes pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tile.correct {
    background: #6aaa64;
    border-color: #6aaa64;
    color: white;
    animation: flip 0.5s ease;
}

.tile.present {
    background: #c9b458;
    border-color: #c9b458;
    color: white;
    animation: flip 0.5s ease;
}

.tile.absent {
    background: #787c7e;
    border-color: #787c7e;
    color: white;
    animation: flip 0.5s ease;
}

@keyframes flip {
    0% {
        transform: rotateX(0);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0);
    }
}

/* Keyboard Styles */
/* Virtual on-screen keyboard for letter input with color-coded feedback */
.keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.keyboard-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.key {
    min-width: 43px;
    height: 58px;
    border: none;
    border-radius: 4px;
    background: #d3d6da;
    color: #000;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key:hover {
    background: #bfc2c5;
    transform: scale(1.05);
}

.key:active {
    transform: scale(0.95);
}

.key.wide {
    min-width: 65px;
    font-size: 0.7em;
}

.key.correct {
    background: #6aaa64;
    color: white;
}

.key.present {
    background: #c9b458;
    color: white;
}

.key.absent {
    background: #787c7e;
    color: white;
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    height: fit-content;
    max-height: 100%;
    overflow-y: auto;
    border: 2px solid rgba(14, 165, 233, 0.08);
}

/* Reduce padding on desktop */
@media (min-width: 769px) {
    .stats-card {
        padding: 20px;
    }
    
    .stats-card h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
}

.stats-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.game-message {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.game-message.hidden {
    display: none;
}

.stats-card h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
}

.game-message {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

.game-message.success {
    background: #d4edda;
    color: #155724;
}

.game-message.error {
    background: #f8d7da;
    color: #721c24;
}

.hidden {
    display: none;
}

/* Profile Container Styles */
.profile-container {
    max-width: 800px;
    margin: 30px auto;
}

.stat-item .stat-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #0ea5e9;
}

.stat-item .stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Profile Page Styles */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.profile-info h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-info p {
    color: #666;
    font-size: 0.95em;
}

.profile-settings {
    margin-bottom: 30px;
}

.profile-settings, .profile-stats {
    margin-bottom: 30px;
}

.profile-settings h3, .profile-stats h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.setting-description {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.profile-stats {
    margin-top: 30px;
}



.stats-detailed {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: #666;
    font-weight: 500;
}

.stat-row .stat-value {
    color: #0ea5e9;
    font-weight: 700;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .navbar h1 {
        font-size: 1.1em;
    }

    .navbar-logo {
        height: 30px;
    }
    }
    
    .nav-actions {
        gap: 5px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .tile {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .key {
        min-width: 35px;
        height: 50px;
        font-size: 0.9em;
    }
    
    .key.wide {
        min-width: 55px;
    }
    
    .auth-header h1 {
        font-size: 2em;
    }
    
    .game-card, .stats-card, .profile-card {
        padding: 15px 12px;
    }
}

/* Help Modal Styles */
.help-section {
    text-align: left;
}

.help-section h3 {
    font-size: 1.3em;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
}

.help-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.help-section ol,
.help-section ul {
    padding-left: 25px;
    color: #666;
    line-height: 1.8;
}

.help-section li {
    margin-bottom: 10px;
}

.color-guide {
    margin: 20px 0;
}

.color-example {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.color-example .tile {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    flex-shrink: 0;
    border: 2px solid #d3d6da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
}

.color-example .tile.correct {
    background: #6aaa64;
    border-color: #6aaa64;
    color: white;
}

.color-example .tile.present {
    background: #c9b458;
    border-color: #c9b458;
    color: white;
}

.color-example .tile.absent {
    background: #787c7e;
    border-color: #787c7e;
    color: white;
}

.color-example p {
    margin: 0;
    font-size: 0.95em;
}

/* Settings Section */
.settings-section {
    margin-bottom: 30px;
}

/* Button icon styles */
.btn-icon {
    padding: 10px 15px;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Footer Styles */
.footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    padding: 30px 0;
    margin-top: 50px;
}

/* Remove footer margin for game pages on desktop so game fills vertical space */
@media (min-width: 769px) {
    .game-container ~ .ad-container ~ .footer,
    .game-container ~ .footer {
        margin-top: 0;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #06b6d4;
    text-decoration: underline;
}

.footer-links .separator {
    color: #ccc;
}

.footer-social {
    margin: 15px 0;
}

.social-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    display: inline-block;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.footer-copyright {
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links .separator {
        display: none;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .navbar {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .navbar h1 {
    color: #0ea5e9;
}

body.dark-mode .game-card,
body.dark-mode .stats-card,
body.dark-mode .modal-content {
    background: #1e1e2f;
    color: #e0e0e0;
    border-color: rgba(14, 165, 233, 0.3);
}

body.dark-mode .stats-card h3,
body.dark-mode .modal-content h2,
body.dark-mode h1 {
    color: #e0e0e0;
}

body.dark-mode .stat-label,
body.dark-mode .help-section p,
body.dark-mode .help-section li,
body.dark-mode .color-example p {
    color: #b0b0b0;
}

body.dark-mode .tile {
    background: #2a2a3e;
    color: #e0e0e0;
    border-color: #3a3a4e;
}

body.dark-mode .key {
    background: #3a3a4e;
    color: #e0e0e0;
}

body.dark-mode .key:hover {
    background: #4a4a5e;
}

body.dark-mode .setting-item {
    background: #2a2a3e;
}

body.dark-mode .setting-info label {
    color: #e0e0e0;
}

body.dark-mode .setting-description {
    color: #b0b0b0;
}

body.dark-mode .close {
    color: #b0b0b0;
}

body.dark-mode .close:hover {
    color: #e0e0e0;
}

body.dark-mode .help-section h3 {
    color: #e0e0e0;
}

body.dark-mode .color-example {
    background: #2a2a3e;
}

body.dark-mode .footer {
    background: rgba(26, 26, 46, 0.95);
    border-top-color: rgba(14, 165, 233, 0.3);
}

body.dark-mode .footer-links a {
    color: #8a9aef;
}

body.dark-mode .footer-links a:hover {
    color: #a8b4f5;
}

body.dark-mode .footer-links .separator {
    color: #555;
}

body.dark-mode .footer-copyright {
    color: #b0b0b0;
}

/* High Contrast Mode Styles */
body.high-contrast .tile.correct {
    background: #00ff00;
    border-color: #00ff00;
    color: #000;
}

body.high-contrast .tile.present {
    background: #ffff00;
    border-color: #ffff00;
    color: #000;
}

body.high-contrast .tile.absent {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

body.high-contrast .key.correct {
    background: #00ff00;
    color: #000;
}

body.high-contrast .key.present {
    background: #ffff00;
    color: #000;
}

body.high-contrast .key.absent {
    background: #000000;
    color: #fff;
}

body.high-contrast .color-example .tile.correct {
    background: #00ff00;
    border-color: #00ff00;
    color: #000;
}

body.high-contrast .color-example .tile.present {
    background: #ffff00;
    border-color: #ffff00;
    color: #000;
}

body.high-contrast .color-example .tile.absent {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

/* No Animations Styles */
body.no-animations * {
    animation: none !important;
    transition: none !important;
}
