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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    color: #fff;
}

.container {
    text-align: center;
    padding: 20px;
    padding-top: 60px;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ==================== HOME PAGE STYLES ==================== */

.home-container {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.home-header {
    margin-bottom: 40px;
}

.home-profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    object-fit: cover;
    margin-bottom: 20px;
}

.home-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-welcome {
    font-size: 1.05rem;
    color: #cbd5e0;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 20px;
    text-align: center;
}

.about-joe-wrapper,
.about-loki-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    position: relative;
}

.about-loki-wrapper {
    margin-bottom: 25px;
}

.about-link {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #a0aec0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-link:hover {
    color: #e2e8f0;
    border-color: #667eea;
    background: linear-gradient(135deg, #3d4a5c 0%, #2a303c 100%);
}

.home-about {
    font-size: 1rem;
    color: #a0aec0;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: center;
    font-style: italic;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 35px 24px 20px;
    margin-top: -18px;
    position: relative;
    z-index: 1;
}

.home-subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 25px;
}

.home-divider {
    border: none;
    border-top: 1px solid #4a5568;
    max-width: 600px;
    margin: 30px auto;
}

.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.category-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 20px;
    padding: 30px 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.category-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.category-card.coming-soon:hover {
    transform: none;
    border-color: #4a5568;
    box-shadow: none;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.category-card p {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.5;
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.category-card.coming-soon .category-badge {
    background: #4a5568;
}

/* Featured Game Section */
.featured-game-section {
    max-width: 600px;
    margin: 0 auto 35px;
    padding: 0 20px;
}

.featured-title {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-game-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #667eea;
    border-radius: 20px;
    padding: 20px 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.featured-game-card:hover {
    transform: translateY(-3px);
    border-color: #764ba2;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.35);
}

.featured-icon {
    font-size: 3rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.featured-content {
    text-align: left;
    flex-grow: 1;
}

.featured-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 6px;
}

.featured-content p {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.4;
    margin-bottom: 10px;
}

.featured-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.featured-badges .category-label {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid var(--category-color, #667eea);
    color: var(--category-color, #667eea);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    text-transform: uppercase;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
}

/* Buy Me a Coffee Section */
.buy-me-coffee {
    margin: 40px auto 30px;
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 16px;
    max-width: 300px;
}

.buy-me-coffee p {
    color: #a0aec0;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.bmc-link {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.bmc-link:hover {
    transform: scale(1.05);
}

.bmc-qr {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 3px solid #ffdd00;
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.bmc-link:hover .bmc-qr {
    box-shadow: 0 6px 25px rgba(255, 221, 0, 0.5);
}

.home-footer {
    color: #718096;
    font-size: 0.9rem;
}

.home-footer .contact-link {
    display: inline-block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.home-footer .contact-link:hover {
    color: #667eea;
}

.home-link {
    display: inline-flex;
    align-items: center;
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: absolute;
    left: 20px;
    top: 20px;
}

.home-link:hover {
    color: #fff;
    border-color: #667eea;
    background: linear-gradient(135deg, #3d4a5c 0%, #2a303c 100%);
}

.user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #a0aec0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 20px;
    padding: 6px 14px;
}

.user-name-btn {
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.user-name-btn:hover {
    color: #8b9cf7;
    text-decoration: underline;
}

/* Search Filter */
.search-filter {
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.game-search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #4a5568;
    border-radius: 25px;
    background: #2d3748;
    color: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.game-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.game-search-input::placeholder {
    color: #718096;
}

/* ==================== HOME PAGE TABS ==================== */

.home-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.home-tab {
    background: transparent;
    border: 2px solid #4a5568;
    color: #a0aec0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.home-tab:hover {
    border-color: #667eea;
    color: #fff;
    background: rgba(102, 126, 234, 0.1);
}

.home-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

/* New Games tab - standout style */
.home-tab-new {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    border-color: transparent;
    color: #1a202c;
    font-weight: 600;
    animation: pulse-glow 2s ease-in-out infinite;
}

.home-tab-new:hover {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    border-color: transparent;
    color: #1a202c;
}

.home-tab-new.active {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
    border-color: transparent;
    color: #fff;
    animation: none;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(237, 137, 54, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(237, 137, 54, 0.8);
    }
}

/* Home Search Filter */
.home-search-filter {
    max-width: 400px;
    margin: 0 auto 25px;
    padding: 0 20px;
}

.home-search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #4a5568;
    background: #2d3748;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.home-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.home-search-input::placeholder {
    color: #718096;
}

/* Home Game Grid */
.home-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* Home Game Card */
.home-game-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.home-game-card:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
}

.home-game-card .game-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.home-game-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #fff;
}

.home-game-card p {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.4;
    margin-bottom: 12px;
}

.home-game-card .category-label {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: var(--category-color, #667eea);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Favourite button on home game cards */
.home-game-card .favourite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
    padding: 5px;
    line-height: 1;
}

.home-game-card .favourite-btn:hover {
    color: #ecc94b;
    transform: scale(1.1);
}

.home-game-card .favourite-btn.active {
    color: #ecc94b;
    text-shadow: 0 0 10px rgba(236, 201, 75, 0.5);
}

/* Time-ago badge */
.home-game-card .time-ago-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(102, 126, 234, 0.3);
    color: #a0aec0;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 10px;
}

/* Tab empty message */
.home-tab-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.home-tab-empty-message p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Toast notification */
.home-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.home-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==================== MENU STYLES ==================== */

.header-with-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    object-fit: cover;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    margin-bottom: 5px;
}

.header-text .subtitle {
    margin-bottom: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.joe-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    position: relative;
}

.joe-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 20px;
}

/* Feeling Lucky Button */
.feeling-lucky-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.feeling-lucky-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

/* Menu Tabs */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.menu-tab {
    background: #2d3748;
    border: 2px solid #4a5568;
    border-radius: 25px;
    padding: 10px 20px;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    background: #3d4a5c;
    color: #fff;
    border-color: #667eea;
}

.menu-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.tab-empty-message {
    background: #2d3748;
    border-radius: 15px;
    padding: 40px 20px;
    margin-bottom: 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.tab-empty-message p {
    color: #a0aec0;
    font-size: 1rem;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
}

.variant-card {
    background: #2d3748;
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.variant-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Favourite card styling */
.variant-card.is-favourite {
    border-color: #ecc94b;
    background: linear-gradient(135deg, #2d3748 0%, #3d4a5c 100%);
}

.variant-card.is-favourite::before {
    content: 'Favourite';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ecc94b;
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Time ago badge for recently played */
.time-ago-badge {
    margin-top: 15px;
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #a0aec0;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Favourite button */
.favourite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.favourite-btn:hover {
    color: #ecc94b;
    transform: scale(1.2);
    background: rgba(236, 201, 75, 0.1);
}

.favourite-btn.active {
    color: #ecc94b;
    text-shadow: 0 0 10px rgba(236, 201, 75, 0.5);
}

.favourite-btn.active:hover {
    color: #d69e2e;
}

/* Favourite limit message */
.favourite-limit-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #f56565;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.favourite-limit-message.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Game screen favourite button (inline with title) */
.game-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.game-title-row h2 {
    margin-bottom: 0;
}

.game-favourite-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid #4a5568;
    font-size: 1.3rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-favourite-btn:hover {
    color: #ecc94b;
    border-color: #ecc94b;
    transform: scale(1.1);
    background: rgba(236, 201, 75, 0.1);
}

.game-favourite-btn.active {
    color: #ecc94b;
    border-color: #ecc94b;
    text-shadow: 0 0 10px rgba(236, 201, 75, 0.5);
}

.game-favourite-btn.active:hover {
    color: #d69e2e;
    border-color: #d69e2e;
}

.variant-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.variant-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.variant-card p {
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.4;
}

/* ==================== GAME CONTAINER STYLES ==================== */

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background: transparent;
    color: #a0aec0;
    border: 1px solid #4a5568;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #fff;
    border-color: #667eea;
}

#game-container {
    position: relative;
    padding-top: 60px;
}

/* ==================== MODE SELECTION SCREEN ==================== */

.mode-selection {
    animation: fadeIn 0.3s ease;
}

.mode-selection #game-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-rules {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.mode-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 20px;
    padding: 30px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 250px;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.mode-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.mode-card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.mode-card h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.mode-card p {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 0;
}

/* ==================== GAME PLAY SCREEN ==================== */

.game-play {
    animation: fadeIn 0.3s ease;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.game-header h2 {
    font-size: 1.5rem;
    color: #a0aec0;
    margin-bottom: 0;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.change-mode-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: transparent;
    color: #a0aec0;
    border: 2px solid #4a5568;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-mode-btn:hover {
    color: #fff;
    border-color: #667eea;
}

.restart-btn,
.change-mode-btn,
.hint-btn {
    min-width: 160px;
}

.hint-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    color: #1a1a2e;
    border: 2px solid #ecc94b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.hint-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    border-color: #d69e2e;
    transform: translateY(-2px);
}

.hint-btn:disabled {
    background: #4a5568;
    border-color: #4a5568;
    color: #718096;
    cursor: not-allowed;
}

#variant-options {
    margin-bottom: 30px;
}

#variant-options:empty {
    display: none;
}

.option-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border: 1px solid #4a5568;
    background: transparent;
    color: #a0aec0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: #667eea;
    color: #fff;
}

.option-btn.active {
    background: #4a5568;
    border-color: #667eea;
    color: #fff;
}

.status {
    font-size: 1.5rem;
    margin-bottom: 20px;
    min-height: 40px;
}

.status.winner {
    color: #48bb78;
    font-weight: bold;
}

.status.loser {
    color: #f56565;
    font-weight: bold;
}

.status.draw {
    color: #ed8936;
    font-weight: bold;
}

.status.hint-message {
    color: #ecc94b;
    font-weight: bold;
}

/* ==================== STANDARD BOARD STYLES ==================== */

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.board.board-4x4 {
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 80px);
    gap: 8px;
}

.board-4x4 .cell {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

/* Recent move highlight */
.cell.recent-move,
.cell-3d.recent-move {
    animation: recentMove 0.6s ease-in-out 3;
}

@keyframes recentMove {
    0%, 100% {
        box-shadow: 0 0 0 3px transparent;
    }
    50% {
        box-shadow: 0 0 0 3px #ffd700;
    }
}

.cell {
    width: 100px;
    height: 100px;
    background: #2d3748;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cell:hover:not(.taken):not(.fog) {
    background: #4a5568;
    transform: scale(1.05);
}

.cell.taken {
    cursor: not-allowed;
}

.cell.x {
    color: #667eea;
}

.cell.o {
    color: #f56565;
}

/* Faded state for oldest piece (cycling pieces variant) */
.cell.fading {
    opacity: 0.4;
}

.cell.fading::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px dashed currentColor;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.cell.winning {
    animation: celebrate 0.5s ease-in-out;
    background: #48bb78;
}

.cell.losing {
    animation: celebrate 0.5s ease-in-out;
    background: #f56565;
}

.cell.hint {
    animation: hintPulse 0.5s ease-in-out 4;
    background: #ecc94b;
    box-shadow: 0 0 20px rgba(236, 201, 75, 0.6);
}

/* Gravity variant - falling animation */
.cell.gravity-drop {
    animation: gravityDrop 0.3s ease-out;
}

@keyframes gravityDrop {
    0% {
        transform: translateY(-60px);
        opacity: 0;
    }
    60% {
        transform: translateY(5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================== ULTIMATE TIC-TAC-TOE ==================== */

.ultimate-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(45, 55, 72, 0.5);
    border-radius: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.small-board-wrapper {
    position: relative;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 8px;
    padding: 4px;
    transition: all 0.3s ease;
}

.small-board-wrapper.active {
    box-shadow: 0 0 0 3px #667eea, 0 0 15px rgba(102, 126, 234, 0.5);
}

.small-board-wrapper.inactive {
    opacity: 0.5;
}

.small-board-wrapper.won-x {
    background: rgba(239, 68, 68, 0.3);
}

.small-board-wrapper.won-o {
    background: rgba(72, 187, 120, 0.3);
}

.small-board-wrapper.draw {
    background: rgba(160, 174, 192, 0.3);
}

.small-board-wrapper.winning-board {
    animation: winningPulse 0.5s ease-in-out infinite alternate;
}

@keyframes winningPulse {
    from { box-shadow: 0 0 0 3px #ffd700; }
    to { box-shadow: 0 0 20px 5px #ffd700; }
}

.small-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
}

.cell-ultimate {
    width: 38px;
    height: 38px;
    background: rgba(26, 32, 44, 0.8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cell-ultimate:hover {
    background: rgba(45, 55, 72, 1);
}

.cell-ultimate.x {
    color: #ef4444;
}

.cell-ultimate.o {
    color: #48bb78;
}

.cell-ultimate.recent-move {
    animation: recentMove 0.6s ease-in-out 3;
}

.small-board-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.small-board-overlay.winner-x {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
    opacity: 1;
}

.small-board-overlay.winner-o {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.2);
    opacity: 1;
}

/* ==================== QUANTUM TIC-TAC-TOE ==================== */

.quantum-info {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quantum-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #a0aec0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quantum-info-item:last-child {
    border-bottom: none;
}

.quantum-info-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.quantum-info-item strong {
    color: #e2e8f0;
}

.quantum-board {
    gap: 8px;
}

.quantum-cell {
    position: relative;
    min-height: 100px;
    padding: 5px;
    transition: all 0.3s ease;
}

.quantum-cell.selected {
    box-shadow: 0 0 0 3px #667eea, 0 0 20px rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

.quantum-cell.in-cycle {
    box-shadow: 0 0 0 3px #f6ad55, 0 0 20px rgba(246, 173, 85, 0.6);
    animation: cycleGlow 0.8s ease-in-out infinite alternate;
}

.quantum-cell.collapse-choice {
    cursor: pointer;
}

@keyframes cycleGlow {
    from { box-shadow: 0 0 0 3px #f6ad55, 0 0 10px rgba(246, 173, 85, 0.4); }
    to { box-shadow: 0 0 0 3px #ed8936, 0 0 25px rgba(237, 137, 54, 0.8); }
}

.quantum-cell.collapsed {
    background: rgba(45, 55, 72, 0.9);
}

.quantum-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.quantum-mark {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0.8;
    animation: quantumFloat 2s ease-in-out infinite;
}

.quantum-mark.x {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.quantum-mark.o {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.2);
}

.quantum-mark sub {
    font-size: 0.6rem;
    opacity: 0.7;
}

@keyframes quantumFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.classical-mark {
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: collapseIn 0.4s ease-out;
}

.classical-mark.x {
    color: #ef4444;
}

.classical-mark.o {
    color: #48bb78;
}

@keyframes collapseIn {
    from {
        transform: scale(2);
        opacity: 0;
        filter: blur(10px);
    }
    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* ==================== BOMBS VARIANT ==================== */

.bombs-info, .blindfold-info, .traitor-info {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bombs-info-item, .blindfold-info-item, .traitor-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #a0aec0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bombs-info-item:last-child, .blindfold-info-item:last-child, .traitor-info-item:last-child {
    border-bottom: none;
}

.bombs-info-icon, .blindfold-info-icon, .traitor-info-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.bombs-info-item strong, .blindfold-info-item strong, .traitor-info-item strong {
    color: #e2e8f0;
}

.bomb-status {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.bomb-player {
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(45, 55, 72, 0.6);
}

.bomb-player.x {
    border-left: 3px solid #ef4444;
}

.bomb-player.o {
    border-left: 3px solid #48bb78;
}

.cell.bomb-planted {
    animation: bombPlant 0.5s ease-out;
    background: rgba(246, 173, 85, 0.4) !important;
}

@keyframes bombPlant {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); background: rgba(246, 173, 85, 0.6); }
    100% { transform: scale(1); }
}

.cell.exploding {
    animation: explode 0.5s ease-out;
}

@keyframes explode {
    0% { transform: scale(1); background: rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.3); background: rgba(239, 68, 68, 0.8); box-shadow: 0 0 30px rgba(239, 68, 68, 0.8); }
    100% { transform: scale(1); background: transparent; }
}

.cell.exploded {
    animation: fadeBack 0.3s ease-out;
}

@keyframes fadeBack {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== BLINDFOLD VARIANT ==================== */

.blindfold-cell.hidden-piece {
    color: #667eea !important;
    font-size: 2rem;
    background: rgba(102, 126, 234, 0.1);
}

.blindfold-cell.collision {
    animation: collision 0.8s ease-out;
    background: rgba(239, 68, 68, 0.4) !important;
}

@keyframes collision {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ==================== TRAITOR VARIANT ==================== */

.traitor-hint {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.traitor-hidden-text {
    color: #a0aec0;
    font-style: italic;
}

.traitor-revealed-text {
    color: #f6ad55;
}

.traitor-cell.traitor-revealed {
    box-shadow: 0 0 0 3px #f6ad55, 0 0 15px rgba(246, 173, 85, 0.5);
    animation: traitorReveal 0.5s ease-out;
}

@keyframes traitorReveal {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 5px #f6ad55, 0 0 30px rgba(246, 173, 85, 0.8); }
    100% { transform: scale(1); }
}

.traitor-cell.traitor-revealed::after {
    content: '🎭';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
}

/* ==================== CHAOS VARIANT ==================== */

.chaos-info, .claim-info, .drunk-info {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.chaos-info-item, .claim-info-item, .drunk-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #a0aec0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chaos-info-item:last-child, .claim-info-item:last-child, .drunk-info-item:last-child {
    border-bottom: none;
}

.chaos-info-icon, .claim-info-icon, .drunk-info-icon {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.chaos-info-item strong, .claim-info-item strong, .drunk-info-item strong {
    color: #e2e8f0;
}

.chaos-cell.swapping {
    transition: transform 0.4s ease-in-out;
    z-index: 10;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

/* ==================== CLAIM VARIANT ==================== */

.board-5x5 {
    grid-template-columns: repeat(5, 70px);
    grid-template-rows: repeat(5, 70px);
    gap: 6px;
}

.claim-cell {
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.claim-cell.first-piece {
    box-shadow: 0 0 0 2px #667eea, 0 0 10px rgba(102, 126, 234, 0.4);
}

.pieces-indicator {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.pieces-indicator .x {
    color: #ef4444;
}

.pieces-indicator .o {
    color: #48bb78;
}

/* ==================== DRUNK VARIANT ==================== */

.drunk-cell.intended-target {
    box-shadow: 0 0 0 3px #f6ad55, 0 0 15px rgba(246, 173, 85, 0.5);
    animation: wobble 0.3s ease-in-out;
}

.drunk-cell.drunk-placed {
    animation: drunkDrop 0.5s ease-out;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes drunkDrop {
    0% { transform: translateY(-20px) rotate(-10deg); opacity: 0; }
    50% { transform: translateY(5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

.status.drunk-message {
    color: #f6ad55 !important;
    animation: drunkText 0.5s ease-in-out;
}

@keyframes drunkText {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

/* ==================== POWERUPS VARIANT ==================== */

.powerups-info {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.powerup-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.powerup-info-icon {
    font-size: 1.1rem;
}

.powerup-info-text strong {
    color: #fff;
}

.powerups-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.powerups-panel {
    background: #2d3748;
    border-radius: 12px;
    padding: 15px;
    min-width: 120px;
}

.powerups-label {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 10px;
    text-align: center;
}

.powerup-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.powerup-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.powerup-btn:hover:not(:disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
}

.powerup-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.powerup-btn.used {
    opacity: 0.4;
    text-decoration: line-through;
}

.powerup-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Blocked cell */
.cell.blocked {
    background: #4a5568 !important;
    cursor: not-allowed;
}

.cell.blocked::after {
    content: '🚫';
    font-size: 1.5rem;
}

/* Powerup target highlights */
.cell.powerup-target {
    background: rgba(102, 126, 234, 0.3);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    cursor: pointer;
}

.cell.remove-target {
    background: rgba(245, 101, 101, 0.3);
    box-shadow: 0 0 15px rgba(245, 101, 101, 0.5);
    cursor: pointer;
    animation: removeTargetPulse 0.5s ease-in-out infinite;
}

@keyframes removeTargetPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(245, 101, 101, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(245, 101, 101, 0.8);
    }
}

/* Steal animation - color morph effect */
.cell.stealing {
    animation: stealEffect 0.6s ease-in-out;
}

@keyframes stealEffect {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    25% {
        transform: scale(1.2);
        filter: brightness(1.5) hue-rotate(180deg);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
    50% {
        transform: scale(1.3);
        filter: brightness(2) hue-rotate(180deg);
        box-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
    75% {
        transform: scale(1.1);
        filter: brightness(1.3);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: none;
    }
}

/* Powerup notification popup */
.powerup-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
}

.powerup-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.powerup-notification-emoji {
    font-size: 1.8rem;
    margin-right: 10px;
}

/* Remove powerup animation */
.cell.removing {
    animation: removeAnimation 0.6s ease-out forwards;
    background: rgba(245, 101, 101, 0.5) !important;
}

@keyframes removeAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(245, 101, 101, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 40px rgba(245, 101, 101, 1);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 0 0 0 rgba(245, 101, 101, 0);
    }
}

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

@keyframes hintPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(236, 201, 75, 0.6);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(236, 201, 75, 0.9);
    }
}

/* ==================== ROTATING BOARD STYLES ==================== */

.board-wrapper {
    display: inline-block;
    transition: transform 0.5s ease;
}

.board-wrapper.rotating {
    animation: rotateBoard 0.5s ease;
}

@keyframes rotateBoard {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(90deg);
    }
}

/* ==================== 3D BOARD STYLES ==================== */

.board-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.layer {
    position: relative;
}

.layer-label {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.layer .board {
    margin-bottom: 0;
}

.layer:nth-child(1) .cell {
    background: rgba(102, 126, 234, 0.2);
}

.layer:nth-child(2) .cell {
    background: rgba(102, 126, 234, 0.15);
}

.layer:nth-child(3) .cell {
    background: rgba(102, 126, 234, 0.1);
}

/* ==================== 3D CUBE STYLES ==================== */

.cube-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    user-select: none;
}

.cube-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

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

.cube-btn {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid #667eea;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.cube-btn:active {
    transform: scale(0.95);
}

.cube-container {
    perspective: 600px;
    perspective-origin: center center;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.cube-container:active {
    cursor: grabbing;
}

.cube-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(-30deg);
    transition: transform 0.1s ease-out;
}

.cube-wrapper.auto-rotating {
    animation: autoRotate 20s linear infinite;
}

@keyframes autoRotate {
    from {
        transform: rotateX(-20deg) rotateY(0deg);
    }
    to {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

.cell-3d {
    position: absolute;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    cursor: pointer;
    /* Center the cells in the wrapper */
    left: 50%;
    top: 50%;
    margin-left: -25px;
    margin-top: -25px;
}

.cell-3d-inner {
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 72, 0.7);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cell-3d:hover .cell-3d-inner {
    background: rgba(74, 85, 104, 0.9);
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.cell-3d.taken {
    cursor: not-allowed;
}

.cell-3d.taken:hover .cell-3d-inner {
    transform: scale(1);
}

.cell-3d.x .cell-3d-inner {
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(102, 126, 234, 0.2);
}

.cell-3d.o .cell-3d-inner {
    color: #f56565;
    border-color: rgba(245, 101, 101, 0.8);
    background: rgba(245, 101, 101, 0.2);
}

.cell-3d.winning .cell-3d-inner {
    background: rgba(72, 187, 120, 0.4);
    border-color: #48bb78;
    animation: pulse3d 0.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(72, 187, 120, 0.6);
}

.cell-3d.hint .cell-3d-inner {
    background: rgba(236, 201, 75, 0.4);
    border-color: #ecc94b;
    animation: hintPulse3d 0.5s ease-in-out 4;
    box-shadow: 0 0 30px rgba(236, 201, 75, 0.6);
}

@keyframes hintPulse3d {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(236, 201, 75, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 40px rgba(236, 201, 75, 0.9);
    }
}

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

.cube-hint {
    font-size: 0.8rem;
    color: #718096;
}

/* Depth-based opacity for visual depth cue */
.cell-3d[data-layer="0"] .cell-3d-inner {
    opacity: 1;
}

.cell-3d[data-layer="1"] .cell-3d-inner {
    opacity: 0.85;
}

.cell-3d[data-layer="2"] .cell-3d-inner {
    opacity: 0.7;
}

/* ==================== WILD CARD STYLES ==================== */

.cell.wild {
    background: linear-gradient(135deg, #667eea 50%, #f56565 50%);
    color: #fff;
}

.cell.wild::before {
    content: '★';
    font-size: 2.5rem;
}

/* ==================== FOG OF WAR STYLES ==================== */

.cell.fog {
    background: #1a1a2e;
    cursor: not-allowed;
}

.cell.fog::before {
    content: '?';
    color: #4a5568;
    font-size: 2rem;
}

.cell.revealed {
    animation: reveal 0.3s ease;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== BUTTONS ==================== */

.restart-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: #667eea;
    color: #fff;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: #5a67d8;
    border-color: #5a67d8;
    transform: translateY(-2px);
}

/* ==================== SCOREBOARD ==================== */

.scoreboard {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 0.9rem;
    color: #a0aec0;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ==================== RULES HINT ==================== */

.rules-hint {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #a0aec0;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.rules-hint:empty {
    display: none;
}

.rules-hint strong {
    color: #fff;
}

/* ==================== NAME PROMPT MODAL ==================== */

.name-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.name-prompt-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.name-prompt-modal {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #667eea;
    animation: slideIn 0.3s ease;
    position: relative;
}

.name-prompt-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #4a5568;
    border-radius: 50%;
    color: #a0aec0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-prompt-close:hover {
    background: #4a5568;
    color: #fff;
    border-color: #667eea;
}

.welcome-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-prompt-link {
    display: block;
    width: 100%;
    margin-top: 15px;
    background: transparent;
    border: none;
    color: #718096;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
}

.name-prompt-link:hover {
    color: #a0aec0;
    text-decoration: underline;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.name-prompt-modal h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.name-prompt-modal p {
    font-size: 1.1rem;
    color: #a0aec0;
    margin-bottom: 25px;
}

#visitor-name-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #4a5568;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#visitor-name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

#visitor-name-input::placeholder {
    color: #718096;
}

.name-prompt-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.name-prompt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.name-prompt-btn:active {
    transform: translateY(-1px);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 600px) {
    .header-with-profile {
        flex-direction: column;
        gap: 15px;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .header-text {
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }

    .variant-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .mode-selection #game-title {
        font-size: 2rem;
    }

    .game-rules {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .mode-cards {
        flex-direction: column;
        align-items: center;
    }

    .mode-card {
        width: 100%;
        max-width: 280px;
        padding: 20px 30px;
    }

    .mode-card-icon {
        font-size: 2.5rem;
    }

    .board {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }

    .cell {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .back-btn {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
    }

    #game-container {
        padding-top: 20px;
    }

    .game-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hint-btn,
    .restart-btn,
    .change-mode-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ==================== ARCADE STYLES ==================== */

/* Section titles */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    color: #f7fafc;
    margin: 30px auto 10px;
    max-width: 720px;
    padding: 0 20px;
}

/* Arcade card grid */
.arcade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
}

.arcade-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 20px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.arcade-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.arcade-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.arcade-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.arcade-card p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Favourite button on arcade cards */
.arcade-card .favourite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
    padding: 5px;
    line-height: 1;
    z-index: 10;
}

.arcade-card .favourite-btn:hover {
    color: #ecc94b;
    transform: scale(1.1);
}

.arcade-card .favourite-btn.active {
    color: #ecc94b;
    text-shadow: 0 0 10px rgba(236, 201, 75, 0.5);
}

/* ==================== SNAKE GAME STYLES ==================== */

/* Snake mode selection cards */
.snake-modes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.snake-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.snake-mode-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.snake-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.snake-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.snake-mode-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.snake-mode-card p {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Snake HUD */
.snake-hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 15px;
}

.hud-item {
    text-align: center;
}

.hud-label {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hud-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.hud-value.high-score {
    color: #ecc94b;
}

/* Snake Container */
.snake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.canvas-wrapper {
    position: relative;
}

#game-canvas {
    background: #1a1a2e;
    border: 3px solid #4a5568;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Active Power-ups */
.active-powerups {
    display: flex;
    gap: 10px;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 10px;
}

.powerup-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 55, 72, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.powerup-indicator.speedBoost {
    border: 2px solid #ecc94b;
    color: #ecc94b;
}

.powerup-indicator.shield {
    border: 2px solid #667eea;
    color: #667eea;
}

.powerup-timer {
    width: 30px;
    height: 4px;
    background: #4a5568;
    border-radius: 2px;
    overflow: hidden;
}

.powerup-timer-fill {
    height: 100%;
    background: currentColor;
    transition: width 0.1s linear;
}

/* Touch Controls */
.touch-controls {
    display: none;
    grid-template-areas:
        ". up ."
        "left . right"
        ". down .";
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(3, 70px);
    gap: 8px;
    margin-top: 20px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* Show touch controls on touch devices */
@media (hover: none) and (pointer: coarse) {
    .touch-controls {
        display: grid;
    }
}

/* Also show on narrow screens (likely mobile) */
@media (max-width: 600px) {
    .touch-controls {
        display: grid;
    }
}

.touch-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.touch-btn:active {
    transform: scale(0.85);
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

.touch-btn.up { grid-area: up; }
.touch-btn.down { grid-area: down; }
.touch-btn.left { grid-area: left; }
.touch-btn.right { grid-area: right; }

/* Time Attack Timer */
.time-attack-timer {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    padding: 10px 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
}

.time-attack-timer .timer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-attack-timer .timer-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

/* Countdown Overlay */
.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
}

.countdown-number {
    font-size: 6rem;
    font-weight: bold;
    color: #667eea;
    animation: countdownPulse 0.8s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Pause Overlay */
.pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
    cursor: pointer;
    touch-action: manipulation;
}

.pause-overlay .pause-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.pause-overlay .pause-hint {
    color: #a0aec0;
    font-size: 1rem;
}

/* Game Over Overlay */
.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
    z-index: 10;
}

.game-over-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f56565;
    margin-bottom: 20px;
}

.game-over-score {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.game-over-high-score {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 30px;
}

.game-over-high-score.new-high-score {
    color: #ecc94b;
    animation: pulse 0.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Level up animation */
@keyframes levelUp {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #ecc94b; }
    100% { transform: scale(1); }
}

.level-up {
    animation: levelUp 0.5s ease-in-out;
}

/* Arcade responsive styles */
@media (max-width: 600px) {
    .arcade-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .arcade-card {
        padding: 20px;
    }

    .arcade-icon {
        font-size: 3rem;
    }

    .snake-modes {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .snake-mode-card {
        min-width: 100px;
        padding: 15px 10px;
    }

    .snake-mode-card .mode-icon {
        font-size: 1.5rem;
    }

    .snake-mode-card h4 {
        font-size: 0.95rem;
    }

    .snake-mode-card p {
        font-size: 0.75rem;
    }

    .snake-hud {
        padding: 10px 15px;
        max-width: 100%;
    }

    .hud-value {
        font-size: 1.2rem;
    }

    .hud-label {
        font-size: 0.7rem;
    }

    #game-canvas {
        max-width: 100%;
    }

    .canvas-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .game-over-title {
        font-size: 2rem;
    }

    .game-over-score {
        font-size: 1.2rem;
    }

    .game-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .game-controls button {
        flex: 1 1 auto;
        min-width: 120px;
    }

    /* Ensure touch controls are prominent */
    .touch-controls {
        margin-top: 15px;
        margin-bottom: 10px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 380px) {
    .touch-controls {
        grid-template-columns: repeat(3, 55px);
        grid-template-rows: repeat(3, 55px);
        gap: 5px;
    }

    .touch-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .snake-hud {
        padding: 8px 10px;
        gap: 10px;
    }

    .hud-value {
        font-size: 1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .snake-container {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .touch-controls {
        margin-top: 0;
        grid-template-columns: repeat(3, 50px);
        grid-template-rows: repeat(3, 50px);
    }

    .touch-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .snake-hud {
        flex-wrap: wrap;
        max-width: 300px;
    }

    .game-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ==================== BRICKSTOP GAME STYLES ==================== */

/* Brickstop mode selection cards */
.brickstop-modes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.brickstop-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.brickstop-mode-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.brickstop-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.brickstop-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.brickstop-mode-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.brickstop-mode-card p {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Brickstop HUD */
.brickstop-hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.brickstop-hud .hud-value.combo {
    color: #ed8936;
    font-weight: bold;
}

/* Game canvas container with side panels (Brickstop) */
.game-canvas-container.brickstop-layout {
    display: flex;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    position: relative;
}

/* Brickstop side panels (Hold & Next) */
.brickstop-hold,
.brickstop-next {
    background: rgba(45, 55, 72, 0.9);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.side-panel-label {
    font-size: 0.75rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

#hold-canvas,
#next-canvas {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 5px;
    display: block;
}

/* Brickstop timer */
.brickstop-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
}

.brickstop-timer .timer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.brickstop-timer .timer-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

/* Brickstop combo notification animation */
@keyframes comboPopup {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -80%) scale(1);
        opacity: 0;
    }
}

/* Line clear animation */
@keyframes lineClear {
    0% {
        background: rgba(255, 255, 255, 0.8);
        transform: scaleY(1);
    }
    50% {
        background: rgba(102, 126, 234, 1);
        transform: scaleY(1.2);
    }
    100% {
        background: transparent;
        transform: scaleY(0);
    }
}

/* Slow time visual effect */
.slow-time-active {
    animation: slowTimeGlow 2s ease-in-out infinite;
}

@keyframes slowTimeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(236, 201, 75, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(236, 201, 75, 0.6);
    }
}

/* Level up animation */
@keyframes levelUp {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* New high score animation */
.new-high-score {
    color: #ecc94b !important;
    animation: highScorePulse 0.8s ease-in-out infinite;
}

@keyframes highScorePulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(236, 201, 75, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(236, 201, 75, 1);
    }
}

/* Brickstop responsive styles */
@media (max-width: 600px) {
    .brickstop-modes {
        flex-direction: column;
        align-items: center;
    }

    .brickstop-mode-card {
        width: 100%;
        max-width: 200px;
    }

    .brickstop-hud {
        padding: 10px 15px;
        gap: 10px;
    }

    .brickstop-hud .hud-item {
        flex: 1;
        min-width: auto;
    }

    .game-canvas-container.brickstop-layout {
        flex-direction: column !important;
        align-items: center;
    }

    .brickstop-hold,
    .brickstop-next {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px 15px;
    }

    .brickstop-hold {
        order: -1;
    }

    .side-panel-label {
        margin-bottom: 0;
    }

    #hold-canvas {
        width: 60px !important;
        height: 60px !important;
    }

    #next-canvas {
        width: 180px !important;
        height: 60px !important;
    }
}

@media (max-width: 400px) {
    .brickstop-hud {
        flex-wrap: wrap;
        justify-content: center;
    }

    .brickstop-hud .hud-item {
        flex: 0 0 45%;
        margin-bottom: 5px;
    }
}

/* ==================== LOKI'S FETCH GAME STYLES ==================== */

/* Fetch mode selection cards */
.fetch-modes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.fetch-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.fetch-mode-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.fetch-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.fetch-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.fetch-mode-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.fetch-mode-card p {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Fetch HUD */
.fetch-hud,
.fetch-hud-vs {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.fetch-hud .lives {
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* VS Mode HUD */
.fetch-hud-vs {
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.fetch-hud-vs .hud-item {
    text-align: center;
}

.fetch-hud-vs .vs-player .hud-value {
    color: #48bb78;
    font-size: 1.8rem;
}

.fetch-hud-vs .vs-ai .hud-value {
    color: #f56565;
    font-size: 1.8rem;
}

.fetch-hud-vs .vs-separator {
    padding: 0 5px;
}

.fetch-hud-vs .vs-divider {
    font-size: 1rem;
    color: #a0aec0;
    font-weight: normal;
}

/* Fetch responsive styles */
@media (max-width: 600px) {
    .fetch-modes {
        flex-direction: column;
        align-items: center;
    }

    .fetch-mode-card {
        width: 100%;
        max-width: 200px;
    }

    .fetch-hud,
    .fetch-hud-vs {
        padding: 10px 15px;
        gap: 10px;
    }

    .fetch-hud .hud-item,
    .fetch-hud-vs .hud-item {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 400px) {
    .fetch-hud,
    .fetch-hud-vs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .fetch-hud .hud-item,
    .fetch-hud-vs .hud-item {
        flex: 0 0 45%;
        margin-bottom: 5px;
    }
}

/* ==================== 2048 GAME STYLES ==================== */

/* 2048 mode selection cards */
.game-2048-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-2048-mode-card {
    background: linear-gradient(135deg, #bbada0 0%, #8f7a66 100%);
    border: 2px solid #8f7a66;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.game-2048-mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(143, 122, 102, 0.4);
}

.game-2048-mode-card.selected {
    border-color: #edc22e;
    background: linear-gradient(135deg, #edc22e 0%, #edcf72 100%);
    box-shadow: 0 0 20px rgba(237, 194, 46, 0.5);
}

.game-2048-mode-card .mode-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.game-2048-mode-card h4 {
    margin-bottom: 3px;
    font-size: 1rem;
    color: #fff;
}

.game-2048-mode-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* 2048 HUD */
.game-2048-hud {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #bbada0 0%, #8f7a66 100%);
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.game-2048-hud .hud-item {
    text-align: center;
    min-width: 70px;
}

.game-2048-hud .hud-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.game-2048-hud .hud-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
}

.game-2048-hud .hud-value.high-score {
    color: #edc22e;
}

/* 2048 Undo button */
.game-2048-undo-container {
    min-width: auto !important;
}

.game-2048-undo-btn {
    background: linear-gradient(135deg, #776e65 0%, #5a534c 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-2048-undo-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8f7a66 0%, #776e65 100%);
    transform: translateY(-2px);
}

.game-2048-undo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 2048 Timer (Time Attack mode) */
.game-2048-timer {
    text-align: center;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f67c5f 0%, #f65e3b 100%);
    border-radius: 10px;
    display: inline-block;
}

.game-2048-timer .timer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.game-2048-timer .timer-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

/* 2048 Challenge info */
.game-2048-challenge {
    text-align: center;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #edcf72 0%, #edc22e 100%);
    border-radius: 10px;
    display: inline-block;
}

.game-2048-challenge .challenge-name {
    font-size: 1rem;
    font-weight: bold;
    color: #776e65;
    margin-bottom: 3px;
}

.game-2048-challenge .challenge-objective {
    font-size: 0.9rem;
    color: #5a534c;
}

/* 2048 Win overlay */
.game-2048-win-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(237, 194, 46, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

.game-2048-win-overlay .win-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #776e65;
    margin-bottom: 10px;
}

.game-2048-win-overlay .win-message {
    font-size: 1.1rem;
    color: #5a534c;
    margin-bottom: 20px;
}

.game-2048-win-overlay button {
    background: #776e65;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 5px;
    transition: all 0.2s ease;
}

.game-2048-win-overlay button:hover {
    background: #5a534c;
    transform: translateY(-2px);
}

/* 2048 responsive styles */
@media (max-width: 600px) {
    .game-2048-modes {
        flex-direction: column;
        align-items: center;
    }

    .game-2048-mode-card {
        width: 100%;
        max-width: 200px;
    }

    .game-2048-hud {
        padding: 10px 15px;
        gap: 10px;
    }

    .game-2048-hud .hud-item {
        flex: 1;
        min-width: auto;
    }

    .game-2048-hud .hud-value {
        font-size: 1.2rem;
    }

    .game-2048-undo-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .game-2048-hud {
        flex-wrap: wrap;
        justify-content: center;
    }

    .game-2048-hud .hud-item {
        flex: 0 0 45%;
        margin-bottom: 5px;
    }

    .game-2048-undo-container {
        flex: 0 0 100% !important;
        margin-top: 5px;
    }
}

/* ==================== SU-JOE-KU GAME STYLES ==================== */

/* Su-Joe-Ku Mode Selection Cards */
.game-sudoku-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-sudoku-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.game-sudoku-mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.game-sudoku-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.game-sudoku-mode-card .mode-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.game-sudoku-mode-card h4 {
    margin-bottom: 3px;
    font-size: 1rem;
    color: #fff;
}

.game-sudoku-mode-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Su-Joe-Ku Difficulty Selection */
.game-sudoku-difficulty {
    margin-bottom: 25px;
}

.game-sudoku-difficulty .difficulty-label {
    color: #a0aec0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.game-sudoku-difficulty-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-sudoku-difficulty-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.game-sudoku-difficulty-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.game-sudoku-difficulty-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

/* Su-Joe-Ku HUD */
.game-sudoku-hud {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.game-sudoku-hud .hud-item {
    text-align: center;
    min-width: 70px;
}

.game-sudoku-hud .hud-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.game-sudoku-hud .hud-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
}

/* Su-Joe-Ku Controls */
.game-sudoku-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sudoku-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 10px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.sudoku-control-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.sudoku-control-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.sudoku-control-btn .control-icon {
    font-size: 1.3rem;
}

.sudoku-control-btn .control-label {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Su-Joe-Ku Number Pad Overlay (Mobile) */
.sudoku-numpad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.sudoku-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    max-width: 280px;
    width: 90%;
}

.numpad-btn {
    width: 70px;
    height: 70px;
    border: 2px solid #4a5568;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e2e8f0;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpad-btn:hover,
.numpad-btn:active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.05);
}

.numpad-btn.active {
    border-color: #48bb78;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.numpad-erase {
    font-size: 1.5rem;
}

.numpad-notes {
    font-size: 1.5rem;
}

.numpad-close {
    font-size: 1.5rem;
    border-color: #48bb78;
}

.numpad-close:hover {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Su-Joe-Ku Responsive Styles */
@media (max-width: 600px) {
    .game-sudoku-mode-card {
        min-width: 100px;
        padding: 12px 15px;
    }

    .game-sudoku-mode-card .mode-icon {
        font-size: 1.5rem;
    }

    .game-sudoku-mode-card h4 {
        font-size: 0.9rem;
    }

    .game-sudoku-mode-card p {
        font-size: 0.75rem;
    }

    .game-sudoku-difficulty-card {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .game-sudoku-hud {
        padding: 12px 15px;
        gap: 15px;
    }

    .game-sudoku-hud .hud-value {
        font-size: 1.2rem;
    }

    .sudoku-control-btn {
        padding: 10px 15px;
        min-width: 70px;
    }

    .sudoku-control-btn .control-icon {
        font-size: 1.1rem;
    }

    .numpad-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .game-sudoku-modes {
        gap: 10px;
    }

    .game-sudoku-mode-card {
        min-width: 90px;
        padding: 10px 12px;
    }

    .game-sudoku-difficulty-cards {
        gap: 8px;
    }

    .game-sudoku-difficulty-card {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .game-sudoku-controls {
        gap: 10px;
    }

    .sudoku-control-btn {
        padding: 8px 12px;
        min-width: 60px;
    }
}

/* ==================== LANGUAGE SELECTOR ==================== */

.lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-dropdown-btn:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #3d4a5c 0%, #2a303c 100%);
}

.lang-dropdown-btn:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.lang-flag {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.lang-name {
    min-width: 60px;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.lang-dropdown-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.lang-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
}

.lang-dropdown-item.active {
    background: rgba(102, 126, 234, 0.3);
}

/* Home page adjustment - relative positioning */
.home-header {
    position: relative;
}

.home-header .lang-selector {
    position: absolute;
    top: 0;
    right: 0;
}

/* Game pages adjustment */
.container {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .container {
        padding-top: 70px;
    }

    .home-link {
        position: absolute;
        left: 10px;
        top: 10px;
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .lang-selector {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .home-header .lang-selector {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 15px;
    }

    .lang-dropdown-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .lang-dropdown-menu {
        min-width: 130px;
    }

    .lang-dropdown-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================
   WORD SEARCH STYLES
   ========================================== */

/* Word Search Layout - Side Panel */
.wordsearch-layout {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.wordsearch-grid-container {
    flex-shrink: 0;
}

.wordsearch-grid-container canvas {
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Word List Panel */
.wordsearch-wordlist-container {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    padding: 15px;
    min-width: 150px;
    max-width: 200px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.wordsearch-wordlist-container h4 {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 0 0 12px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wordsearch-wordlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wordsearch-word {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #e2e8f0;
    padding: 6px 10px;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 5px;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.wordsearch-word.found {
    color: #48bb78;
    text-decoration: line-through;
    text-decoration-color: #48bb78;
    text-decoration-thickness: 2px;
    background: rgba(72, 187, 120, 0.15);
}

.wordsearch-word.hint {
    animation: wordHintPulse 1s ease-in-out infinite;
    background: rgba(236, 201, 75, 0.2);
    border: 1px solid rgba(236, 201, 75, 0.5);
}

@keyframes wordHintPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(236, 201, 75, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(236, 201, 75, 0.6);
    }
}

/* Word Search Mode Selection Container */
.game-wordsearch-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Word Search Mode Cards */
.game-wordsearch-mode-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    max-width: 160px;
    flex: 1;
}

.game-wordsearch-mode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.game-wordsearch-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.game-wordsearch-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: #667eea;
}

.game-wordsearch-mode-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.game-wordsearch-mode-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Word Search Difficulty Cards */
.game-wordsearch-difficulty {
    margin: 20px 0;
}

.game-wordsearch-difficulty-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-wordsearch-difficulty-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.game-wordsearch-difficulty-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
}

.game-wordsearch-difficulty-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

/* Word Search HUD */
.game-wordsearch-hud {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Word Search Controls */
.game-wordsearch-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.wordsearch-control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wordsearch-control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wordsearch-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wordsearch-control-btn .control-icon {
    font-size: 1.2rem;
}

/* Word Search Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* Word Found Popup Animation */
@keyframes wordFoundPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}

.wordsearch-word-found .word-found-score {
    color: #ecc94b;
    font-size: 1.2rem;
}

.wordsearch-grid-container {
    position: relative;
    overflow: hidden;
}

/* Word Search Victory Overlay */
.wordsearch-victory-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 8px;
    animation: victoryFadeIn 0.5s ease-out;
}

@keyframes victoryFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wordsearch-victory-title {
    font-size: 2rem;
    font-weight: bold;
    color: #48bb78;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(72, 187, 120, 0.5);
    animation: victoryPulse 1s ease-in-out infinite;
}

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

.wordsearch-victory-stats {
    color: #e2e8f0;
    font-size: 1.1rem;
    text-align: center;
}

.wordsearch-victory-stats p {
    margin: 5px 0;
}

.wordsearch-victory-score {
    font-size: 1.5rem;
    color: #ecc94b;
    font-weight: bold;
}

/* Mobile responsive for Word Search */
@media (max-width: 768px) {
    .wordsearch-layout {
        flex-direction: column;
        align-items: center;
    }

    .wordsearch-wordlist-container {
        width: 100%;
        max-width: none;
        order: 1;
    }

    .wordsearch-wordlist {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .wordsearch-word {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .game-wordsearch-mode-card {
        min-width: 120px;
        padding: 15px;
    }

    .game-wordsearch-mode-card .mode-icon {
        font-size: 1.5rem;
    }

    .game-wordsearch-mode-card h4 {
        font-size: 1rem;
    }
}

/* ==========================================
   WORD RUSH STYLES
   ========================================== */

/* Word Rush Mode Selection Container */
.game-wordrush-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Word Rush Mode Cards */
.game-wordrush-mode-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    max-width: 160px;
    flex: 1;
}

.game-wordrush-mode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.game-wordrush-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.game-wordrush-mode-card .mode-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: bold;
    color: #667eea;
}

.game-wordrush-mode-card h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #e2e8f0;
}

.game-wordrush-mode-card p {
    margin: 0;
    font-size: 0.75rem;
    color: #a0aec0;
    line-height: 1.3;
}

/* Word Rush Difficulty Selection */
.game-wordrush-difficulty {
    margin: 20px 0;
}

.game-wordrush-difficulty-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-wordrush-difficulty-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #e2e8f0;
    text-align: center;
}

.game-wordrush-difficulty-card:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(102, 126, 234, 0.1);
}

.game-wordrush-difficulty-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.game-wordrush-difficulty-card small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    color: #a0aec0;
}

/* Word Rush HUD */
.game-wordrush-hud {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Word Rush Layout */
.wordrush-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

/* Word Rush Message */
.wordrush-message {
    text-align: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    animation: messageSlideIn 0.3s ease-out;
}

.wordrush-message.error {
    background: rgba(229, 62, 62, 0.2);
    color: #fc8181;
    border: 1px solid rgba(229, 62, 62, 0.4);
}

.wordrush-message.success {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.wordrush-message.info {
    background: rgba(102, 126, 234, 0.2);
    color: #a3bffa;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Word Rush Grid */
.wordrush-grid-wrapper {
    display: flex;
    justify-content: center;
}

.wordrush-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.wordrush-tile {
    width: 58px;
    height: 58px;
    border: 2px solid #3a3a3c;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    background: #121213;
    transition: border-color 0.1s ease;
}

.wordrush-tile.filled {
    border-color: #565758;
    animation: tilePop 0.1s ease-out;
}

.wordrush-tile.current-row {
    border-color: #565758;
}

.wordrush-tile.correct {
    background: #538d4e;
    border-color: #538d4e;
}

.wordrush-tile.present {
    background: #b59f3b;
    border-color: #b59f3b;
}

.wordrush-tile.absent {
    background: #3a3a3c;
    border-color: #3a3a3c;
}

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

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

@keyframes rowShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes tileBounce {
    0%, 20% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    50% { transform: translateY(3px); }
    60% { transform: translateY(-10px); }
    80% { transform: translateY(2px); }
    100% { transform: translateY(0); }
}

.wordrush-tile.flip {
    animation: tileFlip 0.5s ease-in-out;
}

.wordrush-row.shake {
    animation: rowShake 0.5s ease-in-out;
}

.wordrush-row.win .wordrush-tile {
    animation: tileBounce 1s ease-in-out;
}

.wordrush-row.win .wordrush-tile:nth-child(1) { animation-delay: 0.1s; }
.wordrush-row.win .wordrush-tile:nth-child(2) { animation-delay: 0.2s; }
.wordrush-row.win .wordrush-tile:nth-child(3) { animation-delay: 0.3s; }
.wordrush-row.win .wordrush-tile:nth-child(4) { animation-delay: 0.4s; }
.wordrush-row.win .wordrush-tile:nth-child(5) { animation-delay: 0.5s; }
.wordrush-row.win .wordrush-tile:nth-child(6) { animation-delay: 0.6s; }

/* Word Rush Keyboard */
.wordrush-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 500px;
}

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

.spacer-half {
    flex: 0.5;
}

.wordrush-keyboard .key {
    font-family: inherit;
    font-weight: bold;
    font-size: 0.85rem;
    height: 58px;
    min-width: 43px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #818384;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: background 0.1s ease, transform 0.1s ease;
    flex: 1;
    max-width: 43px;
}

.wordrush-keyboard .key:hover {
    background: #9a9b9c;
}

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

.wordrush-keyboard .key.wide {
    flex: 1.5;
    max-width: 65px;
    font-size: 0.75rem;
}

.wordrush-keyboard .key.correct {
    background: #538d4e;
}

.wordrush-keyboard .key.present {
    background: #b59f3b;
}

.wordrush-keyboard .key.absent {
    background: #3a3a3c;
}

/* Word Rush Game Over Modal */
.wordrush-game-over {
    text-align: center;
    padding: 20px;
}

.wordrush-game-over h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.wordrush-game-over h2.win {
    color: #48bb78;
    text-shadow: 0 0 20px rgba(72, 187, 120, 0.5);
}

.wordrush-game-over h2.lose {
    color: #fc8181;
    text-shadow: 0 0 20px rgba(252, 129, 129, 0.5);
}

.wordrush-game-over .score-display {
    margin: 20px 0;
    padding: 15px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
}

.wordrush-game-over .score-label {
    display: block;
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 5px;
}

.wordrush-game-over .score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ecc94b;
}

.wordrush-game-over .game-over-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.wordrush-game-over .stat {
    text-align: center;
}

.wordrush-game-over .stat .label {
    display: block;
    font-size: 0.85rem;
    color: #a0aec0;
}

.wordrush-game-over .stat .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e2e8f0;
}

.wordrush-game-over .game-over-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.wordrush-game-over .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wordrush-game-over .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wordrush-game-over .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wordrush-game-over .btn-secondary {
    background: rgba(102, 126, 234, 0.2);
    color: #a3bffa;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.wordrush-game-over .btn-secondary:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* Mobile responsive for Word Rush */
@media (max-width: 500px) {
    .wordrush-tile {
        width: 52px;
        height: 52px;
        font-size: 1.75rem;
    }

    .wordrush-keyboard .key {
        height: 52px;
        min-width: 32px;
        font-size: 0.8rem;
    }

    .wordrush-keyboard .key.wide {
        font-size: 0.7rem;
    }

    .game-wordrush-mode-card {
        min-width: 120px;
        padding: 15px;
    }

    .game-wordrush-mode-card .mode-icon {
        font-size: 1.5rem;
    }

    .game-wordrush-mode-card h4 {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .wordrush-tile {
        width: 46px;
        height: 46px;
        font-size: 1.5rem;
    }

    .wordrush-keyboard .key {
        height: 46px;
        min-width: 28px;
        font-size: 0.75rem;
    }

    .keyboard-row {
        gap: 4px;
    }

    .wordrush-grid {
        gap: 4px;
    }

    .wordrush-row {
        gap: 4px;
    }
}

/* ==================== LOKI PHOTO GALLERY STYLES ==================== */

.gallery-container {
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.gallery-header {
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    max-width: 500px;
    margin: 0 auto;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 15px;
    font-size: 1rem;
    color: #cbd5e0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.gallery-footer {
    margin-top: 40px;
    padding: 20px;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #667eea;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    color: #cbd5e0;
    font-size: 1.2rem;
    margin-top: 20px;
    text-align: center;
}

/* Gallery responsive styles */
@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .gallery-item img {
        height: 200px;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 15px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        font-size: 2.5rem;
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 1.8rem;
    }

    .gallery-subtitle {
        font-size: 1rem;
    }
}

/* Gallery link in about text */
.gallery-link {
    color: #667eea;
    text-decoration: none;
    font-style: normal;
    transition: color 0.3s ease;
}

.gallery-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ==================== DUAL N-BACK GAME STYLES ==================== */

/* Dual N-Back Mode Selection Cards */
.game-dualnback-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-dualnback-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.game-dualnback-mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.game-dualnback-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.game-dualnback-mode-card .mode-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.game-dualnback-mode-card h4 {
    margin-bottom: 3px;
    font-size: 1rem;
    color: #fff;
}

.game-dualnback-mode-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Dual N-Back Difficulty Selection */
.game-dualnback-difficulty {
    margin-bottom: 25px;
}

.game-dualnback-difficulty .difficulty-label {
    color: #a0aec0;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.game-dualnback-difficulty-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-dualnback-difficulty-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #e2e8f0;
    text-align: center;
}

.game-dualnback-difficulty-card small {
    display: block;
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 2px;
}

.game-dualnback-difficulty-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.game-dualnback-difficulty-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

.game-dualnback-difficulty-card.selected small {
    color: rgba(255, 255, 255, 0.9);
}

/* Dual N-Back HUD */
.game-dualnback-hud {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.game-dualnback-hud .hud-item {
    text-align: center;
    min-width: 60px;
}

.game-dualnback-hud .hud-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.game-dualnback-hud .hud-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
}

/* Dual N-Back Layout */
.dualnback-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.dualnback-instructions {
    color: #a0aec0;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
}

.dualnback-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#dualnback-canvas {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dual N-Back Controls */
.dualnback-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.dualnback-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 12px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.dualnback-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dualnback-btn:active,
.dualnback-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(0);
}

.dualnback-btn .btn-label {
    font-size: 1rem;
    font-weight: 600;
}

.dualnback-btn .btn-key {
    font-size: 0.75rem;
    color: #a0aec0;
}

.dualnback-btn.active .btn-key {
    color: rgba(255, 255, 255, 0.8);
}

/* Audio Control */
.dualnback-audio-control {
    margin-top: 10px;
}

.dualnback-mute-btn {
    background: transparent;
    border: 2px solid #4a5568;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dualnback-mute-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Dual N-Back Results in Game Over */
.dualnback-results {
    text-align: center;
    color: #e2e8f0;
}

.dualnback-results p {
    margin: 8px 0;
    font-size: 1rem;
}

.dualnback-results p strong {
    color: #667eea;
    font-size: 1.1rem;
}

/* Dual N-Back Responsive Styles */
@media (max-width: 600px) {
    .game-dualnback-modes {
        flex-direction: column;
        align-items: center;
    }

    .game-dualnback-mode-card {
        width: 100%;
        max-width: 200px;
    }

    .game-dualnback-hud {
        padding: 12px 15px;
        gap: 15px;
    }

    .game-dualnback-hud .hud-value {
        font-size: 1.2rem;
    }

    .game-dualnback-hud .hud-item {
        min-width: 50px;
    }

    .dualnback-controls {
        gap: 10px;
    }

    .dualnback-btn {
        padding: 12px 20px;
        min-width: 120px;
    }

    .dualnback-btn .btn-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .game-dualnback-difficulty-cards {
        gap: 8px;
    }

    .game-dualnback-difficulty-card {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .dualnback-btn {
        padding: 10px 15px;
        min-width: 100px;
    }
}

/* ==========================================
   HITORI STYLES
   ========================================== */

/* Hitori Mode Cards Container */
.game-hitori-modes {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto 15px auto;
}

/* Hitori Mode Cards */
.game-hitori-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    min-width: 140px;
    max-width: 180px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-hitori-mode-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.game-hitori-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-hitori-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.game-hitori-mode-card h4 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.1rem;
}

.game-hitori-mode-card p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.85rem;
}

.game-hitori-mode-card.selected p {
    color: rgba(255, 255, 255, 0.8);
}

/* Hitori Difficulty Section */
.game-hitori-difficulty {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 15px auto;
}

.game-hitori-difficulty .difficulty-label {
    color: #a0aec0;
    margin-bottom: 12px;
}

/* Hitori Difficulty Cards */
.game-hitori-difficulty-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-hitori-difficulty-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.game-hitori-difficulty-card:hover {
    border-color: #667eea;
}

.game-hitori-difficulty-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-hitori-difficulty-card span {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.game-hitori-difficulty-card small {
    display: block;
    color: #a0aec0;
    font-size: 0.75rem;
    margin-top: 4px;
}

.game-hitori-difficulty-card.selected small {
    color: rgba(255, 255, 255, 0.8);
}

/* Hitori Layout */
.hitori-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

/* Hitori HUD */
.game-hitori-hud {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.game-hitori-hud .hud-item {
    text-align: center;
    min-width: 70px;
}

.game-hitori-hud .hud-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.game-hitori-hud .hud-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
}

.hitori-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#hitori-canvas {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hitori Error Panel */
.hitori-error-panel {
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hitori-error {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(245, 101, 101, 0.2);
    border: 1px solid rgba(245, 101, 101, 0.4);
    border-radius: 15px;
    color: #f56565;
    font-size: 0.85rem;
    animation: hitoriErrorPulse 1.5s ease-in-out infinite;
}

.hitori-error[hidden] {
    display: none;
}

@keyframes hitoriErrorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hitori Controls */
.hitori-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.hitori-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid #4a5568;
    border-radius: 10px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hitori-control-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: linear-gradient(135deg, #3d4a5c 0%, #2a303c 100%);
}

.hitori-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hitori-control-btn .control-icon {
    font-size: 1.2rem;
}

.hitori-control-btn .control-label {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* Hitori Confetti Animation */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

.hitori-confetti {
    pointer-events: none;
}

/* Hitori Responsive Styles */
@media (max-width: 600px) {
    .game-hitori-modes {
        flex-direction: column;
        align-items: center;
    }

    .game-hitori-mode-card {
        width: 100%;
        max-width: 200px;
    }

    .game-hitori-difficulty-cards {
        gap: 8px;
    }

    .game-hitori-difficulty-card {
        padding: 8px 14px;
    }

    .game-hitori-hud {
        padding: 10px 15px;
        gap: 10px;
    }

    .game-hitori-hud .hud-item {
        flex: 1;
        min-width: auto;
    }

    .game-hitori-hud .hud-value {
        font-size: 1.2rem;
    }

    .hitori-controls {
        gap: 10px;
    }

    .hitori-control-btn {
        padding: 8px 14px;
    }
}

/* ==========================================
   STRATEGY GAMES STYLES
   ========================================== */

/* Strategy Mode Cards */
.gomoku-mode-card,
.morris-mode-card,
.dotsboxes-mode-card,
.hex-mode-card,
.foureyes-mode-card,
.chainreaction-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gomoku-mode-card:hover,
.morris-mode-card:hover,
.dotsboxes-mode-card:hover,
.hex-mode-card:hover,
.foureyes-mode-card:hover,
.chainreaction-mode-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.gomoku-mode-card.selected,
.morris-mode-card.selected,
.dotsboxes-mode-card.selected,
.hex-mode-card.selected,
.foureyes-mode-card.selected,
.chainreaction-mode-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.gomoku-mode-card .mode-icon,
.morris-mode-card .mode-icon,
.dotsboxes-mode-card .mode-icon,
.hex-mode-card .mode-icon,
.foureyes-mode-card .mode-icon,
.chainreaction-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.gomoku-mode-card h4,
.morris-mode-card h4,
.dotsboxes-mode-card h4,
.hex-mode-card h4,
.foureyes-mode-card h4,
.chainreaction-mode-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gomoku-mode-card p,
.morris-mode-card p,
.dotsboxes-mode-card p,
.hex-mode-card p,
.foureyes-mode-card p,
.chainreaction-mode-card p {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Strategy Game Modes Container */
.gomoku-modes,
.morris-modes,
.dotsboxes-modes,
.hex-modes,
.foureyes-modes,
.chainreaction-modes {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* Four Eyes Customization */
.foureyes-customization {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.foureyes-customization .customization-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.foureyes-customization .player-customization {
    text-align: center;
    min-width: 200px;
}

.foureyes-customization .player-customization h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.foureyes-customization .eye-color-selection,
.foureyes-customization .eye-personality-selection {
    margin-bottom: 15px;
}

.foureyes-customization label {
    display: block;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.foureyes-customization .color-buttons,
.foureyes-customization .personality-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Personality item wrapper */
.eye-personality-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: rgba(26, 32, 44, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.eye-personality-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #4a5568;
}

.eye-personality-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.2);
}

.personality-name {
    font-size: 0.75rem;
    color: #e2e8f0;
    margin-top: 4px;
    font-weight: 500;
}

.personality-desc {
    font-size: 0.65rem;
    color: #718096;
    margin-top: 2px;
    text-align: center;
    line-height: 1.2;
}

.eye-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.eye-color-btn:hover {
    transform: scale(1.15);
}

.eye-color-btn.selected {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.eye-personality-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.4rem;
    pointer-events: none;
}

/* Difficulty Selection */
.difficulty-selection {
    margin-bottom: 25px;
    text-align: center;
}

.difficulty-selection label {
    display: block;
    color: #a0aec0;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.difficulty-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.difficulty-btn {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 10px;
    padding: 10px 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.difficulty-btn:hover {
    border-color: #667eea;
}

.difficulty-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

/* Strategy HUD */
.strategy-hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 15px;
}

/* Morris HUD */
#morris-hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    background: rgba(45, 55, 72, 0.8);
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 15px;
}

/* Strategy Canvas Container */
.strategy-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Strategy Game Play layout */
#game-play.game-play {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#game-play .game-header,
#game-play .strategy-hud,
#game-play .morris-hud,
#game-play .game-controls,
#game-play .game-status {
    width: 100%;
    max-width: 500px;
}

/* Strategy Timer */
.strategy-timer {
    background: rgba(45, 55, 72, 0.8);
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 15px;
    text-align: center;
}

.strategy-timer .timer-label {
    color: #a0aec0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.strategy-timer .timer-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Turn Indicator Styling */
.turn-indicator {
    transition: color 0.3s ease;
}

/* Game Status Message */
.game-status {
    color: #a0aec0;
    font-size: 0.95rem;
    text-align: center;
    margin: 10px 0;
    min-height: 1.5em;
}

/* Strategy Games Responsive */
@media (max-width: 600px) {
    .gomoku-mode-card,
    .morris-mode-card,
    .dotsboxes-mode-card,
    .hex-mode-card,
    .foureyes-mode-card,
    .chainreaction-mode-card {
        min-width: 100px;
        padding: 15px 10px;
    }

    .gomoku-mode-card .mode-icon,
    .morris-mode-card .mode-icon,
    .dotsboxes-mode-card .mode-icon,
    .hex-mode-card .mode-icon,
    .foureyes-mode-card .mode-icon,
    .chainreaction-mode-card .mode-icon {
        font-size: 1.5rem;
    }

    .gomoku-mode-card h4,
    .morris-mode-card h4,
    .dotsboxes-mode-card h4,
    .hex-mode-card h4,
    .foureyes-mode-card h4,
    .chainreaction-mode-card h4 {
        font-size: 0.95rem;
    }

    .gomoku-mode-card p,
    .morris-mode-card p,
    .dotsboxes-mode-card p,
    .hex-mode-card p,
    .foureyes-mode-card p,
    .chainreaction-mode-card p {
        font-size: 0.75rem;
    }

    .strategy-hud,
    #morris-hud {
        padding: 10px 15px;
        max-width: 100%;
    }

    .difficulty-buttons {
        gap: 8px;
    }

    .difficulty-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .gomoku-modes,
    .morris-modes,
    .dotsboxes-modes,
    .hex-modes,
    .foureyes-modes,
    .chainreaction-modes {
        flex-direction: column;
        align-items: center;
    }

    .gomoku-mode-card,
    .morris-mode-card,
    .dotsboxes-mode-card,
    .hex-mode-card,
    .foureyes-mode-card,
    .chainreaction-mode-card {
        width: 100%;
        max-width: 200px;
    }
}

/* ==================== CONTACT PAGE STYLES ==================== */

.contact-container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

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

.contact-header .home-link {
    margin-bottom: 20px;
}

.contact-profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    object-fit: cover;
    margin-bottom: 15px;
}

.contact-container h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1rem;
    color: #a0aec0;
}

.contact-step {
    margin-bottom: 20px;
}

.contact-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: left;
}

.contact-intro {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #cbd5e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-input {
    background: #1a1a2e;
    border: 1px solid #4a5568;
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.contact-input::placeholder {
    color: #718096;
}

.contact-input.verified-email {
    background: #252d3d;
    color: #a0aec0;
    cursor: not-allowed;
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    font-size: 0.8rem;
    color: #718096;
    text-align: right;
    margin-top: -5px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success and Error Cards */
.success-card,
.error-card {
    text-align: center;
    padding: 40px 30px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: #fff;
}

.error-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
    color: #fff;
}

.success-card h2,
.error-card h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-card p,
.error-card p {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.email-sent-note {
    font-size: 0.9rem !important;
    color: #718096 !important;
    margin-top: 15px !important;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(72, 187, 120, 0.15);
    border: 1px solid #48bb78;
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 20px;
    color: #48bb78;
    font-size: 0.9rem;
    font-weight: 500;
}

.verified-icon {
    width: 20px;
    height: 20px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Toast Notifications */
.contact-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.contact-toast.error {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: #fff;
}

.contact-toast.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.contact-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

.contact-footer p {
    color: #718096;
    font-size: 0.9rem;
}

/* Contact Page Newsletter Section */
.contact-newsletter-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #4a5568;
}

.contact-newsletter-section h2 {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 10px;
}

.contact-newsletter-intro {
    color: #a0aec0;
    margin-bottom: 20px;
}

/* Contact Page Responsive */
@media (max-width: 600px) {
    .contact-container {
        padding: 15px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-profile-image img {
        width: 100px;
        height: 100px;
    }

    .contact-container h1 {
        font-size: 1.75rem;
    }

    .contact-btn {
        width: 100%;
    }
}

/* ==================== NEWSLETTER STYLES ==================== */

/* Newsletter Page Container */
.newsletter-container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

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

.newsletter-header .home-link {
    margin-bottom: 20px;
}

.newsletter-profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    object-fit: cover;
    margin-bottom: 15px;
}

.newsletter-container h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    font-size: 1rem;
    color: #a0aec0;
}

.newsletter-step {
    margin-bottom: 20px;
}

.newsletter-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: left;
}

.newsletter-intro {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-input {
    background: #1a1a2e;
    border: 1px solid #4a5568;
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.newsletter-input::placeholder {
    color: #718096;
}

.newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.newsletter-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.newsletter-toast.error {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: #fff;
}

.newsletter-toast.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.newsletter-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

/* Honeypot field - hidden from users */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ==================== NEWSLETTER WIDGET STYLES ==================== */

.newsletter-widget {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
}

.newsletter-widget.compact {
    padding: 15px;
}

.newsletter-widget-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-widget-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-widget-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-widget-input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    background: #1a1a2e;
    border: 1px solid #4a5568;
    border-radius: 25px;
    padding: 10px 18px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-widget-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.newsletter-widget-input::placeholder {
    color: #718096;
}

.newsletter-widget-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.newsletter-widget-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-widget-success {
    color: #48bb78;
    font-size: 0.95rem;
    margin-top: 10px;
}

.newsletter-widget-error {
    color: #fc8181;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ==================== NEWSLETTER MODAL ==================== */

.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-modal-overlay.visible {
    opacity: 1;
}

.newsletter-modal-overlay.fade-out {
    opacity: 0;
}

.newsletter-modal {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #667eea;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.newsletter-modal-overlay.visible .newsletter-modal {
    transform: scale(1);
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #4a5568;
    border-radius: 50%;
    color: #a0aec0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-modal-close:hover {
    background: #4a5568;
    color: #fff;
    border-color: #667eea;
}

.newsletter-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.newsletter-modal > p {
    font-size: 1rem;
    color: #a0aec0;
    margin-bottom: 25px;
}

.newsletter-modal-dismiss {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.newsletter-modal-dismiss button {
    background: transparent;
    border: none;
    color: #718096;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px 10px;
}

.newsletter-modal-dismiss button:hover {
    color: #a0aec0;
    text-decoration: underline;
}

/* Footer Newsletter Section */
.newsletter-footer-section {
    margin: 30px auto 20px;
    max-width: 400px;
    padding: 0 20px;
}

/* Contact Newsletter Section */
.contact-newsletter-section {
    margin-top: 40px;
    padding-top: 30px;
}

.contact-newsletter-section h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
}

.contact-divider {
    border: none;
    border-top: 1px solid #4a5568;
    margin-bottom: 30px;
}

/* Newsletter Responsive */
@media (max-width: 600px) {
    .newsletter-container {
        padding: 15px;
    }

    .newsletter-card {
        padding: 25px 20px;
    }

    .newsletter-profile-image img {
        width: 100px;
        height: 100px;
    }

    .newsletter-container h1 {
        font-size: 1.75rem;
    }

    .newsletter-btn {
        width: 100%;
    }

    .newsletter-widget-form {
        flex-direction: column;
    }

    .newsletter-widget-input {
        max-width: 100%;
    }

    .newsletter-modal {
        padding: 30px 20px;
    }

    .newsletter-modal h3 {
        font-size: 1.5rem;
    }
}

/* ==================== VERSION INFO STYLES ==================== */

.version-info {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #4a5568;
    font-family: 'Courier New', monospace;
}

/* ==================== SECRET GIFT PAGE STYLES ==================== */

.gift-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a472a 0%, #0f2617 50%, #1a1a2e 100%);
    position: relative;
    overflow-x: hidden;
}

.gift-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.gift-section {
    animation: fadeIn 0.5s ease;
}

.gift-header {
    text-align: center;
    margin-bottom: 40px;
}

.gift-profile-image {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.gift-profile-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    object-fit: cover;
}

.christmas-tree {
    font-size: 80px;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    to { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.9)); }
}

.gift-page h1 {
    font-size: 2.5rem;
    color: #ffd700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.gift-subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Password Form */
.password-form {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #c41e3a;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.password-form .form-group {
    margin-bottom: 20px;
}

.password-form label {
    display: block;
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.gift-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.gift-input:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

.gift-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gift-btn.primary {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.gift-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

.gift-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid #f56565;
    border-radius: 8px;
    color: #fc8181;
    font-size: 0.9rem;
    text-align: center;
}

/* Gifts Grid */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.gift-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #2f855a;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gift-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41e3a, #ffd700, #2f855a, #ffd700, #c41e3a);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gift-card:hover:not(.redeemed) {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.gift-card.redeemed {
    border-color: #4a5568;
    opacity: 0.8;
}

.gift-card.redeemed::before {
    animation: none;
    background: #4a5568;
}

.gift-card.locked {
    border-color: #718096;
    opacity: 0.7;
}

.gift-card.locked::before {
    animation: none;
    background: linear-gradient(90deg, #4a5568, #718096, #4a5568);
}

.gift-card.locked-wrapped {
    border-color: #718096;
    opacity: 0.7;
}

.gift-card.locked-wrapped::before {
    animation: none;
    background: linear-gradient(90deg, #4a5568, #718096, #4a5568);
}

.gift-card.locked-wrapped .gift-locked-info {
    position: relative;
    z-index: 2;
}

.gift-locked-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 25px;
    color: #a0aec0;
    font-weight: 500;
    margin-top: 8px;
}

.gift-locked-info .lock-icon {
    font-size: 16px;
}

.gift-available-date {
    color: #718096;
    font-size: 13px;
    margin-top: 12px;
}

.gift-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.gift-name {
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.gift-description {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.redeem-btn {
    background: linear-gradient(135deg, #2f855a 0%, #22543d 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 133, 90, 0.4);
}

.redeem-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.5);
}

.gift-redeemed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(47, 133, 90, 0.2);
    border: 1px solid #2f855a;
    border-radius: 20px;
    padding: 10px 20px;
    color: #68d391;
    font-weight: 600;
}

.gift-redeemed-badge .checkmark {
    font-size: 1.2rem;
}

.gift-redeemed-date {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #718096;
}

.gift-footer {
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

.gift-error {
    text-align: center;
    padding: 40px;
    color: #fc8181;
}

.loading-gifts {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.loading-gifts .spinner {
    margin: 0 auto 20px;
}

.spinner.large {
    width: 40px;
    height: 40px;
}

/* Snowfall Animation */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snow {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

.snow:nth-child(1) { left: 10%; animation-duration: 10s; animation-delay: 0s; width: 8px; height: 8px; }
.snow:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1s; width: 6px; height: 6px; }
.snow:nth-child(3) { left: 30%; animation-duration: 8s; animation-delay: 2s; width: 10px; height: 10px; }
.snow:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 0.5s; width: 5px; height: 5px; }
.snow:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 3s; width: 7px; height: 7px; }
.snow:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: 1.5s; width: 9px; height: 9px; }
.snow:nth-child(7) { left: 70%; animation-duration: 13s; animation-delay: 2.5s; width: 6px; height: 6px; }
.snow:nth-child(8) { left: 80%; animation-duration: 10s; animation-delay: 4s; width: 8px; height: 8px; }
.snow:nth-child(9) { left: 90%; animation-duration: 15s; animation-delay: 0s; width: 4px; height: 4px; }
.snow:nth-child(10) { left: 5%; animation-duration: 7s; animation-delay: 3.5s; width: 7px; height: 7px; }

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.2;
    }
}

/* Gift Page Responsive */
@media (max-width: 600px) {
    .gift-page h1 {
        font-size: 1.75rem;
    }

    .christmas-tree {
        font-size: 60px;
    }

    .gift-container {
        padding: 20px 15px;
    }

    .password-form {
        padding: 20px;
    }

    .gifts-grid {
        grid-template-columns: 1fr;
    }

    .gift-card {
        padding: 25px 20px;
    }
}

/* Wrapped Gift Card Styles */
.gift-card.wrapped {
    background: repeating-linear-gradient(
        45deg,
        #c41e3a,
        #c41e3a 10px,
        #8b0000 10px,
        #8b0000 20px
    );
    border-color: #ffd700;
    position: relative;
    overflow: hidden;
}

.gift-card.wrapped::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #fff5cc, #ffd700);
    animation: none;
}

.gift-card.wrapped::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 20px;
    margin-left: -10px;
    background: linear-gradient(90deg, #ffd700, #fff5cc, #ffd700);
}

.gift-wrap-ribbon {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 20px;
    margin-top: -10px;
    background: linear-gradient(180deg, #ffd700, #fff5cc, #ffd700);
    z-index: 1;
}

.gift-card.wrapped .gift-icon,
.gift-card.wrapped .gift-name,
.gift-card.wrapped .gift-description,
.gift-card.wrapped .unwrap-btn {
    position: relative;
    z-index: 2;
}

.gift-card.wrapped .gift-icon {
    background: rgba(26, 32, 44, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
}

.gift-card.wrapped .gift-name,
.gift-card.wrapped .gift-description {
    background: rgba(26, 32, 44, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.gift-card.wrapped .gift-name {
    margin-bottom: 10px;
}

.wrapped-icon {
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.unwrap-btn {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    margin-top: 15px;
}

.unwrap-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* Gift Modal Styles */
.gift-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.gift-modal {
    background: linear-gradient(135deg, #1a472a 0%, #0f2617 100%);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.gift-modal-overlay.active .gift-modal {
    transform: scale(1);
}

.gift-modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.gift-modal h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.gift-modal p {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.gift-modal-btn {
    background: linear-gradient(135deg, #2f855a 0%, #22543d 100%);
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 133, 90, 0.5);
}

.gift-modal-btn.secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.gift-modal-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.5);
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.confirm-gift-name {
    font-weight: 600;
    color: #ffd700;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

/* ============================================
   Gift Reveal Modal & Animations
   ============================================ */

.gift-reveal-modal {
    background: linear-gradient(135deg, #1a472a 0%, #0f2617 100%);
    border: 3px solid #ffd700;
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 60px rgba(255, 215, 0, 0.4),
        0 0 120px rgba(255, 215, 0, 0.2),
        inset 0 0 60px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.gift-modal-overlay.active .gift-reveal-modal {
    transform: scale(1);
}

.reveal-content {
    position: relative;
    z-index: 10;
}

.reveal-title {
    color: #a0aec0;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 20px 0;
    opacity: 0;
    animation: fade-slide-up 0.5s ease forwards;
    animation-delay: 0.3s;
}

.revealed-gift-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0;
    animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.5s;
}

.revealed-gift-name {
    color: #ffd700;
    font-size: 1.6rem;
    margin: 0 0 15px 0;
    opacity: 0;
    animation: fade-slide-up 0.5s ease forwards;
    animation-delay: 0.8s;
}

.revealed-gift-description {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0;
    animation: fade-slide-up 0.5s ease forwards;
    animation-delay: 1s;
}

.gift-reveal-modal .gift-modal-btn {
    opacity: 0;
    animation: fade-slide-up 0.5s ease forwards;
    animation-delay: 1.2s;
}

/* Confetti Container */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.confetti-particle {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    animation: confetti-fall linear forwards;
}

.confetti-particle:nth-child(odd) {
    border-radius: 50%;
}

.confetti-particle:nth-child(even) {
    border-radius: 2px;
    transform: rotate(45deg);
}

/* Sparkle Container */
.sparkle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 6;
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle-burst 1s ease-out forwards;
}

.sparkle::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffd700;
    font-size: 16px;
    text-shadow: 0 0 10px #ffd700;
}

/* Animation Keyframes */
@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes sparkle-burst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Unwrap button shake animation */
.gift-card.wrapped.unwrapping {
    animation: unwrap-shake 0.5s ease-in-out;
}

@keyframes unwrap-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    10% { transform: translateX(-5px) rotate(-2deg); }
    20% { transform: translateX(5px) rotate(2deg); }
    30% { transform: translateX(-5px) rotate(-2deg); }
    40% { transform: translateX(5px) rotate(2deg); }
    50% { transform: translateX(-3px) rotate(-1deg); }
    60% { transform: translateX(3px) rotate(1deg); }
    70% { transform: translateX(-2px) rotate(0); }
    80% { transform: translateX(2px) rotate(0); }
    90% { transform: translateX(-1px) rotate(0); }
}

/* ==================== JAKE OR FAKE GAME STYLES ==================== */

/* Jake or Fake Mode Selection */
.game-jakeorfake-modes {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-jakeorfake-mode-card {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 2px solid #4a5568;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.game-jakeorfake-mode-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.game-jakeorfake-mode-card.selected {
    border-color: #48bb78;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(56, 161, 105, 0.2));
    box-shadow: 0 0 25px rgba(72, 187, 120, 0.4);
}

.game-jakeorfake-mode-card .mode-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.game-jakeorfake-mode-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.game-jakeorfake-mode-card p {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Jake or Fake HUD */
.game-jakeorfake-hud {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15), rgba(56, 161, 105, 0.15));
    border-radius: 15px;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.game-jakeorfake-hud .hud-item {
    text-align: center;
    min-width: 80px;
}

.game-jakeorfake-hud .hud-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.game-jakeorfake-hud .hud-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #48bb78;
}

/* Jake or Fake Layout */
.jakeorfake-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Status Bar (Lives + Streak) */
.jakeorfake-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
}

.jakeorfake-lives {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
}

.jakeorfake-lives .life {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.jakeorfake-lives .life-empty {
    opacity: 0.3;
}

.jakeorfake-lives .life-lost {
    animation: lifeLost 0.5s ease-out;
}

@keyframes lifeLost {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

.jakeorfake-streak {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.2), rgba(221, 107, 32, 0.2));
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #ecc94b;
}

.jakeorfake-streak .streak-icon {
    font-size: 1.3rem;
}

.jakeorfake-streak .streak-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ecc94b;
}

.jakeorfake-streak.streak-fire {
    animation: streakPulse 0.5s ease infinite;
    box-shadow: 0 0 20px rgba(236, 201, 75, 0.5);
}

.jakeorfake-streak.streak-super {
    animation: streakPulse 0.3s ease infinite;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.7);
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 159, 67, 0.3));
}

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

/* Jake Character Container */
.jakeorfake-jake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.jake-character {
    width: 120px;
    height: 160px;
    transition: transform 0.3s ease;
}

.jake-character .jake-svg {
    width: 100%;
    height: 100%;
}

/* Jake Animations */
.jake-transitioning {
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.jake-svg.jake-jump {
    animation: jakeJump 0.5s ease-out;
}

.jake-svg.jake-shake {
    animation: jakeShake 0.5s ease-out;
}

.jake-svg.jake-bounce {
    animation: jakeBounce 0.5s ease-out;
}

.jake-svg.jake-wiggle {
    animation: jakeWiggle 0.4s ease-out;
}

.jake-svg.jake-celebrate {
    animation: jakeCelebrate 1s ease-out;
}

@keyframes jakeJump {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-25px); }
    50% { transform: translateY(-30px); }
    70% { transform: translateY(-25px); }
}

@keyframes jakeShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(5px); }
}

@keyframes jakeBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.15); }
    50% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
}

@keyframes jakeWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-3deg); }
}

@keyframes jakeCelebrate {
    0% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-20px) rotate(5deg); }
    40% { transform: translateY(0) rotate(-5deg); }
    60% { transform: translateY(-15px) rotate(3deg); }
    80% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Speech Bubble */
.jake-speech-bubble {
    background: white;
    border-radius: 15px;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    text-align: center;
}

.jake-speech-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid white;
}

.jake-speech-bubble.speech-appear {
    animation: speechAppear 0.3s ease-out;
}

@keyframes speechAppear {
    0% { opacity: 0; transform: scale(0.8) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Timer Bar */
.jakeorfake-timer-bar {
    width: 100%;
    height: 8px;
    background: #4a5568;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.jakeorfake-timer-bar .timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78, #68d391);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.jakeorfake-timer-bar .timer-fill.timer-warning {
    background: linear-gradient(90deg, #ecc94b, #f6e05e);
}

.jakeorfake-timer-bar .timer-fill.timer-critical {
    background: linear-gradient(90deg, #f56565, #fc8181);
    animation: timerPulse 0.5s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Fact Card */
.jakeorfake-fact-card {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.jakeorfake-fact-card .fact-text {
    font-size: 1.15rem;
    color: #2d3748;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.jakeorfake-fact-card.fact-appear {
    animation: factAppear 0.3s ease-out;
}

@keyframes factAppear {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Answer Buttons */
.jakeorfake-answers {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
}

.jakeorfake-answers .answer-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.jakeorfake-answers .answer-btn .btn-icon {
    font-size: 2rem;
    font-weight: bold;
}

.jakeorfake-answers .answer-btn .btn-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.jakeorfake-answers .answer-btn .btn-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.jakeorfake-answers .true-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.jakeorfake-answers .true-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.5);
}

.jakeorfake-answers .false-btn {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.jakeorfake-answers .false-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(245, 101, 101, 0.5);
}

.jakeorfake-answers .answer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.jakeorfake-answers .answer-btn:active:not(:disabled) {
    transform: scale(0.95);
}

/* Feedback Overlay */
.jakeorfake-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 32, 44, 0.97);
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    z-index: 10;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.jakeorfake-feedback.feedback-appear {
    animation: feedbackAppear 0.3s ease-out;
}

@keyframes feedbackAppear {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.jakeorfake-feedback-result {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.jakeorfake-feedback-result.correct {
    color: #48bb78;
}

.jakeorfake-feedback-result.incorrect {
    color: #f56565;
}

.jakeorfake-feedback-result.timeout {
    color: #ecc94b;
}

.jakeorfake-feedback-explanation {
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.jakeorfake-next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jakeorfake-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Achievement Toast */
.jakeorfake-achievement-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ecc94b 0%, #d69e2e 100%);
    color: #1a202c;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(236, 201, 75, 0.5);
    z-index: 100;
}

.jakeorfake-achievement-toast .achievement-icon {
    font-size: 2rem;
}

.jakeorfake-achievement-toast .achievement-info {
    text-align: left;
}

.jakeorfake-achievement-toast .achievement-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.jakeorfake-achievement-toast .achievement-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.jakeorfake-achievement-toast.toast-appear {
    animation: toastAppear 0.4s ease-out;
}

.jakeorfake-achievement-toast.toast-disappear {
    animation: toastDisappear 0.3s ease-out forwards;
}

@keyframes toastAppear {
    0% { opacity: 0; transform: translateX(-50%) translateY(30px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastDisappear {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(30px); }
}

/* Pause Overlay */
.jakeorfake-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 15px;
}

.jakeorfake-pause-overlay .pause-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.jakeorfake-pause-overlay .pause-hint {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* Game Over Overlay */
.jakeorfake-gameover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.jakeorfake-gameover-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #f56565;
    margin-bottom: 25px;
}

.jakeorfake-gameover-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.gameover-stat {
    background: rgba(102, 126, 234, 0.15);
    padding: 15px 25px;
    border-radius: 12px;
    min-width: 100px;
}

.gameover-stat .stat-label {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.gameover-stat .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f7fafc;
}

.jakeorfake-gameover-message {
    color: #48bb78;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 1s ease-in-out infinite;
}

.jakeorfake-playagain-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jakeorfake-playagain-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Jake or Fake Responsive */
@media (max-width: 600px) {
    .game-jakeorfake-modes {
        flex-direction: column;
        align-items: center;
    }

    .game-jakeorfake-mode-card {
        width: 100%;
        max-width: 200px;
    }

    .jakeorfake-layout {
        padding: 15px;
    }

    .jake-character {
        width: 100px;
        height: 135px;
    }

    .jake-speech-bubble {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .jakeorfake-fact-card {
        padding: 20px;
    }

    .jakeorfake-fact-card .fact-text {
        font-size: 1rem;
    }

    .jakeorfake-answers {
        gap: 12px;
    }

    .jakeorfake-answers .answer-btn {
        padding: 15px 10px;
    }

    .jakeorfake-answers .answer-btn .btn-icon {
        font-size: 1.5rem;
    }

    .jakeorfake-answers .answer-btn .btn-text {
        font-size: 1rem;
    }

    .jakeorfake-feedback {
        padding: 25px;
    }

    .jakeorfake-feedback-result {
        font-size: 1.5rem;
    }
}
