:root {
    --overlay-bg: rgba(0, 0, 0, 0.85);
    --card-bg: rgba(20, 20, 20, 0.95);
    --card-border: rgba(0, 255, 163, 0.15);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent: #00ffa3;
    --accent-dark: #00d98a;
    --accent-glow: rgba(0, 255, 163, 0.4);
    --danger: #e02543;
}

.is-hidden {
    display: none;
}

/* NOTE: This file defines global variables, payment/interface styles and
    HUD helpers. The canonical `.start-menu-wrapper` lives in `start-menu.css`.
    Component-specific modifiers (e.g. balance/withdraw UI) should reference
    the wrapper but live in their own component CSS files (balance.css, etc.). */

/* Start menu styles live in `start-menu.css` */

.hud-corner {
    position: absolute;
    z-index: 10;
}

.hud-corner--top-left {
    top: 10px;
    left: 10px;
}

.hud-corner--top-right {
    top: 10px;
    right: 10px;
}

/* Layout: ensure top-right corner children sit in a single horizontal row */
.hud-corner--top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* (Balance-specific layout moved to `balance.css`) */

/* Centered top HUD (balance + deposit) */
.hud-corner--top-center {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 11;
}

/* Group wrapper inside the centered HUD so history+balance+deposit are treated as one element */
.hud-corner--top-center .top-center-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hud-corner--bottom-left {
    bottom: 10px;
    left: 10px;
}

/* Username styles moved to `username.css` */

/* Wallet display styles moved to `wallet.css` */

/* Start menu styles moved to `start-menu.css` */

/* Registration styles moved to `registration.css` */

/* Mass buttons for quick sizing selection */
.mass-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.mass-button {
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d1117;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.mass-button:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #141820;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mass-button:active {
    transform: scale(0.98);
}

.mass-button.selected,
.mass-button.active {
    /* Green selected state with original border styling */
    background: rgba(1, 20, 13, 0.404);
    border-color: rgba(0, 255, 163, 0.5);
    color: #00ffa3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
    outline: none;
}

.mass-button:focus-visible {
    outline: 2px solid rgba(0, 255, 163, 0.4);
    outline-offset: 2px;
}

/* Payment UI moved from `start-menu.css` to be canonical here. */
.payment-card {
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 32px;
    background-image: linear-gradient(rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.95)), conic-gradient(from -45deg at 50% 50%, rgba(0, 255, 136, 0.3) 0deg, rgba(153, 85, 255, 0.3) 90deg, rgba(255, 136, 0, 0.3) 180deg, rgba(0, 102, 255, 0.3) 270deg, rgba(0, 255, 136, 0.3) 360deg);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    min-width: 340px;
    max-width: 400px;
    min-height: 380px;
    max-height: 480px;
}

.amount-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(128, 128, 128, 0.85); /* Muted grey color */
    text-align: center;
    margin-bottom: 6px;
    background: none; /* No background, remove pill */
    border: none; /* No border */
    padding: 0; /* No pill padding */
    border-radius: 0; /* No pill rounding */
    display: inline-block;
    width: auto;
    align-self: center;
}

.amount-preview {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.pay-button {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: 2px solid rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #5fef8a 0%, #3ae5ff 100%);
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.22s ease, border-color 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.pay-button:hover {
    background: linear-gradient(135deg, #5fef8a 0%, #3ae5ff 100%);
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.pay-button:active {
    background: linear-gradient(135deg, #5fef8a 0%, #3ae5ff 100%);
}

.pay-button.disabled-state {
    pointer-events: none;
    opacity: 0.6;
}

.payment-card__stats {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.payment-card__stat {
    flex: 1;
    text-align: center;
    padding: 18px 14px;
    background: #1a2332;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.payment-card__stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #00ffa3;
    margin-bottom: 4px;
}

.payment-card__stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Remove constraints on screens under 400px */
@media (max-width: 400px) {
    .payment-card {
        min-width: unset;
        max-width: unset;
        min-height: unset;
        max-height: unset;
    }
}

