/* GLOBAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #243b55, #0b1020 60%, #05060b);
    color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 6, 11, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-brand a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.95rem;
}

.brand-logo {
    font-size: 1.4rem;
    color: #f4c542;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #d2d5e3;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.nav-links a:hover {
    background: rgba(244, 197, 66, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-links a.active {
    background: linear-gradient(135deg, #f4c542, #ff7e39);
    color: #111217;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #f4c542, #ff7e39);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-content p {
    color: #c1c5d3;
    max-width: 36rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #a3a7b8;
}

.hero-meta span {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.card-stack {
    position: relative;
    width: 220px;
    height: 260px;
}

.card-preview {
    position: absolute;
    width: 180px;
    height: 120px;
    border-radius: 12px;
    background: #ffffff;
    color: #111217;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    transform: rotate(-8deg);
}

.card-preview.red {
    color: #c0392b;
}

.card-preview:nth-child(1) {
    top: 30px;
    left: 20px;
    transform: rotate(-10deg);
}

.card-preview:nth-child(2) {
    top: 70px;
    right: 10px;
    transform: rotate(8deg);
}

.card-rank {
    font-size: 1.8rem;
    font-weight: 700;
}

.card-suit {
    font-size: 1.4rem;
    align-self: flex-end;
}

.chip-stack {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.chip {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #111217;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

.chip-red {
    background: #e74c3c;
}

.chip-blue {
    background: #3498db;
}

.chip-green {
    background: #2ecc71;
}

/* BUTTONS */
.btn {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s, color 0.2s;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn.primary {
    background: linear-gradient(135deg, #f4c542, #ff7e39);
    color: #111217;
    box-shadow: 0 10px 24px rgba(255, 126, 57, 0.35);
}

.btn.ghost {
    border: 1px solid rgba(244, 197, 66, 0.7);
    background: transparent;
    color: #f4c542;
}

.btn.subtle {
    background: rgba(255, 255, 255, 0.06);
    color: #d2d5e3;
}

.btn.small {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
}

.btn.full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* SECTIONS & CARDS */
.section {
    padding: 2rem clamp(1.5rem, 4vw, 4rem);
    max-width: 1120px;
    margin: 0 auto 2.5rem;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-radius: 18px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.feature-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #c1c5d3;
    margin-bottom: 0.9rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* GAME PAGES */
.game-page {
    flex: 1;
    padding: 1.8rem clamp(1.5rem, 4vw, 4rem) 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.game-header p {
    color: #c1c5d3;
    margin-bottom: 1.5rem;
}

.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 1.8rem;
}

/* TABLE / FELT */
.felt {
    background: radial-gradient(circle at top, #2f5b2f, #143019 60%, #07130b);
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.table-header h2 {
    font-size: 1.1rem;
}

.table-header p {
    font-size: 0.85rem;
    color: #e3e7f2;
}

.table-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1.2rem;
}

.hand {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* CARDS */
.card {
    width: 64px;
    height: 96px;
    border-radius: 10px;
    background: #ffffff;
    color: #111217;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    padding: 0.4rem 0.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.card.red {
    color: #c0392b;
}

.card-back {
    background: linear-gradient(135deg, #1e2a78, #111849);
    color: transparent;
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

.card-rank {
    font-size: 1.1rem;
    font-weight: 700;
}

.card-suit {
    font-size: 1.1rem;
    align-self: flex-end;
}

/* POKER CARDS */
.poker-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border 0.15s;
}

.poker-card .hold-label {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #f5f5f5;
    font-size: 0.6rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    opacity: 0;
}

.poker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.6);
}

.poker-card.held {
    border: 2px solid #f4c542;
    transform: translateY(-8px);
}

.poker-card.held .hold-label {
    opacity: 1;
}

/* SIDEBAR */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel {
    background: rgba(9, 10, 20, 0.95);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.panel h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #d2d5e3;
}

.field input {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #f5f5f5;
    font-size: 0.85rem;
}

.field input:focus {
    outline: none;
    border-color: #f4c542;
}

.balance {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #f4c542;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.chip-btn {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: none;
    background: rgba(244, 197, 66, 0.12);
    color: #f4c542;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.chip-btn:hover {
    background: rgba(244, 197, 66, 0.24);
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-box {
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #c1c5d3;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.1rem;
    padding-right: 0.3rem;
}

/* POKER */
.poker-table .hand-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.payout-list {
    list-style: none;
    font-size: 0.8rem;
    color: #c1c5d3;
}

.payout-list li {
    margin-bottom: 0.2rem;
}

/* FOOTER */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #8c91a3;
    padding: 0.8rem 1.5rem 1.2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 6, 11, 0.95);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }

    .hero-visual {
        order: -1;
    }

    .game-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 0.4rem;
    }
    
    .navbar {
        padding: 0.6rem 1rem;
    }

    .hero {
        padding-inline: 1.2rem;
    }

    .game-page {
        padding-inline: 1.2rem;
    }
}
