/* Globální proměnné pro Sleek Dark */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 28, 45, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    
    /* Barvy podobnosti */
    --color-close: #00e676;
    --color-medium: #ffb300;
    --color-far: #ff3d00;
    
    --accent-color: #3b82f6;
    --accent-glow: 0 0 15px rgba(59, 130, 246, 0.5);
    
    --bg-glow-color: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 230, 118, 0.05) 50%, rgba(0,0,0,0) 100%);
    --transition-speed: 0.3s;
}

/* Téma: Cyberpunk */
body.theme-cyberpunk {
    --bg-color: #0f051d;
    --card-bg: rgba(28, 9, 54, 0.6);
    --border-color: rgba(236, 72, 153, 0.2);
    --text-color: #fdf2f8;
    --text-muted: #d946ef;
    
    --color-close: #06b6d4; /* Cyanová */
    --color-medium: #d946ef; /* Růžová */
    --color-far: #f43f5e; /* Červená */
    
    --accent-color: #d946ef;
    --accent-glow: 0 0 15px rgba(217, 70, 239, 0.5);
    
    --bg-glow-color: radial-gradient(circle, rgba(217, 70, 239, 0.18) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(0,0,0,0) 100%);
}

/* Téma: Mint Forest */
body.theme-mint {
    --bg-color: #06130d;
    --card-bg: rgba(10, 31, 22, 0.6);
    --border-color: rgba(16, 185, 129, 0.15);
    --text-color: #ecfdf5;
    --text-muted: #34d399;
    
    --color-close: #10b981; /* Zelená */
    --color-medium: #a7f3d0; /* Světle zelená */
    --color-far: #f59e0b; /* Oranžová */
    
    --accent-color: #10b981;
    --accent-glow: 0 0 15px rgba(16, 185, 129, 0.5);
    
    --bg-glow-color: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11 0.03) 50%, rgba(0,0,0,0) 100%);
}

/* Téma: Classic Light */
body.theme-light {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-color: #0f172a;
    --text-muted: #475569;
    
    --color-close: #16a34a; /* Zelená */
    --color-medium: #ca8a04; /* Tmavě žlutá */
    --color-far: #dc2626; /* Červená */
    
    --accent-color: #2563eb;
    --accent-glow: 0 4px 15px rgba(37, 99, 235, 0.2);
    
    --bg-glow-color: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(22, 163, 74, 0.03) 60%, rgba(0,0,0,0) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Canvas ohňostroje */
#canvas-fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 80;
    pointer-events: none;
    display: none;
}

/* Ambientní světlo na pozadí */
.bg-glow {
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: var(--bg-glow-color);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
    border-radius: 50%;
    transition: background var(--transition-speed) ease;
}

/* Hlavička */
.app-header {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--color-close) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Streak badge (Plamínek) */
.streak-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(249, 115, 22, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
        transform: scale(1.05);
    }
}

/* Přepínač herního módu */
.mode-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3px;
}

body.theme-light .mode-selector {
    background: rgba(0, 0, 0, 0.03);
}

.mode-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.mode-tab.active {
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

body.theme-light .icon-btn {
    background: rgba(0, 0, 0, 0.02);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Dropdown pro výběr tématu */
.theme-dropdown-container {
    position: relative;
}

.theme-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    z-index: 99;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    backdrop-filter: blur(15px);
}

.theme-menu.active {
    display: block;
}

.theme-option {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-speed) ease;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-color);
}

body.theme-light .theme-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Hlavní kontejner hry */
.game-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Informace o hře */
.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item {
    font-size: 14px;
    color: var(--text-muted);
}

.action-btn {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

body.theme-light .action-btn {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.action-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

body.theme-light .action-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.01);
    border-color: rgba(0,0,0,0.15);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Tlačítko Vzdát se */
.give-up-btn {
    background: transparent;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    color: #ef4444 !important;
}

.give-up-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

.indicia-btn {
    border-color: rgba(59, 130, 246, 0.3);
}

.indicia-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
}

.reset-game-btn, .next-game-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(29, 78, 216, 0.8) 100%);
    color: white;
    border: none;
}

.reset-game-btn:hover, .next-game-btn:hover {
    box-shadow: var(--accent-glow);
}

/* Zobrazení odhalené indicie */
.indicia-display {
    background: rgba(59, 130, 246, 0.08);
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

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

/* Vstupní formulář */
.guess-form {
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    padding: 6px;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(12px);
    align-items: center;
}

.input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
}

#guess-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
}

#guess-input::placeholder {
    color: var(--text-muted);
}

/* Tlačítko pro vymazání inputu */
.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    transition: color var(--transition-speed) ease;
}

.clear-btn:hover {
    color: var(--text-color);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(29, 78, 216, 0.9) 100%);
    color: white;
    border: none;
    outline: none;
    padding: 0 24px;
    height: 44px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed) ease;
}

.submit-btn:hover {
    box-shadow: var(--accent-glow);
}

.send-icon {
    display: none;
}

@media (max-width: 480px) {
    .submit-btn span {
        display: none;
    }
    .send-icon {
        display: block;
    }
    .submit-btn {
        padding: 0 16px;
    }
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    min-height: 18px;
    padding-left: 8px;
}

/* Odkaz na doporučení slova */
.typo-suggest {
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.typo-suggest:hover {
    opacity: 0.8;
}

/* Počítadlo pokusů a odpočet */
.stats-bar {
    display: flex;
    justify-space: space-between;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 0 8px;
}

.countdown-item strong {
    color: #fbbf24;
}

.stats-bar strong {
    color: var(--text-color);
}

/* Seznam hádaných slov */
.guesses-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guesses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 16px;
}

.guesses-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Tlačítko pro řazení */
.sort-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
}

body.theme-light .sort-btn {
    background: rgba(0,0,0,0.02);
}

.sort-btn:hover {
    color: var(--text-color);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
}

body.theme-light .sort-btn:hover {
    background: rgba(0,0,0,0.04);
}

.guesses-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 200px;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
}

/* Řádek pokusu (Slovo) */
.guess-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.guess-row.new-entry {
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.guess-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    z-index: 1;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.guess-word {
    font-weight: 600;
    z-index: 2;
    font-size: 16px;
}

.guess-rank {
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

/* Barevné tóny podobností */
.guess-row.close {
    border-color: rgba(0, 230, 118, 0.25);
}
body.theme-cyberpunk .guess-row.close {
    border-color: rgba(6, 182, 212, 0.3);
}

.guess-row.close .guess-bar {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.05) 0%, rgba(0, 230, 118, 0.22) 100%);
}
body.theme-cyberpunk .guess-row.close .guess-bar {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.22) 100%);
}

.guess-row.close .guess-rank {
    color: var(--color-close);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

.guess-row.medium {
    border-color: rgba(255, 179, 0, 0.25);
}
body.theme-cyberpunk .guess-row.medium {
    border-color: rgba(217, 70, 239, 0.3);
}

.guess-row.medium .guess-bar {
    background: linear-gradient(90deg, rgba(255, 179, 0, 0.05) 0%, rgba(255, 179, 0, 0.18) 100%);
}
body.theme-cyberpunk .guess-row.medium .guess-bar {
    background: linear-gradient(90deg, rgba(217, 70, 239, 0.05) 0%, rgba(217, 70, 239, 0.18) 100%);
}

.guess-row.medium .guess-rank {
    color: var(--color-medium);
    text-shadow: 0 0 8px rgba(255, 179, 0, 0.2);
}

.guess-row.far {
    border-color: var(--border-color);
}
.guess-row.far .guess-bar {
    background: linear-gradient(90deg, rgba(255, 61, 0, 0.02) 0%, rgba(255, 61, 0, 0.12) 100%);
}
body.theme-light .guess-row.far .guess-bar {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.02) 0%, rgba(220, 38, 38, 0.06) 100%);
}

.guess-row.far .guess-rank {
    color: var(--color-far);
}

/* Modální okna */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 8, 16, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

body.theme-light .modal {
    background-color: rgba(15, 23, 42, 0.6);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(15px);
}

body.theme-light .modal-content {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal h2 {
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 24px;
}

.modal-body {
    line-height: 1.6;
    color: var(--text-color);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

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

/* Sekce pro vytvoření výzvy */
.challenge-form-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}

#challenge-word-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 15px;
    outline: none;
}

body.theme-light #challenge-word-input {
    background: rgba(0,0,0,0.01);
}

#challenge-word-input:focus {
    border-color: var(--accent-color);
}

.generate-challenge-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(29, 78, 216, 0.9) 100%) !important;
    color: white !important;
    border: none !important;
}

.challenge-link-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

#challenge-link-output {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 13px;
    outline: none;
}

.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
}

/* Statistiky a Wordle-like graf */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 15px 10px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.theme-light .stat-card {
    background: rgba(0,0,0,0.01);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    text-align: center;
}

/* Distribuce pokusů (graf) */
.distribution-section {
    margin-top: 25px;
    text-align: left;
}

.distribution-section h3 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chart-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
}

.chart-label {
    width: 50px;
    color: var(--text-muted);
}

.chart-bar-wrapper {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar {
    background: var(--accent-color);
    color: white;
    text-align: right;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 24px;
    transition: width 0.8s ease-out;
}

body.theme-light .chart-bar-wrapper {
    background: rgba(0, 0, 0, 0.03);
}

.stats-history-section {
    margin-top: 25px;
    text-align: left;
}

.stats-history-section h3 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stats-history-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-history-list li {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

body.theme-light .stats-history-list li {
    background: rgba(0,0,0,0.02);
}

.reset-btn {
    margin-top: 20px;
    background: transparent;
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.reset-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Výherní modal */
.win-content {
    background: radial-gradient(circle at top, rgba(0, 230, 118, 0.1) 0%, var(--bg-color) 70%);
    border-color: rgba(0, 230, 118, 0.2);
}

body.theme-cyberpunk .win-content {
    background: radial-gradient(circle at top, rgba(6, 182, 212, 0.1) 0%, var(--bg-color) 70%);
    border-color: rgba(6, 182, 212, 0.2);
}

.win-word-display {
    background: rgba(0, 230, 118, 0.08);
    border: 2px solid var(--color-close);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
    padding: 15px 30px;
    border-radius: 16px;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-close);
    display: inline-block;
    margin: 20px 0;
    letter-spacing: 1px;
}

.win-share-section {
    margin-top: 25px;
}

.share-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

.share-btn:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.win-sponsor-code-wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Specifické mobilní optimalizace */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .app-header {
        padding: 10px 0;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .logo-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .header-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
    }
    .logo h1 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    .mode-tab {
        padding: 4px 10px;
        font-size: 11px;
    }
    .icon-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .game-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .meta-right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    .header-right-label {
        display: none;
    }
    .guesses-header-right {
        gap: 5px;
    }
    .modal-content {
        padding: 20px 15px;
        border-radius: 16px;
    }
    .guess-row {
        padding: 11px 16px;
    }
    .guess-word {
        font-size: 15px;
        max-width: 70%;
        word-break: break-all;
    }
    .guess-rank {
        font-size: 14px;
    }
    .stats-bar {
        font-size: 12px;
    }
    .win-sponsor-code-wrapper {
        flex-direction: column;
        gap: 10px !important;
        width: 100%;
    }
    .win-sponsor-code-wrapper code {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .win-sponsor-code-wrapper a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Tlačítko pro překlep v chybovém hlášení */
.typo-btn {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    display: inline-block;
    margin-left: 6px;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.1s;
    vertical-align: middle;
}

.typo-btn:hover {
    background: var(--accent-hover, #4f46e5);
    transform: scale(1.05);
}

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

/* Tlačítka rychlého sdílení na sítě */
.social-share-btn:hover {
    transform: scale(1.12) translateY(-2px) !important;
    filter: brightness(1.08);
}

.social-share-btn:active {
    transform: scale(0.95) !important;
}

/* Animace pro načítání reklamy */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

