/* Header mobile Spinball — compartilhado entre páginas */
.is-hidden {
    display: none !important;
}

.mobile-topbar-shell {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    background: linear-gradient(90deg, #090b14 0%, #090e23 50%, #0b0f26 100%);
    border-bottom: 1px solid rgba(217, 70, 239, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    padding-top: env(safe-area-inset-top);
}

.mobile-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 10px;
}

.mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-topbar-brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mobile-topbar-logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.mobile-topbar-balance {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(132, 204, 22, 0.75);
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 0 12px rgba(132, 204, 22, 0.2);
    flex: 0 0 auto;
}

.mobile-topbar-balance-main {
    background: linear-gradient(180deg, rgba(10, 12, 19, 0.96), rgba(10, 12, 19, 0.9));
    padding: 5px 8px 4px;
    min-width: 106px;
    border-radius: 10px 0 0 10px;
    position: relative;
}

.mobile-topbar-balance-label {
    display: block;
    color: #facc15;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.mobile-topbar-balance-value {
    display: block;
    margin-top: 3px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mobile-topbar-balance-row {
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.mobile-topbar-wallet-wrap {
    position: relative;
    flex: 0 0 auto;
    z-index: 80;
}

.mobile-topbar-wallet-switch,
.mobile-topbar-balance-add,
.mobile-topbar-gift,
.mobile-topbar-auth-btn,
.mobile-topbar-menu-btn {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.mobile-topbar-wallet-switch {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(250, 204, 21, 0.65);
    background: rgba(8, 12, 24, 0.92);
    color: #facc15;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
}

.mobile-wallet-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9999;
    min-width: 116px;
    display: flex;
    flex-direction: column;
    background: #1e3a8a;
    border: 1px solid #facc15;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mobile-wallet-menu button {
    border: 0;
    background: transparent;
    color: #fde68a;
    text-align: left;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.mobile-wallet-menu button + button {
    border-top: 1px solid rgba(250, 204, 21, 0.35);
}

.mobile-wallet-menu button:hover {
    background: #facc15;
    color: #0f172a;
}

.mobile-topbar-balance-add {
    border: 0;
    border-left: 1px solid rgba(132, 204, 22, 0.6);
    background: linear-gradient(180deg, #65a30d, #15803d);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    width: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
}

.mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.mobile-topbar-gift {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(234, 179, 8, 0.75);
    background: linear-gradient(180deg, rgba(12, 14, 24, 0.95), rgba(12, 14, 24, 0.88));
    display: grid;
    place-items: center;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
    cursor: pointer;
    padding: 0;
}

.mobile-topbar-gift img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-topbar-gift-badge {
    position: absolute;
    top: -7px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
}

.mobile-topbar-auth-btn {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    min-width: 82px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(250, 204, 21, 0.65);
    background: linear-gradient(180deg, rgba(20, 22, 31, 0.95), rgba(20, 22, 31, 0.88));
    color: #fde68a;
    cursor: pointer;
}

.mobile-topbar-auth-btn.register {
    border-color: rgba(74, 222, 128, 0.75);
    color: #dcfce7;
    background: linear-gradient(180deg, #166534, #15803d);
}

.mobile-topbar-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient(180deg, rgba(20, 22, 31, 0.96), rgba(20, 22, 31, 0.88));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 420px) {
    .mobile-topbar {
        gap: 8px;
        padding: 8px 7px;
    }

    .mobile-topbar-actions {
        gap: 6px;
    }

    .mobile-topbar-auth-btn {
        min-width: 68px;
        padding: 0 8px;
        font-size: 11px;
    }

    .mobile-topbar-logo {
        height: 34px;
    }
}
