/* TYPE 2 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #000000;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--bg-gray);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.nav {
    background: #2564ebf5;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary);
}

.nav h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.nav h1 b {
    color: #002d8f;
}

/* Hero Section */
.hero {
    background: #1c1e3b;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: 'stupidsite.net';
    position: absolute;
    font-size: 15rem;
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    pointer-events: none;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.hero h4 {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Search Section */
.search-section {
    max-width: 1200px;
    margin: -2rem auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 50;
}

.search-container {
    background: #222446;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    background: #ffffff;
}

.search-bar:focus {
    border-color: var(--primary);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.mood-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mood-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mood-btn.good {
    background: #4da02d;
    color: white;
}

.mood-btn.good:hover {
    background: #059669;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.mood-btn.shit {
    background: #722e2e;
    color: white;
}

.mood-btn.shit:hover {
    background: #dc2626;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.mood-emoji {
    font-size: 1.75em;
}

.activities {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.25rem;
}

.activity-card {
    background: #FAF9F6;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: #000;
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.activity-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.activity-card:nth-child(even):hover {
    transform: translateY(-6px) rotate(0.5deg);
}

.activity-card .emoji {
    font-size: 4.5rem;
    margin-bottom: 0;
    display: block;
    transition: all 0.3s;
    flex-shrink: 0;
}

.activity-card:hover .emoji {
    transform: scale(1.1) rotate(5deg);
}

.activity-card-content {
    flex: 1;
}

.activity-card h3 {
    font-size: 2rem;
    margin-bottom: 0.35rem;
    color: var(--text);
    font-weight: 800;
    line-height: 1.2;
}

.activity-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.4;
}

/* Hide cards when filtered */
.activity-card.hidden {
    display: none;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.burger-dropdown {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    margin: 1rem;
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 999;
    border: 2px solid var(--primary);
}

.burger-dropdown.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.burger-dropdown a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.burger-dropdown a:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 3px solid var(--primary);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    background: var(--bg-gray);
    border: none;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.close-btn:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Questions */
.question {
    margin: 2rem 0;
}

.question h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    background: var(--bg-gray);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.option:hover {
    background: var(--bg);
    border-color: var(--primary);
    transform: translateX(5px);
}

.option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(5px);
}

/* Buttons */
.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

/* Results */
.result {
    background: var(--success);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.result p {
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Progress Bar */
.progress {
    background: var(--bg-dark);
    height: 10px;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Footer */
footer {
    background: var(--text);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary);
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .activities {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .activities {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }
    
    .activity-card {
        min-height: 120px;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .activity-card h3 {
        font-size: 1.5rem;
    }
    
    .activity-card .emoji {
        font-size: 3.5rem;
    }
    
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .search-section {
        padding: 0 1rem;
    }
    
    .mood-buttons {
        grid-template-columns: 1fr;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav h1 {
        font-size: 1.3rem;
        padding-right: 50px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .search-bar {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .activity-card {
        min-height: 100px;
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .activity-card h3 {
        font-size: 1.35rem;
    }
    
    .activity-card .emoji {
        font-size: 3rem;
    }
}

/* Game Specific Styles */



/* Counter Display */
#counter-display {
    font-size: 4rem;
    font-weight: 800;
    background: #414969;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: var(--spacing-lg) 0;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Game Container */
.game-container {
    text-align: center;
    padding: var(--spacing-lg);
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: var(--spacing-lg) 0;
    border: 2px solid var(--border-light);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.catch-box {
    width: 80px;
    height: 80px;
    background: #414969;
    border-radius: var(--radius-lg);
    position: absolute;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.catch-box:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.catch-box:active {
    transform: scale(0.95);
}

/* Wordle Game */
.wordle-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: var(--spacing-xs);
    margin: var(--spacing-xl) auto;
    max-width: 350px;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-xs);
}

.wordle-cell {
    width: 62px;
    height: 62px;
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wordle-cell.filled {
    border-color: var(--text-secondary);
    background: var(--bg-secondary);
}

.wordle-cell.correct {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
    animation: flip 0.6s ease-in-out;
}

.wordle-cell.present {
    background: #eab308;
    color: white;
    border-color: #eab308;
    animation: flip 0.6s ease-in-out;
}

.wordle-cell.absent {
    background: var(--text-secondary);
    color: rgb(70, 70, 70);
    border-color: var(--text-secondary);
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% { transform: rotateX(0); }
    50% { transform: rotateX(-90deg); }
    100% { transform: rotateX(0); }
}

/* Keyboard */
.keyboard {
    max-width: 500px;
    margin: var(--spacing-lg) auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.key {
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 43px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.key:hover {
    background: var(--border-medium);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.key:active {
    transform: translateY(0);
}

.key.wide {
    min-width: 65px;
}

.key.correct {
    background: #22c55e;
    color: white;
}

.key.present {
    background: #eab308;
    color: white;
}

.key.absent {
    background: var(--text-secondary);
    color: rgb(53, 53, 53);
}

/* DVD Screensaver Styles */
.dvd-container {
    background: #24283a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#dvdCanvas {
    width: 100%;
    max-width: 800px;
    height: 500px;
    border: 3px solid #212433;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: #000;
}

.dvd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2em;
    font-weight: 800;
    color: #24283a;
}

#cornerMessage {
    text-align: center;
    font-size: 1.5em;
    font-weight: 800;
    margin-top: 20px;
    min-height: 40px;
    color: #24283a;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Dopamine Clicker Styles */
.dopamine-container {
    background: #24283a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.dopamine-counter {
    font-size: 4em;
    font-weight: 800;
    text-align: center;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.dopamine-per-click {
    text-align: center;
    font-size: 1.2em;
    color: #e5e7eb;
    margin-bottom: 30px;
}

.dopamine-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #141727 0%, #141727 100%);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: 0 10px 30px rgba(20, 23, 39, 0.6);
    transition: transform 0.1s, box-shadow 0.3s;
}

.dopamine-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(20, 23, 39, 0.8);
}

.dopamine-button:active {
    transform: scale(0.95);
}

.button-emoji {
    font-size: 4em;
    margin-bottom: 10px;
}

.button-text {
    color: rgb(255, 255, 255);
    font-size: 1.3em;
    font-weight: 700;
}

.upgrades-section,
.auto-clickers-section {
    margin-top: 40px;
}

.upgrades-section h3,
.auto-clickers-section h3,
.stats-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.upgrade-item {
    background: #414969;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.upgrade-item.affordable {
    border-color: #24283a;
}

.upgrade-item.affordable:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.upgrade-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.upgrade-name {
    font-weight: 700;
    font-size: 1.1em;
}

.upgrade-owned {
    background: #24283a;
    color: rgb(255, 255, 255);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.upgrade-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.upgrade-cost {
    font-weight: 700;
    color: #24283a;
}

.auto-stats {
    background: #414969;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
}

.auto-stats strong {
    color: #24283a;
    font-size: 1.3em;
}

.stats-section {
    margin-top: 40px;
    background: #414969;
    padding: 20px;
    border-radius: 8px;
}

.stats-grid {
    display: grid;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
}

.stat-item strong {
    color: #24283a;
}

/* Particle effect for clicks */
.dopamine-particle {
    position: fixed;
    font-size: 1.5em;
    font-weight: 800;
    color: #24283a;
    pointer-events: none;
    animation: floatUp 1s ease-out;
    z-index: 9999;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/* World-O-Meter Styles */
.worldometer-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stat-category {
    margin-bottom: 50px;
}

.stat-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 25px;
    color: #24283a;
    border-left: 5px solid #24283a;
    padding-left: 15px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #24283a;
}

.stat-card.primary {
    background: linear-gradient(135deg, #24283a 0%, #24283a 100%);
    grid-column: 1 / -1;
}

.stat-card.primary .stat-label,
.stat-card.primary .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 800;
    color: #ff0000;
    font-family: 'Courier New', monospace;
    transition: transform 0.2s;
}

.stat-number.green {
    color: #00b894;
}

.stat-number.red {
    color: #e74c3c;
}

.stat-number.blue {
    color: #ffffff;
}

.stat-number.orange {
    color: #f39c12;
}

/* Pulse animation for stat numbers */
@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-number.pulse {
    animation: statPulse 0.3s ease-in-out;
}

/* Draw Pad Styles */
.drawpad-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.toolbar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-group label {
    font-weight: 700;
    font-size: 0.9em;
    color: #2c3e50;
}

.paper-buttons {
    display: flex;
    gap: 10px;
}

.paper-btn {
    padding: 10px 20px;
    border: 2px solid #24283a;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.paper-btn.active {
    background: #24283a;
    color: white;
}

.paper-btn:hover {
    transform: translateY(-2px);
}

.pen-buttons {
    display: flex;
    gap: 10px;
}

.pen-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.2s;
}

.pen-btn.active {
    border-color: #24283a;
    background: #f0f3ff;
}

.pen-btn:hover {
    transform: scale(1.1);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(8, 40px);
    gap: 8px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn.active {
    border-color: #2c3e50;
    transform: scale(1.1);
}

.color-btn:hover {
    transform: scale(1.15);
}

.size-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-slider {
    width: 150px;
}

.size-value {
    font-weight: 700;
    color: #24283a;
    min-width: 40px;
}

.canvas-wrapper {
    position: relative;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#drawCanvas {
    display: block;
    cursor: crosshair;
    background: white;
}

#drawCanvas.postit {
    background: #ffd966;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn.clear {
    background: #e74c3c;
    color: white;
}

.action-btn.download {
    background: #00b894;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.eraser-info {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Slot Machine Styles */
.slot-container {
    background: linear-gradient(135deg, #24283a 0%, #24283a 100%);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.slot-machine {
    background: #2c3e50;
    border-radius: 15px;
    padding: 40px;
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.slot-title {
    color: #ffd700;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.reels-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.reel {
    background: white;
    border: 5px solid #ffd700;
    border-radius: 15px;
    width: 150px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.reel.spinning {
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.spin-button {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    border-radius: 50px;
    padding: 20px 60px;
    font-size: 1.5em;
    font-weight: 800;
    color: #2c3e50;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s;
    text-transform: uppercase;
}

.spin-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.spin-button:active {
    transform: translateY(0);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-message {
    min-height: 60px;
    margin: 20px 0;
    font-size: 1.8em;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.result-message.win {
    color: #ffd700;
    animation: glow 1s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; }
    50% { text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700; }
}

.stats {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

/* Spaghetti Code Generator Styles */
.spaghetti-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: 700;
    font-size: 0.9em;
    color: #2c3e50;
}

.language-select {
    padding: 12px 20px;
    border: 2px solid #24283a;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    background: white;
    min-width: 150px;
}

.generate-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #24283a 0%, #24283a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-end;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 40, 58, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.code-output {
    background: #2c3e50;
    color: #00ff00;
    padding: 25px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

.code-output::-webkit-scrollbar {
    width: 10px;
}

.code-output::-webkit-scrollbar-track {
    background: #1a252f;
    border-radius: 10px;
}

.code-output::-webkit-scrollbar-thumb {
    background: #24283a;
    border-radius: 10px;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 20px;
    background: #24283a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #1e2235;
}

.copy-btn.copied {
    background: #00b894;
}

.warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #856404;
}

.warning strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-badge {
    background: #24283a;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
}

/* Stock Simulator Styles */
.stock-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-value {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-label {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.portfolio-amount {
    font-size: 4em;
    font-weight: 800;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
}

.portfolio-amount.positive {
    color: #00b894;
}

.chart-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    height: 400px;
    position: relative;
}

#stockChart {
    width: 100%;
    height: 100%;
}

.stock-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.stock-btn.buy {
    background: #00b894;
    color: white;
}

.stock-btn.sell {
    background: #fdcb6e;
    color: #ffffff;
}

.stock-btn.panic {
    background: #e74c3c;
    color: white;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stock-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.stock-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-feed {
    background: #2c3e50;
    color: white;
    border-radius: 12px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.news-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffd700;
}

.news-item {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.95em;
}

.news-item.bad {
    border-left: 4px solid #e74c3c;
}

/* Art Critic Styles */
.art-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.artwork-frame {
    background: #2c3e50;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.artwork-canvas {
    background: white;
    width: 100%;
    height: 400px;
    border: 10px solid #d4af37;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-title {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 1.2em;
    font-style: italic;
}

.rating-section {
    text-align: center;
    margin-bottom: 30px;
}

.rating-label {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.star {
    font-size: 3em;
    cursor: pointer;
    transition: all 0.2s;
    filter: grayscale(100%);
}

.star.active {
    filter: grayscale(0%);
    transform: scale(1.2);
}

.star:hover {
    transform: scale(1.3);
}

.submit-btn {
    padding: 15px 50px;
    background: linear-gradient(135deg, #24283a 0%, #24283a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(36, 40, 58, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.critique {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    min-height: 100px;
}

.critique-title {
    font-weight: 800;
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #24283a;
}

.critique-text {
    font-size: 1.1em;
    line-height: 1.6;
    color: #2c3e50;
}

.critique.harsh {
    border-left: 5px solid #e74c3c;
}

.critique.nice {
    border-left: 5px solid #00b894;
}

.next-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* TypeFaster */
.typing-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

/* Styling fÃ¼r die stat containers */
.stat-card {
    background: #24283a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    margin: 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #a0a4b8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 800;
    color: white;
    font-family: 'Courier New', monospace;
}

/* Results container styling */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.timer-display {
    text-align: center;
    font-size: 3em;
    font-weight: 800;
    color: #24283a;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
}
.text-display {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    font-size: 1.3em;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    min-height: 150px;
}
.text-display span.correct {
    color: #00b894;
    background: rgba(0, 184, 148, 0.1);
}
.text-display span.incorrect {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    text-decoration: underline;
}
.text-display span.current {
    background: #24283a;
    color: white;
    padding: 2px;
}
.input-area {
    width: 100%;
    padding: 20px;
    font-size: 1.2em;
    border: 3px solid #24283a;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    outline: none;
    margin-bottom: 20px;
}
.input-area:focus {
    border-color: #1e2235;
    box-shadow: 0 0 0 4px rgba(36, 40, 58, 0.2);
}
.input-area:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}
.control-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}
.control-btn.start {
    background: #00b894;
    color: white;
}
.control-btn.reset {
    background: #e74c3c;
    color: white;
}
.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.results {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    display: none;
}
.results.show {
    display: block;
}
.results-title {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: #24283a;
}
.difficulty-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.difficulty-btn {
    padding: 10px 20px;
    border: 2px solid #24283a;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.difficulty-btn.active {
    background: #24283a;
    color: white;
}

/* Rock Paper Scissors Styles */
.rps-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.game-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
    gap: 30px;
}

.player-section {
    text-align: center;
    flex: 1;
}

.player-label {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.choice-display {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #24283a 0%, #24283a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6em;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(36, 40, 58, 0.3);
    transition: all 0.3s;
}

.choice-display.computer {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.vs-divider {
    font-size: 3em;
    font-weight: 800;
    color: #2c3e50;
}

.choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.choice-btn {
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    font-size: 3em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.choice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(36, 40, 58, 0.3);
}

.choice-btn:active {
    transform: scale(0.95);
}

.result-message {
    text-align: center;
    font-size: 2.5em;
    font-weight: 800;
    margin: 30px 0;
    min-height: 60px;
}

.result-message.win {
    color: #00b894;
}

.result-message.lose {
    color: #e74c3c;
}

.result-message.draw {
    color: #fdcb6e;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.score-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.score-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.score-value {
    font-size: 2.5em;
    font-weight: 800;
}

.score-value.win {
    color: #00b894;
}

.score-value.lose {
    color: #e74c3c;
}

.score-value.draw {
    color: #fdcb6e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #24283a 0%, #24283a 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 800;
}

.stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Dark Mode for Games */
@media (prefers-color-scheme: dark) {
    .wordle-cell {
        background: var(--bg-tertiary);
    }
    
    .game-area {
        background: var(--bg-tertiary);
    }
}

/* Responsive Game Styles */
@media (max-width: 768px) {
    #counter-display {
        font-size: 3rem;
    }
    
    .wordle-cell {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .wordle-grid {
        max-width: 290px;
    }
    
    /* Smaller Wordle keyboard on mobile */
    .keyboard {
        max-width: 380px;
    }
    
    .key {
        padding: 8px 6px;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    .key.wide {
        min-width: 42px;
    }
    
    .reels-container {
        gap: 10px;
    }
    
    .reel {
        width: 100px;
        height: 120px;
        font-size: 3em;
    }
    
    .stat-grid,
    .scoreboard,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-area {
        flex-direction: column;
        gap: 20px;
    }

    .choice-display {
        width: 150px;
        height: 150px;
        font-size: 4em;
    }

    .vs-divider {
        transform: rotate(90deg);
    }
}

/* Additional responsive adjustments for games */
@media (max-width: 480px) {
    .wordle-cell {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .wordle-grid {
        max-width: 260px;
    }
    
    /* Even smaller keyboard for very small screens */
    .keyboard {
        max-width: 320px;
    }
    
    .key {
        padding: 6px 4px;
        font-size: 0.7rem;
        min-width: 24px;
    }
    
    .key.wide {
        min-width: 36px;
    }
}

/* Focus styles for game elements */
.key:focus,
.choice-btn:focus,
.stock-btn:focus,
.submit-btn:focus,
.control-btn:focus {
    outline: 2px solid #24283a;
    outline-offset: 2px;
}

.a {
    color: #941608
}

/* ========================================
   THUMBGUESSR STYLES
======================================== */
.thumbguessr-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.score-display {
    text-align: center;
    margin-bottom: 30px;
}

.score-display .score-label {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.score-display .score-number {
    font-size: 4em;
    font-weight: 800;
    color: #24283a;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.thumbnail-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-card img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.thumbnail-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.thumbnail-card.disabled {
    pointer-events: none;
}

.thumbnail-card.correct img {
    border: 5px solid #00b894;
}

.thumbnail-card.wrong img {
    border: 5px solid #e74c3c;
    opacity: 0.6;
}

.view-count {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
}

.guess-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background: #24283a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.guess-btn:hover {
    background: #24283a;
    transform: translateY(-2px);
}

.vs-text {
    font-size: 3em;
    font-weight: 800;
    color: #2c3e50;
}

.result-display {
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    min-height: 50px;
    margin: 20px 0;
}

.result-display.correct {
    color: #00b894;
}

.result-display.wrong {
    color: #e74c3c;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stats-panel .stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stats-panel .stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.stats-panel .stat-value {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: #24283a;
}

.stats-panel .stat-value.green {
    color: #00b894;
}

.stats-panel .stat-value.red {
    color: #e74c3c;
}

/* ========================================
   SUDOKU STYLES
======================================== */

.sudoku-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.difficulty-select {
    display: flex;
    gap: 10px;
}

.diff-btn {
    padding: 10px 20px;
    border: 2px solid #24283a;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.diff-btn.active {
    background: #24283a;
    color: white;
}

.new-game-btn {
    padding: 10px 25px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.new-game-btn:hover {
    background: #00a383;
}

.timer-display {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    color: #24283a;
    margin-bottom: 20px;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    background: #2c3e50;
    border: 3px solid #2c3e50;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1;
}

.sudoku-cell {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.sudoku-cell:hover {
    background: #f0f3ff;
}

.sudoku-cell.selected {
    background: #24283a;
    color: white;
}

.sudoku-cell.original {
    background: #e9ecef;
    color: #2c3e50;
    cursor: not-allowed;
}

.sudoku-cell.user-input {
    color: #24283a;
}

.sudoku-cell.wrong {
    color: #e74c3c;
}

.sudoku-cell.border-left {
    border-left: 3px solid #2c3e50;
}

.sudoku-cell.border-top {
    border-top: 3px solid #2c3e50;
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.num-btn {
    padding: 20px;
    border: 2px solid #24283a;
    background: white;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.num-btn:hover {
    background: #24283a;
    color: white;
}

.num-btn.erase {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.num-btn.erase:hover {
    background: #c0392b;
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.info-item {
    font-size: 1.1em;
}

.win-message {
    display: none;
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    color: #00b894;
    padding: 20px;
    background: rgba(0, 184, 148, 0.1);
    border-radius: 12px;
    margin-top: 20px;
}

/* ========================================
   LETTER SCRAMBLE STYLES
======================================== */
.letterscramble-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.instruction-panel {
    background: linear-gradient(135deg, #24283a);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.instruction-text {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.target-word {
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: 3px;
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.letter-cell {
    aspect-ratio: 1;
    background:  #051146;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.letter-cell:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.letter-cell.selected {
    background: #999999;
    color: white;
    border-color: #3f4663;
}

.letter-cell.correct-highlight {
    background: #00b894;
    color: white;
    border-color: #00b894;
}

.letter-cell.wrong-highlight {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.refresh-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #24283a;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: #24283a;
    transform: rotate(180deg);
}

.verify-btn {
    flex: 1;
    padding: 15px 40px;
    background: #24283a;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
}

.verify-btn:hover {
    background: #24283a;
    transform: translateY(-2px);
}

.result-message {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    min-height: 40px;
    margin-bottom: 20px;
}

.result-message.correct {
    color: #00b894;
}

.result-message.wrong {
    color: #e74c3c;
}

.stats-display {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stats-display .stat-box {
    background: #f8f9fa;
    padding: 20px 40px;
    border-radius: 12px;
    text-align: center;
}

.stats-display .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.stats-display .value {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: #383d55;
}

/* ========================================
    MOBILE RESPONSIVE
======================================== */

/* Tablet & Mobile (768px and below) */
@media (max-width: 768px) {
    /* General Game Containers */
    .game-container,
    .drawpad-container,
    .spaghetti-container,
    .stock-container,
    .art-container,
    .typing-container,
    .rps-container,
    .dopamine-container,
    .dvd-container,
    .worldometer-container,
    .thumbguessr-container,
    .sudoku-container,
    .letterscramble-container,
    .slot-container {
        padding: 20px;
    }
    
    /* Counter Display */
    #counter-display {
        font-size: 3rem;
    }
    
    /* Wordle */
    .wordle-cell {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .wordle-grid {
        max-width: 290px;
    }
    
    .keyboard {
        max-width: 380px;
    }
    
    .key {
        padding: 8px 6px;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    .key.wide {
        min-width: 42px;
    }
    
    /* Thumbguessr */
    .thumbguessr-container {
        padding: 20px;
    }
    
    .thumbnails-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-text {
        transform: rotate(90deg);
        font-size: 2em;
        margin: 20px 0;
    }
    
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .score-display .score-number {
        font-size: 3em;
    }
    
    .guess-btn {
        padding: 12px;
        font-size: 1em;
    }
    
    /* Sudoku */
    .sudoku-container {
        padding: 20px;
    }
    
    .sudoku-grid {
        font-size: 0.9em;
    }
    
    .sudoku-cell {
        font-size: 1.2em;
    }
    
    .number-pad {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .num-btn {
        padding: 15px 10px;
        font-size: 1.2em;
    }
    
    .controls-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .difficulty-select {
        width: 100%;
        justify-content: center;
    }
    
    .diff-btn {
        flex: 1;
        padding: 8px 15px;
    }
    
    .timer-display {
        font-size: 2em;
    }
    
    /* Letter Scramble */
    .letterscramble-container {
        padding: 20px;
    }
    
    .letter-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 3px;
    }
    
    .letter-cell {
        font-size: 1em;
    }
    
    .target-word {
        font-size: 2em;
    }
    
    .instruction-panel {
        padding: 20px;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .verify-btn {
        padding: 12px 30px;
    }
    
    .stats-display {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-display .value {
        font-size: 2em;
    }
    
    /* DrawPad */
    .drawpad-container {
        padding: 20px;
    }
    
    .toolbar {
        padding: 15px;
        gap: 15px;
    }
    
    .color-palette {
        grid-template-columns: repeat(4, 40px);
    }
    
    #drawCanvas {
        max-width: 100%;
        height: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .pen-buttons {
        flex-wrap: wrap;
    }
    
    /* Slot Machine */
    .slot-container {
        padding: 30px 20px;
    }
    
    .slot-title {
        font-size: 2em;
    }
    
    .reels-container {
        gap: 10px;
    }
    
    .reel {
        width: 100px;
        height: 120px;
        font-size: 3em;
    }
    
    .spin-button {
        padding: 15px 40px;
        font-size: 1.2em;
    }
    
    .result-message {
        font-size: 1.5em;
    }
    
    .stats {
        padding: 15px;
    }
    
    /* Spaghetti Code Generator */
    .spaghetti-container {
        padding: 20px;
    }
    
    .controls {
        padding: 15px;
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
    
    .language-select {
        width: 100%;
    }
    
    .generate-btn {
        width: 100%;
    }
    
    .code-output {
        font-size: 0.85em;
        padding: 15px;
        max-height: 400px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    /* Stock Simulator */
    .stock-container {
        padding: 20px;
    }
    
    .portfolio-amount {
        font-size: 3em;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .stock-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Art Critic */
    .art-container {
        padding: 20px;
    }
    
    .artwork-canvas {
        height: 300px;
    }
    
    .stars {
        gap: 5px;
    }
    
    .star {
        font-size: 2em;
    }
    
    .submit-btn {
        padding: 12px 40px;
        font-size: 1.1em;
    }
    
    /* Typing Test */
    .typing-container {
        padding: 20px;
    }
    
    .text-display {
        font-size: 1.1em;
        padding: 20px;
    }
    
    .input-area {
        font-size: 1em;
        padding: 15px;
    }
    
    .timer-display {
        font-size: 2em;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .difficulty-selector {
        flex-direction: column;
    }
    
    .difficulty-btn {
        width: 100%;
    }
    
    /* Rock Paper Scissors */
    .rps-container {
        padding: 20px;
    }
    
    .game-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .choice-display {
        width: 150px;
        height: 150px;
        font-size: 4em;
    }
    
    .vs-divider {
        transform: rotate(90deg);
    }
    
    .choices {
        gap: 10px;
    }
    
    .choice-btn {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
    }
    
    .result-message {
        font-size: 2em;
    }
    
    .scoreboard {
        grid-template-columns: 1fr;
    }
    
    /* Dopamine Clicker */
    .dopamine-container {
        padding: 20px;
    }
    
    .dopamine-counter {
        font-size: 3em;
    }
    
    .dopamine-button {
        width: 150px;
        height: 150px;
    }
    
    .button-emoji {
        font-size: 3em;
    }
    
    .upgrades-grid {
        grid-template-columns: 1fr;
    }
    
    .auto-stats {
        padding: 12px;
    }
    
    /* DVD Screensaver */
    .dvd-container {
        padding: 20px;
    }
    
    #dvdCanvas {
        height: 300px;
    }
    
    .dvd-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* World-O-Meter */
    .worldometer-container {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.5em;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    /* General Grid Adjustments */
    .stat-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    /* General padding reduction */
    .game-container,
    .drawpad-container,
    .spaghetti-container,
    .stock-container,
    .art-container,
    .typing-container,
    .rps-container,
    .dopamine-container,
    .dvd-container,
    .worldometer-container,
    .thumbguessr-container,
    .sudoku-container,
    .letterscramble-container,
    .slot-container {
        padding: 15px;
    }
    
    /* Wordle Extra Small */
    .wordle-cell {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .wordle-grid {
        max-width: 260px;
    }
    
    .keyboard {
        max-width: 320px;
    }
    
    .key {
        padding: 6px 4px;
        font-size: 0.7rem;
        min-width: 24px;
    }
    
    .key.wide {
        min-width: 36px;
    }
    
    /* Thumbguessr Extra Small */
    .score-display .score-number {
        font-size: 2.5em;
    }
    
    .guess-btn {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .stats-panel {
        grid-template-columns: 1fr;
    }
    
    /* Sudoku Extra Small */
    .sudoku-cell {
        font-size: 1em;
    }
    
    .num-btn {
        padding: 12px 8px;
        font-size: 1em;
    }
    
    /* Letter Scramble Extra Small */
    .letterscramble-container {
        padding: 10px;
    }
    
    .letter-grid {
        gap: 1px;
        font-size: 0.75em;
    }
    
    .letter-cell {
        font-size: 0.65em;
        padding: 0;
        min-width: 22px;
        min-height: 22px;
        border-width: 1px;
    }
    
    .target-word {
        font-size: 1.3em;
    }
    
    .instruction-text {
        font-size: 0.9em;
    }
    
    .instruction-panel {
        padding: 15px;
    }
    
    /* Slot Machine Extra Small */
    .reel {
        width: 80px;
        height: 100px;
        font-size: 2.5em;
    }
    
    .slot-title {
        font-size: 1.5em;
    }
    
    .spin-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    
    /* Toolbar adjustments */
    .toolbar,
    .controls {
        padding: 10px;
        gap: 10px;
    }
    
    /* Color palette extra small */
    .color-palette {
        grid-template-columns: repeat(4, 35px);
        gap: 5px;
    }
    
    .color-btn {
        width: 35px;
        height: 35px;
    }
    
    /* Button size reductions */
    .paper-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .pen-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    /* Stats displays */
    .stat-value,
    .score-value {
        font-size: 2em;
    }
    
    .stats-display .value {
        font-size: 2em;
    }
    
    /* Choice displays */
    .choice-display {
        width: 120px;
        height: 120px;
        font-size: 3em;
    }
    
    .choice-btn {
        width: 70px;
        height: 70px;
        font-size: 2em;
    }
    
    /* Portfolio and counter displays */
    .portfolio-amount {
        font-size: 2.5em;
    }
    
    .dopamine-counter {
        font-size: 2.5em;
    }
    
    #counter-display {
        font-size: 2.5rem;
    }
    
    /* Canvas and chart sizes */
    #dvdCanvas {
        height: 250px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .artwork-canvas {
        height: 250px;
    }
    
    /* Grid gap reductions */
    .stats-panel,
    .dvd-stats,
    .upgrades-grid,
    .features {
        gap: 8px;
    }
    
    /* Text size reductions */
    .category-title {
        font-size: 1.3em;
    }
    
    .stat-label {
        font-size: 0.85em;
    }
    
    .upgrade-name {
        font-size: 1em;
    }
    
    .news-item {
        font-size: 0.85em;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 1.5rem;
    }
    
    #dvdCanvas {
        height: 200px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .artwork-canvas {
        height: 250px;
    }
    
    .dopamine-button {
        width: 120px;
        height: 120px;
    }
    
    .button-emoji {
        font-size: 2.5em;
    }
    
    .choice-display {
        width: 120px;
        height: 120px;
        font-size: 3em;
    }
    
    .reel {
        width: 90px;
        height: 110px;
        font-size: 2.5em;
    }
}

/* Touch-friendly adjustments for touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Minimum touch target sizes (44x44px recommended) */
    .key,
    .num-btn,
    .letter-cell,
    .color-btn,
    .paper-btn,
    .pen-btn,
    .choice-btn,
    .diff-btn,
    .difficulty-btn,
    .star {
        min-height: 44px;
        min-width: 44px;
    }
    
    .wordle-cell {
        min-width: 45px;
        min-height: 45px;
    }
    
    /* Better touch feedback */
    .key:active,
    .num-btn:active,
    .choice-btn:active,
    .stock-btn:active {
        opacity: 0.7;
    }
}

/* Very small devices (320px) */
@media (max-width: 320px) {
    /* Ultra compact mode */
    .game-container,
    .thumbguessr-container,
    .sudoku-container,
    .letterscramble-container {
        padding: 8px;
    }
    
    .score-display .score-number {
        font-size: 2em;
    }
    
    .target-word {
        font-size: 1.1em;
        letter-spacing: 1px;
    }
    
    .instruction-text {
        font-size: 0.85em;
    }
    
    .slot-title {
        font-size: 1.3em;
    }
    
    .reel {
        width: 70px;
        height: 90px;
        font-size: 2em;
    }
    
    .letter-grid {
        gap: 1px;
    }
    
    .letter-cell {
        font-size: 0.6em;
        min-width: 20px;
        min-height: 20px;
        border-width: 1px;
    }
    
    .sudoku-cell {
        font-size: 0.9em;
    }
    
    .instruction-panel {
        padding: 12px;
    }
    
    .game-controls {
        gap: 8px;
    }
    
    .verify-btn {
        padding: 10px 25px;
        font-size: 1em;
    }
    
    .refresh-btn {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   TEXAS HOLD'EM POKER STYLES
======================================== */
.poker-container {
    background: linear-gradient(135deg, #1a5f1a 0%, #0d3d0d 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 1200px;
    margin: 0 auto;
}

.poker-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 12px;
}

.player-chips,
.dealer-chips,
.pot-display {
    text-align: center;
}

.chip-label,
.pot-label {
    display: block;
    font-size: 0.9em;
    color: #ffd700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chip-amount,
.pot-amount {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: white;
    font-family: 'Courier New', monospace;
}

.pot-amount {
    color: #ffd700;
}

.dealer-section,
.player-section {
    text-align: center;
    margin: 30px 0;
}

.player-label {
    font-size: 1.3em;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.hand-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    min-height: 140px;
}

.card {
    width: 90px;
    height: 130px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-black {
    color: #000;
}

.card-red {
    color: #e74c3c;
}

.card .suit {
    font-size: 1.5em;
    margin-top: 5px;
}

.card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3em;
}

.card-empty {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    font-size: 3em;
    border: 2px dashed rgba(255,255,255,0.3);
}

.community-cards {
    text-align: center;
    margin: 40px 0;
    background: rgba(0,0,0,0.2);
    padding: 30px;
    border-radius: 12px;
}

.community-label {
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: 700;
}

.cards-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.game-phase {
    font-size: 1.5em;
    font-weight: 800;
    color: white;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hand-rank {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffd700;
    margin-top: 10px;
    min-height: 30px;
}

.player-status {
    font-size: 1.1em;
    color: white;
    margin-top: 10px;
    min-height: 25px;
}

.betting-controls {
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.bet-slider-container {
    margin-bottom: 25px;
}

.bet-slider-container label {
    display: block;
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

#betSlider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    outline: none;
    margin-bottom: 15px;
}

#betSlider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
}

#betSlider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    border: none;
}

.quick-bets {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.quick-bet-btn {
    padding: 10px 20px;
    background: rgba(255,215,0,0.2);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-bet-btn:hover {
    background: #ffd700;
    color: #1a5f1a;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.poker-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.poker-btn.fold {
    background: #e74c3c;
    color: white;
}

.poker-btn.fold:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.poker-btn.check {
    background: #3498db;
    color: white;
}

.poker-btn.check:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.poker-btn.call {
    background: #3498db;
    color: white;
}

.poker-btn.call:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.poker-btn.bet {
    background: #f39c12;
    color: white;
}

.poker-btn.bet:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.poker-btn.raise {
    background: #e67e22;
    color: white;
}

.poker-btn.raise:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.poker-btn.allin {
    background: #9b59b6;
    color: white;
}

.poker-btn.allin:hover {
    background: #8e44ad;
    transform: translateY(-2px);
}

.game-message {
    text-align: center;
    font-size: 1.5em;
    font-weight: 700;
    min-height: 50px;
    margin: 25px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
    color: white;
}

.game-message.win {
    color: #2ecc71;
    background: rgba(46,204,113,0.2);
}

.game-message.lose {
    color: #e74c3c;
    background: rgba(231,76,60,0.2);
}

.game-message.info {
    color: #3498db;
}

.game-message.dealer {
    color: #f39c12;
}

.game-message.error {
    color: #e74c3c;
}

.new-game-section {
    text-align: center;
    margin: 30px 0;
}

.new-hand-btn {
    padding: 18px 50px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(46,204,113,0.4);
}

.new-hand-btn:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46,204,113,0.5);
}

.poker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    background: rgba(0,0,0,0.3);
    padding: 25px;
    border-radius: 12px;
}

.poker-stats .stat-item {
    text-align: center;
}

.poker-stats .stat-label {
    display: block;
    color: #ffd700;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.poker-stats .stat-value {
    display: block;
    color: white;
    font-size: 2em;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .poker-container {
        padding: 20px;
    }
    
    .poker-header {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .chip-amount,
    .pot-amount {
        font-size: 1.5em;
    }
    
    .card {
        width: 65px;
        height: 95px;
        font-size: 1.5em;
    }
    
    .card .suit {
        font-size: 1.2em;
    }
    
    .hand-display {
        gap: 10px;
        min-height: 100px;
    }
    
    .cards-display {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .poker-btn {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    
    .poker-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-phase {
        font-size: 1.2em;
    }
    
    .hand-rank {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .poker-container {
        padding: 15px;
    }
    
    .card {
        width: 55px;
        height: 80px;
        font-size: 1.2em;
    }
    
    .card .suit {
        font-size: 1em;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .poker-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .poker-stats .stat-value {
        font-size: 1.5em;
    }
    
    .new-hand-btn {
        padding: 15px 35px;
        font-size: 1.1em;
    }
}

/* ========================================
   CURIOSITY - RANDOM FACTS GAME STYLES
======================================== */

.curiosity-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Category Selector */
.category-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Fact Card */
.fact-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin-bottom: 40px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fact-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fact-category {
    font-size: 1.1em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fact-text {
    font-size: 1.4em;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 500;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.fact-source {
    margin-top: 20px;
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.curiosity-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.generate-btn {
    background: linear-gradient(135deg, #1b2033 0%, #171d2e 100%);
    color: white;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.share-btn {
    background: #3498db;
    color: white;
}

.share-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.favorite-btn {
    background: #f39c12;
    color: white;
}

.favorite-btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

/* Autoplay Section */
.autoplay-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.autoplay-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}

.autoplay-toggle input[type="checkbox"] {
    width: 50px;
    height: 25px;
    appearance: none;
    background: #ccc;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.autoplay-toggle input[type="checkbox"]:checked {
    background: #202330;
}

.autoplay-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.autoplay-toggle input[type="checkbox"]:checked::before {
    left: 27px;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: linear-gradient(135deg, #1f2233 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 3em;
    font-weight: 800;
    font-family: 'Courier New', monospace;
}

/* Favorites Section */
.favorites-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.favorites-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.favorite-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.favorite-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.favorite-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.favorite-text {
    flex: 1;
    font-size: 1.1em;
    color: #2c3e50;
    line-height: 1.6;
}

.remove-favorite {
    width: 30px;
    height: 30px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.remove-favorite:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.clear-btn {
    padding: 12px 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Fun Stats */
.fun-stats {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 15px;
}

.fun-stats h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.fun-stat-item {
    font-size: 1.2em;
    margin: 15px 0;
    color: #2c3e50;
}

.fun-stat-item strong {
    color: #d63031;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .curiosity-container {
        padding: 20px;
    }

    .category-selector {
        gap: 8px;
    }

    .category-btn {
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .fact-card {
        padding: 30px 20px;
        min-height: 300px;
    }

    .fact-icon {
        font-size: 3.5em;
    }

    .fact-text {
        font-size: 1.1em;
    }

    .controls {
        flex-direction: column;
    }

    .curiosity-btn {
        width: 100%;
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-value {
        font-size: 2.5em;
    }

    .favorite-item {
        flex-direction: column;
        text-align: center;
    }

    .favorite-icon {
        font-size: 2.5em;
    }

    .fun-stats {
        padding: 20px;
    }

    .fun-stat-item {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .fact-card {
        padding: 25px 15px;
    }

    .fact-icon {
        font-size: 3em;
    }

    .fact-text {
        font-size: 1em;
    }

    .curiosity-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-value {
        font-size: 2em;
    }
}