/* =========================================
   Global Game Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --tzq-game-bg: #f8fafc;
    --tzq-game-bg-dark: #0f172a;
    --tzq-game-primary: #3b82f6;
    --tzq-game-secondary: #64748b;
    --tzq-game-success: #22c55e;
    --tzq-game-error: #ef4444;
    --tzq-game-warning: #f59e0b;
    --tzq-game-text: #1e293b;
    --tzq-game-text-light: #f1f5f9;
    
    /* Spacing & Radius */
    --tzq-spacing-xs: 0.25rem;
    --tzq-spacing-sm: 0.5rem;
    --tzq-spacing-md: 1rem;
    --tzq-spacing-lg: 1.5rem;
    --tzq-spacing-xl: 2rem;
    --tzq-radius-sm: 0.375rem;
    --tzq-radius-md: 0.5rem;
    --tzq-radius-lg: 0.75rem;
    --tzq-radius-xl: 1rem;
    --tzq-radius-full: 9999px;
    
    /* Font */
    --tzq-game-font: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* =========================================
   Unified Game Container
   ========================================= */
/* Target all game container variations */
.tzq-page__game-container,
.tzq-game-container,
.tst-game-container,
.tzq-game-wrapper,
#advancedGameContainer {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 80vh;
    background: var(--tzq-game-bg-dark); /* Default dark bg for canvas games */
    border-radius: var(--tzq-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    font-family: var(--tzq-game-font);
}

/* Responsive Heights */
@media (max-width: 1024px) {
    .tzq-page__game-container, .tzq-game-container, .tst-game-container { min-height: 450px; }
}
@media (max-width: 768px) {
    .tzq-page__game-container, .tzq-game-container, .tst-game-container { min-height: 400px; border-radius: var(--tzq-radius-md); }
}
@media (max-width: 480px) {
    .tzq-page__game-container, .tzq-game-container, .tst-game-container { min-height: 350px; }
}

/* Canvas Reset */
canvas.tzq-shooter-canvas,
canvas.tst-path-canvas,
canvas.tst-catcher-canvas,
canvas.tzq-memory-canvas,
canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================
   Unified Header & Stats UI
   ========================================= */
/* Common Header Container */
.tzq-game-header,
.tst-game-header,
.tzq-shooter-header,
.tzq-ws-header,
.tzq-game-drag-drop__header,
.tzq-game-sudoku__header,
.tzq-quiz-game__header,
.tzq-game-sentence-builder__header,
.tzq-game-carpma-tablosu__header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--tzq-spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    pointer-events: none; /* Allow clicks through to game */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
}

/* DOM-based games (Quiz, Sudoku, etc.) need relative headers with solid/different backgrounds */
.tzq-quiz-game .tzq-quiz-game__header,
.tzq-game-sudoku .tzq-game-sudoku__header,
.tzq-word-search .tzq-ws-header,
.tzq-game-drag-drop .tzq-game-drag-drop__header,
.tzq-game-sentence-builder .tzq-game-sentence-builder__header,
.tzq-game-carpma-tablosu .tzq-game-carpma-tablosu__header {
    position: relative;
    background: transparent;
    color: var(--tzq-game-text);
    margin-bottom: var(--tzq-spacing-md);
    pointer-events: auto;
}

/* Stats Container */
.tzq-game-stats,
.tst-game-header > div, /* Grouping divs in tst-header */
.tzq-shooter-header > div,
.tzq-ws-level-info,
.tzq-game-drag-drop__stats,
.tzq-game-sudoku__stats,
.tzq-quiz-game__stats,
.tzq-game-sentence-builder__stats,
.tzq-game-carpma-tablosu__stats {
    display: flex;
    gap: var(--tzq-spacing-sm);
    align-items: center;
}

/* Common Badges */
.tzq-stat-badge,
.tst-lives-badge,
.tst-score-badge,
.tst-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--tzq-radius-full);
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tzq-game-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    white-space: nowrap;
}

/* Dark mode / On-Canvas badges */
.tzq-game-container .tzq-stat-badge,
.tst-game-container .tst-lives-badge,
.tst-game-container .tst-score-badge,
.tst-game-container .tst-level-badge,
.tzq-shooter-game .tzq-stat-badge {
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border-color: rgba(255,255,255,0.1);
}

.tzq-stat-badge__value,
.tst-lives-badge span,
.tst-score-badge span,
.tst-level-badge span {
    font-weight: 800;
    color: var(--tzq-game-primary);
}
.tzq-stat-badge__icon { font-size: 1.1em; }

/* =========================================
   Unified Overlays & Modals (Start/Game Over)
   ========================================= */
.tzq-game-overlay,
.tst-game-overlay,
.tzq-shooter-overlay,
#startScreen {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 50;
    transition: opacity 0.3s ease;
}

.tzq-game-modal,
.tst-overlay-content,
.tzq-shooter-modal,
.tzq-sudoku-complete {
    background: white;
    padding: var(--tzq-spacing-xl);
    border-radius: var(--tzq-radius-xl);
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: tzqFadeInUp 0.4s ease-out;
}

.tzq-game-modal h2,
.tst-overlay-content h2,
.tzq-shooter-modal h2 {
    font-size: 1.8rem;
    color: var(--tzq-game-text);
    margin-bottom: var(--tzq-spacing-lg);
}

/* Unified Buttons */
.tzq-btn,
.tst-btn-play,
.tzq-btn--play,
#startBtn,
.tzq-sudoku-number-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: var(--tzq-radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    gap: 0.5rem;
}

.tzq-btn--primary,
.tst-btn-play,
.tzq-btn--play,
#startBtn {
    background: var(--tzq-game-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.tzq-btn--primary:hover,
.tst-btn-play:hover,
.tzq-btn--play:hover,
#startBtn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.6);
}

.tzq-btn--secondary {
    background: white;
    color: var(--tzq-game-text);
    border: 1px solid #e2e8f0;
}
.tzq-btn--secondary:hover { background: #f8fafc; border-color: #cbd5e1; }

/* =========================================
   Game Specific: Question Bars (Shooter, Path, Catcher)
   ========================================= */
.tzq-shooter-question,
.tst-question-bar,
#questionBar {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--tzq-spacing-md) var(--tzq-spacing-lg);
    border-radius: var(--tzq-radius-full);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}
.tzq-shooter-question-text, .tst-question-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tzq-game-text);
}

/* =========================================
   Game Specific: DOM Layout Games
   ========================================= */

/* 1. Quiz Game */
.tzq-quiz-game {
    background: white;
    padding: var(--tzq-spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tzq-quiz-game__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.tzq-quiz__question h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--tzq-spacing-xl);
    color: var(--tzq-game-text);
}
.tzq-quiz__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tzq-spacing-md);
}
.tzq-quiz-option {
    width: 100%;
    padding: 1.25rem;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: var(--tzq-radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tzq-game-text);
    cursor: pointer;
    transition: all 0.2s;
}
.tzq-quiz-option:hover:not(:disabled) {
    background: #e2e8f0;
    transform: translateY(-2px);
}
.tzq-quiz-option--correct {
    background: #dcfce7 !important;
    border-color: var(--tzq-game-success) !important;
    color: #166534 !important;
}
.tzq-quiz-option--wrong {
    background: #fee2e2 !important;
    border-color: var(--tzq-game-error) !important;
    color: #991b1b !important;
}

@media (max-width: 768px) {
    .tzq-quiz__options { grid-template-columns: 1fr; }
}

/* 2. Drag & Drop */
.tzq-game-drag-drop {
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--tzq-spacing-md);
}
.tzq-game-drag-drop__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--tzq-spacing-lg);
}
.tzq-drag-drop__zones {
    display: flex;
    justify-content: center;
    gap: var(--tzq-spacing-md);
    flex-wrap: wrap;
    min-height: 200px;
}
.tzq-drop-zone {
    flex: 1;
    min-width: 200px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--tzq-radius-lg);
    padding: var(--tzq-spacing-md);
    transition: all 0.2s;
}
.tzq-drop-zone--drag-over {
    background: #eff6ff;
    border-color: var(--tzq-game-primary);
    transform: scale(1.02);
}
.tzq-drag-drop__items {
    display: flex;
    justify-content: center;
    gap: var(--tzq-spacing-md);
    flex-wrap: wrap;
    padding: var(--tzq-spacing-lg);
    background: #f1f5f9;
    border-radius: var(--tzq-radius-lg);
}
.tzq-drag-item {
    background: white;
    padding: var(--tzq-spacing-sm) var(--tzq-spacing-md);
    border-radius: var(--tzq-radius-md);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    cursor: grab;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.tzq-drag-item:active { cursor: grabbing; }

/* 3. Sudoku */
.tzq-game-sudoku {
    background: white;
    padding: var(--tzq-spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tzq-game-sudoku__content {
    display: flex;
    justify-content: center;
    gap: var(--tzq-spacing-xl);
    flex-wrap: wrap;
}
.tzq-game-sudoku__grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    background: #94a3b8;
    border: 2px solid #475569;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
}
.tzq-sudoku-cell {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tzq-sudoku-cell:hover { background: #f1f5f9; }
.tzq-sudoku-cell--selected { background: #dbeafe; }
.tzq-sudoku-cell--initial { font-weight: 800; color: #0f172a; background: #e2e8f0; pointer-events: none; }
.tzq-sudoku-cell--error { color: var(--tzq-game-error); background: #fee2e2; }
/* Sudoku Borders */
.tzq-sudoku-cell:nth-child(3n) { border-right: 2px solid #475569; }
.tzq-sudoku-cell:nth-child(9n) { border-right: none; }
.tzq-sudoku-cell:nth-child(n+19):nth-child(-n+27),
.tzq-sudoku-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid #475569; }

.tzq-game-sudoku__controls {
    display: flex;
    flex-direction: column;
    gap: var(--tzq-spacing-md);
}
.tzq-game-sudoku__number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tzq-spacing-sm);
}
.tzq-sudoku-number-btn {
    width: 3rem;
    height: 3rem;
    padding: 0;
    font-size: 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

/* 4. Matching Game */
.tzq-game-matching {
    background: white;
    padding: var(--tzq-spacing-md);
    height: 100%;
}
.tzq-game-matching__pairs {
    display: flex;
    justify-content: space-between;
    gap: var(--tzq-spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}
.tzq-game-matching__questions,
.tzq-game-matching__answers {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--tzq-spacing-md);
}
.tzq-matching-question,
.tzq-matching-answer {
    padding: 1rem;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: var(--tzq-radius-md);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-weight: 600;
}
.tzq-matching-question:hover, .tzq-matching-answer:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}
.tzq-matching-question--selected, .tzq-matching-answer--selected {
    background: #dbeafe;
    border-color: var(--tzq-game-primary);
    color: var(--tzq-game-primary);
}
.tzq-matching-question--matched, .tzq-matching-answer--matched {
    background: #dcfce7;
    border-color: var(--tzq-game-success);
    color: #166534;
    opacity: 0.7;
    pointer-events: none;
}
.tzq-matching-question--wrong, .tzq-matching-answer--wrong {
    background: #fee2e2;
    border-color: var(--tzq-game-error);
    animation: tzqShake 0.4s;
}

/* 5. Word Search */
.tzq-word-search {
    background: white;
    padding: var(--tzq-spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tzq-ws-game-area {
    display: flex;
    gap: var(--tzq-spacing-lg);
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.tzq-ws-grid {
    display: grid;
    gap: 2px;
    background: #475569;
    padding: 2px;
    border-radius: var(--tzq-radius-md);
    user-select: none;
}
.tzq-ws-cell {
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    font-family: monospace;
    font-size: 1.2rem;
}
.tzq-ws-cell.found { background: #bbf7d0; color: #166534; }
.tzq-ws-cell.selected { background: #bfdbfe; }

.tzq-ws-word-list {
    display: flex;
    flex-direction: column;
    gap: var(--tzq-spacing-xs);
    min-width: 150px;
}
.tzq-ws-word-item {
    padding: 4px 8px;
    border-radius: 4px;
    background: #f1f5f9;
}
.tzq-ws-word-item.found {
    text-decoration: line-through;
    opacity: 0.5;
    background: #e2e8f0;
}

/* 6. Sentence Builder */
.tzq-game-sentence-builder {
    background: white;
    padding: var(--tzq-spacing-md);
    height: 100%;
}
.tzq-sentence-builder__content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.tzq-sentence-builder__sentence-area {
    min-height: 80px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--tzq-radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tzq-spacing-sm);
    padding: var(--tzq-spacing-md);
    margin-bottom: var(--tzq-spacing-lg);
}
.tzq-sentence-builder__words-area {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tzq-spacing-md);
    justify-content: center;
}
.tzq-sentence-word {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: var(--tzq-radius-md);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: grab;
    font-weight: 600;
}
.tzq-sentence-word:active { cursor: grabbing; transform: scale(0.95); }

/* 7. Carpma Tablosu & Generic Question/Answer Games */
.tzq-game-carpma-tablosu {
    background: white;
    padding: var(--tzq-spacing-md);
    height: 100%;
}
.tzq-carpma-tablosu__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.tzq-carpma-question, .tzq-carpma-answer {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #e2e8f0;
    border-radius: var(--tzq-radius-md);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    display: block;
}
.tzq-carpma-question:hover, .tzq-carpma-answer:hover {
    border-color: var(--tzq-game-primary);
    background: #f8fafc;
}
.tzq-carpma-question--selected, .tzq-carpma-answer--selected {
    background: #eff6ff;
    border-color: var(--tzq-game-primary);
    color: var(--tzq-game-primary);
}
.tzq-carpma-question--matched, .tzq-carpma-answer--matched {
    background: #f0fdf4;
    border-color: var(--tzq-game-success);
    color: var(--tzq-game-success);
    opacity: 0.6;
    pointer-events: none;
}

/* =========================================
   Floating Particles & Animations
   ========================================= */
.tzq-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
}
.tst-float-text, .tzq-float-text {
    position: absolute;
    font-weight: bold;
    font-size: 1.2rem;
    pointer-events: none;
    animation: tzqFloatUp 1s ease-out forwards;
    z-index: 100;
}
.tzq-success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--tzq-game-success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    z-index: 9999;
    animation: tzqPopup 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tzqFloatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}
@keyframes tzqPopup {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes tzqFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes tzqShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =========================================
   Utilities
   ========================================= */
.tzq-game-hidden { display: none !important; }


/* =========================================
   Games Grid Layout (Modern Card Design)
   ========================================= */

/* Main Grid Container */
.tzq-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on desktop */
    gap: var(--tzq-spacing-lg, 1.5rem);
    margin-bottom: var(--tzq-spacing-xl, 2rem);
    width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .tzq-games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 640px) {
    .tzq-games-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* Game Card Wrapper */
.tzq-game-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Improvements */
.tzq-game-card {
    background: #ffffff;
    border-radius: var(--tzq-radius-lg, 12px);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.tzq-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--tzq-primary, #3b82f6);
}

/* Card Header (Image/Icon Area) */
.tzq-game-card__header {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.tzq-game-card__img-icon {
    width: 64px;
    border-radius: 50%;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tzq-game-card:hover .tzq-game-card__img-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Emoji Fallback */
.tzq-game-card__header span {
    font-size: 3.5rem;
    line-height: 1;
}

/* Title Overlay (Optional style, currently below header) */
.tzq-card__title {
    font-family: var(--tzq-font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    text-align: center;
    padding: 1rem 1rem 0;
    transition: color 0.2s;
}

.tzq-game-card:hover .tzq-card__title {
    color: var(--tzq-primary, #3b82f6);
}

/* Card Body (Meta Stats) */
.tzq-card__body {
    padding: 1rem;
    flex: 1; /* Pushes footer down */
}

.tzq-game-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Meta Tags/Badges */
.tzq-game-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s;
}

.tzq-game-card__stat:hover {
    background: #e2e8f0;
    color: #334155;
}

.tzq-game-card__stat-icon {
    font-size: 0.9em;
}

/* Card Footer (Action Button) */
.tzq-card__footer {
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.tzq-card__footer .tzq-btn {
    width: 100%;
    justify-content: center;
    background: var(--tzq-primary, #3b82f6);
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tzq-card__footer .tzq-btn:hover {
    background: var(--tzq-primary-dark, #2563eb);
}

/* Empty State */
.tzq-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.tzq-empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.tzq-empty-state__title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.tzq-empty-state__description {
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

