/* TYPE GAME STYLES - Modular CSS from TYPE.html */
@import url('https://fonts.googleapis.com/css2?family=Titan+One&family=Nunito:wght@400;600;900&display=swap');

:root {
    --type-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --type-boss-gradient: linear-gradient(135deg, #2c3e50 0%, #000000 100%);
    --type-glass: rgba(255, 255, 255, 0.95);
    --type-primary: #ff4081;
    --type-accent: #ffd700;
    --type-success-color: #00e676;
    --type-error-color: #ff5252;
}

/* Container */
/* Container */
.type-game-container {
    background: transparent;
    /* Show app background */
    font-family: 'Nunito', sans-serif;
    height: 100vh;
    /* Fixed height for mobile */
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Start from top, let flex-grow handle spacing */
    overflow: hidden;
    /* Prevent body scroll */
    color: #333;
    padding: 10px 0 0 0;
    /* Minimal padding */
    position: relative;
}

/* ===== DESKTOP: Center and scale the game ===== */
@media (min-width: 900px) {
    .type-game-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        align-items: center;
        justify-content: flex-start;
        padding-top: 10px;
        z-index: 100;
    }

    .type-desktop-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform-origin: top center;
        transition: transform 0.2s ease;
    }
}


.type-game-container.boss-mode {
    background: var(--type-boss-gradient);
}

.type-game-container.boss-mode .type-card {
    border-color: #ff5252;
    box-shadow: 0 0 20px #ff5252;
}

/* Background Animation */
.type-bg-anim {
    display: none;
}

@keyframes bgScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 100%;
    }
}

/* Header */
.type-header {
    width: 100%;
    max-width: 600px;
    padding: 5px 20px;
    /* Reduced vertical padding */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

/* New Header Center */
.type-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.type-logo {
    font-family: 'Titan One', cursive;
    font-size: 24px;
    color: white;
    text-shadow: 0 3px 0 #4a148c;
}

.type-top-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.type-stop-btn {
    background: rgba(255, 80, 80, 0.25);
    border: 2px solid rgba(255, 120, 120, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.type-stop-btn:hover {
    background: rgba(255, 50, 50, 0.5);
    transform: scale(1.1);
}

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

.type-mute-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;

    .type-back-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        font-size: 18px;
        color: white;
        transition: all 0.2s;
    }

    .type-back-btn:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
    }

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

    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.type-rank-btn {
    background: rgba(245, 158, 11, 0.25);
    border: 2px solid rgba(245, 158, 11, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.type-rank-btn:hover {
    background: rgba(245, 158, 11, 0.5);
    transform: scale(1.1);
}

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

/* Inline Hint Icon in Progress Row */
.type-hint-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.1s;
    background: rgba(255, 215, 0, 0.35);
    padding: 4px 10px;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.8);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.type-hint-inline:active {
    transform: scale(0.95);
}

.type-hint-bar:active {
    transform: scale(0.95);
}

.type-hint-count {
    font-family: 'Titan One';
    font-size: 20px;
    color: #42a5f5;
    text-shadow: 0 0 8px rgba(66, 165, 245, 0.6);
}

.type-hint-count.hint-pop {
    animation: hintPop 0.5s ease;
}

@keyframes hintPop {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.7);
        color: #90caf9;
        text-shadow: 0 0 16px rgba(66, 165, 245, 0.9);
    }

    60% {
        transform: scale(0.85);
    }

    100% {
        transform: scale(1);
    }
}

/* Mascot */
.type-mascot-area {
    text-align: center;
    margin-bottom: 5px;
    /* Reduced margin */
}

.type-mascot-avatar {
    font-size: 60px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite ease-in-out;
}

.type-mascot-label {
    color: white;
    font-family: 'Titan One';
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: -10px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Game Board */
.type-game-board {
    width: 96vw;
    /* Maximize width */
    max-width: 500px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    /* Prevent shrinking */
    box-sizing: border-box;
    height: 90vh;
    /* Occupy most of the screen */
}

.type-card {
    background: var(--type-glass);
    border-radius: 20px;
    padding: 12px 10px;
    text-align: center;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
    /* STABILITY FIX: Prevent shrinking on short words */
    min-height: 150px;
    max-height: 60vh;
    /* Don't let it grow too much */
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    /* Allow shrinking if needed */
}

.type-card.shake {
    animation: shakeCard 0.4s;
    border-color: var(--type-error-color);
    background: #ffebee;
}

@keyframes shakeCard {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.type-score-display {
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: 'Titan One';
    font-size: 16px;
    color: #6200ea;
}

/* Timer */
.type-timer-track {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
}

.type-timer-fill {
    height: 100%;
    background: #00e676;
    width: 100%;
    transition: width 1s linear, background 0.3s;
}

.type-timer-fill.danger {
    background: #ff5252;
}

.type-word-target {
    font-family: 'Titan One', cursive;
    font-size: 54px;
    /* Increased for better visibility (1.7x) */
    color: #6200ea;
    margin-top: 3px;
    margin-bottom: 2px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
    line-height: 1.1;
    min-height: 58px;
}

.type-boss-badge {
    display: none;
    background: #ff5252;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-family: 'Titan One';
    position: absolute;
    top: 12px;
    left: 15px;
}

/* Slots */
.type-slot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 15px;
    /* Reduced from 25px */
    min-height: 45px;
}

.type-slot {
    width: 36px;
    height: 48px;
    background: #eceff1;
    border-radius: 10px;
    border-bottom: 4px solid #cfd8dc;
    font-family: 'Titan One', cursive;
    font-size: 24px;
    color: #546e7a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-slot.filled {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: white;
    border-bottom-color: #008135;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.type-slot.space {
    background: transparent;
    border: none;
    width: 10px;
}

/* Keyboard */
.type-keyboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns max */
    gap: 8px;
    justify-items: center;
}

/* Center first two buttons when there are exactly 2 letters */
.type-key-btn:first-child:nth-last-child(2) {
    grid-column: 2;
    /* Start at column 2 (centered for 2 items) */
}

.type-key-btn:first-child:nth-last-child(2)~.type-key-btn {
    grid-column: 3;
    /* Second button at column 3 */
}

.type-key-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, #f5f5f5);
    border-radius: 16px;
    border: none;
    box-shadow: 0 5px 0 #b0bec5;
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 26px;
    color: #455a64;
    cursor: pointer;
    position: relative;
    top: 0;
}

.type-key-btn:active {
    top: 5px;
    box-shadow: 0 0 0 #b0bec5;
}

.type-key-btn.wrong {
    background: linear-gradient(to bottom, #ffcdd2, #ef9a9a);
    color: #c62828;
    box-shadow: 0 5px 0 #c62828;
    opacity: 0.8;
}

/* Next Button */
.type-next-btn-container {
    display: none;
    width: 100%;
    margin-top: 15px;
}

.type-btn-next {
    background: #6200ea;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-family: 'Titan One';
    font-size: 20px;
    box-shadow: 0 5px 0 #311b92;
    cursor: pointer;
}

.type-btn-next:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* Bonus Bar */
.type-bonus-track {
    width: 100%;
    height: 4px;
    /* Thinner */
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.type-bonus-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8f00);
    width: 0%;
    transition: width 0.3s;
}

/* Stats */
.type-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
    min-height: 150px;
    /* Ensure stats boxes are always visible */
    flex-shrink: 0;
    /* Don't shrink stats */
}

.type-stat-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.5);
    min-height: 140px;
    max-height: 180px;
    /* Prevent excessive growth */
    overflow: hidden;
    /* Container doesn't scroll, only the list inside */
}

.type-stat-header {
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
    margin-bottom: 5px;
}

.type-stat-box.learned .type-stat-header {
    color: var(--type-success-color);
}

.type-stat-box.missed .type-stat-header {
    color: var(--type-error-color);
}

.type-word-list {
    flex-grow: 1;
    padding-right: 5px;
    overflow-y: auto;
    max-height: 400px;
    /* Scroll after ~10 items (doubled) */
}

/* Slim scrollbar for word lists */
.type-word-list::-webkit-scrollbar {
    width: 3px;
}

.type-word-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.type-word-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.type-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    /* Slightly smaller */
    padding: 3px 0;
    border-bottom: 1px dashed #eee;
}

.type-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}

/* Effects */
.type-pop-msg {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Titan One';
    font-size: 40px;
    background: linear-gradient(to bottom, #fff, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.2));
    pointer-events: none;
    z-index: 200;
    white-space: nowrap;
    animation: floatUp 2s forwards;
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    20% {
        transform: translate(-50%, -100%) scale(1.2);
        opacity: 1;
    }

    80% {
        transform: translate(-50%, -120%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -150%) scale(1);
        opacity: 0;
    }
}

.type-fly-star {
    position: fixed;
    width: 30px;
    height: 30px;
    background: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 300;
    pointer-events: none;
    box-shadow: 0 0 10px #ffd700;
}

/* ========================================= */
/* NEW ENHANCEMENTS */
/* ========================================= */

/* New Header Info */
.type-header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.type-player-name {
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.type-game-pin {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-family: monospace;
    letter-spacing: 1px;
}

/* Mascot Center Animation */
.mascot-animates {
    animation: moveMascotToCenter 2s ease-in-out;
}

@keyframes moveMascotToCenter {
    0% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(3) translateY(15vh);
        z-index: 100;
        filter: drop-shadow(0 0 30px white);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Centered Pop */
.type-pop-msg.centered-pop {
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadePop 2.5s forwards;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.9);
    /* Pale/White */
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.2);
    font-weight: 900;
    letter-spacing: 2px;
    white-space: nowrap;
}

@keyframes fadePop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.2);
    }

    80% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(1.1);
    }
}

/* Mini Progress Row OLD */
.type-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #90caf9;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* New Split Pills */
.type-progress-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.type-score-pill {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #6200ea 0%, #3700b3 100%);
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.type-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.type-bonus-mini {
    color: #ffd700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.type-score-mini {
    color: white;
}

/* ===== DESKTOP ZOOM CONTROLS ===== */
.type-zoom-controls {
    display: none;
}

@media (min-width: 900px) {
    .type-zoom-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 20px;
        right: 24px;
        z-index: 9999;
        background: rgba(20, 20, 40, 0.85);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 30px;
        padding: 8px 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        user-select: none;
    }

    .type-zoom-label {
        font-size: 11px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 0.05em;
        margin-right: 2px;
    }

    .type-zoom-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
        line-height: 1;
        padding: 0;
    }

    .type-zoom-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .type-zoom-val {
        font-size: 13px;
        font-weight: 900;
        color: white;
        min-width: 38px;
        text-align: center;
    }
}

/* ========================================= */
/* MASCOT & BOSS ENHANCEMENTS                */
/* ========================================= */

/* --- Özellik 5: Danger Seviyeleri --- */

/* Hafif tehlike: 1 üst üste yanlış */
.mascot-danger-1 {
    animation: mascotShake1 0.5s ease infinite !important;
}

@keyframes mascotShake1 {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-6deg);
    }

    75% {
        transform: rotate(6deg);
    }
}

/* Orta tehlike: 2 üst üste yanlış – kırmızı titreme */
.mascot-danger-2 {
    animation: mascotShake2 0.3s ease infinite !important;
    filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.9)) !important;
}

@keyframes mascotShake2 {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    20% {
        transform: rotate(-10deg) scale(1.08);
    }

    60% {
        transform: rotate(10deg) scale(0.95);
    }
}

/* Kritik tehlike: 3+ üst üste yanlış – dramatik düşüş */
.mascot-danger-3 {
    animation: mascotFall 0.4s ease infinite !important;
    filter: drop-shadow(0 0 16px rgba(255, 0, 0, 1)) !important;
}

@keyframes mascotFall {
    0% {
        transform: rotate(0deg) scale(1);
    }

    15% {
        transform: rotate(-15deg) scale(1.1);
    }

    35% {
        transform: rotate(15deg) scale(0.9) translateY(4px);
    }

    55% {
        transform: rotate(-12deg) scale(1.05) translateY(-2px);
    }

    80% {
        transform: rotate(8deg) scale(0.95) translateY(3px);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

/* Kurtarıldı: doğru yapıldıktan sonra yeşil sıçrama */
.mascot-recovered {
    animation: mascotRecover 0.7s ease forwards !important;
}

@keyframes mascotRecover {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px transparent);
    }

    30% {
        transform: scale(1.5) translateY(-12px);
        filter: drop-shadow(0 0 20px rgba(0, 230, 118, 1));
    }

    60% {
        transform: scale(0.9) translateY(4px);
        filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.5));
    }

    100% {
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    }
}

/* --- Özellik 1: Seviye Atlama Overlay --- */
.mascot-levelup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(98, 0, 234, 0.85) 0%, rgba(10, 5, 30, 0.92) 100%);
    animation: overlayFade 1.8s ease forwards;
    pointer-events: none;
}

@keyframes overlayFade {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.mascot-levelup-icon {
    font-size: 100px;
    animation: iconBurst 1.8s ease forwards;
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

@keyframes iconBurst {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    25% {
        transform: scale(1.4) rotate(5deg);
        opacity: 1;
    }

    55% {
        transform: scale(1.1) rotate(-3deg);
        opacity: 1;
    }

    85% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1.5) rotate(0deg);
        opacity: 0;
    }
}

.mascot-levelup-text {
    font-family: 'Titan One', cursive;
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 3px 0 rgba(0, 0, 0, 0.5);
    margin-top: 16px;
    letter-spacing: 2px;
    animation: textPop 1.8s ease forwards;
}

@keyframes textPop {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    25% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mascot avatar: seviye renk sınıfları */
.mascot-lv0 {
    filter: drop-shadow(0 5px 10px rgba(200, 180, 130, 0.6));
}

.mascot-lv1 {
    filter: drop-shadow(0 5px 12px rgba(255, 220, 50, 0.7));
}

.mascot-lv2 {
    filter: drop-shadow(0 5px 14px rgba(255, 200, 0, 0.8));
}

.mascot-lv3 {
    filter: drop-shadow(0 5px 16px rgba(255, 140, 0, 0.8));
}

.mascot-lv4 {
    filter: drop-shadow(0 5px 18px rgba(220, 50, 50, 0.8));
}

.mascot-lv5 {
    filter: drop-shadow(0 0 24px rgba(160, 80, 255, 1)) brightness(1.15);
}

/* --- Özellik 3: Boss Zor Mod tuşları --- */
/* 8 tuş için grid genişler */
.type-keyboard.boss-hard .type-key-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

/* ========================================= */
/* --- DARK MODE ---                         */
/* ========================================= */

body.type-dark-mode {
    background: linear-gradient(135deg, #1e1e2f 0%, #0d0d1a 100%) !important;
}

body.type-dark-mode .type-card {
    background: rgba(30, 30, 45, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

body.type-dark-mode .type-logo {
    text-shadow: 0 3px 0 #000;
}

body.type-dark-mode .type-top-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.type-dark-mode .type-word-target {
    color: #b388ff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

body.type-dark-mode .type-progress-row {
    color: #90caf9;
    background: rgba(0, 0, 0, 0.3);
}

body.type-dark-mode .type-slot {
    background: #2a2a40;
    border-bottom: 4px solid #1a1a2e;
    color: #94a3b8;
}

body.type-dark-mode .type-slot.filled {
    background: linear-gradient(135deg, #00bfa5, #00897b);
    color: white;
    border-bottom-color: #004d40;
}

body.type-dark-mode .type-key-btn {
    background: linear-gradient(to bottom, #3b3b54, #2a2a40);
    box-shadow: 0 5px 0 #1a1a2e;
    color: #e2e8f0;
}

body.type-dark-mode .type-key-btn:active {
    box-shadow: 0 0 0 #1a1a2e;
}

body.type-dark-mode .type-key-btn.wrong {
    background: linear-gradient(to bottom, #d32f2f, #b71c1c);
    color: #ffebee;
    box-shadow: 0 5px 0 #7f0000;
}

body.type-dark-mode .type-stat-box {
    background: rgba(40, 40, 60, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

body.type-dark-mode .type-stat-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.type-dark-mode .type-list-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

body.type-dark-mode .type-pop-msg {
    background: linear-gradient(to bottom, #fff, #b388ff);
    -webkit-background-clip: text;
    background-clip: text;
}