/* === Nova: Explanation Highlight (Single Player) === */
.explanation-container{margin-top:14px;display:none;}

/* Mağaza kategori butonları: renderStoreCategoryButtons() betik bölümünde tanımlıdır. */
.explanation-card{
  background:#ecfdf5;             /* açık yeşil */
  border:3px solid #166534;       /* koyu yeşil çerçeve */
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 24px rgba(22,101,52,0.18);
  animation: expCardIn .25s ease-out;
}
@keyframes expCardIn{from{transform:translateY(6px);opacity:0}to{transform:translateY(0);opacity:1}}
.explanation-title{
  display:inline-block;
  font-weight:900;
  font-size:1rem;
  color:#065f46;
  background:#d1fae5;
  border:2px solid #065f46;
  padding:4px 10px;
  border-radius:999px;
  letter-spacing:.3px;
  margin-bottom:8px;
}
.explanation-correct{
  font-size:1.1rem;
  font-weight:800;
  color:#065f46;
  background:linear-gradient(0deg, rgba(5,150,105,.10), rgba(5,150,105,.10));
  border-left:6px solid #10b981;
  padding:8px 12px;
  border-radius:10px;
  margin:6px 0 8px 0;
}
.explanation-text{
  font-size:.98rem;
  color:#064e3b;
  line-height:1.35;
  background:#f0fdf4;
  border-left:4px dashed #34d399;
  padding:10px 12px;
  border-radius:8px;
}
.next-question-button{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#10b981;
  color:#fff;
  font-weight:700;
  border:none;
  border-radius:10px;
  padding:10px 16px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.next-question-button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(16,185,129,.35);background:#059669}
.next-question-button:active{transform:translateY(0);box-shadow:none}
/* === End Nova === */

        /* CSS Kodları */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'ComfortaaOkul', sans-serif;
        }

        body {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 20px 20px 10px 20px;
            animation: backgroundPulse 10s infinite alternate;
        }
        html.nova-lock-main-scroll,
        body.nova-lock-main-scroll{
            overflow: hidden !important;
            overscroll-behavior: none !important;
            height: 100%;
        }

        @keyframes backgroundPulse {
            from {
                background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            }
            to {
                background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
            }
        }

        .container, .game-container, .student-selection-container, .single-player-game-container, .duel-selection-container, .duel-game-container {
            background: white;
            padding: 30px 40px;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 1200px;
            text-align: left;
            transform: scale(0.95);
            transition: transform 0.3s ease, opacity 0.3s ease;
            opacity: 0;
            animation: fadeInUp 0.5s forwards;
        }

.logout-button:not(.nova-lobby-tile) {
    background-color: #dc3545; /* Kırmızı renk */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px; /* Köşeleri yuvarla */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1.1em;
    margin-top: 20px; /* Üstten boşluk */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logout-button:not(.nova-lobby-tile):hover {
    background-color: #c82333; /* Hover sırasında biraz daha koyu kırmızı */
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}


select {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: 2px solid #ff8a00;
    border-radius: 12px;
    padding: 12px;
    font-size: 1.1em;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.friends-button {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.student-stats-container {
    position: relative;
    margin-top: 10px; /* Azaltıldı: 20px -> 15px */
    padding: 2px; /* Azaltıldı: 5px -> 3px */
    perspective: 1000px;
}

.student-stats {
    display: flex;
    justify-content: center;
    gap: 6px; /* Azaltıldı: 25px -> 15px */
    padding: 5px; /* Azaltıldı: 15px -> 10px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Azaltıldı: 20px -> 15px */
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px 0 rgba(31, 38, 135, 0.37); /* Azaltıldı shadow */
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform-style: preserve-3d;
    animation: floatStats 6s ease-in-out infinite;
}
#main-screen .student-stats{
    background: rgba(7, 12, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(8px);
}

.stats-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px; /* Azaltıldı: 12px -> 8px */
    padding: 4px 8px; /* Azaltıldı: 12px 20px -> 8px 15px */
    border-radius: 8px; /* Azaltıldı: 16px -> 12px */
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
#main-screen .stats-item{
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.45);
}



.stats-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.trophy-glow {
    background: radial-gradient(circle at center,
        rgba(255, 215, 0, 0.3) 0%,
        transparent 70%);
    animation: pulseGold 2s ease-in-out infinite;
}

.diamond-glow {
    background: radial-gradient(circle at center,
        rgba(30, 144, 255, 0.3) 0%,
        transparent 70%);
    animation: pulseBlue 2s ease-in-out infinite;
}

.stats-icon {
    position: relative;
    font-size: 1.1em; /* Azaltıldı: 2em -> 1.3em */
    z-index: 2;
}

.trophy-stats .stats-icon {
    animation: shakeRotate 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.diamond-stats .stats-icon {
    animation: floatShine 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.5));
}
body.champion-x2-active .diamond-stats{
    position: relative;
    box-shadow:
      0 0 0 1px rgba(250,204,21,.45),
      0 0 14px rgba(250,204,21,.42),
      0 0 28px rgba(245,158,11,.28) !important;
}
.champion-x2-badge{
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #fff7cc;
    background: linear-gradient(90deg,#7c2d12,#f59e0b,#facc15,#f59e0b,#7c2d12);
    background-size: 220% 220%;
    border: 1px solid rgba(253,224,71,.8);
    box-shadow: 0 0 0 1px rgba(120,53,15,.5), 0 0 10px rgba(250,204,21,.48);
    animation: championTagGlow 1.05s ease-in-out infinite, nfShift 2s linear infinite;
    white-space: nowrap;
}

.stats-value {
    position: relative;
    font-size: 1em; /* Azaltıldı: 1.6em -> 1.2em */
    font-weight: bold;
    z-index: 2;
}
#main-screen .stats-value{
    color: #f8fafc;
    -webkit-text-fill-color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 8px rgba(15,23,42,.45);
}

.trophy-stats .stats-value {
    font-size: 1em;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
#main-screen .trophy-stats .stats-value{
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #fcd34d;
}

.diamond-stats .stats-value {
    background: linear-gradient(45deg, #00bfff, #1e90ff, #4169e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerBlue 3s linear infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
#main-screen .diamond-stats .stats-value{
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #67e8f9;
}
#main-screen .credits-stats .stats-value{
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #fdba74;
}

.stats-item:hover {
    transform: translateY(-3px) scale(1.03); /* Azaltıldı: -5px -> -3px, 1.05 -> 1.03 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Azaltıldı: 10px 20px -> 8px 16px */
}

@keyframes floatStats {
    0%, 100% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-5px) rotateX(3deg); } /* Azaltıldı: -10px -> -5px, 5deg -> 3deg */
}

@keyframes pulseGold {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); } /* Azaltıldı: 1.2 -> 1.1 */
}

@keyframes pulseBlue {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); } /* Azaltıldı: 1.2 -> 1.1 */
}

@keyframes shakeRotate {
    0%, 100% { transform: rotate(-3deg); } /* Azaltıldı: -5deg -> -3deg */
    25% { transform: rotate(0deg) scale(1.05); } /* Azaltıldı: 1.1 -> 1.05 */
    50% { transform: rotate(3deg); } /* Azaltıldı: 5deg -> 3deg */
    75% { transform: rotate(0deg) scale(1); }
}

@keyframes floatShine {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
    50% { transform: translateY(-3px) scale(1.05); filter: brightness(1.2); } /* Azaltıldı: -5px -> -3px, 1.1 -> 1.05, 1.3 -> 1.2 */
}

@keyframes shimmerGold {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes shimmerBlue {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.trophy-stats:hover .trophy-glow {
    animation: pulseGold 1s ease-in-out infinite;
}

.diamond-stats:hover .diamond-glow {
    animation: pulseBlue 1s ease-in-out infinite;
}

/* Hover efektleri için ek parıltılar */
.stats-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.stats-item:hover::before {
    opacity: 1;
    animation: rotateSweep 1s linear infinite;
}

@keyframes rotateSweep {
    0% { transform: rotate(45deg) translateY(0%); }
    100% { transform: rotate(45deg) translateY(100%); }
}

.friends-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.friends-container {
    display: none;
    flex-direction: column;
    gap: 25px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
}

#search-button {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-results, .friends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 10px;
    gap: 15px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.player-photo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #ff8a00;
}

.player-name {
    flex: 1;
    font-size: 1em;
    font-weight: bold;
    color: #333;
}

.davet-et-button, .oyunda-button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.davet-et-button {
    background-color: #a2b8;
    color: white;
}

.davet-et-button:hover {
    background-color: #138496;
}

.oyunda-button {
    background-color: #f59e0b;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
}

.oyunda-button:hover {
    background-color: #d97706;
    opacity: 0.7;
}


.friend-photo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-name {
    font-weight: bold;
    color: #111827;
}

.friend-class {
    color: #6b7280;
    font-size: 0.9em;
}

.add-friend-button {
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.add-friend-button:hover {
    background: #059669;
    transform: scale(1.05);
}

.friend-status {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

.status-offline {
    background: #e5e7eb;
    color: #374151;
}

.status-online {
    background: #dcfce7;
    color: #166534;
}



.status-in-game {
    background: #fee2e2;
    color: #991b1b;
}

/* Hover ve odaklanma efekti */
select:hover, select:focus {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    border-color: #f7786b;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

option {
    background-color: white;
    color: #333;
    padding: 10px;
    font-size: 1em;
    font-family: 'ComfortaaOkul', sans-serif;
}


        @keyframes fadeInUp {
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

#main-screen {
    display: flex;
    flex-direction: column; /* İçeriği dikey hizalar */
    align-items: center; /* Yatayda ortalar */
    justify-content: center; /* Dikeyde ortalar */
    gap: 20px; /* Elemanlar arasındaki boşluk */
    position: relative; /* Efektler için gerekli */
    padding: 30px;
    width: min(96vw, 1400px); /* Cihazda taşmadan geniş görünüm */
    max-width: 1400px; /* Maksimum genişlik */
    min-height: 300px; /* Minimum yükseklik */
    /* Arka plan: Bunny video katmanı (nova-main-bg-video); eski foto URL kaldırıldı */
    background: #020611;
    background-image: none;
    border: 5px solid transparent;
    border-radius: 20px; /* Köşe yuvarlama */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); /* Yumuşak gölge */
    overflow: visible; /* Taşan rozet/butonlar kesilmesin */
    box-sizing: border-box;
    z-index: 1; /* Diğer elemanlarla çakışmayı önler */
}

/* Uygulama imzası (ana ekran sol alt köşe) */
#main-screen .nask-game-signature{
  position: absolute;
  left: max(10px, env(safe-area-inset-left, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 6;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  pointer-events: none;
  user-select: none;
}

/* Eski ışık efekti kaldırıldı — devasa ::before scroll yüksekliğini şişiriyordu */
#main-screen::before{
    display: none !important;
    content: none !important;
}


/* Çerçeve parlaması */
@keyframes glowingBorder {
    0% {
        box-shadow: 0 0 5px #ff8a00, 0 0 10px #ff8a00;
    }
    50% {
        box-shadow: 0 0 15px #fbc2eb, 0 0 20px #fbc2eb;
    }
    100% {
        box-shadow: 0 0 5px #a6c1ee, 0 0 10px #a6c1ee;
    }
}

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

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(100px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .student-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 40%;
            animation: bounceIn 1s;
        }

        @keyframes bounceIn {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); opacity: 1; }
            70% { transform: scale(0.9); }
            100% { transform: scale(1); }
        }

        .student-photo {
            width: 160px;
            height: 160px;
            border-radius: 12px;
            object-fit: cover;
            border: 4px solid #ff8a00;
            margin-bottom: 20px;
            transition: transform 0.3s;
        }

        .student-photo:hover {
            transform: rotate(360deg);
        }

        .student-name {
            font-size: 1em;
            font-weight: bold;
            color: #333;
            text-align: center;
            margin-bottom: 10px;
            text-shadow: 2px 2px #ff8a00;
        }

        .student-cup {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 15px;
            animation: popIn 0.5s;
        }

        @keyframes popIn {
            from { transform: scale(0.5); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

.game-cup-image {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    transform-origin: center;
    animation: trophyBounce 2s infinite;
}

@keyframes trophyGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

@keyframes trophyBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.trophy-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px auto;
    padding: 0 15px;
    max-width: 300px;
}

.trophy-inner {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trophy {
    font-size: 1.5em;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes trophyEntry {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


        @keyframes rotateCup {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

.game-cup-score {
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        /* Eski dikey menü — nova lobby tile'lara uygulanmaz */
        .buttons:not(.nova-main-lobby) {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 55%;
            align-items: flex-start;
            animation: slideButtons 0.7s ease forwards;
        }

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

.buttons:not(.nova-main-lobby) {
    display: flex; /* Flexbox düzeni */
    flex-direction: column; /* Butonları dikey hizalar */
    align-items: stretch; /* Butonları çerçeveye tam yayar */
    justify-content: center; /* Butonlar arasında eşit hizalama */
    gap: 20px; /* Butonlar arasında dikey boşluk */
    padding: 10px; /* Çerçeve içi boşluk */
    width: 100%; /* Çerçeve genişliği */
    max-width: 900px; /* Maksimum genişlik */
    margin: 0 auto; /* Ortalamak için */
    box-sizing: border-box; /* Padding ve border dahil */
}

.buttons:not(.nova-main-lobby) button:not(.nova-lobby-tile) {
    /* Mevcut özellikleri koru */
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;

    /* Yeni metin geliştirmeleri */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.offline-button {
    background-color: #808080;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.7;
    font-size: 0.9em;
}

.student-diamond {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    animation: diamondGlow 3s infinite alternate;
}

.diamond-count {
    font-size: 1.3em;
    font-weight: bold;
    color: #1e90ff;
    text-shadow: 0 0 1px #1e90ff;
    animation: diamondPulse 2.5s infinite alternate;
}

@keyframes diamondGlow {
    from {
        filter: drop-shadow(0 0 2px #1e90ff);
    }
    to {
        filter: drop-shadow(0 0 8px #1e90ff);
    }
}

@keyframes diamondPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.buttons:not(.nova-main-lobby) button:not(.nova-lobby-tile)::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.5s;
}

.buttons:not(.nova-main-lobby) button:not(.nova-lobby-tile):hover::before {
    width: 0%;
    height: 0%;
    opacity: 0;
}

.buttons:not(.nova-main-lobby) button:not(.nova-lobby-tile):hover {
    transform: scale(1.05);
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.single-player:not(.nova-lobby-tile) {
    background: linear-gradient(135deg, #ff6f61, #ff9a9e);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


.friend-added-button {
    background-color: #808080;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.7;
    font-size: 0.9em;
}

.add-friend-button {
    background-color: #28a745;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.add-friend-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.kupa-siralama-button:not(.nova-lobby-tile) {
    background-color: #f7cac9;
    color: black !important;
    background-image: linear-gradient(135deg, #edf500, #8ff514);
    box-shadow: 0 0 15px rgba(247, 202, 201, 0.7);
    position: relative;
    overflow: hidden;
}

.kupa-siralama-button:not(.nova-lobby-tile)::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(247, 202, 201, 0.2);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}


        @keyframes shine {
            0% {
                transform: rotate(45deg) translate(-100%, -100%);
            }
            100% {
                transform: rotate(45deg) translate(100%, 100%);
            }
        }

        .game-container, .student-selection-container, .single-player-game-container, .duel-selection-container, .duel-game-container {
            display: none;
            flex-direction: column;
            gap: 15px;
            animation: fadeIn 0.5s forwards;
        }

        .table-section {
            background-color: #fff3e0;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            text-align: left;
        }

        .table-section h3 {
            margin-bottom: 15px;
            color: #ff8a00;
            font-size: 1.0em;
            border-bottom: 2px solid #ff8a00;
            padding-bottom: 5px;
        }

        .table-section label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }

        .table-section select, .table-section input {
            width: 100%;
            padding: 14px 20px;
            margin-bottom: 20px;
            border: 2px solid #ff8a00;
            border-radius: 8px;
            font-size: 1.2em;
            color: #333;
            background-color: #fff;
            transition: border-color 0.3s;
        }

        .table-section select:focus, .table-section input:focus {
            border-color: #f7786b;
            outline: none;
        }

        .back-button, .start-game-button, .login-button, .duel-start-button, .ranking-back-button, .close-ranking-button {
            padding: 14px 30px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
            font-size: 1.1em;
            margin-top: 25px;
            font-weight: bold;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .back-button, .ranking-back-button, .close-ranking-button {
            background-color: #555;
            color: white;
            width: 100%;
            max-width: 220px;
        }

        .back-button:hover, .ranking-back-button:hover, .close-ranking-button:hover {
            background-color: #333;
            transform: scale(1.05);
        }

        .start-game-button, .duel-start-button {
            background-color: #28a745;
            color: white;
            opacity: 0.7;
            cursor: not-allowed;
            width: 100%;
            max-width: 220px;
        }

        .start-game-button.active, .duel-start-button.active {
            opacity: 1;
            cursor: pointer;
        }

        .start-game-button:hover.active, .duel-start-button:hover.active {
            transform: scale(1.05);
        }

        .login-button {
            background-color: #007BFF;
            color: white;
            opacity: 0.7;
            cursor: not-allowed;
            width: 100%;
            max-width: 220px;
            transition: opacity 0.3s;
        }

        .login-button.active {
            opacity: 1;
            cursor: pointer;
        }

        .login-button:hover.active {
            transform: scale(1.05);
        }

        .error {
            color: red;
            margin-top: 15px;
            text-align: center;
            font-size: 1.1em;
            animation: shake 0.5s;
        }

        @keyframes shake {
            0% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            50% { transform: translateX(5px); }
            75% { transform: translateX(-5px); }
            100% { transform: translateX(0); }
        }

.single-player-game-container, .duel-game-container {
    display: none; /* Bu konteyner başlangıçta görünmez */
    flex-direction: column; /* İçerikleri dikey olarak hizalar */
    gap: 25px; /* İçerikler arasındaki boşluk 25 piksel */
    width: 100%; /* Konteyner genişliği ekranın tamamını kaplar */
    max-width: none; /* Genişlik sınırı yok */
    justify-content: center; /* İçerikleri dikeyde ortalar */
    align-items: center; /* İçerikleri yatayda ortalar */
    padding: 30px; /* Kenar boşlukları (çerçevenin içindeki içeriklerin etrafındaki boşluk) */
    animation: fadeIn 0.5s forwards; /* Görünür hale geldiğinde fadeIn animasyonu oynar */
}


        .question-number {
            margin-bottom: 15px;
            font-size: 1.0em;
            color: #555;
            font-weight: bold;
        }

        .progress-container {
            width: 100%;
            max-width: 900px;
            margin-bottom: 1px;
        }

        .progress-bar {
            width: 100%;
            background-color: #e9ecef;
            border-radius: 15px;
            overflow: hidden;
            height: 25px;
        }

        .progress-bar-inner {
            height: 100%;
            width: 0%;
            background-color: #28a745;
            transition: width 0.4s ease;
        }

        .timer-container {
            margin-bottom: 1px;
        }

        .timer {
            font-size: 1.0em;
            color: #ff0000;
            font-weight: bold;
            animation: pulseTimer 1.5s infinite;
        }

        @keyframes pulseTimer {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .question-container {
    display: flex;
    flex-direction: column; /* Dikey hizalama */
    align-items: center; /* Yatayda ortalama */
    justify-content: center; /* Dikeyde ortalama */
    width: 100%; /* Çerçevenin genişliği */
    max-width: 700px; /* Maksimum genişlik azaltıldı */
    text-align: center; /* Metni ortala */
    min-height: 300px; /* Çerçeve yüksekliği azaltıldı */
    padding: 15px; /* Daha az boşluk */
    border: 2px solid #ff8a00; /* Çerçeve kalınlığı azaltıldı */
    border-radius: 10px; /* Köşe yuvarlama küçültüldü */
    background-color: #fffbea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Gölge küçültüldü */
    overflow: hidden; /* Çerçeve dışına taşmaları gizle */
}

        @keyframes zoomIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .question-image {
    max-width: 100%; /* Resmin genişliği çerçeveye sığacak şekilde */
    max-height: 60%; /* Resmin yüksekliğini sınırla */
    object-fit: contain; /* Resmin orantılı şekilde sığmasını sağla */
    margin: 0 auto; /* Resmi yatayda ortala */
    display: block; /* Blok element olarak davranır */
}

        @keyframes fadeInImage {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .question-text {
    font-size: 1.1em; /* Soru metni boyutunu ayarla */
    font-weight: bold;
    margin-bottom: 10px; /* Resim ile metin arasında boşluk */
    word-wrap: break-word; /* Uzun kelimeleri kır */
    text-align: center; /* Metni ortala */
    max-width: 100%; /* Çerçeve sınırları içinde kalmasını sağla */
}

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

        .options-container {
            display: flex;
            gap: 20px;
            flex-direction: row;
            justify-content: center;
            width: 100%;
            max-width: 900px;
            flex-wrap: wrap; 
            animation: fadeInOptions 0.5s;
        }

        @keyframes fadeInOptions {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .option-button {
            padding: 10px 15px;
            background-color: #007BFF;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
            flex: 1 1 30%;
            min-width: 160px;
            max-width: 350px;
            font-size: 1.0em;
            margin: 3px 2;
            white-space: normal;
            word-wrap: break-word;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }

        .option-button::after {
            content: '';
            position: absolute;
            width: 300%;
            height: 300%;
            background: rgba(255, 255, 255, 0.2);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(45deg);
            transition: all 0.5s;
        }

        .option-button:hover::after {
            width: 0%;
            height: 0%;
            opacity: 0;
        }

        .option-button:hover {
            background-color: #0056b3;
            transform: scale(1.05);
            opacity: 0.95;
            box-shadow: 0 6px 15px rgba(0,0,0,0.2);
        }

        .option-button.correct {
            background-color: #28a745 !important;
            animation: pulseCorrect 0.5s;
        }

        @keyframes pulseCorrect {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }

        .option-button.wrong {
            background-color: #dc3545 !important;
            animation: shakeWrong 0.5s;
        }

        @keyframes shakeWrong {
            0% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            50% { transform: translateX(5px); }
            75% { transform: translateX(-5px); }
            100% { transform: translateX(0); }
        }

        .option-chosen {
            border: 4px solid #ff8a00;
            box-shadow: 0 0 15px rgba(255,138,0,0.5);
        }

        .option-faded {
            opacity: 0.5;
        }

        .score-container {
            font-size: 2em;
            color: #333;
            text-align: center;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 25px;
            animation: fadeInScore 0.5s;
        }

        @keyframes fadeInScore {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

.score-message {
    font-size: 1.1em; /* Yazı boyutunu çerçeveye uygun olacak şekilde ayarlayın */
    font-weight: bold;
    margin-top: 25px;
    animation: glow 1.5s infinite alternate;
    text-align: center; /* Metni ortala */
    max-width: 90%; /* Çerçevenin genişliğine uygun olacak şekilde sınırla */
    white-space: normal; /* Alt satıra geçmesini sağla */
    word-wrap: break-word; /* Uzun kelimeleri kırarak alt satıra geçir */
    overflow: visible; /* Çerçeve dışına taşmayı engelle */
    margin: 0 auto; /* Yatayda ortala */
    line-height: 1.2; /* Satırlar arasındaki mesafeyi ayarla */
}

        .score-message.blue {
            color: #007BFF;
        }

        .score-message.green {
            color: #28a745;
        }

        .score-message.purple {
            color: #6f42c1;
            text-shadow: 0 0 15px #6f42c1, 0 0 25px #6f42c1, 0 0 35px #6f42c1;
            animation: glowMukemmel 1.5s infinite alternate;
        }

        @keyframes glow {
            from {
                text-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
            }
            to {
                text-shadow: 0 0 25px rgba(0, 123, 255, 1);
            }
        }

        @keyframes glowMukemmel {
            from {
                text-shadow: 0 0 15px rgba(111, 66, 193, 0.5);
            }
            to {
                text-shadow: 0 0 25px rgba(111, 66, 193, 1), 0 0 35px rgba(111, 66, 193, 0.7);
            }
        }

        .final-image {
            width: 220px;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            animation: fadeInImage 1s;
        }

        /* Yeni Eklenen Stil: End Game Button (Geri Dön) */
        .end-game-button {
            background-color: #007BFF; /* Mavi renk */
            color: white;
            padding: 8px px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
            font-size: 0.8em;
            margin-top: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .end-game-button:hover {
            background-color: #0056b3;
            transform: scale(1.05);
            box-shadow: 0 7px 20px rgba(0,0,0,0.2);
        }

        /* Yeni +1 Efekti */
        .animated-plus-one {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 8em;
            color: #28a745;
            pointer-events: none;
            z-index: 1000;
            opacity: 1;
            animation: plusOneMove 1s forwards;
        }

        @keyframes plusOneMove {
            0% {
                opacity:1;
                transform: translate(-50%, -50%) translate(0px, 0px) scale(1);
            }
            100% {
                opacity:0;
                transform: translate(-50%, -50%) translate(300px, -300px) scale(0.5);
            }
        }

        /* "Oyunda" Butonu İçin Ek Stil */
        .oyunda-button {
            background-color: #f59e0b; /* Turuncu renk */
            border: none;
            border-radius: 6px;
            color: white;
            padding: 8px 14px;
            font-size: 1em;
            cursor: not-allowed;
            opacity: 0.7;
            transition: background-color 0.3s;
        }

        .oyunda-button:hover {
            background-color: #d97706;
            opacity: 0.7; /* Hover etkisini kaldırmak için */
            transform: none;
        }

        /* Alert, Prompt, Invitation Modals */
        .alert-overlay, .prompt-overlay, .invitation-overlay {
            position: fixed;
            top:0;
            left:0;
            width:100%;
            height:100%;
            background: rgba(0,0,0,0.6);
            display: none;
            align-items:center;
            justify-content:center;
            z-index:1000000;
            animation: fadeInModal 0.3s;
        }

        @keyframes fadeInModal {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .alert-content, .prompt-content, .invitation-content {
            background:#fff;
            padding:25px;
            border-radius:15px;
            width:90%;
            max-width:350px;
            box-shadow:0 10px 25px rgba(0,0,0,0.3);
            display:flex;
            flex-direction: column;
            gap:20px;
            animation: slideDownModal 0.3s;
        }

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

        .alert-message, .prompt-message, .invitation-message {
            font-size:1.2em;
            color:#333;
            text-align: center;
        }

        .alert-ok-button, .prompt-ok-button, .prompt-cancel-button, .invitation-accept-button, .invitation-decline-button {
            background-color: #007BFF;
            color:white;
            border:none;
            border-radius:8px;
            padding:12px 25px;
            cursor:pointer;
            transition: background-color 0.3s;
            font-size:1em;
            font-weight: bold;
        }

        .alert-ok-button:hover, .prompt-ok-button:hover, .prompt-cancel-button:hover, .invitation-accept-button:hover, .invitation-decline-button:hover {
            background-color: #0056b3;
        }

        .prompt-input {
            width:100%;
            padding:12px;
            border:2px solid #ff8a00;
            border-radius:8px;
            font-size:1.1em;
            transition: border-color 0.3s;
        }

        .prompt-input:focus {
            border-color: #f7786b;
            outline: none;
        }

        .prompt-buttons, .invitation-buttons {
            display:flex;
            justify-content: space-between;
            gap: 10px;
        }

        .prompt-cancel-button, .invitation-decline-button {
            background-color:#dc3545;
        }

        .prompt-cancel-button:hover, .invitation-decline-button:hover {
            background-color:#c82333;
        }

        /* Düello Seçim Ekranı */
.duel-selection-container {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: auto;
    position: relative;
    z-index: 1000;
}

        /* İki oyuncuyu eşit orantıda yerleştirmek için space-evenly kullandık */
.duel-bottom-info {
    display: flex;
    justify-content: space-evenly; /* Kartlar arasında eşit boşluk */
    align-items: center; /* Kartları yatayda ortala */
    width: 100%; /* Genişlik tüm alanı kaplasın */
    padding: 10px 0; /* Üst ve alt boşluk */
}


.duel-player-info {
    display: flex;
    flex-direction: column; /* Resim ve ismi dikey hizalar */
    align-items: center; /* Yatayda ortalar */
    justify-content: center; /* Dikeyde ortalar */
    text-align: center; /* Yazıyı ortala */
    gap: 10px; /* Resim ile isim arasındaki boşluk */
    width: 100%; /* Kartın genişliği */
}

.duel-player-photo {
    width: 80px; /* Resim genişliği */
    height: 80px; /* Resim yüksekliği */
    border-radius: 12px; /* Yuvarlak resim */
    object-fit: cover; /* Resmi çerçeveye sığdır */
    border: 3px solid #ff8a00; /* Çerçeve rengi */
    margin-bottom: 5px; /* Resim ile isim arasındaki boşluk */
}


.duel-player-photo:hover {
    transform: rotate(360deg);
}

.duel-player-name {
    font-size: 1em; /* Yazı boyutu */
    font-weight: bold; /* Yazı kalınlığı */
    color: #333; /* Yazı rengi */
    text-align: center; /* Yazıyı ortala */
    white-space: normal; /* Yazının satır kaydırmasını etkinleştir */
    word-wrap: break-word; /* Uzun kelimeleri kaydır */
    overflow-wrap: break-word; /* Modern tarayıcı desteği */
    max-width: 100%; /* Çerçeve sınırında kal */
    line-height: 1.2; /* Satırlar arası boşluğu azalt */
}



        .duel-controls {
            display:flex;
            flex-direction: column;
            gap:15px;
            align-items:center;
            justify-content:center;
            margin-top:30px;
        }

        .duel-start-button {
            display:inline-block;
            margin:0 auto;
            background-color: #28a745;
            color: white;
            padding: 14px 30px;
            border: none;
            border-radius: 10px;
            cursor: not-allowed;
            opacity: 0.7;
            transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
            font-size:1.1em;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .duel-start-button.active {
            cursor: pointer;
            opacity: 1;
        }

        .duel-start-button:hover.active {
            transform: scale(1.05);
            background-color: #218838;
        }

        .duel-game-container {
            display: none;
            flex-direction: column;
            gap: 5px;
            width: 100%;
            max-width: none;
            justify-content: center;
            align-items: center;
            padding: 30px;
            animation: fadeIn 0.5s forwards;
        }

        .players-info-row {
            display: flex;
            width: 100%;
            max-width: 900px;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            animation: slideInPlayers 0.5s forwards;
        }

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

        .duel-player-score {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 120px;
            overflow:hidden;
            position: relative;
            background-color: #f1f1f1;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .duel-player-score img {
            width: 70px;
            height: 70px;
            border-radius: 12px;
            border: 3px solid #ff8a00;
            object-fit: cover;
            margin-bottom: 10px;
        }

.duel-player-score .duel-player-name {
    font-size: 0.8em; /* Yazı boyutunu biraz küçültebilirsiniz */
    font-weight: bold;
    color: #333;
    white-space: normal; /* Uzun metinlerin satır atlamasına izin verir */
    word-wrap: break-word; /* Uzun kelimelerin uygun yerlerde kırılmasını sağlar */
    text-align: center; /* Metni ortalar */
    overflow: hidden; /* Çerçevenin dışına taşmayı engeller */
    text-shadow: 1px 1px #ff8a00;
    max-width: 150px; /* Çerçevenin genişliğine göre uyarlanır */
    display: -webkit-box; /* Çok satırlı metni sınırlamak için */
    -webkit-line-clamp: 2; /* Maksimum 2 satır göster */
    -webkit-box-orient: vertical;
}

        .duel-player-correct-count {
            font-size: 1.5em;
            margin-top: 8px;
            color: #28a745;
            font-weight: bold;
            transition: transform 0.3s ease;
            animation: bounceCount 0.6s;
        }

        @keyframes bounceCount {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

.winner-message {
    font-size: 1.2em;
    font-weight: 900;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: winnerEntry 1s forwards, winnerGlow 2s infinite alternate;
    text-align: center;
    margin: 15px 0;
    padding: 0 10px;
    max-width: 100%;
    word-wrap: break-word;
}

@keyframes winnerEntry {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


@keyframes winnerGlow {
    from { text-shadow: 0 0 5px gold; }
    to { text-shadow: 0 0 10px gold; }
}

@media (max-width: 480px) {
    .winner-message {
        font-size: 1.2em;
    }
    
    .trophy {
        font-size: 1.1em;
    }
    
    .trophy-container {
        gap: 8px;
        max-width: 250px;
    }
}


        .score-flash {
            animation: scoreFlash 0.8s ease;
        }

        @keyframes scoreFlash {
            0% {transform: scale(1) rotate(0deg); color:#28a745;}
            30% {transform: scale(1.5) rotate(10deg); color:#28a745;}
            60% {transform: scale(1.3) rotate(-10deg); color:#28a745;}
            100% {transform: scale(1) rotate(0deg); color:#28a745;}
        }

        /* Oyundakiler Modal */
        .players-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width:100%;
            height:100%;
            background:rgba(0,0,0,0.6);
            display:none;
            align-items:center;
            justify-content:center;
            z-index:1000000;
            animation: fadeInModal 0.3s;
        }

        .players-content {
            background:#fff;
            padding:30px;
            border-radius:15px;
            width:90%;
            max-width:450px;
            box-shadow:0 10px 25px rgba(0,0,0,0.3);
            display:flex;
            flex-direction:column;
            gap:25px;
            animation: slideDownModal 0.3s;
        }

        .players-header {
            display:flex;
            justify-content:space-between;
            align-items:center;
        }

        .players-header h3 {
            margin:0;
            font-size:1.8em;
            color:#ff8a00;
            text-shadow: 1px 1px #f7786b;
        }

        .players-close {
            background: none;
            border:none;
            font-size:1.5em;
            cursor:pointer;
            color:#ff6f61;
            transition: color 0.3s;
        }

        .players-close:hover {
            color:#e63946;
        }

        .players-list {
            list-style:none;
            padding:0;
            margin:0;
            display:flex;
            flex-direction:column;
            gap:15px;
        }

        .players-list li {
            display:flex;
            align-items:center;
            gap:15px;
            background:#f0f0f0;
            padding:12px;
            border-radius:8px;
            justify-content: space-between;
            transition: background-color 0.3s;
        }

        .players-list li:hover {
            background-color: #e0e0e0;
        }

        .players-list img {
            width:50px;
            height:50px;
            border-radius: 12px;
            object-fit:cover;
            border:3px solid #ff8a00;
        }

        .players-list .player-name {
            font-size:1.1em;
            color:#333;
            flex:1;
            text-shadow: 1px 1px #ff8a00;
        }

        /* Sezon sıralaması paneli — tek tanım, akıcı geçiş (GPU dostu) */
                /* Açma Butonu */
        .open-ranking-button {
            padding: 15px 30px;
            font-size: 1.2em;
            border: none;
            border-radius: 10px;
            background-color: #4e54c8;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .open-ranking-button:hover {
            background-color: #8f94fb;
            transform: scale(1.05);
            box-shadow: 0 7px 20px rgba(0,0,0,0.3);
        }

        /* Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease;
            z-index: 999;
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Ranking Panel — mobil: tam ekran; geniş ekran: sağdan çekmece */
        .ranking-panel {
            position: fixed;
            inset: 0;
            z-index: 10000;
            max-width: 100%;
            width: min(440px, 100%);
            margin-left: auto;
            height: 100%;
            height: 100dvh;
            background: #ffffff;
            box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
            display: flex;
            flex-direction: column;
            padding: clamp(12px, 3vw, 20px);
            padding-bottom: env(safe-area-inset-bottom, 12px);
            visibility: hidden;
            pointer-events: none;
            transform: translate3d(100%, 0, 0);
            transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
            will-change: transform;
        }

        .ranking-panel.open {
            visibility: visible;
            pointer-events: auto;
            transform: translate3d(0, 0, 0);
        }

        /* Ranking Panel Header — sürekli animasyon yok (daha akıcı kaydırma) */
.ranking-panel h2 {
   text-align: center;
   font-size: clamp(1.35rem, 4vw, 2rem);
   font-weight: 800;
   margin: 0 0 16px 0;
   color: #3730a3;
   padding: 8px 4px 12px;
   position: relative;
   flex-shrink: 0;
}

.ranking-panel h2::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: min(160px, 50%);
   height: 3px;
   background: linear-gradient(90deg, transparent, #6366f1, transparent);
   border-radius: 2px;
}

/* Sezon sıralaması: sınıf etiketi */
.ranking-class-pill{
  display: inline-block;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: #3730a3;
  vertical-align: middle;
}

@media (max-width: 600px) {
   .ranking-panel {
       width: 100%;
       margin-left: 0;
   }
}

@media (prefers-reduced-motion: reduce) {
   .ranking-panel { transition: none; transform: none; }
   .ranking-panel.open { transform: none; }
}


@media (max-width: 768px) {
   .ranking-panel h2 {
       font-size: 1.8rem;
   }
}

@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 1; }
}

@media (max-width: 768px) {
   .ranking-panel {
       padding: 15px;
   }
   
   .ranking-table th,
   .ranking-table td {
       padding: 6px 2px;
       font-size: clamp(0.65rem, 2.4vw, 0.88rem);
   }
   
   .user-ranking-stats {
       padding: 12px;
       font-size: 0.9rem;
   }
}


        /* Geri Dön Butonu */
        .ranking-back-button {
            padding: 14px 30px;
            border: none;
            border-radius: 10px;
            background-color: #555;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
            font-size: 1.1em;
            margin-top: auto;
            align-self: center;
            width: 100%;
            max-width: 220px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        .ranking-back-button:hover {
            background-color: #333;
            transform: scale(1.05);
            box-shadow: 0 7px 20px rgba(0,0,0,0.3);
        }

        /* Ranking Table Container — kaydırma performansı */
.ranking-table-container {
   flex: 1;
   min-height: 0;
   min-width: 0;
   overflow-y: auto;
   overflow-x: hidden;
   -webkit-overflow-scrolling: touch;
   overscroll-behavior: contain;
   margin: 10px 0;
   padding: 6px 4px;
   border-radius: 12px;
   background: rgba(255,255,255,0.95);
   box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
   contain: content;
}

        /* Ranking Table — sütun genişlikleri sabit, yatay kaydırma yok */
.ranking-table {
   width: 100%;
   min-width: 0;
   max-width: 100%;
   table-layout: fixed;
   border-collapse: separate;
   border-spacing: 0 4px;
}
.ranking-table col.ranking-col-rank { width: 6%; }
.ranking-table col.ranking-col-photo { width: 11%; }
.ranking-table col.ranking-col-name { width: 30%; }
.ranking-table col.ranking-col-class { width: 15%; }
.ranking-table col.ranking-col-hero { width: 18%; }
.ranking-table col.ranking-col-cup { width: 20%; }

        /* Float Animation */
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        /* Table Header */
        .ranking-table th {
            background: linear-gradient(135deg, #fecaca, #fde68a);
            color: #1f2937;
            font-weight: 700;
            padding: 8px 2px;
            text-align: center;
            text-transform: none;
            font-size: clamp(0.58rem, 2.2vw, 0.72rem);
            letter-spacing: 0;
            line-height: 1.2;
            position: sticky;
            top: 0;
            z-index: 1;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ranking-table th::after {
            display: none;
        }

        /* Table Data */
        .ranking-table td {
            padding: 6px 2px;
            text-align: center;
            vertical-align: middle;
            color: #333;
            font-weight: 500;
            font-size: clamp(0.68rem, 2.2vw, 0.88rem);
            word-wrap: break-word;
            overflow-wrap: anywhere;
            hyphens: auto;
            min-width: 0;
        }
        .ranking-table .rank-column { font-variant-numeric: tabular-nums; }
        .ranking-table .class-name-column {
            line-height: 1.25;
            overflow-wrap: anywhere;
            hyphens: manual;
        }
        .ranking-table .match-count-column,
        .ranking-table .hero-column,
        .ranking-table .trophy-column {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-variant-numeric: tabular-nums;
        }
        .ranking-table .player-name-column {
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        .ranking-table .player-name-column .name-line {
            display: block;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: normal;
            line-height: 1.25;
        }
        .ranking-table .star-badges {
            display: inline-flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1px;
            max-width: 100%;
            font-size: 0.65em;
            line-height: 1;
        }
        .ranking-table .player-name-column .rank-label {
            max-width: 100%;
            box-sizing: border-box;
            font-size: clamp(0.58rem, 2vw, 0.72rem) !important;
            padding: 2px 4px !important;
            margin-top: 4px !important;
            line-height: 1.1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .ranking-table .match-wrapper,
        .ranking-table .trophy-wrapper {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
            white-space: nowrap;
        }
        .ranking-table .player-name-column .star-frame {
            max-width: 100%;
            flex-wrap: wrap;
            justify-content: center;
            min-width: 0;
        }
        .ranking-table .ranking-player-photo {
            width: 100%;
            max-width: 44px;
            max-height: 44px;
            height: auto;
            aspect-ratio: 1;
            object-fit: cover;
            border-width: 2px;
        }

        .ranking-table tbody tr {
            transition: background-color 0.15s ease;
        }

        .ranking-table tbody tr:hover td {
            background: rgba(255, 138, 0, 0.18);
            cursor: default;
        }

        /* Player Photo */
        .ranking-player-photo {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            object-fit: cover;
            border: 3px solid #ff8a00;
            transition: transform 0.3s;
        }

        .ranking-player-photo:hover {
            transform: scale(1.1);
        }

        /* Top 3 Rows */
        .ranking-table tr.top-1 td,
        .ranking-table tr.top-2 td,
        .ranking-table tr.top-3 td {
            color: #fff;
            font-weight: 700;
        }

        .ranking-table tr.top-1 td {
            background: linear-gradient(135deg, #eab308, #ea580c);
            box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
        }

        .ranking-table tr.top-2 td {
            background: linear-gradient(135deg, #94a3b8, #64748b);
            box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35);
        }

        .ranking-table tr.top-3 td {
            background: linear-gradient(135deg, #b45309, #92400e);
            box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35);
        }

        .ranking-table tr.current-user-row td {
            box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.85);
        }

        /* Fade In Animasyonları */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        /* Responsive Design */
        @media (max-width: 480px) {
            .ranking-panel {
                width: 100%;
                border-radius: 0;
            }

            .ranking-table th,
            .ranking-table td {
                padding: 5px 1px;
                text-align: center;
                vertical-align: middle;
            }

            .ranking-table tr {
               background: white;
               border-radius: 10px;
               box-shadow: 0 2px 8px rgba(0,0,0,0.05);
               transition: all 0.2s ease;
            }

            .ranking-table tbody tr:hover td {
               background: rgba(255, 138, 0, 0.12);
            }

            .open-ranking-button, .ranking-back-button {
                padding: 10px 20px;
                font-size: 1rem;
                max-width: 180px;
            }

            .ranking-table-container {
                padding: 4px 2px;
            }
        }

.find-duel-button:not(.nova-lobby-tile) {
    background: linear-gradient(45deg, #ff4e50, #f9d423);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 78, 80, 0.4);
}

.find-duel-button:not(.nova-lobby-tile) .button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.find-duel-button:not(.nova-lobby-tile) .duel-icon {
    font-size: 1.4em;
    animation: swordsSway 2s infinite;
}
.duel-entry-gate-note{
  margin: 8px auto 0;
  max-width: 380px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  padding: 7px 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.duel-entry-gate-note.locked{
  color: #fee2e2;
  background: linear-gradient(135deg, rgba(127,29,29,.86), rgba(69,10,10,.86));
  border-color: rgba(248,113,113,.55);
}
.duel-entry-gate-note.ready{
  color: #052e16;
  background: linear-gradient(135deg, rgba(187,247,208,.92), rgba(110,231,183,.9));
  border-color: rgba(22,163,74,.45);
}

.button-glow {
    display: none; /* Dönen efekti kaldır */
}

@keyframes swordsSway {
    0% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    100% { transform: rotate(-15deg); }
}

@keyframes glowRotate {
    0% { transform: none; }
    100% { transform: none; }
}

/* Arama ekranı için stil */
.matchmaking-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.friend-added-text {
    display: inline-block;
    font-size: 0.9em;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 6px;
    padding: 8px 14px;
}

.matchmaking-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.searching-animation {
    width: 100px;
    height: 100px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff4e50;
    border-radius: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

















/* Eşleştirme Ekranı Ana Stili */
.matchmaking-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.matchmaking-content {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    animation: slideIn 0.5s ease-out;
}

/* Başlık Stili */
.matchmaking-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Arama Animasyonu */
.searching-animation {
    width: 80px;
    height: 80px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff4e50;
    border-radius: 12px;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

/* Oyuncu Listesi */
.available-players {
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.player-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}





/* İptal Butonu */
.cancel-search-button {
    margin-top: 20px;
    padding: 12px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-search-button:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
















.duel-request-button {
    background: linear-gradient(45deg, #ff4e50, #f9d423);
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px; /* İsteğe bağlı: Buton metin boyutu */
}

/* Buton Üzerine Gelindiğinde Genel Efektler */
.duel-request-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Duel İkonu (İçerik) */
.duel-icon {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
    font-size: 20px; /* İsteğe bağlı: İkon boyutu */
}



/* Hover Durumunda Duel İkonu Efektleri */
.duel-request-button:hover .duel-icon {
    transform: rotate(360deg) scale(1.3);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Hover Durumunda Buton Metni Renk Değişikliği */
.duel-request-button:hover .button-text {
    color: #ffe066;
}

/* Dalgalanan Metin Efekti */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animasyonlu Arka Plan Parıltı Efekti */
@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    50% {
        transform: translateX(100%) skewX(-20deg);
    }
    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

/* ::before Pseudo-Elementi ile Ek Dalga Efekti */
.duel-request-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

/* Hover Durumunda ::before Efekti */
.duel-request-button:hover::before {
    transform: rotate(45deg) scale(1);
}

/* ::after Pseudo-Elementi ile Shine Efekti */
.duel-request-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    transform: translateX(-100%) skewX(-20deg);
    animation: shine 2s infinite;
    pointer-events: none;
    border-radius: 8px;
}












.countdown-container {
    position: absolute;
    top: 15px; /* Küçültüldü */
    right: 15px; /* Küçültüldü */
    z-index: 100;
}

.countdown {
    font-size: 1.8em; /* Font boyutu küçültüldü */
    font-weight: bold;
    padding: 10px 15px; /* Padding küçültüldü */
    border-radius: 10px; /* Border-radius küçültüldü */
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); /* Box-shadow küçültüldü */
    animation: pulse 1s infinite;
    transition: transform 0.3s ease; /* Transition'u sadece transform ile sınırladım */
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); } /* Scale miktarı hafifçe azaltıldı */
}

.countdown.green {
    color: #28a745;
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.4); /* Text-shadow boyutu ve opaklığı azaltıldı */
}

.countdown.orange {
    color: #fd7e14;
    text-shadow: 0 0 8px rgba(253, 126, 20, 0.4);
}

.countdown.red {
    color: #dc3545;
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.4);
}









/* Genel Sıfırlamalar (Opsiyonel) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Profil İkonu Container Stilleri */
.profile-icon-container {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
    transition: none; /* Geçiş efektini kaldırıyoruz */
}

/* Profil İkonu Stilleri */
.profile-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #ff8a00;
    box-shadow: none; /* Gölgeyi kaldırıyoruz */
    transition: none; /* Geçiş efektini kaldırıyoruz */
}

/* Hover Efekti */
.profile-icon-container:hover .profile-icon {
    transform: none; /* scale efektini kaldırıyoruz */
    box-shadow: none; /* gölge efektini kaldırıyoruz */
}

/* Profil Değiştirme Overlay ve İçerik Stilleri (Mevcut Kodunuzdan) */
.profile-change-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.profile-change-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px; /* Panel genişliğini sınırla */
    position: relative;
    animation: popIn 0.5s cubic-bezier(0.26, 0.53, 0.74, 1.48);
}

/* Profil Başlık Stili */
.profile-change-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-change-header h2 {
    font-size: 1.0em;
    color: #333;
    margin: 0;
}

/* Profil Fotoğrafları Grid Düzeni */
.profile-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
}

/* Profil Fotoğraf Kartı Stili */
.profile-photo-item {
    background: linear-gradient(145deg, #ffffff05, #ffffff15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    pointer-events: none; /* Mağaza butonlarını engellemesin */
}

/* Profil Fotoğrafı */
.profile-photo {
   width: 120px;  
   height: 120px;
   border-radius: 12px;
   object-fit: cover;
   display: block; /* Block görünüme al */
   margin: 0 auto; /* Yatayda otomatik margin ile ortalar */
   border: 3px solid #ff8a00;
   box-shadow: 0 0 15px rgba(255, 138, 0, 0.3);
   transition: transform 0.3s ease;
}

.profile-photo-item:hover .profile-photo {
    transform: scale(1.05);
}

/* Fiyat Etiketi */
.profile-photo-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 8px;
    margin: 10px auto;
    width: fit-content;
    font-size: 1em;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.series-lock-note{
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    color: #fde68a;
    max-width: 180px;
}

.avatar-framed{
    border-width: 5px !important;
    border-style: solid !important;
    border-radius: 16px !important;
    box-shadow: 0 0 18px rgba(255,255,255,0.2);
    transition: box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
    animation: none;
}
.avatar-frame-wrap{
    position: relative;
    display: inline-block;
    overflow: visible;
    line-height: 0;
}
.avatar-frame-wrap.has-champion-mark::before{
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 22px;
    z-index: 5;
    pointer-events: none;
    background:
      conic-gradient(from 0deg,
        rgba(254,240,138,.0) 0deg,
        rgba(254,240,138,.92) 42deg,
        rgba(245,158,11,.95) 84deg,
        rgba(254,240,138,.0) 128deg,
        rgba(254,240,138,.88) 186deg,
        rgba(245,158,11,.9) 240deg,
        rgba(254,240,138,.0) 300deg,
        rgba(254,240,138,.92) 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 3px;
    box-shadow:
      0 0 0 1px rgba(120,53,15,.56),
      0 0 12px rgba(250,204,21,.65),
      0 0 28px rgba(245,158,11,.44);
    animation: championRingSpin 2.2s linear infinite, championTagGlow 1.25s ease-in-out infinite;
    pointer-events: none;
}
.avatar-frame-wrap.has-champion-mark::after{
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 24px;
    z-index: 6;
    pointer-events: none;
    background:
      radial-gradient(circle 2.5px at 14% 22%, rgba(255,255,255,.95) 98%, transparent 100%),
      radial-gradient(circle 2px at 82% 18%, rgba(254,240,138,.98) 98%, transparent 100%),
      radial-gradient(circle 2.3px at 78% 82%, rgba(255,255,255,.9) 98%, transparent 100%),
      radial-gradient(circle 1.8px at 22% 84%, rgba(254,240,138,.95) 98%, transparent 100%);
    filter: drop-shadow(0 0 4px rgba(250,204,21,.9));
    animation: championSparkOrbit 2.8s linear infinite;
}
/* Ana ekranda işaret katmanı sade: çerçeve şık kalsın */
#main-screen .avatar-frame-wrap.has-champion-mark::before,
#main-screen .avatar-frame-wrap.has-champion-mark::after{
    display: none !important;
}
.avatar-framed.af-default{
    border-color: #94a3b8 !important;
    box-shadow: 0 0 12px rgba(148,163,184,0.35);
}
.avatar-framed.af-worldchamp{
    border-color: #fbbf24 !important; /* Erkek köşesi: altın */
    background:
      radial-gradient(circle at 20% 10%, rgba(255,255,255,0.32), transparent 35%),
      linear-gradient(135deg, rgba(255,215,0,.26), rgba(245,158,11,.10));
    box-shadow:
      0 0 0 2px rgba(255,226,121,.35),
      0 0 16px rgba(251,191,36,0.65),
      0 0 30px rgba(234,179,8,0.55),
      0 0 52px rgba(253,224,71,0.35);
    animation:
      afGoldAura 1.15s ease-in-out infinite,
      afFlameFlicker 0.22s steps(2,end) infinite;
    filter: drop-shadow(0 0 8px rgba(255,180,0,.75)) drop-shadow(0 0 18px rgba(255,120,0,.55));
}
.avatar-framed.af-rosequeen{
    border-color: #f472b6 !important; /* Kızlar köşesi: pembe */
    background:
      radial-gradient(circle at 75% 18%, rgba(255,255,255,0.30), transparent 38%),
      linear-gradient(145deg, rgba(251,113,133,.23), rgba(236,72,153,.10));
    box-shadow:
      0 0 0 2px rgba(249,168,212,.32),
      0 0 14px rgba(244,114,182,0.60),
      0 0 28px rgba(236,72,153,0.52),
      0 0 48px rgba(244,114,182,0.30);
    animation:
      afPinkGlow 1.2s ease-in-out infinite,
      afFlameFlickerPink 0.24s steps(2,end) infinite;
    filter: drop-shadow(0 0 8px rgba(255,110,190,.72)) drop-shadow(0 0 16px rgba(255,70,160,.52));
}
.avatar-framed.af-superlite{
    border-color: #60a5fa !important;
    background:
      radial-gradient(circle at 15% 20%, rgba(255,255,255,.26), transparent 34%),
      radial-gradient(circle at 85% 70%, rgba(147,197,253,.24), transparent 42%),
      linear-gradient(140deg, rgba(56,189,248,.17), rgba(37,99,235,.10));
    box-shadow:
      0 0 0 2px rgba(147,197,253,.30),
      0 0 18px rgba(96,165,250,0.58),
      0 0 34px rgba(59,130,246,0.44),
      0 0 56px rgba(14,165,233,0.26);
    animation:
      afSuperLeagueFlow 1.3s ease-in-out infinite,
      afSuperLeaguePulse .24s steps(2,end) infinite;
    filter: drop-shadow(0 0 7px rgba(59,130,246,.65)) drop-shadow(0 0 15px rgba(14,165,233,.45));
}
.avatar-framed.af-basicbuddy{
    border-color: #22c55e !important;
    background:
      radial-gradient(circle at 22% 15%, rgba(255,255,255,.24), transparent 36%),
      radial-gradient(circle at 78% 78%, rgba(250,204,21,.20), transparent 44%),
      linear-gradient(145deg, rgba(34,197,94,.18), rgba(250,204,21,.10));
    box-shadow:
      0 0 0 2px rgba(134,239,172,.30),
      0 0 14px rgba(34,197,94,0.56),
      0 0 30px rgba(234,179,8,0.34),
      0 0 48px rgba(16,185,129,0.24);
    animation:
      afBasicHeroGlow 1.45s ease-in-out infinite;
    filter: drop-shadow(0 0 7px rgba(34,197,94,.58)) drop-shadow(0 0 13px rgba(250,204,21,.38));
}
.avatar-framed.af-denemechamp{
    border-color: #fde047 !important;
    background:
      radial-gradient(circle at 20% 10%, rgba(255,255,255,.46), transparent 34%),
      radial-gradient(circle at 80% 78%, rgba(254,240,138,.30), transparent 44%),
      linear-gradient(140deg, rgba(250,204,21,.30), rgba(245,158,11,.16));
    box-shadow:
      0 0 0 2px rgba(254,240,138,.58),
      0 0 20px rgba(250,204,21,.82),
      0 0 44px rgba(245,158,11,.62),
      0 0 72px rgba(194,65,12,.44);
    animation:
      afGoldAura .95s ease-in-out infinite,
      afDenemeChampionBurst 1.9s linear infinite;
    filter: drop-shadow(0 0 8px rgba(250,204,21,.82)) drop-shadow(0 0 18px rgba(245,158,11,.6));
}
.avatar-framed.af-koseler-neon{
    border-width: 3px !important;
    border-style: solid !important;
    background:
      radial-gradient(circle at 18% 12%, rgba(255,255,255,.42), transparent 34%),
      radial-gradient(circle at 82% 82%, rgba(255,255,255,.18), transparent 42%),
      linear-gradient(135deg, rgba(34,197,94,.14), rgba(59,130,246,.12), rgba(250,204,21,.14));
    animation:
      afKoselerNeonCycle 2.4s linear infinite,
      afKoselerNeonPulse .28s steps(2,end) infinite;
    filter: drop-shadow(0 0 10px rgba(34,197,94,.55)) drop-shadow(0 0 16px rgba(59,130,246,.45)) drop-shadow(0 0 22px rgba(250,204,21,.42));
}

/* Mobile main-screen optimization: keep neon look, reduce expensive effects */
@media (max-width: 900px), (pointer: coarse){
  #main-screen .avatar-framed{
    will-change: box-shadow, border-color;
    transform: translateZ(0);
    filter: none !important;
    animation: mainScreenNeonBase 1.9s ease-in-out infinite !important;
  }
  #main-screen .avatar-framed.af-worldchamp{
    animation: mainScreenNeonGold 1.35s ease-in-out infinite !important;
  }
  #main-screen .avatar-framed.af-rosequeen{
    animation: mainScreenNeonPink 1.35s ease-in-out infinite !important;
  }
  #main-screen .avatar-framed.af-superlite{
    animation: mainScreenNeonBlue 1.4s ease-in-out infinite !important;
  }
  #main-screen .avatar-framed.af-basicbuddy{
    animation: mainScreenNeonGreen 1.45s ease-in-out infinite !important;
  }
  #main-screen .avatar-framed.af-denemechamp{
    animation: mainScreenNeonGold 1.18s ease-in-out infinite !important;
  }
  #main-screen .avatar-framed.af-koseler-neon{
    animation: mainScreenNeonTriple 2.2s linear infinite !important;
  }
}

@keyframes mainScreenNeonBase{
  0%,100%{ box-shadow: 0 0 10px rgba(148,163,184,.32); }
  50%{ box-shadow: 0 0 18px rgba(148,163,184,.46); }
}
@keyframes mainScreenNeonGold{
  0%,100%{
    border-color:#fbbf24;
    box-shadow: 0 0 0 2px rgba(255,226,121,.34), 0 0 14px rgba(251,191,36,.42), 0 0 24px rgba(234,179,8,.26);
  }
  50%{
    border-color:#fde047;
    box-shadow: 0 0 0 2px rgba(255,236,153,.40), 0 0 20px rgba(251,191,36,.58), 0 0 34px rgba(249,115,22,.36);
  }
}
@keyframes mainScreenNeonPink{
  0%,100%{
    border-color:#f472b6;
    box-shadow: 0 0 0 2px rgba(249,168,212,.30), 0 0 12px rgba(244,114,182,.42), 0 0 22px rgba(236,72,153,.24);
  }
  50%{
    border-color:#f9a8d4;
    box-shadow: 0 0 0 2px rgba(251,207,232,.38), 0 0 18px rgba(244,114,182,.56), 0 0 30px rgba(236,72,153,.34);
  }
}
@keyframes mainScreenNeonBlue{
  0%,100%{
    border-color:#60a5fa;
    box-shadow: 0 0 0 2px rgba(191,219,254,.28), 0 0 12px rgba(96,165,250,.42), 0 0 22px rgba(37,99,235,.24);
  }
  50%{
    border-color:#93c5fd;
    box-shadow: 0 0 0 2px rgba(219,234,254,.36), 0 0 18px rgba(96,165,250,.58), 0 0 30px rgba(14,165,233,.34);
  }
}
@keyframes mainScreenNeonGreen{
  0%,100%{
    border-color:#4ade80;
    box-shadow: 0 0 0 2px rgba(134,239,172,.26), 0 0 12px rgba(34,197,94,.40), 0 0 22px rgba(16,185,129,.22);
  }
  50%{
    border-color:#86efac;
    box-shadow: 0 0 0 2px rgba(187,247,208,.34), 0 0 18px rgba(34,197,94,.54), 0 0 30px rgba(132,204,22,.32);
  }
}
@keyframes afDenemeChampionBurst{
  0%,100%{ transform:translateY(0) scale(1); }
  35%{ transform:translateY(-1px) scale(1.02); }
  70%{ transform:translateY(0) scale(1.01); }
}
@keyframes championTagGlow{
  0%,100%{ filter: brightness(1) saturate(1); transform: translateY(0); }
  50%{ filter: brightness(1.12) saturate(1.12); transform: translateY(-1px); }
}
@keyframes championRingSpin{
  to{ transform: rotate(360deg); }
}
@keyframes championSparkOrbit{
  0%{ transform: rotate(0deg) scale(1); opacity:.85; }
  50%{ transform: rotate(180deg) scale(1.04); opacity:1; }
  100%{ transform: rotate(360deg) scale(1); opacity:.85; }
}

.profile-photo-item:hover .avatar-framed{
    box-shadow: 0 0 20px rgba(255,255,255,0.24);
}
.store-avatar-frame{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.store-avatar-frame > img{
    display: block;
}
@keyframes afKoselerNeonCycle{
  0%, 100%{
    border-color: #22c55e;
    box-shadow:
      0 0 0 2px rgba(134,239,172,.42),
      0 0 18px rgba(34,197,94,.78),
      0 0 36px rgba(34,197,94,.48),
      0 0 58px rgba(16,185,129,.28);
    background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(15,23,42,.18));
  }
  33%{
    border-color: #60a5fa;
    box-shadow:
      0 0 0 2px rgba(147,197,253,.42),
      0 0 18px rgba(96,165,250,.78),
      0 0 36px rgba(59,130,246,.48),
      0 0 58px rgba(14,165,233,.28);
    background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(15,23,42,.18));
  }
  66%{
    border-color: #fbbf24;
    box-shadow:
      0 0 0 2px rgba(254,240,138,.42),
      0 0 18px rgba(250,204,21,.78),
      0 0 36px rgba(234,179,8,.48),
      0 0 58px rgba(245,158,11,.28);
    background: linear-gradient(135deg, rgba(250,204,21,.22), rgba(15,23,42,.18));
  }
}
@keyframes afKoselerNeonPulse{
  0%,100%{ filter: brightness(1.08) saturate(1.18); }
  50%{ filter: brightness(1.22) saturate(1.34); }
}
@keyframes mainScreenNeonTriple{
  0%,100%{
    border-color:#22c55e;
    box-shadow: 0 0 0 2px rgba(134,239,172,.34), 0 0 14px rgba(34,197,94,.42), 0 0 24px rgba(16,185,129,.26);
  }
  33%{
    border-color:#60a5fa;
    box-shadow: 0 0 0 2px rgba(147,197,253,.34), 0 0 14px rgba(96,165,250,.42), 0 0 24px rgba(14,165,233,.26);
  }
  66%{
    border-color:#fbbf24;
    box-shadow: 0 0 0 2px rgba(254,240,138,.34), 0 0 14px rgba(250,204,21,.42), 0 0 24px rgba(234,179,8,.26);
  }
}
@keyframes storeFramePulse{
  0%,100%{ transform: scale(1); filter: brightness(1.04); }
  50%{ transform: scale(1.02); filter: brightness(1.14); }
}
@keyframes storeFrameGold{
  0%,100%{ box-shadow: 0 0 16px rgba(250,204,21,.84), 0 0 34px rgba(249,115,22,.54), 0 0 58px rgba(234,88,12,.28); }
  50%{ box-shadow: 0 0 24px rgba(250,204,21,.98), 0 0 48px rgba(249,115,22,.74), 0 0 78px rgba(234,88,12,.42); }
}
@keyframes storeFramePink{
  0%,100%{ box-shadow: 0 0 16px rgba(244,114,182,.84), 0 0 34px rgba(236,72,153,.54), 0 0 58px rgba(190,24,93,.28); }
  50%{ box-shadow: 0 0 24px rgba(244,114,182,.98), 0 0 48px rgba(236,72,153,.74), 0 0 78px rgba(190,24,93,.42); }
}
@keyframes storeFrameBlue{
  0%,100%{ box-shadow: 0 0 16px rgba(96,165,250,.84), 0 0 34px rgba(37,99,235,.54), 0 0 58px rgba(14,165,233,.28); }
  50%{ box-shadow: 0 0 24px rgba(96,165,250,.98), 0 0 48px rgba(37,99,235,.74), 0 0 78px rgba(14,165,233,.42); }
}
@keyframes storeFrameGreen{
  0%,100%{ box-shadow: 0 0 16px rgba(34,197,94,.82), 0 0 34px rgba(234,179,8,.52), 0 0 56px rgba(16,185,129,.28); }
  50%{ box-shadow: 0 0 24px rgba(34,197,94,.96), 0 0 48px rgba(234,179,8,.72), 0 0 74px rgba(16,185,129,.40); }
}
@keyframes afPulse{
  0%,100%{ filter: brightness(1); }
  50%{ filter: brightness(1.06); }
}
@keyframes afGoldAura{
  0%,100%{
    box-shadow:
      0 0 0 2px rgba(255,226,121,.35),
      0 0 16px rgba(251,191,36,0.60),
      0 0 30px rgba(234,179,8,0.50),
      0 0 52px rgba(253,224,71,0.32);
  }
  50%{
    box-shadow:
      0 0 0 2px rgba(255,236,153,.42),
      0 0 24px rgba(250,204,21,0.82),
      0 0 42px rgba(245,158,11,0.66),
      0 0 70px rgba(253,224,71,0.48);
  }
}
@keyframes afPinkGlow{
  0%,100%{
    box-shadow:
      0 0 0 2px rgba(249,168,212,.30),
      0 0 14px rgba(244,114,182,0.58),
      0 0 28px rgba(236,72,153,0.48),
      0 0 46px rgba(244,114,182,0.26);
  }
  50%{
    box-shadow:
      0 0 0 2px rgba(251,207,232,.40),
      0 0 22px rgba(244,114,182,0.78),
      0 0 36px rgba(236,72,153,0.62),
      0 0 62px rgba(244,114,182,0.40);
  }
}
@keyframes afBlueFlow{
  0%,100%{
    box-shadow:
      0 0 0 2px rgba(147,197,253,.25),
      0 0 12px rgba(96,165,250,0.42),
      0 0 24px rgba(59,130,246,0.30);
  }
  50%{
    box-shadow:
      0 0 0 2px rgba(191,219,254,.30),
      0 0 18px rgba(96,165,250,0.60),
      0 0 34px rgba(59,130,246,0.45);
  }
}
@keyframes afGreenBreathe{
  0%,100%{
    box-shadow:
      0 0 0 2px rgba(110,231,183,.20),
      0 0 10px rgba(52,211,153,0.36),
      0 0 20px rgba(16,185,129,0.22);
  }
  50%{
    box-shadow:
      0 0 0 2px rgba(167,243,208,.26),
      0 0 14px rgba(52,211,153,0.50),
      0 0 30px rgba(16,185,129,0.34);
  }
}
@keyframes afSuperLeagueFlow{
  0%,100%{
    border-color:#60a5fa;
    box-shadow:
      0 0 0 2px rgba(147,197,253,.30),
      0 0 18px rgba(96,165,250,0.56),
      0 0 34px rgba(59,130,246,0.40),
      0 0 56px rgba(14,165,233,0.24);
  }
  50%{
    border-color:#93c5fd;
    box-shadow:
      0 0 0 2px rgba(191,219,254,.40),
      0 0 26px rgba(96,165,250,0.80),
      0 0 46px rgba(37,99,235,0.60),
      0 0 74px rgba(14,165,233,0.42);
  }
}
@keyframes afSuperLeaguePulse{
  0%,100%{ filter: brightness(1) saturate(1); }
  50%{ filter: brightness(1.14) saturate(1.20); }
}
@keyframes afBasicHeroGlow{
  0%,100%{
    border-color:#22c55e;
    box-shadow:
      0 0 0 2px rgba(134,239,172,.30),
      0 0 14px rgba(34,197,94,0.52),
      0 0 30px rgba(234,179,8,0.30),
      0 0 48px rgba(16,185,129,0.22);
  }
  50%{
    border-color:#4ade80;
    box-shadow:
      0 0 0 2px rgba(187,247,208,.40),
      0 0 22px rgba(34,197,94,0.72),
      0 0 40px rgba(250,204,21,0.52),
      0 0 66px rgba(16,185,129,0.34);
  }
}
@keyframes afBasicHeroSpark{
  0%{ transform: translateY(0) scale(1); }
  25%{ transform: translateY(-0.6px) scale(1.01); }
  50%{ transform: translateY(0.2px) scale(1.015); }
  75%{ transform: translateY(-0.4px) scale(1.01); }
  100%{ transform: translateY(0) scale(1); }
}
@keyframes afShimmer{
  0%{ filter: brightness(1) saturate(1); }
  50%{ filter: brightness(1.10) saturate(1.14); }
  100%{ filter: brightness(1) saturate(1); }
}
@keyframes afFlameFlicker{
  0%{
    border-color:#f59e0b;
    box-shadow:
      0 0 0 2px rgba(255,210,120,.35),
      0 0 16px rgba(255,170,0,.65),
      0 0 32px rgba(255,110,0,.45),
      0 0 54px rgba(255,70,0,.25);
  }
  25%{
    border-color:#fbbf24;
    box-shadow:
      0 0 0 2px rgba(255,225,150,.40),
      0 0 22px rgba(255,190,0,.85),
      0 0 40px rgba(255,130,0,.62),
      0 0 66px rgba(255,90,0,.34);
  }
  50%{
    border-color:#fde047;
    box-shadow:
      0 0 0 2px rgba(255,235,170,.45),
      0 0 28px rgba(255,205,40,.95),
      0 0 52px rgba(255,145,0,.72),
      0 0 82px rgba(255,95,0,.44);
  }
  75%{
    border-color:#f59e0b;
    box-shadow:
      0 0 0 2px rgba(255,214,130,.36),
      0 0 20px rgba(255,176,0,.78),
      0 0 36px rgba(255,118,0,.55),
      0 0 58px rgba(255,78,0,.32);
  }
  100%{
    border-color:#fbbf24;
    box-shadow:
      0 0 0 2px rgba(255,210,120,.35),
      0 0 16px rgba(255,170,0,.65),
      0 0 32px rgba(255,110,0,.45),
      0 0 54px rgba(255,70,0,.25);
  }
}
@keyframes afFlameFlickerPink{
  0%{
    border-color:#f472b6;
    box-shadow:
      0 0 0 2px rgba(253,164,223,.35),
      0 0 14px rgba(255,120,200,.62),
      0 0 28px rgba(255,90,170,.45),
      0 0 50px rgba(236,72,153,.28);
  }
  25%{
    border-color:#fb7185;
    box-shadow:
      0 0 0 2px rgba(251,207,232,.42),
      0 0 22px rgba(255,135,210,.82),
      0 0 40px rgba(255,90,190,.62),
      0 0 64px rgba(236,72,153,.36);
  }
  50%{
    border-color:#f9a8d4;
    box-shadow:
      0 0 0 2px rgba(252,231,243,.46),
      0 0 28px rgba(255,165,225,.94),
      0 0 48px rgba(255,110,200,.70),
      0 0 78px rgba(236,72,153,.44);
  }
  75%{
    border-color:#f472b6;
    box-shadow:
      0 0 0 2px rgba(253,164,223,.37),
      0 0 20px rgba(255,128,205,.76),
      0 0 34px rgba(255,92,182,.56),
      0 0 56px rgba(236,72,153,.31);
  }
  100%{
    border-color:#f472b6;
    box-shadow:
      0 0 0 2px rgba(253,164,223,.35),
      0 0 14px rgba(255,120,200,.62),
      0 0 28px rgba(255,90,170,.45),
      0 0 50px rgba(236,72,153,.28);
  }
}
@keyframes afHeatWave{
  0%,100%{ transform: translateY(0) scale(1); }
  20%{ transform: translateY(-0.5px) scale(1.008) rotate(-0.25deg); }
  40%{ transform: translateY(0.2px) scale(1.01) rotate(0.3deg); }
  60%{ transform: translateY(-0.4px) scale(1.012) rotate(-0.2deg); }
  80%{ transform: translateY(0.1px) scale(1.006) rotate(0.25deg); }
}
@keyframes afNeonBlastGold{
  0%,100%{ filter: brightness(1.25) saturate(1.4) hue-rotate(0deg); }
  50%{ filter: brightness(1.42) saturate(1.65) hue-rotate(-6deg); }
}
@keyframes afNeonBlastPink{
  0%,100%{ filter: brightness(1.25) saturate(1.45) hue-rotate(0deg); }
  50%{ filter: brightness(1.43) saturate(1.68) hue-rotate(8deg); }
}
@keyframes afNeonBlastBlue{
  0%,100%{ filter: brightness(1.24) saturate(1.42) hue-rotate(0deg); }
  50%{ filter: brightness(1.40) saturate(1.62) hue-rotate(-12deg); }
}
@keyframes afNeonBlastGreen{
  0%,100%{ filter: brightness(1.22) saturate(1.40) hue-rotate(0deg); }
  50%{ filter: brightness(1.36) saturate(1.58) hue-rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce){
  .avatar-framed,
  .avatar-framed.af-worldchamp,
  .avatar-framed.af-rosequeen,
  .avatar-framed.af-superlite,
  .avatar-framed.af-basicbuddy,
  .avatar-framed.af-denemechamp,
  .avatar-framed.af-koseler-neon{
    animation: none !important;
  }
  .store-avatar-frame,
  .store-avatar-frame.af-worldchamp,
  .store-avatar-frame.af-rosequeen,
  .store-avatar-frame.af-superlite,
  .store-avatar-frame.af-basicbuddy,
  .store-avatar-frame.af-denemechamp,
  .store-avatar-frame.af-koseler-neon{
    animation: none !important;
  }
}

/* Buton Stilleri */
.profile-photo-button {
    width: 70%;
    padding: 8px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.use-button {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.profile-photo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(-25deg); }
    100% { transform: translateX(100%) rotate(-25deg); }
}

/* Kapatma Butonu */
.profile-close-button {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Efektleri */
.profile-photo-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


.profile-photo-item:hover::before {
    animation: shine 1.5s infinite;
}

.profile-close-button:hover {
    color: #ff4444;
}

.buy-button:hover {
    background: #218838;
}

.use-button:hover {
    background: #0056b3;
}

.profile-categories {
   display: flex;
   overflow-x: auto;
   padding: 15px;
   gap: 15px;
   background: linear-gradient(145deg, #f6f7f9, #ffffff);
   border-radius: 15px;
   -webkit-overflow-scrolling: touch;
   scrollbar-width: none;
   white-space: nowrap;
   margin-bottom: 20px;
}

.profile-categories::-webkit-scrollbar {
    display: none;
}

.category-button {
   min-width: 200px;
   height: 50px;
   padding: 0 20px;
   border: none;
   border-radius: 12px;
   font-size: 1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   background: linear-gradient(45deg, #4e54c8, #8f94fb);
   color: white;
   box-shadow: 0 4px 15px rgba(78, 84, 200, 0.2);
   flex-shrink: 0;
   position: relative;
   overflow: hidden;
   opacity: 0.7; /* Default biraz soluk */
}

.category-button::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
   transition: 0.5s;
}

.category-button:hover::before {
   left: 100%;
}

.category-button:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 20px rgba(78, 84, 200, 0.3);
}

.category-button.active {
   opacity: 1;
   transform: scale(1.05);
   border: 2px solid #000; 
   box-shadow: 0 4px 20px rgba(45, 50, 184, 0.4);
   animation: activeButtonPulse 2s infinite;
}

[data-category="duel"] {
   background: linear-gradient(45deg, #f12711, #f5af19);
}

[data-category="duel"].active {
   background: linear-gradient(45deg, #f12711, #f5af19);
}

[data-category="lider"] {
   background: linear-gradient(45deg, #11998e, #38ef7d);
}

[data-category="lider"].active {
   background: linear-gradient(45deg, #11998e, #38ef7d);
}

[data-category="sampiyon"] {
   background: linear-gradient(45deg, #FFD700, #FFA500);
}

[data-category="sampiyon"].active {
   background: linear-gradient(45deg, #FFD700, #FFA500);
}

/* Aktif buton animasyonu */
@keyframes activeButtonPulse {
   0% { transform: scale(1.05); }
   50% { transform: scale(1.08); }
   100% { transform: scale(1.05); }
}

.category-button:hover {
   opacity: 0.9;
   transform: translateY(-2px);
}

.category-button.active:hover {
   opacity: 1;
}

@media (max-width: 768px) {
   .profile-categories {
       gap: 10px;
       padding: 10px;
   }

   .category-button {
       min-width: 160px;
       height: 45px;
       font-size: 0.9rem;
   }
}


.category-button.active {
   opacity: 1;
   transform: scale(1.05);
   background: linear-gradient(45deg, #2d32b8, #5c61f9);
   box-shadow: 0 4px 20px rgba(45, 50, 184, 0.4);
   animation: activeButtonPulse 2s infinite;
   border: 2px solid #000; /* Siyah çerçeve */
}

.category-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
animation: floatButton 1s ease infinite;
}

@keyframes floatButton {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .category-button {
        min-width: 160px;
        font-size: 0.9rem;
        padding: 0 15px;
    }
}


.profile-categories::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

.profile-photo-item {
   text-align: center; /* İçerikleri ortalar */
   padding: 15px;
}

.profile-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glowRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}





.question-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 700px;
    padding: 15px;
    border: 2px solid #ff8a00;
    border-radius: 10px;
    background-color: #fffbea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    gap: 15px; /* İçerikler arası boşluk */
}

/* Metin Bölümü */
.question-text-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

/* Üst metin (bilgi metni) */
.question-info-text {
    font-size: 1.1em;
    color: #333;
    padding: 10px;
    text-align: center;
}

/* Ayırıcı çizgi */
.question-divider {
    width: 90%;
    height: 1px;
    background: #ff8a00;
    margin: 0 auto;
    opacity: 0.5;
}

/* Alt metin (soru metni) */
.question-actual-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    padding: 10px;
    text-align: center;
}












.current-diamonds {
    position: relative; /* Pseudo-element için gerekli */
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden; /* Pseudo-element taşmasını önlemek için */
    transition: transform 0.3s ease; /* Hover animasyonu için */
}

.current-diamonds::before {
    display: none; /* Efekti tamamen kaldır */
}

.current-diamonds::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: backgroundGlow 4s ease-in-out infinite; /* Arka plan parlaklık animasyonu */
}

.current-diamonds:hover::after {
    opacity: 1;
}

.current-diamonds:hover {
    transform: scale(1.05); /* Hover durumunda hafif büyüme */
}

.diamond-icon {
    font-size: 1.2em;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes waveMove {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }
    50% {
        transform: rotate(180deg) translate(10px, 10px);
    }
    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

/* Yeni Eklenen Arka Plan Parlaklık Animasyonu */
@keyframes backgroundGlow {
    0% {
        box-shadow: 0 0 10px rgba(79, 195, 247, 0.3), 0 0 20px rgba(79, 195, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 195, 247, 0.6), 0 0 30px rgba(79, 195, 247, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(79, 195, 247, 0.3), 0 0 20px rgba(79, 195, 247, 0.2);
    }
}

/* Metindeki Parlaklık Efektini Kaldırdım */
.diamond-amount {
    font-weight: bold;
    font-size: 1.1em;
    color: #4fc3f7;
    /* Metindeki glowText animasyonunu kaldırdık */
    /* transition: color 0.3s ease; */
}


















.register-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    margin-left: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.register-button:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}

.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
    animation: fadeIn 0.3s ease-in-out;
}

.registration-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.registration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.registration-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.registration-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 175, 80, 0.2);
}

.registration-submit {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.registration-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.registration-submit:not(:disabled):hover {
    background: #45a049;
    transform: scale(1.02);
}

.registration-error {
    color: #dc3545;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
    min-height: 20px;
}

.verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
}

.verification-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: fadeIn 0.3s ease-in-out;
}

.verification-content h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.verification-content p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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






.user-ranking-stats {
   margin-top: auto;
   flex-shrink: 0;
   padding: 14px;
   background: linear-gradient(135deg, #4338ca, #6366f1);
   border-radius: 12px;
   color: white;
}

@keyframes slideUp {
   0% {
       transform: translateY(30px);
       opacity: 0;
   }
   100% {
       transform: translateY(0);
       opacity: 1;
   }
}

.user-ranking-stats:hover {
   box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.stats-header {
   font-size: 1.3em;
   font-weight: bold;
   text-align: center;
   margin-bottom: 12px;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.stats-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 12px 15px;
   background: rgba(255, 255, 255, 0.12);
   border-radius: 12px;
   backdrop-filter: blur(4px);
   border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-info {
   display: flex;
   align-items: center;
   gap: 25px;
}

.rank-number, .total-players {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 4px;
}

.rank-label, .total-label {
   font-size: 0.85em;
   opacity: 0.95;
   letter-spacing: 0.3px;
}

.rank-value, .total-value {
   font-size: 1.5em;
   font-weight: bold;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.user-trophy {
   display: flex;
   align-items: center;
   gap: 8px;
   background: rgba(255, 215, 0, 0.15);
   padding: 8px 15px;
   border-radius: 10px;
   border: 1px solid rgba(255, 215, 0, 0.2);
   margin-left: 10px;
}

.trophy-icon {
   font-size: 1.4em;
   filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.trophy-value {
   font-size: 1.4em;
   font-weight: bold;
   color: #ffd700;
   text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes trophyBounce {
   0%, 100% { transform: translateY(0) rotate(0deg); }
   50% { transform: translateY(-3px) rotate(3deg); }
}

@media (max-width: 480px) {
   .user-ranking-stats {
       margin: 10px auto;
       padding: 12px 15px;
   }
   
   .stats-content {
       padding: 10px 12px;
   }
   
   .rank-info {
       gap: 20px;
   }
   
   .rank-value, .total-value, .trophy-value {
       font-size: 1.3em;
   }
   
   .trophy-icon {
       font-size: 1.2em;
   }
}





.credits-stats {
    background: linear-gradient(145deg, #ff9900, #db6204);
    position: relative;
}

.credits-glow {
    background: radial-gradient(circle at center,
        rgba(99, 102, 241, 0.3) 0%,
        transparent 70%);
    animation: pulseCredits 2s ease-in-out infinite;
}

.credits-stats .stats-icon {
    animation: floatGame 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.credits-stats .stats-value {
    background: linear-gradient(45deg, #ffffff, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerCredits 3s linear infinite;
}

.tip-title {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

@keyframes pulseCredits {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes floatGame {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
    50% { transform: translateY(-3px) scale(1.05); filter: brightness(1.2); }
}

@keyframes shimmerCredits {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}






/* Ana mağaza kabı */
.duel-credits-store {
  background: linear-gradient(135deg, #1a1c2b, #2d324d);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  max-width: 1200px; /* Daha geniş ekranlarda ortalamak için */
  margin: 0 auto;    /* Ortalamak için */
  max-height: 450px;      /* Sabit yükseklikten kaçın */
  overflow-y: auto;  /* İçerik uzadığında dikeyde kaydırma yapabilmek için */
}

/* Paketlerin bulunduğu konteyner - grid yapısı */
.credits-packages-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 15px;
  height: auto;      /* Sabit yükseklikten kaçın */
}

/* Paket Kartları */
.credit-package {
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-package:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Paket İçerikleri */
.package-header {
  text-align: center;
  margin-bottom: 15px;
}

.package-amount {
  font-size: 1.4em;
  font-weight: bold;
  background: linear-gradient(45deg, #f5d020, #ff9933);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.package-subtitle {
  color: #a0aec0;
  font-size: 0.9em;
}

.package-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px 0;
  font-size: 1.2em;
  color: #4fd1c5;
}

/* Satın Al Butonu */
.buy-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-button:hover {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  transform: scale(1.05);
}

/* Unlimited Paketi Özel Görünüm */
.credit-package.unlimited {
  background: linear-gradient(145deg, #4f46e5, #4338ca);
  color: #ffffff;
  position: relative;
  overflow: hidden; /* Parlama efektini göstermek için parent'ta kalabilir */
}

.credit-package.unlimited::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 3s infinite linear;
}

/* Parlaklık Animasyonu */
@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Mobil uyumlu tasarım için medya sorgusu */
@media (max-width: 768px) {
  .credits-packages-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .duel-credits-store {
    padding: 20px;
    /* Yine height: auto ve overflow-y: auto burada da geçerli kalmalı */
  }

  .credit-package {
    padding: 15px;
  }

  .package-amount {
    font-size: 1.2em;
  }

  .package-price {
    font-size: 1.1em;
  }
}







.credits-stats.unlimited {
    background: linear-gradient(145deg, #6ddb0d, #11f0d6);
    color: white;
    position: relative;
    overflow: hidden;
}

.credits-stats.unlimited::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmerEffect 2s infinite;
}

.credits-stats.unlimited .stats-value {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: pulseText 2s infinite;
}

@keyframes shimmerEffect {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes pulseText {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}






/* Seçim animasyonu: Slide-in efekti */
.animate-slideIn {
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* İsteğe bağlı: Seçim alanı (duel-selection-banner) için ekstra stil */
.duel-selection-banner {
  text-align: center;
  margin-bottom: 20px;
}

.selection-item {
  font-size: 1.2em;
  margin: 5px 0;
}



/* === Düello Seçim Ekranı için Yenilenmiş Stil === */
#duel-selection-screen {
  /* Dinamik ve derin bir arka plan */
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  animation: duelBgAnimation 8s ease-in-out infinite alternate;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  margin: 40px auto;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s forwards, duelBgAnimation 8s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

/* Arka plan animasyonu */
@keyframes duelBgAnimation {
  0% {
    background: linear-gradient(135deg, #1f1c2c, #928dab);
  }
  100% {
    background: linear-gradient(135deg, #232526, #414345);
  }
}

/* Fade in yukarı animasyonu */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Başlık animasyonu ve stil düzenlemesi */
#duel-selection-screen h2 {
  font-size: 2.2em;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  margin-bottom: 20px;
  animation: headerPulse 2s ease-in-out infinite alternate;
}

@keyframes headerPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
  }
  100% {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(0,0,0,0.9);
  }
}

.selecting-student-banner {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffeb3b;
  text-align: center;
  /* Örneğin, üst, sağ, alt, sol için sırasıyla 20px, 15px, 10px, 15px boşluk */
  margin: 20px 15px 10px 15px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.3);
  box-shadow: 0 0 10px rgba(255,235,59,0.7);
  animation: glowBanner 1.5s infinite alternate;
}


@keyframes glowBanner {
  from {
    box-shadow: 0 0 10px rgba(255,235,59,0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(255,235,59,1);
  }
}

/* Table-section (konu belirleme) kutusu: hafif transparan, yuvarlatılmış */
#duel-selection-screen .table-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px;
  border-radius: 15px;
  margin-bottom: 20px;
  animation: slideInFromLeft 0.6s ease-out;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Label ve select elementleri */
#duel-selection-screen label {
  display: block;
  margin: 10px 0 5px;
  color: #fff;
  font-weight: 600;
}
#duel-selection-screen select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1em;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}
#duel-selection-screen select:focus {
  background: rgba(255,255,255,0.3);
  border-color: #ffeb3b;
}

/* Duel start butonu */
.duel-start-button {
  background: linear-gradient(45deg, #ff5722, #e91e63);
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.3s;
  opacity: 0.8;
}
.duel-start-button.active,
.duel-start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  opacity: 1;
}

/* Duel bottom info (oyuncu bilgileri) – dinamik hover ve animasyon */
.duel-bottom-info {
  display: flex;
  justify-content: space-evenly;
  margin-top: 5px;
  animation: fadeInUp 0.8s ease;
}
.duel-player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.duel-player-photo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #ffeb3b;
  transition: transform 0.4s ease;
}
.duel-player-photo:hover {
  transform: rotate(360deg);
}
.duel-player-name {
  margin-top: 10px;
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

/* Countdown container – modern ve net görünüm */
.countdown-container {
  position: absolute;
  margin-bottom: 10px;
  top: 15px;
  right: 15px;
  z-index: 10;
}
.countdown {
  font-size: 1em;
  color: #ff5722;
  margin-bottom: 10px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulseCountdown 1.5s infinite;
}

@keyframes pulseCountdown {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Option butonları (soru seçiminde kullanılanlar) – isteğe bağlı */
#duel-selection-screen .option-button {
  transition: transform 0.2s, background-color 0.2s;
}
#duel-selection-screen .option-button:hover {
  transform: scale(1.05);
}

/* Genel responsive ayarlamaları (isteğe bağlı) */
@media (max-width: 480px) {
  #duel-selection-screen {
    padding: 20px;
    margin: 20px;
  }
  #duel-selection-screen h2 {
    font-size: 1.8em;
  }
  .duel-player-photo {
    width: 60px;
    height: 60px;
  }
}








/* ========== Gelişmiş Alert Modal Tasarımı ========== */
.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.alert-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
  position: relative;
  animation: slideDownModal 0.4s ease;
}

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

.alert-message {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 20px;
  /* Hafif parıltı efekti */
  animation: textGlow 1.5s infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 5px rgba(0,123,255,0.5); }
  to { text-shadow: 0 0 10px rgba(0,123,255,1); }
}

.alert-ok-button {
  background: linear-gradient(45deg, #007BFF, #00BFFF);
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.alert-ok-button:hover {
  background: linear-gradient(45deg, #0056b3, #009acd);
  transform: scale(1.05);
}











/* --- Nova Stars --- */
.star-badges{ display:inline-flex; gap:4px; vertical-align:middle; margin-left:6px; }

/* --- Nova Stars (Frame Update) --- */
.star-frame{
  display:none !important;
  justify-content:center;
  align-items:center;
  gap:4px;
  margin-top:6px;
  padding:4px 8px;
  border:1px solid rgba(255,193,7,.9);
  background: linear-gradient(180deg, rgba(255, 243, 205, .35), rgba(255, 214, 102, .12));
  border-radius:10px;
  min-height:26px;
  min-width:56px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 4px rgba(255, 213, 79, .25);
}
.star-frame .star-badges{ margin-left:0 !important; }
.star-frame .star{ line-height:1; display:inline-block; }
.star{ font-size:16px; filter: drop-shadow(0 0 1px rgba(255,215,0,.6)); animation: starPulse 1.8s ease-in-out infinite; }
.star.bright{ filter: drop-shadow(0 0 2px rgba(255,230,80,.9)) drop-shadow(0 0 6px rgba(255,200,50,.6)); }
.star.flame{ position:relative; animation: starFlame 1.2s ease-in-out infinite; }
.star.flame::after{
    content: ''; position:absolute; top:-6px; left:50%; width:6px; height:10px; transform:translateX(-50%);
    background: radial-gradient(circle at 50% 100%, rgba(255,140,0,.9), rgba(255,69,0,.6) 60%, rgba(255,0,0,0) 70%);
    filter: blur(1px);
    border-radius: 12px 50% 40% 40%;
    opacity:.8;
}
@keyframes starPulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.12);} }
@keyframes starFlame { 0%,100%{ transform: translateY(0) rotate(-2deg);} 50%{ transform: translateY(-1px) rotate(2deg);} }


/* === Mobile Market/Profile Scroll Fixes (Nova) === */
html {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: visible;
}

@supports (height: 100dvh) {
  .profile-change-overlay { min-height: 100dvh; }
}

.profile-change-overlay {
  overflow-y: auto;                 /* Allow the overlay to scroll on small screens */
  align-items: flex-start;          /* Avoid vertical centering that hides the header */
  padding-top: max(12px, env(safe-area-inset-top));  /* Respect notches/status bars */
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.profile-change-content {
  max-height: none;                 /* Let content grow; inner sections handle their own scroll */
}

/* Inner store scrollers */
.duel-credits-store {
  max-height: none;                 /* Remove restrictive height */
  overflow-y: visible;
}

/* Make package grid single-column on phones */
@media (max-width: 600px) {
  .profile-change-content {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    padding: 16px;
  }
  .credits-packages-container {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .profile-categories {
    padding: 10px;
  }
  .ranking-panel { width: 100%; }
}

/* Ensure headers/buttons are fully visible and not cut */
.profile-change-header,
.profile-categories,
.profile-change-content h2 {
  scroll-margin-top: 16px;
}

/* Allow touch momentum scrolling on iOS */
.profile-change-overlay,
.duel-credits-store,
.credits-packages-container {
  -webkit-overflow-scrolling: touch;
}
/* === End of Mobile Fixes === */


/* === NOVA: Sürpriz Kutu Stil === */
.surprise-box{
  position:absolute;
  top:12px; left:12px; /* Sol üst */
  display:flex; flex-direction:column; align-items: center;
  z-index:2; /* profil fotoğrafı üstte kalsın */
  user-select:none; cursor:pointer;
  filter: grayscale(0.25);
  opacity:.85;
  transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}
.surprise-box img{
  width:48px; height:48px; object-fit:contain; pointer-events:none;
}

@media (max-width: 480px){
  .surprise-box{ top:10px; left:10px; }
  .surprise-box img{ width:42px; height:42px; }
  .surprise-box-counter{
    margin-top:2px;
    padding:2px 4px;
    font-size:.72rem;
    max-width:42px;
    display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  min-width: 48px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

}

.surprise-box-counter{
  margin-top:3px;
  padding:2px 6px;
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  max-width: 48px;        /* kutu görseli ile orantılı olsun */
  width: max-content;     /* metne göre ölçülensin */
  white-space: normal;    /* taşarsa alt satıra geçsin */
  word-break: break-word;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  min-width: 48px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.surprise-box.locked{ filter: grayscale(0.6); opacity:.6; cursor:not-allowed; animation:none !important; }
.surprise-box.active{ filter: grayscale(0); opacity:1; animation: sbPulse 1.4s ease-in-out infinite; }
@keyframes sbPulse { 0%,100%{ transform: scale(1)} 50%{ transform: scale(1.06)} }

/* Particles for reward animation */
.reward-overlay{
  position: fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.45); z-index: 99999; animation: fadeIn .25s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.reward-chest{
  background: radial-gradient(ellipse at center, #fff 0%, #eee 55%, #ddd 100%);
  border-radius: 18px; padding: 24px 28px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  display:flex; flex-direction:column; align-items:center; gap:8px; min-width: 260px;
  transform: scale(.95);
  animation: popIn .28s ease forwards;
}
@keyframes popIn { to{ transform: scale(1)} }
.reward-amount{ font-size: 2.2rem; font-weight: 900 }
.reward-caption{ font-weight:800; opacity:.9 }
.particle{ position: fixed; font-size: 22px; pointer-events:none; will-change: transform, opacity }
@media (max-width:600px){
  .surprise-box{ top:8px; left:8px }
  .surprise-box img{ width:76px; height:76px }
  .surprise-box-counter{
  margin-top:3px;
  padding:2px 6px;
  background: rgba(0,0,0,.55);
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  max-width: 48px;        /* kutu görseli ile orantılı olsun */
  width: max-content;     /* metne göre ölçülensin */
  white-space: normal;    /* taşarsa alt satıra geçsin */
  word-break: break-word;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space: nowrap;
  min-width: 48px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

}
/* === /NOVA Sürpriz Kutu Stil === */


/* === NOVA PATCH: Mağaza kategori rengi override (kızlarköşesi = pembe, TemelKarakterler = mavi) === */
.profile-categories .category-button[data-category="TemelKarakterler"],
.profile-categories .category-button[data-category="temelkarakterler"] {
  background-image: linear-gradient(135deg, #2f80ed, #56ccf2);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 18px rgba(47,128,237,0.35), inset 0 0 0 1px rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.profile-categories .category-button[data-category="TemelKarakterler"]::before,
.profile-categories .category-button[data-category="temelkarakterler"]::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 45%);
  animation: novaShine 2.4s linear infinite;
  pointer-events: none;
}
.profile-categories .category-button[data-category="TemelKarakterler"]:hover,
.profile-categories .category-button[data-category="temelkarakterler"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.profile-categories .category-button[data-category="TemelKarakterler"].active,
.profile-categories .category-button[data-category="temelkarakterler"].active {
  box-shadow: 0 10px 24px rgba(47,128,237,0.45);
}

/* Türkçe karakter olasılıklarının tamamı için geniş seçiciler */
.profile-categories .category-button[data-category="KizlarKösesi"],
.profile-categories .category-button[data-category="KizlarKöşesi"],
.profile-categories .category-button[data-category="KızlarKösesi"],
.profile-categories .category-button[data-category="KızlarKöşesi"],
.profile-categories .category-button[data-category="KIZLARKÖŞESİ"],
.profile-categories .category-button[data-category="kızlarköşesi"],
.profile-categories .category-button[data-category="KizlarKosesi"],
.profile-categories .category-button[data-category="KIZLARKOSESİ"],
.profile-categories .category-button[data-category="kizlarkosesi"] {
  background-image: linear-gradient(135deg, #ff4db8, #ff8bd7);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 18px rgba(255, 77, 184, 0.35), inset 0 0 0 1px rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.profile-categories .category-button[data-category="KizlarKösesi"]::before,
.profile-categories .category-button[data-category="KizlarKöşesi"]::before,
.profile-categories .category-button[data-category="KızlarKösesi"]::before,
.profile-categories .category-button[data-category="KızlarKöşesi"]::before,
.profile-categories .category-button[data-category="KIZLARKÖŞESİ"]::before,
.profile-categories .category-button[data-category="kızlarköşesi"]::before,
.profile-categories .category-button[data-category="KizlarKosesi"]::before,
.profile-categories .category-button[data-category="KIZLARKOSESİ"]::before,
.profile-categories .category-button[data-category="kizlarkosesi"]::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 45%);
  animation: novaShine 2.4s linear infinite;
  pointer-events: none;
}
.profile-categories .category-button[data-category="KizlarKösesi"]:hover,
.profile-categories .category-button[data-category="KizlarKöşesi"]:hover,
.profile-categories .category-button[data-category="KızlarKösesi"]:hover,
.profile-categories .category-button[data-category="KızlarKöşesi"]:hover,
.profile-categories .category-button[data-category="KIZLARKÖŞESİ"]:hover,
.profile-categories .category-button[data-category="kızlarköşesi"]:hover,
.profile-categories .category-button[data-category="KizlarKosesi"]:hover,
.profile-categories .category-button[data-category="KIZLARKOSESİ"]:hover,
.profile-categories .category-button[data-category="kizlarkosesi"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.profile-categories .category-button[data-category="KizlarKösesi"].active,
.profile-categories .category-button[data-category="KizlarKöşesi"].active,
.profile-categories .category-button[data-category="KızlarKösesi"].active,
.profile-categories .category-button[data-category="KızlarKöşesi"].active,
.profile-categories .category-button[data-category="KIZLARKÖŞESİ"].active,
.profile-categories .category-button[data-category="kızlarköşesi"].active,
.profile-categories .category-button[data-category="KizlarKosesi"].active,
.profile-categories .category-button[data-category="KIZLARKOSESİ"].active,
.profile-categories .category-button[data-category="kizlarkosesi"].active {
  box-shadow: 0 10px 24px rgba(255, 77, 184, 0.45);
}

/* Hafif parıltı animasyonu */
@keyframes novaShine {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 0.9; }
  50%  { transform: translate(15%,15%) rotate(45deg); opacity: 1; }
  100% { transform: translate(30%,30%) rotate(90deg); opacity: 0.9; }
}
/* === NOVA PATCH SONU === */


/* === Nova Responsive Patch v1 === */
:root{
  --q-max-w: min(95vw, 900px);
  --q-min-h: min(60vh, 520px);
  --qpad: clamp(10px, 2.2vw, 20px);
  --q-font: clamp(16px, 2.2vw, 22px);
  --opt-font: clamp(14px, 2vw, 20px);
  --timer-font: clamp(16px, 2.5vw, 22px);
}
.single-player-game-container,
.duel-game-container{
  width: 100%;
  max-width: 1200px;
  padding: clamp(12px, 2.5vw, 30px);
}
.question-container{
  width: 100%;
  max-width: var(--q-max-w);
  min-height: var(--q-min-h);
  padding: var(--qpad);
}
.question-text{
  font-size: var(--q-font);
  line-height: 1.3;
  padding: 6px 0;
}
.timer{ font-size: var(--timer-font); }
.options-container{
  width: 100%;
  max-width: var(--q-max-w);
  gap: clamp(8px, 2vw, 18px);
}
.option-button{
  flex: 1 1 calc(50% - 12px);
  min-width: clamp(140px, 40vw, 360px);
  font-size: var(--opt-font);
  padding: clamp(10px, 2vw, 16px) clamp(12px, 2.2vw, 18px);
}
@media (max-width: 640px){
  .option-button{ flex: 1 1 100%; min-width: 0; }
}
.question-image{
  max-width: 100%;
  max-height: 50vh;
  height: auto;
  object-fit: contain;
}
/* Duel top info row width guard */
.players-info-row{
  width: 100%;
  max-width: var(--q-max-w);
}
/* Make score/winner messages wrap safely on mobile */
.winner-message,.score-message{
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* === End Nova Responsive Patch v1 === */


/* Ensure game containers expand full width when visible */
.single-player-game-container[style*="display: block"],
.duel-game-container[style*="display: block"],
.single-player-game-container.active,
.duel-game-container.active{
  display:flex !important;
}


/* === NOVA: Single Player Result - Circular Percentage Ring === */
.nova-circular-wrap{width:min(220px,72vw);height:min(220px,72vw);position:relative;margin:10px auto 0;display:flex;align-items:center;justify-content:center}
.nova-circular{width:100%;height:100%;transform:rotate(-90deg)}
.nova-track{fill:none;stroke:#e6e6e6;stroke-width:14}
.nova-progress{fill:none;stroke-width:14;stroke-linecap:round;transition:stroke-dashoffset 1.2s ease}
.nova-percent-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:2.2rem;letter-spacing:.5px;color:#111;text-shadow:0 2px 8px rgba(0,0,0,.15)}
.nova-ring-glow{filter:drop-shadow(0 4px 14px rgba(0,0,0,.15))}
@keyframes novaPop{from{transform:scale(.9);opacity:.0}to{transform:scale(1);opacity:1}}
.nova-circular-wrap{animation:novaPop .35s ease-out}
/* === NOVA END === */


/* === Nova: Duel Result FX v2 === */
.duel-player-score.winner{
  background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(5,150,105,.08));
  box-shadow: 0 10px 28px rgba(16,185,129,.25), inset 0 0 0 2px rgba(5,150,105,.45);
  transform-origin: center;
  animation: novaWinPulse .9s ease-out 1, novaWinGlow 2.2s ease-in-out infinite alternate;
}
.duel-player-score.loser{
  background: linear-gradient(135deg, rgba(239,68,68,.06), rgba(220,38,38,.06));
  box-shadow: 0 10px 24px rgba(220,38,38,.18), inset 0 0 0 2px rgba(220,38,38,.35);
  filter: grayscale(.25) saturate(.9);
  position: relative;
  overflow: hidden;
  animation: novaLoseShake 1.2s ease-in-out 1;
}
.duel-player-score.loser::after{
  content:'';
  position:absolute; inset:-10px;
  background: radial-gradient(ellipse at center, rgba(239,68,68,.20), transparent 60%);
  backdrop-filter: blur(2px);
  pointer-events:none;
}
.duel-player-score.tie{
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(37,99,235,.08));
  box-shadow: 0 10px 24px rgba(59,130,246,.22), inset 0 0 0 2px rgba(37,99,235,.45);
}

#winner-message {
  letter-spacing:.4px;
}
.duel-final-theme-win #winner-message{
  background: linear-gradient(90deg,#22c55e,#16a34a,#22c55e);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 18px rgba(16,185,129,.35);
}
.duel-final-theme-lose #winner-message{
  background: linear-gradient(90deg,#ef4444,#dc2626,#ef4444);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 14px rgba(239,68,68,.35);
}
.duel-final-theme-tie #winner-message{
  background: linear-gradient(90deg,#60a5fa,#3b82f6,#60a5fa);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow: 0 0 14px rgba(59,130,246,.35);
}

/* Subtle vignette on the whole duel screen based on result */
#duel-game-screen.duel-final-theme-win::before,
#duel-game-screen.duel-final-theme-lose::before,
#duel-game-screen.duel-final-theme-tie::before{
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
}
#duel-game-screen.duel-final-theme-win::before{ background: radial-gradient(1200px 800px at 50% 30%, rgba(16,185,129,.10), transparent 60%); }
#duel-game-screen.duel-final-theme-lose::before{ background: radial-gradient(1200px 800px at 50% 30%, rgba(239,68,68,.12), transparent 60%); }
#duel-game-screen.duel-final-theme-tie::before{ background: radial-gradient(1200px 800px at 50% 30%, rgba(59,130,246,.10), transparent 60%); }

/* Confetti canvas positioning */
#duel-confetti {
  position: fixed; inset:0; z-index: 9998; pointer-events: none;
}

/* keyframes */
@keyframes novaWinPulse{
  0%{ transform: scale(.9) }
  60%{ transform: scale(1.05) }
  100%{ transform: scale(1) }
}
@keyframes novaWinGlow{
  from{ box-shadow: 0 10px 28px rgba(16,185,129,.25), inset 0 0 0 2px rgba(5,150,105,.45) }
  to{ box-shadow: 0 14px 34px rgba(16,185,129,.35), inset 0 0 0 2px rgba(5,150,105,.65) }
}
@keyframes novaLoseShake{
  0%,100%{ transform: translateX(0) }
  20%{ transform: translateX(-4px) }
  40%{ transform: translateX(4px) }
  60%{ transform: translateX(-3px) }
  80%{ transform: translateX(3px) }
}
