:root {
    --brx-white: #FFFFFF;
    
    --brx-light-gray: #F2F7F6;
    --brx-footer-inactive-gray: #484848;
    --brx-gray: #3F3F3F;
    
    --brx-light-green: #CCFA89;

    /* readable green for money / positive deltas (the lime accent is too light for text) */
    --brx-money-green: #2FA866;
    --brx-money-green-soft: rgba(47, 168, 102, 0.12);
    --brx-gold: #E7A92B;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overscroll-behavior: none;
    font-family: 'Inter', sans-serif;
    overflow: hidden; 
}

body {
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.no-select, .no-select * {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard */
    -webkit-touch-callout: none; /* iOS Safari — запрет контекстного меню при долгом тапе */
}

.application-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #0a58ca;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    min-height: 100%;
}

.brx-shadow-bottom{
    box-shadow: 0px 3px 6px 2px rgb(0 0 0 / 34%);
}

.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 0;
    height: 90%;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media screen and (min-height: 700px) {
    .app-container {
        height: 80%;
    }
}

/* ===== Shared FOMO card primitives (used by Top Finders / Live Activity) ===== */
.fomo-card {
    background: var(--brx-light-gray);
    border-radius: 1.5rem;
    padding: 0.3rem 1rem 0.6rem;
    margin: 0.5rem 0.5rem;
}

.fomo-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-top: 0.25rem;
}

/* circular outlined icon badge — matches the app's .header-icon treatment */
.fomo-head-icon {
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    border: 2px solid var(--brx-gray);
    color: var(--brx-gray);
    opacity: 0.75;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .04);
    font-size: 0.85rem;
}

.fomo-titles {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.fomo-title {
    font-weight: 700;
    color: var(--brx-gray);
    font-size: 0.82rem;
}

.fomo-sub {
    font-size: 0.66rem;
    color: var(--brx-gray);
    opacity: 0.7;
}

.fomo-card .card-divider-bleed {
    position: relative;
    height: 2px;
    background: var(--brx-white);
    margin: 0.45rem 0 0.4rem;
}

.week-pill {
    background: var(--brx-light-green);
    color: var(--brx-gray);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}
