/* =========================================================
   MIDNIGHT COINFLIP
   ========================================================= */

:root {
    --coinflip-bg: #05050a;
    --coinflip-panel: rgba(13, 10, 20, .88);
    --coinflip-panel-soft: rgba(22, 15, 33, .72);

    --coinflip-purple: #8d5cff;
    --coinflip-purple-light: #b889ff;

    --coinflip-gold: #d8ad5f;
    --coinflip-gold-light: #ffd98a;

    --coinflip-green: #44d68c;
    --coinflip-red: #e85766;

    --coinflip-text: #f7f3ff;
    --coinflip-muted: #908a9c;

    --coinflip-border: rgba(180, 124, 255, .18);
}


/* =========================================================
   PAGE
   ========================================================= */

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(112, 55, 220, .15),
            transparent 45%
        ),
        var(--coinflip-bg);

    color: var(--coinflip-text);
}


.coinflip-page {
    min-height: 100vh;

    position: relative;

    z-index: 1;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.coinflip-navbar {
    height: 78px;

    padding: 0 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .05);

    background:
        rgba(6, 5, 10, .82);

    backdrop-filter:
        blur(18px);

    position: sticky;
    top: 0;

    z-index: 100;
}

.coinflip-navbar {
    position: sticky;
}

.coinflip-live {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);
}


.coinflip-brand {
    display: flex;
    align-items: center;
    gap: 13px;

    color: inherit;

    text-decoration: none;
}


.coinflip-brand-icon {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    color: var(--coinflip-gold-light);

    background:
        linear-gradient(
            145deg,
            rgba(119, 70, 213, .28),
            rgba(25, 16, 40, .85)
        );

    border:
        1px solid
        rgba(184, 137, 255, .24);

    box-shadow:
        0 0 24px
        rgba(113, 61, 220, .16);
}


.coinflip-brand strong {
    display: block;

    font-size: 14px;
    font-weight: 900;

    letter-spacing: 3px;
}


.coinflip-brand span {
    display: block;

    margin-top: 4px;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 4px;

    color: var(--coinflip-purple-light);
}


.coinflip-live {
    padding: 10px 15px;

    display: flex;
    align-items: center;
    gap: 9px;

    border-radius: 999px;

    border:
        1px solid
        rgba(68, 214, 140, .18);

    background:
        rgba(68, 214, 140, .055);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;

    color: #b9f7d8;
}


.coinflip-live span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--coinflip-green);

    box-shadow:
        0 0 10px
        rgba(68, 214, 140, .8);
}

/* =========================================================
   AUDIO CONTROL
   ========================================================= */

.coinflip-audio-control {
    display: flex;
    align-items: center;
    gap: 10px;

    height: 42px;
    padding: 0 12px;

    border: 1px solid rgba(184, 137, 255, .17);
    border-radius: 12px;

    background: rgba(255, 255, 255, .025);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.coinflip-audio-button {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--coinflip-text);

    font-size: 14px;

    cursor: pointer;

    opacity: .9;

    transition:
        opacity .15s ease,
        transform .15s ease;
}

.coinflip-audio-button:hover {
    opacity: 1;
    transform: scale(1.06);
}

.coinflip-volume-slider {
    width: 86px;
    height: 4px;

    margin: 0;

    accent-color: var(--coinflip-purple-light);

    cursor: pointer;
}

.coinflip-user {
    display: flex;
    align-items: center;
    gap: 16px;
}


.coinflip-balance {
    display: flex;
    align-items: center;
    gap: 10px;
}


.coinflip-token,
.coinflip-coin-small {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #1c1308;

    font-weight: 900;

    background:
        linear-gradient(
            145deg,
            #ffe09b,
            #b87928
        );

    box-shadow:
        0 0 16px
        rgba(255, 205, 107, .18);
}


.coinflip-balance span {
    display: block;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.8px;

    color: var(--coinflip-muted);
}


.coinflip-balance strong {
    display: block;

    margin-top: 3px;

    font-size: 14px;
}


.coinflip-back {
    min-height: 39px;

    padding: 0 16px;

    border-radius: 10px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .025);

    color: var(--coinflip-text);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}


.coinflip-back:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(184, 137, 255, .26);

    background:
        rgba(141, 92, 255, .07);
}


/* =========================================================
   MAIN
   ========================================================= */

.coinflip-main {
    width:
        min(1280px, calc(100% - 48px));

    margin:
        42px auto 70px;

    display: grid;

    grid-template-columns:
        390px minmax(0, 1fr);

    gap: 32px;

    align-items: start;
}


/* =========================================================
   CONTROL PANEL
   ========================================================= */

.coinflip-control-panel {
    padding: 28px;

    border-radius: 22px;

    border:
        1px solid
        var(--coinflip-border);

    background:
        linear-gradient(
            145deg,
            rgba(22, 15, 33, .82),
            rgba(8, 7, 12, .94)
        );

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, .35);
}


.coinflip-control-header > span {
    font-size: 9px;
    font-weight: 900;

    letter-spacing: 3px;

    color: var(--coinflip-purple-light);
}


.coinflip-control-header h1 {
    margin:
        9px 0 8px;

    font-size: 30px;
    line-height: 1.05;
}


.coinflip-control-header p {
    margin: 0;

    color: var(--coinflip-muted);

    font-size: 12px;
    line-height: 1.65;
}


.coinflip-control-block {
    margin-top: 24px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, .055);
}


.coinflip-control-title {
    margin-bottom: 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.coinflip-control-title span {
    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.7px;

    color: var(--coinflip-muted);
}


.coinflip-control-title strong {
    font-size: 11px;

    color: var(--coinflip-gold-light);
}


/* =========================================================
   BET INPUT
   ========================================================= */

.coinflip-bet-input {
    min-height: 54px;

    padding: 0 14px;

    display: flex;
    align-items: center;

    border-radius: 13px;

    border:
        1px solid
        rgba(184, 137, 255, .15);

    background:
        rgba(5, 5, 9, .72);
}


.coinflip-bet-input input {
    flex: 1;

    min-width: 0;

    margin-left: 11px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #fff;

    font-size: 18px;
    font-weight: 900;
}


.coinflip-bet-input > span {
    font-size: 10px;
    font-weight: 800;

    color: var(--coinflip-muted);
}


.coinflip-quick-bets {
    margin-top: 10px;

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 7px;
}


.coinflip-quick-bets button {
    min-height: 36px;

    border-radius: 9px;

    border:
        1px solid
        rgba(255, 255, 255, .065);

    background:
        rgba(255, 255, 255, .025);

    color: #bbb4c6;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.coinflip-quick-bets button.selected {
    border-color:
        rgba(184, 137, 255, .72);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .22),
            rgba(91, 46, 174, .10)
        );

    color:
        #f3eaff;

    box-shadow:
        0 0 0 1px
        rgba(184, 137, 255, .10),

        0 0 18px
        rgba(141, 92, 255, .22);

    text-shadow:
        0 0 8px
        rgba(184, 137, 255, .25);
}

.coinflip-quick-bets button:disabled {
    opacity: .4;

    cursor: not-allowed;
}


/* =========================================================
   SIDE OPTIONS
   ========================================================= */

.coinflip-side-options {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


.coinflip-side-option {
    min-height: 110px;

    padding: 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border-radius: 15px;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    background:
        linear-gradient(
            145deg,
            rgba(35, 24, 52, .9),
            rgba(15, 11, 23, .95)
        );

    color: var(--coinflip-text);

    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.coinflip-side-option:hover:not(:disabled) {
    transform:
        translateY(-2px);

    border-color:
        rgba(184, 137, 255, .28);
}


.coinflip-side-option.selected {
    border-color:
        rgba(184, 137, 255, .55);

    background:
        linear-gradient(
            145deg,
            rgba(141, 92, 255, .24),
            rgba(91, 46, 174, .13)
        );

    box-shadow:
        0 0 26px
        rgba(125, 69, 238, .12);
}


.coinflip-side-option:disabled {
    opacity: .5;

    cursor: not-allowed;
}


.coinflip-side-symbol {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;
    font-weight: 900;

    background:
        linear-gradient(
            145deg,
            #ffe09b,
            #b87928
        );

    color: #241604;
}


.coinflip-side-option strong {
    font-size: 11px;

    letter-spacing: 1.5px;
}


/* =========================================================
   INFO
   ========================================================= */

.coinflip-info-grid {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


.coinflip-info-card {
    min-height: 70px;

    padding: 13px;

    border-radius: 12px;

    border:
        1px solid
        rgba(255, 255, 255, .055);

    background:
        rgba(255, 255, 255, .02);
}


.coinflip-info-card span {
    display: block;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: 1.3px;

    color: var(--coinflip-muted);
}


.coinflip-info-card strong {
    display: block;

    margin-top: 9px;

    font-size: 17px;
}


#coinflipMultiplier {
    color: var(--coinflip-purple-light);
}


#coinflipPotentialPayout {
    color: var(--coinflip-gold-light);
}


/* =========================================================
   START BUTTON
   ========================================================= */

.coinflip-start-button {
    width: 100%;

    min-height: 52px;

    margin-top: 22px;

    border-radius: 12px;

    border:
        1px solid
        rgba(184, 137, 255, .36);

    background:
        linear-gradient(
            145deg,
            #8051dc,
            #57309c
        );

    color: #fff;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;

    cursor: pointer;

    box-shadow:
        0 12px 30px
        rgba(110, 59, 205, .17);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}


.coinflip-start-button:hover:not(:disabled) {
    transform:
        translateY(-2px);
}


.coinflip-start-button:disabled {
    opacity: .4;

    cursor: not-allowed;

    transform: none;
}


.coinflip-message {
    min-height: 18px;

    margin:
        15px 0 0;

    text-align: center;

    font-size: 10px;

    color: var(--coinflip-muted);
}


/* =========================================================
   GAME AREA
   ========================================================= */

.coinflip-game-area {
    min-height: 670px;

    position: relative;

    padding: 28px;

    overflow: hidden;

    border-radius: 24px;

    border:
        1px solid
        rgba(184, 137, 255, .14);

    background:
        linear-gradient(
            145deg,
            rgba(18, 12, 28, .86),
            rgba(7, 6, 11, .95)
        );

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, .42);
}


.coinflip-game-glow {
    position: absolute;

    width: 520px;
    height: 520px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(116, 57, 232, .13),
            transparent 68%
        );

    filter:
        blur(20px);

    pointer-events: none;
}


.coinflip-game-header,
.coinflip-game-footer {
    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.coinflip-game-header span,
.coinflip-game-footer span {
    display: block;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.7px;

    color: var(--coinflip-muted);
}


.coinflip-game-header strong,
.coinflip-game-footer strong {
    display: block;

    margin-top: 5px;

    font-size: 13px;
}


.coinflip-status {
    padding: 9px 13px;

    border-radius: 999px;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    background:
        rgba(255, 255, 255, .025);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.2px;

    color: #aaa2b7;
}


.coinflip-status.active {
    border-color:
        rgba(184, 137, 255, .26);

    color: #d8c7ff;
}


.coinflip-status.win {
    border-color:
        rgba(68, 214, 140, .25);

    color: #b9f7d8;
}


.coinflip-status.loss {
    border-color:
        rgba(232, 87, 102, .25);

    color: #ffabb4;
}


/* =========================================================
   COIN STAGE
   ========================================================= */

.coinflip-stage {
    min-height: 520px;

    position: relative;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1300px;
}


/* =========================================================
   COIN
   ========================================================= */

.coinflip-coin {
    width: 240px;
    height: 240px;

    position: relative;

    flex: 0 0 240px;

    transform-style:
        preserve-3d;

    transform-origin:
        50% 50%;

    transform:
        rotateX(7deg)
        rotateY(0deg);

    border-radius: 50%;

    will-change:
        transform;
}


.coinflip-face {
    position: absolute;

    inset: 0;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 50%;

    backface-visibility:
        hidden;

    -webkit-backface-visibility:
        hidden;

    border:
        9px solid
        #75501b;

    background:
        radial-gradient(
            circle at 34% 27%,
            #fff1b6 0%,
            #f5cb6c 18%,
            #d89a32 48%,
            #9b641d 75%,
            #56320b 100%
        );

    box-shadow:
        inset 0 0 0 3px
        rgba(255, 225, 143, .45),

        inset 0 0 0 10px
        rgba(76, 42, 5, .18),

        inset 0 16px 25px
        rgba(255, 241, 181, .22),

        inset 0 -18px 32px
        rgba(61, 30, 0, .42),

        0 20px 55px
        rgba(0, 0, 0, .45),

        0 0 45px
        rgba(216, 173, 95, .12);
}


.coinflip-face::before {
    content: "";

    position: absolute;

    inset: 15px;

    border-radius: 50%;

    border:
        2px solid
        rgba(83, 46, 7, .42);

    box-shadow:
        inset 0 0 0 3px
        rgba(255, 231, 159, .12);

    pointer-events: none;
}


.coinflip-tails {
    transform:
        rotateY(180deg);
}


/* =========================================================
   HEAD SIDE
   ========================================================= */

.coinflip-head-emblem {
    width: 92px;
    height: 92px;

    position: relative;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        2px solid
        rgba(71, 38, 4, .48);
}


.coinflip-head-shape {
    width: 43px;
    height: 52px;

    position: relative;

    border-radius:
        48% 48% 44% 44%;

    background:
        #4a2907;
}


.coinflip-head-shape::before {
    content: "";

    position: absolute;

    width: 12px;
    height: 10px;

    right: -7px;
    top: 24px;

    border-radius:
        0 60% 60% 0;

    background:
        #4a2907;
}


.coinflip-head-shape::after {
    content: "";

    position: absolute;

    width: 54px;
    height: 23px;

    left: 50%;
    bottom: -28px;

    transform:
        translateX(-50%);

    border-radius:
        50% 50% 18% 18%;

    background:
        #4a2907;
}


.coinflip-head-hair {
    position: absolute;

    width: 42px;
    height: 19px;

    left: 0;
    top: -2px;

    border-radius:
        60% 60% 35% 20%;

    background:
        #301903;
}


.coinflip-head-neck {
    position: absolute;

    width: 19px;
    height: 20px;

    left: 50%;
    bottom: -12px;

    transform:
        translateX(-50%);

    background:
        #4a2907;
}


/* =========================================================
   WRITING SIDE
   ========================================================= */

.coinflip-writing {
    width: 112px;
    height: 112px;

    position: relative;

    z-index: 5;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        2px solid
        rgba(71, 38, 4, .48);

    color:
        #482704;
}


.coinflip-writing-top {
    font-size: 8px;
    font-weight: 1000;

    letter-spacing: 3px;
}


.coinflip-writing strong {
    margin:
        3px 0;

    font-size: 50px;
    line-height: 1;

    font-weight: 1000;

    color:
        #462503;
}


.coinflip-writing-bottom {
    font-size: 6px;
    font-weight: 1000;

    letter-spacing: 2px;
}


/* =========================================================
   FACE TEXT
   ========================================================= */

.coinflip-face-title {
    position: relative;

    z-index: 5;

    margin-top: 5px;

    font-size: 14px;
    font-weight: 1000;

    letter-spacing: 5px;

    color: #4a2a08;
}


.coinflip-face-subtitle {
    position: relative;

    z-index: 5;

    font-size: 7px;
    font-weight: 1000;

    letter-spacing: 3px;

    color:
        rgba(72, 39, 5, .72);
}


/* =========================================================
   GAME FOOTER
   ========================================================= */

.coinflip-game-footer {
    padding-top: 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, .05);
}


/* =========================================================
   RESULT MODAL
   ========================================================= */

.coinflip-result-overlay {
    position: fixed;

    inset: 0;

    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    background:
        rgba(3, 3, 6, .76);

    backdrop-filter:
        blur(12px);

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.coinflip-result-overlay.open {
    opacity: 1;
    visibility: visible;
}


.coinflip-result-modal {
    width:
        min(390px, 100%);

    padding: 35px;

    text-align: center;

    border-radius: 22px;

    border:
        1px solid
        rgba(184, 137, 255, .23);

    background:
        linear-gradient(
            145deg,
            #171020,
            #09080e
        );

    box-shadow:
        0 35px 110px
        rgba(0, 0, 0, .65),
        0 0 60px
        rgba(116, 57, 232, .11);
}


.coinflip-result-icon {
    width: 82px;
    height: 82px;

    margin:
        0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid
        rgba(184, 137, 255, .28);

    background:
        radial-gradient(
            circle,
            rgba(141, 92, 255, .22),
            rgba(10, 8, 15, .8)
        );

    color: var(--coinflip-purple-light);

    font-size: 34px;
}


.coinflip-result-modal > span {
    font-size: 8px;
    font-weight: 900;

    letter-spacing: 2.8px;

    color: var(--coinflip-purple-light);
}


.coinflip-result-modal h2 {
    margin:
        10px 0;

    font-size: 29px;
}


.coinflip-result-modal p {
    margin:
        0 auto;

    max-width: 300px;

    color: var(--coinflip-muted);

    font-size: 12px;
    line-height: 1.6;
}


.coinflip-result-modal > strong {
    display: block;

    margin-top: 20px;

    color: var(--coinflip-gold-light);

    font-size: 23px;
}


.coinflip-result-modal button {
    width: 100%;

    min-height: 46px;

    margin-top: 24px;

    border-radius: 11px;

    border:
        1px solid
        rgba(184, 137, 255, .28);

    background:
        linear-gradient(
            145deg,
            #8051dc,
            #57309c
        );

    color: #fff;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;

    cursor: pointer;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
    max-width: 1050px
) {

    .coinflip-main {
        grid-template-columns:
            1fr;
    }


    .coinflip-control-panel {
        order: 2;
    }

}


@media (
    max-width: 700px
) {

    .coinflip-navbar {
        height: auto;

        padding: 16px;

        flex-wrap: wrap;

        gap: 14px;
    }


    .coinflip-live {
        display: none;
    }


    .coinflip-main {
        width:
            min(100% - 24px, 700px);

        margin-top: 22px;
    }


    .coinflip-control-panel,
    .coinflip-game-area {
        padding: 18px;
    }


    .coinflip-game-area {
        min-height: auto;
    }


    .coinflip-stage {
        min-height: 410px;
    }


    .coinflip-coin {
        width: 190px;
        height: 190px;

        flex-basis: 190px;
    }


    .coinflip-head-emblem {
        width: 75px;
        height: 75px;
    }


    .coinflip-writing {
        width: 90px;
        height: 90px;
    }


    .coinflip-quick-bets {
        grid-template-columns:
            repeat(3, 1fr);
    }

}

/* =========================================================
   COINFLIP — FINAL MOBILE SAFETY / POLISH
   ========================================================= */

@media (max-width: 680px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }

    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    button,
    input {
        touch-action: manipulation;

        -webkit-tap-highlight-color:
            transparent;
    }


    /* =====================================================
       PAGE
       ===================================================== */

    .coinflip-page {
        width:
            calc(100% - 12px);

        max-width: 100%;

        margin:
            0 auto;

        padding-bottom:
            calc(
                26px +
                env(safe-area-inset-bottom)
            );

        box-sizing: border-box;
    }


    /* =====================================================
       TOPBAR
       ===================================================== */

    .coinflip-topbar {
        width: 100%;

        grid-template-columns:
            1fr
            auto;

        gap: 10px;

        padding: 12px;

        box-sizing: border-box;
    }

    .coinflip-title-wrapper {
        grid-column:
            1 / -1;

        grid-row: 1;

        text-align: center;
    }

    .coinflip-back-button {
        grid-column: 1;
        grid-row: 2;

        justify-self: start;

        min-height: 42px;
    }

    .coinflip-topbar-actions {
        grid-column: 2;
        grid-row: 2;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 7px;
    }


    /* =====================================================
       AUDIO
       ===================================================== */

    .coinflip-audio-control {
        width: auto;
        min-width: 0;

        height: 42px;

        padding:
            0
            9px;

        gap: 7px;
    }

    .coinflip-volume-wrap {
        width: 64px;
        min-width: 64px;

        flex:
            0 0
            64px;
    }

    .coinflip-volume-slider {
        width: 64px;
    }


    /* =====================================================
       BALANCE
       ===================================================== */

    .coinflip-balance-box {
        width: auto;

        min-width: 102px;

        min-height: 42px;

        padding:
            6px
            10px;

        box-sizing: border-box;
    }


    /* =====================================================
       MAIN LAYOUT
       ===================================================== */

    .coinflip-layout {
        width: 100%;
        max-width: 100%;

        grid-template-columns:
            1fr;

        gap: 12px;

        box-sizing: border-box;
    }

    .coinflip-layout > * {
        min-width: 0;
    }


    /* =====================================================
       PANELS
       ===================================================== */

    .coinflip-control-panel,
    .coinflip-game-panel {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        padding: 16px;

        box-sizing: border-box;
    }


    /* =====================================================
       INPUT
       ===================================================== */

    .coinflip-input,
    .coinflip-bet-input {
        width: 100%;
        max-width: 100%;

        min-height: 46px;

        box-sizing: border-box;
    }


    /* =====================================================
       QUICK BETS
       ===================================================== */

    .coinflip-quick-bets {
        width: 100%;

        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 6px;
    }

    .coinflip-quick-bets button {
        min-width: 0;

        min-height: 42px;

        padding:
            0
            6px;
    }


    /* =====================================================
       SIDE SELECTOR
       ===================================================== */

    .coinflip-side-selector,
    .coinflip-choice-grid {
        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 8px;
    }

    .coinflip-side-button,
    .coinflip-choice-button {
        width: 100%;

        min-width: 0;
        min-height: 56px;

        box-sizing: border-box;
    }


    /* =====================================================
       COIN STAGE
       ===================================================== */

    .coinflip-stage,
    .coinflip-result-stage {
        width: 100%;
        max-width: 100%;

        min-height: 300px;

        overflow: hidden;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .coinflip-coin,
    .coinflip-main-coin {
        width:
            min(
                58vw,
                220px
            );

        height:
            min(
                58vw,
                220px
            );

        max-width: 220px;
        max-height: 220px;
    }


    /* =====================================================
       STATS
       ===================================================== */

    .coinflip-stats,
    .coinflip-stat-grid {
        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 7px;
    }

    .coinflip-stat-card {
        min-width: 0;

        box-sizing: border-box;
    }


    /* =====================================================
       FLIP BUTTON
       ===================================================== */

    .coinflip-flip-button,
    .coinflip-main-button {
        width: 100%;

        min-height: 52px;

        touch-action: manipulation;
    }


    /* =====================================================
       HISTORY
       ===================================================== */

    .coinflip-history {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling:
            touch;
    }


    /* =====================================================
       RESULT MODAL
       ===================================================== */

    .coinflip-result-overlay {
        padding:
            max(
                10px,
                env(safe-area-inset-top)
            )
            10px
            max(
                10px,
                env(safe-area-inset-bottom)
            );

        overflow-y: auto;

        -webkit-overflow-scrolling:
            touch;
    }

    .coinflip-result-modal {
        width: 100%;

        max-width:
            calc(100vw - 20px);

        max-height:
            calc(100dvh - 20px);

        overflow-y: auto;

        box-sizing: border-box;
    }


    /* =====================================================
       PERFORMANCE
       ===================================================== */

    .coinflip-control-panel,
    .coinflip-game-panel,
    .coinflip-result-modal {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .coinflip-page {
        width:
            calc(100% - 8px);
    }

    .coinflip-topbar {
        padding: 9px;
    }

    .coinflip-title {
        font-size: 21px;
    }

    .coinflip-volume-wrap {
        width: 50px;
        min-width: 50px;

        flex-basis: 50px;
    }

    .coinflip-volume-slider {
        width: 50px;
    }

    .coinflip-balance-box {
        min-width: 90px;
    }

    .coinflip-control-panel,
    .coinflip-game-panel {
        padding: 13px;
    }

    .coinflip-coin,
    .coinflip-main-coin {
        width:
            min(
                64vw,
                200px
            );

        height:
            min(
                64vw,
                200px
            );
    }

    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .coinflip-result-modal {
        padding:
            21px
            17px;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .coinflip-side-button:hover,
    .coinflip-choice-button:hover,
    .coinflip-flip-button:hover,
    .coinflip-main-button:hover,
    .coinflip-quick-bets button:hover {
        transform: none;
    }

}

/* =========================================================
   MIDNIGHT AUDIO UI — COINFLIP
   VISUAL ONLY / FUNCTION UNCHANGED
   ========================================================= */

.coinflip-audio-control {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(167, 102, 255, 0.20) !important;

    border-radius:
        12px !important;

    background:
        radial-gradient(
            circle at 18% 10%,
            rgba(175, 110, 255, 0.08),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(25, 17, 39, 0.88),
            rgba(9, 8, 15, 0.94)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.045),

        inset 0 0 18px
        rgba(132, 67, 230, 0.025),

        0 7px 22px
        rgba(0, 0, 0, 0.22) !important;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


.coinflip-audio-control::before {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;
    top: 0;

    height: 1px;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(186, 126, 255, 0.40),
            transparent
        );
}


/* =========================================================
   AUDIO BUTTON
   ========================================================= */

.coinflip-audio-button {
    position: relative;

    z-index: 2;

    width:
        26px !important;

    height:
        26px !important;

    flex:
        0 0
        26px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        0 !important;

    border:
        1px solid
        rgba(178, 113, 255, 0.18) !important;

    border-radius:
        8px !important;

    background:
        radial-gradient(
            circle at 35% 22%,
            rgba(202, 158, 255, 0.10),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(37, 23, 58, 0.92),
            rgba(14, 11, 22, 0.96)
        ) !important;

    color:
        #d8b9ff !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.05),

        0 0 12px
        rgba(143, 73, 255, 0.08);

    opacity:
        1 !important;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}


.coinflip-audio-button:hover {
    transform:
        translateY(-1px)
        scale(1.03) !important;

    color:
        #f0e4ff !important;

    border-color:
        rgba(190, 126, 255, 0.40) !important;

    background:
        linear-gradient(
            145deg,
            rgba(52, 30, 81, 0.96),
            rgba(19, 13, 30, 0.98)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.07),

        0 0 18px
        rgba(143, 73, 255, 0.18);
}


.coinflip-audio-button:active {
    transform:
        scale(0.96) !important;
}


/* =========================================================
   SVG ICON
   ========================================================= */

.coinflip-audio-icon {
    width:
        17px;

    height:
        17px;

    display:
        block;

    color:
        currentColor;

    pointer-events:
        none;
}


/* =========================================================
   VOLUME SLIDER
   ========================================================= */

.coinflip-volume-slider {
    position: relative;

    z-index: 2;

    width:
        86px;

    height:
        4px;

    margin:
        0;

    appearance:
        none;

    -webkit-appearance:
        none;

    border-radius:
        999px;

    outline:
        none;

    cursor:
        pointer;

    background:
        linear-gradient(
            90deg,
            rgba(158, 86, 255, 0.76),
            rgba(193, 133, 255, 0.88)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.035),

        0 0 9px
        rgba(139, 73, 255, 0.08);
}


/* Chrome / Brave / Edge */

.coinflip-volume-slider::-webkit-slider-runnable-track {
    height:
        4px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            rgba(121, 62, 218, 0.72),
            rgba(180, 107, 255, 0.72)
        );
}


.coinflip-volume-slider::-webkit-slider-thumb {
    width:
        12px;

    height:
        12px;

    margin-top:
        -4px;

    appearance:
        none;

    -webkit-appearance:
        none;

    border:
        2px solid
        #c994ff;

    border-radius:
        50%;

    background:
        #16101f;

    box-shadow:
        0 0 0 3px
        rgba(159, 87, 255, 0.10),

        0 0 10px
        rgba(174, 105, 255, 0.46);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}


.coinflip-volume-slider:hover::-webkit-slider-thumb {
    transform:
        scale(1.10);

    box-shadow:
        0 0 0 4px
        rgba(159, 87, 255, 0.12),

        0 0 14px
        rgba(174, 105, 255, 0.62);
}


/* Firefox */

.coinflip-volume-slider::-moz-range-track {
    height:
        4px;

    border:
        0;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.07);
}


.coinflip-volume-slider::-moz-range-progress {
    height:
        4px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            #7c3ee1,
            #ba72ff
        );
}


.coinflip-volume-slider::-moz-range-thumb {
    width:
        10px;

    height:
        10px;

    border:
        2px solid
        #c994ff;

    border-radius:
        50%;

    background:
        #16101f;

    box-shadow:
        0 0 10px
        rgba(174, 105, 255, 0.50);

    cursor:
        pointer;
}


/* =========================================================
   FOCUS
   ========================================================= */

.coinflip-audio-button:focus-visible,
.coinflip-volume-slider:focus-visible {
    outline:
        1px solid
        rgba(200, 147, 255, 0.65);

    outline-offset:
        2px;
}


/* =========================================================
   MIDNIGHT COINFLIP
   FINAL RESPONSIVE LAYER

   PHONES:
   iPhone SE
   iPhone XR
   iPhone 12 Pro
   iPhone 14 Pro Max
   iPhone 15 Pro Max
   iPhone 16 Pro Max
   Pixel 7 / 8 / 9 / 10
   Galaxy S8+
   Galaxy S20 Ultra
   Galaxy Z Fold 5
   Galaxy A51 / A71

   TABLET / FOLD:
   Surface Duo
   iPad Mini
   iPad Air
   iPad Pro
   Surface Pro 7
   Asus Zenbook Fold

   HUB:
   Nest Hub
   Nest Hub Max 1280x800

   DESKTOP > 1280px UNCHANGED
   ========================================================= */


/* =========================================================
   GLOBAL RESPONSIVE SAFETY
   <= 1280px
   ========================================================= */

@media (max-width: 1280px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    .coinflip-page {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    .coinflip-main,
    .coinflip-control-panel,
    .coinflip-game-area,
    .coinflip-stage,
    .coinflip-game-footer {
        box-sizing: border-box;
    }


    .coinflip-main > * {
        min-width: 0;
    }


    /* =====================================================
       RESULT POPUP
       ===================================================== */

    .coinflip-result-overlay {
        padding:
            max(
                10px,
                env(safe-area-inset-top)
            )
            10px
            max(
                10px,
                env(safe-area-inset-bottom)
            ) !important;

        overflow-y: auto;

        -webkit-overflow-scrolling:
            touch;
    }


    .coinflip-result-modal {
        max-height:
            calc(
                100dvh - 20px
            );

        overflow-y: auto;
    }

}


/* =========================================================
   PHONES + SURFACE DUO NARROW MODE
   0 — 680px
   ========================================================= */

@media (max-width: 680px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .coinflip-navbar {
        position: sticky !important;

        top: 0;

        width: 100%;

        height: auto !important;
        min-height: 0 !important;

        padding:
            8px
            8px !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        grid-template-rows:
            auto
            auto;

        align-items: center;

        column-gap: 7px;
        row-gap: 7px;

        overflow: visible;

        z-index: 100;
    }


    /* BRAND */

    .coinflip-brand {
        grid-column: 1;
        grid-row: 1;

        min-width: 0;

        gap: 8px !important;
    }


    .coinflip-brand-icon {
        width: 37px !important;
        height: 37px !important;

        flex:
            0 0
            37px;

        border-radius: 10px !important;

        font-size: 19px !important;
    }


    .coinflip-brand strong {
        font-size: 10px !important;

        letter-spacing: 1.5px !important;

        white-space: nowrap;
    }


    .coinflip-brand span {
        margin-top: 2px !important;

        font-size: 5px !important;

        letter-spacing: 2.3px !important;
    }


    /* LIVE */

    .coinflip-live {
        position: static !important;

        grid-column: 2;
        grid-row: 1;

        display: flex !important;

        transform: none !important;

        padding:
            7px
            9px !important;

        gap: 5px !important;

        font-size: 5.5px !important;

        letter-spacing: .7px !important;

        white-space: nowrap;
    }


    .coinflip-live span {
        width: 5px !important;
        height: 5px !important;
    }


    /* USER BAR */

    .coinflip-user {
        grid-column:
            1 / -1;

        grid-row: 2;

        width: 100%;

        display: grid !important;

        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        align-items: center;

        gap: 6px !important;

        padding-top: 7px;

        border-top:
            1px solid
            rgba(255,255,255,.045);
    }


    /* AUDIO */

    .coinflip-audio-control {
        width: 39px !important;
        height: 38px !important;

        min-width: 39px;

        padding: 0 !important;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 0 !important;
    }


    .coinflip-audio-button {
        width: 38px !important;
        height: 38px !important;

        flex:
            0 0
            38px !important;
    }


    .coinflip-volume-slider {
        display: none !important;
    }


    /* BALANCE */

    .coinflip-balance {
        min-width: 0;

        gap: 7px !important;
    }


    .coinflip-token {
        width: 29px !important;
        height: 29px !important;

        flex:
            0 0
            29px;

        font-size: 8px !important;
    }


    .coinflip-balance span {
        font-size: 5px !important;

        letter-spacing: .7px !important;
    }


    .coinflip-balance strong {
        margin-top: 1px !important;

        font-size: 10px !important;

        white-space: nowrap;
    }


    /* BACK */

    .coinflip-back {
        min-width: 0;

        min-height: 38px !important;

        padding:
            0
            9px !important;

        font-size: 6px !important;

        letter-spacing: .45px !important;

        white-space: nowrap;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    .coinflip-main {
        width:
            calc(
                100% - 10px
            ) !important;

        max-width:
            calc(
                100% - 10px
            ) !important;

        margin:
            10px auto
            24px !important;

        display: grid !important;

        grid-template-columns:
            1fr !important;

        gap: 10px !important;

        align-items: stretch;
    }


    /*
       Controls first.
       Game second.
    */

    .coinflip-control-panel {
        order: 1 !important;
    }


    .coinflip-game-area {
        order: 2 !important;
    }


    /* =====================================================
       CONTROL PANEL
       ===================================================== */

    .coinflip-control-panel {
        width: 100%;

        min-width: 0;

        padding:
            20px
            15px !important;

        border-radius: 17px !important;
    }


    .coinflip-control-header > span {
        font-size: 6px !important;

        letter-spacing: 1.6px !important;
    }


    .coinflip-control-header h1 {
        margin:
            8px
            0
            7px !important;

        font-size:
            clamp(
                26px,
                8vw,
                34px
            ) !important;
    }


    .coinflip-control-header p {
        font-size: 8.5px !important;

        line-height: 1.6;
    }


    .coinflip-control-block {
        margin-top: 18px !important;

        padding-top: 16px !important;
    }


    .coinflip-control-title {
        gap: 8px;
    }


    .coinflip-control-title span {
        font-size: 6.5px !important;

        letter-spacing: 1px !important;
    }


    .coinflip-control-title strong {
        min-width: 0;

        font-size: 8px !important;

        text-align: right;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       BET INPUT
       ===================================================== */

    .coinflip-bet-input {
        width: 100%;

        min-height: 48px !important;

        padding:
            0
            10px !important;
    }


    .coinflip-coin-small {
        width: 30px !important;
        height: 30px !important;

        flex:
            0 0
            30px;
    }


    .coinflip-bet-input input {
        min-width: 0;

        margin-left: 8px !important;

        font-size: 15px !important;
    }


    .coinflip-bet-input > span {
        font-size: 8px !important;
    }


    /* QUICK BETS */

    .coinflip-quick-bets {
        width: 100%;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;

        gap: 6px !important;
    }


    .coinflip-quick-bets button {
        min-width: 0;

        min-height: 39px !important;

        padding:
            0
            5px;

        font-size: 8px !important;
    }


    /* =====================================================
       HEADS / TAILS
       ===================================================== */

    .coinflip-side-options {
        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;

        gap: 7px !important;
    }


    .coinflip-side-option {
        width: 100%;

        min-width: 0;

        min-height: 92px !important;

        padding:
            12px
            8px !important;

        gap: 7px !important;
    }


    .coinflip-side-symbol {
        width: 38px !important;
        height: 38px !important;

        font-size: 13px !important;
    }


    .coinflip-side-option strong {
        font-size: 9px !important;
    }


    /* =====================================================
       INFO
       ===================================================== */

    .coinflip-info-grid {
        width: 100%;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;

        gap: 7px !important;
    }


    .coinflip-info-card {
        min-width: 0;

        padding:
            12px
            9px !important;
    }


    .coinflip-info-card span {
        font-size: 5.5px !important;
    }


    .coinflip-info-card strong {
        font-size: 10px !important;

        overflow-wrap: anywhere;
    }


    /* =====================================================
       START
       ===================================================== */

    .coinflip-start-button {
        width: 100% !important;

        min-height: 48px !important;

        margin-top: 15px !important;

        font-size: 8px !important;
    }


    .coinflip-message {
        margin-top: 10px !important;

        font-size: 7px !important;

        line-height: 1.5;
    }


    /* =====================================================
       GAME AREA
       ===================================================== */

    .coinflip-game-area {
        width: 100%;

        min-width: 0;

        min-height: 0 !important;

        padding:
            17px
            14px !important;

        border-radius: 18px !important;

        overflow: hidden;
    }


    .coinflip-game-glow {
        width: 310px !important;
        height: 310px !important;
    }


    /* HEADER */

    .coinflip-game-header {
        width: 100%;

        gap: 10px;
    }


    .coinflip-game-header span,
    .coinflip-game-footer span {
        font-size: 6px !important;

        letter-spacing: 1px !important;
    }


    .coinflip-game-header strong,
    .coinflip-game-footer strong {
        margin-top: 3px !important;

        font-size: 10px !important;
    }


    .coinflip-status {
        padding:
            7px
            9px !important;

        font-size: 6px !important;

        letter-spacing: .6px !important;

        white-space: nowrap;
    }


    /* =====================================================
       COIN STAGE
       ===================================================== */

    .coinflip-stage {
        width: 100%;

        min-height:
            clamp(
                285px,
                82vw,
                350px
            ) !important;

        overflow: visible !important;

        display: flex;

        align-items: center;
        justify-content: center;
    }


    .coinflip-coin {
        width:
            clamp(
                165px,
                52vw,
                215px
            ) !important;

        height:
            clamp(
                165px,
                52vw,
                215px
            ) !important;

        flex:
            0 0
            clamp(
                165px,
                52vw,
                215px
            ) !important;
    }


    .coinflip-face {
        border-width: 7px !important;
    }


    .coinflip-head-emblem {
        width: 68px !important;
        height: 68px !important;
    }


    .coinflip-writing {
        width: 82px !important;
        height: 82px !important;
    }


    .coinflip-writing strong {
        font-size: 36px !important;
    }


    .coinflip-face-title {
        font-size: 10px !important;

        letter-spacing: 3px !important;
    }


    .coinflip-face-subtitle {
        font-size: 5px !important;

        letter-spacing: 2px !important;
    }


    /* =====================================================
       GAME FOOTER
       ===================================================== */

    .coinflip-game-footer {
        width: 100%;

        padding-top: 14px !important;

        gap: 8px;
    }


    .coinflip-game-footer > div {
        min-width: 0;

        flex:
            1 1
            0;
    }


    .coinflip-game-footer > div:last-child {
        text-align: right;
    }


    .coinflip-game-footer strong {
        overflow-wrap: anywhere;
    }


    /* =====================================================
       RESULT MODAL
       ===================================================== */

    .coinflip-result-modal {
        width:
            calc(
                100vw - 16px
            ) !important;

        max-width:
            calc(
                100vw - 16px
            ) !important;

        padding:
            23px
            17px !important;

        border-radius: 18px !important;
    }


    .coinflip-result-icon {
        width: 64px !important;
        height: 64px !important;

        margin-bottom: 15px !important;

        font-size: 26px !important;
    }


    .coinflip-result-modal h2 {
        font-size: 24px !important;
    }


    .coinflip-result-modal p {
        font-size: 9px !important;
    }


    .coinflip-result-modal > strong {
        font-size: 18px !important;
    }

}


/* =========================================================
   VERY SMALL PHONES
   Z FOLD / GALAXY S8+ / IPHONE SE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

    .coinflip-navbar {
        padding:
            7px
            6px !important;
    }


    .coinflip-brand-icon {
        width: 34px !important;
        height: 34px !important;

        flex-basis: 34px;
    }


    .coinflip-brand strong {
        font-size: 9px !important;
    }


    .coinflip-brand span {
        font-size: 4.5px !important;
    }


    .coinflip-live {
        padding:
            6px
            7px !important;

        font-size: 5px !important;
    }


    .coinflip-user {
        gap: 4px !important;
    }


    .coinflip-back {
        padding:
            0
            7px !important;

        font-size: 5.5px !important;
    }


    .coinflip-main {
        width:
            calc(
                100% - 6px
            ) !important;

        max-width:
            calc(
                100% - 6px
            ) !important;
    }


    .coinflip-control-panel,
    .coinflip-game-area {
        padding:
            16px
            12px !important;
    }


    .coinflip-side-options {
        grid-template-columns:
            1fr
            1fr !important;
    }


    .coinflip-info-grid {
        grid-template-columns:
            1fr
            1fr !important;
    }


    .coinflip-stage {
        min-height: 275px !important;
    }


    .coinflip-coin {
        width: 165px !important;
        height: 165px !important;

        flex-basis: 165px !important;
    }

}


/* =========================================================
   TABLET / FOLD
   681 — 900px

   iPad Mini
   iPad Air
   Asus Fold narrow
   ========================================================= */

@media (min-width: 681px) and (max-width: 900px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .coinflip-navbar {
        width: 100%;

        height: auto !important;

        min-height: 68px;

        padding:
            9px
            16px !important;

        display: grid;

        grid-template-columns:
            minmax(150px, 1fr)
            auto;

        grid-template-rows:
            auto
            auto;

        column-gap: 12px;
        row-gap: 7px;
    }


    .coinflip-brand {
        grid-column: 1;
        grid-row: 1;
    }


    .coinflip-live {
        position: static !important;

        grid-column: 2;
        grid-row: 1;

        justify-self: end;

        transform: none !important;

        font-size: 7px !important;
    }


    .coinflip-user {
        grid-column:
            1 / -1;

        grid-row: 2;

        width: 100%;

        justify-content: flex-end;

        gap: 8px !important;

        padding-top: 7px;

        border-top:
            1px solid
            rgba(255,255,255,.045);
    }


    .coinflip-audio-control {
        height: 40px !important;

        padding:
            0
            9px !important;
    }


    .coinflip-volume-slider {
        width: 68px !important;
    }


    .coinflip-back {
        min-height: 40px !important;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    .coinflip-main {
        width:
            calc(
                100% - 20px
            ) !important;

        max-width:
            calc(
                100% - 20px
            ) !important;

        margin:
            16px auto
            32px !important;

        grid-template-columns:
            1fr !important;

        gap: 14px !important;
    }


    .coinflip-control-panel {
        order: 1 !important;

        padding:
            25px
            23px !important;
    }


    .coinflip-game-area {
        order: 2 !important;

        min-height: 0 !important;

        padding:
            25px
            23px !important;
    }


    /* CONTROL */

    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }


    .coinflip-side-options {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .coinflip-info-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    /* GAME */

    .coinflip-stage {
        min-height: 440px !important;
    }


    .coinflip-coin {
        width: 220px !important;
        height: 220px !important;

        flex:
            0 0
            220px !important;
    }


    .coinflip-head-emblem {
        width: 74px !important;
        height: 74px !important;
    }


    .coinflip-writing {
        width: 96px !important;
        height: 96px !important;
    }


    /* FOOTER */

    .coinflip-game-footer {
        padding-top: 17px !important;
    }


    /* MODAL */

    .coinflip-result-modal {
        width:
            min(
                430px,
                calc(100vw - 32px)
            ) !important;

        max-width:
            calc(
                100vw - 32px
            ) !important;
    }

}


/* =========================================================
   LARGE TABLET
   901 — 1050px

   iPad Pro
   Surface Pro
   Nest Hub 1024px
   ========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    .coinflip-navbar {
        padding:
            0
            22px !important;

        height: 68px !important;
    }


    .coinflip-brand-icon {
        width: 38px !important;
        height: 38px !important;
    }


    .coinflip-brand strong {
        font-size: 12px !important;
    }


    .coinflip-brand span {
        font-size: 7px !important;
    }


    .coinflip-live {
        padding:
            8px
            11px !important;

        font-size: 7px !important;
    }


    .coinflip-user {
        gap: 9px !important;
    }


    .coinflip-volume-slider {
        width: 68px !important;
    }


    .coinflip-balance strong {
        font-size: 11px !important;
    }


    .coinflip-back {
        min-height: 38px !important;

        padding:
            0
            11px !important;

        font-size: 7px !important;
    }


    .coinflip-main {
        width:
            calc(
                100% - 22px
            ) !important;

        max-width:
            calc(
                100% - 22px
            ) !important;

        margin:
            18px auto
            34px !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.2fr) !important;

        gap: 16px !important;

        align-items: stretch;
    }


    .coinflip-control-panel {
        order: 1 !important;

        padding:
            23px
            20px !important;
    }


    .coinflip-game-area {
        order: 2 !important;

        min-height: 650px !important;

        padding:
            23px
            20px !important;
    }


    .coinflip-control-header h1 {
        font-size: 27px !important;
    }


    .coinflip-control-header p {
        font-size: 10px !important;
    }


    .coinflip-control-block {
        margin-top: 19px !important;

        padding-top: 17px !important;
    }


    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;
    }


    .coinflip-side-option {
        min-height: 96px !important;

        padding:
            12px !important;
    }


    .coinflip-stage {
        min-height: 480px !important;
    }


    .coinflip-coin {
        width: 215px !important;
        height: 215px !important;

        flex:
            0 0
            215px !important;
    }


    .coinflip-game-footer {
        padding-top: 16px !important;
    }

}


/* =========================================================
   NEST HUB SHORT HEIGHT
   901 — 1100px / <= 650px HEIGHT
   ========================================================= */

@media
    (min-width: 901px)
    and (max-width: 1100px)
    and (max-height: 650px) {

    .coinflip-main {
        margin-top: 10px !important;
    }


    .coinflip-control-panel,
    .coinflip-game-area {
        padding:
            18px !important;
    }


    .coinflip-control-header h1 {
        font-size: 24px !important;
    }


    .coinflip-control-header p {
        font-size: 9px !important;
    }


    .coinflip-control-block {
        margin-top: 13px !important;

        padding-top: 12px !important;
    }


    .coinflip-side-option {
        min-height: 78px !important;
    }


    .coinflip-side-symbol {
        width: 35px !important;
        height: 35px !important;
    }


    .coinflip-start-button {
        min-height: 42px !important;
    }


    .coinflip-game-area {
        min-height: 530px !important;
    }


    .coinflip-stage {
        min-height: 385px !important;
    }


    .coinflip-coin {
        width: 190px !important;
        height: 190px !important;

        flex-basis: 190px !important;
    }

}


/* =========================================================
   NEST HUB MAX / LARGE FOLD
   1051 — 1280px
   ========================================================= */

@media (min-width: 1051px) and (max-width: 1280px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .coinflip-navbar {
        height: 68px !important;

        padding:
            0
            24px !important;
    }


    .coinflip-brand-icon {
        width: 38px !important;
        height: 38px !important;
    }


    .coinflip-brand strong {
        font-size: 12px !important;
    }


    .coinflip-brand span {
        font-size: 7px !important;
    }


    .coinflip-live {
        padding:
            8px
            11px !important;

        font-size: 7px !important;
    }


    .coinflip-user {
        gap: 9px !important;
    }


    .coinflip-audio-control {
        height: 39px !important;
    }


    .coinflip-volume-slider {
        width: 68px !important;
    }


    .coinflip-balance strong {
        font-size: 11px !important;
    }


    .coinflip-back {
        min-height: 38px !important;

        padding:
            0
            12px !important;

        font-size: 7px !important;
    }


    /* =====================================================
       MAIN
       ===================================================== */

    .coinflip-main {
        width:
            calc(
                100% - 28px
            ) !important;

        max-width:
            1180px !important;

        margin:
            18px auto
            34px !important;

        grid-template-columns:
            350px
            minmax(0, 1fr) !important;

        gap: 18px !important;
    }


    .coinflip-control-panel {
        padding:
            22px
            20px !important;
    }


    .coinflip-game-area {
        min-height: 600px !important;

        padding:
            22px !important;
    }


    .coinflip-control-header h1 {
        font-size: 27px !important;
    }


    .coinflip-control-header p {
        font-size: 10px !important;
    }


    .coinflip-control-block {
        margin-top: 18px !important;

        padding-top: 16px !important;
    }


    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            ) !important;
    }


    .coinflip-side-option {
        min-height: 92px !important;
    }


    .coinflip-side-symbol {
        width: 41px !important;
        height: 41px !important;
    }


    .coinflip-info-card {
        padding:
            13px
            10px !important;
    }


    .coinflip-start-button {
        min-height: 45px !important;
    }


    /* GAME */

    .coinflip-stage {
        min-height: 445px !important;
    }


    .coinflip-coin {
        width: 215px !important;
        height: 215px !important;

        flex:
            0 0
            215px !important;
    }


    .coinflip-game-footer {
        padding-top: 15px !important;
    }

}


/* =========================================================
   NEST HUB MAX EXACT STYLE
   SHORT 1280x800 CLASS
   ========================================================= */

@media
    (min-width: 1101px)
    and (max-width: 1280px)
    and (max-height: 820px) {

    .coinflip-main {
        margin-top: 12px !important;
    }


    .coinflip-control-panel {
        padding:
            19px
            18px !important;
    }


    .coinflip-game-area {
        min-height: 560px !important;

        padding:
            19px !important;
    }


    .coinflip-control-block {
        margin-top: 14px !important;

        padding-top: 13px !important;
    }


    .coinflip-side-option {
        min-height: 78px !important;

        padding:
            10px !important;
    }


    .coinflip-side-symbol {
        width: 35px !important;
        height: 35px !important;
    }


    .coinflip-info-card {
        padding:
            10px
            8px !important;
    }


    .coinflip-start-button {
        min-height: 42px !important;

        margin-top: 12px !important;
    }


    .coinflip-stage {
        min-height: 405px !important;
    }


    .coinflip-coin {
        width: 195px !important;
        height: 195px !important;

        flex-basis: 195px !important;
    }

}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .coinflip-side-option:hover,
    .coinflip-quick-bets button:hover,
    .coinflip-start-button:hover,
    .coinflip-back:hover,
    .coinflip-result-modal button:hover {
        transform: none !important;
    }

}


/* =========================================================
   MIDNIGHT COINFLIP
   FINAL DEVICE LAYOUT FIX

   GAME / COIN PANEL FIRST
   BETTING MENU SECOND

   344px — 1280px
   ========================================================= */

@media (max-width: 1280px) {

    /* =====================================================
       MAIN — ALWAYS ONE COLUMN
       ===================================================== */

    .coinflip-main {
        width:
            calc(
                100% - 20px
            ) !important;

        max-width:
            1100px !important;

        margin:
            14px auto
            32px !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr) !important;

        gap:
            12px !important;

        align-items:
            stretch !important;
    }


    /* =====================================================
       COIN / GAME FIRST
       ===================================================== */

    .coinflip-game-area {
        order:
            1 !important;

        width:
            100% !important;

        min-width:
            0 !important;

        max-width:
            100% !important;
    }


    /* =====================================================
       BETTING MENU BELOW COIN
       ===================================================== */

    .coinflip-control-panel {
        order:
            2 !important;

        width:
            100% !important;

        min-width:
            0 !important;

        max-width:
            100% !important;
    }

}


/* =========================================================
   PHONES
   344 — 680px
   ========================================================= */

@media (max-width: 680px) {

    .coinflip-main {
        width:
            calc(
                100% - 8px
            ) !important;

        max-width:
            calc(
                100% - 8px
            ) !important;

        margin-top:
            8px !important;

        gap:
            8px !important;
    }


    .coinflip-game-area {
        padding:
            17px
            14px !important;
    }


    .coinflip-control-panel {
        padding:
            20px
            15px !important;
    }

}


/* =========================================================
   IPAD MINI / IPAD AIR / FOLD / SURFACE DUO
   681 — 900px
   ========================================================= */

@media (min-width: 681px) and (max-width: 900px) {

    .coinflip-main {
        width:
            calc(
                100% - 20px
            ) !important;

        max-width:
            820px !important;

        margin-top:
            14px !important;
    }


    .coinflip-game-area {
        min-height:
            560px !important;

        padding:
            24px !important;
    }


    .coinflip-stage {
        min-height:
            430px !important;
    }


    .coinflip-coin {
        width:
            220px !important;

        height:
            220px !important;

        flex:
            0 0
            220px !important;
    }


    .coinflip-control-panel {
        padding:
            25px
            23px !important;
    }


    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }

}


/* =========================================================
   SURFACE PRO 7 / IPAD PRO / NEST HUB
   901 — 1050px

   FIXES THE 912px SCREENSHOT
   ========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    .coinflip-main {
        width:
            calc(
                100% - 28px
            ) !important;

        max-width:
            920px !important;

        margin:
            16px auto
            34px !important;

        grid-template-columns:
            minmax(0, 1fr) !important;

        gap:
            14px !important;
    }


    /* COIN PANEL */

    .coinflip-game-area {
        min-height:
            590px !important;

        padding:
            26px
            28px !important;

        border-radius:
            22px !important;
    }


    .coinflip-stage {
        min-height:
            450px !important;
    }


    .coinflip-coin {
        width:
            225px !important;

        height:
            225px !important;

        flex:
            0 0
            225px !important;
    }


    .coinflip-game-glow {
        width:
            430px !important;

        height:
            430px !important;
    }


    /* MENU BELOW */

    .coinflip-control-panel {
        padding:
            27px
            28px !important;

        border-radius:
            22px !important;
    }


    .coinflip-control-header h1 {
        font-size:
            30px !important;
    }


    .coinflip-control-header p {
        font-size:
            11px !important;
    }


    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }


    .coinflip-side-options {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }


    .coinflip-side-option {
        min-height:
            105px !important;
    }


    .coinflip-info-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }

}


/* =========================================================
   LARGE FOLD / NEST HUB MAX
   1051 — 1280px
   ========================================================= */

@media (min-width: 1051px) and (max-width: 1280px) {

    .coinflip-main {
        width:
            calc(
                100% - 32px
            ) !important;

        max-width:
            1040px !important;

        grid-template-columns:
            minmax(0, 1fr) !important;

        gap:
            14px !important;
    }


    .coinflip-game-area {
        min-height:
            570px !important;

        padding:
            25px
            28px !important;
    }


    .coinflip-stage {
        min-height:
            425px !important;
    }


    .coinflip-coin {
        width:
            220px !important;

        height:
            220px !important;

        flex:
            0 0
            220px !important;
    }


    .coinflip-control-panel {
        padding:
            26px
            28px !important;
    }


    .coinflip-quick-bets {
        grid-template-columns:
            repeat(
                6,
                minmax(0, 1fr)
            ) !important;
    }

}


/* =========================================================
   NEST HUB / NEST HUB MAX
   SHORT HEIGHT
   PAGE SCROLL INSTEAD OF SQUASHING
   ========================================================= */

@media
    (min-width: 901px)
    and (max-width: 1280px)
    and (max-height: 820px) {

    html,
    body {
        overflow-y:
            auto !important;
    }


    .coinflip-main {
        margin-top:
            10px !important;
    }


    .coinflip-game-area {
        min-height:
            500px !important;
    }


    .coinflip-stage {
        min-height:
            365px !important;
    }


    .coinflip-coin {
        width:
            190px !important;

        height:
            190px !important;

        flex-basis:
            190px !important;
    }


    .coinflip-control-panel {
        padding:
            22px
            24px !important;
    }

}


/* =========================================================
   MIDNIGHT COINFLIP
   IPAD PRO / SURFACE PRO 7 / NEST HUB
   NAVBAR FINAL FIX

   901px — 1050px
   ========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    /* =====================================================
       NAVBAR
       ===================================================== */

    .coinflip-navbar {
        position: sticky !important;

        top: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 112px !important;

        padding:
            11px
            18px !important;

        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr)
            auto !important;

        grid-template-rows:
            auto
            auto !important;

        align-items: center !important;

        column-gap: 12px !important;
        row-gap: 9px !important;

        box-sizing: border-box !important;

        overflow: visible !important;

        z-index: 100 !important;
    }


    /* =====================================================
       BRAND
       TOP LEFT
       ===================================================== */

    .coinflip-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;

        justify-self: start !important;

        min-width: 0 !important;

        gap: 10px !important;
    }


    .coinflip-brand-icon {
        width: 42px !important;
        height: 42px !important;

        flex:
            0 0
            42px !important;
    }


    .coinflip-brand strong {
        font-size: 12px !important;

        letter-spacing: 2.2px !important;
    }


    .coinflip-brand span {
        margin-top: 3px !important;

        font-size: 6px !important;

        letter-spacing: 3px !important;
    }


    /* =====================================================
       LIVE STATUS
       TOP RIGHT
       NO ABSOLUTE CENTERING
       ===================================================== */

    .coinflip-live {
        position: static !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;

        grid-column: 2 !important;
        grid-row: 1 !important;

        justify-self: end !important;

        margin: 0 !important;

        transform: none !important;

        padding:
            8px
            11px !important;

        gap: 6px !important;

        font-size: 6.5px !important;

        letter-spacing: 1px !important;

        white-space: nowrap !important;
    }


    .coinflip-live span {
        width: 6px !important;
        height: 6px !important;
    }


    /* =====================================================
       USER CONTROLS
       SECOND ROW
       ===================================================== */

    .coinflip-user {
        grid-column:
            1 / -1 !important;

        grid-row: 2 !important;

        width: 100% !important;

        min-width: 0 !important;

        display: flex !important;

        align-items: center !important;
        justify-content: flex-end !important;

        gap: 8px !important;

        padding-top: 9px !important;

        border-top:
            1px solid
            rgba(
                255,
                255,
                255,
                .045
            ) !important;
    }


    /* =====================================================
       AUDIO
       ===================================================== */

    .coinflip-audio-control {
        width: auto !important;

        min-width: 120px !important;

        height: 40px !important;

        padding:
            0
            9px !important;

        gap: 8px !important;

        flex:
            0 0
            auto !important;
    }


    .coinflip-audio-button {
        width: 26px !important;
        height: 26px !important;

        min-width: 26px !important;

        flex:
            0 0
            26px !important;
    }


    .coinflip-volume-slider {
        width: 70px !important;
    }


    /* =====================================================
       BALANCE
       ===================================================== */

    .coinflip-balance {
        min-width: 145px !important;

        display: flex !important;

        align-items: center !important;

        gap: 8px !important;
    }


    .coinflip-token {
        width: 32px !important;
        height: 32px !important;

        flex:
            0 0
            32px !important;
    }


    .coinflip-balance span {
        font-size: 6px !important;

        letter-spacing: 1.2px !important;
    }


    .coinflip-balance strong {
        margin-top: 2px !important;

        font-size: 11px !important;

        white-space: nowrap !important;
    }


    /* =====================================================
       BACK BUTTON
       ===================================================== */

    .coinflip-back {
        min-width: 145px !important;

        min-height: 40px !important;

        padding:
            0
            12px !important;

        font-size: 6.5px !important;

        letter-spacing: .6px !important;

        white-space: nowrap !important;
    }


    /* =====================================================
       SPACE BETWEEN NAVBAR AND COIN PANEL
       ===================================================== */

    .coinflip-main {
        margin-top: 14px !important;
    }

}


/* =========================================================
   SURFACE PRO 7
   901 — 960px
   LITTLE MORE COMPACT
   ========================================================= */

@media (min-width: 901px) and (max-width: 960px) {

    .coinflip-navbar {
        padding:
            10px
            14px !important;
    }


    .coinflip-user {
        gap: 6px !important;
    }


    .coinflip-audio-control {
        min-width: 108px !important;
    }


    .coinflip-volume-slider {
        width: 58px !important;
    }


    .coinflip-balance {
        min-width: 132px !important;
    }


    .coinflip-back {
        min-width: 132px !important;

        padding:
            0
            10px !important;
    }

}


/* =========================================================
   NEST HUB
   1024 x 600
   SHORT HEIGHT OPTIMIZATION
   ========================================================= */

@media
    (min-width: 961px)
    and (max-width: 1050px)
    and (max-height: 650px) {

    .coinflip-navbar {
        min-height: 96px !important;

        padding:
            8px
            16px !important;

        row-gap: 6px !important;
    }


    .coinflip-brand-icon {
        width: 38px !important;
        height: 38px !important;

        flex-basis: 38px !important;
    }


    .coinflip-user {
        padding-top: 6px !important;
    }


    .coinflip-audio-control {
        height: 36px !important;
    }


    .coinflip-back {
        min-height: 36px !important;
    }


    .coinflip-main {
        margin-top: 10px !important;
    }

}


/* =========================================================
   MIDNIGHT COINFLIP
   912 / 1024 NAVBAR REAL FINAL FIX

   Surface Pro 7  = 912 x 1368
   iPad Pro       = 1024 x 1366
   Nest Hub       = 1024 x 600
   ========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    /* =====================================================
       NAVBAR RESET
       ===================================================== */

    .coinflip-navbar {
        position: sticky !important;

        top: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        height: 76px !important;
        min-height: 76px !important;

        padding:
            0
            22px !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;
        justify-content: space-between !important;

        gap: 14px !important;

        box-sizing: border-box !important;

        overflow: visible !important;

        z-index: 100 !important;
    }


    /* =====================================================
       BRAND
       ===================================================== */

    .coinflip-brand {
        position: relative !important;

        flex:
            0 0
            auto !important;

        min-width: 155px !important;

        display: flex !important;

        align-items: center !important;

        gap: 10px !important;

        margin: 0 !important;
    }


    .coinflip-brand-icon {
        width: 40px !important;
        height: 40px !important;

        min-width: 40px !important;

        flex:
            0 0
            40px !important;
    }


    .coinflip-brand strong {
        font-size: 12px !important;

        letter-spacing:
            2.3px !important;

        white-space: nowrap !important;
    }


    .coinflip-brand span {
        margin-top: 3px !important;

        font-size: 6px !important;

        letter-spacing:
            3px !important;

        white-space: nowrap !important;
    }


    /* =====================================================
       LIVE
       PUT IT IN NORMAL FLOW
       ===================================================== */

    .coinflip-live {
        position: relative !important;

        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;

        transform: none !important;

        flex:
            0 0
            auto !important;

        margin:
            0
            auto !important;

        padding:
            8px
            11px !important;

        gap: 6px !important;

        font-size: 6.5px !important;

        letter-spacing:
            .9px !important;

        white-space: nowrap !important;
    }


    .coinflip-live span {
        width: 6px !important;
        height: 6px !important;

        flex:
            0 0
            6px !important;
    }


    /* =====================================================
       RIGHT SIDE
       ===================================================== */

    .coinflip-user {
        position: relative !important;

        width: auto !important;

        min-width: 0 !important;

        flex:
            0 0
            auto !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;
        justify-content: flex-end !important;

        gap: 7px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
    }


    /* =====================================================
       AUDIO
       ===================================================== */

    .coinflip-audio-control {
        width: 112px !important;

        min-width: 112px !important;
        height: 40px !important;

        flex:
            0 0
            112px !important;

        padding:
            0
            8px !important;

        gap: 7px !important;
    }


    .coinflip-audio-button {
        width: 26px !important;
        height: 26px !important;

        min-width: 26px !important;

        flex:
            0 0
            26px !important;
    }


    .coinflip-volume-slider {
        width: 60px !important;

        min-width: 60px !important;

        flex:
            0 0
            60px !important;
    }


    /* =====================================================
       BALANCE
       ===================================================== */

    .coinflip-balance {
        width: auto !important;

        min-width: 122px !important;

        flex:
            0 0
            auto !important;

        gap: 7px !important;
    }


    .coinflip-token {
        width: 31px !important;
        height: 31px !important;

        min-width: 31px !important;

        flex:
            0 0
            31px !important;
    }


    .coinflip-balance span {
        font-size: 5.5px !important;

        letter-spacing:
            1px !important;

        white-space: nowrap !important;
    }


    .coinflip-balance strong {
        margin-top: 2px !important;

        font-size: 10px !important;

        white-space: nowrap !important;
    }


    /* =====================================================
       BACK
       ===================================================== */

    .coinflip-back {
        min-width: 128px !important;

        min-height: 39px !important;

        flex:
            0 0
            128px !important;

        padding:
            0
            10px !important;

        font-size: 6px !important;

        letter-spacing:
            .5px !important;

        white-space: nowrap !important;
    }


    /* =====================================================
       MAIN GAP BELOW NAV
       ===================================================== */

    .coinflip-main {
        margin-top:
            14px !important;
    }

}


/* =========================================================
   SURFACE PRO 7
   901 — 960px

   SLIGHTLY MORE COMPACT
   ========================================================= */

@media (min-width: 901px) and (max-width: 960px) {

    .coinflip-navbar {
        height: 72px !important;
        min-height: 72px !important;

        padding:
            0
            14px !important;

        gap: 8px !important;
    }


    .coinflip-brand {
        min-width:
            130px !important;

        gap: 7px !important;
    }


    .coinflip-brand-icon {
        width: 35px !important;
        height: 35px !important;

        min-width: 35px !important;

        flex-basis:
            35px !important;
    }


    .coinflip-brand strong {
        font-size:
            10px !important;
    }


    .coinflip-brand span {
        font-size:
            5px !important;

        letter-spacing:
            2.4px !important;
    }


    .coinflip-live {
        padding:
            7px
            8px !important;

        font-size:
            5.5px !important;
    }


    .coinflip-user {
        gap:
            5px !important;
    }


    .coinflip-audio-control {
        width:
            94px !important;

        min-width:
            94px !important;

        flex-basis:
            94px !important;
    }


    .coinflip-volume-slider {
        width:
            43px !important;

        min-width:
            43px !important;

        flex-basis:
            43px !important;
    }


    .coinflip-balance {
        min-width:
            105px !important;
    }


    .coinflip-token {
        width:
            28px !important;

        height:
            28px !important;

        min-width:
            28px !important;

        flex-basis:
            28px !important;
    }


    .coinflip-balance span {
        font-size:
            4.8px !important;
    }


    .coinflip-balance strong {
        font-size:
            9px !important;
    }


    .coinflip-back {
        min-width:
            112px !important;

        flex-basis:
            112px !important;

        padding:
            0
            7px !important;

        font-size:
            5.3px !important;
    }

}


/* =========================================================
   NEST HUB
   EXACT SHORT SCREEN FIX
   1024 x 600
   ========================================================= */

@media
    (min-width: 1000px)
    and (max-width: 1050px)
    and (max-height: 650px) {

    .coinflip-navbar {
        height: 68px !important;
        min-height: 68px !important;

        padding:
            0
            20px !important;
    }


    .coinflip-brand {
        min-width:
            150px !important;
    }


    .coinflip-brand-icon {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;

        flex-basis:
            38px !important;
    }


    .coinflip-live {
        padding:
            7px
            10px !important;
    }


    .coinflip-audio-control {
        height:
            38px !important;
    }


    .coinflip-back {
        min-height:
            38px !important;
    }


    .coinflip-main {
        margin-top:
            10px !important;
    }

}


/* =========================================================
   COINFLIP
   LIVE BADGE — TRUE CENTER
   iPad Pro / Surface Pro 7 / Nest Hub
   ========================================================= */

@media (min-width: 901px) and (max-width: 1050px) {

    .coinflip-navbar {
        position: sticky !important;
    }

    .coinflip-live {
        position: absolute !important;

        left: 50% !important;
        top: 50% !important;

        right: auto !important;
        bottom: auto !important;

        margin: 0 !important;

        transform:
            translate(
                -50%,
                -50%
            ) !important;

        z-index: 5 !important;
    }

}
