/* ================================
   Outback Poker Page — Aussie Bucks
   Green / Aqua Theme
================================ */

.poker-page {
    min-height: 100vh;
    background:
            radial-gradient(circle at top left, rgba(42, 224, 178, 0.2), transparent 34%),
            radial-gradient(circle at bottom right, rgba(85, 220, 255, 0.12), transparent 36%),
            linear-gradient(135deg, rgba(2, 45, 38, 0.96), rgba(1, 22, 21, 0.98));
}

/* ================================
   Topbar
================================ */

.poker-topbar {
    padding: 0.85rem 0;
    background: rgba(0, 28, 24, 0.96);
    border-bottom: 1px solid rgba(50, 224, 184, 0.24);
}

.poker-topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.poker-topbar__back {
    color: rgba(220, 248, 241, 0.76);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.poker-topbar__back:hover {
    color: #2fe0ba;
}

.poker-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
}

.poker-topbar__badge {
    justify-self: end;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #061c17;
    background: linear-gradient(135deg, #20d8aa, #5fdcff);
    font-weight: 900;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 28px rgba(32, 216, 170, 0.24);
}

/* ================================
   Hero / Layout
================================ */

.poker-hero {
    background:
            radial-gradient(circle at top left, rgba(42, 224, 178, 0.18), transparent 32%),
            radial-gradient(circle at bottom right, rgba(85, 220, 255, 0.1), transparent 34%),
            linear-gradient(135deg, rgba(2, 45, 38, 0.92), rgba(1, 24, 23, 0.96));
}

.poker-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* ================================
   Main Poker Table
================================ */

.poker-table,
.poker-info-card,
.poker-disclaimer {
    border: 1px solid rgba(48, 224, 184, 0.28);
    background:
            radial-gradient(circle at top left, rgba(43, 224, 178, 0.16), transparent 30%),
            linear-gradient(145deg, rgba(5, 70, 57, 0.94), rgba(3, 32, 30, 0.96));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.poker-table {
    padding: clamp(1.25rem, 3vw, 2.2rem);
    border-radius: 32px;
}

.poker-table__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.poker-table__eyebrow {
    margin: 0 0 0.35rem;
    color: rgba(184, 238, 225, 0.72);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.poker-table h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.12;
}

.poker-info-card h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.12;
}

/* ================================
   Balance
================================ */

.poker-balance {
    min-width: 170px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(1, 24, 22, 0.74);
    border: 1px solid rgba(48, 224, 184, 0.24);
    text-align: right;
}

.poker-balance span {
    display: block;
    color: rgba(190, 236, 226, 0.76);
    font-size: 0.85rem;
}

.poker-balance strong {
    display: block;
    color: #ffbf16;
    font-size: 1.6rem;
    line-height: 1.1;
}

/* ================================
   Opponents
================================ */

.poker-opponents {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.poker-player {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(1, 24, 22, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.poker-player__avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(36, 218, 170, 0.18);
    font-size: 1.3rem;
}

.poker-player strong {
    display: block;
    color: #ffffff;
}

.poker-player span {
    display: inline-flex;
    margin-top: 0.15rem;
    color: #2fe0ba;
    font-size: 0.78rem;
    font-weight: 800;
}

.poker-player b {
    color: #ffbf16;
}

/* ================================
   Labels
================================ */

.poker-section-label {
    margin: 1.35rem 0 0.65rem;
    color: rgba(184, 238, 225, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}

.poker-section-label--left {
    text-align: left;
    margin-top: 0.7rem;
}

/* ================================
   Cards
================================ */

.poker-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.poker-card {
    width: 74px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #111111;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1;
}

.poker-card--red {
    color: #e7354a;
}

.poker-card--black {
    color: #0d1b2a;
}

.poker-card--empty {
    color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.poker-card__inner {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.poker-card__rank {
    font-size: 1.25rem;
}

.poker-card__suit {
    font-size: 1.5rem;
}

/* ================================
   Pot / Hand Info
================================ */

.poker-pot {
    margin: 1.35rem 0;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(1, 20, 19, 0.74);
    text-align: center;
}

.poker-pot span {
    display: block;
    color: rgba(184, 238, 225, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.poker-pot strong {
    color: #ffbf16;
    font-size: 2rem;
}

.poker-hand-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.poker-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #2fe0ba;
    background: rgba(47, 224, 184, 0.12);
    border: 1px solid rgba(47, 224, 184, 0.28);
    font-weight: 900;
}

.poker-hand-value {
    text-align: right;
}

.poker-hand-value span {
    display: block;
    color: rgba(184, 238, 225, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.poker-hand-value strong {
    color: #ffffff;
    font-size: 1.1rem;
}

.poker-cards--hand {
    justify-content: flex-start;
    margin-top: 0.75rem;
}

/* ================================
   Message / Actions
================================ */

.poker-message {
    min-height: 3rem;
    margin: 1.1rem 0 0;
    color: rgba(226, 248, 242, 0.86);
    line-height: 1.6;
}

.poker-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.poker-action {
    min-height: 48px;
    border: 1px solid rgba(47, 224, 184, 0.18);
    border-radius: 12px;
    color: #eafff9;
    background: rgba(47, 224, 184, 0.08);
    cursor: pointer;
    font-weight: 900;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.poker-action:hover:not(:disabled) {
    background: rgba(47, 224, 184, 0.18);
    border-color: rgba(47, 224, 184, 0.36);
    transform: translateY(-1px);
}

.poker-action--muted {
    background: rgba(255, 255, 255, 0.06);
}

.poker-action--raise {
    background: rgba(47, 224, 184, 0.16);
}

.poker-action:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
}

.poker-deal {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    min-height: 64px;
    font-size: 1.15rem;
    color: #061c17;
    background: linear-gradient(135deg, #19d1a8, #5fdcff);
    box-shadow: 0 18px 45px rgba(31, 216, 176, 0.24);
}

.poker-deal:hover {
    filter: brightness(1.05);
}

/* ================================
   Stats
================================ */

.poker-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.poker-stats span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: rgba(220, 248, 241, 0.84);
    background: rgba(1, 24, 22, 0.72);
    border: 1px solid rgba(47, 224, 184, 0.12);
}

/* ================================
   Sidebar
================================ */

.poker-side {
    display: grid;
    gap: 1rem;
}

.poker-info-card {
    padding: clamp(1.1rem, 2vw, 1.4rem);
    border-radius: 24px;
}

.poker-info-card p,
.poker-info-card li {
    color: rgba(226, 248, 242, 0.82);
    line-height: 1.65;
}

.poker-info-card ul {
    margin-bottom: 0;
}

.poker-ranks {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.poker-ranks li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.poker-ranks li:last-child {
    border-bottom: 0;
}

.poker-ranks strong {
    color: #ffbf16;
}

.poker-reset {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    color: #eafff9;
    border-color: rgba(47, 224, 184, 0.32);
}

.poker-reset:hover {
    background: rgba(47, 224, 184, 0.14);
}

/* ================================
   Disclaimer
================================ */

.poker-disclaimer {
    margin-top: 1.4rem;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    color: rgba(226, 248, 242, 0.84);
    text-align: center;
    line-height: 1.6;
}

.poker-disclaimer strong {
    color: #ffffff;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1080px) {
    .poker-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .poker-topbar__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .poker-topbar__badge {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .poker-table__header,
    .poker-hand-row {
        display: flex;
        flex-direction: column;
    }

    .poker-balance,
    .poker-hand-value {
        width: 100%;
        text-align: left;
    }

    .poker-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .poker-card {
        width: 58px;
        height: 84px;
        font-size: 0.95rem;
    }

    .poker-card__rank {
        font-size: 1rem;
    }

    .poker-card__suit {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .poker-table {
        border-radius: 24px;
        padding: 1rem;
    }

    .poker-player {
        grid-template-columns: auto 1fr;
    }

    .poker-player b {
        grid-column: 2;
    }

    .poker-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .poker-cards {
        gap: 0.4rem;
    }

    .poker-card {
        width: 52px;
        height: 76px;
    }
}