* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, rgba(180, 231, 248, 0.9) 0%, rgba(180, 248, 200, 0.9) 100%),
                url('assets/images/login-background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#gameScreen {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
}

/* Üst Bilgi Alanı */
.game-info {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* Skor Tabelası */
.score-board {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 12px 35px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2),
                inset 0 2px 4px rgba(255,255,255,0.3);
    border: 3px solid #ffffff80;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    position: relative;
    padding-left: 25px;
}

.score-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.score-item:first-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm.5-13H11v6l5.2 3.2.8-1.3-4.5-2.7V7z'/%3E%3C/svg%3E");
}

.score-item:last-child::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.score-divider {
    width: 3px;
    height: 35px;
    background: #ffffff40;
    border-radius: 10px;
}

.label {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.value {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 3px;
}

/* Geri Tuşu */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2000;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.back-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.back-button p {
    color: white;
    font-size: 1rem;
    font-family: 'Comic Sans MS', cursive;
    margin: 0.2rem 0;
}

.back-hint {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Düşen Atık */
.waste {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    pointer-events: none;
}

/* Geri Dönüşüm Kutuları */
.bins {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px;
    z-index: 10;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.bin {
    width: 207px;
    height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    padding-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(1.1);
    transform-origin: bottom;
    position: relative;
}

/* Kutu isimlerinin arka planı için yeni stil */
.bin[data-type="paper"]::after {
    content: "KAĞIT";
}

.bin[data-type="plastic"]::after {
    content: "PLASTİK";
}

.bin[data-type="glass"]::after {
    content: "CAM";
}

.bin[data-type="metal"]::after {
    content: "METAL";
}

.bin[data-type="organic"]::after {
    content: "ORGANİK";
}

.bin::after {
    text-transform: uppercase;
    position: absolute;
    bottom: 10px;
    padding: 5px 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    letter-spacing: 1px;
    font-family: 'Comic Sans MS', cursive;
    color: white;
    font-weight: bold;
}

/* hover efektini kaldırıp, atık düşünce aktif olacak class ekleyelim */
.bin-hit {
    transform: scale(1.1) translateY(-10px);
    filter: brightness(1.2) drop-shadow(0 15px 15px rgba(0,0,0,0.3));
    animation: binHitEffect 0.5s ease;
}

@keyframes binHitEffect {
    0% {
        transform: scale(1) translateY(0);
        filter: brightness(1.1) drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    }
    50% {
        transform: scale(1.1) translateY(-10px);
        filter: brightness(1.2) drop-shadow(0 15px 15px rgba(0,0,0,0.3));
    }
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1.1) drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    }
}

/* Kutu Görselleri */
.bin[data-type="paper"] { 
    background-image: url('assets/images/bins/paper-bin.png');
}

.bin[data-type="plastic"] { 
    background-image: url('assets/images/bins/plastic-bin.png');
}

.bin[data-type="glass"] { 
    background-image: url('assets/images/bins/glass-bin.png');
}

.bin[data-type="metal"] { 
    background-image: url('assets/images/bins/metal-bin.png');
}

.bin[data-type="organic"] { 
    background-image: url('assets/images/bins/organic-bin.png');
}

/* Giriş Ekranı */
#loginScreen {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2),
                inset 0 2px 4px rgba(255,255,255,0.3);
    border: 4px solid rgba(255,255,255,0.5);
    max-width: 900px;
    width: 95%;
    margin-top: 100px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.login-section {
    text-align: center;
    padding: 1rem;
}

.game-info-box {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.game-info-box h3 {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.game-info-box p {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Comic Sans MS', cursive;
}

.game-info-box ul {
    list-style: none;
    padding: 0;
}

.game-info-box li {
    color: white;
    font-size: 1rem;
    margin: 0.5rem 0;
    font-family: 'Comic Sans MS', cursive;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#loginScreen h1 {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    position: relative;
}

#loginScreen h1::after {
    content: '♻️';
    font-size: 2rem;
    position: absolute;
    top: -15px;
    right: -25px;
    transform: rotate(15deg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.form-group input, 
.form-group select {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 15px;
    outline: none;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: 'Comic Sans MS', cursive;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    background: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #666;
}

#startButton {
    padding: 15px 30px;
    font-size: 18px;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#startButton:hover {
    background: #FFC800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#startButton:active {
    transform: translateY(-1px);
}

/* Atık görselleri için stil */
.waste[data-type="paper"] {
    background-image: url('assets/waste/paper-waste.png');
}
.waste[data-type="plastic"] {
    background-image: url('assets/waste/plastic-waste.png');
}
.waste[data-type="glass"] {
    background-image: url('assets/waste/glass-waste.png');
}
.waste[data-type="metal"] {
    background-image: url('assets/waste/metal-waste.png');
}
.waste[data-type="organic"] {
    background-image: url('assets/waste/organic-waste.png');
}

/* Oyun Alanı */
#gameArea {
    width: 100%;
    height: 100vh;
    position: relative;
    /* techonc demo: var olmayan background.png kaldırıldı (404 üretiyordu);
       arka planı JS #gameScreen üzerinden seviyeye göre atıyor. */
    overflow: hidden;
}

.player-name {
    display: flex;
    align-items: center;
    min-width: 120px;
    position: relative;
    padding-left: 25px;
}

.player-name::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.player-name .value {
    color: #ffffff;
    font-size: 20px;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Ekran görünürlük kontrolü için */
.hidden {
    display: none !important;
}

/* Skor Ekranı */
#scoreScreen {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2),
                inset 0 2px 4px rgba(255,255,255,0.3);
    border: 4px solid rgba(255,255,255,0.5);
    max-width: 800px;
    width: 90%;
}

#scoreScreen h2 {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    position: relative;
}

#scoreScreen h2::after {
    content: '🏆';
    font-size: 2rem;
    position: absolute;
    top: -10px;
    right: -35px;
    transform: rotate(15deg);
}

#scoreScreen p {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1.8rem;
    margin: 1.5rem 0;
}

#finalScore {
    font-size: 3rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    margin: 0.5rem 0;
}

#highScores {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#highScores h3 {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#highScoresList {
    list-style: none;
    padding: 0;
}

#highScoresList li {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1.1rem;
    padding: 0.5rem;
    margin: 0.3rem 0;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#playAgain {
    padding: 15px 30px;
    font-size: 18px;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#playAgain:hover {
    background: #FFC800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#playAgain:active {
    transform: translateY(-1px);
}

/* Skor Tablosu Stilleri */
.top-scores, .recent-scores {
    margin: 1.5rem 0;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.top-scores h3, .recent-scores h3 {
    color: white;
    font-family: 'Comic Sans MS', cursive;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.top-score, .recent-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.top-score:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.15);
}

.rank {
    font-weight: bold;
    color: #FFD700;
    min-width: 40px;
}

.name {
    flex: 1;
    text-align: left;
    margin: 0 10px;
}

.score {
    font-weight: bold;
    color: #FFD700;
    margin: 0 10px;
}

.difficulty {
    font-size: 0.9em;
    opacity: 0.8;
}

.date {
    font-size: 0.8em;
    opacity: 0.7;
    min-width: 80px;
}

.game-result {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.scores-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
}

.top-scores, .recent-scores {
    flex: 1;
    margin: 0;
    padding: 1rem;
    min-width: 300px;
}

.scores-divider {
    width: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 1rem;
}

.top-score, .recent-score {
    font-size: 0.9rem;
    padding: 0.6rem;
    margin: 0.3rem 0;
}

.top-scores h3, .recent-scores h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.score-message {
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.final-score {
    font-size: 2.2rem;
    margin: 0.5rem 0;
}

.difficulty {
    font-size: 1rem;
    opacity: 0.9;
}

.lives {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    margin-left: 15px;
    font-family: 'Comic Sans MS', cursive;
    color: white;
    font-size: 1.2rem;
}

.lives-count {
    margin-left: 15px;
    font-size: 1.3em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Geri dönüşüm ikonunu büyütelim */
.lives-count::before {
    content: '♻️';
    font-size: 1.4em;
    margin-right: 2px;
}

/* Seviye göstergesi için özel stil */
#level {
    color: #FFD700;  /* Altın sarısı renk */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    animation: levelPulse 2s infinite;
}

@keyframes levelPulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Yeni logo kuralları */
.login-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo ile ilgili eski stilleri kaldır */
.logo-header,
.screen:not(#loginScreen):not(.hidden) ~ .logo-header,
.company-logo {
    display: none;
}

/* Seviye göstergesi için özel stil */
#level {
    color: #FFD700;  /* Altın sarısı renk */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    animation: levelPulse 2s infinite;
}

@keyframes levelPulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Eski logo kurallarını tamamen kaldıralım */
.logo-header,
.screen:not(#loginScreen):not(.hidden) ~ .logo-header {
    display: none;
}

/* Yeni logo kuralları */
.login-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    max-width: 150px;
    height: auto;
    display: block;
}

.credits-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.credits-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.credits-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.popup-content h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-family: 'Comic Sans MS', cursive;
}

.popup-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #333;
    font-family: 'Comic Sans MS', cursive;
}

.credits-text {
    font-weight: bold;
    color: #666;
}

.close-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    margin-top: 1rem;
}

.close-button:hover {
    background: #45a049;
}

/* Logo sadece login ekranında görünsün */
.screen:not(#loginScreen) .login-footer {
    display: none;
}

.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.pause-icon {
    font-size: 5rem;
    color: white;
    margin-bottom: 1rem;
}

.pause-overlay p {
    color: white;
    font-size: 1.5rem;
    font-family: 'Comic Sans MS', cursive;
    margin: 0.5rem 0;
}

.pause-hint {
    font-size: 1rem;
    opacity: 0.8;
}

.life-alert, .level-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    transform: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    animation: slideInRight 0.5s ease-out;
    z-index: 1000;
}

.alert-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
}

.recycle-icon, .level-icon {
    font-size: 2rem;
    color: white;
}

.alert-text {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.lives-left, .level-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.life-alert.hidden, .level-alert.hidden {
    animation: slideOutRight 0.5s ease-in forwards;
}

.obstacle {
    position: absolute;
    width: 80px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.1s ease;
}

.obstacle[data-direction="right"] {
    transform: scaleX(1);
}

.obstacle[data-direction="left"] {
    transform: scaleX(-1);
}

.bonus-life {
    background-color: rgba(76, 175, 80, 0.3) !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bonus-text {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-left: 5px;
}

.collision-effect {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: url('assets/images/boom.gif');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: boomEffect 0.6s ease-out forwards;
    z-index: 150;
    pointer-events: none;
    transform-origin: center;
}

@keyframes boomEffect {
    0% {
        transform: scale(0.2) rotate(-10deg);
        opacity: 0;
    }
    20% {
        transform: scale(1.2) rotate(10deg);
        opacity: 1;
    }
    80% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1.5) rotate(5deg);
        opacity: 0;
    }
}

.collision-freeze {
    animation: collisionShake 0.5s ease-in-out;
}

@keyframes collisionShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5px, -5px) rotate(-5deg); }
    50% { transform: translate(5px, 5px) rotate(5deg); }
    75% { transform: translate(-3px, 3px) rotate(-3deg); }
}

.level-up-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 1000;
    border: 4px solid #ffffff;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
    animation: levelUpPop 2s ease-in-out forwards;
}

.level-up-alert h2 {
    color: #ffffff;
    font-size: 2.5em;
    margin: 0;
    font-family: 'Comic Sans MS', cursive;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.level-up-alert .new-level {
    font-size: 3em;
    color: #FFD700;
    display: block;
    margin: 10px 0;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.level-up-alert .stars {
    font-size: 2em;
    margin: 10px 0;
    animation: twinkle 0.5s ease-in-out infinite alternate;
}

@keyframes levelUpPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

@keyframes twinkle {
    from {
        opacity: 0.7;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1.1);
    }
} 
/* ── techonc demo eki: klavyesiz cihaz uyarısı ─────────────────────── */
#touchNotice { display: none; }

@media (pointer: coarse) {
    #touchNotice {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: #fafaf7;
        color: #161511;
        font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    }
    .touch-notice-card {
        max-width: 420px;
        text-align: center;
        background: #fff;
        border: 1px solid #e4e2da;
        border-radius: 14px;
        padding: 32px 26px;
    }
    .touch-notice-icon { font-size: 42px; line-height: 1; margin-bottom: 14px; }
    .touch-notice-card h2 {
        margin: 0 0 12px;
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #161511;
    }
    .touch-notice-card p {
        margin: 0;
        font-size: 15px;
        line-height: 1.6;
        color: #4a4740;
    }
    .touch-notice-brand {
        margin-top: 18px !important;
        font-family: ui-monospace, "SF Mono", Menlo, monospace;
        font-size: 12px !important;
        letter-spacing: 1px;
        color: #e8501e !important;
    }
}

/* techonc demo eki: "yine de dene" butonu (klavyeli dokunmatik cihazlar için) */
@media (pointer: coarse) {
    .touch-notice-skip {
        margin-top: 18px;
        padding: 11px 22px;
        border: 1.5px solid #161511;
        border-radius: 999px;
        background: transparent;
        color: #161511;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }
    .touch-notice-skip:active { background: #161511; color: #fafaf7; }
}
