* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    overflow: hidden;
    font-size: 32px;
    color: #ffffff;
    -webkit-user-select: none;
    user-select: none;
    letter-spacing: 0.525px;
    font-weight: 400;
    -webkit-text-stroke: 0px currentColor;
    zoom: 1.05;
}

#volume-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

#music-toggle {
    width: 60px;
    height: 60px;
    border-radius: 0;
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

#music-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.5);
    transition: all 0.15s ease;
}

#music-toggle.muted {
    opacity: 0.5;
}

#music-toggle.syllables-theme {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%) !important;
    border: 2px solid #FFA500 !important;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4) !important;
}

#music-toggle.syllables-theme:hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFD93D 100%) !important;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6) !important;
}

#volume-slider {
    width: 120px;
    height: 8px;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
    outline: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#volume-control:hover #volume-slider {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sponsor-images {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 1;
}

.sponsor-link {
    position: relative;
    display: block;
}

.sponsor-link::before {
    content: attr(data-name);
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 2;
    white-space: nowrap;
}

.sponsor-link::after {
    content: 'საიტის სპონსორი';
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sponsor-link[data-name="REIJEI"]::after,
.sponsor-link[data-name="FreshFlex"]::after {
    content: 'დეველოპერი';
}

.sponsor-link:hover::after {
    opacity: 1;
}

.floating-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 4px solid rgba(255,255,255,1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.floating-img-1,
.floating-img-2,
.floating-img-3 {
    animation: idleFloat1 6s ease-in-out infinite;
}

@keyframes idleFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-8px) translateX(3px); }
    50% { transform: translateY(-5px) translateX(-3px); }
    75% { transform: translateY(-10px) translateX(2px); }
}

@keyframes idleFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-6px) translateX(-3px); }
    50% { transform: translateY(-10px) translateX(3px); }
    75% { transform: translateY(-4px) translateX(-2px); }
}

@keyframes idleFloat3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-7px) translateX(2px); }
    50% { transform: translateY(-9px) translateX(-2px); }
    75% { transform: translateY(-5px) translateX(3px); }
}

.sponsor-link:nth-child(1):hover::before,
.sponsor-link:nth-child(2):hover::before,
.sponsor-link:nth-child(3):hover::before {
    animation: idleFloat1 6s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-15px) translateX(5px); }
    50% { transform: translateY(-10px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(3px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(-5px); }
    50% { transform: translateY(-18px) translateX(5px); }
    75% { transform: translateY(-8px) translateX(-3px); }
}

@keyframes float1Text {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) translateX(0); }
    25% { transform: translate(-50%, -50%) translateY(-15px) translateX(5px); }
    50% { transform: translate(-50%, -50%) translateY(-10px) translateX(-5px); }
    75% { transform: translate(-50%, -50%) translateY(-20px) translateX(3px); }
}

@keyframes float2Text {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) translateX(0); }
    25% { transform: translate(-50%, -50%) translateY(-10px) translateX(-5px); }
    50% { transform: translate(-50%, -50%) translateY(-18px) translateX(5px); }
    75% { transform: translate(-50%, -50%) translateY(-8px) translateX(-3px); }
}

.floating-img {
    transition: all 0.4s ease;
}

.sponsor-link:hover::before {
    opacity: 1;
}

.sponsor-link:hover .floating-img {
    filter: brightness(0.4);
}

.floating-img:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(102,126,234,0.6);
    border-color: rgba(255,255,255,0.8);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.container {
    text-align: center;
    padding: 0;
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main-menu .container {
    align-items: center;
    margin-top: -80px;
}

.gif-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/your-background.gif') center center / cover no-repeat;
    z-index: 1;
}

.gif-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,12,41,0.7) 0%, rgba(48,43,99,0.7) 50%, rgba(36,36,62,0.7) 100%);
}

.main-title {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    color: white;
    text-shadow: 0 0 20px rgba(102,126,234,0.8), 0 0 40px rgba(118,75,162,0.6), 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: 3px;
    animation: titleGlow 1s ease-in-out infinite alternate, titleFloat 3s ease-in-out infinite;
    text-align: center;
}

.shuffle-parent {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    will-change: transform;
    line-height: 1;
    font-size: 4rem;
    font-family: 'Press Start 2P', sans-serif;
    text-transform: uppercase;
    visibility: hidden;
}

.shuffle-parent.is-ready {
    visibility: visible;
}

.shuffle-char-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: baseline;
    position: relative;
}

.shuffle-char-wrapper > span {
    display: inline-flex;
    will-change: transform;
}

.shuffle-char {
    line-height: 1;
    display: inline-block;
    text-align: center;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(102,126,234,0.8), 0 0 40px rgba(118,75,162,0.6), 2px 2px 4px rgba(0,0,0,0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(102,126,234,1), 0 0 60px rgba(118,75,162,0.8), 2px 2px 4px rgba(0,0,0,0.5);
    }
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.subtitle {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: #d3d3d3;
    text-shadow: 0 2px 10px rgba(211,211,211,0.3);
    margin-bottom: 2rem;
    font-weight: 600;
    animation: subtitlePulse 2.5s ease-in-out infinite;
    text-align: center;
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
    color: #ffffff;
    font-weight: 700;
}

.game-card h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.7rem !important;
    font-weight: 700 !important;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 8px;
    text-transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    position: relative;
    overflow: visible;
    display: inline-block;
    width: auto;
    white-space: nowrap;
    line-height: 1.5;
    -webkit-user-select: none;
    user-select: none;
}



.btn.primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
}

.btn.secondary {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border: 2px solid #6c757d;
}

.btn.small {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 5px;
}

.game-card .btn.small {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
}

.btn:hover,
.btn:active {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

#main-menu .btn {
    font-size: 1.2rem;
    padding: 16px 32px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#game-selection {
    background: linear-gradient(135deg, rgba(15,12,41,0.7) 0%, rgba(48,43,99,0.7) 50%, rgba(36,36,62,0.7) 100%), url('images/your-background.gif') center center / cover no-repeat;
    overflow-y: auto;
}

#game-area {
    background: url('images/your-background.gif') center center / cover no-repeat;
    position: relative;
    overflow-y: auto;
}

#game-area:has(.game-end) {
    overflow: hidden;
}

#game-area .container,
#game-area .game-header,
#game-area #game-content {
    position: relative;
}

#game-selection .container {
    padding-top: 100px;
}

#game-selection h2 {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 9999;
    text-shadow: 0 0 20px rgba(102,126,234,0.8), 0 0 40px rgba(118,75,162,0.6), 2px 2px 4px rgba(0,0,0,0.5);
    animation: titleGlow 1s ease-in-out infinite alternate;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
    margin-top: -60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    margin-bottom: 20px;
}

.game-card {
    background: linear-gradient(135deg, rgba(45,45,45,0.98) 0%, rgba(35,35,35,0.95) 100%);
    border-radius: 0;
    padding: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.3);
    border: none;
    position: relative;
    min-height: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.completion-mark {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: #28a745;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #1e7e34, 0 6px 15px rgba(40,167,69,0.4);
    animation: checkmarkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: white;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.game-card.movie-card {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/movies-div.jpg') center center / cover no-repeat;
    position: relative;
}

.game-card.series-card {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/series-div.jpg') center center / cover no-repeat;
    position: relative;
}

.game-card.cartoon-card {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/cartoon-div.jpg') center center / cover no-repeat;
    position: relative;
}

.game-card.syllables-card {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%);
    box-shadow: 0 0 25px rgba(255,165,0,0.6), 0 10px 30px rgba(0,0,0,0.3);
}

.game-card.syllables-card h3,
.game-card.syllables-card p {
    color: #000000;
}

.game-card.question-card {
    background: linear-gradient(135deg, #d8b5ff 0%, #c89eff 100%);
    border: 2px solid #b388ff;
}

.game-card.question-card h3 {
    color: #000000;
}

.game-card.question-card p {
    color: #000000;
}



.game-card.logic-card {
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
    box-shadow: 0 0 25px rgba(40,167,69,0.6), 0 10px 30px rgba(0,0,0,0.3);
}

.game-card.logic-card h3,
.game-card.logic-card p {
    color: #000000;
}

.game-card.logic-card svg {
    fill: #000000;
}

.game-card.completed {
    box-shadow: 0 0 30px rgba(40,167,69,0.8), 0 10px 30px rgba(0,0,0,0.3) !important;
}



.game-card:hover,
.game-card:active {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 30px rgba(0,0,0,0.9), 0 15px 40px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.game-card.syllables-card:hover {
    box-shadow: 0 0 35px rgba(255,165,0,0.8), 0 15px 40px rgba(0,0,0,0.4);
}

.game-card.logic-card:hover {
    box-shadow: 0 0 35px rgba(40,167,69,0.8), 0 15px 40px rgba(0,0,0,0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.game-card .btn.small {
    margin-top: auto;
    flex-shrink: 0;
}

.game-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    height: 100px;
    position: relative;
    gap: 30px;
}

.score {
    background: #dc3545;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 0 #c82333, 0 6px 15px rgba(220, 53, 69, 0.4);
    border: none;
    display: inline-block;
    width: auto;
    animation: pulse 2s ease-in-out infinite;
}

.score.syllables-theme {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%) !important;
    border: 2px solid #FFA500 !important;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4) !important;
    color: #000000 !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.home-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 2px solid #dc3545;
    border-radius: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: fixed;
    left: 40px;
    top: 20px;
    z-index: 10000;
}

.home-btn-top {
    top: 20px;
    left: 20px;
    transform: none;
}

.home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.5);
    transition: all 0.15s ease;
}

.home-btn.syllables-theme {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%) !important;
    border: 2px solid #FFA500 !important;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4) !important;
    color: white !important;
}

.home-btn.syllables-theme svg {
    color: white !important;
    fill: white !important;
}

.home-btn.syllables-theme svg path {
    fill: white !important;
}

.home-btn.syllables-theme:hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFD93D 100%) !important;
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6) !important;
}

.home-btn-top:hover {
    transform: translateY(-2px);
}

#game-content {
    background: linear-gradient(135deg, rgba(30,30,30,0.98) 0%, rgba(40,40,40,0.96) 100%);
    border-radius: 0;
    padding: 40px;
    margin: 0;
    margin-top: -100px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: none;
    border: none;
    overflow: hidden;
    height: calc(100vh - 180px);
    padding-top: 20px;
}

#game-content:has(.syllable-puzzle-game-new) {
    background: transparent !important;
    padding: 0 !important;
    height: 100vh !important;
}

.game-controls {
    padding: 20px 40px;
    height: 80px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.question-container, .guess-container, .syllables-container {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.question-game {
    display: flex;
    gap: 40px;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
    justify-content: center;
    margin-top: 0;
}

.question-left {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.question-right {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.round-counter {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 0 #c82333, 0 6px 15px rgba(220, 53, 69, 0.4);
    border: none;
    width: auto;
    animation: pulse 2s ease-in-out infinite;
}



.question-text {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.6;
    font-weight: 600;
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.answers-vertical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.answer-btn-vertical {
    padding: 20px 28px;
    border: none;
    border-radius: 0;
    background: #2d2d2d;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2rem;
    font-weight: 600;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 0 #1a1a1a, 0 8px 20px rgba(0,0,0,0.4);
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    justify-content: flex-start;
    position: relative;
}

.question-game .answer-btn-vertical {
    padding: 0 28px 0 0;
    gap: 15px;
    min-height: 90px;
}

.answer-letter {
    background: #dc3545;
    color: white;
    font-weight: 900;
    padding: 0 8px;
    border-radius: 0;
    flex-shrink: 0;
    box-shadow: 0 3px 0 #c82333, 0 4px 8px rgba(220,53,69,0.4);
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    letter-spacing: 1px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    align-self: stretch;
}

.question-game .answer-letter {
    align-self: stretch;
    padding: 0;
    min-width: 60px;
    user-select: none;
    -webkit-text-stroke: 0px currentColor;
    pointer-events: all;
    cursor: pointer;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.answer-btn-vertical:hover:not(:disabled) {
    background: #3d3d3d;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #1a1a1a, 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.15s ease;
}

.answer-btn-vertical:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #1a1a1a, 0 6px 15px rgba(0,0,0,0.3);
}

.answer-btn-vertical.correct {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    border-color: #00b894;
    color: white;
    animation: correctAnim 0.5s ease;
}

.answer-btn-vertical.incorrect {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    border-color: #d63031;
    color: white;
    animation: shake 0.5s ease;
}

.year-box {
    position: absolute;
    top: -15px;
    right: 0;
    background: #dc3545;
    color: white;
    padding: 6px 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    min-width: 60px;
    text-align: center;
}

.question-image {
    width: 100%;
    height: 100%;
    max-height: 75vh;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 3px solid #dc3545;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@keyframes correctAnim {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.hint {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
    background: #FFD93D;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 6px 0 #FFC300, 0 8px 20px rgba(255,193,7,0.4);
    font-weight: 700;
}

.movie-game {
    display: flex;
    gap: 40px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.movie-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: none;
    border-radius: 15px;
}

.movie-video {
    width: 1253px;
    height: 705px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: #000;
    border: none;
    transition: none;
    margin-top: 0;
}

.movie-video::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.movie-video::-webkit-media-controls-play-button,
.movie-video::-webkit-media-controls-timeline,
.movie-video::-webkit-media-controls-volume-slider,
.movie-video::-webkit-media-controls-mute-button,
.movie-video::-webkit-media-controls-fullscreen-button {
    filter: brightness(1.2);
}

.movie-video:hover {
    box-shadow: none !important;
}

.movie-header-info,
.logic-header-info,
.question-header-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.movie-header-info .round-counter,
.movie-header-info .score,
.logic-header-info .round-counter,
.logic-header-info .score,
.question-header-info .round-counter,
.question-header-info .score {
    font-size: 1.3rem;
    padding: 12px 24px;
    white-space: nowrap;
}

.answers-vertical-movie {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.answers-vertical-movie .answer-btn-vertical {
    font-size: 1.9rem;
    padding: 0 28px 0 0;
    gap: 15px;
    min-height: 105px;
}

.answer-btn-horizontal {
    padding: 18px 24px;
    border: none;
    border-radius: 0;
    background: #2d2d2d;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 0 #1a1a1a, 0 7px 18px rgba(0,0,0,0.4);
    transform: translateY(0);
}

.answer-btn-horizontal .answer-letter {
    background: #dc3545;
    color: white;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 0;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 3px 0 #c82333, 0 4px 8px rgba(220,53,69,0.4);
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    letter-spacing: 1px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-btn-horizontal:hover:not(:disabled) {
    background: #3d3d3d;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #1a1a1a, 0 9px 22px rgba(0,0,0,0.5);
    transition: all 0.15s ease;
}

.answer-btn-horizontal:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #1a1a1a, 0 5px 14px rgba(0,0,0,0.3);
}

.answer-btn-horizontal.correct {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    animation: correctAnim 0.5s ease;
}

.answer-btn-horizontal.incorrect {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    animation: shake 0.5s ease;
}

#movie-next-btn,
#next-btn {
    width: 100%;
    margin-top: 15px;
    padding: 18px 24px;
    font-size: 1.4rem;
}

#movie-next-btn:disabled,
#next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guess-input {
    padding: 18px;
    font-size: 1.3rem;
    border: none;
    border-radius: 0;
    margin: 10px;
    width: 350px;
    max-width: 90%;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 5px 0 #d0d0d0, 0 7px 18px rgba(0,0,0,0.3);
}

.guess-input:focus {
    outline: none;
    box-shadow: 0 5px 0 #d0d0d0, 0 7px 22px rgba(116,185,255,0.5);
}

.syllables {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.syllable {
    padding: 15px 25px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 3px solid #64b5f6;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 1.3rem;
    font-weight: 700;
}

.syllable:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    transform: translateY(-5px);
}

.syllable.selected {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f5576c;
    transform: scale(1.1);
}

.word-display {
    font-size: 2rem;
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(253,203,110,0.3);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 25px;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    max-height: 80vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #000000;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #b0b0b0;
    font-size: 1rem;
}

.about-section {
    margin-bottom: 12px;
    padding: 12px;
    background: #3d3d3d;
    border-radius: 10px;
    text-align: left;
}

.about-section p {
    margin: 0;
    color: #ffffff;
}

.about-section.warning {
    background: #3d3d3d;
    border-left: 4px solid #dc3545;
}

.about-section.warning p {
    color: #ffffff;
}

.option {
    margin: 20px 0;
    text-align: left;
}

.option label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.result {
    padding: 30px;
    border-radius: 20px;
    animation: resultFade 0.5s ease;
}

@keyframes resultFade {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(-20px) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-100px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }
}

.cat-bobbing-gif {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 600px;
    height: auto;
    z-index: 3;
    opacity: 0;
    filter: brightness(0.75);
}

.game-end {
    position: relative;
    z-index: 4;
    opacity: 0;
}

.game-end,
.game-end h2,
.game-end h3 {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.game-end h2,
.game-end h3 {
    padding: 10px 20px !important;
    margin: 10px 0 !important;
}

.game-end .btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: 2px solid #dc3545 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    padding: 14px 28px !important;
    margin: 10px 0 !important;
    border-radius: 0 !important;
}

.score-display {
    font-size: 3rem !important;
    color: #FFD93D !important;
    text-shadow: 0 0 20px rgba(255,217,61,0.8) !important;
}

.score-display * {
    color: #FFD93D !important;
}

.score-counter {
    display: inline-block;
    font-weight: 900;
    color: #FFD93D !important;
    text-shadow: 0 0 30px rgba(255,217,61,0.9);
    animation: scoreGlow 1.5s ease-in-out infinite;
}

@keyframes scoreGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-end-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,12,41,0.7) 0%, rgba(48,43,99,0.7) 50%, rgba(36,36,62,0.7) 100%);
    z-index: 0;
}

.game-end h2 {
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(102,126,234,0.8), 0 0 40px rgba(118,75,162,0.6);
    text-align: center;
    font-size: 3rem;
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.game-end h3 {
    font-size: 2.5rem;
    color: #FFD93D;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(255,217,61,0.8);
    text-align: center;
}

@keyframes scoreFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}



.game-end p {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    font-size: 1.5rem;
}



.syllable-puzzle-game-new {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 60px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/syllable-bg.jpg') center center / 105% no-repeat;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: hidden;
}

.syllable-puzzle-game-new ~ #game-content {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.syllable-puzzle-game-new ~ .game-header .home-btn {
    left: 140px;
}

.bubbles-background {
    display: none;
}

.bubble {
    display: none;
}

.bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 25%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    width: 100px;
    height: 100px;
    left: 40%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    width: 70px;
    height: 70px;
    left: 55%;
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 70%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    width: 50px;
    height: 50px;
    left: 85%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.bubble:nth-child(7) {
    width: 75px;
    height: 75px;
    left: 15%;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

.bubble:nth-child(8) {
    width: 65px;
    height: 65px;
    left: 90%;
    animation-duration: 14s;
    animation-delay: 4.5s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(50px) scale(1.1);
        opacity: 0.7;
    }
    100% {
        bottom: 110%;
        transform: translateX(-50px) scale(0.8);
        opacity: 0;
    }
}

.puzzle-questions,
.syllable-pool,
.game-controls-new {
    position: relative;
    z-index: 1;
}

.puzzle-questions {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.question-card {
    background: #FFEB3B;
    border-radius: 0;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.question-card.active-question {
    background: linear-gradient(180deg, #FFEB3B 0%, #FFC300 100%);
    border: 4px solid #000000;
    animation: strokeFade 3s ease-in-out infinite;
}

@keyframes strokeFade {
    0%, 100% { border-color: #000000; }
    50% { border-color: rgba(0, 0, 0, 0.5); }
}

.question-card.active-question .answer-box {
    animation: boxZoomTilt 0.4s ease-out forwards;
}

.question-card.active-question .answer-box:not(.filled) {
    animation: boxZoomTilt 0.4s ease-out forwards, gentleBounce 2s ease-in-out infinite 0.4s;
}

@keyframes boxZoomTilt {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1.05) rotate(0deg);
    }
}

@keyframes gentleBounce {
    0%, 100% { transform: scale(1.05) translateY(0); }
    50% { transform: scale(1.05) translateY(-5px); }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.question-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}

.question-card.correct {
    background: linear-gradient(180deg, #90EE90 0%, #32CD32 100%);
    animation: correctPulse 0.6s ease;
    transition: background 0.5s ease;
}

.question-card.correct .question-text::after {
    content: '✓';
    display: inline-block;
    margin-left: 15px;
    width: 40px;
    height: 40px;
    background: #28a745;
    border-radius: 0;
    box-shadow: 0 4px 0 #1e7e34, 0 6px 15px rgba(40, 167, 69, 0.4);
    animation: checkmarkPop 0.4s ease;
    position: relative;
    color: white;
    font-size: 28px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
}

.question-card.incorrect {
    background: linear-gradient(180deg, #ff7675 0%, #d63031 100%);
    animation: incorrectShake 0.5s ease;
    transition: background 0.5s ease;
}

.question-card.incorrect .question-text::after {
    content: '✗';
    display: inline-block;
    margin-left: 15px;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 900;
    background: #dc3545;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
    animation: checkmarkPop 0.4s ease;
}

@keyframes checkmarkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.question-card .question-text {
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000000;
    flex: 1;
    margin-right: 20px;
    text-align: left;
}

.answer-boxes {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.answer-box {
    min-width: 80px;
    width: 80px;
    height: 68px;
    background: #FFFFFF;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.question-card.active-question .answer-box {
    background: #FFFFFF;
}

.answer-box.filled {
    background: #FFEB3B;
    animation: boxPop 0.25s ease;
}

@keyframes boxPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.question-card:not(.correct) .answer-box:hover:not(.filled) {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
}

.syllable-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    padding: 10px 0;
}

.syllable-tile-new {
    padding: 15px 24px;
    background: #FFEB3B;
    color: #000000;
    border-radius: 0;
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.emoji-badge {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    animation: emojiSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), emojiFloat 2s ease-in-out infinite 0.8s;
    pointer-events: none;
}

@keyframes emojiSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(-50%) scale(0.5) rotate(-20deg);
    }
    60% {
        opacity: 1;
        transform: translateX(10px) translateY(-50%) scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(-50%) scale(1) rotate(0deg);
    }
}

@keyframes emojiFloat {
    0%, 100% {
        transform: translateX(0) translateY(-50%) scale(1);
    }
    50% {
        transform: translateX(0) translateY(-65%) scale(1.05);
    }
}

.syllable-tile-new:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.6), 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}

.syllable-tile-new.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.syllable-tile-new.used {
    opacity: 0.3;
    pointer-events: none;
}

.syllable-tile-new.selected-tile {
    transform: translateY(-8px) scale(1.2);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.8), 0 0 0 3px #FFA500;
    z-index: 10;
}

.game-controls-new {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin-top: 5px;
}

.control-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hint-btn-new {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: #000000;
}

.hint-btn-new.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shuffle-btn-new {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%);
    color: #000000;
}

.sort-btn-new {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%);
    color: #000000;
}

.check-btn-new {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
}

.control-btn:hover:not(.disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.15s ease;
}

.control-btn:active:not(.disabled) {
    transform: translateY(-1px) scale(1.02);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    font-size: 0.95rem;
}


.logic-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 100%;
    position: relative;
}

.logic-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px !important;
}

.logic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 15px 0;
}

.logic-tile {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
    animation: tileDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    overflow: hidden;
}

@keyframes tileDrop {
    0% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.logic-question {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 30px;
}

.logic-input-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logic-input {
    padding: 18px 30px;
    font-size: 1.5rem;
    border: 3px solid transparent;
    border-radius: 50px;
    width: 400px;
    max-width: 90%;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.logic-input:focus {
    outline: none;
    box-shadow: 0 5px 30px rgba(102,126,234,0.6);
}

.logic-input.correct-input {
    border-color: #28a745;
}

.input-checkmark {
    width: 50px;
    height: 50px;
    background: #28a745;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #1e7e34, 0 6px 15px rgba(40,167,69,0.4);
    animation: checkmarkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.input-checkmark svg {
    fill: white;
}

.logic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: 4px solid #000000;
}

.logic-tile.correct-tile .logic-img {
    border-color: #28a745;
}

.logic-tile.incorrect-tile .logic-img {
    border-color: #dc3545;
}

.logic-timer {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    background: #dc3545;
    padding: 12px 30px;
    border-radius: 0;
    box-shadow: 0 4px 0 #c82333, 0 6px 15px rgba(220, 53, 69, 0.4);
    display: inline-block;
    width: auto;
    position: static;
    margin-top: 15px;
    margin-bottom: 15px;
}

.logic-timer.timer-warning {
    animation: timerPulse 0.5s infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.round-counter {
    position: static;
}

.score {
    position: static;
}

.logic-input.incorrect-input {
    border-color: #dc3545;
    background: #ffebee;
    color: #dc3545;
}

.input-xmark {
    width: 50px;
    height: 50px;
    background: #dc3545;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #c82333, 0 6px 15px rgba(220, 53, 69, 0.4);
    animation: checkmarkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.input-xmark svg {
    fill: white;
}

.logic-hint {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%) !important;
    border: 2px solid #FFA500 !important;
    color: #000000 !important;
}

.logic-submit {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    border: 2px solid #28a745 !important;
    color: #ffffff !important;
}

.logic-skip {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: 2px solid #dc3545 !important;
    color: #ffffff !important;
}

.logic-lives {
    font-size: 1.5rem;
    font-weight: 900;
    color: #dc3545;
    background: #ffebee;
    padding: 10px 20px;
    border-radius: 0;
    box-shadow: 0 4px 0 #c82333, 0 6px 15px rgba(220, 53, 69, 0.4);
    animation: checkmarkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logic-progress {
    width: 500px;
    max-width: 90%;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.logic-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #55efc4 100%);
    transition: width 0.5s ease;
    border-radius: 20px;
}

.logic-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.logic-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.95);
    padding: 40px 60px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: feedbackPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

@keyframes feedbackPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.logic-feedback.correct {
    border: 4px solid #28a745;
}

.logic-feedback.incorrect {
    border: 4px solid #dc3545;
}

.feedback-icon {
    font-size: 4rem;
    font-weight: 900;
}

.logic-feedback.correct .feedback-icon {
    color: #28a745;
}

.logic-feedback.incorrect .feedback-icon {
    color: #dc3545;
}

.feedback-text {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}


.logic-chances {
    font-size: 1.8rem;
    font-weight: 900;
    color: #dc3545;
    margin-top: 10px;
}

.logic-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.logic-box {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    font-family: 'BPG ExtraSquare Mtavruli', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logic-box.active {
    box-shadow: 0 0 0 4px #FFD93D;
}

.logic-box.filled {
    background: #e3f2fd;
    animation: boxPop 0.3s ease;
}

.logic-box.correct-box {
    background: #28a745;
    color: white;
}

.logic-box.incorrect-box {
    background: #dc3545;
    color: white;
}

.logic-box.hint-box {
    background: #FFD93D;
    color: #000000;
}

.help-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255,140,0,0.6);
    transition: all 0.15s ease;
}

@keyframes fadeUpOut {
    0% {
        opacity: 1;
        transform: translateY(-50%);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.logic-tile.correct-tile {
    border: 4px solid #28a745;
    box-shadow: 0 0 30px rgba(40, 167, 69, 0.8), 0 0 60px rgba(40, 167, 69, 0.5), 0 10px 30px rgba(102,126,234,0.4);
    animation: greenGlow 1.5s ease-in-out infinite;
}

@keyframes greenGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.8), 0 0 60px rgba(40, 167, 69, 0.5), 0 10px 30px rgba(102,126,234,0.4);
        border-color: #28a745;
    }
    50% {
        box-shadow: 0 0 50px rgba(40, 167, 69, 1), 0 0 100px rgba(40, 167, 69, 0.7), 0 10px 30px rgba(102,126,234,0.4);
        border-color: #55efc4;
    }
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-top: 8px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.category-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 -5px 0;
    text-align: left;
    text-shadow: none;
    grid-column: 1 / -1;
    padding: 8px 16px;
    background: #dc3545;
    box-shadow: 0 0 20px rgba(220,53,69,0.6), 0 4px 15px rgba(0,0,0,0.3);
    border: none;
    border-radius: 0;
    width: fit-content;
}

@keyframes slideInFromRight {
    0% {
        right: -150px;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    25% {
        right: 20px;
    }
    75% {
        right: 20px;
    }
    85% {
        opacity: 1;
    }
    100% {
        right: -150px;
        opacity: 0;
    }
}



/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    body { zoom: 1.1; }
    .games-grid { max-width: 1600px; gap: 20px 25px; }
    .logic-tile { width: 500px; height: 500px; }
}

/* Desktop (1200px - 1919px) */
@media (max-width: 1919px) and (min-width: 1200px) {
    body { zoom: 1; }
    .logic-tile { width: 400px; height: 400px; }
}

/* Tablet Landscape & Small Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    body { zoom: 0.95; font-size: 28px; }
    
    .sponsor-images { left: 15px; gap: 20px; }
    .floating-img { width: 120px; height: 120px; }
    
    .games-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; gap: 15px; }
    .game-card { min-height: 280px; height: 280px; padding: 25px; }
    
    .logic-tile { width: 350px; height: 350px; }
    .logic-grid { gap: 20px; }
    .logic-question { font-size: 1.5rem; }
    .logic-box { width: 60px; height: 60px; font-size: 1.8rem; }
    
    .question-text { font-size: 2rem; }
    .answer-btn-vertical { font-size: 1.6rem; min-height: 75px; }
    .movie-video { height: 70vh; max-height: 70vh; }
    
    .question-card .question-text { font-size: 1.7rem; }
    .answer-box { min-width: 75px; width: 75px; height: 65px; font-size: 1.4rem; }
    .syllable-tile-new { padding: 12px 20px; font-size: 1.6rem; }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    body { zoom: 0.85; font-size: 24px; overflow-y: auto; }
    
    #volume-control { top: 10px; right: 10px; }
    #music-toggle { width: 50px; height: 50px; }
    #volume-slider { width: 100px; }
    
    .sponsor-images { display: none !important; }
    
    .home-btn { width: 50px; height: 50px; left: 10px; top: 10px; }
    
    .main-title { font-size: clamp(2.5rem, 6vw, 4rem); }
    .subtitle { font-size: clamp(1.2rem, 3vw, 1.8rem); }
    
    .games-grid { grid-template-columns: 1fr; max-width: 500px; padding: 10px; margin-top: 80px; }
    .game-card { min-height: 250px; height: auto; padding: 20px; }
    .card-icon { font-size: 2.5rem; margin-bottom: 10px; }
    .game-card h3 { font-size: 1.2rem !important; }
    .game-card p { font-size: 0.9rem; }
    
    .question-game, .movie-game { flex-direction: column; gap: 20px; }
    .question-left, .movie-left { flex: 1; width: 100%; }
    .question-right, .movie-right { flex: 1; width: 100%; max-width: 100%; }
    
    .question-text { font-size: 1.5rem; }
    .answers-vertical { grid-template-columns: 1fr; gap: 15px; }
    .answer-btn-vertical { font-size: 1.3rem; min-height: 65px; padding: 0 20px 0 0; }
    .answer-letter { min-width: 50px; font-size: 1.1rem; }
    .year-box { font-size: 0.9rem; padding: 4px 10px; min-width: 50px; }
    
    .movie-video { height: 50vh; max-height: 50vh; margin-top: 20px; }
    .answers-vertical-movie { gap: 15px; }
    .answers-vertical-movie .answer-btn-vertical { font-size: 1.3rem; min-height: 65px; }
    
    .logic-grid { grid-template-columns: 1fr; gap: 15px; }
    .logic-tile { width: 100%; max-width: 400px; height: 300px; }
    .logic-question { font-size: 1.3rem; margin-top: 20px; }
    .logic-boxes { gap: 8px; flex-wrap: wrap; }
    .logic-box { width: 55px; height: 55px; font-size: 1.6rem; }
    .logic-buttons { gap: 10px; margin-top: 10px; }
    .logic-chances { font-size: 1.5rem; }
    
    .puzzle-questions { gap: 6px; }
    .question-card { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
    .question-card .question-text { font-size: 1.4rem; margin-right: 0; margin-bottom: 10px; }
    .answer-boxes { gap: 8px; width: 100%; justify-content: flex-start; }
    .answer-box { min-width: 70px; width: 70px; height: 60px; font-size: 1.3rem; }
    .syllable-pool { gap: 10px; }
    .syllable-tile-new { padding: 10px 18px; font-size: 1.4rem; }
    .game-controls-new { gap: 8px; flex-wrap: wrap; }
    .control-btn { padding: 12px 18px; font-size: 1rem; }
    
    .movie-header-info, .logic-header-info, .question-header-info { 
        flex-direction: column; 
        gap: 10px; 
        top: 10px;
    }
    .movie-header-info .round-counter, .movie-header-info .score,
    .logic-header-info .round-counter, .logic-header-info .score,
    .question-header-info .round-counter, .question-header-info .score { 
        font-size: 1rem; 
        padding: 8px 16px; 
    }
    
    #game-content { padding: 20px; height: auto; min-height: calc(100vh - 100px); }
    .game-header { padding: 15px 20px; height: auto; min-height: 70px; }
    
    .cat-bobbing-gif { width: 300px; }
    .game-end h2 { font-size: 2rem; }
    .score-display { font-size: 2rem !important; }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    body { zoom: 0.75; font-size: 20px; }
    
    #volume-control { top: 8px; right: 8px; }
    #music-toggle { width: 45px; height: 45px; }
    
    .home-btn { width: 45px; height: 45px; left: 8px; top: 8px; }
    
    .main-title { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 1px; }
    .subtitle { font-size: clamp(1rem, 2.5vw, 1.5rem); margin-bottom: 1.5rem; }
    
    h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
    
    .btn { padding: 12px 24px; font-size: 1rem; margin: 6px; }
    #main-menu .btn { font-size: 1.1rem; padding: 14px 28px; }
    
    .games-grid { max-width: 100%; padding: 8px; margin-top: 70px; }
    .game-card { padding: 18px; }
    .card-icon { font-size: 2rem; }
    .game-card h3 { font-size: 1.1rem !important; }
    .game-card p { font-size: 0.85rem; }
    .game-card .btn.small { padding: 8px 16px; font-size: 0.9rem; }
    
    .question-text { font-size: 1.3rem; margin-bottom: 15px; }
    .answers-vertical { gap: 12px; }
    .answer-btn-vertical { font-size: 1.1rem; min-height: 55px; padding: 0 15px 0 0; }
    .answer-letter { min-width: 45px; font-size: 1rem; }
    .year-box { font-size: 0.8rem; padding: 3px 8px; min-width: 45px; }
    
    .movie-video { height: 40vh; max-height: 40vh; }
    .answers-vertical-movie .answer-btn-vertical { font-size: 1.1rem; min-height: 55px; }
    
    .logic-tile { max-width: 350px; height: 250px; }
    .logic-question { font-size: 1.1rem; }
    .logic-box { width: 50px; height: 50px; font-size: 1.4rem; }
    .logic-buttons .btn { padding: 10px 18px; font-size: 0.95rem; }
    
    .question-card .question-text { font-size: 1.2rem; }
    .answer-box { min-width: 60px; width: 60px; height: 50px; font-size: 1.1rem; }
    .syllable-tile-new { padding: 8px 15px; font-size: 1.2rem; }
    .control-btn { padding: 10px 15px; font-size: 0.9rem; }
    .btn-text { font-size: 0.85rem; }
    
    .modal-content { max-width: 90%; padding: 20px; }
    .modal-content h3 { font-size: 1.3rem; }
    .modal-content p { font-size: 0.9rem; }
    
    .cat-bobbing-gif { width: 250px; }
    .game-end h2 { font-size: 1.8rem; }
    .score-display { font-size: 1.8rem !important; }
}

/* Mobile Portrait (320px - 575px) */
@media (max-width: 575px) {
    body { zoom: 0.7; font-size: 18px; }
    
    #volume-control { top: 5px; right: 5px; }
    #music-toggle { width: 40px; height: 40px; }
    #volume-slider { width: 80px; }
    
    .home-btn { width: 40px; height: 40px; left: 5px; top: 5px; }
    
    .main-title { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
    .subtitle { font-size: clamp(0.9rem, 2vw, 1.2rem); }
    
    .menu-buttons { gap: 15px; }
    .btn { padding: 10px 20px; font-size: 0.9rem; margin: 5px; }
    #main-menu .btn { font-size: 1rem; padding: 12px 24px; }
    
    .games-grid { padding: 5px; margin-top: 60px; gap: 10px; }
    .game-card { padding: 15px; min-height: 220px; }
    .card-icon { font-size: 1.8rem; margin-bottom: 8px; }
    .game-card h3 { font-size: 1rem !important; margin-bottom: 0.5rem !important; }
    .game-card p { font-size: 0.8rem; margin-bottom: 15px; }
    .game-card .btn.small { padding: 7px 14px; font-size: 0.85rem; }
    
    .game-header { padding: 10px 15px; flex-wrap: wrap; gap: 10px; }
    .round-counter, .score { font-size: 0.9rem; padding: 8px 15px; }
    
    #game-content { padding: 15px; }
    
    .question-text { font-size: 1.1rem; }
    .answers-vertical { gap: 10px; }
    .answer-btn-vertical { font-size: 1rem; min-height: 50px; padding: 0 12px 0 0; gap: 10px; }
    .answer-letter { min-width: 40px; font-size: 0.9rem; }
    .year-box { font-size: 0.75rem; padding: 3px 6px; min-width: 40px; }
    
    .movie-video { height: 35vh; max-height: 35vh; }
    .answers-vertical-movie { gap: 10px; }
    .answers-vertical-movie .answer-btn-vertical { font-size: 1rem; min-height: 50px; }
    
    .logic-tile { max-width: 300px; height: 200px; }
    .logic-grid { gap: 10px; }
    .logic-question { font-size: 1rem; margin-top: 15px; margin-bottom: 10px; }
    .logic-boxes { gap: 6px; }
    .logic-box { width: 45px; height: 45px; font-size: 1.2rem; }
    .logic-buttons { gap: 8px; flex-direction: column; width: 100%; max-width: 300px; }
    .logic-buttons .btn { width: 100%; padding: 10px 15px; font-size: 0.9rem; }
    .logic-chances { font-size: 1.3rem; }
    
    .movie-header-info, .logic-header-info, .question-header-info { top: 5px; }
    .movie-header-info .round-counter, .movie-header-info .score,
    .logic-header-info .round-counter, .logic-header-info .score,
    .question-header-info .round-counter, .question-header-info .score { 
        font-size: 0.9rem; 
        padding: 6px 12px; 
    }
    
    .syllable-puzzle-game-new { padding: 10px; padding-top: 50px; gap: 8px; }
    .puzzle-questions { gap: 5px; }
    .question-card { padding: 10px 12px; }
    .question-card .question-text { font-size: 1rem; }
    .answer-boxes { gap: 6px; flex-wrap: wrap; }
    .answer-box { min-width: 50px; width: 50px; height: 45px; font-size: 1rem; }
    .syllable-pool { gap: 8px; padding: 8px 0; }
    .syllable-tile-new { padding: 8px 12px; font-size: 1.1rem; }
    .game-controls-new { gap: 6px; }
    .control-btn { padding: 8px 12px; font-size: 0.85rem; }
    .btn-icon { width: 18px; height: 18px; }
    .btn-text { font-size: 0.8rem; }
    
    .modal-content { padding: 18px; }
    .modal-content h3 { font-size: 1.2rem; margin-bottom: 12px; }
    .modal-content p { font-size: 0.85rem; }
    .about-section { padding: 10px; margin-bottom: 10px; }
    
    .cat-bobbing-gif { width: 200px; }
    .game-end { margin-top: -50px; }
    .game-end h2 { font-size: 1.5rem; margin-bottom: 15px; }
    .game-end h3, .score-display { font-size: 1.5rem !important; }
    .game-end .btn { padding: 10px 20px; font-size: 0.9rem; }
    
    .category-title { font-size: 1.1rem; padding: 6px 12px; }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
    body { zoom: 0.65; font-size: 16px; }
    
    .main-title { font-size: clamp(1.5rem, 4vw, 2rem); }
    .subtitle { font-size: clamp(0.8rem, 1.8vw, 1rem); }
    
    .game-card { min-height: 200px; padding: 12px; }
    .card-icon { font-size: 1.5rem; }
    .game-card h3 { font-size: 0.95rem !important; }
    .game-card p { font-size: 0.75rem; }
    
    .logic-tile { max-width: 250px; height: 180px; }
    .logic-box { width: 40px; height: 40px; font-size: 1.1rem; }
    
    .answer-box { min-width: 45px; width: 45px; height: 40px; font-size: 0.95rem; }
    .syllable-tile-new { padding: 6px 10px; font-size: 1rem; }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    body { overflow-y: auto; }
    
    .screen { height: auto; min-height: 100vh; }
    .container { height: auto; min-height: 100vh; padding: 20px 0; }
    
    .main-title { font-size: clamp(2rem, 4vh, 3rem); margin-bottom: 0.5rem; }
    .subtitle { font-size: clamp(1rem, 2vh, 1.5rem); margin-bottom: 1rem; }
    
    .menu-buttons { gap: 10px; }
    .btn { padding: 8px 16px; }
    
    .game-header { height: auto; padding: 10px 20px; }
    #game-content { height: auto; min-height: 60vh; padding: 20px; }
    
    .logic-tile { height: 250px; }
    .movie-video { height: 50vh; max-height: 50vh; }
    
    .cat-bobbing-gif { width: 200px; }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .answer-btn-vertical, .answer-btn-horizontal, .syllable-tile-new, 
    .control-btn, .game-card, .home-btn, #music-toggle {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .btn:active, .answer-btn-vertical:active, .game-card:active {
        transform: scale(0.98);
    }
    
    .syllable-tile-new:active {
        transform: scale(0.95);
    }
}

/* Print Styles */
@media print {
    body { zoom: 1; }
    #volume-control, .home-btn, .sponsor-images, .game-controls-new { display: none !important; }
    .screen { position: relative; height: auto; }
}

.explanation-section {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC300 100%);
    padding: 20px 25px;
    border-radius: 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 6px 0 #FFA500, 0 8px 20px rgba(255,193,7,0.4);
    animation: slideInUp 0.5s ease;
}

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

.explanation-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.explanation-text {
    font-size: 1.3rem;
    color: #000000;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}
