.modes-css-debug {
    --debug: "modes.css active";
}
.mode-normal {
    --mode-color: #4CAF50;
}
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card {
    animation: cardEntrance 0.3s ease-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.shake {
    animation: shake 0.5s;
}
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes floatingLetters {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.3;
    }
}
.mode-speed .timers-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}
.mode-speed .word-timer {
    transform: scale(0.8);
}
.mode-speed .word-timer .timer-label {
    font-size: 0.8em;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}
body {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: 'H A R F L Y';
    position: fixed;
    top: 10%;
    left: -10%;
    font-size: 8rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 2rem;
    animation: floatingLetters 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
body::after {
    content: 'K E L İ M E';
    position: fixed;
    bottom: 10%;
    right: -10%;
    font-size: 6rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: 1.5rem;
    animation: floatingLetters 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 1;
}
.game-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.found-words-container {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    height: 400px;
    overflow-y: auto;
}
.game-board {
    flex: 1; 
    max-width: 800px; 
}
.container {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}
.title {
    text-align: center;
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 40px;
    font-weight: 800;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}
.modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.mode-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}
.mode-card:hover::before {
    transform: translateX(100%);
}
.mode-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}
.mode-card h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.mode-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.mode-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.mode-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    body::before,
    body::after {
        font-size: 4rem;
        letter-spacing: 1rem;
    }
    .container {
        padding: 20px;
    }
    .title {
        font-size: 2.5rem;
    }
    .mode-card h2 {
        font-size: 1.5rem;
    }
    .game-container {
        margin-top: 10px !important;
        padding: 10px !important;
    }
    body {
        padding: 10px !important;
    }
}
@media (max-width: 576px) {
    body::before,
    body::after {
        display: none; 
    }
    .game-container {
        flex-direction: column;
        align-items: center;
        margin-top: 5px !important;
        padding: 5px !important;
    }
    body {
        padding: 5px !important;
    }
    .found-words-container {
        width: 100%;
        max-width: none;
        flex: none;
    }
    .game-board {
        max-width: 100%;
    }
    .mode-title {
        font-size: 2rem;
    }
    .cards-container {
    display: flex;
    justify-content: center;
    gap: 10px; 
}
.card {
    flex: 1 1 auto;
    max-width: 18%;           
    aspect-ratio: 2 / 3;      
    border-radius: 8px;
}
    .card-front span {
        font-size: 2.5rem;
    }
}
.mode-beslik {
    --mode-color: #9333EA; 
}
.mode-beslik .timers-wrapper {
    display: flex;
    justify-content: center;
}
.mode-beslik .word-timer {
    transform: scale(1); 
}
.mode-header {
    text-align: center;
    margin-bottom: 20px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10; 
}
.mode-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.5);
}
.mode-survivor {
    --mode-color: #FF4081;
}
.mode-survivor .found-words-container {
    display: block;
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    height: 400px;
    overflow-y: auto;
}