/* =====================================================
   DODGE THE BLOCK
   COMPLETE STYLE SHEET
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 20%,
            #14233d 0%,
            #080d18 45%,
            #03050a 100%
        );

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 100vh;

    overflow-x: hidden;

}


/* =====================================================
   GAME CONTAINER
===================================================== */

.game-container {

    width: 420px;

    max-width: 96vw;

    display: flex;

    flex-direction: column;

    align-items: center;

    position: relative;

}


/* =====================================================
   TOP HUD
===================================================== */

.top-bar {

    width: 400px;

    max-width: 100%;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 18px;

    margin-bottom: 10px;

    background:
        rgba(8, 15, 28, 0.92);

    border:

        1px solid
        rgba(79, 195, 247, 0.22);

    border-radius: 14px;

    box-shadow:
        0 0 20px
        rgba(0, 0, 0, 0.3);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

}


.top-bar span {

    color: #4fc3f7;

    font-size: 16px;

    margin-left: 3px;

}


.top-bar div:last-child span {

    color: #ffd700;

}


/* =====================================================
   GAME AREA
===================================================== */

#game {

    position: relative;

    width: 400px;

    height: 600px;

    max-width: 100%;

    overflow: hidden;

    border-radius: 18px;

    background:

        linear-gradient(
            180deg,
            #071221 0%,
            #050b15 55%,
            #02050b 100%
        );

    border:

        1px solid
        rgba(79, 195, 247, 0.35);

    box-shadow:

        0 0 25px
        rgba(79, 195, 247, 0.08),

        0 0 80px
        rgba(0, 0, 0, 0.7);

}


/* =====================================================
   BACKGROUND GRID
===================================================== */

#game::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(79, 195, 247, 0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(79, 195, 247, 0.035) 1px,
            transparent 1px
        );

    background-size:
        40px 40px;

    pointer-events: none;

}


/* =====================================================
   BACKGROUND GLOW
===================================================== */

#game::after {

    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    left: 50%;

    top: 35%;

    transform: translate(
        -50%,
        -50%
    );

    background:
        radial-gradient(
            circle,
            rgba(79, 195, 247, 0.06),
            transparent 70%
        );

    pointer-events: none;

}


/* =====================================================
   PARTICLES
===================================================== */

#particles {

    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

}


.particle {

    position: absolute;

    bottom: -10px;

    width: 2px;

    height: 2px;

    background: #4fc3f7;

    border-radius: 50%;

    opacity: 0.5;

    animation:
        particleRise
        linear
        infinite;

}


@keyframes particleRise {

    from {

        transform:
            translateY(0);

        opacity: 0;

    }

    20% {

        opacity: 0.5;

    }

    80% {

        opacity: 0.35;

    }

    to {

        transform:
            translateY(-620px);

        opacity: 0;

    }

}


/* =====================================================
   PLAYER
===================================================== */

#player {

    position: absolute;

    width: 40px;

    height: 40px;

    left: 180px;

    bottom: 25px;

    z-index: 10;

    border-radius: 10px;

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #4fc3f7 45%,
            #1976d2
        );

    border:

        1px solid
        rgba(255, 255, 255, 0.7);

    box-shadow:

        0 0 8px #4fc3f7,

        0 0 20px
        rgba(79, 195, 247, 0.8),

        0 0 40px
        rgba(79, 195, 247, 0.35);

    transition:
        box-shadow 0.2s ease;

}


/* Player inner highlight */

#player::before {

    content: "";

    position: absolute;

    width: 12px;

    height: 12px;

    top: 6px;

    left: 7px;

    border-radius: 4px;

    background:
        rgba(255, 255, 255, 0.75);

    filter:
        blur(1px);

}


/* =====================================================
   BLOCKS
===================================================== */

.block {

    position: absolute;

    width: 40px;

    height: 40px;

    z-index: 5;

    border-radius: 9px;

    background:

        linear-gradient(
            135deg,
            #ff5f5f,
            #b30025
        );

    border:

        1px solid
        rgba(255, 150, 150, 0.5);

    box-shadow:

        0 0 10px
        rgba(255, 50, 70, 0.6),

        0 0 25px
        rgba(255, 30, 50, 0.2);

}


/* Block highlight */

.block::before {

    content: "";

    position: absolute;

    width: 10px;

    height: 10px;

    top: 6px;

    left: 6px;

    border-radius: 3px;

    background:
        rgba(255, 255, 255, 0.4);

}


/* =====================================================
   COINS
===================================================== */

.coin {

    position: absolute;

    width: 24px;

    height: 24px;

    z-index: 6;

    border-radius: 50%;

    background:

        radial-gradient(
            circle at 35% 30%,
            #fff7a0,
            #ffd700 40%,
            #d99b00 100%
        );

    border:

        2px solid
        #fff1a3;

    box-shadow:

        0 0 8px
        #ffd700,

        0 0 20px
        rgba(255, 215, 0, 0.45);

}


.coin::after {

    content: "₿";

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #9b6b00;

    font-size: 12px;

    font-weight: 900;

}


/* =====================================================
   START SCREEN
===================================================== */

#start-screen {

    position: absolute;

    inset: 0;

    z-index: 30;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 30px;

    background:

        radial-gradient(
            circle at 50% 35%,
            rgba(20, 48, 82, 0.92),
            rgba(3, 6, 13, 0.98)
        );

    backdrop-filter:
        blur(4px);

}


/* =====================================================
   LOGO
===================================================== */

.logo-block {

    margin-bottom: 12px;

}


.logo-icon {

    width: 58px;

    height: 58px;

    margin: 0 auto 15px;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #4fc3f7;

    font-size: 25px;

    border:

        1px solid
        rgba(79, 195, 247, 0.4);

    border-radius: 16px;

    background:
        rgba(79, 195, 247, 0.06);

    box-shadow:

        0 0 20px
        rgba(79, 195, 247, 0.2);

}


.logo-block h1 {

    font-size: 44px;

    line-height: 0.9;

    letter-spacing: 7px;

    font-weight: 900;

}


.logo-block h2 {

    margin-top: 10px;

    font-size: 17px;

    letter-spacing: 8px;

    color: #4fc3f7;

}


.tagline {

    margin-top: 10px;

    color: #718096;

    font-size: 10px;

    letter-spacing: 2px;

}


/* =====================================================
   START STATS
===================================================== */

.start-stats {

    display: flex;

    gap: 12px;

    margin: 28px 0;

}


.start-stats > div {

    min-width: 95px;

    padding: 13px 18px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.035);

    border:

        1px solid
        rgba(79, 195, 247, 0.15);

}


.start-stats span {

    display: block;

    color: #718096;

    font-size: 9px;

    letter-spacing: 2px;

}


.start-stats strong {

    display: block;

    margin-top: 6px;

    font-size: 19px;

    color: white;

}


/* =====================================================
   PLAY BUTTON
===================================================== */

#play-button {

    width: 190px;

    height: 52px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    font-size: 15px;

    font-weight: 900;

    letter-spacing: 3px;

    color: #04101d;

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #4fc3f7
        );

    box-shadow:

        0 0 20px
        rgba(79, 195, 247, 0.4);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;

}


#play-button:hover {

    transform:
        translateY(-2px);

    box-shadow:

        0 0 30px
        rgba(79, 195, 247, 0.6);

}


#play-button:active {

    transform:
        scale(0.97);

}


/* =====================================================
   SHOP BUTTON
===================================================== */

#shop-button {

    margin-top: 12px;

    width: 190px;

    height: 46px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #4fc3f7;

    background:
        rgba(79, 195, 247, 0.06);

    border:

        1px solid
        rgba(79, 195, 247, 0.35);

    transition:
        background 0.15s ease,
        transform 0.15s ease;

}


#shop-button:hover {

    background:
        rgba(79, 195, 247, 0.12);

    transform:
        translateY(-1px);

}


/* =====================================================
   CONTROLS TEXT
===================================================== */

.controls {

    margin-top: 20px;

    color: #536174;

    font-size: 10px;

    letter-spacing: 1px;

}


/* =====================================================
   GAME OVER
===================================================== */

#game-over {

    position: absolute;

    inset: 0;

    z-index: 35;

    display: none;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background:

        rgba(3, 5, 10, 0.94);

    backdrop-filter:
        blur(6px);

}


#game-over .logo-icon {

    color: #ff4b5c;

    border-color:
        rgba(255, 75, 92, 0.4);

    box-shadow:
        0 0 25px
        rgba(255, 75, 92, 0.25);

}


#game-over h1 {

    font-size: 32px;

    letter-spacing: 4px;

    margin-bottom: 20px;

}


#game-over p {

    margin: 5px;

    color: #7d8ca0;

    font-size: 12px;

    letter-spacing: 2px;

}


#game-over p span {

    color: white;

    font-size: 17px;

}


#play-again-button {

    margin-top: 25px;

    width: 190px;

    height: 48px;

    border: none;

    border-radius: 11px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #4fc3f7
        );

    color: #04101d;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;

}


/* =====================================================
   COIN PICKUP
===================================================== */

.coin-pop {

    position: absolute;

    z-index: 20;

    color: #ffd700;

    font-size: 14px;

    font-weight: 900;

    pointer-events: none;

    animation:
        coinPop
        0.7s
        ease-out
        forwards;

    text-shadow:
        0 0 10px
        rgba(255, 215, 0, 0.7);

}


@keyframes coinPop {

    from {

        transform:
            translateY(0)
            scale(1);

        opacity: 1;

    }

    to {

        transform:
            translateY(-35px)
            scale(1.15);

        opacity: 0;

    }

}


/* =====================================================
   EXPLOSION
===================================================== */

.explosion {

    position: absolute;

    z-index: 50;

    width: 60px;

    height: 60px;

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

    background:

        radial-gradient(
            circle,
            #ffffff 0%,
            #ffd700 20%,
            #ff5a36 45%,
            rgba(255, 0, 0, 0) 70%
        );

    animation:
        explosionAnim
        0.5s
        ease-out
        forwards;

}


@keyframes explosionAnim {

    from {

        transform:
            translate(-50%, -50%)
            scale(0.2);

        opacity: 1;

    }

    to {

        transform:
            translate(-50%, -50%)
            scale(2.5);

        opacity: 0;

    }

}


/* =====================================================
   MOBILE CONTROLS
===================================================== */

.mobile-controls {

    display: flex;

    width: 400px;

    max-width: 100%;

    gap: 12px;

    margin-top: 12px;

}


.mobile-controls button {

    flex: 1;

    height: 58px;

    border-radius: 13px;

    cursor: pointer;

    user-select: none;

    -webkit-user-select: none;

    touch-action: none;

    color: #4fc3f7;

    font-size: 24px;

    font-weight: 900;

    background:
        rgba(8, 15, 28, 0.95);

    border:

        1px solid
        rgba(79, 195, 247, 0.3);

    box-shadow:

        0 0 15px
        rgba(79, 195, 247, 0.06);

}


.mobile-controls button:active {

    transform:
        scale(0.96);

    background:
        rgba(79, 195, 247, 0.15);

}


/* =====================================================
   SHOP SCREEN
===================================================== */

#shop-screen {

    position: absolute;

    inset: 0;

    z-index: 40;

    display: none;

    flex-direction: column;

    align-items: center;

    padding: 30px 20px;

    background:

        radial-gradient(
            circle at center,
            rgba(20, 50, 90, 0.97),
            rgba(3, 5, 12, 0.99)
        );

    backdrop-filter:
        blur(8px);

    overflow-y: auto;

}


.shop-header {

    text-align: center;

    margin-bottom: 25px;

}


.shop-header h1 {

    font-size: 32px;

    letter-spacing: 6px;

}


.shop-header p {

    margin-top: 8px;

    color: #ffd700;

    font-size: 18px;

    font-weight: bold;

}


/* =====================================================
   SKIN GRID
===================================================== */

.skin-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

    width: 100%;

    max-width: 330px;

}


.skin-card {

    padding: 15px 10px;

    background:
        rgba(255, 255, 255, 0.035);

    border:

        1px solid
        rgba(79, 195, 247, 0.18);

    border-radius: 13px;

    text-align: center;

    transition:
        transform 0.15s ease,
        background 0.15s ease;

}


.skin-card:hover {

    transform:
        translateY(-2px);

    background:
        rgba(255, 255, 255, 0.055);

}


.skin-preview {

    width: 45px;

    height: 45px;

    margin: 0 auto 11px;

    border-radius: 10px;

}


.skin-card h3 {

    font-size: 11px;

    letter-spacing: 1.5px;

}


.skin-card p {

    margin:
        6px 0 10px;

    font-size: 10px;

    color: #8390a3;

}


/* =====================================================
   SKIN PREVIEWS
===================================================== */

.default-skin {

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #4fc3f7 45%,
            #1976d2
        );

    box-shadow:

        0 0 12px
        #4fc3f7;

}


.neon-skin {

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #bf5fff,
            #6a00ff
        );

    box-shadow:

        0 0 15px
        #bf5fff;

}


.inferno-skin {

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #ff6b35,
            #d90000
        );

    box-shadow:

        0 0 15px
        #ff3b30;

}


.gold-skin {

    background:

        linear-gradient(
            135deg,
            #fff9b0,
            #ffd700,
            #b8860b
        );

    box-shadow:

        0 0 15px
        #ffd700;

}


/* =====================================================
   PLAYER SKINS
===================================================== */

#player.skin-default {

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #4fc3f7 45%,
            #1976d2
        );

    box-shadow:

        0 0 8px
        #4fc3f7,

        0 0 20px
        rgba(79, 195, 247, 0.8),

        0 0 40px
        rgba(79, 195, 247, 0.35);

}


#player.skin-neon {

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #bf5fff,
            #6a00ff
        );

    box-shadow:

        0 0 10px
        #bf5fff,

        0 0 25px
        #bf5fff,

        0 0 45px
        rgba(191, 95, 255, 0.6);

}


#player.skin-inferno {

    background:

        linear-gradient(
            135deg,
            #ffffff,
            #ff6b35,
            #d90000
        );

    box-shadow:

        0 0 10px
        #ff3b30,

        0 0 25px
        #ff3b30,

        0 0 50px
        rgba(255, 59, 48, 0.6);

}


#player.skin-gold {

    background:

        linear-gradient(
            135deg,
            #fff9b0,
            #ffd700,
            #b8860b
        );

    box-shadow:

        0 0 10px
        #ffd700,

        0 0 25px
        #ffd700,

        0 0 50px
        rgba(255, 215, 0, 0.6);

}


/* =====================================================
   SHOP BUTTONS
===================================================== */

.skin-button {

    min-width: 75px;

    padding: 8px 10px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    color: #04101d;

    background: #4fc3f7;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

    transition:
        transform 0.15s ease;

}


.skin-button:hover {

    transform:
        scale(1.04);

}


.skin-button:active {

    transform:
        scale(0.96);

}


/* =====================================================
   CLOSE SHOP
===================================================== */

#close-shop {

    margin-top: 20px;

    padding: 10px 25px;

    border-radius: 9px;

    cursor: pointer;

    background:
        transparent;

    color: #8b98aa;

    border:

        1px solid
        rgba(255, 255, 255, 0.15);

    font-size: 10px;

    font-weight: bold;

    letter-spacing: 2px;

}


/* =====================================================
   SCROLLBAR
===================================================== */

#shop-screen::-webkit-scrollbar {

    width: 4px;

}


#shop-screen::-webkit-scrollbar-track {

    background:
        transparent;

}


#shop-screen::-webkit-scrollbar-thumb {

    background:
        rgba(79, 195, 247, 0.3);

    border-radius: 10px;

}


/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (
    max-width: 450px
) {

    body {

        align-items:
            flex-start;

        padding-top: 15px;

    }


    .game-container {

        width: 94vw;

        max-width: 94vw;

    }


    .top-bar {

        width: 94vw;

        height: 52px;

    }


    #game {

        width: 94vw;

        height: 140vw;

        max-height: 600px;

        min-height: 500px;

    }


    .mobile-controls {

        width: 94vw;

    }


    .logo-block h1 {

        font-size: 37px;

        letter-spacing: 5px;

    }


    .logo-block h2 {

        font-size: 14px;

        letter-spacing: 6px;

    }


    .start-stats {

        margin:
            22px 0;

    }


    #play-button,
    #shop-button {

        width: 175px;

    }

}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (
    max-width: 350px
) {

    #game {

        min-height: 460px;

    }


    .logo-block h1 {

        font-size: 30px;

    }


    .logo-block h2 {

        font-size: 12px;

    }


    .start-stats > div {

        min-width: 82px;

        padding:
            10px 12px;

    }


    .mobile-controls button {

        height: 52px;

    }

}