:root{
    --main:hwb(0deg 0% 100% / 60%);
    --element:hwb(0deg 0% 100% / 80%);
    --subelement: hwb(0deg 100% 0% / 5%);
    --border: hwb(0deg 100% 0% / 15%);
    --text: #f3f3f3;
    --subtext:hwb(0deg 95% 5% / 31%);
    --highlight: hwb(203deg 0% 0% / 15%);
    --filter: invert(1);
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    color: white;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#gamelogo {
    position: absolute;
    display:flex;
    width:100%;
    top:120px;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: column;
    pointer-events: none;
}


#gamelogo img{
    width:240px;
}

.overlayTop {
    position: fixed;
    pointer-events:none;
    height: 20vh;
    width: 100%;
    background: linear-gradient(hwb(0deg 0% 100% / 80%), #ff000000);
}

/* ======================== МЕНЮ ПАУЗЫ ========================== */
#pauseOverlay {
    display: flex;
    position: absolute;
    background: hwb(0deg 100% 0% / 15%);
    top: 0px; 
    left: 0px;
    width: 100%; 
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(3px);
    color: #ffffff;
    font-size: 24px;
    z-index: 999999;
    gap:12px;
    padding:48px;
}

#pauseOverlay h1 { 
    font-size: 24px; 
}
#pauseOverlay p { 
    font-size: 12px; 
}

#scoreBoard {
    display: none;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(18px, 4vmin, 28px);
    color: white;
    z-index: 10;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

#message {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translateX(-50%);
    color: #e0e0e0;
    font-size: 16px;
    font-style:inherit;
    z-index: 10;
    text-align: center;
    text-shadow: 0 0 5px rgb(255 255 255 / 80%);
}

/* ======================== БОНУСЫ ========================== */
.bonuses {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
    z-index: 999;
    pointer-events: none;
}

.bonuses img {
    width: 24px;
    filter: invert(1);
}

.bonus-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bonus-bar {
    flex: 1;
    width: 96px;
    height: clamp(12px, 2.5vmin, 20px);
    background-color: rgb(0 0 0 / 40%);
}

#armorFill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00000000, #5bff00);
    transition: width 0.1s linear;
}

#shootingFill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00000000, #808080);
    transition: width 0.1s linear;
}

#speedBoostFill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #000000, #ff8800);
    transition: width 0.1s linear;
}

#comboFill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #000000, #ff0000);
    transition: width 0.1s linear;
}

#magnetFill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #36c2d1, #00ffff);
    transition: width 0.1s linear;
    border-radius: 4px;
}

/* Анимации комбо */
@keyframes comboPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); color: #fff; }
    100% { transform: scale(1); }
}

.combo-pop {
    animation: comboPop 0.25s ease;
    display: inline-block;
}

@keyframes comboFlash {
    0% { background: linear-gradient(90deg, #ff0000, #ff6600, #ffcc00); }
    40% { background: #ffffff; box-shadow: 0 0 15px #fff; }
    100% { background: linear-gradient(90deg, #ff0000, #ff6600, #ffcc00); }
}

.combo-flash {
    animation: comboFlash 0.5s ease !important;
}

/* ======================== ЭКРАН СМЕРТИ ========================== */
#deathOverlay {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    pointer-events: none;
    transition: background 1.5s ease;
}

#deathPhrase{
    border-radius:24px;
    margin:24px;
    font-size:16px;
    color:var(--subtext);
    padding:12px;
}

#deathDistance{
    margin:12px;
    font-size:36px;
}

.earnPoints{
    font-size:12px;
    color:#eeee00;
}

#deathLocation{
    border-radius:24px;
    padding:12px;
    background: rgb(255 255 255 / 5%);
    margin:12px;
    font-size:24px;
}

#deathOverlay.active {
    background: rgba(0, 0, 0, 0.4);
}

/* ========== ЭКРАН СМЕРТИ (ОБНОВЛЁННЫЙ) ========== */
#deathStats {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.deathBlock{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 40%);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    color: white;
    animation: fadeIn 0.5s ease;
    max-width: 90vw;
    width: 400px;
    pointer-events: auto;
}

.death-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.death-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.death-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.death-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
}

.death-stat-value.achievement {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: achievementPulse 1s ease infinite;
}

@keyframes achievementPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ========== БЛОК КНОПОК СМЕРТИ ========== */
#deathButtons {
    display: none;
    position: absolute;
    top: 50vh;
    min-width:96vw;
    min-height:24px;
    left:50%;
    /* transform: translateX(-50%); */
    z-index: 1000;
    animation: fadeInButtons 0.5s ease 0.3s both;
    pointer-events: auto;
}

@keyframes fadeInButtons {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.deathBtn {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--border);
}

.deathRestart {
    background: var(--highlight);
    color: var(--text);
    box-shadow: 0 0 20px 9px rgb(0 176 255 / 15%), inset 0px 0px 3px 0px rgba(0, 123, 255, 0.4);
}


.deathUpgrades {
    background:var(--element);
    color: var(--text);
}

.deathBack {
    background: var(--element);
    border: 2px solid var(--border);
    color: var(--text);
}

.death-hint {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ======================== КНОПКИ МЕНЮ (единый стиль) ========================== */
.bottomMenuButton {
    display: flex;
    gap: 2px;
    padding:12px;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--element);
    border-color: rgb(255 255 255 / 15%);
    color: #fff;
    box-shadow: 0px 0px 4px 4px rgb(0 0 0 / 10%);
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.bottomMenuButton:active {
    transform: translateY(0);
}

.bottomMenuButton.hidden {
    opacity: 0;
    pointer-events: none;
}


.bottomMenuButton .btnHint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mainWindow{
    display:flex;
    flex-direction:column;
}

/* ======================== КНОПКА ПАУЗЫ ========================== */
#pauseBtn {
    width: 48px;
    height: 48px;
    background:var(--main);
    backdrop-filter: blur(6px);
    border: 2px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 6px 12px rgb(0 0 0 / 40%);
}

#pauseBtn img{
    width:12px;
    filter:var(--filter);
}

/* ========== КАРТОЧКА ИГРОКА ========== */

.player-info-card {
    position: absolute;  
    top: 50%;
    left: 50%;  
    transform: translate(-50%, -50%);
    width:50vw;
    height:33vh;
    background: var(--element);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 24px;
    z-index: 100;
    transition: opacity 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}


@media screen and (max-width: 768px){
    .player-info-card {
    position: absolute;  
    top: 50%;
    left: 50%;  
    transform: translate(-50%, -50%);
    width:90vw;
    height:33vh;
    background: var(--element);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 24px;
    z-index: 100;
    transition: opacity 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
}


.player-info-card img{
width:24px;
    filter:invert(0);
}

.player-info-card.hidden {
    opacity: 0;
    pointer-events: none;
}

.player-info-body {
    margin:3px;
    display: flex;
    gap: 12px;
    align-items: center;
}


.player-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-value {
    color: #fff;
    font-weight: 600;
}

/* ======================== РЕКОРД И ОЧКИ ========================== */

.game-score-display {
    position: fixed;
    top: 84px;
    left: 24px;
    z-index: 100;
    transition: opacity 0.5s;
}
.game-score-display.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ======================== МОДАЛЬНЫЕ ОКНА ========================== */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: var(--main);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}


#profileAuthStatus{
    background: var(--subelement);
    border-radius:24px;
    padding:12px;
    font-size:12px;
}

.modal-content {
    gap:12px;
    display:flex;
    background: var(--main);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    width: 33vw;
    min-height:33vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    align-content: space-between;
    align-items: center;
    flex-direction: column;
}

@media screen and (max-width: 768px){
    .modal-content {
    width: 95vw;
}
}

.modal-content h2 {
    font-size: 24px;
    color: var(--text);
}

.name-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s;
}

.name-input:focus {
    border-color: rgba(95, 255, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#profileStatus {
    margin-bottom: 15px;
    color: #888;
    font-size: 14px;
}

.savenamemodal{
    background:var(--main);
    color:var(--text);
    border: 2px solid var(--border);
    border-radius:48px;
    padding:12px;
}

/* ======================== КНОПКИ ========================== */
.btn-primary {
    color:var(--text);
    background:var(--subelement);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding:12px;
}

#avatarPreview{
    display:flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

#avatarPlaceholder{
    width:96px;
    height:96px;
    border: 2px solid var(--border);
    border-radius:50%;
    align-content:center;
    margin:12px;
}

#avatarPlaceholder img{
    width:48px;
    height:48px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--element);
    border: 2px solid var(--border);
    border-radius: 24px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.rowHeaderModal{
    width:100%;
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-oauth img {
    width: 20px;
    height: 20px;
}

.btn-google {
    background: rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.4);
}

.btn-google:hover {
    background: rgba(66, 133, 244, 0.3);
    border-color: rgba(66, 133, 244, 0.6);
}

.btn-yandex {
    background: rgba(255, 204, 0, 0.2);
    border-color: rgba(255, 204, 0, 0.4);
}

.btn-yandex:hover {
    background: rgba(255, 204, 0, 0.3);
    border-color: rgba(255, 204, 0, 0.6);
}

.btn-yandex::after {
    content: ' ↗';
    font-size: 12px;
    opacity: 0.6;
}

/* ======================== ЛИДЕРБОРД ========================== */
.leaderboard-content {
    max-width: 500px;
    max-height: 80vh;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
}

.closeBtn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.leaderboard-item.current-player {
    background: rgba(95, 255, 0, 0.1);
    border: 1px solid rgba(95, 255, 0, 0.3);
}

.player-rank {
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    min-width: 40px;
}

.player-name {
    flex: 1;
    font-size: 16px;
    color: #fff;
    margin-left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name img {
    width: 18px;
    height: 18px;
}

.player-score {
    font-size: 16px;
    font-weight: 600;
    color: #FFD700;
}

/* ======================== МОДАЛЬНОЕ ОКНО УЛУЧШЕНИЙ ========================== */
#upgradesModal {
    display: flex;
    flex-direction: column;
    position: absolute;
    top:50%;
    left:50%;
    width:95vw;
    height:66vh;
    transform: translate(-50%, -50%);
    background: var(--main);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    z-index: 1000;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px;
    background: var(--main);
    flex-shrink: 0;
}

.modalTitle {
    margin: 0;
    font-size: 24px;
    color: var(--text);
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.pointsDisplay {
    text-align: center;
}

.pointsDisplay p {
    font-size: 12px;
    color: var(--text);
}

.upgradesContainer {
    flex: 1;
    display: flex;
    gap: 12px;
    padding: 12px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    align-items: stretch;
    scroll-behavior: smooth;
}

.upgradesContainer::-webkit-scrollbar {
    padding:6px;
    height:6px;
}

.upgradesContainer::-webkit-scrollbar-track {
    border-radius: 6px;
}

.upgradesContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* ======================== КАРТОЧКА УЛУЧШЕНИЯ ========================== */

.upgradeCard {
    scroll-snap-align: center;
    min-width: 240px;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s ease;
    background:var(--subelement);
}

.upgradeline{
    gap:12px;
    font-size:12px;
    background:var(--subelement);
    border-radius:24px;
    padding:12px;
}
.cardImage {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 24px auto 24px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3)) invert(1);
}

.cardIcon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 24px;
}

.cardTitle {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.cardLevel {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.cardValue {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.cardUpgrade {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.btnUpgrade, .btnSell {
    border-radius: 24px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
}

.btnUpgrade {
    background: rgba(95, 255, 0, 0.15);
    border-color: rgba(95, 255, 0, 0.15);
}

.btnUpgrade:hover {
    background: rgba(95, 255, 0, 0.15);
    border-color: rgba(95, 255, 0, 0.15);
}

.btnSell {
    background: rgba(255, 85, 85, 0.1);
    border-color: rgba(255, 85, 85, 0.3);
}

.btnSell:hover {
    background: rgba(255, 85, 85, 0.15);
    border-color: rgba(255, 85, 85, 0.15);
}

.upgradeCost {
    margin-top:12px;
    font-size: 12px;
    color: var(--highlight);
    text-align: center;
    font-weight: 600;
}

.positionGame{
    position:fixed;
    margin:12px;
    right:24px;
}

/* ======================== РАДИАЛЬНЫЕ БОНУСЫ ========================== */

.bonus-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    margin-top: 84px;
    z-index: 999;
    pointer-events: none;
}

.bonus-radial {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(from var(--bonus-color) r g b / 0.15);
    backdrop-filter:blur(6px);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow:0 0 12px #000000;
}

.bonus-radial.hidden {
    display: none;
}

.bonus-radial svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bonus-radial svg circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.bonus-radial svg .progress-bg {
    stroke: rgb(255 255 255 / 20%);
}

.bonus-radial svg .progress-fill {
    stroke: var(--bonus-color);
    stroke-dasharray: 188.5;
    stroke-dashoffset: 188.5;
    transition: stroke-dashoffset 0.1s linear;
}

.bonus-radial .bonus-icon {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.bonus-radial .bonus-count {
    position: absolute;
    top: -6px;
    right: -3px;
    background: var(--bonus-color);
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 12px;
    text-align: center;
    box-shadow: 0 0 12px rgb(0 0 0);
}

@keyframes bonusAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bonus-radial.appear {
    animation: bonusAppear 0.3s ease;
}

#debugText {
    position: fixed;
    left:24px;
    top:164px;
    color: #ffffff;
    font-size: 12px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 24px 24px;
    border-radius: 8px;
    border: 2px solid var(--border);
    white-space: pre;
    z-index: 1000;
    pointer-events: none;
}

/* ========== MYSTERY BOX CARD ========== */
.mysteryBoxCard {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1)) !important;
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    animation: mysteryGlow 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.mysteryBoxCard::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: mysteryShine 3s linear infinite;
}

@keyframes mysteryGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.7); }
}

@keyframes mysteryShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.xp-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6347);
    transition: width 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ========== MYSTERY BOX MODAL ========== */
.mystery-box-modal {
    max-width: 400px;
    text-align: center;
}

.mystery-box-content {
    padding: 40px 30px;
    margin: 20px 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.05));
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.mystery-box-reward {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: rewardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes rewardPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    60% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.level-speed-indicator {
    position: fixed;
    top: 120px;
    left: 24px;
    color: #fff;
    font-size: 12px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    pointer-events: none;
}

/* ======================== XP BAR ========================== */
.xp-bar-display {
    padding: 12px 3px;
    z-index: 100;
    transition: opacity 0.3s;
    margin-bottom:12px;
}

.xp-bar-display.hidden {
    opacity: 0;
    pointer-events: none;
}

.xp-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

#displayName{
    color:white;
    border-bottom:1px solid #ffffff;
}

.xp-level {
    display:flex;
    color: #000000;
    background:#ffd700;
    width:24px;
    height:24px;
    border:2px solid black;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size:12px;
    border-radius:12px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    align-content: center;
}


.xp-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.xp-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FF6347);
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@keyframes levelUpFlash {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 1); transform: scale(1.05); }
    100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
}

.xp-bar-display.level-up {
    animation: levelUpFlash 0.6s ease;
}

/* ======================== АДАПТИВ ========================== */
@media (max-width: 768px) {
    .bottomMenuButton .btnHint {
        display: none;
    }
    
    .upgradeCard:hover {
        transform: none;
    }
    
    /* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ЭКРАНА СМЕРТИ ========== */
    .deathBlock {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        left: 6px;
        transform: translate(0, -50%);
        padding: 20px;
    }
        
    .deathBtn {
        width: 90vw;
        margin: 6px 0;
        min-width: auto;
    }
    
    /* ========== МОБИЛЬНАЯ АДАПТАЦИЯ КАРТОЧКИ ИГРОКА ========== */
    
    
    .stat-row {
        font-size: 16px;
    }
    
    .bonus-container {
        gap: 12px;
    }
    
    .bonus-radial {
        width: 36px;
        height: 36px;
    }
    
    .bonus-radial .bonus-icon {
        width: 18px;
        height: 18px;
    }
    
}

#totalDistanceDisplay, #totalDistanceDisplay2 {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    margin: 4px 0;
}

.death-total-distance {
    margin: 16px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.death-distance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.death-distance-value {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.game-xp-display {
    position: fixed;
    top: 108px;
    left: 24px;
    z-index: 100;
    transition: opacity 0.5s;
}
.game-xp-display.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========== АВАТАРКА ========== */
.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(0 0 0);
    /* border: 2px solid rgb(0 148 255); */
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    justify-content: center;
}

.player-avatar:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.avatar-placeholder {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info-header {
    position: absolute;
    top:24px;
    left: 50%;
    display:flex;
    transform: translate(-50%);
    background: hwb(0deg 0% 100% / 60%);
    border: 2px solid hsl(0deg 0% 100% / 15%);
    border-radius:48px;
    gap: 6px;
    flex-wrap: nowrap;
    padding:3px;
    align-content: center;
    align-items: center;
}

.infoProfileStats{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: center;
}

.player-name-btn {
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    background:transparent;
    border:none;
    gap:6px;
}

.player-name-btn img{
    filter: invert(1);
    width:16px;
}


/* ========== ШАПКА ИГРОКА ========== */
.player-info-header {
    position: absolute;
    top: 24px;                    /* прижато к левому краю, без отступов */
    display: flex;
    align-items: stretch;
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 0;
    margin: 0;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.player-info-header .player-avatar {
    border-radius: 50%;
    margin: 0;
    border: none;
    flex-shrink: 0;
    background: hwb(0deg 100% 0% / 0%);
    border-right: 1px solid rgb(0 0 0);
}

/* Блок справа от аватарки */
.player-header-info {
    top:250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 12px 6px 12px;
    cursor: pointer;
    gap: 3px;
    min-width: 120px;
}

/* Первая строка: имя + уровень + иконка редактирования */
.player-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.player-name-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-level-badge {
    background:hwb(0deg 100% 0% / 15%);
    border-radius:50%;
    color: #ffd700;
    font-weight: 700;
    font-size: 12px;
}

.edit-icon {
    width: 14px;
    height: 14px;
    filter: invert(1);
    display:none;
    transition: opacity 0.2s;
}

.player-header-info:hover .edit-icon {
    opacity: 1;
}

/* Вторая строка: XP (отделена тонкой линией сверху) */
.player-xp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding-top: 3px;
    line-height: 1.2;
}

.xp-label {
    color: #ffd700;
    font-weight: 600;
}

.xp-values {
    color: #fff;
    font-variant-numeric: tabular-nums;
}







/* ========== РАДИАЛЬНЫЙ ПРОГРЕСС XP ВОКРУГ АВАТАРКИ ========== */
.player-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    transition: all 0.3s;
}

.avatar-progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.avatar-progress-ring circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.avatar-progress-ring .progress-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.avatar-progress-ring .progress-fill {
    stroke: #ffd700;
    stroke-dasharray: 163.36; /* 2 * π * 26 */
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 0.4s ease;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.avatar-inner {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.avatar-placeholder {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nameinput{
    width:100%;
    height:48px;
    display:flex;
    flex-direction: row;
    gap:12px;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
}

/* ========== ВКЛАДКИ В КАРТОЧКЕ ИГРОКА ========== */
.card-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border);

}

.card-tab {
    flex: 1;
    padding: 6px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 8px 8px 0 0;
    color: var(--subtext);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.card-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.card-tab.active {
    background: var(--subelement);
    border-color: var(--border);
    color: #fff;
    font-weight: 600;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.empty-tab-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ========== ЛИДЕРБОРД В КАРТОЧКЕ ========== */
.card-leaderboard-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 12px;
}

.card-leaderboard-item.current-player {
    background: var(--highlight);
}

.card-leaderboard-rank {
    font-weight: bold;
    color: #FFD700;
    min-width: 30px;
}

.card-leaderboard-name {
    flex: 1;
    color: #fff;
    background:(--highlight);
}

.card-leaderboard-score {
    font-weight: 600;
    color: #FFD700;
}

/* Скроллбар для лидерборда */
.card-leaderboard-list::-webkit-scrollbar {
    width: 6px;
}

.card-leaderboard-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.card-leaderboard-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

#bonus3DCanvas {
    pointer-events: none;
    z-index: 10 !important; /* ← было 5, увеличиваем */
}

#coin3DOverlay,
#droppedBonus3DCanvas,
#enemy3DOverlay,
#player3DOverlay {
    pointer-events: none;
    z-index: 100 !important;
}


/* ========== 3D ПРЕВЬЮ ПЕРСОНАЖА ========== */
.player-sprite-preview {
    width: 120px;
    height: 120px;;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.player-sprite-preview canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    background:var(--subelement);
}

.player-sprite-preview .preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 10px;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.player-sprite-preview .preview-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 24px;
    background: rgba(0,0,0,0.3);
    z-index: 2;
}

.player-sprite-preview:hover {
    background: rgba(95, 255, 0, 0.1);
    border-color: rgba(95, 255, 0, 0.4);
    transform: scale(1.05);
}

#profileNameInput{
    color:var(--text);
    background:var(--subelement);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding:12px;
}

#googleAuthBtn{
    color:var(--text);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding:12px;
}

/* ========== УПРАВЛЕНИЕ ВИДИМОСТЬЮ UI ========== */
.game-ui-hidden {
    display: none;
}

.game-ui-visible {
    display: block;
}

/* ============================================================
   НОВАЯ HUD (ВЕРХНЯЯ ПАНЕЛЬ)
   ============================================================ */

#hudTop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
}

#hudTop > * {
    pointer-events: auto;
}

/* ====== КНОПКА ПАУЗЫ (СЛЕВА) ====== */

/*ВСТАВЛЮ ПОЗЖЕ, ПОХУЙ*/

/* ====== ЦЕНТР: РАССТОЯНИЕ И ЛОКАЦИЯ ====== */

#locationNameDisplay {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

#distanceDisplay {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

#nextLocationDisplay {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 4px rgb(255 255 255 / 15%);
}

/* ====== ПРАВАЯ ПАНЕЛЬ: ОЧКИ И ОПЫТ ====== */
#hudRight {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* gap: 3px; */
    /* flex-shrink: 0; */
}

#gameScoreDisplay {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
}

#gameScoreText {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

#gameXPDisplay {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
}

#gameXPText {
    font-size: 12px;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ====== СКРЫТИЕ/ПОКАЗ HUD ====== */
#hudTop.hidden {
    display: none !important;
}

#hudTop.visible {
    display: flex !important;
}

/* ====== МОБИЛЬНАЯ АДАПТАЦИЯ ====== */
@media (max-width: 768px) {
    #hudTop {
        padding: 12px 24px;
    }
        
    #locationNameDisplay {
        font-size: 12px;
    }
    
    #distanceDisplay {
        font-size: 24px;
    }
    
    #nextLocationDisplay {
        font-size: 12px;
    }
    
    #gameScoreText,
    #gameXPText {
        font-size: 12px;
    }
    
    #gameScoreDisplay,
    #gameXPDisplay {
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    #distanceDisplay {
        font-size: 16px;
    }
    
    #locationNameDisplay {
        font-size: 12px;
    }
    
    #gameScoreText,
    #gameXPText {
        font-size: 12px;
    }
    
}


/* Центр: расстояние и локация */
#levelIndicator {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
}

#locationNameDisplay {
    font-size: 16px;
    font-weight: 500;
    color:var(--text);
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    margin: 3px;
}

#distanceRow {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

#distanceDisplay {
    font-size: 12px;
    color: var(--text);
    font-weight:700;
}

#nextLocationDisplay {
    font-size: 12px;
    color: var(--subtext);
}

.pauseMenuBtn{
    background:transparent;
    color:var(--text);
    border-radius:48px;
    padding:12px;
    backdrop-filter:blur(6px);
    border: 2px solid var(--border);
    box-shadow: 0 0 12px #ffffff40;
    pointer-events:auto;
    z-index:1890;
    cursor: pointer;
}

/* ========== КНОПКА GOOGLE ========== */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(66, 133, 244, 0.4);
    background: rgba(66, 133, 244, 0.15);
    color: #fff;
    margin-top: 8px;
    font-family: inherit;
}

.btn-google:hover {
    background: rgba(66, 133, 244, 0.25);
    border-color: rgba(66, 133, 244, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
}

.btn-google:active {
    transform: translateY(0px);
    background: rgba(66, 133, 244, 0.35);
}

.btn-google svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ====== СОСТОЯНИЕ "ВЫЙТИ" ====== */
.btn-google.logged-in {
    background: rgba(255, 85, 85, 0.1);
    border-color: rgba(255, 85, 85, 0.4);
}

.btn-google.logged-in:hover {
    background: rgba(255, 85, 85, 0.2);
    border-color: rgba(255, 85, 85, 0.6);
    box-shadow: 0 4px 15px rgba(255, 85, 85, 0.2);
}

/* ====== СОСТОЯНИЕ ЗАГРУЗКИ ====== */
.btn-google.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.btn-google.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ====== СОСТОЯНИЕ ОШИБКИ ====== */
.btn-google.error {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.5);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ====== СОСТОЯНИЕ УСПЕШНОГО ВХОДА ====== */
.btn-google.success {
    background: rgba(52, 168, 83, 0.15);
    border-color: rgba(52, 168, 83, 0.4);
}

/* ====== АДАПТИВ ====== */
@media (max-width: 768px) {
    .btn-google {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .btn-google svg {
        width: 18px;
        height: 18px;
    }
}

/* ========== КНОПКА СОХРАНЕНИЯ ИМЕНИ (ГАЛОЧКА) ========== */
.saveBtn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.saveBtn:hover {
    background: rgba(95, 255, 0, 0.15);
    border-color: rgba(95, 255, 0, 0.4);
    transform: scale(1.05);
}

.saveBtn:active {
    transform: scale(0.95);
}

/* ========== БЛОК ВВОДА ИМЕНИ ========== */
.nameinput {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
}

.nameinput .name-input {
    flex: 1;
    margin-bottom: 0;
}

/* ========== ШАПКА МОДАЛКИ ========== */
.rowHeaderModal {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4px 0;
}

.rowHeaderModal h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
    font-weight: 500;
}

.rowHeaderModal .closeBtn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ========== КНОПКА ЗАКРЫТИЯ ========== */
.closeBtn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.closeBtn:hover {
    background: rgba(255, 85, 85, 0.15);
    border-color: rgba(255, 85, 85, 0.4);
    transform: scale(1.05);
}

.closeBtn:active {
    transform: scale(0.95);
}