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

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #0f3460;
    --accent-red: #e94560;
    --accent-orange: #f39c12;
    --accent-yellow: #f1c40f;
    --accent-green: #2ecc71;
    --accent-blue: #3498db;
    --text-primary: #ffffff;
    --text-secondary: #b8c6db;
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --btn-tokat: #e74c3c;
    --btn-tekme: #e67e22;
    --btn-tukur: #27ae60;
    --btn-yumruk: #8e44ad;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #0a0a23 100%);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
#game-header {
    text-align: center;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.game-title {
    font-family: 'Bangers', cursive;
    font-size: 2.2rem;
    letter-spacing: 3px;
    background: linear-gradient(to right, var(--accent-red), var(--accent-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(233, 69, 96, 0.3));
    margin-bottom: 0.3rem;
}

#score-board {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.score-number {
    font-family: 'Bangers', cursive;
    font-size: 1.6rem;
    color: var(--accent-yellow);
}

/* ========== GAME AREA ========== */
#game-area {
    flex: 1;
    display: flex;
    gap: 1rem;
    align-items: stretch;
    min-height: 0;
}

/* ========== CHARACTER SECTION ========== */
#character-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#character-name-bar {
    text-align: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

#current-character-name {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--accent-orange);
}

#character-stage {
    flex: 1;
    background: radial-gradient(ellipse at center bottom, #2c3e6d 0%, #1a1a3e 70%);
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

#character-stage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

#screen-shake-wrapper {
    position: relative;
    width: 95%;
    max-width: 420px;
    transition: transform 0.05s ease;
}

#character-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

/* ========== HIT OVERLAY ========== */
#hit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

#hit-overlay.flash-red {
    animation: flashRed 0.15s ease-out;
}

#hit-overlay.flash-blue {
    animation: flashBlue 0.2s ease-out;
}

@keyframes flashRed {
    0% { background: rgba(231, 76, 60, 0.4); }
    100% { background: transparent; }
}

@keyframes flashBlue {
    0% { background: rgba(52, 152, 219, 0.3); }
    100% { background: transparent; }
}

/* ========== SPEECH BUBBLE ========== */
#speech-bubble {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 0.6rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 800;
    max-width: 80%;
    text-align: center;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: opacity 0.3s, transform 0.3s;
}

#speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid white;
}

#speech-bubble.hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
    pointer-events: none;
}

/* ========== CONTROLS SECTION ========== */
#controls-section {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-shrink: 0;
}

#action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border: none;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255,255,255,0.12);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}

.action-btn:active {
    transform: scale(0.92);
}

.action-btn .btn-icon {
    font-size: 1.4rem;
}

.btn-tokat {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 0 #962d22, 0 6px 20px rgba(231, 76, 60, 0.3);
}
.btn-tokat:active {
    box-shadow: 0 1px 0 #962d22, 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-tekme {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 4px 0 #a04000, 0 6px 20px rgba(230, 126, 34, 0.3);
}
.btn-tekme:active {
    box-shadow: 0 1px 0 #a04000, 0 2px 8px rgba(230, 126, 34, 0.3);
}

.btn-tukur {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 4px 0 #145a32, 0 6px 20px rgba(39, 174, 96, 0.3);
}
.btn-tukur:active {
    box-shadow: 0 1px 0 #145a32, 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-yumruk {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    box-shadow: 0 4px 0 #4a235a, 0 6px 20px rgba(142, 68, 173, 0.3);
}
.btn-yumruk:active {
    box-shadow: 0 1px 0 #4a235a, 0 2px 8px rgba(142, 68, 173, 0.3);
}

/* ========== EXTRA CONTROLS ========== */
#extra-controls {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.control-btn {
    padding: 0.6rem 1rem;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.control-btn:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

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

/* ========== VOLUME CONTROL ========== */
#volume-control {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 0.4rem;
}

.volume-icon {
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.volume-label {
    display: flex;
    align-items: center;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-yellow);
    border: 2px solid rgba(0,0,0,0.2);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-yellow);
    border: 2px solid rgba(0,0,0,0.2);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.volume-value {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: right;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-title {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    text-align: center;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

#character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.char-card {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.char-card:hover {
    border-color: var(--accent-orange);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.char-card.active {
    border-color: var(--accent-yellow);
    background: rgba(241, 196, 15, 0.1);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.2);
}

.char-card svg {
    width: 80px;
    height: 90px;
    margin: 0 auto 0.4rem;
    display: block;
}

.char-card-name {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.char-card-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

#modal-close {
    width: 100%;
    margin-top: 0.5rem;
}

/* ========== COMBO POPUP ========== */
#combo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    color: var(--accent-yellow);
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.6), 0 4px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
}

#combo-popup.show {
    animation: comboPopIn 0.6s ease-out forwards;
}

@keyframes comboPopIn {
    0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
    40% { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(0.95) rotate(-2deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0; }
}

/* ========== HIT TEXT ========== */
#hit-text-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 50;
}

.hit-text {
    position: absolute;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 10px currentColor;
    pointer-events: none;
    animation: hitTextFloat 0.8s ease-out forwards;
}

.hit-text.tokat { color: var(--btn-tokat); }
.hit-text.tekme { color: var(--btn-tekme); }
.hit-text.tukur { color: var(--btn-tukur); }
.hit-text.yumruk { color: var(--btn-yumruk); }

@keyframes hitTextFloat {
    0% { transform: translate(-50%, 0) scale(0.5) rotate(-5deg); opacity: 0; }
    20% { transform: translate(-50%, -20px) scale(1.2) rotate(3deg); opacity: 1; }
    100% { transform: translate(-50%, -80px) scale(0.8) rotate(-2deg); opacity: 0; }
}

/* ========== SCREEN SHAKE ========== */
.shake-light {
    animation: shakeLight 0.3s ease-out;
}
.shake-medium {
    animation: shakeMedium 0.4s ease-out;
}
.shake-heavy {
    animation: shakeHeavy 0.5s ease-out;
}

@keyframes shakeLight {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    20% { transform: translate(-5px, 2px) rotate(-2deg); }
    40% { transform: translate(4px, -1px) rotate(1deg); }
    60% { transform: translate(-3px, 1px) rotate(-1deg); }
    80% { transform: translate(2px, -1px) rotate(0.5deg); }
}

@keyframes shakeMedium {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    15% { transform: translate(-10px, 4px) rotate(-4deg); }
    30% { transform: translate(8px, -3px) rotate(3deg); }
    45% { transform: translate(-6px, 2px) rotate(-2deg); }
    60% { transform: translate(5px, -2px) rotate(1deg); }
    75% { transform: translate(-3px, 1px) rotate(-1deg); }
}

@keyframes shakeHeavy {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    10% { transform: translate(-15px, 6px) rotate(-6deg); }
    20% { transform: translate(12px, -5px) rotate(5deg); }
    30% { transform: translate(-10px, 4px) rotate(-4deg); }
    40% { transform: translate(8px, -3px) rotate(3deg); }
    50% { transform: translate(-6px, 3px) rotate(-2deg); }
    60% { transform: translate(5px, -2px) rotate(2deg); }
    70% { transform: translate(-3px, 1px) rotate(-1deg); }
    80% { transform: translate(2px, -1px) rotate(1deg); }
}

/* ========== HIT HAND / FOOT ANIMATIONS ========== */
.slap-hand {
    position: absolute;
    font-size: 4rem;
    z-index: 20;
    pointer-events: none;
    animation: slapIn 0.35s ease-out forwards;
}

@keyframes slapIn {
    0% { transform: translateX(-200px) rotate(-30deg); opacity: 0; }
    30% { transform: translateX(0) rotate(10deg); opacity: 1; }
    50% { transform: translateX(10px) rotate(15deg); opacity: 1; }
    100% { transform: translateX(30px) rotate(20deg); opacity: 0; }
}

.kick-foot {
    position: absolute;
    font-size: 4rem;
    z-index: 20;
    pointer-events: none;
    animation: kickIn 0.4s ease-out forwards;
}

@keyframes kickIn {
    0% { transform: translateY(200px) rotate(20deg); opacity: 0; }
    35% { transform: translateY(0) rotate(-10deg); opacity: 1; }
    55% { transform: translateY(-15px) rotate(-15deg); opacity: 1; }
    100% { transform: translateY(-40px) rotate(-20deg); opacity: 0; }
}

.spit-drop {
    position: absolute;
    font-size: 2rem;
    z-index: 20;
    pointer-events: none;
    animation: spitIn 0.5s ease-in forwards;
}

@keyframes spitIn {
    0% { transform: translateX(150px) scale(0.5); opacity: 0; }
    40% { transform: translateX(0) scale(1); opacity: 1; }
    60% { transform: translateX(-10px) scale(1.1); opacity: 1; }
    100% { transform: translateX(-20px) scale(0.3); opacity: 0; }
}

.punch-fist {
    position: absolute;
    font-size: 4rem;
    z-index: 20;
    pointer-events: none;
    animation: punchIn 0.3s ease-out forwards;
}

@keyframes punchIn {
    0% { transform: translateX(200px) scale(1.5); opacity: 0; }
    35% { transform: translateX(0) scale(1); opacity: 1; }
    50% { transform: translateX(-15px) scale(0.9); opacity: 1; }
    100% { transform: translateX(-30px) scale(0.7); opacity: 0; }
}

/* ========== SVG DAMAGE EFFECTS ========== */
.bruise {
    transition: opacity 0.3s;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #game-container {
        padding: 0.3rem;
    }

    .game-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .score-number {
        font-size: 1.2rem;
    }

    #game-area {
        flex-direction: column;
        gap: 0.5rem;
    }

    #character-section {
        flex: none;
        min-height: 45vh;
    }

    #character-stage {
        min-height: 40vh;
    }

    #screen-shake-wrapper {
        width: 85%;
        max-width: 320px;
    }

    #controls-section {
        width: 100%;
    }

    #action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .action-btn {
        flex: 1 1 calc(50% - 0.2rem);
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 12px;
        justify-content: center;
    }

    .action-btn .btn-icon {
        font-size: 1.2rem;
    }

    #extra-controls {
        flex-direction: row;
        gap: 0.3rem;
    }

    .control-btn {
        flex: 1;
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }

    #character-name-bar {
        padding: 0.3rem 0.8rem;
    }

    #current-character-name {
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .game-title {
        font-size: 1.3rem;
    }

    .action-btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.7rem;
    }

    .action-btn .btn-icon {
        font-size: 1rem;
    }

    .action-btn .btn-text {
        display: none;
    }

    .action-btn {
        justify-content: center;
    }

    #character-stage {
        min-height: 35vh;
    }
}

/* ========== LEADERBOARD BUTTON ========== */
.leaderboard-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 auto 0.3rem;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--accent-yellow);
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.1));
    color: var(--accent-yellow);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-btn:hover {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.3), rgba(243, 156, 18, 0.2));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

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

.lb-icon {
    font-size: 1.1rem;
}

/* ========== LEADERBOARD MODAL ========== */
.modal-content-lg {
    max-width: 600px;
    max-height: 85vh;
}

.modal-content-sm {
    max-width: 400px;
}

.lb-week-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.lb-my-rank {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15), rgba(243, 156, 18, 0.08));
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}

.lb-my-rank.hidden {
    display: none;
}

.lb-my-rank-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lb-my-rank-value {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: var(--accent-yellow);
}

.lb-my-rank-score {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

#lb-table-wrap {
    max-height: 50vh;
    overflow-y: auto;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

#lb-table-wrap::-webkit-scrollbar {
    width: 6px;
}

#lb-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

#lb-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.lb-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.lb-table th {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 2px solid rgba(255,255,255,0.08);
}

.lb-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
}

.lb-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.lb-table tbody tr.lb-row-gold {
    background: rgba(255, 215, 0, 0.08);
}

.lb-table tbody tr.lb-row-silver {
    background: rgba(192, 192, 192, 0.06);
}

.lb-table tbody tr.lb-row-bronze {
    background: rgba(205, 127, 50, 0.06);
}

.lb-table tbody tr.lb-row-me {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.lb-col-rank {
    width: 45px;
    text-align: center !important;
}

.lb-col-score,
.lb-col-combo {
    text-align: right !important;
    width: 80px;
}

.lb-rank-cell {
    text-align: center;
    font-weight: 800;
}

.lb-rank-medal {
    font-size: 1.1rem;
}

.lb-score-cell {
    text-align: right;
    font-weight: 800;
    font-family: 'Bangers', cursive;
    font-size: 1rem;
    color: var(--accent-yellow);
}

.lb-combo-cell {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lb-name-cell {
    font-weight: 700;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lb-empty.hidden {
    display: none;
}

.lb-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lb-loading.hidden {
    display: none;
}

/* ========== NICKNAME MODAL ========== */
.nickname-score-display {
    text-align: center;
    margin-bottom: 1rem;
}

.nickname-score-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.2rem;
}

.nickname-score-number {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: var(--accent-yellow);
    display: block;
}

.nickname-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nickname-input {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.nickname-input:focus {
    border-color: var(--accent-yellow);
    background: rgba(255,255,255,0.1);
}

.nickname-input::placeholder {
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

.nickname-error {
    color: var(--accent-red);
    font-size: 0.8rem;
    text-align: center;
    font-weight: 700;
}

.nickname-error.hidden {
    display: none;
}

.nickname-submit-btn {
    justify-content: center;
}

.nickname-submit-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (min-width: 769px) and (max-height: 700px) {
    .game-title {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    #game-header {
        padding: 0.2rem 0;
    }

    .action-btn {
        padding: 0.6rem 1rem;
    }

    #character-stage {
        min-height: 250px;
    }
}
