* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #08090d;
    color: white;
    min-height: 100vh;
}

.navbar {
    height: 75px;
    background: #0d0f15;
    border-bottom: 1px solid #20232d;

    display: flex;
    align-items: center;

    padding: 0 50px;

    gap: 60px;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #777b87;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

nav a:hover,
nav a.active {
    color: white;
}

.user-area {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 15px;
}

.balance {
    background: #151821;
    border: 1px solid #242833;

    padding: 8px 15px;

    border-radius: 8px;

    display: flex;
    flex-direction: column;

    min-width: 130px;
}

.balance span {
    color: #777b87;
    font-size: 11px;
}

.balance strong {
    font-size: 15px;
    margin-top: 2px;
}

.profile-btn {
    width: 40px;
    height: 40px;

    border: 1px solid #292d38;
    border-radius: 8px;

    background: #151821;

    color: white;
    font-size: 18px;

    cursor: pointer;
}


.hero {
    min-height: 420px;

    display: flex;
    align-items: center;

    padding: 60px 10%;

    background:
        radial-gradient(
            circle at 70% 40%,
            rgba(93, 68, 180, 0.25),
            transparent 35%
        ),
        radial-gradient(
            circle at 20% 50%,
            rgba(30, 100, 200, 0.12),
            transparent 30%
        );
}

.hero-text {
    max-width: 600px;
}

.small-title {
    color: #858996;
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 90px;
    line-height: 1;

    letter-spacing: 8px;

    margin-bottom: 20px;
}

.hero p:not(.small-title) {
    color: #979aa6;
    font-size: 17px;

    margin-bottom: 30px;
}

.play-button {
    border: none;

    background: white;
    color: black;

    padding: 13px 32px;

    border-radius: 7px;

    font-weight: bold;
    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;
}

.play-button:hover {
    transform: translateY(-2px);
    background: #e8e8e8;
}


.games-section {
    padding: 60px 10%;
}

.section-title p {
    color: #747884;
    font-size: 12px;
    letter-spacing: 3px;
}

.section-title h2 {
    margin-top: 5px;
    font-size: 30px;
}


.games-grid {
    margin-top: 30px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}


.game-card {
    min-height: 150px;

    background: #0f1118;

    border: 1px solid #20232d;

    border-radius: 12px;

    padding: 22px;

    display: flex;

    align-items: center;

    position: relative;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.2s,
        border-color 0.2s,
        background 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);

    border-color: #444956;

    background: #131620;
}

.game-icon {
    width: 65px;
    height: 65px;

    border-radius: 12px;

    background: #181b25;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    margin-right: 18px;
}

.game-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.game-info p {
    color: #737783;
    font-size: 13px;
}

.arrow {
    position: absolute;

    right: 20px;

    color: #626672;

    font-size: 22px;

    transition: 0.2s;
}

.game-card:hover .arrow {
    right: 15px;
    color: white;
}


.stats {
    border-top: 1px solid #20232d;

    display: flex;

    justify-content: center;

    gap: 100px;

    padding: 45px 20px;

    margin-top: 20px;
}

.stat {
    text-align: center;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.stat strong {
    font-size: 25px;
}

.stat span {
    color: #686c77;
    font-size: 12px;
}


.notification {
    position: fixed;

    bottom: 25px;
    left: 50%;

    transform: translate(-50%, 100px);

    background: #171a22;

    border: 1px solid #303441;

    padding: 13px 22px;

    border-radius: 8px;

    color: white;

    opacity: 0;

    transition: 0.3s;

    z-index: 999;
}

.notification.show {
    transform: translate(-50%, 0);

    opacity: 1;
}


@media (max-width: 900px) {

    .navbar {
        padding: 0 20px;
        gap: 25px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 50px 7%;
    }

}


@media (max-width: 600px) {

    .navbar {
        height: auto;
        padding: 15px;

        flex-wrap: wrap;
    }

    nav {
        order: 3;
        width: 100%;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 60px;
    }

    .stats {
        gap: 30px;
        flex-wrap: wrap;
    }
.add-money-btn {
    height: 40px;

    padding: 0 14px;

    border: 1px solid #303542;
    border-radius: 8px;

    background: #171a22;
    color: #ffffff;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.add-money-btn:hover {
    background: #20242e;
    border-color: #454a58;
    transform: translateY(-1px);
}

.add-money-btn:active {
    transform: scale(0.96);
/* =========================================================
   MINES
   ========================================================= */

.mines-page {
    min-height: calc(100vh - 75px);
    padding: 45px 7%;
}


/* =========================
   HEADER
   ========================= */

.mines-header {
    max-width: 1150px;
    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.mines-header h1 {
    font-size: 34px;
    margin-top: 4px;
}

.mines-header .small-title {
    margin: 0;
}


/* =========================
   LAYOUT
   ========================= */

.mines-layout {
    max-width: 1150px;
    margin: auto;

    display: grid;
    grid-template-columns: 300px 1fr;

    gap: 30px;

    align-items: start;
}


/* =========================
   CONTROL PANEL
   ========================= */

.game-panel {
    background:
        linear-gradient(
            180deg,
            #11141c,
            #0d0f15
        );

    border: 1px solid #242833;
    border-radius: 14px;

    padding: 22px;

    height: fit-content;

    box-shadow:
        0 15px 45px rgba(0,0,0,.20);
}

.game-panel label {
    display: block;

    color: #858996;

    font-size: 12px;

    margin-top: 20px;
    margin-bottom: 8px;
}

.game-panel label:first-child {
    margin-top: 0;
}


/* =========================
   BET
   ========================= */

.bet-input {
    display: flex;

    height: 44px;

    background: #151821;

    border: 1px solid #292d38;

    border-radius: 8px;

    overflow: hidden;
}

.bet-input input {
    width: 100%;

    background: transparent;

    border: none;
    outline: none;

    color: white;

    padding: 0 12px;

    font-size: 14px;
}

.bet-input span {
    display: flex;
    align-items: center;

    padding: 0 12px;

    color: #686d79;

    font-size: 11px;
}


/* =========================
   MINES SELECTOR
   ========================= */

.mines-selector {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 6px;
}

.mines-selector button {
    height: 38px;

    background: #151821;

    border: 1px solid #292d38;

    border-radius: 7px;

    color: #777b87;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s,
        border-color .18s,
        color .18s,
        transform .18s;
}

.mines-selector button:hover {
    color: white;

    background: #1b1e27;

    border-color: #4c5260;

    transform: translateY(-1px);
}

.mines-selector button.selected,
.mines-selector button.active {
    background:
        linear-gradient(
            180deg,
            #292e39,
            #1b1e26
        );

    border-color: #707785;

    color: white;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.04);
}


/* =========================
   CURRENT MINES
   ========================= */

.current-mines {
    margin-top: 10px;

    color: #666b77;

    font-size: 12px;
}

.current-mines strong {
    color: #d7d9de;
}


/* =========================
   MULTIPLIER
   ========================= */

.multiplier-box {
    margin-top: 20px;

    padding: 18px;

    background:
        linear-gradient(
            180deg,
            #181b24,
            #13161d
        );

    border: 1px solid #292d38;

    border-radius: 10px;

    text-align: center;
}

.multiplier-box span {
    display: block;

    color: #666b77;

    font-size: 10px;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}

.multiplier-box strong {
    display: block;

    font-size: 30px;

    line-height: 1;

    letter-spacing: -.5px;
}


/* =========================
   NEXT MULTIPLIER
   ========================= */

.next-multiplier {
    margin-top: 8px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 10px 12px;

    background: #11141a;

    border: 1px solid #222631;

    border-radius: 7px;
}

.next-multiplier span {
    color: #626773;

    font-size: 10px;
}

.next-multiplier strong {
    font-size: 12px;

    color: #aeb2bc;
}


/* =========================
   WIN
   ========================= */

.potential-win {
    margin-top: 8px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 10px 12px;

    background: #11141a;

    border: 1px solid #222631;

    border-radius: 7px;
}

.potential-win span {
    color: #626773;

    font-size: 10px;
}

.potential-win strong {
    font-size: 13px;
}


/* =========================
   BUTTONS
   ========================= */

.start-game,
.cashout {
    width: 100%;

    margin-top: 15px;

    padding: 13px;

    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .18s,
        background .18s,
        border-color .18s;
}

.start-game {
    border: none;

    background: white;

    color: #08090d;
}

.start-game:hover:not(:disabled) {
    background: #e8e8e8;

    transform: translateY(-2px);
}

.cashout {
    background: #171a22;

    color: white;

    border: 1px solid #303542;
}

.cashout:hover:not(:disabled) {
    background: #20242e;

    border-color: #555b69;

    transform: translateY(-1px);
}

button:disabled {
    opacity: .4;

    cursor: not-allowed;
}


/* =========================
   BOARD AREA
   ========================= */

.board-container {
    min-width: 0;

    display: flex;

    align-items: center;
    justify-content: center;
}

.mines-board {
    width: min(560px, 100%);
    aspect-ratio: 1 / 1;

    display: grid !important;

    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: repeat(5, 1fr) !important;

    gap: 9px;

    padding: 10px;

    box-sizing: border-box;

    background: #0c0f14;

    border: 1px solid #20242d;

    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);
}


/* =========================
   CELLS
   ========================= */

.mine-cell {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    border: 1px solid #292d38;

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            #151821,
            #101219
        );

    color: #777b87;

    font-size: 23px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    transition:
        transform .15s,
        background .15s,
        border-color .15s,
        box-shadow .15s;
}

.mine-cell:not(:disabled):hover {
    background: #1a1e27;

    border-color: #555b69;

    transform: scale(1.035);

    box-shadow:
        0 5px 18px rgba(0,0,0,.25);
}

.mine-cell:disabled {
    cursor: default;
}


/* =========================
   SAFE CELL
   ========================= */

.mine-cell.revealed {
    background:
        linear-gradient(
            145deg,
            #18221d,
            #131b17
        );

    border-color: #35503f;

    color: #9bd2ad;
}


/* =========================
   MINE
   ========================= */

.mine-cell.mine {
    background:
        radial-gradient(
            circle at center,
            #422126,
            #211418
        );

    border-color: #71353a;

    color: #ff7d85;
}


/* =========================
   ACTIVE / SELECTED
   ========================= */

.mine-cell.selected {
    border-color: #707785;

    background: #20242d;

    box-shadow:
        0 0 0 1px rgba(255,255,255,.05);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1000px) {

    .mines-layout {
        grid-template-columns: 1fr;
    }

    .game-panel {
        width: 100%;
    }

    .board-container {
        width: 100%;
    }

    .mines-board {
        width: min(600px, 100%);
    }
}


@media (max-width: 600px) {

    .mines-page {
        padding: 30px 15px;
    }

    .mines-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .mines-header h1 {
        font-size: 30px;
    }

    .mines-layout {
        gap: 20px;
    }

    .game-panel {
        padding: 17px;
    }

    .mines-board {
        gap: 6px;

        padding: 7px;

        border-radius: 10px;
    }

    .mine-cell {
        border-radius: 7px;

        font-size: 18px;
    }
}

/* =========================================================
   DRAGON TOWER
   ========================================================= */

.dragon-page {
    min-height: calc(100vh - 75px);
    padding: 45px 7%;
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(130, 55, 35, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 25% 70%,
            rgba(80, 45, 120, 0.08),
            transparent 35%
        );
}


/* =========================
   HEADER
   ========================= */

.dragon-header {
    max-width: 1250px;
    margin: 0 auto 35px;
}

.dragon-header .small-title {
    margin-top: 25px;
}

.dragon-header h1 {
    font-size: 42px;
    margin-top: 6px;
    letter-spacing: -1px;
}

.dragon-description {
    color: #777b87;
    margin-top: 10px;
    max-width: 650px;
    line-height: 1.6;
}


/* =========================
   LAYOUT
   ========================= */

.dragon-layout {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 300px 1fr;

    gap: 30px;

    align-items: start;
}


/* =========================
   CONTROL PANEL
   ========================= */

.dragon-panel {
    background:
        linear-gradient(
            180deg,
            #11141c,
            #0d0f15
        );

    border: 1px solid #242833;
    border-radius: 14px;

    padding: 22px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.25);

    position: sticky;
    top: 95px;
}

.dragon-panel h2 {
    font-size: 20px;
}

.panel-subtitle {
    color: #686d79;
    font-size: 12px;
    margin-top: 5px;
}


/* =========================
   BET
   ========================= */

.dragon-panel label {
    display: block;

    color: #858996;
    font-size: 12px;

    margin-top: 22px;
    margin-bottom: 8px;
}

.dragon-panel .bet-input {
    height: 44px;
}


/* =========================
   DIFFICULTY
   ========================= */

.difficulty-buttons {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 6px;
}

.difficulty-btn {
    min-height: 58px;

    border: 1px solid #292d38;
    border-radius: 8px;

    background: #151821;
    color: #777b87;

    cursor: pointer;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    transition: 0.2s;
}

.difficulty-btn strong {
    font-size: 12px;
    color: #aaaeb8;
}

.difficulty-btn span {
    font-size: 9px;
    color: #606571;
}

.difficulty-btn:hover {
    border-color: #454a58;
    color: white;
}

.difficulty-btn:hover strong {
    color: white;
}

.difficulty-btn.selected {
    background:
        linear-gradient(
            180deg,
            #242832,
            #191c24
        );

    border-color: #626875;

    box-shadow:
        0 0 0 1px
        rgba(255, 255, 255, 0.04);
}

.difficulty-btn.selected strong {
    color: white;
}

.difficulty-btn.selected span {
    color: #9095a1;
}


/* =========================
   STATS
   ========================= */

.dragon-stat-box,
.dragon-multiplier-box,
.dragon-win-box {
    margin-top: 12px;

    background: #151821;

    border: 1px solid #222631;

    border-radius: 9px;

    padding: 13px 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.dragon-stat-box span,
.dragon-multiplier-box span,
.dragon-win-box span {
    color: #6f7480;
    font-size: 11px;
}

.dragon-stat-box strong {
    font-size: 17px;
}

.dragon-multiplier-box strong {
    font-size: 21px;
}

.dragon-win-box strong {
    font-size: 15px;
}


/* =========================
   BUTTONS
   ========================= */

.dragon-start-button,
.dragon-cashout-button {
    width: 100%;

    border-radius: 8px;

    padding: 13px;

    margin-top: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.dragon-start-button {
    border: none;

    background: white;
    color: #08090d;
}

.dragon-start-button:hover:not(:disabled) {
    background: #e8e8e8;

    transform:
        translateY(-2px);
}

.dragon-cashout-button {
    border: 1px solid #343944;

    background: #181b23;

    color: white;
}

.dragon-cashout-button:hover:not(:disabled) {
    background: #222631;

    border-color: #555b68;
}

.dragon-start-button:disabled,
.dragon-cashout-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* =========================================================
   GAME AREA
   ========================================================= */

.dragon-game-area {
    min-width: 0;

    background:
        radial-gradient(
            circle at 50% 80%,
            rgba(130, 60, 35, 0.08),
            transparent 45%
        ),
        #0b0d12;

    border: 1px solid #20242d;

    border-radius: 16px;

    padding: 25px;

    min-height: 700px;

    display: flex;
    flex-direction: column;

    align-items: center;

    overflow: hidden;

    position: relative;
}


/* =========================
   TOP INFO
   ========================= */

.tower-top-info {
    width: 100%;

    display: flex;

    justify-content: space-between;

    padding: 0 5px 20px;

    border-bottom: 1px solid #1e222b;
}

.tower-top-info div {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.tower-top-info span {
    color: #5e6370;

    font-size: 9px;

    letter-spacing: 2px;
}

.tower-top-info strong {
    font-size: 13px;
}


/* =========================================================
   TOWER
   ========================================================= */

.dragon-tower {
    width: min(700px, 100%);

    height: 570px;

    margin-top: 20px;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    gap: 5px;

    position: relative;

    padding:
        10px
        30px
        10px
        30px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015),
            transparent 15%,
            transparent 85%,
            rgba(255,255,255,0.015)
        );

    border-left: 2px solid #292d37;
    border-right: 2px solid #292d37;

    box-shadow:
        inset 0 0 50px
        rgba(0,0,0,0.35);
}


/* =========================
   TOWER SIDE PILLARS
   ========================= */

.dragon-tower::before,
.dragon-tower::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    width: 7px;

    background:
        linear-gradient(
            180deg,
            #343944,
            #171a21,
            #343944
        );

    border-radius: 5px;

    opacity: 0.6;
}

.dragon-tower::before {
    left: -5px;
}

.dragon-tower::after {
    right: -5px;
}


/* =========================================================
   FLOOR
   ========================================================= */

.dragon-floor {
    flex: 1;

    min-height: 48px;

    display: grid;

    grid-template-columns:
        35px 1fr 60px;

    align-items: center;

    gap: 10px;

    padding: 4px 10px;

    background:
        linear-gradient(
            180deg,
            #14171f,
            #101219
        );

    border:
        1px solid #242833;

    border-radius: 7px;

    position: relative;

    transition:
        background 0.3s,
        border-color 0.3s,
        transform 0.3s;
}


/* floor number */

.floor-number {
    color: #565b67;

    font-size: 11px;

    text-align: center;

    font-weight: 700;
}


/* =========================
   ACTIVE FLOOR
   ========================= */

.dragon-floor.active-floor {
    border-color: #696f7d;

    background:
        linear-gradient(
            180deg,
            #1a1e27,
            #13161d
        );

    box-shadow:
        0 0 20px
        rgba(255,255,255,0.035);

    transform:
        scale(1.015);
}

.dragon-floor.active-floor
.floor-number {
    color: white;
}


/* =========================
   COMPLETED FLOOR
   ========================= */

.dragon-floor.completed-floor {
    opacity: 0.72;
}

.dragon-floor.completed-floor
.floor-number {
    color: #7fba91;
}


/* =========================================================
   DOORS
   ========================================================= */

.dragon-doors {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 7px;

    min-width: 0;
}


/*
   Medium = 3 двери
   Hard = 2 двери

   JS автоматически создаёт
   нужное количество, поэтому
   grid адаптируем через :has.
*/

.dragon-doors:has(
    .dragon-door:nth-child(3):last-child
) {
    grid-template-columns:
        repeat(3, 1fr);
}

.dragon-doors:has(
    .dragon-door:nth-child(2):last-child
) {
    grid-template-columns:
        repeat(2, 1fr);
}


/* =========================
   DOOR
   ========================= */

.dragon-door {
    height: 45px;

    min-width: 0;

    border: 1px solid #303542;

    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            #20242d,
            #161920
        );

    color: #b1b5bf;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    transition:
        transform 0.18s,
        border-color 0.18s,
        background 0.18s,
        box-shadow 0.18s;
}

.dragon-door:not(:disabled):hover {
    transform:
        translateY(-2px);

    border-color: #777e8c;

    background:
        linear-gradient(
            180deg,
            #292e39,
            #1b1f28
        );

    box-shadow:
        0 7px 20px
        rgba(0,0,0,0.3);
}

.dragon-door:disabled {
    cursor: default;
}

.door-icon {
    font-size: 18px;
}

.door-number {
    font-size: 10px;

    color: #707581;

    font-weight: 700;
}


/* =========================================================
   FLOOR MULTIPLIER
   ========================================================= */

.floor-multiplier {
    text-align: right;

    color: #656a76;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   SAFE DOOR
   ========================================================= */

.dragon-door.safe-door {
    background:
        linear-gradient(
            180deg,
            #1c2b22,
            #142019
        );

    border-color: #3e674d;

    color: #8ed0a3;

    animation:
        dragonSafeDoor 0.45s ease;
}

.dragon-door.safe-door .door-icon {
    animation:
        safeGlow 1.2s ease infinite;
}


/* =========================================================
   DRAGON
   ========================================================= */

.dragon-door.dragon-hit {
    background:
        radial-gradient(
            circle,
            #512327,
            #281519
        );

    border-color: #a0444b;

    color: #ff858c;

    animation:
        dragonShake 0.45s ease;
}

.dragon-door.dragon-door-revealed {
    background:
        linear-gradient(
            180deg,
            #3a191d,
            #211316
        );

    border-color: #71343a;

    color: #ef7279;
}

.dragon-door.safe-door-revealed {
    opacity: 0.35;
}


/* =========================================================
   GROUND
   ========================================================= */

.tower-ground {
    width: min(700px, 100%);

    margin-top: 8px;

    text-align: center;
}

.ground-line {
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #343945,
            transparent
        );

    margin-bottom: 8px;
}

.tower-ground span {
    color: #414650;

    font-size: 9px;

    letter-spacing: 4px;

    font-weight: 700;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes dragonSafeDoor {

    0% {
        transform: scale(0.92);
        opacity: 0.5;
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}

@keyframes safeGlow {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }

}

@keyframes dragonShake {

    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .dragon-layout {
        grid-template-columns: 1fr;
    }

    .dragon-panel {
        position: static;
    }

    .dragon-game-area {
        min-height: 650px;
    }

}


@media (max-width: 650px) {

    .dragon-page {
        padding:
            30px 15px;
    }

    .dragon-header h1 {
        font-size: 32px;
    }

    .dragon-game-area {
        padding: 15px;

        min-height: 560px;
    }

    .dragon-tower {
        height: 470px;

        padding:
            7px 12px;
    }

    .dragon-floor {
        grid-template-columns:
            22px 1fr 45px;

        gap: 5px;

        padding:
            3px 5px;
    }

    .dragon-door {
        height: 38px;
    }

    .door-icon {
        font-size: 15px;
    }

    .floor-multiplier {
        font-size: 9px;
    }
/* =========================================================
   EXTRA GAMES
   ========================================================= */

.game-card.crash,
.game-card.plinko,
.game-card.pump,
.game-card.hilo,
.game-card.blackjack,
.game-card.wheel,
.game-card.cases {
    position: relative;
}


/* =========================================================
   GAME CARD HIGHLIGHT
   ========================================================= */

.game-card {
    transition:
        transform 0.2s,
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}


/* Наведение */

.game-card:hover {
    transform: translateY(-4px);

    border-color: #555b69;

    background: #131620;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);
}


/* Нажатие */

.game-card:active {
    transform: translateY(-1px) scale(0.99);

    border-color: #777e8c;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.035),
        0 5px 20px rgba(0, 0, 0, 0.25);
}


/* Клавиатурное выделение */

.game-card:focus-visible {
    outline: none;

    border-color: #777e8c;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   GAME ICON HIGHLIGHT
   ========================================================= */

.game-card:hover .game-icon {
    background: #1d202a;

    border-color: #343944;
}


/* =========================================================
   NEW GAME ICONS
   ========================================================= */

.game-card.crash .game-icon {
    background: #171a22;
}

.game-card.plinko .game-icon {
    background: #171a22;
}

.game-card.pump .game-icon {
    background: #171a22;
}

.game-card.hilo .game-icon {
    background: #171a22;
}

.game-card.blackjack .game-icon {
    background: #171a22;
}

.game-card.wheel .game-icon {
    background: #171a22;
}

.game-card.cases .game-icon {
    background: #171a22;
}


/* =========================================================
   ARROW HIGHLIGHT
   ========================================================= */

.game-card:hover .arrow {
    right: 15px;
    color: white;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .games-grid {
        grid-template-columns: 1fr;
    }

}