/* Modern Adventure Game Styling */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --accent-color: #f59e0b;
    --success-color: #22c55e;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(148, 163, 184, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
}

/* Game Container */
.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.game-header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-bar-container {
    width: 200px;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 50px;
    text-align: right;
}

/* Menu Button */
.menu-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Canvas Container */
.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Mini-game Modal */
.minigame-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.minigame-modal.active {
    opacity: 1;
}

.minigame-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minigame-modal.active .minigame-content {
    transform: scale(1);
}

.minigame-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.minigame-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.minigame-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    min-height: 500px;
}

/* Sliding Puzzle Game Styles */
.minigame-body canvas {
    width: 100%;
    height: 100%;
    min-height: 550px;
    display: block;
}

/* Playground Game Styles */
.playground-game {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-instructions {
    text-align: center;
}

.game-instructions h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.game-instructions p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.progress-counter {
    display: inline-block;
    background: var(--glass-bg);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.progress-counter span {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.playground-scene {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
}

.playground-scene svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-message.show {
    opacity: 1;
}

.success-content {
    text-align: center;
    transform: scale(0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message.show .success-content {
    transform: scale(1);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1rem;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.success-content h3 {
    font-size: 2rem;
    color: var(--success-color);
}

/* Victory Screen */
.victory-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.victory-screen.show {
    opacity: 1;
}

.victory-content {
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.victory-screen.show .victory-content {
    transform: scale(1);
}

.victory-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.victory-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Game Messages */
.game-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    z-index: 1500;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.game-message.info {
    border-left: 4px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .progress-bar-container {
        width: 150px;
    }

    .minigame-content {
        width: 95%;
        max-height: 95vh;
    }

    .minigame-body {
        padding: 1rem;
    }

    .victory-content h1 {
        font-size: 2rem;
    }
}

/* Scrollbar Styling */
.minigame-body::-webkit-scrollbar {
    width: 8px;
}

.minigame-body::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.minigame-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.minigame-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== OVLÁDACÍ PANEL ========== */

.control-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.panel-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.panel-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.panel-btn:active {
    transform: translateY(-2px);
}

.panel-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.panel-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.panel-btn:hover .panel-label {
    color: var(--text-light);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}

/* ========== PANEL MODALY (Deník, Batoh) ========== */

.panel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-modal.active {
    opacity: 1;
    visibility: visible;
}

.panel-modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-modal.active .panel-modal-content {
    transform: scale(1) translateY(0);
}

.panel-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.panel-modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

/* ========== DENÍK STYLY ========== */

.diary-content {
    max-width: 650px;
}

.diary-empty, .backpack-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.diary-empty p:first-child, .backpack-empty p:first-child {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hint {
    font-size: 0.9rem;
    opacity: 0.7;
}

.diary-entry {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.diary-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.diary-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.diary-entry-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.diary-entry-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.diary-entry-location {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.diary-entry-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ========== BATOH STYLY ========== */

.backpack-content {
    max-width: 550px;
}

.backpack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.backpack-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.backpack-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.backpack-item-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.backpack-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.backpack-item-quantity {
    font-size: 0.75rem;
    color: var(--accent-color);
}

.backpack-item-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: none;
}

.backpack-item:hover .backpack-item-description {
    display: block;
}

/* Responsive pro panel */
@media (max-width: 768px) {
    .control-panel {
        bottom: 10px;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .panel-btn {
        padding: 0.5rem 0.75rem;
    }

    .panel-icon {
        font-size: 1.5rem;
    }

    .panel-label {
        font-size: 0.65rem;
    }

    .panel-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .backpack-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* ========== HLAVNÍ MENU ========== */

.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1e1b4b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.main-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

.menu-content {
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    min-width: 350px;
    animation: menuFadeIn 0.6s ease;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.menu-logo {
    margin-bottom: 2.5rem;
}

.menu-logo-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.menu-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.menu-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.menu-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.menu-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.menu-btn-main:active {
    transform: translateY(-1px);
}

.menu-btn-main.menu-btn-new {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    box-shadow: none;
}

.menu-btn-main.menu-btn-new:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.menu-btn-main:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-icon {
    font-size: 1.25rem;
}

.menu-footer {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== IN-GAME MENU ========== */

.ingame-menu-content {
    max-width: 400px;
}

.ingame-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ingame-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.ingame-menu-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.ingame-menu-btn.danger {
    color: #ef4444;
}

.ingame-menu-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.ingame-menu-btn span:first-child {
    font-size: 1.25rem;
}

/* Responsive pro menu */
@media (max-width: 768px) {
    .menu-content {
        min-width: auto;
        width: 90%;
        padding: 2rem 1.5rem;
    }

    .menu-title {
        font-size: 2.25rem;
    }

    .menu-logo-icon {
        font-size: 3rem;
    }

    .menu-btn-main {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========== SLINGSHOT GAME ========== */

.slingshot-dialog {
    padding: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.dialog-scene {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dialog-characters {
    display: flex;
    justify-content: space-around;
    padding: 2rem 1rem;
    gap: 2rem;
}

.character {
    text-align: center;
    opacity: 0.5;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.character.speaking {
    opacity: 1;
    transform: scale(1);
}

.character-avatar {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.character-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.dialog-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-box:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dialog-speaker {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dialog-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.dialog-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* Shooting Game */
.slingshot-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.shooting-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.shot-counter {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.scores {
    display: flex;
    gap: 1.5rem;
}

.player-score {
    color: var(--primary-color);
    font-weight: 600;
}

.maty-score {
    color: var(--accent-color);
    font-weight: 600;
}

#shootingCanvas {
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    cursor: crosshair;
}

.shooting-instructions {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.charge-bar-container {
    width: 100%;
    max-width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.charge-bar {
    height: 100%;
    width: 0%;
    background: #ef4444;
    border-radius: 10px;
    transition: width 0.05s linear;
}

/* Results */
.slingshot-results {
    padding: 1.5rem;
    text-align: center;
}

.slingshot-results h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.results-scores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.result-player {
    text-align: center;
}

.result-avatar {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.result-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.result-shots {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-shots strong {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.result-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.result-message {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.slingshot-results.win .result-message {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.slingshot-results.draw .result-message {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.slingshot-results.lose .result-message {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.maty-revelation {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.revelation-speaker {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.revelation-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.revelation-text strong {
    color: var(--accent-color);
}

.continue-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Score Board */
.score-board {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.score-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-name {
    font-weight: 600;
    color: var(--primary-color);
}

.score-player.maty .score-name {
    color: #f59e0b;
}

.score-shots {
    color: var(--text-muted);
}

.score-shots strong {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Turn Indicator */
.turn-indicator {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.turn-indicator.player {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.turn-indicator.maty {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.round-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== CHAT STYLY PRO DIALOG ========== */

.maty-chat {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    text-align: left;
}

.chat-message {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    line-height: 1.5;
}

.chat-message.maty {
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #f59e0b;
    margin-right: 2rem;
}

.chat-message.player {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid var(--primary-color);
    margin-right: 2rem;
}

.chat-speaker {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.chat-message.maty .chat-speaker {
    color: #f59e0b;
}

.chat-message.player .chat-speaker {
    color: var(--primary-color);
}

.chat-message strong {
    color: var(--accent-color);
}

/* ========== LIBRARY GAME - SUDOKU ========== */

.library-game {
    padding: 1rem;
}

.book-page, .book-page-wide {
    background: linear-gradient(135deg, #f5f0e1 0%, #e8dcc8 100%);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow:
        inset 0 0 30px rgba(139, 90, 43, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
    color: #3d2914;
    min-height: 400px;
}

.book-page-wide {
    max-width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(139, 90, 43, 0.3);
}

.page-number {
    font-style: italic;
    color: #8b5a2b;
    font-size: 0.9rem;
}

.book-title {
    font-weight: 600;
    color: #5d3a1a;
    font-size: 1rem;
}

.intro-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-text p {
    margin-bottom: 1rem;
}

.intro-text blockquote {
    background: rgba(139, 90, 43, 0.1);
    border-left: 3px solid #8b5a2b;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Encoded text section */
.encoded-text {
    background: rgba(139, 90, 43, 0.08);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.encoded-label {
    font-size: 0.85rem;
    color: #8b5a2b;
    margin-bottom: 0.5rem;
}

.encoded-numbers {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #3d2914;
    word-break: break-word;
    line-height: 1.6;
}

/* Puzzle container */
.puzzle-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Legend panel */
.legend-panel {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1rem;
    min-width: 150px;
}

.legend-panel h3 {
    font-size: 0.9rem;
    color: #5d3a1a;
    margin-bottom: 0.75rem;
    text-align: center;
}

.legend-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 0.8rem;
}

.legend-row.complete {
    background: rgba(34, 197, 94, 0.2);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.legend-letter {
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.legend-number {
    color: #8b5a2b;
    min-width: 20px;
    text-align: right;
}

/* Sudoku panel */
.sudoku-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 32px);
    grid-template-rows: repeat(9, 32px);
    gap: 1px;
    background: #3d2914;
    padding: 2px;
    border-radius: 4px;
}

.sudoku-cell {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #3d2914;
}

.sudoku-cell:hover:not(.fixed) {
    background: #f5f0e1;
}

.sudoku-cell.selected {
    background: #fef3c7 !important;
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.sudoku-cell.fixed {
    color: #1f2937;
    cursor: default;
}

.sudoku-cell.border-right {
    border-right: 3px solid #1f2937;
}

.sudoku-cell.border-bottom {
    border-bottom: 3px solid #1f2937;
}

/* Barevná políčka - barevný rámeček, bílý vnitřek */
.sudoku-cell.colored {
    border-width: 3px;
}

/* Number pad */
.sudoku-controls {
    margin-top: 1rem;
}

.number-pad {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.num-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #8b5a2b;
    background: #f5f0e1;
    color: #3d2914;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.num-btn:hover {
    background: #e8dcc8;
    transform: translateY(-2px);
}

.num-btn.erase {
    background: #fecaca;
    border-color: #ef4444;
    color: #ef4444;
}

.sudoku-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #8b5a2b;
    text-align: center;
    max-width: 300px;
}

.check-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #8b5a2b, #5d3a1a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.4);
}

.sudoku-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fecaca;
    color: #991b1b;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.sudoku-error.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Decoded phase */
.decoded-phase .book-page {
    text-align: center;
}

.decoded-container {
    padding: 1rem;
}

.decoded-intro {
    margin-bottom: 1.5rem;
}

.decoded-intro p {
    margin-bottom: 0.5rem;
    color: #5d3a1a;
}

.decoding-animation {
    margin: 2rem 0;
}

.decoding-animation .encoded-numbers {
    opacity: 0.3;
    text-decoration: line-through;
    margin-bottom: 1rem;
}

.decoded-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3d2914;
    min-height: 2rem;
}

.word-reveal {
    display: inline-block;
    animation: wordReveal 0.4s ease forwards;
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.revelation-box {
    background: rgba(139, 90, 43, 0.1);
    border: 2px solid #8b5a2b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.revelation-box.reveal {
    opacity: 1;
    transform: translateY(0);
}

.revelation-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #5d3a1a;
    margin-bottom: 1rem;
}

.revelation-thought {
    font-size: 0.95rem;
    color: #8b5a2b;
    line-height: 1.6;
}

/* Complete phase */
.complete-phase {
    text-align: center;
}

.completion-content {
    padding: 2rem;
}

.completion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.completion-content h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.completion-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.completion-summary p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.final-clue {
    background: rgba(16, 185, 129, 0.15);
    border-left: 3px solid #10b981;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #10b981;
    border-radius: 0 8px 8px 0;
}

/* Monolog/myšlenkový pochod */
.completion-summary.monologue {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    max-height: 350px;
    overflow-y: auto;
}

.completion-summary.monologue .thought {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.completion-summary.monologue .thought em {
    color: #10b981;
    font-size: 1.1em;
}

.completion-summary.monologue .thought strong {
    color: #f59e0b;
}

.completion-summary.monologue .realization {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.15);
    border-left: 3px solid #10b981;
    border-radius: 0 8px 8px 0;
    color: #10b981;
    font-weight: 600;
    font-size: 1.05em;
}

/* ==================== */
/* CHIMNEY GAME STYLES  */
/* ==================== */

.chimney-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

/* Chimney Intro Story */
.chimney-game.intro-phase {
    max-width: 700px;
    margin: 0 auto;
}

.chimney-intro-story {
    padding: 1rem;
}

.chimney-intro-story h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.chimney-intro-story .story-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.chimney-intro-story .story-content p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.chimney-intro-story .story-content p:last-child {
    margin-bottom: 0;
}

/* Nalezený vzkaz */
.found-note {
    background: linear-gradient(135deg, #f5f0e1 0%, #e8dcc8 100%);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow:
        inset 0 0 20px rgba(139, 90, 43, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transform: rotate(-0.5deg);
}

.found-note .note-header {
    font-weight: 700;
    color: #5d3a1a;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(139, 90, 43, 0.3);
    padding-bottom: 0.5rem;
}

.found-note .note-content {
    color: #3d2914;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    font-size: 0.95rem;
}

.found-note .note-content p {
    margin-bottom: 0.75rem;
}

.found-note .note-content p:first-child {
    font-style: italic;
}

.found-note .note-content strong {
    color: #8b5a2b;
}

/* Monolog */
.monologue-content {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.monologue-content .thought {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid transparent;
    font-style: italic;
}

.monologue-content .thought strong {
    color: #f59e0b;
    font-style: normal;
}

.monologue-content .thought em {
    color: #10b981;
}

.monologue-content .questions-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.monologue-content .questions-list li {
    color: var(--text-light);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.monologue-content .questions-list li::before {
    content: "?";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: 700;
}

.monologue-content .questions-list li strong {
    color: #ef4444;
}

.monologue-content .realization {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    border-radius: 0 8px 8px 0;
    color: #fca5a5;
    font-style: normal !important;
}

.monologue-content .warning {
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    color: #fcd34d;
    font-style: normal !important;
    margin-bottom: 0.75rem;
}

.monologue-content .decision {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border-left: 3px solid #22c55e;
    border-radius: 0 8px 8px 0;
    color: #86efac;
    font-weight: 600;
    font-style: normal !important;
    text-align: center;
}

.chimney-header {
    width: 100%;
    max-width: 400px;
}

.chimney-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.level-label {
    color: var(--text-muted);
}

.level-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: #f59e0b;
}

.level-target {
    color: var(--text-muted);
}

.chimney-progress {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.chimney-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #22c55e);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.chimney-canvas-container {
    border: 3px solid #4a3728;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#chimneyCanvas {
    display: block;
    background: #1a1a2e;
}

.chimney-controls {
    text-align: center;
}

.control-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.control-hint .key {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    color: var(--text-light);
}

.chimney-game .start-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chimney-game .start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Chimney lose screen */
.chimney-game.lose .lose-content {
    text-align: center;
    padding: 2rem;
}

.chimney-game.lose .lose-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.chimney-game.lose h2 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.chimney-game.lose p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.chimney-game.lose .hint {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.chimney-game .retry-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chimney-game .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Chimney complete screen */
.chimney-game.complete .completion-content {
    text-align: center;
    padding: 1.5rem;
    max-width: 500px;
}

.chimney-game.complete .completion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.chimney-game.complete h2 {
    color: #22c55e;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .puzzle-container {
        flex-direction: column;
        align-items: center;
    }

    .legend-panel {
        width: 100%;
        max-width: 300px;
    }

    .legend-grid {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
    }

    .legend-row {
        flex: 0 0 auto;
    }

    .sudoku-grid {
        grid-template-columns: repeat(9, 28px);
        grid-template-rows: repeat(9, 28px);
    }

    .sudoku-cell {
        font-size: 0.9rem;
    }

    .decoded-message {
        font-size: 1.2rem;
    }
}

/* ==================== */
/* TRAIN GAME STYLES    */
/* ==================== */

.train-game {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.train-header {
    text-align: center;
}

.train-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.train-instructions {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.train-instructions .start-marker {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.train-instructions .end-marker {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.train-main {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.train-canvas-container {
    border: 3px solid #5a4a3a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#trainCanvas {
    display: block;
    background: #2d2d2d;
}

.train-tiles-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 180px;
    max-width: 200px;
}

.train-tiles-panel h4 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-align: center;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tile-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tile-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tile-item.selected {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.tile-symbol {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.tile-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tile-item.selected .tile-count {
    color: #f59e0b;
}

.selected-tile-info {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    min-height: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.selected-tile-info strong {
    color: #f59e0b;
    font-size: 1rem;
}

.selected-tile-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.train-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.train-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.train-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.train-btn.secondary {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-light);
}

.train-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    box-shadow: none;
}

/* Train game complete screen */
.train-game.complete .completion-content {
    text-align: center;
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.train-game.complete .completion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.train-game.complete h2 {
    color: #22c55e;
    margin-bottom: 1.5rem;
}

/* Responsive train game */
@media (max-width: 768px) {
    .train-main {
        flex-direction: column;
        align-items: center;
    }

    .train-tiles-panel {
        max-width: 100%;
        width: 100%;
    }

    .tiles-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ==================== */
/* COMING SOON STYLES   */
/* ==================== */

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 400px;
}

.coming-soon-content {
    text-align: center;
    max-width: 400px;
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.coming-soon h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.coming-soon-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.coming-soon-hint {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.coming-soon-hint p {
    color: var(--text-light);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.coming-soon-label {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2); }
}
