/* =============================================================================
   HEADER.CSS — Top Navigation Bar: Logo, Balance Button, Risk Selector
   Plinko Game | Claymorphism Theme
   ============================================================================= */

/* ── Header Wrapper ───────────────────────────────────────────────────────── */
.hdr-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem 0.4rem;
    z-index: 30;
    height: auto;
    min-height: 140px;
    flex-shrink: 0;
    gap: 12px;
}

/* Left cluster: how-to icon + balance button */
.hdr-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* ── How-To / Rules Button ────────────────────────────────────────────────── */
.btn-rule {
    background: #fcfaff;
    border: 2.5px solid #ffffff;
    font-size: 20px;
    color: var(--clay-text-dark);
    font-weight: 900;
    cursor: pointer;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow:
        0 6px 12px rgba(121, 110, 187, 0.15),
        inset 2.5px 2.5px 5px #ffffff,
        inset -2.5px -2.5px 5px rgba(121, 110, 187, 0.22);
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}
.btn-rule:hover  { transform: scale(1.08); background: #fdfbff; }
.btn-rule:active { transform: scale(0.92); box-shadow: inset 2.5px 2.5px 5px rgba(121, 110, 187, 0.28); }

/* ── Balance / Refill Button ──────────────────────────────────────────────── */
.btn-balance {
    background: #ffeef2;
    border: 3px solid #ffffff;
    border-radius: 24px;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow:
        0 6px 16px rgba(176, 62, 92, 0.05),
        inset 3px 3px 6px #ffffff,
        inset -3px -3px 6px rgba(255, 142, 166, 0.35);
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 1;
    min-width: 0;
}
.btn-balance:hover  { transform: scale(1.04); background: #fff4f6; }
.btn-balance:active { transform: scale(0.96); box-shadow: inset 3px 3px 6px rgba(255, 142, 166, 0.35); }

/* Inner row: value + plus icon */
.balance-content { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.balance-value {
    color: #d3325a;
    font-size: 1.1rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 0px #ffffff;
}

/* Orange "+" circle on balance button */
.balance-plus-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffab40;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 950;
    border: 1.5px solid #ffffff;
    box-shadow:
        inset 1px 1px 2px #ffffff,
        inset -1.5px -1.5px 3px rgba(172, 79, 0, 0.35);
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.btn-balance:hover .balance-plus-icon { transform: rotate(90deg); background: #ff9100; }

/* ── Risk Level Selector ──────────────────────────────────────────────────── */
.risk-section { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.risk-label {
    font-size: 9px;
    color: var(--clay-text-muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 5px;
    margin-right: 5px;
    text-shadow: 1px 1px 0px #ffffff;
}

/* Pill container for the three risk buttons */
.risk-container {
    background: #ebdffd;
    padding: 3.5px;
    border-radius: 14px;
    box-shadow: var(--clay-inset);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Base risk button */
.btn-risk {
    width: 72px;
    height: 28px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Inactive state */
.btn-risk-inactive       { background: transparent; color: var(--clay-text-muted); font-weight: 800; }
.btn-risk-inactive:hover { color: var(--clay-text-dark); background: rgba(255, 255, 255, 0.35); }

/* Active: HIGH risk — red tint */
.btn-risk-high-active {
    background: #ffe8ef;
    border: 2px solid #ffffff;
    color: #ef004c;
    box-shadow:
        0 4px 10px rgba(239, 0, 76, 0.15),
        inset 2px 2px 4px #ffffff,
        inset -2px -2px 4px rgba(239, 0, 76, 0.18);
}

/* Active: NORMAL risk — amber tint */
.btn-risk-normal-active {
    background: #fff1dc;
    border: 2px solid #ffffff;
    color: #e07a00;
    box-shadow:
        0 4px 10px rgba(224, 122, 0, 0.15),
        inset 2px 2px 4px #ffffff,
        inset -2px -2px 4px rgba(224, 122, 0, 0.18);
}

/* Active: LOW risk — teal tint */
.btn-risk-low-active {
    background: #e0faf1;
    border: 2px solid #ffffff;
    color: #00b484;
    box-shadow:
        0 4px 10px rgba(0, 180, 132, 0.15),
        inset 2px 2px 4px #ffffff,
        inset -2px -2px 4px rgba(0, 180, 132, 0.18);
}

/* Disabled state shared between risk and row buttons */
.btn-risk-disabled,
.row-btn-disabled {
    opacity: 0.52 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.4) !important;
    pointer-events: none !important;
}
