/* ========================================
   BUTTONS - CLEAN NEON GLASS
   ======================================== */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    width: 100%;
    min-height: 52px;
    padding: 0.85rem 1.5rem;

    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;

    color: var(--text-primary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.16s ease-out,
        box-shadow 0.16s ease-out,
        background-color 0.16s ease-out,
        border-color 0.16s ease-out,
        color 0.16s ease-out;
}

/* Base disabled state */
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Primary – main call to action */
.btn-primary {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
        linear-gradient(135deg, rgba(157, 78, 221, 0.96), rgba(123, 44, 191, 0.96));
    border-color: rgba(199, 125, 255, 0.9);
    color: #f8f3ff;

    box-shadow:
        0 16px 40px rgba(3, 2, 15, 0.9),
        0 0 22px rgba(157, 78, 221, 0.7);
}

/* Subtle glass overlay inside the pill */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.16),
            rgba(0, 0, 0, 0.20));
    opacity: 0.95;
    pointer-events: none;
}

/* Keep text above overlay */
.btn-primary>* {
    position: relative;
    z-index: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 20px 46px rgba(3, 2, 15, 0.95),
        0 0 30px rgba(157, 78, 221, 0.85);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow:
        0 12px 32px rgba(3, 2, 15, 0.9),
        0 0 18px rgba(157, 78, 221, 0.7);
}

/* Secondary – neutral glass button */
.btn-secondary {
    background: rgba(15, 12, 32, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(23, 18, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

/* Danger – for destructive actions like Remove / End Game */
.btn-danger {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(190, 18, 60, 0.95));
    border-color: rgba(248, 113, 113, 0.9);
    color: #fff1f2;

    box-shadow:
        0 14px 32px rgba(12, 2, 8, 0.9),
        0 0 20px rgba(239, 68, 68, 0.55);
}

.btn-danger::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.12),
            rgba(0, 0, 0, 0.25));
    opacity: 0.92;
    pointer-events: none;
}

.btn-danger>* {
    position: relative;
    z-index: 1;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(12, 2, 8, 0.93),
        0 0 24px rgba(248, 113, 113, 0.7);
}

.btn-danger:active:not(:disabled) {
    transform: translateY(0);
}

/* Success – Cash Out button (teal) */
.btn-success {
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(13, 148, 136, 0.95));
    border-color: rgba(20, 184, 166, 0.9);
    color: #ecfffd;

    box-shadow:
        0 14px 32px rgba(12, 2, 8, 0.9),
        /* deep dark shadow */
        0 0 20px rgba(20, 184, 166, 0.55);
    /* TEAL GLOW (the missing part!) */
}

.btn-success::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.12),
            rgba(0, 0, 0, 0.25));
    opacity: 0.92;
    pointer-events: none;
}

.btn-success>* {
    position: relative;
    z-index: 1;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(12, 2, 8, 0.93),
        0 0 24px rgba(20, 184, 166, 0.7);
    /* brighter teal glow */
}

.btn-success:active:not(:disabled) {
    transform: translateY(0);
}



/* Size variants */
.btn-small {
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

/* For your main “Create New Game” CTA on the splash screen */
.btn-hero {
    max-width: 420px;
    margin-inline: auto;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
}

.btn .btn-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    /* ensures white icons */
}

button.btn-action {
    font-size: 10px !important;
    flex-direction: column;
    border-radius: 10px;
    padding: 0px 10px;
    text-align: center;
    letter-spacing: 0;
}