* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;

    background: #000;

    font-family:
        'Segoe UI',
        Tahoma,
        sans-serif;

    color: white;

    touch-action: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {

    width: 100%;
    height: 100%;

    max-width: 500px;

    background: #000;

    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */

.main-header {

    height: 90px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 0 18px;

    background: rgba(0,0,0,0.92);

    border-bottom: 1px solid #111;

    position: relative;

    z-index: 20;

    backdrop-filter: blur(10px);
}

.header-center {

    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-width: 0;

    padding: 0 10px;
}

/* ===================================================== */
/* NOME JOGO */
/* ===================================================== */

#game-name {

    font-size: 0.9rem;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1px;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 220px;

    text-align: center;

    color: #ffffff;

    text-shadow:
        0 0 6px rgba(0,255,255,0.4);
}

/* ===================================================== */
/* XP BAR */
/* ===================================================== */

.xp-bar-container {

    width: 170px;
    height: 7px;

    background: #181818;

    border-radius: 999px;

    overflow: hidden;

    margin-top: 6px;

    border: 1px solid #222;

    box-shadow:
        inset 0 0 6px rgba(0,0,0,0.8),
        0 0 10px rgba(0,255,255,0.08);
}

.progress-fill {

    width: 0%;
    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #00ffe1,
            #00b3ff
        );

    transition:
        width 0.25s ease;

    box-shadow:
        0 0 12px rgba(0,255,255,0.5);
}

/* ===================================================== */
/* XP TEXTO */
/* ===================================================== */

#xp-text {

    width: 170px;

    margin-top: 4px;

    text-align: center;

    font-size: 11px;

    color: #9d9d9d;

    letter-spacing: 0.5px;

    line-height: 12px;

    text-shadow:
        0 0 5px rgba(255,255,255,0.08);
}

/* ===================================================== */
/* ÁREA JOGO */
/* ===================================================== */

#game-area {

    flex: 1;

    position: relative;

    overflow: hidden;

    touch-action: none;

    background: #000;
}

/* ===================================================== */
/* FEED */
/* ===================================================== */

#game-feed {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    z-index: 1;

    will-change: transform;

    transition:
        transform 0.5s cubic-bezier(
            0.33,
            1,
            0.68,
            1
        );
}

.game-slide {

    flex-shrink: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #050510;
}

/* ===================================================== */
/* CANVAS */
/* ===================================================== */

#canvas {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 10;

    display: block;

    background: transparent;

    pointer-events: auto;

    touch-action: none;
}

/* ===================================================== */
/* FOOTER */
/* ===================================================== */

.main-footer {

    height: 80px;

    display: flex;

    justify-content: space-around;
    align-items: center;

    background: rgba(0,0,0,0.95);

    border-top: 1px solid #111;

    z-index: 20;

    backdrop-filter: blur(10px);
}

.footer-item {

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    color: #777;

    font-size: 0.7rem;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.footer-item:hover {

    color: #00ffff;

    transform: scale(1.05);
}

.footer-item span {

    font-size: 20px;
}

/* ===================================================== */
/* BOTÕES */
/* ===================================================== */

.icon-btn,
.profile-btn {

    background: none;

    border: none;

    color: white;

    font-size: 22px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.icon-btn:hover,
.profile-btn:hover {

    color: #00ffff;

    transform: scale(1.1);
}

/* ===================================================== */
/* RESPONSIVO */
/* ===================================================== */

@media (max-width: 500px) {

    .main-header {
        padding: 0 12px;
    }

    #game-name {
        max-width: 160px;
        font-size: 0.78rem;
    }

    .xp-bar-container,
    #xp-text {
        width: 145px;
    }

    .main-footer {
        height: 74px;
    }
}